Merge "Update ProcessRecord ApplicationInfo for RROs" into rvc-dev am: e1adc126a4
Change-Id: I4626f34b6948c640da01822eadc786ec4effff64
This commit is contained in:
@@ -3671,12 +3671,18 @@ public final class ProcessList {
|
|||||||
final int packageCount = app.pkgList.size();
|
final int packageCount = app.pkgList.size();
|
||||||
for (int j = 0; j < packageCount; j++) {
|
for (int j = 0; j < packageCount; j++) {
|
||||||
final String packageName = app.pkgList.keyAt(j);
|
final String packageName = app.pkgList.keyAt(j);
|
||||||
if (updateFrameworkRes || packagesToUpdate.contains(packageName)) {
|
if (!updateFrameworkRes && !packagesToUpdate.contains(packageName)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
final ApplicationInfo ai = AppGlobals.getPackageManager()
|
final ApplicationInfo ai = AppGlobals.getPackageManager()
|
||||||
.getApplicationInfo(packageName, STOCK_PM_FLAGS, app.userId);
|
.getApplicationInfo(packageName, STOCK_PM_FLAGS, app.userId);
|
||||||
if (ai != null) {
|
if (ai == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
app.thread.scheduleApplicationInfoChanged(ai);
|
app.thread.scheduleApplicationInfoChanged(ai);
|
||||||
|
if (ai.packageName.equals(app.info.packageName)) {
|
||||||
|
app.info = ai;
|
||||||
}
|
}
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
Slog.w(TAG, String.format("Failed to update %s ApplicationInfo for %s",
|
Slog.w(TAG, String.format("Failed to update %s ApplicationInfo for %s",
|
||||||
@@ -3685,7 +3691,6 @@ public final class ProcessList {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@GuardedBy("mService")
|
@GuardedBy("mService")
|
||||||
void sendPackageBroadcastLocked(int cmd, String[] packages, int userId) {
|
void sendPackageBroadcastLocked(int cmd, String[] packages, int userId) {
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ class ProcessRecord implements WindowProcessListener {
|
|||||||
private static final String TAG = TAG_WITH_CLASS_NAME ? "ProcessRecord" : TAG_AM;
|
private static final String TAG = TAG_WITH_CLASS_NAME ? "ProcessRecord" : TAG_AM;
|
||||||
|
|
||||||
private final ActivityManagerService mService; // where we came from
|
private final ActivityManagerService mService; // where we came from
|
||||||
final ApplicationInfo info; // all about the first app in the process
|
volatile ApplicationInfo info; // all about the first app in the process
|
||||||
final ProcessInfo processInfo; // if non-null, process-specific manifest info
|
final ProcessInfo processInfo; // if non-null, process-specific manifest info
|
||||||
final boolean isolated; // true if this is a special isolated process
|
final boolean isolated; // true if this is a special isolated process
|
||||||
final boolean appZygote; // true if this is forked from the app zygote
|
final boolean appZygote; // true if this is forked from the app zygote
|
||||||
|
|||||||
Reference in New Issue
Block a user