This repository was archived by the owner on Jan 8, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ public class DaemonUtils {
46
46
private static Boolean has32Bit = null , has64Bit = null ;
47
47
private static String originalNativeBridge ;
48
48
private static String devRandom ;
49
- private static int ppid = -1 ;
50
49
private static int magiskVersionCode = -1 ;
51
50
private static String magiskTmpfsPath ;
52
51
@@ -70,10 +69,6 @@ public class DaemonUtils {
70
69
private static final Set <Integer > zygotePid = Collections .newSetFromMap (new ConcurrentHashMap <>());
71
70
72
71
static {
73
- originalNativeBridge = SystemProperties .get ("ro.dalvik.vm.native.bridge" );
74
- if (TextUtils .isEmpty (originalNativeBridge )) {
75
- originalNativeBridge = "0" ;
76
- }
77
72
78
73
try {
79
74
isSELinuxEnforcing = hasSELinux () && SELinux .isSELinuxEnabled () && SELinux .isSELinuxEnforced ();
@@ -122,6 +117,11 @@ public class DaemonUtils {
122
117
public static void init (String [] args ) {
123
118
magiskVersionCode = Integer .parseInt (args [0 ]);
124
119
magiskTmpfsPath = args [1 ];
120
+ if (args .length > 2 ) {
121
+ originalNativeBridge = args [2 ];
122
+ } else {
123
+ originalNativeBridge = "0" ;
124
+ }
125
125
}
126
126
127
127
public static boolean isLoaded () {
Original file line number Diff line number Diff line change @@ -7,4 +7,4 @@ sed -Ei 's/^description=(\[.*][[:space:]]*)?/description=[ app_process fails to
7
7
export CLASSPATH=$MODDIR /rirud.apk
8
8
cd $MODDIR
9
9
flock " module.prop"
10
- unshare -m sh -c " /system/bin/app_process -Djava.class.path=rirud.apk /system/bin --nice-name=rirud riru.Daemon $( magisk -V) $( magisk --path) &"
10
+ unshare -m sh -c " /system/bin/app_process -Djava.class.path=rirud.apk /system/bin --nice-name=rirud riru.Daemon $( magisk -V) $( magisk --path) $( getprop ro.dalvik.vm.native.bridge ) &"
You can’t perform that action at this time.
0 commit comments