Commit Graph

546 Commits

Author SHA1 Message Date
topjohnwu 9fd1f41e8b Always relaunch process after package migration 2022-06-19 02:09:14 -07:00
canyie 71205bc530 Anchor Snackbar above reboot FAB in FlashFragment 2022-06-12 11:00:36 -07:00
topjohnwu 515f81944c Move coroutine job into its own class 2022-06-10 04:12:31 -07:00
topjohnwu 46d4708386 Decouple state from BaseViewModel 2022-06-10 02:13:25 -07:00
topjohnwu aabc36f86b Maintain separate flash screen state 2022-06-10 00:33:53 -07:00
nikk gitanes e0d5d90267 fix restart button focus on flash result 2022-06-10 00:33:53 -07:00
topjohnwu 482a5b991b Don't always refresh on network state change 2022-06-09 23:28:46 -07:00
vvb2060 42606efe56 Always remove task 2022-06-09 21:02:31 -07:00
vvb2060 c495b3d183 Remove request uninstall code
unreachable
2022-06-06 02:51:11 -07:00
topjohnwu 317153c53a Better stub launch flow 2022-06-05 19:15:43 -07:00
canyie aadb2d825c Also set snackbar container for FlashFragment 2022-06-05 05:36:04 -07:00
残页 2106751ea4 Fix SnackBar shows behind window insets 2022-06-03 03:21:56 -07:00
topjohnwu 5471147422 Remove usage of BindingCollectionAdapter (part 2) 2022-06-02 23:40:10 -07:00
topjohnwu 6305159c5e Remove usage of BindingCollectionAdapter (part 1) 2022-06-02 20:55:19 -07:00
topjohnwu 2ed092c9db Update contributors in app 2022-06-02 06:08:47 -07:00
topjohnwu 5c6a7ffa6f Simplify context hacks 2022-06-02 04:22:25 -07:00
topjohnwu e029994ef8 Move Zygisk out of beta 2022-06-01 02:59:02 -07:00
vvb2060 9679874874 Disable repack on android 5.0
am does not support -p
2022-06-01 02:05:15 -07:00
topjohnwu 50e2f33d1c More debug indication in UI
Close #5874
2022-05-30 01:53:07 -07:00
topjohnwu 18acb97dfe Make SYSTEM_UID a special case 2022-05-30 00:49:42 -07:00
topjohnwu bf04fa134b Indicate debug builds
Close #5859
2022-05-29 11:14:39 -07:00
topjohnwu c0981174a8 Use LiveData instead of Observable 2022-05-29 03:57:42 -07:00
南宫雪珊 580c993c0b Display module status 2022-05-29 01:40:20 -07:00
topjohnwu 683cfee88b Cleanup and move things around 2022-05-26 22:05:28 -07:00
topjohnwu 3bcaf0ed5b Move more files into core 2022-05-25 05:48:02 -07:00
topjohnwu 756d8356ca Show canary channel option on canary builds 2022-05-15 01:28:49 -07:00
vvb2060 68db366696 Delete outdated policies 2022-05-10 00:11:17 -07:00
topjohnwu 4eb9240806 Handle Activty recreation on content result
Credits to @canyie for the initial PR and finding the bug
Close #5791, fix #5789
2022-05-08 14:29:59 -07:00
topjohnwu 2793d209a4 Allow requesting root from non app process 2022-05-07 00:46:23 -07:00
Kazurin Nanako 42e5f5150a Fix "double install" caused by config changes
Configuration changes in FlashFragment may cause the installation process to be triggered twice. The simplest way to reproduce this behavior is to choose a module ZIP file in landscape mode (which is the default on some tablets).

This commit fixes the problem by ensuring `savedInstanceState == null` before starting installation.
2022-05-06 01:47:02 -07:00
vvb2060 cffd024e9e Ignore the response until showDialog done 2022-05-06 01:04:28 -07:00
topjohnwu cc79a96fa3 Update libsu 2022-05-03 01:25:26 -07:00
vvb2060 9a11412719 Fix superuser snackbar text 2022-04-02 04:26:21 -07:00
topjohnwu 31f88e0f05 Update UI for sharedUID support 2022-03-25 16:56:21 -07:00
topjohnwu 9f1740cc4f Add preliminary shared UID app support 2022-03-25 13:08:13 -07:00
topjohnwu e67d0678f9 Use viewModelScope instead of GlobalScope 2022-03-23 18:03:41 -07:00
canyie 24505cd111 Prevent destroyed activities from being reused
The adapter will cache a LayoutInflater which refers the current activity, and the ViewModel object will keep alive until activity finished. After activity recreates (e.g. split-screen), it will use the cached LayoutInflater which refers a destroyed activity and crashes. This also is a memory-leak, according to Google's official document, ViewModel shouldn't refer activity. See https://developer.android.com/topic/libraries/architecture/viewmodel

Fix topjohnwu#5413
2022-03-07 01:54:02 -08:00
topjohnwu 71e37345b4 Update libsu 2022-02-28 20:14:58 -08:00
vvb2060 8cc76b1d86 Fix restore dialog 2022-02-16 23:04:19 -08:00
vvb2060 77a275cbcd Show notification when stub is updated to full 2022-02-16 23:04:03 -08:00
topjohnwu 5d400fbe90 Check REQUEST_INSTALL_PACKAGES before actions 2022-02-14 02:15:50 -08:00
topjohnwu 256ff31d11 Show notification after app upgrade 2022-02-13 18:35:35 -08:00
topjohnwu 084e0a73dc Cleanup DownloadService 2022-02-03 03:50:52 -08:00
LoveSy 5a88984d34 Guard synchronizedList's iteration
It's needed to guard a synchronizedList when iterating it
2022-01-27 02:01:30 -08:00
LoveSy 18de60f68c Fix NPE of SuRequestViewModel
countdown timer may have not initialized when backpressed
2022-01-27 02:01:04 -08:00
LoveSy 1893359142 Fix crash when fragment is detached from activity 2022-01-27 01:54:24 -08:00
topjohnwu d742cfa48f Label Zygisk as beta 2022-01-25 01:41:51 -08:00
topjohnwu 95353ce9eb Fix language settings 2022-01-25 01:31:15 -08:00
topjohnwu 5c54a2c008 Update version check logic 2022-01-25 01:10:17 -08:00
topjohnwu 8eac6c0b48 Cleanup arch classes 2022-01-22 14:44:46 -08:00