topjohnwu
ade1597e03
Support hiding apps not installed in main user
...
Fix #2181 , close #1840
2020-11-08 01:53:18 -08:00
Shaka Huang
6dbd9bfb12
Place pthread_mutex_init() before init_list()
...
Fix crash in #2900
Signed-off-by: Shaka Huang <shakalaca@gmail.com>
2020-06-28 07:06:19 -07:00
topjohnwu
1e2f776b83
Move logging.hpp
2020-06-17 01:17:28 -07:00
topjohnwu
2f824f59dc
Better logging system
...
Use C++ magic to strip out debug logs at compile time
2020-06-01 04:15:37 -07:00
vvb2060
51eeb89f67
Allow consecutive points
2020-05-23 14:58:17 -07:00
Chris Renshaw
3c04dab472
magiskhide: fix late_prop_key setprop, reorganize props slightly
2020-05-18 23:31:22 -07:00
topjohnwu
c3e045e367
Use daemon state to determine late prop hiding
2020-05-18 05:21:47 -07:00
topjohnwu
0d72a4c8ba
Fix compile error
2020-05-18 04:56:51 -07:00
topjohnwu
dbdb0a2560
Move late props to boot complete
2020-05-18 03:51:41 -07:00
topjohnwu
bc6a14d30f
Remove property ro.build.selinux
2020-05-17 15:01:37 -07:00
topjohnwu
97db49a57b
Move vendor property manipulation to late start
2020-05-17 15:01:37 -07:00
topjohnwu
eca2168685
Guard magiskhide state with mutexes
2020-05-17 15:01:37 -07:00
Chris Renshaw
6a2e781db2
magiskhide: add vendor.* props
2020-05-09 04:40:55 -07:00
topjohnwu
a5d7c41d20
Support Safe Mode detection
...
When detecting device is booting as Safe Mode, disable all modules and
MagiskHide and skip all operations. The only thing that'll be available
in this state is root (Magisk Manager will also be disabled by system).
Since the next normal boot will also have all modules disabled, this can
be used to rescue a device in the case when a rogue module causes
bootloop and no custom recovery is available (or recoveries without
the ability to decrypt data).
2020-05-08 00:45:11 -07:00
topjohnwu
5fd574a14f
Fix --remove-modules command
2020-04-30 01:27:48 -07:00
topjohnwu
c9255ab31b
Remove legacy migration
...
It has been quite a long time ago...
2020-04-18 23:46:56 -07:00
topjohnwu
1e714af3cf
Support MagiskHide when /sbin does not exist
2020-04-18 23:45:00 -07:00
topjohnwu
ba7cb47383
Make version reporting consistent
2020-03-23 01:17:13 -07:00
Simon Shi
7768274b2f
Fix build issue
2020-03-14 11:17:51 -07:00
Fox2Code
c07775f5e3
Add missing ro.vendor(.boot).warranty_bit props
...
Co-authored-by: John Wu <topjohnwu@gmail.com>
2020-03-12 00:28:43 -07:00
topjohnwu
a0998009c1
Small native code reorganization
2020-03-09 01:50:30 -07:00
YU-YEN HSU
df15606b00
prop compare fix
2020-03-08 22:58:37 -07:00
YU-YEN HSU
4dc0d13688
Xiaomi cross region flash hacks
2020-03-08 22:58:37 -07:00
topjohnwu
af060b3132
General QoL changes
2019-12-13 00:37:06 -05:00
Alvin Wong
474d65207e
Fix MagiskHide unmounting paths under /product
...
Fixes #2107
2019-12-03 05:42:10 -05:00
topjohnwu
493068c073
Attempt to rescan zygote multiple times
...
Close #1654
2019-11-01 02:12:28 -04:00
topjohnwu
34c65e13bc
Fix strings
...
Close #2012
2019-10-31 12:39:54 -04:00
topjohnwu
947dae4900
Rename classes and small adjustments
2019-09-25 23:55:39 -04:00
topjohnwu
4cd4bfa1d7
Add ':' to allowed characters for magiskhide process name
2019-09-22 16:17:51 -04:00
topjohnwu
baaaf7d5de
Fully match zygote/usap process names
2019-09-17 01:50:45 -04:00
topjohnwu
cfad7dd317
Sanitize magiskhide targets
...
Fix #1785
2019-09-01 14:16:12 +08:00
topjohnwu
ff3710de66
Minor code changes across all sources
2019-06-30 19:09:31 -07:00
topjohnwu
b0e49a4cc8
Kill blastula pool when magiskhide init
2019-06-27 00:49:27 -07:00
topjohnwu
1e94517a72
MagiskHide is coming back strong
2019-06-27 00:28:34 -07:00
topjohnwu
4cc7aced15
Add new util function
2019-06-23 03:53:41 -07:00
topjohnwu
c1602d2554
Support execute commands in magiskhide env
...
Credits to #1454
2019-06-04 22:27:19 -07:00
topjohnwu
4fcdcd9a8a
Detect UID from data directories
2019-06-03 23:32:49 -07:00
topjohnwu
a3a1aed723
Don't check zygote in busy loop
2019-05-27 16:27:19 -07:00
topjohnwu
6a54672b13
Cleanup unnecessary functions
2019-05-26 03:05:23 -07:00
topjohnwu
3d9a15df44
Remove unnecessary '--' in magiskhide
2019-05-26 02:59:38 -07:00
topjohnwu
449c7fda2f
Enable proc_monitor test in debug mode only
2019-05-26 02:53:28 -07:00
topjohnwu
8b7b05da68
Separate hide policies
2019-05-26 02:47:57 -07:00
topjohnwu
92400ebcab
Process monitor minor tweaks
2019-05-26 02:35:12 -07:00
topjohnwu
23d3e56967
Add new util function
2019-05-25 21:42:51 -07:00
topjohnwu
6785dc4967
Disable verbose ptrace logging
2019-05-25 21:42:24 -07:00
topjohnwu
dad20f6a2d
Update zygote namespace
...
Close #1492
2019-05-25 18:30:43 -07:00
topjohnwu
bb15671046
Sleep when there is nothing to wait
2019-05-25 18:17:25 -07:00
topjohnwu
21984fac8b
Add API for running independent proc_monitor test
2019-05-25 16:08:53 -07:00
topjohnwu
515f346dcc
Monitor app_process
...
Some stupid Samsung ROMs will spawn multiple zygote daemons. Since we
switched to ptrace based process monitoring, we have to know all zygote
processes to trace. This is an attempt to fix this issue.
Close #1272
2019-04-22 16:36:23 -04:00
topjohnwu
4e7dafb0e4
Use bitset instead of vector
2019-04-13 02:43:43 -04:00