Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8ae0fc78 authored by Santiago Etchebehere's avatar Santiago Etchebehere
Browse files

Only read Themes Stub from system

Make sure themes stub is a system app before parsing

Bug: 137652108
Change-Id: Ibe11f84d1f8bb698711f71308b7398af4d0759dc
parent 6b74881f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -25,8 +25,8 @@ public abstract class ResourcesApkProvider {
            Resources apkResources = null;
            try {
                PackageManager pm = mContext.getPackageManager();
                ApplicationInfo stubAppInfo = pm.getApplicationInfo(
                        mStubPackageName, PackageManager.GET_META_DATA);
                ApplicationInfo stubAppInfo = pm.getApplicationInfo(mStubPackageName,
                        PackageManager.GET_META_DATA | PackageManager.MATCH_SYSTEM_ONLY);
                if (stubAppInfo != null) {
                    apkResources = pm.getResourcesForApplication(stubAppInfo);
                }