Magisk/native/jni/core
topjohnwu b1afd554fc Application Component Granularity MagiskHide
Before switching to the new MagiskHide implementation (APK inotify),
logcat parsing provides us lots of information to target a process.
We were targeting components so that apps with multi-processes
can still be hidden properly.

After switching to the new implementation, our granularity is limited
to the UID of the process. This is especially dangerous since Android
allow apps signed with the same signature to share UIDs, and many system
apps utilize this for elevated permissions for some services.

This commit introduces process name matching. We could not blanketly
target an UID, so the workaround is to verify its process name before
unmounting.

The tricky thing is that any app developer is allowed to name the
process of its component to whatever they want; there is no 'one
rule to catch them all' to target a specific package. As a result,
Magisk Manager is updated to scan through all components of all apps,
and show different processes of the same app, each as a separate
hide target in the list.

The hide target database also has to be updated accordingly.
Each hide target is now a <package name, process name> pair. The
magiskhide CLI and Magisk Manager is updated to support this new
target format.
2019-03-01 17:08:08 -05:00
..
applets.cpp Some minor optmizations 2019-02-24 17:45:08 -05:00
bootstages.cpp Introduce /data mirror 2019-02-25 06:13:42 -05:00
daemon.cpp Better nice name 2019-02-15 04:31:39 -05:00
db.cpp Application Component Granularity MagiskHide 2019-03-01 17:08:08 -05:00
init.cpp Trim dev name 2019-02-26 03:04:17 -05:00
magisk.cpp Fix help message for magisk 2019-02-18 03:09:01 -05:00
magiskrc.h Add newlines before rc scripts 2019-02-18 03:30:30 -05:00
scripting.cpp Remove unused scripts 2019-02-18 03:08:40 -05:00
socket.cpp Separate scripting code 2019-02-15 20:45:05 -05:00