topjohnwu
6066b5cf86
Release Magisk v25.2
2022-07-20 20:13:26 -07:00
topjohnwu
5cdf95a4d0
Update v25.2 docs
2022-07-20 20:09:02 -07:00
topjohnwu
910a36fdc1
Make sepolicy.rules relative if possible
2022-07-20 19:28:38 -07:00
topjohnwu
8331206acb
Clean only java projects when clean java
2022-07-20 11:20:03 -07:00
canyie
8423dc8d63
Later check persistent_properties
...
`daemon_entry` calls `getprop` which initializes sysprop impl and checks whether we need to load persistent property file. On FDE devices, magiskd starts before /data is actually decrypted, and the check always fails. Thus `persist_getprop("persist.sys.safemode")` will always fail.
2022-07-20 09:58:20 -07:00
Yann
6077c989a7
app: fix typo
2022-07-20 03:34:48 -07:00
topjohnwu
c97d1044fa
Release new canary build
2022-07-19 17:44:19 -07:00
Hen_Ry
f42c089b26
Fix
2022-07-18 13:34:14 -07:00
Andrew Gunnerson
1f8c063dc6
Fix booting into recovery with Android 13 GKI kernels
...
With Android 13 GKI kernels, the boot partition has no ramdisk, so
Magisk constructs one from scratch. In this scenario, there's no backup
init binary at /.backup/init. For normal boot, magiskinit will symlink
/init -> /system/bin/init if needed. This commit implements the same
for booting into recovery. Before, magiskinit would just exec itself
over and over again because it couldn't restore the backup init.
Signed-off-by: Andrew Gunnerson <chillermillerlong@hotmail.com >
2022-07-18 13:33:50 -07:00
Hen_Ry
4874520d65
Update german translation
2022-07-14 12:32:55 -07:00
Nguyen Hoang The Vi
5e53639969
Add Bengali translation
2022-07-14 12:32:33 -07:00
Grammatopoulos Apostolos
83ab0ca6cd
Greek translation updated
2022-07-14 12:31:47 -07:00
topjohnwu
70fd03d5fc
Rearchitect logging
2022-07-06 01:16:08 -07:00
topjohnwu
2e52875b50
Move all logging into Rust
2022-07-05 21:13:09 -07:00
topjohnwu
fd9b990ad7
Update to ONDK r24.2
2022-07-05 01:34:48 -07:00
LONE DEVIL
69978a9442
Update russian translation
2022-07-01 15:16:44 -07:00
残页
d155da52ce
More friendly and clear error message
2022-07-01 15:15:54 -07:00
Weslley Almeida
9c5b131913
Update Brazilian translation
2022-07-01 15:15:07 -07:00
Syuugo
9d740cec1a
Partially fixed Japanese translation
2022-07-01 15:14:18 -07:00
vvb2060
c2978eb9c3
More log for get_manager
2022-07-01 15:13:38 -07:00
vvb2060
38abad1e44
Fix app state
2022-07-01 15:12:50 -07:00
topjohnwu
b4863eb51b
Setup logging infra in the Rust side
2022-07-01 04:54:00 -07:00
LoveSy
3817167ba1
Correct ro.crypto.state check
...
Fix #6042
Co-authored-by: vvb2060 <vvb2060@gmail.com >
2022-06-30 19:32:43 -07:00
topjohnwu
d1a35dd2ba
Fix cargo builds on Windows
2022-06-30 18:12:07 -07:00
topjohnwu
26116ac414
Setup preliminary rust infrastructure
2022-06-30 14:50:21 -07:00
topjohnwu
0b26882fce
Build dynamic stub resource APK at runtime
...
Close #6013
Co-authored-by: vvb2060 <vvb2060@gmail.com >
2022-06-22 05:19:27 -07:00
Nicolás
a2495fb5fb
Update spanish translations
2022-06-22 04:08:52 -07:00
vvb2060
0beb3bf16a
Make CI builds reproducible
2022-06-22 04:08:18 -07:00
vvb2060
b68658e974
Rebuild manifest
2022-06-22 04:06:22 -07:00
LoveSy
3ae7344747
Create /dev on stub cpio
2022-06-22 04:05:50 -07:00
topjohnwu
4eb71830b3
Release new canary build
2022-06-19 03:24:36 -07:00
topjohnwu
9183a0a6ea
Update README
2022-06-19 03:06:14 -07:00
topjohnwu
bb64ba0ef6
Release Magisk v25.1
2022-06-19 02:54:22 -07:00
topjohnwu
d89a568897
Update v25.1 docs
2022-06-19 02:35:05 -07:00
topjohnwu
9fd1f41e8b
Always relaunch process after package migration
2022-06-19 02:09:14 -07:00
孟武.尼德霍格.龍
c1ab348673
Improve Traditional Chinese strings
...
Co-authored-by: John Wu <topjohnwu@gmail.com >
2022-06-19 01:50:43 -07:00
canyie
00247c7901
Fix meizu non-SAR 2SI compatibility again
...
Meizu devices using 2SI won't switch root to /system and still on rootfs, and /init is the 1st stage's, which cannot handle the 2nd stage. So we have to manually execute /system/bin/init for the 2nd stage.
2022-06-19 01:22:18 -07:00
topjohnwu
3c75f474c6
Embed version info in prop format
2022-06-19 00:43:38 -07:00
topjohnwu
db1f5b0397
Reduce files relying on flags.h
2022-06-19 00:43:38 -07:00
fadlyas07
db277c3e55
app: l10n: Update Indonesian translations
...
* Added new strings based on the recent source.
* Fixed some words based on Indonesian National Dictionary (KBBI).
Link: https://kbbi.kemdikbud.go.id
Signed-off-by: fadlyas07 <mhmmdfdlyas@gmail.com >
2022-06-18 10:43:25 -07:00
vvb2060
b9c93c66f6
Force app version not lower than daemon
2022-06-17 11:53:16 -07:00
vvb2060
a250e2b56c
Set version comment in apk
2022-06-17 11:53:16 -07:00
残页
cd96454886
Fix finding recovery image on direct install
...
Fix #5972 , fix #5673
2022-06-17 02:53:18 -07:00
topjohnwu
741b679306
Cleanup libbase
2022-06-17 02:36:04 -07:00
topjohnwu
90013e486d
Use AtomicBoolean
2022-06-17 02:03:09 -07:00
LoveSy
4e2ecdb920
Fix env overflow
...
Fix #5989
2022-06-17 02:02:44 -07:00
topjohnwu
6e5df1f06b
Abort when unsupported dtb is detected
2022-06-16 01:47:23 -07:00
topjohnwu
9469e79e3c
Proper namespacing
...
The IDE will get confused when #include is in a namespace
2022-06-15 02:38:56 -07:00
topjohnwu
db78c20161
Add dtb test command
2022-06-15 02:26:50 -07:00
topjohnwu
1699da1754
Update help message and make behavior consistent
2022-06-14 21:19:17 -07:00
canyie
754e690274
Fix config backup for legacy SAR
2022-06-14 02:57:47 -07:00
topjohnwu
6f74ed6ceb
Cleanup manager.sh
2022-06-13 01:21:24 -07:00
canyie
71205bc530
Anchor Snackbar above reboot FAB in FlashFragment
2022-06-12 11:00:36 -07:00
Chris Renshaw
10e236abdf
scripts: fix remaining instances of && ||
...
Looks like I may have missed this in ce84f1762c originally
2022-06-12 11:00:09 -07:00
残页
2248af00f3
Fix #5673
...
util_functions.sh overrides `get_flags` function (defined in manager.sh), which sets `RECOVERYMODE` and causes `check_boot_ramdisk` not overriding the incorrect value.
2022-06-12 00:32:34 -07:00
topjohnwu
7e61716277
Update Kotlin to 1.7.0
2022-06-11 03:41:02 -07:00
topjohnwu
50edb8d072
Better network detection and invalidation
2022-06-10 04:25:34 -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
CDzungx
20124fe410
Update vi translation
2022-06-09 21:03:26 -07:00
Softastur
f8dcec116a
Fix Asturian translation
2022-06-09 21:03:09 -07:00
Ilya Kushnir
343a339aae
Update RU strings (fix)
2022-06-09 21:02:45 -07:00
vvb2060
42606efe56
Always remove task
2022-06-09 21:02:31 -07:00
vvb2060
cae58c8790
Update hijack bins
2022-06-08 23:30:22 -07:00
topjohnwu
3a39dd4049
Update ramdisk restore implementation
2022-06-08 23:23:39 -07:00
canyie
89ff3c6572
Don't backup ramdisk created by Magisk
...
Fix topjohnwu#5938, fix topjohnwu#5944
2022-06-08 04:53:43 -07:00
topjohnwu
7bf9c74216
Don't skip backup even if original does not exist
...
Close #5945 , fix #5944
2022-06-08 03:58:25 -07:00
topjohnwu
e2f3753551
Release new canary build
2022-06-07 03:36:21 -07:00
topjohnwu
cacf873645
Release Magisk v25.0
2022-06-07 03:11:29 -07:00
NeoHBz
11e1e7ee36
updated: hi translations, matched with source
2022-06-07 02:58:43 -07:00
vvb2060
87801b6f23
Fix mv file when install module
2022-06-07 02:46:16 -07:00
topjohnwu
7ce4789e17
Add v25.0 release notes
2022-06-07 02:44:26 -07:00
topjohnwu
9dc6d9afce
Restore AVD after testing
2022-06-07 01:06:27 -07:00
MCPEngu
d6a5354bff
fix typo
2022-06-07 01:00:39 -07:00
Ilya Kushnir
07af37475b
Update RU strings
2022-06-07 00:08:10 -07:00
Oliver Cervera
1b9c273b10
Italian translation update
2022-06-07 00:07:52 -07:00
AndroPlus-org
262c52db56
Update Japanese translation
2022-06-07 00:06:31 -07:00
topjohnwu
eb777296d4
Suppress AppLinkUrlError
2022-06-06 05:26:53 -07:00
topjohnwu
fc70a384d3
Release new canary build
2022-06-06 03:43:23 -07:00
vvb2060
34b2f525a3
Update proguard-rules.pro
2022-06-06 02:59:57 -07:00
vvb2060
569e9ad937
Use noHistory attribute for SuRequestActivity
2022-06-06 02:58:52 -07:00
vvb2060
c495b3d183
Remove request uninstall code
...
unreachable
2022-06-06 02:51:11 -07:00
Softastur
8b16bfbb54
Add Asturian language support
2022-06-06 01:22:05 -07:00
Arbri çoçka
b2f1fd9966
update albania
2022-06-06 00:36:22 -07:00
topjohnwu
317153c53a
Better stub launch flow
2022-06-05 19:15:43 -07:00
topjohnwu
fa60daf9b5
Verify caller before uninstallation
2022-06-05 07:03:26 -07:00
canyie
aadb2d825c
Also set snackbar container for FlashFragment
2022-06-05 05:36:04 -07:00
kubalav
0e7fe537e3
Update Slovak translation
2022-06-05 05:35:39 -07:00
VD $ VD171 @ Priv8
409de3ac44
Update Portugueses Translations
2022-06-05 05:34:45 -07:00
RV7PR
759055eaa5
Replace logo
2022-06-05 05:34:19 -07:00
topjohnwu
9016e6727d
Fix stub app loading on older Android versions
2022-06-05 01:09:30 -07:00
残页
a3381da7ed
Bypass DexFile's security check for RootService ( #5911 )
...
Old Android (pre 8.0) enforces `optimizedDirectory` to have the same uid with the process. If repackaged, root service (uid=0) will crash when trying to load current.apk. So we set `optimizedDirectory` to null to bypass the check.
2022-06-04 04:21:57 -07:00
topjohnwu
351e094440
Release new canary build
2022-06-03 03:38:12 -07:00
残页
2106751ea4
Fix SnackBar shows behind window insets
2022-06-03 03:21:56 -07:00
vvb2060
7ae3cd1c43
Fix D-pad navigation on android 8-
2022-06-03 03:03:41 -07:00
topjohnwu
edfd4dcddf
Fix kotlin jvmTarget
2022-06-03 01:13:29 -07:00
topjohnwu
fb89cf1367
Fix typo
2022-06-03 00:25:10 -07:00
Rom
b7b345cf8a
Update FR translation
2022-06-02 23:47:11 -07:00
残页
0be487e47e
Update zh-rCN translation
2022-06-02 23:45:54 -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
9ab7550970
Use weak reference to track activity
2022-06-02 02:18:11 -07:00
topjohnwu
47e7a0a434
Update libsu
2022-06-02 02:04:35 -07:00
RikkaW
4cc5e9f986
Let module remove button support disable state
2022-06-01 09:04:47 -07:00
RikkaW
6a2ae89846
Fix card view background color on API 21 & 22
2022-06-01 09:04:35 -07:00
残页
3c93539e02
Fix log save
2022-06-01 03:10:07 -07:00
topjohnwu
05e5ac2ad2
Bump min version to v22
2022-06-01 03:05:29 -07:00
topjohnwu
10b1782732
Update version gating
2022-06-01 03:01:56 -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
8186f253e8
Fix zygisk code unloading
2022-06-01 01:50:42 -07:00
topjohnwu
d4fe8632ec
Support SELinux disabled on debug builds
2022-05-31 22:24:13 -07:00
vvb2060
d7776f6597
Return empty on failure to get context
2022-05-31 18:35:56 -07:00
残页
3219d945f5
Prevent multi animators setting property concurrently
...
It crashes on Android 5.0 (API 21) platform.
Fix topjohnwu#5793
2022-05-31 18:35:40 -07:00
Takeda-senpai
8a73a16029
Update VN translation
2022-05-30 23:46:53 -07:00
VD $ VD171 @ Priv8
ce90f9b60d
Update Portugueses Translations by VD171
...
Update Portugueses Translations by VD171
2022-05-30 23:46:33 -07:00
VD $ VD171 @ Priv8
bdf54d562f
Update Portugueses Translations by VD171
...
Update Portugueses Translations by VD171
2022-05-30 23:46:33 -07:00
Rom
e744cc8ea6
Update French translation
2022-05-30 23:46:11 -07:00
Ilya Kushnir
babcf36495
Update RU strings
2022-05-30 23:45:59 -07:00
topjohnwu
e4094c0caa
Update build scripts
2022-05-30 03:47:31 -07:00
topjohnwu
2e51fe20a1
Move things to the correct location
2022-05-30 02:09:07 -07:00
vvb2060
c29636c452
Update zh-rTW translation
2022-05-30 01:54:12 -07:00
vvb2060
22017a5543
Update zh-rCN translation
2022-05-30 01:54:12 -07:00
topjohnwu
50e2f33d1c
More debug indication in UI
...
Close #5874
2022-05-30 01:53:07 -07:00
topjohnwu
5e6eb8dd01
Avoid non-blocking I/O
2022-05-30 01:21:38 -07:00
topjohnwu
18acb97dfe
Make SYSTEM_UID a special case
2022-05-30 00:49:42 -07:00
topjohnwu
bf2f823b8c
Prune unused UID at boot
2022-05-29 23:43:22 -07:00
topjohnwu
d0c4226997
Proper package state management
2022-05-29 23:31:57 -07:00
topjohnwu
4ea8bd0229
Fix incorrect use of compare_exchange
2022-05-29 22:19:56 -07:00
topjohnwu
ee0d58a9b8
Release new canary build
2022-05-29 11:24:39 -07:00
topjohnwu
bf04fa134b
Indicate debug builds
...
Close #5859
2022-05-29 11:14:39 -07:00
Arbri çoçka
297662cafb
update Albanian
2022-05-29 11:03:23 -07:00
kubalav
f464a9b269
Update Slovak translation
2022-05-29 11:03:11 -07:00
vvb2060
d19fcd5e21
Check path when start daemon
2022-05-29 09:08:05 -07:00
topjohnwu
c0981174a8
Use LiveData instead of Observable
2022-05-29 03:57:42 -07:00
vvb2060
0b5f973b31
Print message when getting original app_process fails
2022-05-29 03:46:31 -07:00
topjohnwu
4159b3871c
Fix #5867
2022-05-29 02:49:38 -07:00
南宫雪珊
580c993c0b
Display module status
2022-05-29 01:40:20 -07:00
canyie
0cc29350a0
Navigate only if user has not left the fragment
2022-05-28 22:40:09 -07:00
topjohnwu
490a784993
Handle zygote restarts
2022-05-28 22:39:44 -07:00
topjohnwu
9c774f96db
Use exec for boot_complete
2022-05-28 16:53:04 -07:00
topjohnwu
99afe7ac07
Update AGP
2022-05-28 04:46:58 -07:00
topjohnwu
b3f05fd925
Update setup
2022-05-27 00:44: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
edb76503d3
Update README
2022-05-24 06:13:51 -07:00
topjohnwu
484038638f
Release new canary build
2022-05-24 05:56:59 -07:00
topjohnwu
8dfb30fefe
Skip cert check on debug builds
2022-05-24 05:39:16 -07:00
topjohnwu
2a252d13b8
Enforce dyn APK signature in stub app
2022-05-24 05:21:36 -07:00
topjohnwu
afa364cfc3
Update dependencies
2022-05-22 20:11:24 -07:00
topjohnwu
dfa36fb25d
Move things around
2022-05-22 19:36:47 -07:00
topjohnwu
c8492b0c58
Use official APIs to load dynamic resources
2022-05-22 19:20:24 -07:00
topjohnwu
083ef803fe
Enforce package signature verification
2022-05-20 04:37:58 -07:00
topjohnwu
351f0269ae
Install stub if necessary
2022-05-19 22:54:49 -07:00
topjohnwu
a29ae15ff7
Proper get_manager implementation
2022-05-19 02:39:57 -07:00
topjohnwu
34dded3b25
Fix denylist on shared UID apps
2022-05-18 01:59:45 -07:00
topjohnwu
975b1a5e36
Prune unused UIDs from su policies
2022-05-18 01:55:58 -07:00
vvb2060
e11508f84d
Respond deny when pkg name not found
2022-05-16 20:44:18 -07:00
topjohnwu
0772f6dcaf
Fix debug channel preference not persisting
2022-05-16 20:16:50 -07:00
topjohnwu
d3fe3a711a
Release new canary build
2022-05-15 01:35:02 -07:00
topjohnwu
756d8356ca
Show canary channel option on canary builds
2022-05-15 01:28:49 -07:00
topjohnwu
42003b4006
Release new canary build
2022-05-15 01:14:07 -07:00
topjohnwu
dc65a2b884
Introduce new debug channel
2022-05-15 01:01:54 -07:00
topjohnwu
071ae79fa8
Release new canary build
2022-05-13 04:34:27 -07:00
topjohnwu
c11ccbae2d
Extract vbmeta from footer
...
Do not scan manually, extract properly from footer like libavb
2022-05-13 02:49:18 -07:00
topjohnwu
6ef86d8d20
Release new canary build
2022-05-12 03:16:16 -07:00
topjohnwu
985249c3d0
Support GKIs without ramdisk
...
Fix #5819
2022-05-12 03:04:55 -07:00
topjohnwu
622e09862a
Restructure native codebase
2022-05-12 02:03:51 -07:00
残页
7505599ea0
Skip invalid slot_suffix argument
...
Many Amlogic devices (e.g. FireTV 2nd gen Cube, Vero 4k+, MI Smart Speaker, etc.) are A-only with androidboot.slot_suffix=normal argument. I think "normal" actually means A-only in this case so just ignore it.
Fix topjohnwu#5806
2022-05-12 00:37:22 -07:00
topjohnwu
575c417403
More detailed comments and documentation
2022-05-11 21:12:37 -07:00
topjohnwu
9f7a3db8be
Move cert extraction to its own file
2022-05-11 21:12:37 -07:00
topjohnwu
029422679c
Remove enforcement
...
Enforcement will be re-implemented later
2022-05-11 21:12:37 -07:00
vvb2060
05d6d2b51b
Verify app signature
2022-05-11 21:12:37 -07:00
capntrips
4cff0384f7
Remove temporary note about OTA update no longer working
2022-05-10 00:11:34 -07:00
vvb2060
68db366696
Delete outdated policies
2022-05-10 00:11:17 -07:00
南宫雪珊
358538717c
Reduce number of loop
2022-05-10 00:10:26 -07:00
topjohnwu
24603b3cef
Update Android Studio
2022-05-09 20:53:47 -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
vvb2060
0469f0b5ae
Add uid check for getAppProcess
2022-05-08 04:51:39 -07:00
vvb2060
0b8577d02b
Set tag for root service
2022-05-08 00:39:37 -07:00
Rei Ryuki
97135879a1
Fix sepolicy rules dir is not found in recovery
2022-05-07 02:43:26 -07:00
vvb2060
fef41f68c0
Update dependencies
2022-05-07 02:42:20 -07:00
topjohnwu
0ac19e3a4e
Fix app running without root
2022-05-07 01:16:55 -07:00
topjohnwu
2793d209a4
Allow requesting root from non app process
2022-05-07 00:46:23 -07:00
topjohnwu
71e9c044e6
Release new canary build
2022-05-06 01:57:24 -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
topjohnwu
90545057e9
Always initialize module_list
...
Close #5712
2022-05-06 01:40:19 -07:00
vvb2060
cffd024e9e
Ignore the response until showDialog done
2022-05-06 01:04:28 -07:00
人工知能
8c858592c4
Update strings.xml
...
Update and fix translations.
2022-05-06 01:03:50 -07:00
canyie
4f1a1879e5
Misc QoL changes
...
- su: Preserve correct capacity to avoid vector reallocation
- su: Properly format code
- daemon: Remove useless `if`
- docs: Remove outdated info
2022-05-06 01:01:58 -07:00
JumbomanXDA
e88eed9a8d
Update util_functions.sh
2022-05-06 00:03:38 -07:00
RikkaW
9581ae8245
Use Locale.ROOT in JcaX509v3CertificateBuilder (X509v3CertificateBuilder)
...
Or in languages like Arabic, an "IllegalArgumentException: invalid date string" will be thrown.
Since JcaX509v3CertificateBuilder does not accepts Locales, we must switch to its super class, X509v3CertificateBuilder.
2022-05-06 00:03:01 -07:00
vvb2060
4202b7a9dc
Enable gms provider for stub
2022-05-06 00:00:41 -07:00
LoveSy
b4c398542a
Fix signboot signature
2022-05-06 00:00:20 -07:00
topjohnwu
081148b2d7
Update dependencies
2022-05-04 22:00:48 -07:00
topjohnwu
a32c4561ed
Release new canary build
2022-05-03 01:38:43 -07:00
topjohnwu
cc79a96fa3
Update libsu
2022-05-03 01:25:26 -07:00
topjohnwu
ff340ce3d8
Suppress verbose output to stderr
2022-04-29 04:57:28 -07:00
topjohnwu
134508193d
Mock selinuxfs load with regular file
...
The hijacked load node does not need to be a FIFO. A FIFO is only
required for blocking init's control flow, which is already achieved
by hijacking the enforce node.
2022-04-16 07:28:20 -07:00
topjohnwu
c2b74aa83e
Update avd_test.sh
2022-04-16 07:28:20 -07:00
topjohnwu
3358eab991
Switch to use ONDK
2022-04-15 12:20:18 -07:00
残页
a609e0aad4
Update tools.md
...
magiskpolicy is no longer an applet of magiskinit
2022-04-13 23:19:36 -07:00
vvb2060
f97866a961
Close stub fd
2022-04-13 23:19:14 -07:00
vvb2060
e1987c42c4
Cleanup SELinux mock files
2022-04-13 23:18:55 -07:00
canyie
18566715e1
Fix MAGISKTMP unmount for CLI
2022-04-10 01:44:16 -07:00
topjohnwu
79f0f3230c
Release new canary build
2022-04-08 02:51:25 -07:00
topjohnwu
63a89d9f04
Fix init dmesg logs
2022-04-08 02:38:30 -07:00
南宫雪珊
f639f39e79
More friendly info
2022-04-08 02:26:11 -07:00
canyie
b4099fc5f9
Support sepolicy.unlocked
...
Fix topjohnwu#4914
2022-04-08 02:24:20 -07:00
topjohnwu
ff2513e276
Use LD_PRELOAD to intercept sepolicy on 2SI init
2022-04-08 02:13:31 -07:00
topjohnwu
f24d52436b
Deduplicate logic
2022-04-08 00:20:21 -07:00
vvb2060
9de6e8846b
Dump stub app to MAGISKTMP/stub.apk
2022-04-07 23:20:42 -07:00
vvb2060
01a1213463
/data/adb/magisk/magisk.apk no longer exists
2022-04-07 23:20:42 -07:00
vvb2060
f0fbd9214a
Remove test key
2022-04-07 21:49:15 -07:00
hnliuzesen
c4f37c550f
Update internal details
2022-04-06 21:15:28 -07:00
canyie
448384af06
Guard su request IPC
...
Previously `read_string()` calls `std::string.resize()` with a int read from remote process. When I/O error occurs, -1 will be used for resizing the string, `std::bad_alloc` is thrown and since magisk is compiled with `-fno-exceptions`, it will crash the whole daemon process.
May fix topjohnwu#5681
2022-04-06 21:15:07 -07:00
canyie
3f840f53a0
Check device tree fstab entries are compatible
...
Fix topjohnwu#5664
2022-04-02 04:28:30 -07:00
Lishoo
d8718d8ac8
Update polish strings
2022-04-02 04:27:11 -07:00
vvb2060
2fb46a11dc
Check MAGISKBIN/magiskpolicy
2022-04-02 04:26:47 -07:00
vvb2060
9a11412719
Fix superuser snackbar text
2022-04-02 04:26:21 -07:00
topjohnwu
98874be171
Release new canary build
2022-03-30 01:58:36 -07:00
topjohnwu
704f91545e
Reorganize magiskpolicy source code
2022-03-29 22:26:38 -07:00
topjohnwu
efb3239cbd
Drop package_name column
2022-03-28 02:05:09 -07:00
topjohnwu
7e7ddeb9e2
Cleanup database migration code
2022-03-28 00:59:16 -07:00
LoveSy
9e8218089b
Only dlopen valid fd
2022-03-26 13:48:53 -07:00
VD $ VD171 @ Priv8
3f660a3963
Fix Portuguese & PT-Brazilian Translations
2022-03-26 13:48:23 -07:00
VD $ VD171 @ Priv8
daeb6711b0
Fix Portuguese & PT-Brazilian Translations
2022-03-26 13:48:23 -07:00
CDzungx
4e1aec28a0
Update Vietnamese Translation
...
Quick fix: Yes - "Đồng ý" -> "Có" to be more versatile.
2022-03-26 13:47:10 -07:00
vvb2060
5512917ec1
Hide incorrect "Factory data reset" message
2022-03-26 13:46:01 -07:00
vvb2060
cd1edc5d56
Use svc for reboot to recovery
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
d7ee4ef5f5
Fix SQL command syntax
2022-03-26 00:36:01 -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
f2c15c7701
Ensure RootService is launched
2022-03-23 18:44:05 -07:00
topjohnwu
e67d0678f9
Use viewModelScope instead of GlobalScope
2022-03-23 18:03:41 -07:00
topjohnwu
b1faa5eed4
Update BusyBox
...
Close #5620
2022-03-22 04:18:12 -07:00
LoveSy
7f1f0b9048
Proper support multiple modules adding same dir
2022-03-21 15:53:49 -07:00
LoveSy
183e5f2ecc
Fix xhook cannot hook app_process
...
Co-authored-by: canyie <31466456+canyie@users.noreply.github.com >
Co-authored-by: John Wu <topjohnwu@gmail.com >
2022-03-21 15:52:38 -07:00
topjohnwu
14efe4939a
Release new canary build
2022-03-21 00:35:25 -07:00
topjohnwu
3dc7d77ea9
Patch monolithic sepolicy only if not treble
2022-03-19 20:21:31 -07:00
残页
0f07bbb3e5
Device using split policy can still have monolithic sepolicy file
2022-03-19 12:37:48 -07:00
LoveSy
dd5a3416bf
Fix multiple modules adding the same subdirectory
2022-03-19 12:28:54 -07:00
LoveSy
2fb49ad780
Don't always mock selinux enforce as "0"
2022-03-19 12:28:32 -07:00
topjohnwu
92f0e53fee
Release new canary build
2022-03-18 05:05:17 -07:00
topjohnwu
876132694d
Make /dev always writable
2022-03-18 04:58:37 -07:00
topjohnwu
1257ba41c6
Add MagiskInit AVD automation test
2022-03-18 04:56:19 -07:00
topjohnwu
2cc71ac7ed
Release new canary build
2022-03-18 01:56:19 -07:00
topjohnwu
753808a4ce
Also hijack plat_file_contexts if necessary
...
Since Android 13, sepolicy are also loaded from APEX modules. Part
of the change is to run restorecon before SELinux is set to enforce.
In order to support this situation, we also hijack plat_file_contexts
if necessary to properly order our operations.
Original idea credits to @yujincheng08, close #5603
2022-03-18 00:46:34 -07:00
topjohnwu
32cd694ad5
SAR can also have monolithic sepolicy
2022-03-17 22:32:49 -07:00
topjohnwu
f008420891
Make magiskinit not magiskpolicy
2022-03-17 03:36:40 -07:00
topjohnwu
fa8900be65
Use standalone magiskpolicy
2022-03-17 03:15:39 -07:00
LoveSy
69c2f407d6
Log if failed to dlopen a zygisk module
2022-03-17 02:25:31 -07:00
topjohnwu
ffcd093db1
Fix #5589
...
Close #5598
2022-03-17 02:25:31 -07:00
topjohnwu
8dbf93750f
Reorganize magiskinit code
2022-03-16 21:41:20 -07:00
topjohnwu
e266a81167
Remove unused code
2022-03-16 21:31:22 -07:00
topjohnwu
e841aab9e7
Add hijack sepolicy support for rootfs devices
...
On older Android versions, pre-mounting selinuxfs will lead to errors,
so we have to use a different method to block init's control flow.
Since all devices that falls in this catagory must both:
1. Be Android 8.0 - 9.0
2. Have early mount fstab in its device tree
We can actually use the same FIFO trick, but this time not on selinuxfs,
but on the read-only device tree nodes in sysfs or procfs. By mocking
the fstab/compatible node in the device tree, we can block init when
it attempts to do early mount; at that point, we can then mock selinuxfs
as we normally would, successfully hijack and inject patched sepolicy.
2022-03-16 20:01:28 -07:00
topjohnwu
49f259065d
Introduce new sepolicy injection mechanism
...
In the current implementation, Magisk will either have to recreate
all early mount implementation (for legacy SAR and rootfs devices) or
delegate early mount to first stage init (for 2SI devices) to access
required partitions for loading sepolicy. It then has to recreate the
split sepolicy loading implementation in-house, apply patches, then
dump the compiled + patched policies into monolithic format somewhere.
Finally, it patches the original init to force it to load the sepolicy
file we just created.
With the increasing complexity involved in early mount and split
sepolicy (there is even APEX module involved in the future!),
it is about time to rethink Magisk's sepolicy strategy as rebuilding
init's functionality is not scalable and easy to maintain.
In this commit, instead of building sepolicy ourselves, we mock
selinuxfs with FIFO files connected to a pre-init daemon, waiting
for the actual init process to directly write the sepolicy file into
MagiskInit. We then patch the file and load it into the kernel. Some
FIFO tricks has to be used to hijack the original init process's
control flow and prevent race conditions, details are directly in the
comments in code.
At the moment, only system-as-root (read-only root) support is added.
Support for legacy rootfs devices will come with a follow up commit.
2022-03-16 00:31:55 -07:00
topjohnwu
b10379e700
Cleanup inheritance
2022-03-14 04:22:09 -07:00
topjohnwu
810d27a618
Use /data as tmpfs mount point in 2SI setup
...
Design credit to @yujincheng08
Close #5146 . Fix #5491 , fix #3752
Previously, Magisk changes the mount point from /system to /system_root
by patching fstab to prevent the original init from changing root.
The reason why we want to prevent the original init from switching the
root directory is because it will then be read-only, making patching
and injecting magiskinit into the boot chain difficult.
This commit (ab)uses the fact that the /data folder will never be part
of early mount (because it is handled very late in the boot by vold),
so that we can use it as the mount point of tmpfs to store files.
Some advantages of this method:
- No need to switch root manually
- No need to modify fstab, which significantly improves compatibility
e.g. avoid hacks for weird devices like those using oplus.fstab,
and avoid hacking init to bypass fstab in device trees
- Supports skip_mount.cfg
- Support DSU
2022-03-13 05:06:08 -07:00
topjohnwu
9b60c005c7
Support multiple CPIO concatenated
2022-03-13 04:23:00 -07:00
topjohnwu
cc6ca0bda2
Update README
2022-03-10 00:45:51 -08:00
topjohnwu
4512232637
Release new canary build
2022-03-10 00:44:42 -08:00
topjohnwu
2c092ffdef
Release Magisk v24.3
2022-03-10 00:32:07 -08:00
topjohnwu
66406227d6
Add v24.3 release notes
2022-03-10 00:24:02 -08:00
topjohnwu
a11d25bb44
Update libsu
2022-03-10 00:00:11 -08:00
VD $ VD171 @ Priv8
2e58d902b7
Update Portuguese Portugal Translation & Fix Portuguese Brazilian Translation by VD171
2022-03-09 20:44:33 -08:00
vvb2060
237794b05c
Add root install back
2022-03-09 20:44:11 -08:00
topjohnwu
563a587882
Initialize local variables
...
Fix #5542
2022-03-09 20:43:42 -08: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
0c681cdab4
Check null before dereferencing fds_to_ignore
2022-03-03 21:34:53 -08:00
VD $ VD171 @ Priv8
13ef3058c6
Update Portuguese Brazilian Translation by VD171
...
Update Portuguese Brazilian Translation by VD171
2022-03-03 10:36:45 -08:00
vvb2060
50b159b43d
Add init_boot parition
2022-03-02 22:50:05 -08:00
Rom
8c6c328730
Update French translation
2022-03-02 22:48:24 -08:00
sn-o-w
c9812ddf08
Update Romanian
2022-03-02 22:48:07 -08:00
owen151128
2ef0449c2c
Update Korean translation
2022-03-02 22:33:52 -08:00
Ilya Kushnir
5edc750c47
Update RU strings
2022-03-02 22:33:21 -08:00
vvb2060
2f0e396d7f
Update gradle
2022-03-02 22:32:35 -08:00
vvb2060
000a163beb
Match components which are direct boot unaware
2022-03-02 22:32:35 -08:00
topjohnwu
80dd37ee31
Add missing specialize arguments
2022-03-02 22:01:35 -08:00
topjohnwu
e0b5645064
Revert "Directly use getrandom system call if possible"
...
This reverts commit e7c82f20e3 .
Fix #5516
2022-03-02 19:50:47 -08:00
topjohnwu
e51aacb0b7
Update README
2022-03-01 23:54:39 -08:00
topjohnwu
2d6af94aa0
Release new canary build
2022-03-01 23:53:39 -08:00
topjohnwu
7cfce9ff7a
Release Magisk v24.2
2022-03-01 23:35:56 -08:00
topjohnwu
7f088d6241
Add v24.2 release notes
2022-03-01 23:26:44 -08:00
vvb2060
d11038f3de
Directly stream apk into install session
2022-03-01 23:05:06 -08:00
vvb2060
6df42a4be7
Handle install failure
2022-03-01 23:05:06 -08:00
Francesco Saltori
7fd111b91f
Bring English strings changes to Italian translation
2022-03-01 22:51:07 -08:00
Sirichai Chulee
dd7dc2ec5a
Fix typo in thai translation
2022-03-01 22:50:37 -08:00
Vladimír Kubala
86c586d882
Update Slovak translation
2022-03-01 22:50:12 -08:00
Arbri çoçka
66ac6f72fc
update Albania translator
2022-03-01 22:49:44 -08:00
CDzungx
f21f448099
Update Vietnamese Translation
...
Fix, added some translations.
Added note for technicality word in case user don't know the word mean in English like "boot image", "image" is translated to "đĩa ảnh", I can't really understand it if I use Vietnamese lang 😂 .
2022-03-01 22:49:29 -08:00
topjohnwu
548d70f30c
Mount with original option
...
Fix #5481 , close #5486
2022-03-01 20:09:59 -08:00
topjohnwu
39e714c6d8
Release new canary build
2022-03-01 03:44:21 -08:00
topjohnwu
9968af0785
Move all permission check into daemon.cpp
2022-03-01 03:15:38 -08:00
topjohnwu
be7586137c
Reduce C++ wizardry
2022-03-01 03:15:38 -08:00
LoveSy
7999b66c3c
Refactor daemon connection
2022-03-01 03:15:38 -08:00
vvb2060
c82a46c1ee
Check property before switch mem cgroup
2022-02-28 23:27:23 -08:00
vvb2060
666ab1941f
Fix app request fifo wait
2022-02-28 23:26:59 -08:00
topjohnwu
71e37345b4
Update libsu
2022-02-28 20:14:58 -08:00
topjohnwu
e7c82f20e3
Directly use getrandom system call if possible
2022-02-16 23:57:28 -08:00
LoveSy
afa771a980
Set dlopen reserved size to unlimited
2022-02-16 23:05:17 -08:00
vvb2060
0d1de98cca
Update zh-rCN translation
2022-02-16 23:04:57 -08:00
vvb2060
02bf7dca01
Check apk before patch
2022-02-16 23:04:39 -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
vvb2060
3956cbe2d2
ActivityTracker ignore SuRequestActivity
2022-02-16 23:03:42 -08:00
vvb2060
945de8d9a0
Directly stream APK into install session
2022-02-16 23:03:32 -08:00
vvb2060
6dabd3bb2d
Abandon unsuccessful session
2022-02-16 23:03:01 -08:00
topjohnwu
4c80808997
Check packages.xml inode to trigger app rescan
2022-02-14 02:57:33 -08:00
topjohnwu
5a39f7cdde
Reduce duplicate initialization
2022-02-14 02:28:48 -08:00
topjohnwu
5d400fbe90
Check REQUEST_INSTALL_PACKAGES before actions
2022-02-14 02:15:50 -08:00
topjohnwu
e36596470c
Minor adjustments
2022-02-13 20:16:23 -08:00
topjohnwu
668e549208
Refactor APKInstall
2022-02-13 19:54:59 -08:00
topjohnwu
256ff31d11
Show notification after app upgrade
2022-02-13 18:35:35 -08:00
topjohnwu
2414d5d7f5
Minor changes
2022-02-13 14:23:06 -08:00
topjohnwu
b7fc15d399
Code refactoring
2022-02-13 07:24:34 -08:00
topjohnwu
c09b4dabc4
Generate class mapping at runtime
2022-02-13 06:22:42 -08:00
topjohnwu
a4aa4a91a3
Refactor DynLoad
2022-02-13 03:32:11 -08:00
topjohnwu
8f0ea5925a
Relaunch process without second process
2022-02-13 02:58:55 -08:00
南宫雪珊
936ad1aa20
Handle download fail
...
Co-authored-by: topjohnwu <topjohnwu@gmail.com >
2022-02-13 02:30:09 -08:00
topjohnwu
d021bca6ef
Prevent app_process from setting umask
...
Fix #5435
2022-02-11 01:26:24 -08:00
topjohnwu
55ed6109c1
Use dynamic_bitset.emplace_back()
2022-02-11 01:10:26 -08:00
vvb2060
f6d765bf81
Su request activity has no affinity for any task
2022-02-11 01:08:04 -08:00
LoveSy
88e8f2bf83
Proper escape : and \ when binding intent
2022-02-11 01:07:28 -08:00
LoveSy
c849759682
Use magiskboot to patch avd
...
Fix #5421
2022-02-11 00:25:07 -08:00
topjohnwu
605eae21bc
Remove unnecessary read/write
...
Close #5425
2022-02-11 00:24:12 -08:00
topjohnwu
93eb277a88
Update error messages
2022-02-11 00:01:51 -08:00
LoveSy
8edf556c9e
Fix lz4_lg compress
2022-02-10 23:50:19 -08:00
topjohnwu
7fcb63230f
Support lz4_legacy archive with multiple magic
...
Multiple lz4_legacy archives can be directly concatenated
2022-02-10 23:49:17 -08:00
LoveSy
12093a3dad
Update elf-cleaner
2022-02-08 00:53:02 -08:00
canyie
ebb0ec6c42
Make xmmap() returns nullptr when fails
...
In the constructor of mmap_data, there are two possible values when fails: nullptr if fstat() fails, and MAP_FAILED if mmap() fails, but mmap_data treated MAP_FAILED as valid address and crashes.
2022-02-08 00:49:47 -08:00
LoveSy
188546515c
Fix UID tracking
2022-02-08 00:49:22 -08:00
topjohnwu
c8990b0f68
Rewrite UID tracking
2022-02-07 02:46:47 -08:00
topjohnwu
7dced4b9d9
Update AGP
2022-02-07 00:19:36 -08:00
topjohnwu
3145e67feb
Update data structure
2022-02-07 00:17:07 -08:00
topjohnwu
e9348d9b6a
Release new canary build
2022-02-06 07:19:27 -08:00
topjohnwu
1a1b346c05
Fix #5377
2022-02-06 07:12:26 -08:00
Donatello
920d059837
Update italian translation
...
Added missing string.
Co-authored-by: Madis Otenurm <Madis0@users.noreply.github.com >
2022-02-06 06:51:49 -08:00
xDonatello
bef5c3bd1b
Update italian translation
2022-02-06 06:51:49 -08:00
Madis Otenurm
97037f7d03
Update strings.xml
2022-02-06 06:51:11 -08:00
topjohnwu
a7392ed3d7
Fix MULTIUSER_MODE_OWNER_MANAGED
2022-02-06 06:46:09 -08:00
Madis Otenurm
3eb1a7e384
Update Estonian
2022-02-06 05:59:09 -08:00
Arbri çoçka
1ecdc78c2f
fix translante in Albania language
2022-02-06 05:58:39 -08:00
孟武.尼德霍格.龍
d279dba37e
Update Traditional Chinese Strings
...
Co-authored-by: LoveSy <631499712@qq.com >
2022-02-06 05:58:03 -08:00
topjohnwu
a4f97fa151
Fix buffer overflow in connect.cpp
2022-02-06 05:52:11 -08:00
LoveSy
ff7ac582f0
Refactor Zygisk loading
...
Co-authored-by: topjohnwu <topjohnwu@gmail.com >
2022-02-06 00:27:31 -08:00
LoveSy
d2c2456fbe
Don't use getmntent_r from system's libc
...
Fix #5354
Co-authored-by: topjohnwu <topjohnwu@gmail.com >
2022-02-04 23:19:12 -08:00
LoveSy
e9f562a8b7
Fix abuse of fdopendir
...
After `fdopendir`, the fd is no longer usable. Should dup and
make use of RAII
Co-authored-by: 残页 <31466456+canyie@users.noreply.github.com >
2022-02-04 22:54:34 -08:00
topjohnwu
084e0a73dc
Cleanup DownloadService
2022-02-03 03:50:52 -08:00
topjohnwu
10f991b8d0
Directly stream APK into install session
2022-02-03 03:50:52 -08:00
残页
79620c97d1
Invalidate Samsung's persist.sys.zygote.early
...
Samsung FDE devices with the "persist.sys.zygote.early=true" property will cause Zygote to start before post-fs-data. According to Magisk's document, the post-fs-data phase should always happen before Zygote is started. Features assuming this behavior (like Zygisk and modules that need to control zygote) will not work. To avoid breaking existing modules, we simply invalidate this property to prevent this non-standard behavior from happening
Fix #5299 , fix #5328 , fix #5308
Co-authored-by: LoveSy <shana@zju.edu.cn >
2022-02-03 00:46:52 -08:00
topjohnwu
ffec9a4ddd
Minor changes
2022-02-02 05:06:12 -08:00
topjohnwu
9b18960bbd
Getting APK doesn't need ContentProvider
2022-02-02 04:58:31 -08:00
topjohnwu
a009fdbdc3
Fix root service on stub
2022-02-02 04:49:23 -08:00
topjohnwu
c1fc3f373c
Proper app relaunch for stub
2022-02-02 04:44:22 -08:00
topjohnwu
f4cf5dc0cd
Rename class
2022-02-02 02:50:27 -08:00
topjohnwu
355341f0ab
Use AppComponentFactory to replace ClassLoader
2022-02-01 22:43:44 -08:00
topjohnwu
7f65f7d3ca
Separate libc.a hacks into its own component
2022-01-31 02:09:08 -08:00
topjohnwu
9fa096c6f4
Add runtime FORTIFY support
...
Gingerbread libc.a missing symbols
2022-01-31 01:49:37 -08:00
LoveSy
70415a396a
Do not filter uid == 1000 for process info
2022-01-30 08:25:24 -08:00
canyie
c921964938
Make sure busybox can be executed recursively
...
Busybox will execute itself. On some older Samsung devices, when it is located in /data, it will not have rights to execute other programs including itself. We should also relocate busybox in this case to workaround Samsung bullshit.
See topjohnwu/ndk-busybox@bdc8655
Fix the "app doesn't detect installed Magisk" issue in topjohnwu#4174
2022-01-30 08:24:32 -08:00
topjohnwu
3bf47a6838
Update selinux
2022-01-30 08:18:04 -08:00
topjohnwu
d3d28f0623
Update to NDK r23b
...
Credits: @yujincheng08
Close #5193
2022-01-30 07:11:51 -08:00
topjohnwu
f880b57544
Update README
2022-01-28 04:02:57 -08:00
topjohnwu
32b7a26fa6
Release new canary build
2022-01-28 03:58:53 -08:00
topjohnwu
32fc34f922
Release Magisk v24.1
2022-01-28 03:43:42 -08:00
topjohnwu
b82a393692
Add v24.1 release notes
2022-01-28 03:37:00 -08:00
LoveSy
3c7e792167
Catch PendingIntent.CanceledException thrown from send
2022-01-27 05:29:32 -08:00
LoveSy
0ad66875ab
Fix crash when zip is malformat
...
Co-authored-by: 南宫雪珊 <vvb2060@gmail.com >
Co-authored-by: 残页 <31466456+canyie@users.noreply.github.com >
2022-01-27 05:26:31 -08:00
Arbri çoçka
1191ac2671
update Albania translation
2022-01-27 05:25:13 -08:00
topjohnwu
928b3425e3
Embed module installer in APK
2022-01-27 05:24:05 -08:00
topjohnwu
0726a00e3b
Fix download notifications
2022-01-27 05:17: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
f5e5ab2436
Update Android Studio
2022-01-27 01:46:00 -08:00
topjohnwu
ff5ea1a70d
Clarify what 64-bit only means
2022-01-26 04:39:14 -08:00
topjohnwu
54ee63a409
Minor install guide changes
2022-01-26 02:55:25 -08:00
topjohnwu
f095606b50
Release new canary build
2022-01-26 02:41:46 -08:00
topjohnwu
e8f31c78d7
Update README
2022-01-26 02:33:22 -08:00
topjohnwu
b34c477d5e
Release Magisk v24.0
2022-01-26 02:21:22 -08:00
topjohnwu
28611304f7
Add v24.0 release notes
2022-01-26 02:08:49 -08:00
CISZEK Anthony
76af9e6e1f
Update French translations
2022-01-26 00:56:39 -08:00
topjohnwu
7b3b965ed7
Fix some typos
2022-01-26 00:52:51 -08:00
topjohnwu
567b905ef1
Update install guides
2022-01-26 00:48:16 -08:00
topjohnwu
a94268329c
Update developer guide
2022-01-25 23:05:03 -08:00
Oliver Cervera
a11a18686a
Update italian translation
...
Contains last changes, it is also synced with the main file.
2022-01-25 21:56:04 -08:00
AndroPlus
c58e3a99ee
Update Japanese translation
2022-01-25 21:55:50 -08:00
topjohnwu
b166663e89
Release new canary build
2022-01-25 05:03:34 -08:00
topjohnwu
ac13ac14f6
Remove deploy.md
2022-01-25 04:26:59 -08:00
topjohnwu
06531f6d06
Add annotations to suppress warnings
2022-01-25 04:16:14 -08:00
topjohnwu
f6274d94f6
Add setprop warnings
2022-01-25 03:52:46 -08:00
topjohnwu
2b303a7e23
Add a missing busybox patch back
...
Hopefully, fix #4174
2022-01-25 03:37:59 -08:00
topjohnwu
2bb074a5ad
Update developer guides
2022-01-25 03:04:23 -08:00
topjohnwu
3b2db56243
Update documentation
2022-01-25 02:32:52 -08:00
topjohnwu
45483fde74
Update CLI usages
2022-01-25 02:04:15 -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
ab2cc72814
Remove unnecessary root service connection wait
2022-01-25 01:21:21 -08:00
topjohnwu
5c54a2c008
Update version check logic
2022-01-25 01:10:17 -08:00
topjohnwu
2fe3082518
Update busybox
2022-01-24 23:20:36 -08:00
topjohnwu
5a889d28c8
Pick a more reasonable zopfli config
...
Close #4980
2022-01-24 23:07:49 -08:00
Vlad
45e7c1c030
Update RU strings
2022-01-24 22:30:53 -08:00
topjohnwu
c6dcff0ae7
Minor dynamic_bitset changes
2022-01-24 22:30:19 -08:00
Hen Ry
b791dc5e1a
Update de translation
2022-01-24 21:32:07 -08:00
DanGLES3
46db281006
Update pt-BR strings
2022-01-24 21:31:48 -08:00
vvb2060
636479b15b
Fix dynLoad
2022-01-24 21:31:27 -08:00
vvb2060
dcbb4eabb5
Fix string
2022-01-24 21:27:17 -08:00
vvb2060
068cedaa84
Update zh-rCN translation
2022-01-24 03:05:45 -08:00
LoveSy
02dd962601
Don't load zygisk module for magisk app
2022-01-24 03:05:12 -08:00
topjohnwu
256d715648
Release new canary build
2022-01-23 07:07:21 -08:00
topjohnwu
cbe97cdfde
Fix dynamic_bitset implementation
2022-01-23 04:39:00 -08:00
topjohnwu
407dfc7547
Always write 0 to fd
2022-01-23 04:19:07 -08:00
Arbri çoçka
a8e4e077ec
Update Albania translator
2022-01-23 02:45:18 -08:00
vvb2060
3d06ba1878
Use WindowCompat
2022-01-23 02:44:59 -08:00
topjohnwu
8a23d1da58
Do not run setMarkdown on I/O thread
2022-01-23 02:41:56 -08:00
topjohnwu
d3eb61e0e4
Fix string resources
2022-01-23 02:41:56 -08:00
vvb2060
7cdf2d244d
Cleanup su handler
2022-01-23 01:38:17 -08:00
topjohnwu
c59a41a607
Minor code refactoring
2022-01-23 01:08:09 -08:00
topjohnwu
e0410b6f10
TLS only on release builds
2022-01-22 22:57:34 -08:00
topjohnwu
8eac6c0b48
Cleanup arch classes
2022-01-22 14:44:46 -08:00
vvb2060
bf8b74e996
Module json add changelog
2022-01-22 14:44:37 -08:00
kubalav
691e41e22e
Update Slovak translation
2022-01-22 05:31:28 -08:00
AioiLight
15e91d42ee
Update strings.xml
2022-01-22 05:31:14 -08:00
vvb2060
5e8e94fd0f
Remove emoji compat
2022-01-22 05:30:59 -08:00
topjohnwu
5313a46aa2
Overhaul SettingsItem
...
Close #5021
2022-01-22 05:25:36 -08:00
topjohnwu
761a8dde65
Slightly change update UI logic
2022-01-21 05:37:47 -08:00
topjohnwu
a73acfb9c2
Show unloaded Zygisk modules in UI
2022-01-21 05:37:47 -08:00
topjohnwu
fbe17dde03
Add flag for unloaded Zygisk modules
2022-01-21 05:37:47 -08:00
vvb2060
a01a3404fe
Ignore duplicate clicks on BottomNavigationView
...
Co-authored-by: RikkaW <rikka@shizuku.moe >
2022-01-21 02:12:41 -08:00
canyie
454e5dfc5d
Show confirmation dialog before restore app
2022-01-21 01:35:11 -08:00
topjohnwu
47545b45b8
Clean up MagiskDialog
2022-01-21 00:50:02 -08:00
topjohnwu
7c9908d953
Release new canary build
2022-01-20 03:58:16 -08:00
canyie
5f4cd50cc4
Properly prevent fix env dialog from constantly showing
...
ViewModel has been reconstructed when switching fragment so we lost previous state.
2022-01-20 03:38:28 -08:00
canyie
b0fba6ce5b
Optimize navigation back stack
...
Fix topjohnwu#4333
Co-authored-by: LoveSy <shana@zju.edu.cn >
2022-01-20 03:38:00 -08:00
canyie
1f5992f2c2
Fix classloader when restoring bottom nav state
2022-01-20 03:36:31 -08:00
topjohnwu
abfd3c3e5d
Remove unused resources
2022-01-20 03:32:08 -08:00
LoveSy
97da7f9691
Do not trust format of 3rd party json
2022-01-20 02:02:39 -08:00
Ilya Kushnir
2752083d29
Update RU strings
2022-01-20 01:59:33 -08:00
John Wu
c826318da4
Update CLI usage text
2022-01-20 01:59:01 -08:00
LoveSy
6582a4abd9
Make magiskpolicy supports multiple --apply
2022-01-20 01:59:01 -08:00
topjohnwu
a699dab5b3
Add option to skip building for AVD commands
2022-01-20 01:42:41 -08:00
topjohnwu
21c8ad5b9e
Fix up some AVD scripts
2022-01-20 01:33:59 -08:00
topjohnwu
195d885887
Reduce log spamming
2022-01-20 00:18:46 -08:00
topjohnwu
519bd2f30f
Disable AVD hacks by default
2022-01-19 20:28:01 -08:00
topjohnwu
20ef724fad
Add new build command avd_patch
2022-01-19 05:12:11 -08:00
vvb2060
f443cbaa2b
Revert "Always run non disabled module post-fs-data scripts"
...
This reverts commit 4dfb193d10 .
2022-01-18 04:48:47 -08:00
vvb2060
dbf45da8ab
Avoid constantly check env
2022-01-18 04:47:53 -08:00
topjohnwu
6b67902d53
Uninstalled app su requests should still show in logs
2022-01-18 04:44:11 -08:00
topjohnwu
0ad0ef485c
Bump min Magisk version to v21.0
...
Close #5220
2022-01-18 04:27:40 -08:00
topjohnwu
7dfe3e53d5
Optimize imports
2022-01-18 03:58:47 -08:00
vvb2060
5be3bd1e64
Show User-Agent
2022-01-18 02:02:41 -08:00
vvb2060
bc0c1980db
Support modules update
2022-01-18 02:02:41 -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
vvb2060
a8640f52ef
Merge into one file
2022-01-18 02:02:41 -08:00
Arbri çoçka
0f4e44c38f
Update values-sq
2022-01-18 00:35:55 -08:00
capntrips
053f4d481d
disable virtualAB check for noSecondSlot
2022-01-18 00:35:38 -08:00
capntrips
f466c27da9
disable pixel check for noSecondSlot
2022-01-18 00:35:38 -08:00
RikkaW
bfe6bc3095
Fix bottom nav sometimes not hide correctly
...
Replace homemade animation with StateListAnimator
2022-01-18 00:24:16 -08:00
vvb2060
ff8f3e766e
Update zh-rCN translation
2022-01-18 00:23:40 -08:00
vvb2060
6635ea3e29
Allow offline hide manager
2022-01-18 00:20:49 -08:00
LoveSy
591788c0df
Fix an NPE
...
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.text.Layout.getEllipsisCount(int)' on a null object reference
2022-01-17 22:55:44 -08:00
vvb2060
571b8986a4
Don't assume installed version matches app
2022-01-17 20:29:11 -08:00
topjohnwu
bb7a74e4b4
Add Zygisk API getFlags()
2022-01-17 19:54:33 -08:00
topjohnwu
76ddfeb93a
Allow modifying denylist without enforcement
2022-01-15 23:46:22 -08:00
LoveSy
c38b826abf
Skip overlayfs for post-fs-data mount
...
adb remount will introduce overlayfs for /system and /vendor, we should
skip mounting as overlayfs. This also helps us support overlayfs Magisk
later.
2022-01-14 03:42:37 -08:00
topjohnwu
21d7db0959
Add new Zygisk API to get module dir
2022-01-14 03:10:02 -08:00
topjohnwu
d7b51d2807
Update dependencies
2022-01-14 00:07:19 -08:00
topjohnwu
a7af8b5722
Add DoH back
...
JSDelivr is no longer China friendly
2022-01-13 03:50:29 -08:00
topjohnwu
9c93fe6003
Update bootctl
...
Close #5134
2022-01-13 02:24:02 -08:00
topjohnwu
21505a7470
Update scripts for PATCHVBMETAFLAG
2022-01-12 02:29:34 -08:00
topjohnwu
ba6e6cc15a
Update vbmeta option hiding criteria
...
Hide when Samsung, A/B, or vbmeta partition exists
2022-01-12 02:29:34 -08:00
vvb2060
fd7bf2bc3a
Support PATCHVBMETAFLAG env variable
2022-01-12 02:29:34 -08:00
LoveSy
b2cd24ed1b
Fix an UB when cil compile error
2022-01-11 03:01:27 -08:00
vvb2060
66cf2c984a
Don't fix env when patch boot
2022-01-11 02:50:12 -08:00
残页
de1b2b19b0
Only store sepolicy rules into partitions in ext4 format
...
Fix topjohnwu#5013
When installing from recovery, previous implementation may select f2fs partitions to store sepolicy rules, but magiskinit won't mount them and unable to load sepolicy rules.
2022-01-11 02:25:34 -08:00
LoveSy
e31583485d
Don't prefetch env to avoid deadlock
...
Fix #5178
2022-01-11 00:47:06 -08:00
topjohnwu
490e51c1d7
Don't set RECOVERYMODE if recovery_dtbo exists
...
Apparently some boot images with ramdisk still have recovery_dtbo,
so this assumption is no longer safe to do. Expect the user to
set this option properly themselves in the app.
Fix #4976 , close #5070 , close #5184
2022-01-11 00:17:47 -08:00
RikkaW
1df2a04713
Find suitable anchor view for SnackBar
...
This will fix the SnackBar position if BottomNav or FAB is visible.
Fix #5163
Fix #5135
2022-01-10 23:10:42 -08:00
vvb2060
42804d5314
Fix stub clean task
2022-01-10 23:02:51 -08:00
vvb2060
558710bbdd
Fix gradle task dependencies
2022-01-02 16:10:44 -08:00
topjohnwu
f4926cb822
Small refactoring
2022-01-02 16:09:03 -08:00
topjohnwu
1e77e0862a
Separate fstab finding to its own function
2022-01-02 15:49:12 -08:00
topjohnwu
8c696cb8ca
Minor code refactoring
2021-12-28 23:37:06 -08:00
LoveSy
62ef8ade8f
Skip loading Magisk when detecting DSU
...
Fix #4402
Co-authored-by: topjohnwu <topjohnwu@gmail.com >
2021-12-28 21:04:09 -08:00
LoveSy
3d88dd3123
Update dtc to fix a UB
...
See https://github.com/dgibson/dtc/pull/65
2021-12-28 17:18:32 -08:00
残页
880b348ce6
Add an old cgroup path
...
Fix topjohnwu#5125
cgroup root path might be mem cgroup instead of acct, especially on low-ram devices.
bc131c3244 %5E%21/#F0
2021-12-28 17:12:15 -08:00
残页
31fe3a1cd8
Java keywords cannot be used as package/class name
2021-12-28 17:11:38 -08:00
LoveSy
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
vvb2060
afcc60066e
Fix toast
2021-12-27 12:17:35 -08:00
vvb2060
d3ade06421
Use InputStream transfer
2021-12-27 12:17:35 -08:00
topjohnwu
f1a3ef9590
Update dependencies
2021-12-27 12:17:09 -08:00
Arbri çoçka
d1d73f11a5
fix same text in Albania
2021-12-27 12:01:05 -08:00
topjohnwu
05697372f8
Remove issues action
...
Handled by external MagiskBot
2021-12-25 17:26:03 -08:00
topjohnwu
0c1f68816e
Release new canary build
2021-12-14 21:40:40 -08:00
kubalav
92546e8a74
Update Slovak translation
2021-12-14 21:25:58 -08:00
John Wu
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
vvb2060
5a49bd3ac9
Add OkHttp cache
2021-12-14 05:01:12 -08:00
LoveSy
b37d7e0500
Use default icon when failed to get app icon
...
Fix #5051
2021-12-14 04:58:18 -08:00
topjohnwu
f4ed6274a4
Invert vbmeta header patching config
...
vbmeta header should not be patched in most cases
2021-12-14 04:52:25 -08:00
LoveSy
56eb1a1cf9
Load fstab from system/etc
...
Caused by this commit: e98afa2687
Fix #5057
2021-12-14 03:51:55 -08:00
LoveSy
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
vvb2060
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
vvb2060
7f4f95cf83
Fix certificate start time
2021-12-14 03:07:38 -08:00
LoveSy
87c2f6ad14
xhook_clear after xhook_refresh
2021-12-14 03:06:57 -08:00
topjohnwu
ad47dba064
Rename magiskVersion* -> version*
2021-12-14 03:01:11 -08:00
LoveSy
41b701846f
ensureEnv even if getRemote fails
...
Co-authored-by: vvb2060 <vvb2060@gmail.com >
2021-12-14 02:57:58 -08:00
xz-dev
5c42830328
l10n: Fix typo of chinese Simplified translations
2021-12-14 02:52:38 -08:00
Allan Nordhøy
69617309f8
English language string fixes
2021-12-14 02:51:54 -08:00
topjohnwu
48e2d6a8da
Simplify several hacks
2021-12-13 19:48:17 -08:00
topjohnwu
b4120cddfb
IODispatcherExecutor -> DispatcherExecutor
2021-12-13 04:05:42 -08:00
topjohnwu
54e3f1998a
Support RootService on stub APKs
2021-12-13 04:05:42 -08:00
topjohnwu
edcf9f1b0c
Introduce RootServices to the app
2021-12-13 04:05:42 -08:00
topjohnwu
de3747d65e
Copy APK from external storage in stub
...
Much faster and easier development
2021-12-13 04:05:42 -08:00
vvb2060
b76a3614da
Fix isolated process comparisons
2021-12-10 04:35:38 -08:00
topjohnwu
94cc64c51b
Update dependencies
2021-12-10 04:32:16 -08:00
HeroBuxx
0f71edee96
magisk: README: Correct string path for stub
...
Signed-off-by: HeroBuxx <herobuxx@conqueros.co >
2021-12-01 21:20:24 -08:00
topjohnwu
e097c097fe
Rename persist_properties.cpp -> persist.cpp
2021-11-30 01:58:31 -08:00
topjohnwu
1443a5b175
Use mmap_data more widely
2021-11-30 01:50:55 -08:00
topjohnwu
2d82ad93dd
Macro -> template
2021-11-29 19:56:37 -08:00
vvb2060
384c257a74
Disable CompatVectorFromResources
2021-11-29 00:06:28 -08:00
vvb2060
49dfa2c3a0
Fix update from notification will fail
2021-11-29 00:05:54 -08:00
vvb2060
7bd3e768db
Remove bytecode compatibility workaround
2021-11-29 00:05:20 -08:00
vvb2060
65224ed22b
Fix NPE when apk could not be parsed
2021-11-29 00:04:51 -08:00
topjohnwu
0a28dfe1e2
AVB blobs expect to be 4096-byte aligned
2021-11-28 13:21:05 -08:00
topjohnwu
1c8ebfacb0
Release new canary build
2021-11-23 22:39:15 -08:00
HuskyDG
5d6d241791
Update VN strings.xml
2021-11-23 22:24:51 -08:00
jontaix
4f116d15b9
Fix PT-rBR translation
...
Some translation fixes.
2021-11-23 22:24:22 -08:00
topjohnwu
228570640e
Introduce KEEPVBMETAFLAG env variable
...
Close #4447 , close #4906 , close #4901 , close #4964
2021-11-23 22:14:12 -08:00
topjohnwu
65a79610aa
Fix crash and warnings
2021-11-23 18:46:06 -08:00
topjohnwu
24984ea4f2
Optimize stream for full-file writes
2021-11-23 18:08:14 -08:00
topjohnwu
048b2af0fc
Improve zopfli encoder
...
Write in chunks for CLI compression
2021-11-23 16:50:08 -08:00
topjohnwu
449989ddd9
Always use zopfli for zImage compression
2021-11-23 14:24:05 -08:00
topjohnwu
01ebe5724a
Cleanup zImage parsing code
2021-11-23 13:39:15 -08:00
topjohnwu
95fb230b8c
Update to BusyBox 1.34.1
2021-11-22 19:46:52 -08:00
topjohnwu
632971af15
Properly support v4 image headers
2021-11-21 06:07:21 -08:00
topjohnwu
5787aa1078
Stream should always write all bytes
2021-11-21 06:05:59 -08:00
topjohnwu
d8b9265484
Pull out buffer-chunk logic into separate class
2021-11-21 06:05:55 -08:00
topjohnwu
9ea3169ca9
Do not allow modifying page sizes
2021-11-20 22:51:22 -08:00
topjohnwu
aebf2672cd
Fix unpacking vendor boot images
2021-11-20 22:44:38 -08:00
osm0sis
68ac409bfd
Scripts fixes and improvements
...
- ensure all scripts use $NVBASE $MAGISKBIN $POSTFSDATAD and $SERVICED where appropriate
- simplify new grep_cmdline() using xargs and more sed
- show correct active sepolicy $RULESDIR on devices with no encryption
- add support for Android 12 .capex (compressed apex) files
2021-11-20 14:17:02 -08:00
topjohnwu
fef44bd24f
Allow boot scripts to know Zygisk status
2021-11-20 13:05:15 -08:00
HuskyDG
e4a7617dde
Update VN strings.xml
2021-11-16 21:31:21 -08:00
topjohnwu
4dfb193d10
Always run non disabled module post-fs-data scripts
2021-11-16 21:29:13 -08:00
dark-basic
c248d94995
Update strings.xml
2021-11-16 21:15:02 -08:00
vvb2060
d4ac458d17
Ignore zygisk modules when zygisk is not enabled
2021-11-16 21:14:35 -08:00
Ilya Kushnir
93e443c4ad
Update RU strings
2021-11-16 21:14:11 -08:00
DanGLES3
4b3988cef9
Update pt-BR translation
2021-11-16 21:13:50 -08:00
Rom
4eb5ee17b4
Fix typo in French translation
2021-11-16 21:13:13 -08:00
topjohnwu
e1b63d7dec
Initialize mt19937 statically in function
...
This reduces startup time
2021-11-16 03:20:07 -08:00
topjohnwu
4b5651bd6f
Revert logging after pre specialize
2021-11-16 03:12:01 -08:00
topjohnwu
50515d9128
Close unclosed fds from modules
2021-11-16 01:59:45 -08:00
RikkaW
28b5faab0c
Visual changes
2021-11-14 03:58:35 -08:00
topjohnwu
82a01c22d3
Cleanup resources
2021-11-14 00:45:39 -08:00
LoveSy
be9b0c2e8f
Move flow.concurrentMap to ktx
2021-11-13 11:28:11 -08:00
LoveSy
b6affe06a5
Fix flow parallel
2021-11-13 11:28:11 -08:00
topjohnwu
1e05f8c646
Release new canary build
2021-11-12 03:14:56 -08:00
topjohnwu
7e9d4512b6
Update zh-rTW
2021-11-12 03:07:18 -08:00
RikkaW
5fa127c415
Disable modules section if Magisk is not active
...
Fix #4925
2021-11-12 03:02:26 -08:00
kubalav
ac26681fe7
Update Slovak translation
2021-11-12 03:01:49 -08:00
残页
3c62636133
Update zh-rCN translation
2021-11-12 03:01:30 -08:00
Arbri çoçka
ca874fa12c
Update Albania translation
2021-11-12 03:00:55 -08:00
Rom
c3508bbb99
Update French translation
2021-11-12 03:00:37 -08:00
topjohnwu
6935033db5
Prevent dangling pointers
2021-11-12 02:02:05 -08:00
topjohnwu
421277d730
Prevent race conditions in connect_companion
2021-11-12 01:55:55 -08:00
topjohnwu
56988944b5
No need to dup fd
2021-11-12 01:54:48 -08:00
topjohnwu
528601d25a
Fix integer overflow and workaround seccomp
...
- Use ftruncate64 instead of ftruncate to workaround seccomp
- Cast uint32_t to off64_t before making it negative
Note: Using ftruncate with a modern NDK libc should actually be
fine as the syscall wrapper in bionic will use ftruncate64 internally.
However, since we are using the libc.a from r10e built for Gingerbread,
seccomp wasn't a thing back then, and also the ftruncate64 symbol is
missing; we have to create our own wrapper and call it instead on
32-bit ABIs.
Props to @jnotuo for discovering the overflow bug and seccomp issue
Fix #3703 , close #4915
2021-11-10 03:07:20 -08:00
topjohnwu
ddd153c00d
Show module suspend notice
...
Close #4862
2021-11-09 23:59:37 -08:00
topjohnwu
b8c1588284
Always unload zygisk after specialize
2021-11-07 13:05:44 -08:00
LoveSy
4dac9e40bd
Support bootconfig on util_functions.sh
...
Close #4869
2021-11-07 11:22:21 -08:00
Arbri çoçka
def1811d48
Fix strings in sq
2021-11-07 11:03:28 -08:00
孟武.尼德霍格.龍
c53e507713
Update Traditional Chinese Language
2021-11-07 11:03:15 -08:00
LoveSy
e0ea777249
Use ProcessCompat
...
Fix #4895
2021-11-07 11:02:58 -08:00
topjohnwu
4c1962f3c7
Release new canary build
2021-11-06 23:56:50 -07:00
Chris Renshaw
258e89c964
Fix script typo for Sony init.real support
...
- though may still be broken on magiskinit side, see #4885
2021-11-06 23:44:43 -07:00
topjohnwu
3d3bfb42e5
Don't copy ApplicationInfo
2021-11-06 23:34:46 -07:00
topjohnwu
6dbd8baa7e
Cleanup DownloadService
2021-11-06 17:45:41 -07:00
topjohnwu
e660fabc57
Remove BaseDownloader
2021-11-06 04:37:06 -07:00
topjohnwu
2115bcd8b0
Relaunch and recreate is slightly different
2021-11-05 16:05:12 -07:00
topjohnwu
1bdd6e1a9d
Migrate to Activity Result APIs
2021-11-05 15:53:34 -07:00
topjohnwu
98deec232b
Minor adjustments
2021-11-05 13:55:18 -07:00
topjohnwu
022c217cfe
Migrate to SplashScreen API
2021-11-05 04:16:58 -07:00
topjohnwu
81f57949ed
Remove WorkManager as a dependency
2021-11-04 23:39:35 -07:00
topjohnwu
fca5eb083f
Always show checked app in list
2021-11-04 20:09:19 -07:00
topjohnwu
a3695cc66b
Use Kotlin coroutine instead of Java parallelStream
2021-11-04 20:09:19 -07:00
topjohnwu
6723d20616
Cleanup AppProcessInfo
2021-11-04 20:09:19 -07:00
RikkaW
627ec91687
Fix visual issues for ActionBar
2021-11-04 20:09:19 -07:00
vvb2060
9126cf0c73
Rewrite deny list UI
2021-11-04 20:09:19 -07:00
Chaosmaster
16322ab30c
Use full gzip-signature to find gzip-data.
...
Fall back to raw image if gzip is not found.
Fixes #4849
2021-11-03 22:23:21 -07:00
Chaosmaster
5682917356
Speed up zopfli compression
...
See #4810 for example
2021-11-03 22:22:29 -07:00
LoveSy
c91ccc8b4e
Fix UB on dtb
...
`operator==` of string_view will create a tmp `string_view`.
It's an UB if the `const char *` is a nullptr.
`fdt_get_name` however will return a nullptr.
2021-11-03 22:21:48 -07:00
topjohnwu
63f670fc36
Move first stage unload before fork
2021-11-02 21:53:33 -07:00
LoveSy
e20b07fa24
Fix #4853
2021-11-02 19:31:17 -07:00
topjohnwu
472656517f
Release new canary build
2021-11-02 04:18:30 -07:00
topjohnwu
d232cba02d
Fix first stage unload
2021-11-02 04:12:56 -07:00
vvb2060
e49d29a914
Fix fragments lifecycleOwner
2021-11-02 03:10:29 -07:00
RikkaW
3aa1a68cdc
Fix activity relaunches constantly on WSA
...
It's magic 💢 since change configuration should not trigger activity relaunch.
2021-11-02 03:09:06 -07:00
Hen Ry
f94452083f
German Update
2021-11-02 03:08:32 -07:00
Arbri çoçka
ce1ee5cb9d
Fix strings in stub Albania
2021-11-02 03:07:44 -07:00
topjohnwu
48df6b8485
Use memmem instead of strstr
...
It might not be null terminated
2021-10-31 11:46:56 -07:00
topjohnwu
ae23ae2d37
Remove code in scripts that should be removed
2021-10-31 11:30:48 -07:00
Nullptr
e34e04af04
Make Api functions inline
...
Make Api functions inline to avoid duplicate symbols when including api.hpp in multiple cpps
2021-10-31 10:55:41 -07:00
osm0sis
ff3f377911
scripts: touch up print_title
...
- stars aren't pounds, let's just call it a title bar :P
2021-10-31 10:53:55 -07:00
osm0sis
18065826b9
scripts: improve basic module setup
...
- expand utility of the basic module setup (zip without customize.sh) by setting more default perms, since really it couldn't do any simple binary files additions correctly withonly 0755 0644
- ensure CON stays local
2021-10-31 10:53:55 -07:00
topjohnwu
84e19ceef0
Tidy up bootimg.h
...
Close #4796
2021-10-31 10:52:12 -07:00
Chris Renshaw
59161efd08
Support Samsung 2SI with skip_initramfs in dtb cmdline
...
Samsung Galaxy A21S and Galaxy M12, probably others, are hdr_v2 boot.img with 2SI judging by the ramdisk contents, but the dtb contains an extra cmdline with skip_initramfs present, even though this shouldn't exist on 2SI and the kernel apparently doesn't even contain a skip_initramfs function
I can't find examples of other devices where skip_initramfs is present in the dtb other than these so patch it out like we do the kernel
Co-authored-by: topjohnwu <topjohnwu@gmail.com >
2021-10-30 21:20:10 -07:00
Chris Renshaw
6663fd3526
Support custom legacy Sony devices with init.real setup
...
Custom ROM bring-ups of legacy Sony devices contain the following:
/init (symlink to /bin/init_sony)
/init.real (the "real" Android init)
/bin/init_sony (this was /sbin/init_sony on Android <11)
Kernel loads the ramdisk and starts /init -> /bin/init_sony
/bin/init_sony does low-level device setup (see: https://github.com/LineageOS/android_device_sony_common/blob/lineage-18.1/init/init_main.cpp )
/bin/init_sony unlinks /init and renames /init.real to /init
/bin/init_sony starts /init
Since init_sony needs to run first magiskinit needs to replace init.real instead, so add workarounds based on detection of init.real to boot patcher and uninstaller
Thanks @115ek and @bleckdeth
Fixes #3636
Co-authored-by: topjohnwu <topjohnwu@gmail.com >
2021-10-30 18:59:20 -07:00
topjohnwu
2c44e1bb93
Update rules again
2021-10-29 03:37:14 -07:00
残页
e3f6399473
Don't use xwrite() when patching legacy rootfs init
...
Fix topjohnwu#4810
> [ 2.927463] [1: init: 1] magiskinit: Replace [/system/etc/selinux/plat_sepolicy.cil] -> [xxx]
[ 2.936801] [1: init: 1] magiskinit: write failed with 14: Bad address
Since topjohnwu#4596, magisk fails to patch `/init`, xwrite() fails with EFAULT, break the original `/init` file and make the device unbootable. Reverting this commit for legacy rootfs devices fixes the problem. I think this is a Samsung kernel magic since currently I can't reproduce this on other devices or find something special in the log currently we have.
2021-10-29 03:23:34 -07:00
残页
89c2c21774
Fix init.rc path detection
...
Fix #4319
Some devices store init.rc into the new path but still have the legacy /init.rc file
2021-10-29 03:21:20 -07:00
vvb2060
2954eb4bdc
Remove CustomTab
2021-10-29 03:17:11 -07:00
vvb2060
e08de91666
Clean sent proguard rules
2021-10-29 03:15:31 -07:00
残页
a170acb9d7
Fix compilation when init debug toggle enabled
2021-10-29 03:15:16 -07:00
vvb2060
6a086bb222
Load *_compat_cil_file from system_ext
...
https://android-review.googlesource.com/c/platform/system/core/+/1650271
2021-10-29 03:14:26 -07:00
vvb2060
b2f152e641
realpath /proc/pid/cwd
...
prevent cross mount namespace
2021-10-29 03:13:20 -07:00
topjohnwu
6c5b261804
Update spolicy rules
2021-10-29 03:12:48 -07:00
topjohnwu
8bd0c44e83
Replace module fd with memfd if possible
2021-10-28 00:26:18 -07:00
topjohnwu
34c36984e9
Stop extreme verbose logging
2021-10-27 04:00:40 -07:00
topjohnwu
8bd6aca0dd
DenyList unmount without magiskd
2021-10-27 04:00:40 -07:00
topjohnwu
983b74be77
Pass MAGISKTMP over to zygote
2021-10-27 03:25:54 -07:00
topjohnwu
a3eafdd2c6
Release new canary build
2021-10-27 02:37:18 -07:00
topjohnwu
ea75a09f95
Make zygisk survive zygote restarts
...
Close #4777
2021-10-27 01:53:16 -07:00
LoveSy
4c747c4148
Add rule: allow * magisk_file lnk_file { * }
2021-10-26 00:41:04 -07:00
LoveSy
49abfcafed
Fix nullptr dereference when env abnormal
2021-10-26 00:40:00 -07:00
topjohnwu
50710c72ad
Cleanup magiskinit code
2021-10-26 00:35:55 -07:00
vvb2060
2e299b3814
Add an old cgroup v2 path
...
https://android-review.googlesource.com/c/platform/system/core/+/1324649
2021-10-25 20:54:19 -07:00
topjohnwu
43d11d877d
Release new canary build
2021-10-24 00:22:13 -07:00
Arbri çoçka
d7e7df3bd9
Add translate Albania in stub
2021-10-23 23:55:57 -07:00
0purple
8d8ba11221
Update strings.xml
2021-10-23 23:55:38 -07:00
Ilya Kushnir
2536a18c00
Update RU strings
2021-10-23 23:55:09 -07:00
sn-o-w
11728b2b15
Update Romanian
2021-10-23 23:54:15 -07:00
green1052
627501b9ba
Update Korean translation
2021-10-23 23:53:53 -07:00
vvb2060
3599384b38
Allow fallback to /dev/pts
2021-10-23 23:31:44 -07:00
topjohnwu
4b307cad2c
Random minor changes
2021-10-23 22:20:07 -07:00
topjohnwu
7496d51580
Make zygiskd ABI aware
2021-10-23 14:38:30 -07:00
topjohnwu
4194ac894c
Support setting more options
2021-10-21 03:20:04 -07:00
topjohnwu
ffb5d9ea9c
Update libcxx
2021-10-21 02:08:13 -07:00
topjohnwu
770b28ca30
Build on API 21 headers
2021-10-20 03:17:42 -07:00
topjohnwu
62e464f706
Upgrade Android Studio
2021-10-20 01:43:33 -07:00
topjohnwu
8d0dc37ec0
Use SO_PEERSEC to get client secontext
2021-10-19 23:46:38 -07:00
topjohnwu
fe41df87bb
pthread_cond_signal might wake multiple threads
...
Close #4759
2021-10-19 21:32:37 -07:00
topjohnwu
8276a0775d
Fix API doc
2021-10-17 05:42:33 -07:00
LoveSy
abfb3bb3bb
Fix always log hook fails
2021-10-17 05:00:31 -07:00
LoveSy
e184eb4a23
Fix UB of loading modules
...
- The lambda here infers its return type as `std::string`,
and since `info` is `const`, the labmda copies `info.name`
and returns a `std::string&&`. After captured by the
`std::string_view`, the `std::string&&` return value
deconstructs and makes `std::string_view` refers to a
dangling pointer.
2021-10-17 04:38:56 -07:00
topjohnwu
d0fc372ecd
Implement Zygisk companion process
2021-10-17 04:36:18 -07:00
topjohnwu
6f54c57647
Allow fork in thread pool
2021-10-17 04:24:25 -07:00
topjohnwu
e8ae103d5f
Update jni hooks
2021-10-14 02:43:56 -07:00
topjohnwu
b0198dab6c
Update Zygisk logging
2021-10-14 02:13:23 -07:00
topjohnwu
b75ec09998
Load Zygisk modules even if no magic mount is needed
...
Close #4767
2021-10-14 01:35:29 -07:00
topjohnwu
c8ac6c07b0
Load Zygisk modules
2021-10-13 04:52:02 -07:00
topjohnwu
27814e3015
Minor Zygisk API changes
2021-10-09 11:53:40 -07:00
topjohnwu
f59309a445
Minor changes
2021-10-09 11:36:01 -07:00
vvb2060
b0292d7319
Add execmem to allow hook
2021-10-09 02:59:03 -07:00
topjohnwu
7f18616cc0
Prune unused nodes from trie
2021-10-09 02:15:03 -07:00
topjohnwu
2fef98a5af
Wipe out prop_info data after delete
2021-10-09 00:27:11 -07:00
topjohnwu
36765caedc
Fix thread pool implementation
...
Close #4759
2021-10-08 23:28:14 -07:00
topjohnwu
f7aed10ea2
Fix friend template function
2021-10-08 19:17:31 -07:00
topjohnwu
410bbb8285
Update Zygisk APIs
2021-10-05 22:42:55 -07:00
topjohnwu
f56ea52932
Add public Zygisk API
...
Still WIP
2021-10-05 03:53:22 -07:00
vvb2060
cb4361b7b7
Fix terminal on android 8
...
No need to handle untrusted_app_all_devpts on modern devices, but devpts policy is different for older devices.
2021-09-25 12:08:35 -07:00
vvb2060
ecd332c573
Close fd
2021-09-25 12:07:52 -07:00
StoyanDimitrov
a0fe78a728
Update Bulgarian translation
...
Small fixes.
2021-09-24 01:30:37 -07:00
Aryan Sinha
49cc9c529e
Magisk: values-hi: Update Hindi Translation
...
* Fix Some Grammatical Mistakes
* Simplify Some Words
2021-09-24 01:29:42 -07:00
Arbri çoçka
7635b2c33f
Update and fix some bugs in values-sq
2021-09-24 01:28:51 -07:00
Ilya Kushnir
50c26d33ab
Update RU strings
2021-09-24 01:28:30 -07:00
topjohnwu
f642fb3b99
Properly handle child zygote
...
Close #4720
2021-09-24 01:23:58 -07:00
topjohnwu
e68dd866a3
Only create app_id_map if necessary
2021-09-24 00:22:19 -07:00
topjohnwu
73d36fdff0
Riru and its modules are not compatible with zygisk
2021-09-23 23:54:46 -07:00
vvb2060
5561cd3c77
Update zh-rCN translation
2021-09-23 02:45:02 -07:00
usrDottik
32a9acb913
Updated values-es strings
...
Added DenyList and Zygisk translations
2021-09-23 02:44:47 -07:00
DanGLES3
f7f23c6e77
Update Brazilian Portugues translation
2021-09-23 02:44:29 -07:00
Arbri çoçka
3d4edbd9dc
Update strings-sq
2021-09-23 02:43:45 -07:00
kubalav
bdf385f374
Update Slovak translation
2021-09-23 02:43:01 -07:00
Rom
9f78c3e64b
Update French translation
2021-09-23 02:42:44 -07:00
taras
f370052815
Update Ukrainian translation
2021-09-23 02:42:20 -07:00
Oliver Cervera
9df4b10067
Update Italian translation
2021-09-23 02:41:53 -07:00
vvb2060
d20517483e
Prevent multiple mounts of devpts
2021-09-23 02:40:24 -07:00
Thonsi
713ce4719b
Cleanup unused code
2021-09-23 02:39:48 -07:00
topjohnwu
f3d39e7515
Update BusyBox
...
Fix #4657 , close #4602
2021-09-23 02:31:42 -07:00
残页
61783ffc82
Prevent original libselinux.so to be unmounted
...
libselinux.so will be unmounted when magiskd starts. If magiskd restarts (like it died before boot completed), the files we want to unmount is the original files because the modified files is unmounted in previous start, which will causes many crashes due to missing libselinux.so.
2021-09-22 19:34:44 -07:00
topjohnwu
05c4ad01d5
Move first stage unload into second stage
2021-09-22 19:33:08 -07:00
topjohnwu
12647dcf30
Improve memory map tricks
...
- In `unmap_all`, replace readable pages atomically with mmap + mremap
- Create new function `remap_all` to replace pages with equivalent
anonymous copies to prevent simple maps name scanning
2021-09-22 19:14:05 -07:00
topjohnwu
da38f59e62
Only run destructor if necessary
2021-09-22 02:52:33 -07:00
topjohnwu
cf4ef54dc5
Unload first stage on main thread
2021-09-22 02:46:07 -07:00
topjohnwu
12e9873514
Update zygisk entry implementation
2021-09-22 00:14:22 -07:00
RikkaW
f7c0e407ca
Fix downgrade database
2021-09-20 05:50:34 -07:00
topjohnwu
82c7662cdf
Cache Magisk app ID for performance
2021-09-20 05:47:15 -07:00
topjohnwu
4f0bced53e
Track app ID instead of UID
2021-09-20 05:08:25 -07:00
topjohnwu
f1b6c9f4aa
Refresh uid_map on package.xml change
2021-09-20 04:42:06 -07:00
topjohnwu
0ab31ab0df
Fix log writer
2021-09-19 13:41:45 -07:00
topjohnwu
46e8f0779f
Move denylist code into zygisk
2021-09-18 14:50:11 -07:00
topjohnwu
3fb72a4d20
Support polling on multiple fds
2021-09-18 14:40:12 -07:00
topjohnwu
db20f65d7c
On denylist != do unmount
2021-09-18 12:44:42 -07:00
topjohnwu
63cfe7b47b
Make sanitize_environ work properly
2021-09-18 05:11:10 -07:00
topjohnwu
db590091b3
Propagate Zygisk state to Magisk app
2021-09-18 02:38:53 -07:00
topjohnwu
7b25e74418
Simplify get manager app info logic
2021-09-17 02:07:32 -07:00
vvb2060
82f303e1c6
Allow save app log when not activated
...
may be useful for patch boot.
2021-09-16 19:44:45 -07:00
Vladimír Kubala
c038683b54
Update Slovak translation
2021-09-16 19:41:43 -07:00
vvb2060
3a37ed6b60
Update zh-rCN translation
2021-09-16 19:41:19 -07:00
topjohnwu
706a492218
Update denylist config implementation
2021-09-16 05:27:34 -07:00
topjohnwu
c0be5383de
Support enable/disable Zygisk
2021-09-15 02:49:54 -07:00
topjohnwu
3b8ce85092
Enable Zygisk
2021-09-15 01:59:43 -07:00
topjohnwu
b6298f8602
Remove more code
2021-09-13 02:00:04 -07:00
topjohnwu
abfec57972
Move files around
2021-09-13 01:47:36 -07:00
topjohnwu
470fc97d1f
Remove SafetyNet check
2021-09-13 01:41:31 -07:00
topjohnwu
8d59caf635
Cleanup unused code
2021-09-13 01:06:43 -07:00
topjohnwu
acf25aa4d3
Remove DoH
2021-09-13 00:44:49 -07:00
topjohnwu
16de4674ec
Move denylist fragment to settings
2021-09-13 00:33:36 -07:00
topjohnwu
65b0ea792e
MagiskHide is no more
2021-09-12 12:40:34 -07:00
topjohnwu
fc6b02f607
Move denylist fragment to its own section
2021-09-12 00:39:24 -07:00
topjohnwu
136d8c39d9
Move more code into buildSrc
2021-09-09 20:19:49 -07:00
topjohnwu
24a8b41182
Fix indentation
2021-09-09 01:37:49 -07:00
vvb2060
810cf4dee8
Move config to buildSrc
2021-09-09 01:37:20 -07:00
LoveSy
9bf835e810
Fix ccache
2021-09-08 08:53:51 -07:00
topjohnwu
eca37bce38
Separate dependency and build cache
2021-09-08 01:16:26 -07:00
topjohnwu
3ee6a2baf2
Enable ccache for faster builds
2021-09-08 01:13:36 -07:00
topjohnwu
69fa7f238d
Don't cache NDK
2021-09-08 01:13:36 -07:00
topjohnwu
de2306bd12
Proper incremental builds
...
Auto generate flag.h for precise rebuilding
2021-09-07 19:35:28 -07:00
topjohnwu
714feeb9a7
Support building on case insensitive filesystems
...
Fix #4643 , close #4641
2021-09-07 04:02:29 -07:00
topjohnwu
ca99808fd2
Update AVD support
...
- Support arm64 AVD images
- Support setup on Windows
Close #4637
2021-09-07 03:03:02 -07:00
topjohnwu
f8f8c28fec
Switch zopfli to official repo
2021-09-03 10:39:23 -07:00
vvb2060
f497867ba5
Update submodules
2021-09-03 10:24:33 -07:00
RikkaW
383192784d
Use standard BottomNav & Remove hide on scroll for AppBar and BottomNav
2021-09-03 10:22:46 -07:00
vvb2060
605189bc6e
Hide overlay windows
2021-09-02 23:17:01 -07:00
残页
c0a2e3674c
Reset file context from adb_data_file
...
In some cases (like weird ROMs that allow init to relabel context from system_file), module files will have an incorrent context, which will causes module not working properly.
See https://github.com/RikkaApps/Riru/wiki/Explanation-about-incorrect-SELinux-rules-from-third-party-ROMs-cause-Riru-not-working
2021-09-02 21:55:08 -07:00
vvb2060
76f0602684
Make busybox cflag stable
2021-09-02 21:48:38 -07:00
vvb2060
477ff12cde
print sepolicy rules dir
2021-09-02 21:46:43 -07:00
topjohnwu
9c09ad3b62
Open source fully obfuscated stub
2021-09-02 21:31:33 -07:00
topjohnwu
a967afc629
Update macOS JAVA_HOME path
2021-09-02 02:27:05 -07:00
vvb2060
dcc1fd3ee4
Use PACKAGE_FULLY_REMOVED for magiskhide
...
Remove from magiskhide only if pkg fully deleted
2021-09-02 02:15:25 -07:00
vvb2060
933f020b3c
Show dialog when hide or restore app
2021-09-02 02:13:31 -07:00
vvb2060
f5c02be5bf
Add new targetSdk domain
...
https://android-review.googlesource.com/c/platform/system/sepolicy/+/1752122
2021-09-02 01:48:25 -07:00
vvb2060
68fbdd474c
Target SDK 31
2021-09-02 01:39:34 -07:00
vvb2060
2cbc048352
Add mount info to log file
2021-09-02 00:48:44 -07:00
Wang Han
e990ffd4a0
Remove leftover DISABLE_ZYGISK flag
2021-09-01 20:14:53 -07:00
topjohnwu
743c7c9326
App code reorganization
2021-09-01 01:17:27 -07:00
topjohnwu
067248da75
Cleanup RvItems
2021-09-01 01:17:27 -07:00
topjohnwu
f5c982355a
Remove online section in modules fragment
2021-09-01 01:17:27 -07:00
vvb2060
f98c68a280
Clean up unneeded rules
2021-08-29 13:03:50 -07:00
vvb2060
773bf0c6bc
Do not use glob in the system's unzip parameter
...
https://android.googlesource.com/platform/system/core/+/refs/tags/android-10.0.0_r47/libziparchive/unzip.cpp#57 unzip did not support glob before Android 11
2021-08-29 13:03:41 -07:00
Arbri çoçka
080ab6032c
update and fix some text in strings-sq
2021-08-29 11:36:07 -07:00
vvb2060
350144df29
Do not allow remove the module to be updated
2021-08-29 11:35:46 -07:00
Antikruk
9ac0f11d9a
Update Belarusian translation
2021-08-29 03:27:57 -07:00
LoveSy
8079d456ab
Use std::map instead
2021-08-29 03:27:15 -07:00
vvb2060
acf166cf9d
Support oplus.fstab
2021-08-29 03:27:15 -07:00
vvb2060
439d497a13
boot image header v4
2021-08-29 03:14:23 -07:00
Allan Nordhøy
0580932610
Norwegian Bokmål translation
2021-08-29 03:10:39 -07:00
Arbri çoçka
85399f609c
Fix and update strings-sq
2021-08-29 03:10:01 -07:00
LoveSy
4bcfee397b
Remove unnecessary umount
2021-08-29 02:45:49 -07:00
vvb2060
34bcb1dd26
Fix line editing on Android 8.0+
2021-08-29 02:45:49 -07:00
LoveSy
117d1ed080
Fix always enter safe mode
...
`getprop("persist.sys.safemode", true) == "1"` -> `getprop("persist.sys.safemode", true) == ""`
2021-08-29 02:45:49 -07:00
vvb2060
f324252681
Use isolated devpts if kernel support
...
kernel version >= 4.7 or CONFIG_DEVPTS_MULTIPLE_INSTANCES=y
2021-08-29 02:45:49 -07:00
LoveSy
0dad06cdfe
Fix meizu compatibility
2021-08-28 21:03:12 -07:00
vvb2060
9396288ca2
Check util_functions.sh version
2021-08-28 20:52:05 -07:00
LoveSy
f89f08833e
Generic parsing methods
2021-08-28 20:50:17 -07:00
vvb2060
79e8962854
Support bootconfig
...
https://android-review.googlesource.com/c/platform/system/core/+/1615298
2021-08-28 20:50:17 -07:00
topjohnwu
34e5a7cd24
Zopfli is not always smaller
2021-08-28 17:16:20 -07:00
topjohnwu
7343c195b7
Cleanup compress.cpp
2021-08-28 17:01:08 -07:00
topjohnwu
0af041b54e
Cleanup magiskboot code
2021-08-28 14:07:34 -07:00
Chaosmaster
92a8a3e91f
Add zopfli gzip encoder for better compression
2021-08-28 11:00:30 -07:00
Chaosmaster
f41575d8b0
Add support for legacy ARM32 zImage
2021-08-28 10:53:45 -07:00
topjohnwu
d93c4a5103
Update README
2021-08-28 10:45:32 -07:00
topjohnwu
6fe9b69aad
Cleanup module.cpp
2021-08-28 10:27:45 -07:00
topjohnwu
5d162f81c4
Modernize db.hpp
2021-08-27 01:06:03 -07:00
topjohnwu
4771c2810b
Significantly better AVD support
2021-08-26 03:09:56 -07:00
topjohnwu
0cd99712fa
Implement cached thread pool
2021-08-24 02:39:54 -07:00
topjohnwu
b591af7803
Minor bug fixes
2021-08-22 03:26:48 -07:00
topjohnwu
171d68ca72
Connect to magiskd log daemon
2021-08-22 03:26:48 -07:00
topjohnwu
bade4f2c6a
Make xhook log as Magisk
2021-08-22 03:26:48 -07:00
topjohnwu
5754782a4e
Generalize gen_jni_hooks.py
2021-08-22 03:26:48 -07:00
topjohnwu
decdd54c19
Hook up denylist IPC routines
2021-08-22 03:26:48 -07:00
topjohnwu
ffe47300a1
Update recv/send fd function
2021-08-22 03:26:48 -07:00
topjohnwu
6f9c3c4ff3
Refactor hook.cpp
2021-08-19 01:54:12 -07:00
topjohnwu
9b3efffba9
Use magiskd to setup files
2021-08-18 03:44:32 -07:00
topjohnwu
003fea52b1
Remove all non-Magisk hiding code
...
Magisk no longer interferes with any signals/info that were not created
or caused by Magisk itself.
2021-08-18 02:01:54 -07:00
topjohnwu
2b17c77195
Make Zygisk 1st class citizen
2021-08-17 23:57:49 -07:00
topjohnwu
c252a50fd7
The name is Zygisk
2021-08-17 23:38:40 -07:00
topjohnwu
cf8f042a20
Cleanup magiskboot cpio code
2021-08-13 04:53:11 -07:00
topjohnwu
844bc2d808
Remove unused code
2021-08-13 03:30:58 -07:00
topjohnwu
27f7fa7153
Extend stream support
2021-08-13 02:08:56 -07:00
topjohnwu
b325aa4555
Fix log file writing
2021-08-13 00:13:44 -07:00
topjohnwu
c2c3bf0ba4
Don't depend on vtable ABI layout
2021-08-12 06:41:59 -07:00
topjohnwu
0d977b54f7
Revise logging code
2021-08-12 03:26:54 -07:00
topjohnwu
20860da4b4
Cleaner daemon handlers
2021-08-11 22:57:08 -07:00
topjohnwu
3ea10b7cf9
Reorganize injection code
2021-08-11 22:56:18 -07:00
topjohnwu
1ec33863bc
Android 5.0 is actually supported
2021-08-11 17:14:22 -07:00
topjohnwu
a260e99090
Support code injection on Android 12
2021-08-11 00:00:21 -07:00
topjohnwu
25efdd3d6f
Use code generator for jni_hooks
2021-08-02 03:20:19 -07:00
topjohnwu
00a1e18959
Store all native JNI methods in data structures
2021-08-01 14:35:16 -07:00
topjohnwu
c59f8adc4a
Update Android Studio
2021-07-30 14:23:20 -07:00
topjohnwu
1eb83ad812
Update Android Studio
2021-05-16 01:26:54 -07:00
topjohnwu
7717f0a6b0
Support Android S AVD
2021-05-13 04:45:13 -07:00
topjohnwu
5e1fba3603
Build a single APK for all ABIs
2021-05-13 00:21:04 -07:00
vvb2060
66cc9bc545
Pure 64bit support
2021-05-12 16:38:34 -07:00
vvb2060
12aa5838d9
Stop gradle daemon
2021-05-12 16:38:34 -07:00
topjohnwu
4f73534837
Update installation instructions
2021-05-12 02:14:41 -07:00
topjohnwu
c4d145835c
Release new canary build
2021-05-11 22:40:40 -07:00
topjohnwu
f822ca5b23
Update changelogs
2021-05-11 22:31:12 -07:00
topjohnwu
8aaa45c62a
Release Magisk v23.0
2021-05-11 22:15:52 -07:00
topjohnwu
2f4f257070
Publish v23.0 docs
2021-05-11 22:08:02 -07:00
topjohnwu
97c1e181c5
Remove unused file
2021-05-11 21:47:46 -07:00
topjohnwu
ea80cddd57
Switch to official snet.jar link
2021-05-11 21:42:58 -07:00
topjohnwu
09a294c219
Fix release builds
2021-05-11 18:40:45 -07:00
bela333
408399eae0
Update install.md
2021-05-11 11:46:23 -07:00
Davy Defaud
391852a102
Various fixes in the French translation
2021-05-11 11:45:31 -07:00
topjohnwu
5b37de8fe5
Build our own zlib
2021-05-10 18:46:03 -07:00
topjohnwu
7df23ceb74
Prevent undefined behavior in magiskboot
2021-05-10 18:38:30 -07:00
topjohnwu
6099f3b015
Always resolve to canonical path
2021-05-10 01:14:53 -07:00
topjohnwu
a5cc31783c
Release new canary build
2021-05-10 00:02:07 -07:00
topjohnwu
6b34ec3ab9
Fix #4194
2021-05-09 22:56:54 -07:00
topjohnwu
5c333dec33
Minor changes
2021-05-09 20:45:53 -07:00
topjohnwu
775d095b3c
Update busybox
...
Fix #4225
2021-05-08 16:45:31 -07:00
GithubUser699
7679b5d516
Removed two "the"
...
At least I couldn't find a Magisk app named "The magisk app", so I removed the two "the".
2021-05-06 19:03:34 -07:00
topjohnwu
7702094053
Update dependencies
2021-05-06 11:37:21 -07:00
Wang Han
3798d50457
Kill processes with SIGKILL rather than SIGTERM
2021-05-04 22:14:46 -07:00
Shaka Huang
95e1e57407
Fix #4140
2021-05-04 22:12:18 -07:00
vvb2060
93ba4cca68
Fix copy sepolicy rules when install module
2021-05-04 22:11:10 -07:00
jenslody
fe4981da21
Fix strings fallback in find_manager_apk
...
There is no preceding character (at least on some devices).
This regex should work in any cases, with and without preceding character.
2021-04-23 18:10:02 -07:00
jenslody
e4f94c4c52
Adapt find_magisk_apk for A11
...
Add a fallback for Android 11's new app location.
2021-04-23 18:10:02 -07:00
vvb2060
708fe514f8
Always use mirror path
2021-04-23 16:56:23 -07:00
vvb2060
11c882380f
Add warning for custom recovery users
2021-04-23 16:56:23 -07:00
vvb2060
fb93af665d
Remove obsolete SDK_INT check
2021-04-23 16:56:23 -07:00
topjohnwu
0db405f2cc
Release new canary build
2021-04-20 03:45:40 -07:00
topjohnwu
fb8000b58b
Handle invalid SafetyNet results
...
Fix #4253
2021-04-20 03:39:47 -07:00
topjohnwu
1b9d8e068a
Remove/move unused files
2021-04-18 05:04:14 -07:00
topjohnwu
038f73a5f7
Remove Koin
...
Non static DI is bad
2021-04-18 04:46:11 -07:00
topjohnwu
649b49ff45
Don't hold resources in Settings objects
2021-04-18 04:14:43 -07:00
topjohnwu
1418bc454d
Don't hold resources in ViewModels
2021-04-18 02:12:53 -07:00
vvb2060
29cc372bfa
Fix proguard rules
2021-04-17 23:44:19 -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
4c1ea0e421
Update stub implementation
...
Prevent some potential issues
2021-04-17 22:14:54 -07:00
topjohnwu
7e01f9c95e
Minor changes
2021-04-17 19:57:47 -07:00
topjohnwu
8b28baabd7
Release new canary build
2021-04-15 23:58:38 -07:00
Clement
f49966d86e
Update french translations
2021-04-15 23:09:45 -07:00
vvb2060
f4ac7c8e7c
Ignore validating class name of isolated process name
...
Fix #4176
Co-authored-by: topjohnwu <topjohnwu@gmail.com >
2021-04-15 23:08:51 -07:00
Arbri çoçka
2b65e1ffc2
Update strings-sq
2021-04-15 05:02:12 -07:00
tzagim
c81a3fa286
Update HE translation
2021-04-15 05:01:39 -07:00
Wang Han
44f005077d
Don't copy sepolicy.rule to /persist on boot
...
* This seems to be a logic that has been abandoned for a
long time. Now we automatically choose which partition
to store sepolicy.rule. Furthermore, touching /persist is
what we should avoid doing whenever possible.
2021-04-15 05:01:03 -07:00
LoveSy
013b6e68ec
Fix perfect forwarding
2021-04-15 04:58:30 -07:00
LoveSy
95c964673d
Initialized _root properly
...
Fix #4204
`_root` is uninitialized for non-root nodes. And it will cause `module_node::mount` fail because it uses `root()`. Once the bug is triggered, signal 11 is received but Magisk catch all signals and therefore stuck forever.
2021-04-15 04:58:30 -07:00
topjohnwu
94ec11db58
Update snet.jar extension
...
The existing API key was revoked for some reason.
Release an updated extension jar with a new API key.
In addition, add some offline signature verification and change how
results are parsed to workaround some dumbass Xposed module "faking"
success results, since many users really don't know better.
2021-04-15 04:47:57 -07:00
topjohnwu
c4e8dda37c
Release new canary build
2021-04-09 21:47:58 -07:00
Wang Han
e136fb3a4f
Remove outdated sepolicies
...
* Support deodexed ROM: This should not be done and dexpreopt is mandatory since P
Xposed: Xposed handles them just fine, at least in the latest version 89.3
suMiscL6: For whatever audio mods, a leftover of phh time
Liveboot and suBackL6: Was for CF.lumen and LiveBoot, not needed now
* Also cleanup binder sepolicies since we allow all binder transactions.
2021-04-09 21:34:51 -07:00
topjohnwu
01b985eded
Remove more pre SDK 21 stuffs
2021-04-09 21:29:42 -07:00
topjohnwu
1f0a35f073
Set minSdkVersion to 21
2021-04-09 20:01:32 -07:00
topjohnwu
2b9b019093
It's 2021 already
2021-04-09 03:51:54 -07:00
vvb2060
10186a9e3d
Refresh flag
2021-04-09 03:30:55 -07:00
topjohnwu
89d8fea7d2
Release new canary build
2021-04-09 03:28:13 -07:00
topjohnwu
f623b98858
Update README
2021-04-09 03:23:52 -07:00
topjohnwu
632cee1613
Release Magisk v22.1
2021-04-09 03:05:57 -07:00
topjohnwu
c0f2164bc5
Magisk v22.1 release notes
2021-04-09 02:50:41 -07:00
Wang Han
f6e4a27fdd
Don't export $API when initializing shell
...
* This becomes meanless after 9c0e189 .
2021-04-09 01:47:52 -07:00
topjohnwu
257ceb99f7
SDK < 21 is EOL
2021-04-09 01:40:08 -07:00
topjohnwu
706d53065b
Rename TransitiveText
2021-04-09 01:32:37 -07:00
topjohnwu
0f95a7babe
Do not hold resources in SuperuserViewModel
2021-04-09 01:00:26 -07:00
topjohnwu
7cb2806878
Release new canary build
2021-04-06 04:13:41 -07:00
topjohnwu
9c0e18975c
Fallback to getprop when reading system props
...
Close #4153
2021-04-06 03:56:49 -07:00
Shaka Huang
3da318b48e
Fix random return value of faccessat() in x86
...
faccessat() should return 0 when success, but it returns random number with errno == 0 in x86 platform.
It’s a side effect of commit bf80b08b5f when magisk binaries ‘corretly’ linked with library of API16 .. lol
Co-authored-by: John Wu <topjohnwu@gmail.com >
2021-04-04 03:04:09 -07:00
Shaka Huang
dfe1f2c108
Call freecon() when fgetfilecon() succeeds
2021-04-04 01:58:59 -07:00
Thomas Bertels
f42a87b51a
Fix spelling in French translation
2021-03-29 09:15:23 -07:00
ahmouse15
ab25857176
Update docs to use the Magisk Manager's revised name
2021-03-29 09:14:21 -07:00
topjohnwu
7da36079c1
Always delete existing ro props at setprop
...
Close #4113
2021-03-29 04:16:18 -07:00
topjohnwu
2bef967af1
Make systemproperties more match AOSP
2021-03-29 03:46:07 -07:00
topjohnwu
7e4194418a
Update libcxx
2021-03-28 04:55:56 -07:00
topjohnwu
aa02057895
Do not use -f flag for readlink
...
Close #4104 , fix #4098
2021-03-28 04:47:13 -07:00
topjohnwu
fb8dc07599
Release new canary build
2021-03-25 02:09:51 -07:00
topjohnwu
66e30a7723
Build libc++ ourselves
2021-03-25 01:00:10 -07:00
vvb2060
0298ab99c4
Update AGP
2021-03-24 04:43:45 -07:00
vvb2060
d11358671e
Fix isolated process display
2021-03-24 04:43:45 -07:00
vvb2060
8b5cb4c7b0
Fix #3735
2021-03-24 04:43:45 -07:00
vvb2060
aad52ae743
Fix UID removed action
2021-03-24 04:43:45 -07:00
vvb2060
8ddab84745
Don't auto hide microG
...
close #3559
2021-03-24 04:43:45 -07:00
vvb2060
6865652125
Fix process name in MagiskHide
...
close #3997
2021-03-24 04:43:45 -07:00
topjohnwu
ed4d0867e8
Make sure navigation happens on main thread
...
Fix #4044
2021-03-24 03:23:11 -07:00
Kazuki H
1c71e02454
Update Japanese translations
2021-03-24 03:10:21 -07:00
Matthew Mirvish
f332e87cab
Ensure the installer knows the API version when running from addon.d
2021-03-24 03:08:59 -07:00
osm0sis
023dbc6cb5
scripts: fix empty module cleanup
...
- should be sufficient for all basic modules, see https://github.com/topjohnwu/Magisk/issues/3119#issuecomment-704000783 for ideas for fixing it further on the daemon module-processing side
Fixes #3119
2021-03-24 03:06:57 -07:00
osm0sis
4dd3f55407
App: add versionCode to magisk_patched.img filenames
2021-03-24 03:06:57 -07:00
osm0sis
7b9a71c9af
scripts: improve boot_patch 64bit detection
...
- use existing api_level_arch_detect function
Fixes #3961
2021-03-24 03:06:57 -07:00
osm0sis
901d22cdfa
scripts: add boot_patch unpack error catching
...
- failure to unpack wasn't being caught so boot_patch would continue to build a new cpio out of nothing and attempt to repack it (identified in #4049 )
2021-03-24 03:06:57 -07:00
osm0sis
93e1266ee7
scripts: fix find_boot_image using wrong partition list on non-slot
...
- revert logic changes introduced by ec8fffe61c which break find_boot_image on NAND devices and any others using non-standard naming supported by the A-only device boot partition name list
- despite being accepted equivalents in modern shells -n does not work on Android in some shell/env scenarios where ! -z always does
2021-03-24 03:06:57 -07:00
osm0sis
0a4e7eea41
scripts: clean up remaining Manager references
2021-03-24 03:06:57 -07:00
Shaka Huang
e3801d6965
Fix overflow
...
`totalsize` might be a big (invalid) number so instead of checking the end address we check the size of the image.
Fix #4049
2021-03-24 03:02:46 -07:00
topjohnwu
336f1687c1
Be more careful with signals
...
Fix #4040
2021-03-18 03:28:02 -07:00
topjohnwu
d4e2f2df6e
Release new canary build
2021-03-16 05:47:29 -07:00
topjohnwu
f152b4c26e
Make LiveData nullable
2021-03-16 05:34:54 -07:00
topjohnwu
bd935b0553
Cleanup fragment navigations
2021-03-16 04:58:02 -07:00
topjohnwu
a9b3b7a359
Update dependencies
2021-03-16 03:44:25 -07:00
vvb2060
7a007b342a
Correct comment
...
For file-based encryption, /data/adb is always required to encrypt
https://android.googlesource.com/platform/system/extras/+/refs/tags/android-7.0.0_r36/ext4_utils/ext4_crypt_init_extensions.cpp
68258e8444 %5E%21/
2021-03-13 21:10:02 -08:00
vvb2060
0783f3d5b6
Fix mount rules dir
...
close #4006
2021-03-13 21:10:02 -08:00
Rikka
afe3c2bc1b
Fix "rm_rf" in build.py on Windows
...
prebuilt/windows-x86_64/bin/libpython2.7.dll
prebuilt/windows-x86_64/lib/python2.7/config/libpython2.7.dll.a
These two files in NDK has read-only attribute on Windows, remove these files with Python will get "WindowsError: [Error 5] Access is denied". It will finally make "build.py ndk" unable to remove the "magisk" folder.
This commit add a onerror callback for "shutil.rmtree" which clear the "read-only" attribute and retry.
2021-03-13 17:51:39 -08:00
topjohnwu
82f8948fd4
Separate setting log functions and starting log daemon
2021-03-13 17:50:48 -08:00
Shaka Huang
b9cdc755d1
Returned fds[0] in socketpair() might be STDOUT
...
* There will be garbage output when executing `su` (#4016 )
* Failed to check root status and showing N/A in status (#4005 )
Signed-off-by: Shaka Huang <shakalaca@gmail.com >
2021-03-13 17:50:48 -08:00
topjohnwu
a6f81c66e5
Bypass stdio
2021-03-13 16:17:28 -08:00
topjohnwu
1ff45ac5f5
Proper pattern matching
...
Fix #3998
2021-03-09 04:08:34 -08:00
Alexandru Scurtu
48bde7375f
uninstaller: consistency improvements
...
since there's no more "Magisk Manager"
2021-03-09 03:05:47 -08:00
topjohnwu
0601fa3b3d
Release new canary build
2021-03-09 02:59:07 -08:00
vvb2060
d0d3c8dbfd
Disable blank issues
2021-03-09 02:51:20 -08:00
vvb2060
8057de1973
Auto close issues
2021-03-09 02:51:20 -08:00
topjohnwu
43c1105d62
Use dedicated thread for writing logfile
2021-03-09 02:40:12 -08:00
topjohnwu
6adf516b30
Release new canary build
2021-03-07 04:39:47 -08:00
topjohnwu
bf80b08b5f
Fix build script
2021-03-07 04:34:06 -08:00
topjohnwu
3e0b1df46d
Update README
2021-03-07 04:12:32 -08:00
topjohnwu
84811c80b6
Release new canary build
2021-03-07 02:51:10 -08:00
LLZN
45e0df9c57
Update strings.xml
2021-03-07 01:56:02 -08:00
vvb2060
bc51ce7c7b
Fix reboot menu
2021-03-07 01:55:19 -08:00
vvb2060
b693d13b93
Proper implementation of cgroup migration
...
https://www.kernel.org/doc/Documentation/admin-guide/cgroup-v1/cgroups.rst
https://www.kernel.org/doc/Documentation/admin-guide/cgroup-v2.rst
2021-03-07 01:55:19 -08:00
topjohnwu
39982d57ef
Fix logging implementation
...
- Block signals in logging routine (fix #3976 )
- Prevent possible deadlock after fork (stdio locks internally)
by creating a new FILE pointer per logging call (thread/stack local)
2021-03-06 13:55:30 -08:00
topjohnwu
15e27e54fb
Migrate to new endpoints
2021-03-05 05:09:25 -08:00
topjohnwu
851404205b
Update NDK to r21e
2021-03-02 23:18:44 -08:00
topjohnwu
117ae71025
Use custom class instead of std::map
2021-03-02 23:16:10 -08:00
topjohnwu
027ec70262
Patch AVB structures
...
Disable vbmeta verification in flags
2021-03-02 20:37:37 -08:00
topjohnwu
55fdee4d65
Use memmem for searching byte patterns
2021-02-28 14:37:12 -08:00
topjohnwu
0d42f937dd
Refactor magiskboot
2021-02-28 14:37:12 -08:00
vvb2060
ac8372dd26
Add cgroup2 path
...
https://android-review.googlesource.com/c/platform/system/core/+/1585101
2021-02-26 21:36:58 -08:00
vvb2060
5e56a6bbee
Fix isolated process name before Android 10
2021-02-26 21:36:58 -08:00
etmatrix
3c6c409df0
Fix #3916
2021-02-25 21:25:21 -08:00
vvb2060
d05408c89f
Delete outdated policies when refresh
2021-02-25 20:08:42 -08:00
vvb2060
ee0ec3fbfa
Use UID_REMOVED action for multi-user and shared user id compatibility
2021-02-25 20:08:42 -08:00
vvb2060
122a73e086
Always show hidden apps
2021-02-25 20:08:42 -08:00
omerakgoz34
29a9b18c4c
Update Turkish translation
2021-02-25 19:56:05 -08:00
孟武.尼德霍格.龍
1561272109
更新繁體中文
...
更新並改善繁體中文的翻譯
2021-02-25 19:55:25 -08:00
Ilya Kushnir
3e61ab0d25
Update RU strings
2021-02-25 19:54:58 -08:00
Francesco Saltori
a49dc6ccb7
Update Italian translation
2021-02-25 19:54:21 -08:00
topjohnwu
60f3d62f00
Proper synchronization
2021-02-24 02:50:55 -08:00
topjohnwu
e613855a4f
Do not check PXA header signatures
...
Fix #3876
2021-02-24 02:27:42 -08:00
sn-o-w
22662d7e03
Update Romanian
2021-02-24 02:08:46 -08:00
Arbri çoçka
6e7e5be1a2
Update values-sq
2021-02-24 02:06:42 -08:00
vvb2060
8b2ab778c9
Fix show canary channel on stable build
2021-02-24 02:06:20 -08:00
vvb2060
35f3766ecf
Update zh-rCN translation
2021-02-24 02:05:33 -08:00
Rom
995304dabb
Update French translation
2021-02-24 02:05:16 -08:00
topjohnwu
803982a271
Prevent multiple installation sessions running in parallel
2021-02-24 01:45:10 -08:00
topjohnwu
9164bf22c2
Update terminology
2021-02-23 23:56:58 -08:00
topjohnwu
911a576893
Publish new canary build
2021-02-23 04:36:49 -08:00
topjohnwu
79ee85c0f9
Update README
2021-02-23 04:22:32 -08:00
topjohnwu
483dbcdc40
Release v22.0
2021-02-23 04:09:26 -08:00
topjohnwu
a1096b5bf0
Do not run pm install on main thread
2021-02-23 04:09:13 -08:00
Chris Renshaw
5ac0e64edb
Update guides.md for system_ext
2021-02-23 03:27:36 -08:00
Lishoo
60b2624607
Update polish translations
...
Add missing strings
2021-02-23 03:26:47 -08:00
topjohnwu
d2e2847b03
Fix stub
2021-02-23 03:24:51 -08:00
topjohnwu
b9669f54f7
Update docs
2021-02-23 03:06:00 -08:00
topjohnwu
8c7bd77d33
Do not wrap twice
2021-02-23 01:49:15 -08:00
Shaka Huang
ba1ce16b8b
Fix error in pure 64-bit environment
...
In Android S preview, there’s no 32-bit libraries in x86_64 system image for emulator.
Signed-off-by: Shaka Huang <shakalaca@gmail.com >
2021-02-22 03:28:54 -08:00
topjohnwu
68090943f4
Several changes
...
- Change error message strings
- Move non-root stub error to SplashActivity
- Skip shell init in non-root stub
2021-02-22 03:28:19 -08:00
vvb2060
a4fb1297b0
Fix crash in pure 64-bit devices
2021-02-22 03:08:51 -08:00
vvb2060
860a05abf2
Simplify UpdateChannel
2021-02-22 03:08:51 -08:00
vvb2060
8bb2f356c0
Allow offline restore app
2021-02-22 03:08:51 -08:00
vvb2060
4950020635
Prevent dot in the first position again
2021-02-22 03:08:51 -08:00
vvb2060
0a6140c6eb
Try install with root first
2021-02-22 03:08:51 -08:00
vvb2060
bba2ac8817
Add unsupport env check
2021-02-22 03:08:51 -08: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
9cc91b30b3
Fix #3871
2021-02-20 02:49:43 -08:00
grmasa
e836caf31e
Update Greek translation
2021-02-20 01:51:39 -08:00
Lishoo
beaa1e5be2
Add missing strings and small updates.
2021-02-20 01:51:02 -08:00
Lishoo
ea545bae26
Update polish translations
2021-02-20 01:50:44 -08:00
topjohnwu
1c9ec2df45
Publish new canary build
2021-02-14 13:43:24 -08:00
vvb2060
b76c80e2ce
Fix apex path
2021-02-14 13:37:38 -08:00
topjohnwu
236990f4a3
Fix stub app crashing
2021-02-14 13:37:13 -08:00
topjohnwu
1ed32df20d
Publish new canary build
2021-02-13 17:26:53 -08:00
topjohnwu
8476eb9f4b
Avoid patching vendor_boot.img
2021-02-13 17:15:04 -08:00
JoanVC100
735af7843b
Add new ca-strings
2021-02-13 17:09:46 -08:00
MC Naveen
ded73e958b
✨ Added Tamil Translation
2021-02-13 17:09:28 -08:00
Ooggle
6dcb84d4f4
French translation of newest commit
2021-02-13 17:08:53 -08:00
topjohnwu
501bc9f438
Restore init from backup rather than symlink
...
Because of course Samsung don't follow AOSP norms.
I mean, why would they?
2021-02-13 16:43:06 -08:00
topjohnwu
f88e812b63
Move behavior to XML
2021-02-13 15:26:32 -08:00
Tornike Khintibidze
be6386c410
Updated Georgian translation
2021-02-12 03:59:35 -08:00
Didgeridoohan
2af4fd17c4
Minor fixes and changes to Swedish transaltions
2021-02-12 03:59:07 -08:00
Mikael Bjurström
f870418bd0
Update Swedish translation
2021-02-12 00:07:40 -08:00
vvb2060
00659e4795
Hide OTA option on virtual A/B devices
2021-02-12 00:07:15 -08:00
Jose Manuel Estrada-Nora Muñoz
cdda10207e
Spanish strings
2021-02-11 23:32:24 -08:00
Ilya Kushnir
701700279f
Update RU strings
2021-02-11 23:32:04 -08:00
alex26052005
a9d804724a
Update strings.xml
...
Updated German language
2021-02-11 23:31:04 -08:00
DanGLES3
e033a9ab47
Update Portugues Brazilian translation
2021-02-11 23:30:35 -08:00
kubalav
059e5fb8aa
Update Slovak translation
2021-02-11 23:28:49 -08:00
vvb2060
a78f255928
Update zh-rCN translation
2021-02-11 23:25:24 -08:00
AndroPlus
1d10e69288
Update Japanese translation
2021-02-11 23:23:36 -08:00
topjohnwu
63590d379c
Update hide icon strategy
2021-02-11 22:38:41 -08:00
topjohnwu
5f63e88984
Hide icons when things don't fit
2021-02-11 05:08:40 -08:00
topjohnwu
75584e2b19
App string resources overhaul
2021-02-11 02:34:27 -08:00
vvb2060
1426ee2ebd
Fix Android build version sdk in script
2021-02-10 22:22:50 -08:00
topjohnwu
b6643b7bfc
Publish new canary build
2021-02-07 21:39:00 -08:00
Hen Ry
721dfdf553
Added translation of new strings
2021-02-07 17:42:33 -08:00
topjohnwu
2963747d14
Fix LZ4_LG format decompression
...
Fix #3802 , fix #3722 , fix #3770 , fix #3635 , fix #3787 , close #3812
2021-02-07 17:40:59 -08:00
topjohnwu
e7350d5041
Fix unable to patch images when app is hidden
2021-02-07 06:42:06 -08:00
topjohnwu
f37e8f4ca8
Fix boot image patching
2021-02-07 01:54:08 -08:00
topjohnwu
594c2accc0
Update dependencies
2021-02-05 04:41:01 -08:00
topjohnwu
7acfac6a91
Publish new canary build
2021-01-30 12:54:51 -08:00
Laz M
0646f48e14
[README] Warn users that the official website is github
...
Google puts a number of cheeky looking websites in the results for Magisk.
I only found out they were unofficial is though issue #3435 . This deserves to be shown more prominently.
2021-01-30 11:59:39 -08:00
tzagim
37565fd067
Fix TYPOs
2021-01-30 11:58:43 -08:00
vvb2060
26b2e7dc5d
Care version code changes
2021-01-30 11:58:10 -08:00
vvb2060
c3313623e4
Fix release build
2021-01-30 11:58:10 -08:00
topjohnwu
2089223690
Fix #3785
2021-01-30 11:51:15 -08:00
topjohnwu
52e1b84d41
Symlink pre API 21
2021-01-30 01:12:49 -08:00
topjohnwu
8794141b7f
Support super old emulators
2021-01-30 00:56:16 -08:00
topjohnwu
f6126dd20e
Support Shortcuts pre API 26
...
Close #3778
2021-01-29 23:16:09 -08:00
topjohnwu
18acfda99b
Remove Windows NDK symlink
...
https://github.com/actions/virtual-environments/pull/2343
2021-01-29 05:43:41 -08:00
topjohnwu
bec5edca84
Avoiding using shell I/O
2021-01-29 05:15:22 -08:00
topjohnwu
6fb20b3ee5
Proper proguard rules
2021-01-27 04:56:39 -08:00
topjohnwu
eaf4d8064b
Also download to external storage
2021-01-27 04:09:07 -08:00
topjohnwu
2a5f5b1bba
Workaround zip extraction bug on older devices
2021-01-27 03:00:09 -08:00
topjohnwu
c538a77937
Tweak build configs and scripts
2021-01-27 02:36:32 -08:00
sominn
aa9e7b1ed1
Update strings.xml
...
CS string update
2021-01-27 01:00:10 -08:00
Arbri çoçka
a3066eddab
Fix string in values-sq
2021-01-27 00:59:49 -08:00
Arbri çoçka
d1729fa787
Fix string in values-sq
2021-01-27 00:59:49 -08:00
vvb2060
93961dde2c
Fix version on continuous build
2021-01-27 00:54:11 -08:00
topjohnwu
1024e68eb6
Remove class mapping in full APK
2021-01-26 07:27:35 -08:00
topjohnwu
6ae2c9387d
Use stub APK hiding method for Android 5.0+
...
At the same time, disable app hiding on devices lower than 5.0
to simplify the logic in the app. By doing so, a hidden app always
implies running as stub.
2021-01-26 07:27:35 -08:00
topjohnwu
fba83e2330
Support stub APK loading down to Android 5.0
2021-01-26 07:27:35 -08:00
topjohnwu
f1295cb7d6
Fix root on Android 7.0 and lower
2021-01-26 02:16:11 -08:00
topjohnwu
dc61dfbde6
Cache update check results
2021-01-25 04:13:08 -08:00
topjohnwu
21466426da
Some code cleanup
2021-01-25 03:44:38 -08:00
topjohnwu
3f0136362b
Move nand flash handling into boot_patch.sh
2021-01-25 03:37:41 -08:00
topjohnwu
e92d77bbec
Some optimizations
2021-01-25 03:02:43 -08:00
topjohnwu
07bd36c94b
Fix patching files
...
Fix #3765
2021-01-25 02:24:12 -08:00
topjohnwu
b1dbbdef12
Remove unneeded busybox redirection
2021-01-25 00:23:42 -08:00
topjohnwu
3e479726ec
Fix legacy rootfs devices
2021-01-25 00:19:10 -08:00
vvb2060
4cc41eccb3
Skip download notes when loading notes url
2021-01-24 21:02:51 -08:00
vvb2060
8f08ae59ac
Fix permission
2021-01-24 21:02:43 -08:00
vvb2060
e8d4e492d6
Fix CHANGELOG_URL
2021-01-24 21:02:37 -08:00
topjohnwu
b8090a8e18
Ensure cwd is writable in module scripts
...
Close #3763
2021-01-24 20:58:30 -08:00
topjohnwu
c609a01e55
Proper shortcut name
2021-01-24 08:00:17 -08:00
Wagg13
c97fb385cd
New update values-pt-rBR
...
update brazilian strings.xml
2021-01-24 07:36:07 -08:00
LLZN
da6c57750e
correction czech translat
...
change and fix some strings after trying a new version of the application (v8.0.6)
2021-01-24 07:35:49 -08:00
topjohnwu
6951d926f7
Rename app name to just Magisk
2021-01-24 07:35:00 -08:00
topjohnwu
6623195bd5
Cleanup scripts
2021-01-24 07:24:13 -08:00
topjohnwu
ec31bb9a82
Rename scripts
2021-01-24 07:18:14 -08:00
vvb2060
8618cc383a
Fix install modules
...
Fix #3759
2021-01-24 07:03:19 -08:00
vvb2060
4b01e3a3c7
Cleanup more kotlin stuffs
2021-01-24 07:03:06 -08:00
vvb2060
7f748c23c1
Use Java debugger
2021-01-24 07:02:44 -08:00
vvb2060
963d248cc7
Rename apk to be uninstaller
2021-01-24 07:02:36 -08:00
topjohnwu
657056e636
Cache changelog files
2021-01-24 06:55:43 -08:00
topjohnwu
9d5efea66e
Remove ManagerJson
...
Everything is now Magisk
2021-01-24 05:14:46 -08:00
topjohnwu
658d74e026
Update home fragment
2021-01-24 00:02:49 -08:00
vvb2060
5113f6d375
Fix stop magiskhide
2021-01-23 18:13:15 -08:00
vvb2060
96405c26d0
writeTo has closed InputStream
2021-01-23 18:12:19 -08:00
vvb2060
4ea5f34bf3
Remove unused action
2021-01-23 18:11:08 -08:00
vvb2060
dbd13a2019
Clean code
2021-01-23 18:10:26 -08:00
vvb2060
06773235da
Fix Windows build
2021-01-23 18:06:01 -08:00
vvb2060
e57556a8af
Use ro.kernel.qemu to check emulator
2021-01-23 18:05:38 -08:00
vvb2060
b54b78c29d
Fix prevent dot in the first position
2021-01-23 17:31:18 -08:00
vvb2060
317336f771
Add isolated processes log
2021-01-23 17:31:11 -08:00
topjohnwu
b4e52f6135
Better development workflow
2021-01-23 16:50:55 -08:00
topjohnwu
f2ca042915
Fix script for handling .apex files
2021-01-23 16:09:30 -08:00
topjohnwu
1060dd2906
Random refactoring
2021-01-23 13:26:28 -08:00
topjohnwu
2e0f7a82fa
More complete stub sources
2021-01-22 20:45:37 -08:00
topjohnwu
5798536559
Remove unnecessary hacks
2021-01-22 20:25:37 -08:00
topjohnwu
ab9a83c82f
Bump target SDK to 30
2021-01-22 05:03:33 -08:00
topjohnwu
c87fdbea0f
Fix erroneous stream close
2021-01-22 03:07:39 -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
61d52991f1
Update BusyBox
2021-01-21 00:35:22 -08:00
topjohnwu
9100186dce
Make emulator direct install env fix
2021-01-18 13:32:10 -08:00
topjohnwu
d2bc2cfcf8
Install both 32 and 64 bit binaries
2021-01-18 12:37:08 -08:00
topjohnwu
5a71998b4e
Stop embedding magisk in magiskinit
2021-01-18 04:25:26 -08:00
topjohnwu
42278f12ff
Fix typo in init daemon
2021-01-18 04:13:54 -08:00
topjohnwu
f5593e051c
Update README
2021-01-17 06:19:56 -08:00
topjohnwu
a27e30cf54
Update release notes
2021-01-17 06:08:15 -08:00
topjohnwu
79140c7636
Proper xxread and xwrite implementation
2021-01-17 01:42:45 -08:00
topjohnwu
1f4c595cd3
Revert to old su -c behavior
2021-01-16 23:59:31 -08:00
topjohnwu
b5b62e03af
Fix copySepolicyRules logic
2021-01-16 21:45:45 -08:00
topjohnwu
67e2a4720e
Fix xxread false negatives
...
Fix #3710
2021-01-16 21:43:53 -08:00
topjohnwu
f5c2d72429
Also log pid and tid
2021-01-16 16:10:47 -08:00
topjohnwu
2f5331ab48
Update README
2021-01-16 05:02:39 -08:00
topjohnwu
7f8257152f
Add v21.3 release notes
2021-01-16 04:55:44 -08:00
topjohnwu
0cd80f2556
Update app changelog
2021-01-16 04:42:14 -08:00
rydwhelchel
1717387876
Grammatical changes to the install docs
2021-01-15 21:32:29 -08:00
Mspy1
109363ebf6
Fixed typo
2021-01-15 21:31:58 -08:00
LLZN
716c4fa386
new update values-cs
...
update czech strings.xml
2021-01-15 21:31:17 -08:00
Arbri çoçka
9a09b4eb20
fix strings-sq
2021-01-15 21:29:53 -08:00
Rikka
95a5b57265
Remove "Flashing" overlay
...
Fix #3579 , fix #3250
2021-01-15 21:28:59 -08:00
topjohnwu
13fbf397d1
Isolated processes might still be hide-able
2021-01-15 20:22:49 -08:00
vvb2060
20be99ec8a
Restore mistakenly deleted codes
2021-01-15 19:59:55 -08:00
topjohnwu
04c53c3578
Legacy SAR: use a simpler method to detect is_two_stage
2021-01-15 02:44:40 -08:00
topjohnwu
51bc27a869
Avoid F2FS like a plague
2021-01-15 02:24:11 -08:00
topjohnwu
71b083794c
Maintain global mount list
2021-01-14 21:14:54 -08:00
topjohnwu
b100d0c503
Revert DTB fstab changes
2021-01-14 19:48:00 -08:00
topjohnwu
76061296c9
Let MagiskBoot handle dtb fstab patching
2021-01-14 06:20:12 -08:00
topjohnwu
bb303d2da1
Remove old unused code
2021-01-14 05:59:53 -08:00
topjohnwu
c91c070343
Re-enable DTB table rebuilding
2021-01-14 05:45:05 -08:00
topjohnwu
aec06a6f61
Get proper total image size
2021-01-14 03:55:27 -08:00
topjohnwu
e8ba671fc2
Guard all injection features behind a global flag
2021-01-13 20:07:23 -08:00
topjohnwu
1860e5d133
Dynamically find libselinux.so path
2021-01-13 19:41:57 -08:00
topjohnwu
f2cb3c38fe
Update mmap implementation
...
Always map memory as writable, but private when read-only
2021-01-12 22:50:55 -08:00
topjohnwu
9a28dd4f6e
Implement MagiskHide through code injection
2021-01-12 03:28:00 -08:00
topjohnwu
d2acd59ea8
Minor code refactoring
2021-01-12 00:07:48 -08:00
topjohnwu
79dfdb29e7
Minor tweaks for patching tar files
2021-01-11 19:47:36 -08:00
topjohnwu
eb21c8b42e
Code cleanups
2021-01-11 02:19:10 -08:00
topjohnwu
541bb53553
Update links in README
2021-01-10 20:36:58 -08:00
Hen Ry
fe8997efae
Fix
2021-01-10 20:17:20 -08:00
Arbri çoçka
23455c722c
fix in Values-sq
2021-01-10 20:16:57 -08:00
topjohnwu
5ce29c30d2
Fix sepolicy copying
2021-01-10 20:16:02 -08:00
topjohnwu
70d67728fd
Add global toggle for ptrace monitor
2021-01-10 19:27:54 -08:00
topjohnwu
e546884b08
Remove isolated process handling in ptrace
...
Impossible to achieve only through ptrace
2021-01-10 17:18:42 -08:00
topjohnwu
b36e6d987d
Reorganize MagiskHide code
...
Prepare for zygote injection hiding
2021-01-10 17:11:00 -08:00
topjohnwu
53c3dd5e8b
Auto track JNI method hooks
2021-01-10 05:07:17 -08:00
topjohnwu
da723b207a
Allow 3rd party code to load pre-specializing
...
Magisk's policy is to never allow 3rd party code to be loaded in the
zygote daemon process so we have 100% control over injection and hiding.
However, this makes it impossible for 3rd party modules to run anything
before process specialization, which includes the ability to modify the
arguments being sent to these original nativeForkAndXXX methods.
The trick here is to fork before calling the original nativeForkAndXXX
methods, and hook `fork` in libandroid_runtime.so to skip the next
invocation; basically, we're moving the responsibility of process
forking to our own hands.
2021-01-10 01:25:30 -08:00
topjohnwu
e050f77198
Don't hook SystemProperties#set
...
Doesn't seem necessary
2021-01-09 20:39:59 -08:00
topjohnwu
540b4b7ea9
Update pre/post hooks implementation
2021-01-09 17:41:25 -08:00
topjohnwu
bbef22daf7
More macro magic to automate more code
2021-01-09 04:28:26 -08:00
topjohnwu
9ed110c91b
Add JNI hooks to critical methods
2021-01-08 05:25:44 -08:00
topjohnwu
a30d510eb1
Use xHook to hook functions in PLT
2021-01-08 00:53:24 -08:00
topjohnwu
ef98eaed8f
Proper injection entry and unloading
2021-01-06 23:59:05 -08:00
topjohnwu
2a257f327c
Sanitize /proc/PID/environ
2021-01-06 23:41:37 -08:00
topjohnwu
4060c2107c
Add preliminary zygote code injection support
...
Prototyping the injection setup and a clean "self unloading" mechanism.
2021-01-06 22:21:17 -08:00
topjohnwu
cd23d27048
Fix remote_write implementation
2021-01-06 21:56:29 -08:00
topjohnwu
18b86e4fd2
Update Android.mk for test binary
...
Make Android Studio happy
2021-01-05 00:01:02 -08:00
topjohnwu
5f2e22a259
Support remote function call with ptrace
...
End up not used for anything, but keep it for good
2021-01-02 21:29:45 -08:00
topjohnwu
4e97b18977
Move libsystemproperties to external
2020-12-31 15:06:19 -08:00
topjohnwu
f9bde347bc
Convert indentation to spaces
...
The tab war is lost
2020-12-30 22:11:24 -08:00
Billy Laws
947a7d6a2f
Support rootwait cmdline parameter on legacy SAR
...
On devices where the primary storage is slow to probe it makes sense to
wait forever for the system partition to mount, this emulates the
kernel's behaviour when waiting for rootfs on SAR if the rootwait
parameter is supplied.
This issue was encountered with some SD cards on the Nintendo Switch.
2020-12-30 16:43:28 -08:00
Björn Engel
872ab2e99b
Change translation for next
...
Nächste sounds a little bit strange.
2020-12-30 16:41:22 -08:00
kubalav
90b8813bb7
Fixed typo
2020-12-30 16:41:01 -08:00
Arbri çoçka
88d0f63294
Fix text in strings_sq
2020-12-30 16:40:47 -08:00
topjohnwu
79fa0d3a90
Hide selection improvements
2020-12-30 16:40:22 -08:00
topjohnwu
8e61080a4a
Preparation for hiding isolated processes
2020-12-30 15:55:53 -08:00
topjohnwu
3f9a64417b
Disable gradle daemon on Windows CI
2020-12-29 02:46:57 -08:00
topjohnwu
eb959379e8
Prevent resource ID clash
2020-12-29 02:39:47 -08:00
topjohnwu
41a644afb9
Open source stub APK loader
...
Close #3537
2020-12-29 01:44:02 -08:00
topjohnwu
6b42db943d
Better bug report details
2020-12-28 17:03:20 -08:00
topjohnwu
1c325459eb
Only run CI when it matters
2020-12-28 16:38:25 -08:00
John Wu
6d88d8ad95
Add issue templates
2020-12-28 16:26:10 -08:00
topjohnwu
246997f273
Update links
2020-12-28 15:58:53 -08:00