Merge "Disallow disable of the system shared libs." into nyc-dev
am: 5a91b61
* commit '5a91b615232374084a45752d7c09c25265e263ed':
Disallow disable of the system shared libs.
Change-Id: I111c0285b73ffa64594c39b54d18d5d3ff670953
This commit is contained in:
@@ -441,7 +441,7 @@ public class ApplicationPackageManager extends PackageManager {
|
||||
|
||||
/** @hide */
|
||||
@Override
|
||||
public @Nullable String getServicesSystemSharedLibraryPackageName() {
|
||||
public @NonNull String getServicesSystemSharedLibraryPackageName() {
|
||||
try {
|
||||
return mPM.getServicesSystemSharedLibraryPackageName();
|
||||
} catch (RemoteException e) {
|
||||
@@ -449,6 +449,17 @@ public class ApplicationPackageManager extends PackageManager {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
public @NonNull String getSharedSystemSharedLibraryPackageName() {
|
||||
try {
|
||||
return mPM.getSharedSystemSharedLibraryPackageName();
|
||||
} catch (RemoteException e) {
|
||||
throw e.rethrowFromSystemServer();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public FeatureInfo[] getSystemAvailableFeatures() {
|
||||
|
||||
@@ -567,6 +567,7 @@ interface IPackageManager {
|
||||
boolean setRequiredForSystemUser(String packageName, boolean systemUserApp);
|
||||
|
||||
String getServicesSystemSharedLibraryPackageName();
|
||||
String getSharedSystemSharedLibraryPackageName();
|
||||
|
||||
boolean isPackageDeviceAdminOnAnyUser(String packageName);
|
||||
|
||||
|
||||
@@ -3573,7 +3573,16 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public abstract @Nullable String getServicesSystemSharedLibraryPackageName();
|
||||
public abstract @NonNull String getServicesSystemSharedLibraryPackageName();
|
||||
|
||||
/**
|
||||
* Get the name of the package hosting the shared components shared library.
|
||||
*
|
||||
* @return The library host package.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public abstract @NonNull String getSharedSystemSharedLibraryPackageName();
|
||||
|
||||
/**
|
||||
* Get a list of features that are available on the
|
||||
|
||||
Reference in New Issue
Block a user