public static void systemReady() { VEnvironment.systemReady(); VAppManagerService instance = new VAppManagerService(); instance.mUidSystem.initUidList(); sService.set(instance); }
public void initUidList() { mSharedUserIdMap.clear(); File uidFile = VEnvironment.getUidListFile(); if (!loadUidList(uidFile)) { File bakUidFile = VEnvironment.getBakUidListFile(); loadUidList(bakUidFile); } }
public int getOrCreateUid(VPackage pkg) { String sharedUserId = pkg.mSharedUserId; if (sharedUserId == null) { sharedUserId = pkg.packageName; } Integer uid = mSharedUserIdMap.get(sharedUserId); if (uid != null) { return uid; } int newUid = ++mFreeUid; mSharedUserIdMap.put(sharedUserId, newUid); save(); return newUid; } }
ps.libPath = libDir.getPath(); ps.packageName = pkg.packageName; ps.appId = VUserHandle.getAppId(mUidSystem.getOrCreateUid(pkg)); if (res.isUpdate) { ps.lastUpdateTime = installTime;
ps.libPath = libDir.getPath(); ps.packageName = pkg.packageName; ps.appId = VUserHandle.getAppId(mUidSystem.getOrCreateUid(pkg)); if (res.isUpdate) { ps.lastUpdateTime = installTime;
public static void systemReady() { VEnvironment.systemReady(); VAppManagerService instance = new VAppManagerService(); instance.mUidSystem.initUidList(); sService.set(instance); }
public void initUidList() { mSharedUserIdMap.clear(); File uidFile = VEnvironment.getUidListFile(); if (!loadUidList(uidFile)) { File bakUidFile = VEnvironment.getBakUidListFile(); loadUidList(bakUidFile); } }
public int getOrCreateUid(VPackage pkg) { String sharedUserId = pkg.mSharedUserId; if (sharedUserId == null) { sharedUserId = pkg.packageName; } Integer uid = mSharedUserIdMap.get(sharedUserId); if (uid != null) { return uid; } int newUid = ++mFreeUid; mSharedUserIdMap.put(sharedUserId, newUid); save(); return newUid; } }
ps.libPath = libDir.getPath(); ps.packageName = pkg.packageName; ps.appId = VUserHandle.getAppId(mUidSystem.getOrCreateUid(pkg)); if (res.isUpdate) { ps.lastUpdateTime = installTime;
public static void systemReady() { VEnvironment.systemReady(); VAppManagerService instance = new VAppManagerService(); instance.mUidSystem.initUidList(); sService.set(instance); }
public void initUidList() { mSharedUserIdMap.clear(); File uidFile = VEnvironment.getUidListFile(); if (!loadUidList(uidFile)) { File bakUidFile = VEnvironment.getBakUidListFile(); loadUidList(bakUidFile); } }
public int getOrCreateUid(VPackage pkg) { String sharedUserId = pkg.mSharedUserId; if (sharedUserId == null) { sharedUserId = pkg.packageName; } Integer uid = mSharedUserIdMap.get(sharedUserId); if (uid != null) { return uid; } int newUid = ++mFreeUid; mSharedUserIdMap.put(sharedUserId, newUid); save(); return newUid; } }