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

Commit ebc50d8a authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

All apps have 'null' feature

If this feature is not added explicitly the 'null' counts are reset on
reboot.

Fixes: 150519372
Test: Rebooted and saw null accesses afterwards
Change-Id: Ie1faa321009023b077b226512223fddc8c84e1ca
parent bba804e8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1445,6 +1445,7 @@ public class AppOpsService extends IAppOpsService.Stub {

                ArrayMap<String, String> dstFeatureIds = new ArrayMap<>();
                ArraySet<String> featureIds = new ArraySet<>();
                featureIds.add(null);
                if (pkg.getFeatures() != null) {
                    int numFeatures = pkg.getFeatures().size();
                    for (int featureNum = 0; featureNum < numFeatures; featureNum++) {