version: cude 5.1
fix: update:适配台电
This commit is contained in:
@@ -519,14 +519,14 @@ public class Utils {
|
||||
public static void unInstallAPP(Context context, String packageName) {
|
||||
if (!TextUtils.isEmpty(packageName) && !ApkUtils.isSystemApp(context, packageName)) {
|
||||
if (ApkUtils.isSystemApp(context, packageName)) {
|
||||
Toast.makeText(BaseApplication.getAppContext(), R.string.system_unistall_error, Toast.LENGTH_SHORT).show();
|
||||
Toast.makeText(context, R.string.system_unistall_error, Toast.LENGTH_SHORT).show();
|
||||
} else {
|
||||
Uri packageURI = Uri.parse("package:" + packageName);
|
||||
Intent intent = new Intent(Intent.ACTION_DELETE, packageURI);
|
||||
context.startActivity(intent);
|
||||
}
|
||||
} else {
|
||||
Toast.makeText(BaseApplication.getAppContext(), R.string.unistall_error, Toast.LENGTH_SHORT).show();
|
||||
Toast.makeText(context, R.string.unistall_error, Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1097,7 +1097,7 @@ public class Utils {
|
||||
list = list.substring(0, list.length() - 1);
|
||||
Log.e("fht", list);
|
||||
writeSucceed = Settings.System.putString(context.getContentResolver(), CommonConfig.AOLE_ACTION_APP_FORBID, list);
|
||||
Log.e("fht", "qch_app_forbid:" + list);
|
||||
Log.e("fht", "aole_app_forbid:" + list);
|
||||
} else {
|
||||
writeSucceed = Settings.System.putString(context.getContentResolver(), CommonConfig.AOLE_ACTION_APP_FORBID, "Invalid");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user