Commit Graph

47 Commits

Author SHA1 Message Date
topjohnwu 683cfee88b Cleanup and move things around 2022-05-26 22:05:28 -07:00
vvb2060 0469f0b5ae Add uid check for getAppProcess 2022-05-08 04:51:39 -07:00
vvb2060 5512917ec1 Hide incorrect "Factory data reset" message 2022-03-26 13:46:01 -07:00
topjohnwu 4f52587586 Support ADB shell if app shares its UID 2022-03-26 13:43:43 -07:00
topjohnwu 9f1740cc4f Add preliminary shared UID app support 2022-03-25 13:08:13 -07:00
topjohnwu 71e37345b4 Update libsu 2022-02-28 20:14:58 -08:00
vvb2060 7cdf2d244d Cleanup su handler 2022-01-23 01:38:17 -08:00
vvb2060 bf8b74e996 Module json add changelog 2022-01-22 14:44:37 -08:00
vvb2060 2997258fd0 Cleanup code 2022-01-18 02:02:41 -08:00
vvb2060 11600fc116 Use libs instead of copy code 2022-01-18 02:02:41 -08:00
topjohnwu 48e2d6a8da Simplify several hacks 2021-12-13 19:48:17 -08:00
LoveSy be9b0c2e8f Move flow.concurrentMap to ktx 2021-11-13 11:28:11 -08:00
topjohnwu 6dbd8baa7e Cleanup DownloadService 2021-11-06 17:45:41 -07:00
vvb2060 9126cf0c73 Rewrite deny list UI 2021-11-04 20:09:19 -07:00
vvb2060 fb93af665d Remove obsolete SDK_INT check 2021-04-23 16:56:23 -07:00
topjohnwu 038f73a5f7 Remove Koin
Non static DI is bad
2021-04-18 04:46:11 -07:00
vvb2060 69b00d3782 Update dependencies
Jcenter will sunset
2021-04-17 23:44:19 -07:00
topjohnwu a328e2bf3c Hide annoying stack traces when hidden 2021-04-17 22:35:36 -07:00
topjohnwu 7e01f9c95e Minor changes 2021-04-17 19:57:47 -07:00
topjohnwu 1f0a35f073 Set minSdkVersion to 21 2021-04-09 20:01:32 -07:00
topjohnwu 331b1f542f Use standard Android APIs for install and launch 2021-02-20 20:12:35 -08:00
topjohnwu ccb55205e6 Fix pre 21 support 2021-02-20 03:38:39 -08:00
topjohnwu 52e1b84d41 Symlink pre API 21 2021-01-30 01:12:49 -08:00
topjohnwu eaf4d8064b Also download to external storage 2021-01-27 04:09:07 -08:00
vvb2060 dbd13a2019 Clean code 2021-01-23 18:10:26 -08:00
vvb2060 e57556a8af Use ro.kernel.qemu to check emulator 2021-01-23 18:05:38 -08:00
topjohnwu 1060dd2906 Random refactoring 2021-01-23 13:26:28 -08:00
topjohnwu 5798536559 Remove unnecessary hacks 2021-01-22 20:25:37 -08:00
topjohnwu ec8fffe61c Merge Magisk install zip into Magisk Manager
Distribute Magisk directly with Magisk Manager APK. The APK will
contain all required binaries and scripts for installation and
uninstallation. App versions will now align with Magisk releases.

Extra effort is spent to make the APK itself also a flashable zip that
can be used in custom recoveries, so those still prefer to install
Magisk with recoveries will not be affected with this change.

As a bonus, this makes the whole installation and uninstallation
process 100% offline. The existing Magisk Manager was not really
functional without an Internet connection, as the installation process
was highly tied to zips hosted on the server.

An additional bonus: since all binaries are now shipped as "native
libraries" of the APK, we can finally bump the target SDK version
higher than 28. The target SDK version was stuck at 28 for a long time
because newer SELinux restricts running executables from internal
storage. More details can be found here: https://github.com/termux/termux-app/issues/1072
The target SDK bump will be addressed in a future commit.

Co-authored with @vvb2060
2021-01-22 02:29:54 -08:00
topjohnwu 8e61080a4a Preparation for hiding isolated processes 2020-12-30 15:55:53 -08:00
RikkaW a39577c44d Fix extra spacing in module list 2020-12-06 23:49:23 -08:00
RikkaW 0df891b336 Handle window insets with a new way
For example, switching pages in home should only have scale and alpha animations, but a "translate y" animation shows. This is because Data Binding is triggered later (like "in the next frame"), causing the animation runs before view attribute changes.

This commit introduces WindowInsetsHelper class and use it to handle all window insets. With the help of LayoutInflaterFactory from the previous commit, we can control insets behavior by adding our attributes to the XML and anything is done by WindowInsetsHelper class.

As changes are highly coupling, this commit also contains new ItemDecoration for lists, replacing the random combination of padding and empty drawable. And "fixEdgeEffect" extension for RecyclerView, making edge effects respect padding.
2020-11-19 23:24:39 -08:00
vvb2060 e9759a5868 Update HideViewModel 2020-11-07 14:47:44 -08:00
topjohnwu 84f92bd661 Cleanup hide fragment code 2020-08-26 05:46:37 -07:00
topjohnwu e437ffdbae Improvements to the installation UI
- No longer show irrelevant options to the user
- No longer require an additional button press to start installation
2020-08-24 04:04:52 -07:00
topjohnwu 31681c9c5f Remove ProcessPhoenix 2020-08-23 00:12:58 -07:00
topjohnwu 27c59dbb65 Disable animations in toolbar
Fix #2907
2020-08-22 05:52:57 -07:00
topjohnwu 14a2f63b8b Several changes for using MediaStore
- Change config key name so default downloads to folder 'Download'
- Always use getFile as we do not need existing file deleted
- Fallback to use File based I/O pre API 29 as officially MediaStore
  APIs do not support general purpose usage. And also, it was working
  fine on all devices before. If it ain't broke, don't fix it
- Show full download path in settings to make it more clear to the user
- Close streams after using them
2020-08-22 04:38:51 -07:00
vvb2060 9e81db8692 Support scoped storage 2020-08-22 04:38:51 -07:00
topjohnwu 34450cdddd More refactoring
Cleanups, move classes to sane locations, etc.
2020-08-19 02:05:23 -07:00
topjohnwu 846bbb4da1 Reorganize app source code 2020-08-18 06:31:15 -07:00
topjohnwu 3f053b8547 Minor code changes 2020-08-14 03:17:10 -07:00
topjohnwu ac2a9da4c4 Fix Markdown rendering
Close #3074
2020-08-14 02:00:06 -07:00
topjohnwu 2f02f9a580 Update libsu 2020-07-20 21:58:23 -07:00
topjohnwu dd62fe89f7 Use CallbackList for collecting STDOUT in flash screen
Fix #2988
2020-07-17 00:13:18 -07:00
topjohnwu ec2d7d77eb Reduce usage of ObservableField 2020-07-15 02:52:15 -07:00
topjohnwu b41b2283f4 Rename package 2020-07-11 05:36:31 -07:00