Keep lspd is euid 0 in debug build (#2615)
This commit is contained in:
parent
8792e62df8
commit
a2db3f8b4e
|
|
@ -11,6 +11,8 @@ import android.system.ErrnoException;
|
||||||
import android.system.Os;
|
import android.system.Os;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
|
import org.lsposed.daemon.BuildConfig;
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
@ -147,7 +149,9 @@ public class BridgeService {
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
try {
|
try {
|
||||||
Os.seteuid(1000);
|
if (!BuildConfig.DEBUG) {
|
||||||
|
Os.seteuid(1000);
|
||||||
|
}
|
||||||
} catch (ErrnoException e) {
|
} catch (ErrnoException e) {
|
||||||
Log.e(TAG, "seteuid 1000", e);
|
Log.e(TAG, "seteuid 1000", e);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue