return true;
try {
+ final String privapp = android.os.Build.VERSION.SDK_INT < 19 ? "app" : "priv-app";
final String remountCommand="mount -o remount,rw /system";
- final String copyToSystemCommand="cp "+info.sourceDir+" /system/app/FonBot.apk";
- final String chmodSystemCommand="chmod 644 /system/app/FonBot.apk";
- final String rmSystemCommand="rm /system/app/FonBot.apk";
+ final String copyToSystemCommand="cp "+info.sourceDir+" /system/" + privapp + "/FonBot.apk";
+ final String chmodSystemCommand="chmod 644 /system/" + privapp + "/FonBot.apk";
+ final String rmSystemCommand="rm /system/" + privapp + "/FonBot.apk";
final String copyToUserCommand="cp "+info.sourceDir+" /data/app/FonBot.apk";
final String chmodUserCommand="chmod 644 /data/app/FonBot.apk";
final String rmUserCommand="rm "+info.sourceDir;