topjohnwu
cf56d7e4ed
Let core-only mode run hosts and magiskhide
2017-07-14 00:54:43 +08:00
topjohnwu
e33a5eb307
Set proper selinux context for /sbin re-link
2017-07-14 00:51:42 +08:00
topjohnwu
e5b704eb32
Several cleanups
2017-07-13 23:42:01 +08:00
topjohnwu
56457bd325
Fix lzma compressed ramdisk
...
Fix issue #222
2017-07-13 10:22:55 +08:00
topjohnwu
bdbb3c6657
Eliminate a potential segfault in magiskpolicy
...
Huge props to @jenslody for finding out the issue!
Fix #278
2017-07-13 10:13:14 +08:00
topjohnwu
c4d7001489
Fix Pixel C flashing errors
...
Use return values instead of creating a file to indicate a chromeos image
Fix #264
2017-07-13 02:14:10 +08:00
topjohnwu
58de5a7ec7
Prevent a slight chance to crash
2017-07-11 01:53:45 +08:00
topjohnwu
504a9b4746
MagiskHide refactor
2017-07-10 23:41:21 +08:00
topjohnwu
cccb5a3e08
Update comments
2017-07-10 22:48:14 +08:00
topjohnwu
d75fa62cab
Adjust run_command function
2017-07-10 22:29:53 +08:00
topjohnwu
b570b363d9
Cleanup file descriptors and add more info
2017-07-08 23:51:58 +08:00
topjohnwu
b9968aa1e6
Add mount-master option to su
2017-07-08 01:13:12 +08:00
topjohnwu
c0d77808f6
Update selinux from upstream
2017-07-07 23:08:18 +08:00
topjohnwu
9679492c28
Match resetprop files with AOSP
2017-07-07 22:29:55 +08:00
topjohnwu
f3b68e6543
Seperate external shared libraries
2017-07-07 22:11:00 +08:00
topjohnwu
0dcfaaf5ff
Adjust hide policies
2017-07-07 17:52:25 +08:00
topjohnwu
ba513dcb9a
Use sqlite stub
2017-07-07 17:14:37 +08:00
topjohnwu
cf565d0145
Add mount ns kernel support detection
2017-07-03 01:19:15 +08:00
topjohnwu
52a23e7904
Add more props for hiding
2017-07-03 01:19:15 +08:00
topjohnwu
9e22b80714
Update unmounting policies
2017-07-03 01:19:15 +08:00
topjohnwu
7eed9c4a6d
Several improvements
2017-07-03 01:19:15 +08:00
topjohnwu
bf42fce17e
Update boot patch method and scripts
2017-07-03 01:19:15 +08:00
topjohnwu
9d421226a7
Update list implementation
2017-07-03 01:15:11 +08:00
topjohnwu
7b9be8369e
Enable magiskhide by default
2017-07-01 15:45:22 +08:00
topjohnwu
7cf4b819ae
Several small tweaks
2017-07-01 14:05:54 +08:00
topjohnwu
9e1aea33c3
Improve xmkdir
2017-06-30 23:22:51 +08:00
topjohnwu
8767a88854
Check/fix ext4 image before mounting
2017-06-30 23:22:26 +08:00
topjohnwu
47c0084641
Fix cache mount bug
2017-06-30 21:49:35 +08:00
topjohnwu
04538372c6
Add more image commands
2017-06-24 23:37:45 +09:00
topjohnwu
806fec7017
Add new rules to unmount
2017-06-15 18:32:24 +08:00
topjohnwu
b3da28eade
Don't compile shell.c for sqlite
2017-06-14 03:29:59 +08:00
topjohnwu
166f6412c2
Fix a flaw in mounting logic
2017-06-14 00:55:41 +08:00
topjohnwu
1777d9f751
Magic Mount algorithm massive bug fix
2017-06-12 03:29:01 +08:00
topjohnwu
309b99eac0
Always init for resetprop
2017-06-11 20:22:10 +08:00
topjohnwu
a5aa1b3917
Don't use system and collect logs
2017-06-11 20:20:24 +08:00
topjohnwu
aced0632ec
Improve image merging
2017-06-11 16:51:44 +08:00
topjohnwu
0b4baad78b
Add mount namespace mode
2017-06-08 22:56:21 +08:00
topjohnwu
201e32d4c4
Fix daemon crashes in encrypted /data
2017-06-08 19:15:51 +08:00
topjohnwu
6c0ba66f17
Add excessive logging for debug mode
2017-06-08 03:25:15 +08:00
topjohnwu
f32ce7392e
Update sepolicy rules
2017-06-08 03:02:01 +08:00
topjohnwu
8bf382adad
Apparently, not every device uses emmc
2017-06-07 11:32:35 +08:00
topjohnwu
541ba357bb
Fix prop issues
2017-06-07 11:26:58 +08:00
topjohnwu
b9a012c6e3
Fix execution in Magisk binary for uninstallation
2017-06-04 00:35:45 +08:00
topjohnwu
17684ed8a8
Fix uninstaller and build with 'all'
2017-06-04 00:04:58 +08:00
topjohnwu
532c6caddf
Fix typo in cpio check
2017-06-03 18:52:02 +08:00
topjohnwu
ef8d9be633
More improvements and fixes
2017-06-03 05:52:49 +08:00
topjohnwu
2cdbcc5666
Add more checks for other patches
2017-06-03 05:08:52 +08:00
topjohnwu
c282a8f328
Loop for every for logging
2017-06-03 04:31:01 +08:00
topjohnwu
b9eab39541
Add ext4 img helper commands
2017-06-03 03:58:26 +08:00
topjohnwu
20903784a4
Support file based encryption and several small updates
2017-06-03 02:28:51 +08:00
topjohnwu
3ec9ff7467
Update MagiskSU
2017-06-01 03:20:51 +08:00
topjohnwu
17d3a87b1f
Prevent resetprop function signature duplicate with libc
2017-05-30 23:34:39 +08:00
topjohnwu
14c5c60863
Improve excessive rapid root access performance
2017-05-29 18:56:00 +08:00
topjohnwu
70a80090c4
Improve multiuser su support
2017-05-28 01:33:58 +08:00
topjohnwu
b6cb5d09cb
Add multiuser support
2017-05-27 02:43:55 +08:00
topjohnwu
69cfde4516
Add new function for vector (future proof)
2017-05-26 23:03:54 +08:00
topjohnwu
bdc83da098
Fix bug in magic mount
2017-05-26 23:03:54 +08:00
topjohnwu
f872a122a9
Preserve at least 32M free size
2017-05-26 23:03:45 +08:00
topjohnwu
aa92e4cbd0
Fix stupid bug in MagiskHide
2017-05-12 15:28:15 +08:00
topjohnwu
e603877a17
Install Magisk Manager APK with pm (Android O Compat.)
2017-05-09 01:16:58 +08:00
topjohnwu
bb96477779
Improve Magic Mount with proper precedence
2017-05-09 01:09:32 +08:00
topjohnwu
543ee79720
Prevent su logging tons of errors
2017-05-08 11:50:52 +08:00
topjohnwu
ea8cd98361
Cleanup file descriptors
2017-05-08 03:11:14 +08:00
topjohnwu
58849f28a8
Add daemon response code
2017-05-05 16:13:26 +08:00
topjohnwu
d66c284bed
Fix several small issues
2017-05-05 04:39:09 +08:00
topjohnwu
693848280b
Add systemless hosts support
2017-05-04 03:05:37 +08:00
topjohnwu
396afaa181
Improve magiskhide stability
2017-05-04 02:58:37 +08:00
topjohnwu
05ed29133b
Finish post-fs simple mount
2017-05-04 02:39:53 +08:00
topjohnwu
a31c1e8084
post-fs-data mode done
2017-05-04 01:22:56 +08:00
topjohnwu
47da76c5a5
Stupid bug, critical fix
2017-05-02 04:57:14 +08:00
topjohnwu
6017ff2318
Close files, cleanup resourses
2017-05-02 04:55:55 +08:00
topjohnwu
e16d604d0d
Implement Magic Mount
2017-05-01 01:58:52 +08:00
topjohnwu
d3d5703f3f
Reduce duplicate code for MagiskBoot
2017-04-28 21:53:44 +08:00
topjohnwu
512e7be74f
Add version info
2017-04-28 03:26:48 +08:00
topjohnwu
727abbea8f
Cleanup magiskboot
2017-04-28 03:24:30 +08:00
topjohnwu
76f81ece62
Fix verbose output
2017-04-28 01:45:57 +08:00
topjohnwu
495654f9ff
Small tweaks
2017-04-24 21:43:30 +08:00
topjohnwu
4c96d23f48
Some minor updates
2017-04-22 17:12:54 +08:00
topjohnwu
9bc8f6e9d7
Add common script support
2017-04-22 17:12:54 +08:00
topjohnwu
e00e6509ee
Add error code for magiskhide
2017-04-22 17:12:54 +08:00
topjohnwu
be5739508b
Isolate root daemon from requests
2017-04-22 17:12:54 +08:00
topjohnwu
38c867ea94
Some fixes
2017-04-22 17:12:54 +08:00
topjohnwu
2a985ce6c0
Add magiskhide list management
2017-04-22 17:12:54 +08:00
topjohnwu
b2f8792873
Add more Android O selinux stuff
2017-04-22 17:12:54 +08:00
topjohnwu
2065133e2d
Update policy rules for Android O
2017-04-22 17:12:54 +08:00
topjohnwu
102a7f8723
Change flags
2017-04-22 17:12:54 +08:00
topjohnwu
e9afc15719
Fix magiskhide daemon enable/disable
2017-04-22 17:12:54 +08:00
topjohnwu
08527dde9b
Auto start magiskhide
2017-04-22 17:12:54 +08:00
topjohnwu
d9c3a3c9a9
Remove su_device auto transit
2017-04-22 17:12:54 +08:00
topjohnwu
fe89f9e55e
Update to newer functions in resetprop
2017-04-22 17:12:54 +08:00
topjohnwu
73802aabac
Fix compile issue when using NDK Unified Headers
2017-04-22 17:12:54 +08:00
topjohnwu
bc66733289
Add Android O sepolicy patches
2017-04-22 17:12:54 +08:00
topjohnwu
f4c93b2251
Update resetprop for Android O support
...
Updated to upstream https://android.googlesource.com/platform/bionic.git
2017-04-22 17:12:54 +08:00
topjohnwu
8a2f0063d4
Improve magiskhide process/thread management
2017-04-22 17:12:54 +08:00
topjohnwu
dfe4b33f2f
Integrate sepolicy patching with MagiskSU fixed
2017-04-22 17:12:54 +08:00
topjohnwu
2f7cfa7ab2
Link binaries when daemon started
2017-04-22 17:12:54 +08:00
topjohnwu
bdcb813ee6
Add block rw support
2017-04-22 17:12:54 +08:00
topjohnwu
f0751007f3
Update main function
2017-04-22 17:12:54 +08:00
topjohnwu
6ad993704c
Integrate MagiskSU into Magisk daemon
2017-04-22 17:12:54 +08:00
topjohnwu
796c3009c7
Refactor resetprop
2017-04-22 17:12:54 +08:00
topjohnwu
144ff5e716
Integrate MagiskHide into Magisk Daemon
2017-04-22 17:12:54 +08:00
topjohnwu
054a1e5ea4
Add magisk daemon
2017-04-22 17:12:54 +08:00
topjohnwu
a223f6056e
Add zygote namespace detection
2017-04-22 17:12:54 +08:00
topjohnwu
a1fd7704e0
Fix vector bug
2017-04-22 17:12:54 +08:00
topjohnwu
b94227efc9
Add process searching
2017-04-22 17:12:54 +08:00
topjohnwu
3a7e782c07
Remove separate binary support for tools rely on daemon
2017-04-22 17:12:54 +08:00
topjohnwu
8f6b33d790
Rewrite magiskhide
2017-04-22 17:12:54 +08:00
topjohnwu
f476daa041
Change parts of library to shared
...
libsqlite and libselinux are shipped with Android systems
We build them here for the compiler to link against it,
we actually use the one in /system/lib(64)
2017-04-22 17:12:54 +08:00
topjohnwu
acfde9458d
Merge magiskpolicy, magiskhide, resetprop, magisksu
2017-04-22 17:12:54 +08:00
topjohnwu
82e969627a
Start unifying with log monitor
2017-04-22 17:12:54 +08:00
topjohnwu
40766b3375
Do not use psuedo permissive, hide instead
2017-04-03 23:28:18 +08:00
topjohnwu
d274e45587
Fix SuperSU installation
2017-03-31 06:25:22 +08:00
topjohnwu
0a0eb3f710
Update policy rules
2017-03-31 02:54:39 +08:00
topjohnwu
67f347f880
Live patch policy in service mode
2017-03-30 02:29:10 +08:00
topjohnwu
81542fc6a8
Fix MTK header support
2017-03-29 04:35:35 +08:00
topjohnwu
5aced279d6
Add legacy lz4 mode support
2017-03-29 04:35:35 +08:00
topjohnwu
3f016f785f
Handle selinux for Samsung in binary
2017-03-29 02:23:10 +08:00
topjohnwu
8c7fbe20f9
Daemons cannot run in /data on Samsung, move to magisk.img
2017-03-27 07:23:53 +08:00
topjohnwu
6e8e4ad5da
Fix compile warnings
2017-03-26 23:40:34 +08:00
Jasmin Hassan
760b6385f1
list_monitor: use IN_CLOSE_WRITE instead of IN_MODIFY
2017-03-26 21:49:11 +08:00
Jasmin Hassan
91527500f9
proc_monitor: Support newer kernels am_proc_start format
2017-03-26 21:49:11 +08:00
Jasmin Hassan
e87d989ca3
Fix proccess monitor for lsskernel 6.0.1 (3.8UX)
2017-03-26 21:49:11 +08:00
topjohnwu
0d10b812fe
Handle MagiskSU and MagiskHide differently
2017-03-19 05:00:12 +08:00
topjohnwu
b4fe4f3d10
Rename sepolicy-inject
2017-03-18 17:26:30 +08:00
topjohnwu
ba93fcbda0
Prevent multirom crashes
2017-03-18 16:57:29 +08:00
topjohnwu
88d19a4ca4
Several fixes
2017-03-18 16:57:04 +08:00
topjohnwu
af7b9ea898
Update to MagiskSU 8
2017-03-16 06:58:43 +08:00
topjohnwu
09cd0468cf
Stop after reading TRAILER!!!
2017-03-16 06:46:32 +08:00
topjohnwu
7877ac0c3b
Well, /dev/zero cannot be used like that...
2017-03-13 05:05:51 +08:00
topjohnwu
1442e29d0e
Update size in MTK headers
2017-03-13 04:27:56 +08:00
topjohnwu
c421e45fa0
Small improvements and bug fixes
2017-03-12 19:22:15 +08:00
topjohnwu
1a3c522c94
Various improvements for Magisk installation
2017-03-12 18:12:16 +08:00
topjohnwu
212a303347
Add auto cpio backup and restore
2017-03-10 07:52:59 +08:00
topjohnwu
3f3568d8af
More cpio features
2017-03-10 04:15:37 +08:00
topjohnwu
1e3bcfc8cd
Add basic cpio features
2017-03-08 00:54:23 +08:00
topjohnwu
a4ce9f6f05
Add compress, decompress, cleanup command
2017-03-05 01:51:13 +08:00
topjohnwu
65dc99744e
Use our own zlib for static link and ZLIB_CONST flag
2017-03-04 21:18:24 +08:00
topjohnwu
c6d4740b0c
Separate utility functions
2017-03-04 21:16:59 +08:00
topjohnwu
9f91c8b59d
Improvements
2017-03-04 00:04:15 +08:00
topjohnwu
2b3b087c29
Add bzip2 support
2017-03-02 05:23:31 +08:00
topjohnwu
e08d46aa76
Add lz4 support
2017-03-02 04:12:47 +08:00
topjohnwu
feccc97a14
Fix typo
2017-03-01 00:50:56 +08:00
topjohnwu
77eec3d21d
Support legacy lzma
2017-03-01 00:47:59 +08:00
topjohnwu
ecaafd1b70
Fix header when repack from ELF
2017-03-01 00:15:38 +08:00
topjohnwu
0d51997e46
Add xz support
2017-02-28 21:56:13 +08:00
topjohnwu
463cbceb07
Cleanup Android.mk
2017-02-28 17:53:04 +08:00
topjohnwu
1437c5c63f
Add ndk-compression with liblzma
2017-02-28 17:24:27 +08:00
topjohnwu
52f1d50902
Project restructure
2017-02-28 16:59:21 +08:00
topjohnwu
a839cb787e
Rename bootimgtool to magiskboot
2017-02-28 05:43:49 +08:00
topjohnwu
f621fb2060
Add gzip native support
2017-02-28 05:40:27 +08:00