0064b01ae0
Trim out \r from string
...
Fix #3490
2020-11-15 06:30:29 -08:00
e0afbb647b
Minor changes
2020-11-13 02:31:54 -08:00
f9c7a4c933
Redirect /data/adb/magisk/busybox
...
Workaround some stupid Samsung kernel restrictions
2020-11-11 02:26:07 -08:00
2b759b84b0
Properly reset string
2020-11-09 21:17:21 -08:00
1e45c63ea5
Scan for zygote periodically
...
Fix #3417
2020-11-08 03:44:43 -08:00
b14a260827
Offset pid_set by 1
...
PID starts at 1, not 0
2020-11-08 02:12:35 -08:00
ade1597e03
Support hiding apps not installed in main user
...
Fix #2181 , close #1840
2020-11-08 01:53:18 -08:00
afebe734b8
Fix several things regarding scripting
2020-11-07 14:36:13 -08:00
e21a78164e
Properly handle factory resets
...
Close #3345
2020-11-04 04:50:04 -08:00
1e0f96d0fd
Prefer platform implementation over internal
2020-11-04 04:42:02 -08:00
bf650332d8
Update nanopb
2020-11-04 01:56:49 -08:00
f32e0af830
Update resetprop help msg
2020-11-03 01:21:05 -08:00
4c94f90e5d
Templatize function callbacks
2020-11-03 01:16:55 -08:00
ffb4224640
Don't use reserved symbols
2020-11-03 01:12:33 -08:00
89fff4830b
Mount proper system_root mirror in magiskd
2020-11-03 00:37:08 -08:00
16e4c67992
Significantly broaden sepolicy.rule compatibility
...
Previously, Magisk uses persist or cache for storing modules' custom
sepolicy rules. In this commit, we significantly broaden its
compatibility and also prevent mounting errors.
The persist partition is non-standard and also critical for Snapdragon
devices, so we prefer not to use it by default.
We will go through the following logic to find the best suitable
non-volatile, writable location to store and load sepolicy.rule files:
Unencrypted data -> FBE data unencrypted dir -> cache -> metadata -> persist
This should cover almost all possible cases: very old devices have
cache partitions; newer devices will use FBE; latest devices will use
metadata FBE (which guarantees a metadata parition); and finally,
all Snapdragon devices have the persist partition (as a last resort).
Fix #3179
2020-11-02 23:20:38 -08:00
0feab753fb
Fix coding errors and minor changes
2020-10-28 04:17:34 -07:00
d0b6318b90
init/mount: support for dm-verity verified root
...
This commit adds support for kernel initialized dm-verity on legacy SAR
devices.
Tested on a Pixel 2 XL with a kernel patch to initialize mappings
specified via the `dm=` kernel parameter even when an initramfs is used.
2020-10-27 03:47:50 -07:00
966e23b846
magiskinit code tidy-up
2020-10-26 20:46:15 -07:00
5b8a1fc2a7
Minor renames
2020-10-25 21:41:14 -07:00
02ea3ca525
Headers doesn't always occupy 1 page
2020-10-25 06:25:42 -07:00
0632b146b8
Add vendor boot image support to magiskboot
2020-10-25 06:09:36 -07:00
1b0b180761
Fix COMPRESSED macro
...
Fix #3383
2020-10-25 05:10:19 -07:00
a079966f97
Migrate to AGP 4.1.0
2020-10-17 06:32:49 -07:00
aaaaa3d044
Minor refactoring
2020-10-15 00:19:11 -07:00
1edc4449d5
Update lz4 to v1.9.2
...
Close #3334
2020-10-15 00:04:48 -07:00
f3cd4da026
Make lz4_lg an exception of lz4_legacy
2020-10-14 23:45:06 -07:00
872c55207c
Add com.android.i18n to apex path
2020-10-12 01:59:41 -07:00
339ca6d666
Improve magiskboot info logging
2020-10-12 01:55:33 -07:00
4aeac3b8f4
Support header_version 3
2020-10-12 01:06:42 -07:00
d625beb7f3
Update --remove-modules
implementation
2020-10-11 18:30:03 -07:00
0499588107
Support androidboot.fstab_suffix cmdline flag
...
Fix #3187
2020-10-08 03:04:12 -07:00
8b5652ced5
Skip image padding on Pixel C
2020-09-29 02:49:10 -07:00
6abd9aa8a4
Add new --install-module command
...
Close #2253
2020-09-26 16:50:41 -07:00
c91ebfbcc1
Pad images to original sizes with zero
...
Close #2005
2020-09-26 14:36:57 -07:00
4fd04e62af
Remove compressed ramdisk support
...
It is causing more issues than it addresses
2020-09-24 02:49:09 -07:00
17b5291bbb
Fix Android 8.0 selinux rules
2020-09-20 14:39:11 -07:00
30e45f863d
Remove unnecessary workaround
2020-09-10 01:01:51 -07:00
434efec860
Use FIFO for su request communication
...
Fix #3159
2020-09-10 00:38:29 -07:00
c3586fe0a5
Upstream external/selinux
...
Fix #2645
2020-09-04 19:20:08 -07:00
11f254e5e5
Fix SELinux support for Android 8.0 - 10
...
Fix #3139
2020-09-04 14:42:09 -07:00
c61ec2465f
Rename function to be more descriptive
2020-09-04 06:21:25 -07:00
fd5ad91d26
Proper 2SI detection
2020-09-04 06:06:03 -07:00
5c4c391f94
Fix typo causing rootfs device bootloops
...
Fix #3134
2020-09-04 04:43:46 -07:00
4dacffd7a1
Fix some issues with selinux rules
2020-09-04 00:03:24 -07:00
61599059d5
Fix typo for SAR first stage init
2020-09-03 19:17:25 -07:00
f32a29911b
Properly detect 2SI init
...
Fix #2994
2020-09-02 21:20:15 -07:00
b73d5753f2
Minor code cleanups
2020-09-02 02:49:32 -07:00
2eee335b5f
Track more sepolicy cil files.
...
Reference: https://android.googlesource.com/platform/system/core/+/refs/tags/android-r-beta-3/init/selinux.cpp
2020-08-31 21:38:55 -07:00
e458215f27
Let isolation namespace base on app namespace
2020-08-08 05:21:03 -07:00