topjohnwu / Magisk

The Magic Mask for Android
GNU General Public License v3.0
47.6k stars 12.08k forks source link

Magisk "not installed" on Pixel 3a Q beta 4 #1588

Closed half-duplex closed 5 years ago

half-duplex commented 5 years ago

Tested with Magisk 19.3 and canary debug (c1602d25/19301), but I don't know how to get the debug logs without working root.

ls -l /sbin:

ls: /sbin/magisk: Permission denied
ls: /sbin/magiskinit: Permission denied
total 0
lrwxrwxrwx 1 root root 12 1970-03-14 02:08 magiskhide -> /sbin/magisk
lrwxrwxrwx 1 root root 16 1970-03-14 02:08 magiskpolicy -> /sbin/magiskinit
lrwxrwxrwx 1 root root 12 1970-03-14 02:08 resetprop -> /sbin/magisk
lrwxrwxrwx 1 root root 12 1970-03-14 02:08 su -> /sbin/magisk
lrwxrwxrwx 1 root root 16 1970-03-14 02:08 supolicy -> /sbin/magiskinit

adb logcat | grep -i magisk:

06-13 16:44:44.478  1300  1300 I PackageManager: Un-granting permission android.permission.REQUEST_INSTALL_PACKAGES from package com.topjohnwu.magisk (protectionLevel=66 flags=0x3848be44)
06-13 16:44:46.261  1300  1300 I PackageManager: Un-granting permission android.permission.REQUEST_INSTALL_PACKAGES from package com.topjohnwu.magisk (protectionLevel=66 flags=0x38c8be44)
06-13 16:46:13.521  1300  1374 I ActivityManager: Start proc 8403:com.topjohnwu.magisk/u0a144 for broadcast {com.topjohnwu.magisk/a.h}
06-13 16:46:13.739  8427  8427 W pool-1-thread-1: type=1400 audit(0.0:643): avc: denied { execute } for name="magisk" dev="tmpfs" ino=21290 scontext=u:r:untrusted_app_27:s0:c144,c256,c512,c768 tcontext=u:object_r:tmpfs:s0 tclass=file permissive=0
06-13 16:46:48.490  1300  8713 I ActivityManager: Killing 8403:com.topjohnwu.magisk/u0a144 (adj 985): empty #17
[after ls /sbin]
06-13 19:00:42.779 24849 24849 W ls      : type=1400 audit(0.0:100269): avc: denied { getattr } for path="/sbin/magisk" dev="tmpfs" ino=21290 scontext=u:r:shell:s0 tcontext=u:object_r:tmpfs:s0 tclass=file permissive=0
06-13 19:00:42.779 24849 24849 W ls      : type=1400 audit(0.0:100270): avc: denied { getattr } for path="/sbin/magiskinit" dev="tmpfs" ino=21289 scontext=u:r:shell:s0 tcontext=u:object_r:tmpfs:s0 tclass=file permissive=0
half-duplex commented 5 years ago

I can't throw new selinux policies at it to test because I can't get even an unmodified build to work. FrankeNDK, rolled back to java 8,...

[arm64-v8a] Executable     : magisk
/home/x/ndk/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: error: Failed to link module ./obj/local/arm64-v8a/objs/magisk/core/applets.o: Invalid record
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [obj/local/arm64-v8a/magisk] Error 1
topjohnwu commented 5 years ago

1578