29457a1d28
Small adjustments
2018-11-26 03:26:45 -05:00
731455f164
Update exec functions signatures
2018-11-26 03:06:48 -05:00
b01a8cace6
Always try native accept4
2018-11-26 02:57:34 -05:00
e67965a381
Silent some errors
2018-11-24 15:53:15 -05:00
ec4723096f
Prevent file descriptor from unclosed
2018-11-23 21:15:44 -05:00
762b678d24
Prevent any SELinux issues of root shell streams
2018-11-23 21:08:06 -05:00
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
c8c57c74cc
Optimize proc_monitor
2018-11-23 14:32:33 -05:00
0784448c69
Remove /.backup folder on start
2018-11-20 05:24:40 -05:00
de0064af47
Fix SIGWINCH never followed
...
Close #786
2018-11-20 04:40:42 -05:00
baae1fc84f
Modernize selinux stub
2018-11-20 03:49:44 -05:00
2ab999f4ca
Fix bug in DB query wrapper
2018-11-20 02:20:49 -05:00
c9f390d6e0
Abort upon any error occurred
2018-11-20 02:20:49 -05:00
3622c49ce1
Update busybox
2018-11-18 15:58:41 -05:00
0462e9a7d9
Update external dependencies
2018-11-18 03:34:59 -05:00
c3a6091908
Update to 1.29.3
2018-11-18 02:45:21 -05:00
ab5fedda0b
Prevent Magisk database race condition
...
The database should only be accessed by a single process, which is magiskd.
This means 'magisk --sqlite [SQL]' has to be updated to pass the SQL command to the daemon.
In addition, open the database connection with SQLITE_OPEN_FULLMUTEX to support multithread in magiskd.
2018-11-16 03:20:30 -05:00
ba70269398
Directly print output over socket
2018-11-16 01:49:15 -05:00
77fd5fa7de
Do not follow symlink when checking legacy paths
2018-11-16 01:16:25 -05:00
ab74290fe3
Move magiskhide config into database
2018-11-16 01:15:34 -05:00
3aad9d8166
Add CLI to detect MagiskHide status
2018-11-16 00:37:41 -05:00
572e078d87
Fully deprecate <mount_point>/.core folder
...
Symlinks are preserved for backwards compatibility
2018-11-15 22:55:28 -05:00
ee4548230b
Disable native systemless hosts, add built-in systemless hosts module
2018-11-15 13:57:41 -05:00
376e7977f0
Deprecate path /sbin/.core, switch to /sbin/.magisk
...
Symlink is preserved for backwards compatibility
2018-11-15 01:36:03 -05:00
83ae66daea
Change stock boot image SHA1 backup method
2018-11-15 00:33:20 -05:00
89e0be0099
Fix a bug causing magiskhide CLI freezing
2018-11-13 02:22:55 -05:00
ef40c1212e
Prevent infinite loop if process is killed
...
Close #761
2018-11-13 02:11:02 -05:00
3a2a2a4ffa
Micro optimizations
2018-11-13 02:07:02 -05:00
9592a69986
Prevent unmounting non-custom mount points
2018-11-13 01:53:48 -05:00
c61c3ae0e9
Fix su shell environment setup
2018-11-10 02:17:13 -05:00
3603b7c82b
Move cmdline and extra_cmdline to the same line
2018-11-08 20:57:30 -05:00
5743c72cca
Minor cleanup
2018-11-08 15:23:36 -05:00
4cdd66ceff
Fix lowmemorykiller crash hell in Pixel 3
2018-11-08 13:41:03 -05:00
d3947d2cfa
Adjust logging in magiskpolicy
2018-11-08 06:43:11 -05:00
07718b994a
Fix magiskinit
...
The behavior of C and C++ is slightly different, and causes unable to set excl_list
2018-11-08 06:07:52 -05:00
ef9d463bd7
Fix PLOGE
2018-11-08 06:07:02 -05:00
8745c7884e
Rename Array to Vector
...
Finally get rid of the C style vector, rename the template class to its proper name
2018-11-08 05:03:59 -05:00
b6965105b7
Better parsing logic
2018-11-08 04:57:16 -05:00
3d269fe8be
Migrate MagiskInit to C++
2018-11-08 04:20:16 -05:00
be5f00aa1a
Prevent stack overflow when managing hide list
2018-11-07 22:46:56 -05:00
59ba350f34
Fix copy and move assigments of Array
2018-11-07 04:09:37 -05:00
803c5377a6
Clean init.c
2018-11-07 02:21:15 -05:00
7c12bf7fa1
Modernize code base
2018-11-07 02:10:38 -05:00
ca35a9681f
Minor code improvements
2018-11-06 05:02:30 -05:00
9fe5f37337
Minor code improvements
2018-11-05 14:37:47 -05:00
0742901cd2
Modernize database code
2018-11-04 18:24:08 -05:00
5e4d2dedbe
Minor log_daemon changes
2018-11-04 17:23:08 -05:00
cda57dd4b4
Fully migrate Magisk to C++
2018-11-04 04:15:51 -05:00
4351de503f
Migrate exec function to C++ arrays
2018-11-03 04:03:11 -04:00
6339ba6bfb
Upgrade libutils to C++
2018-11-03 03:06:01 -04:00