25 lines
326 B
Bash
Executable File
25 lines
326 B
Bash
Executable File
#!/bin/bash
|
|
|
|
function checkbin() {
|
|
type -P su-exec
|
|
}
|
|
|
|
function su_mt_user() {
|
|
su android -c '"$0" "$@"' -- "$@"
|
|
}
|
|
|
|
chown android:android /opt/android-sdk-linux
|
|
|
|
if checkbin; then
|
|
exec su-exec android:android /opt/tools/android-sdk-update.sh "$@"
|
|
else
|
|
su_mt_user /opt/tools/android-sdk-update.sh ${1}
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|