Commit Graph

5409 Commits

Author SHA1 Message Date
31fe3a1cd8 Java keywords cannot be used as package/class name 2021-12-28 17:11:38 -08:00
19182ffddf If dt fstab contains error, fallback to default fstab
See https://cs.android.com/android/platform/superproject/+/master:system/core/init/first_stage_mount.cpp;drc=master;l=155

From the source of `FirstStageMount`, dt fstab can fail gracefully and
if any error occurs it will fall back to default fstab. Magisk now
replaces the default fstab and dt fstab unconditionally, bringing potential
errors to the default fstab and causing init fails to load partitions.
2021-12-28 17:10:52 -08:00
afcc60066e Fix toast 2021-12-27 12:17:35 -08:00
d3ade06421 Use InputStream transfer 2021-12-27 12:17:35 -08:00
f1a3ef9590 Update dependencies 2021-12-27 12:17:09 -08:00
d1d73f11a5 fix same text in Albania 2021-12-27 12:01:05 -08:00
05697372f8 Remove issues action
Handled by external MagiskBot
2021-12-25 17:26:03 -08:00
0c1f68816e Release new canary build 2021-12-14 21:40:40 -08:00
92546e8a74 Update Slovak translation 2021-12-14 21:25:58 -08:00
a4faa3f392 Update stub strings.xml path 2021-12-14 05:31:12 -08:00
df191cd2b5 Use AGP to compile resources 2021-12-14 05:30:15 -08:00
baa19f0ccf Rewrite app installation
Fix  #4960
2021-12-14 05:20:29 -08:00
5a49bd3ac9 Add OkHttp cache 2021-12-14 05:01:12 -08:00
b37d7e0500 Use default icon when failed to get app icon
Fix #5051
2021-12-14 04:58:18 -08:00
f4ed6274a4 Invert vbmeta header patching config
vbmeta header should not be patched in most cases
2021-12-14 04:52:25 -08:00
56eb1a1cf9 Load fstab from system/etc
Caused by this commit: e98afa2687

Fix #5057
2021-12-14 03:51:55 -08:00
a7c156a9e3 Further fix oplus.fstab support
* Further fix `oplus.fstab` support

In some oneplus devices, `oplus.fstab` does exists but `init` never
loaded it and those entries in `oplus.fstab` are written directly to
`fstab.qcom`. Previous implementation will introduce duplicate entries
to `fstab.qcom` and brick the device. This commit filters those entries
from `oplus.fstab` that are already in `fstab.qcom` and further filters
duplicated entries in `oplus.fstab` (keep only the last entry).

Fix #5016

* Fix UB

Since we moved entry, we need to explicitly copy its member.
For c++23 we can use `auto{}`.
2021-12-14 03:40:23 -08:00
d81ca77231 Update gradle/wrapper/gradle-wrapper.properties 2021-12-14 03:36:01 -08:00
bf013f6ebb Fix Build 2021-12-14 03:36:01 -08:00
dd8116e285 Update Dependencies 2021-12-14 03:36:01 -08:00
b5d80a88d1 Only care about mount namespace isolating 2021-12-14 03:08:55 -08:00
7f4f95cf83 Fix certificate start time 2021-12-14 03:07:38 -08:00
87c2f6ad14 xhook_clear after xhook_refresh 2021-12-14 03:06:57 -08:00
ad47dba064 Rename magiskVersion* -> version* 2021-12-14 03:01:11 -08:00
41b701846f ensureEnv even if getRemote fails
Co-authored-by: vvb2060 <vvb2060@gmail.com>
2021-12-14 02:57:58 -08:00
5c42830328 l10n: Fix typo of chinese Simplified translations 2021-12-14 02:52:38 -08:00
69617309f8 English language string fixes 2021-12-14 02:51:54 -08:00
48e2d6a8da Simplify several hacks 2021-12-13 19:48:17 -08:00
b4120cddfb IODispatcherExecutor -> DispatcherExecutor 2021-12-13 04:05:42 -08:00
54e3f1998a Support RootService on stub APKs 2021-12-13 04:05:42 -08:00
edcf9f1b0c Introduce RootServices to the app 2021-12-13 04:05:42 -08:00
de3747d65e Copy APK from external storage in stub
Much faster and easier development
2021-12-13 04:05:42 -08:00
b76a3614da Fix isolated process comparisons 2021-12-10 04:35:38 -08:00
94cc64c51b Update dependencies 2021-12-10 04:32:16 -08:00
0f71edee96 magisk: README: Correct string path for stub
Signed-off-by: HeroBuxx <herobuxx@conqueros.co>
2021-12-01 21:20:24 -08:00
e097c097fe Rename persist_properties.cpp -> persist.cpp 2021-11-30 01:58:31 -08:00
1443a5b175 Use mmap_data more widely 2021-11-30 01:50:55 -08:00
2d82ad93dd Macro -> template 2021-11-29 19:56:37 -08:00
384c257a74 Disable CompatVectorFromResources 2021-11-29 00:06:28 -08:00
49dfa2c3a0 Fix update from notification will fail 2021-11-29 00:05:54 -08:00
7bd3e768db Remove bytecode compatibility workaround 2021-11-29 00:05:20 -08:00
65224ed22b Fix NPE when apk could not be parsed 2021-11-29 00:04:51 -08:00
0a28dfe1e2 AVB blobs expect to be 4096-byte aligned 2021-11-28 13:21:05 -08:00
1c8ebfacb0 Release new canary build 2021-11-23 22:39:15 -08:00
5d6d241791 Update VN strings.xml 2021-11-23 22:24:51 -08:00
4f116d15b9 Fix PT-rBR translation
Some translation fixes.
2021-11-23 22:24:22 -08:00
228570640e Introduce KEEPVBMETAFLAG env variable
Close #4447, close #4906, close #4901, close #4964
2021-11-23 22:14:12 -08:00
65a79610aa Fix crash and warnings 2021-11-23 18:46:06 -08:00
24984ea4f2 Optimize stream for full-file writes 2021-11-23 18:08:14 -08:00
048b2af0fc Improve zopfli encoder
Write in chunks for CLI compression
2021-11-23 16:50:08 -08:00