Expose remaining PackageState APIs for ART
- isApex temporarily while the underlying flags refactor is ongoing
- getFirstInstallTime so ART can track app use times for an LRU cache
- isOverlay to allow `isLoadableInOtherProcesses` utility, although ART
will likely not need to worry about this flag
API-Coverage-Bug: 262593427
Bug: 256637152
Change-Id: I748f77f2edd6f6469394f6152f4429b5c92d5101
diff --git a/services/api/current.txt b/services/api/current.txt
index 090a449..81d8dfd 100644
--- a/services/api/current.txt
+++ b/services/api/current.txt
@@ -145,6 +145,7 @@
method public boolean isRequestLegacyExternalStorage();
method public boolean isRequiredForAllUsers();
method public boolean isResetEnabledSettingsOnAppDataCleared();
+ method public boolean isResourceOverlay();
method public boolean isRestoreAnyVersion();
method public boolean isSignedWithPlatformKey();
method public boolean isSupportsExtraLargeScreens();
@@ -179,12 +180,14 @@
method @Nullable public String getSecondaryCpuAbi();
method @NonNull public com.android.server.pm.pkg.PackageUserState getStateForUser(@NonNull android.os.UserHandle);
method @NonNull public java.util.List<com.android.server.pm.pkg.SharedLibrary> getUsesLibraries();
+ method public boolean isApex();
method public boolean isPrivileged();
method public boolean isSystem();
method public boolean isUpdatedSystemApp();
}
public interface PackageUserState {
+ method public long getFirstInstallTimeMillis();
method public boolean isInstalled();
}