You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
382 B
16 lines
382 B
#!/bin/sh
|
|
|
|
for p in /system/xbin/su /su/bin/su
|
|
do
|
|
if [ -x $p ]; then
|
|
# The su tool may require programs
|
|
# from /system/bin in path:
|
|
PATH=/system/bin:$PATH exec $p $@
|
|
fi
|
|
done
|
|
|
|
echo "There is no su program on this device. Termux"
|
|
echo "does not supply tools for rooting, see e.g."
|
|
echo "http://www.androidcentral.com/root for"
|
|
echo "information about rooting Android."
|
|
exit 1
|
|
|