Closed KieronQuinn closed 5 years ago
The android runtime in Q is in an APEX image now and not actually at the same location as before. Pretty sure this behavior is related to some of the APEX changes.
I don't have a device on Q yet. Can you check for me what context your Java process runs as when executed straight from /system/bin ?
ps -AZ
The whole reason we relocate is because we may end up with a restrictive context, if that is no longer true on Q, we can stop doing that. Probably not, but hey let's see.
Fixed in v1.3.0... for now.
Obviously Q is in early stages at the moment, but it appears something has changed. It seems that app_process (64 in this case) has some restrictions on it, which prevent it from finding the runtime namespace when copied outside of /system/bin.
This is the launch script generated for running:
Which gives the following result:
This error comes from the main app_process running line.
If I modify the script to run app_process64 directly from /system/bin, and run just that (not the copying or supolicy lines), as follows:
It runs fine, and the Java code runs as expected.
Not really sure if it's an issue in Magisk (as it does seem to have issues with SELinux) or if something has changed in Q.