You've already forked PlayIntegrityFork
mirror of
https://github.com/osm0sis/PlayIntegrityFork.git
synced 2025-09-06 06:37:06 +00:00
Fix fallback whoami root check logic
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/system/bin/sh
|
#!/system/bin/sh
|
||||||
|
|
||||||
if [ "$USER" != "root" -o "$(whoami 2>/dev/null)" != "root" ]; then
|
if [ "$USER" != "root" -a "$(whoami 2>/dev/null)" != "root" ]; then
|
||||||
echo "autopif: need root permissions";
|
echo "autopif: need root permissions";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi;
|
fi;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
# Kill the Google Play services DroidGuard process
|
# Kill the Google Play services DroidGuard process
|
||||||
# (com.google.android.gms.unstable)
|
# (com.google.android.gms.unstable)
|
||||||
|
|
||||||
if [ "$USER" != "root" -o "$(whoami 2>/dev/null)" != "root" ]; then
|
if [ "$USER" != "root" -a "$(whoami 2>/dev/null)" != "root" ]; then
|
||||||
echo "killgms: need root permissions";
|
echo "killgms: need root permissions";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi;
|
fi;
|
||||||
|
|||||||
Reference in New Issue
Block a user