Magisk/native/jni/utils
topjohnwu 38fcc57bbf Use component name as targets
Services can name their process name arbitrarily, for instance the service in
com.google.android.gms that is responsible for SafetyNet is named
com.google.android.gms.unstable. There are many apps out in the wild use
dedicated services with special names to detect root, and previously the user
is expected to add all of them to the hide list.

In this commit, we change from targeting process names to component names.
On Android, component names are composed of <pkg>/<cls>. When targeting
component names, we can always know what application spawned the new process.
This means that if the user adds a package name to the hidelist, MagiskHide can
now target ALL possible processes of that specific application.

To abide with this change, the default SafetyNet target is now changed from
com.google.android.gms.unstable (process name) to
com.google.android.gms/.droidguard.DroidGuardService (component name)
2018-11-23 15:47:49 -05:00
..
include Micro optimizations 2018-11-13 02:07:02 -05:00
Android.mk Migrate MagiskInit to C++ 2018-11-08 04:20:16 -05:00
CharArray.cpp Prevent unmounting non-custom mount points 2018-11-13 01:53:48 -05:00
file.cpp Rename Array to Vector 2018-11-08 05:03:59 -05:00
logging.cpp Upgrade libutils to C++ 2018-11-03 03:06:01 -04:00
misc.cpp Use component name as targets 2018-11-23 15:47:49 -05:00
selinux.cpp Modernize selinux stub 2018-11-20 03:49:44 -05:00
xwrap.cpp Upgrade libutils to C++ 2018-11-03 03:06:01 -04:00