OSDN Git Service

Use STOCK_PM_FLAGS for backup agent
authorTodd Kennedy <toddke@google.com>
Wed, 23 May 2018 19:39:24 +0000 (12:39 -0700)
committerTodd Kennedy <toddke@google.com>
Wed, 23 May 2018 21:02:16 +0000 (14:02 -0700)
When getting the application info for the backup agent, we need
to have any shared libraries in the returned object. Make it so.

Change-Id: I8122b4070394e8e9b7b9f5afeeb8af3805d3d21b
Fixes: 79248935
Test: Manual

services/core/java/com/android/server/am/ActivityManagerService.java

index 67a16bd..c25f8ff 100644 (file)
@@ -20548,7 +20548,7 @@ public class ActivityManagerService extends IActivityManager.Stub
         IPackageManager pm = AppGlobals.getPackageManager();
         ApplicationInfo app = null;
         try {
-            app = pm.getApplicationInfo(packageName, 0, userId);
+            app = pm.getApplicationInfo(packageName, STOCK_PM_FLAGS, userId);
         } catch (RemoteException e) {
             // can't happen; package manager is process-local
         }