Skip to content

Instantly share code, notes, and snippets.

@173210
Created March 1, 2014 15:26
Show Gist options
  • Save 173210/9291434 to your computer and use it in GitHub Desktop.
Save 173210/9291434 to your computer and use it in GitHub Desktop.
---------------------- core/java/android/os/Process.java ----------------------
index 631edd6..dc6e925 100644
@@ -130,6 +130,18 @@ public class Process {
public static final int PACKAGE_INFO_GID = 1032;
/**
+ * Defines the UID/GID for FeliCa client application.
+ * @hide
+ */
+ public static final int FELICA_UID = 9989;
+
+ /**
+ * Defines the UID/GID for FeliCa lock application.
+ * @hide
+ */
+ public static final int FELICALOCK_UID = 9990;
+
+ /**
* Defines the start of a range of UIDs (and GIDs), going from this
* number to {@link #LAST_APPLICATION_UID} that are reserved for assigning
* to applications.
-------- services/java/com/android/server/pm/PackageManagerService.java --------
index 5864768..929d1cc 100644
@@ -1132,6 +1132,10 @@ public class PackageManagerService extends IPackageManager.Stub {
ApplicationInfo.FLAG_SYSTEM|ApplicationInfo.FLAG_PRIVILEGED);
mSettings.addSharedUserLPw("com.tmobile.thememanager", THEME_MAMANER_GUID,
ApplicationInfo.FLAG_SYSTEM|ApplicationInfo.FLAG_PRIVILEGED);
+ mSettings.addSharedUserLPw("android.uid.felica", Process.FELICA_UID,
+ ApplicationInfo.FLAG_SYSTEM|ApplicationInfo.FLAG_PRIVILEGED);
+ mSettings.addSharedUserLPw("android.uid.felicalock", Process.FELICALOCK_UID,
+ ApplicationInfo.FLAG_SYSTEM|ApplicationInfo.FLAG_PRIVILEGED);
mAppOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);
String separateProcesses = SystemProperties.get("debug.separate_processes");
@faip520
Copy link

faip520 commented Mar 1, 2014

Udidjdjjj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment