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

Commit 568f5e57 authored by David Brazdil's avatar David Brazdil
Browse files

Fix ApplicationInfo.isAllowedToUseHiddenApi predicate

FLAG_UPDATED_SYSTEM_APP does not imply FLAG_SYSTEM, need to check both.

Bug: 64382372
Test: make
Change-Id: I1ad87c5ef0ad90c090da9264b894ae25e87996ae
parent bca6e66c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1601,7 +1601,7 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable {
     * @hide
     */
    public boolean isAllowedToUseHiddenApi() {
        return isSystemApp();
        return isSystemApp() || isUpdatedSystemApp();
    }

    /**