Viktor De Pasquale
b910a92731
Fixed ui issues in unrooted state
2019-10-27 11:00:16 +01:00
topjohnwu
ee447bc4ce
Improve Keygen yet again
2019-10-26 21:11:32 -04:00
topjohnwu
7693024c29
Replace general resources with platform
2019-10-26 19:23:57 -04:00
Mevlüt TOPÇU
9628700a2f
Update Turkish language
...
Hi,
Merge please
Thanks
2019-10-26 19:03:52 -04:00
Taras
38576173cb
Update Ukrainian translation
2019-10-26 19:03:37 -04:00
topjohnwu
19a769c12e
Update dependencies
2019-10-26 19:02:11 -04:00
topjohnwu
626507093a
Don't need to wrap another layer of context
2019-10-26 15:37:12 -04:00
Viktor De Pasquale
ee7d297ca8
Partially reverted developer section changes
2019-10-26 21:14:01 +02:00
Viktor De Pasquale
a70c0174e1
Added device info card
2019-10-26 21:03:25 +02:00
Viktor De Pasquale
da707afa3f
Updated install ui to better fit app's theme
2019-10-26 17:40:29 +02:00
Viktor De Pasquale
a41597431c
Added more information to magisk/manager cards
2019-10-26 17:33:27 +02:00
Viktor De Pasquale
d0b817381e
Added "caching" of the safetynet response
2019-10-26 16:03:07 +02:00
Viktor De Pasquale
60a2e9b5dc
Updated home info cards to be more compressed
2019-10-26 15:14:20 +02:00
Viktor De Pasquale
df3a37b0a3
Updated developer section to be horizontally scrollable instead of vertically
...
In order to make room for more information
2019-10-26 12:41:34 +02:00
Viktor De Pasquale
5f4718cd13
Added string resources for install screen
2019-10-25 19:17:13 +02:00
Viktor De Pasquale
3cc5cb3123
Updated the install flow
...
Now the binary is downloaded after user selects a method. It also shows download progress as the file's being downloaded
2019-10-25 19:13:54 +02:00
Viktor De Pasquale
8a2872afa4
Removed pre-download while installing magisk
2019-10-25 17:46:20 +02:00
Viktor De Pasquale
85941c4729
Removed lol code
2019-10-25 15:40:46 +02:00
topjohnwu
588b3d14a3
Fix typo
2019-10-24 15:37:32 -04:00
vvb2060
815efa7791
Update zh-rCN translation
2019-10-24 13:04:36 -04:00
topjohnwu
97a691ce2f
Improve keygen for signing repackaged manager
2019-10-24 13:04:15 -04:00
Viktor De Pasquale
82eeefb544
Added system version to the details section for safetynet checks
2019-10-24 18:40:15 +02:00
topjohnwu
9d948f2c2b
Temporary disable verification when hiding app
...
For some reason, Google Play Protect randomly blocks our self-signed
repackaged Magisk Manager APKs. Since we are root, the sky is our
limit, so yeah, disable package verification temporarily when installing
patched APKs, LOLz
Close #1979
2019-10-24 12:23:03 -04:00
Viktor De Pasquale
f6061ba00e
Fixed bottom navigation popping up when it shouldn't
2019-10-24 18:07:36 +02:00
Viktor De Pasquale
9e3afcfe7a
Added safetynet implementation
2019-10-24 18:00:51 +02:00
topjohnwu
0b87108174
Move things around
2019-10-24 05:21:42 -04:00
topjohnwu
7fc7809cfc
More precise channel targeting
2019-10-24 04:25:05 -04:00
topjohnwu
c30be20e49
Minor CachedValue fix
2019-10-24 04:02:01 -04:00
topjohnwu
25c64db0a1
Treat outdated stub as outdated manager
2019-10-24 03:54:16 -04:00
topjohnwu
676e9c6593
Provide upgrade path for stubs
2019-10-24 02:47:40 -04:00
topjohnwu
d459859361
Show stub version
2019-10-24 00:54:40 -04:00
topjohnwu
294db93fde
Copy instead of move
...
We might be copying from CE to DE storage, which cannot be moved
2019-10-23 17:20:55 -04:00
Viktor De Pasquale
21f2f86cb8
Added safetynet implementation
...
The implementation itself was moved from fragment to self contained event. The result resolution might be moved to the event as well
2019-10-23 21:17:53 +02:00
Viktor De Pasquale
04576ca828
Added install implementation
2019-10-23 19:14:39 +02:00
Viktor De Pasquale
067cb0cd9d
Fixed magisk button states
2019-10-23 16:20:01 +02:00
topjohnwu
7f971f7173
Make sure our constructor is preserved
2019-10-23 07:51:32 -04:00
topjohnwu
5c7b59524d
Fix strings
2019-10-23 07:15:28 -04:00
topjohnwu
5133e5910e
Don't relaunch app immediately
2019-10-23 07:12:00 -04:00
Abhishek Dubey
3eb9633231
Add Hindi Translation
2019-10-23 06:53:46 -04:00
onevt
ac67b48247
Fix swedish translation typo
2019-10-23 06:53:07 -04:00
topjohnwu
45c1f6bc27
Fix restore manager when running as stub
2019-10-23 06:43:08 -04:00
topjohnwu
0d31e5c8b1
Properly migrate update channels when repackaging
2019-10-23 06:41:25 -04:00
topjohnwu
f8fcaadb5b
Hide manager with stub if feasible
2019-10-23 05:50:06 -04:00
topjohnwu
0b5fd3ee76
Only allow hide/restore app if connected
2019-10-23 05:43:01 -04:00
topjohnwu
71136d7347
Manually trigger broadcast tests if necessary
2019-10-22 16:04:20 -04:00
topjohnwu
a18c552ddf
Guard env state behind cached objects
2019-10-22 15:37:55 -04:00
Viktor De Pasquale
17fb8f2298
Added new magisk install flow
2019-10-22 20:46:09 +02:00
Viktor De Pasquale
fbfc4e72ca
Updated appbar design to be more android-like
2019-10-22 18:09:26 +02:00
Viktor De Pasquale
d2e171eabc
Added a way to listen to download service from homepage and behave accordingly
2019-10-22 17:29:45 +02:00
Viktor De Pasquale
e50094af80
Added install fragment
2019-10-22 16:29:01 +02:00
Viktor De Pasquale
93edf72993
Rationalize download failure
2019-10-22 16:26:28 +02:00
Viktor De Pasquale
a230d63cf9
Fixed having an error doesn't inform external listeners
2019-10-22 16:22:28 +02:00
topjohnwu
9656878ef3
Actually apply the input name
2019-10-22 05:06:17 -04:00
Viktor De Pasquale
7ded7de39a
Added custom dialog for setting app's name after repackaging
2019-10-22 04:52:19 -04:00
topjohnwu
0f74e89b44
Introduce component agnostic communication
...
Usually, the communication between native and the app is done via
sending intents to either broadcast or activity. These communication
channels are for launching root requests dialogs, sending root request
notifications (the toast you see when an app gained root access), and
root request logging.
Sending intents by am (activity manager) usually requires specifying
the component name in the format of <pkg>/<class name>. This means parts
of Magisk Manager cannot be randomized or else the native daemon is
unable to know where to send data to the app.
On modern Android (not sure which API is it introduced), it is possible
to send broadcasts to a package, not a specific component. Which
component will receive the intent depends on the intent filter declared
in AndroidManifest.xml. Since we already have a mechanism in native code
to keep track of the package name of Magisk Manager, this makes it
perfect to pass intents to Magisk Manager that have components being
randomly obfuscated (stub APKs).
There are a few caveats though. Although this broadcasting method works
perfectly fine on AOSP and most systems, there are OEMs out there
shipping ROMs blocking broadcasts unexpectedly. In order to make sure
Magisk works in all kinds of scenarios, we run actual tests every boot
to determine which communication method should be used.
We have 3 methods in total, ordered in preference:
1. Broadcasting to a package
2. Broadcasting to a specific component
3. Starting a specific activity component
Method 3 will always work on any device, but the downside is anytime
a communication happens, Magisk Manager will steal foreground focus
regardless of whether UI is drawn. Method 1 is the only way to support
obfuscated stub APKs. The communication test will test method 1 and 2,
and if Magisk Manager is able to receive the messages, it will then
update the daemon configuration to use whichever is preferable. If none
of the broadcasts can be delivered, then the fallback method 3 will be
used.
2019-10-21 13:59:04 -04:00
Viktor De Pasquale
2bb39bee2f
Updated redesign button design
2019-10-21 19:30:14 +02:00
Viktor De Pasquale
ce2ca5446a
Fixed checkbox's theme implementation in dark mode
2019-10-21 19:22:56 +02:00
Viktor De Pasquale
8a014ff786
Added most of the remaining functionality for Magisk install dialog
2019-10-21 19:22:16 +02:00
topjohnwu
96a8a2a8b8
Make SuRequest default to Translucent.NoTitleBar
...
Close #1959
2019-10-20 17:35:38 -04:00
Viktor De Pasquale
dc09ec7598
Added theme mode picker dialog
...
Redesigned settings' selector for dark mode a bit
2019-10-20 17:28:18 +02:00
Viktor De Pasquale
27fb0474d5
Added more standard night-mode system
2019-10-20 17:27:39 +02:00
Viktor De Pasquale
7f0a87742a
Fixed design issues in dialogs
...
Dark theme not being properly implemented
Icons were not set
2019-10-20 17:26:00 +02:00
Viktor De Pasquale
47e236788c
Added uninstall dialog
2019-10-20 16:47:02 +02:00
topjohnwu
325d9a0b86
Generate keys for signing hidden Magisk Manager
2019-10-20 06:56:33 -04:00
Viktor De Pasquale
236ad57608
Added showing download progress in the home ui
2019-10-20 12:40:50 +02:00
Viktor De Pasquale
6d03798314
Added internal download pseudo broadcasts
2019-10-20 12:40:26 +02:00
Viktor De Pasquale
c954a4f7bc
Updated icons and texts for magisk hide and safetynet
2019-10-20 11:29:04 +02:00
Viktor De Pasquale
ba588d1097
Updated position of quick links on superuser screen
2019-10-20 11:24:45 +02:00
Viktor De Pasquale
44f7c9a545
Added animations for toolbar transitions
2019-10-20 11:14:49 +02:00
Viktor De Pasquale
b910db322b
Fixed snackbar behavior in contrast with bottom navigation
2019-10-20 10:57:29 +02:00
Viktor De Pasquale
c44a942fb7
Added entry for safetynet attestation
2019-10-19 22:28:01 +02:00
Viktor De Pasquale
d713ad3499
Added "advanced" install options for installing magisk
2019-10-19 22:14:23 +02:00
Viktor De Pasquale
ddf40df649
Updated colors and elevation to be less distracting
2019-10-19 21:12:30 +02:00
Viktor De Pasquale
7c6d85221d
Updated policy items design
2019-10-19 21:07:06 +02:00
Viktor De Pasquale
b66b82a6e9
Added logic to superuser screen
2019-10-19 20:51:28 +02:00
Viktor De Pasquale
c44b85ea87
Fixed paddings on su screen
2019-10-19 18:29:48 +02:00
topjohnwu
a02493fbaa
Workaround R8 bug
2019-10-19 05:44:56 -04:00
Viktor De Pasquale
fcbf56e93a
Added superuser screen implementation
...
* partially
2019-10-18 19:38:55 +02:00
Viktor De Pasquale
a539ffb188
Updated styles due to low accessibility
2019-10-18 18:15:22 +02:00
Viktor De Pasquale
512f533a80
Added hide fragment for future use
2019-10-18 17:04:41 +02:00
Viktor De Pasquale
96ef9cdbee
Fixed insets not being implicitly asked for by the framework resulting in no coverage for other than main fragments
2019-10-18 16:39:08 +02:00
Viktor De Pasquale
28fcbbcf7b
Added basic preferences to settings
2019-10-17 19:26:35 +02:00
Viktor De Pasquale
0f4326151f
Added titles
2019-10-17 19:26:25 +02:00
Viktor De Pasquale
e0e27774ad
Added remaining stubs for the redesign
2019-10-17 18:57:00 +02:00
Viktor De Pasquale
1223b48b2c
Fixed dialog automatically dismissing itself
2019-10-17 15:52:52 +02:00
Viktor De Pasquale
d8338f0b48
Fixed event duplication
2019-10-17 15:47:11 +02:00
Viktor De Pasquale
38019f7f42
Added env check to homepage
2019-10-17 15:37:10 +02:00
topjohnwu
78daa2eb62
Do not use string resources for app label
...
This not only simplifies hiding stub APKs (no resource IDs involved),
but also opens the opportunity to allow users to customize whatever
app name they want after it is hidden.
2019-10-17 04:47:46 -04:00
topjohnwu
40eda05a30
Make main app fully independent from the stub
...
- Skip 0x7f01XXXX - 0x7f05XXXX resource IDs in the main app; they are
reserved for stub resources
- Support sending additional data from host to guest
- Use resource mapping passed from host when they are being sent
to the system framework (notifications and shortcuts)
2019-10-17 02:55:42 -04:00
topjohnwu
9f9de8c43b
Obfuscate WorkManager components
...
Remove unused components and hack the context sent into WorkManager
2019-10-16 17:03:55 -04:00
Viktor De Pasquale
23978ef4d2
Updated bottom padding for home fragment
2019-10-16 19:04:37 +02:00
Viktor De Pasquale
3b4cb23112
Fixed error in navigation implementation
2019-10-16 18:53:38 +02:00
Viktor De Pasquale
974cb1167f
Added post-merge fixes
2019-10-16 17:53:35 +02:00
Viktor De Pasquale
6ccbc272c6
Merge remote-tracking branch 'john/master' into feature/redesign
...
# Conflicts:
# app/build.gradle
# app/src/main/AndroidManifest.xml
# app/src/main/java/com/topjohnwu/magisk/model/events/ViewEvents.kt
# app/src/main/java/com/topjohnwu/magisk/model/navigation/MagiskNavigationEvent.kt
# app/src/main/java/com/topjohnwu/magisk/ui/SplashActivity.kt
# app/src/main/java/com/topjohnwu/magisk/ui/settings/SettingsFragment.kt
# app/src/main/java/com/topjohnwu/magisk/view/MagiskDialog.kt
# app/src/main/res/layout/dialog_magisk_base.xml
2019-10-16 17:33:54 +02:00
Viktor De Pasquale
0eb28c3265
Added navigation delegation to bypass default one
...
By making a delegate like such we protect ourselves against intrusions in views' logic
2019-10-16 17:27:11 +02:00
Viktor De Pasquale
2daa131fb2
Added layout behavior to dismiss toolbars when scrolling
2019-10-16 16:08:07 +02:00
Viktor De Pasquale
51247d36c5
Added disabled state for sections where unrooted user shouldn't have access
2019-10-16 15:47:41 +02:00
topjohnwu
a910c8ccd8
Support stub APK upgrades
2019-10-16 05:07:29 -04:00
topjohnwu
43bda2d4a4
Allow component classname obfuscation
2019-10-16 04:38:31 -04:00
topjohnwu
5673a9bace
Move system accessible resources to shared
2019-10-15 05:49:23 -04:00