summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/privacyguard
diff options
context:
space:
mode:
authorDiogo Ferreira <defer@cyngn.com>2014-12-17 11:56:22 +0000
committerRoman Birg <roman@cyngn.com>2015-11-03 12:21:35 -0800
commit5dbce4fec2fc4dcdbf2a2800d03b8b4eade5d41a (patch)
tree13a553630a7f687c6e5488eb50dbf77d89c5e629 /src/com/android/settings/privacyguard
parentdb521697716ce627bb9dd574de86e60b756ca2fa (diff)
downloadpackages_apps_Settings-5dbce4fec2fc4dcdbf2a2800d03b8b4eade5d41a.tar.gz
packages_apps_Settings-5dbce4fec2fc4dcdbf2a2800d03b8b4eade5d41a.tar.bz2
packages_apps_Settings-5dbce4fec2fc4dcdbf2a2800d03b8b4eade5d41a.zip
su: Add Root access app-ops control
Adds an app-ops option for root access. Platform-signed apps weren't previously being listed but there are some that use root access (FileManager comes to mind). So we list all of them, but for platform-signed apps we only show the root toggle and none of the permission-based ones. Change-Id: Ie716974156d55eb66061e78dc39505569e5bdc2a
Diffstat (limited to 'src/com/android/settings/privacyguard')
-rw-r--r--src/com/android/settings/privacyguard/PrivacyGuardManager.java16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/com/android/settings/privacyguard/PrivacyGuardManager.java b/src/com/android/settings/privacyguard/PrivacyGuardManager.java
index 9fb8c9d2a..74eeee0d8 100644
--- a/src/com/android/settings/privacyguard/PrivacyGuardManager.java
+++ b/src/com/android/settings/privacyguard/PrivacyGuardManager.java
@@ -30,7 +30,6 @@ import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
-import android.content.pm.Signature;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
@@ -277,25 +276,10 @@ public class PrivacyGuardManager extends Fragment
List<PackageInfo> packages = mPm.getInstalledPackages(
PackageManager.GET_PERMISSIONS | PackageManager.GET_SIGNATURES);
boolean showSystemApps = shouldShowSystemApps();
- Signature platformCert;
-
- try {
- PackageInfo sysInfo = mPm.getPackageInfo("android", PackageManager.GET_SIGNATURES);
- platformCert = sysInfo.signatures[0];
- } catch (PackageManager.NameNotFoundException e) {
- platformCert = null;
- }
for (PackageInfo info : packages) {
final ApplicationInfo appInfo = info.applicationInfo;
- // hide apps signed with the platform certificate to avoid the user
- // shooting himself in the foot
- if (platformCert != null && info.signatures != null
- && platformCert.equals(info.signatures[0])) {
- continue;
- }
-
// skip all system apps if they shall not be included
if (!showSystemApps && (appInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) {
continue;