This commit is contained in:
M66B 2016-01-30 18:22:00 +01:00
parent a7a8587fb8
commit 4e5bb71f48
2 changed files with 0 additions and 19 deletions

View File

@ -218,13 +218,6 @@ public class Receiver extends BroadcastReceiver {
edit_screen_other.apply();
// TODO: delete unused
} else if (oldVersion < 2016010307) {
notifyNewApplication(Util.getSystemUid("com.facebook.katana", context), context);
notifyNewApplication(Util.getSystemUid("com.facebook.orca", context), context);
notifyNewApplication(Util.getSystemUid("com.google.android.youtube", context), context);
notifyNewApplication(Util.getSystemUid("com.skype.raider", context), context);
notifyNewApplication(Util.getSystemUid("com.twitter.android", context), context);
notifyNewApplication(Util.getSystemUid("com.whatsapp", context), context);
}
} else {
editor.putBoolean("whitelist_wifi", false);

View File

@ -96,18 +96,6 @@ public class Util {
}
}
public static int getSystemUid(String packageName, Context context) {
try {
PackageInfo pInfo = context.getPackageManager().getPackageInfo(packageName, 0);
if ((pInfo.applicationInfo.flags & (ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_UPDATED_SYSTEM_APP)) != 0)
return pInfo.applicationInfo.uid;
else
return -1;
} catch (PackageManager.NameNotFoundException ex) {
return -1;
}
}
public static boolean hasTelephony(Context context) {
PackageManager pm = context.getPackageManager();
if (pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY))