1// Signature format: 2.0 2package com.android.server { 3 4 public final class LocalManagerRegistry { 5 method public static <T> void addManager(@NonNull Class<T>, @NonNull T); 6 method @Nullable public static <T> T getManager(@NonNull Class<T>); 7 } 8 9 public abstract class SystemService { 10 ctor public SystemService(@NonNull android.content.Context); 11 method @NonNull public final android.content.Context getContext(); 12 method public boolean isUserSupported(@NonNull com.android.server.SystemService.TargetUser); 13 method public void onBootPhase(int); 14 method public abstract void onStart(); 15 method public void onUserStarting(@NonNull com.android.server.SystemService.TargetUser); 16 method public void onUserStopped(@NonNull com.android.server.SystemService.TargetUser); 17 method public void onUserStopping(@NonNull com.android.server.SystemService.TargetUser); 18 method public void onUserSwitching(@Nullable com.android.server.SystemService.TargetUser, @NonNull com.android.server.SystemService.TargetUser); 19 method public void onUserUnlocked(@NonNull com.android.server.SystemService.TargetUser); 20 method public void onUserUnlocking(@NonNull com.android.server.SystemService.TargetUser); 21 method protected final void publishBinderService(@NonNull String, @NonNull android.os.IBinder); 22 method protected final void publishBinderService(@NonNull String, @NonNull android.os.IBinder, boolean); 23 field public static final int PHASE_ACTIVITY_MANAGER_READY = 550; // 0x226 24 field public static final int PHASE_BOOT_COMPLETED = 1000; // 0x3e8 25 field public static final int PHASE_DEVICE_SPECIFIC_SERVICES_READY = 520; // 0x208 26 field public static final int PHASE_LOCK_SETTINGS_READY = 480; // 0x1e0 27 field public static final int PHASE_SYSTEM_SERVICES_READY = 500; // 0x1f4 28 field public static final int PHASE_THIRD_PARTY_APPS_CAN_START = 600; // 0x258 29 field public static final int PHASE_WAIT_FOR_DEFAULT_DISPLAY = 100; // 0x64 30 } 31 32 public static final class SystemService.TargetUser { 33 method @NonNull public android.os.UserHandle getUserHandle(); 34 } 35 36} 37 38package com.android.server.am { 39 40 public interface ActivityManagerLocal { 41 method public boolean bindSdkSandboxService(@NonNull android.content.Intent, @NonNull android.content.ServiceConnection, int, @NonNull android.os.IBinder, @NonNull String, @NonNull String, int) throws android.os.RemoteException; 42 method public boolean bindSdkSandboxService(@NonNull android.content.Intent, @NonNull android.content.ServiceConnection, int, @NonNull android.os.IBinder, @NonNull String, @NonNull String, @NonNull android.content.Context.BindServiceFlags) throws android.os.RemoteException; 43 method @Deprecated public boolean bindSdkSandboxService(@NonNull android.content.Intent, @NonNull android.content.ServiceConnection, int, @NonNull String, @NonNull String, int) throws android.os.RemoteException; 44 method public boolean canStartForegroundService(int, int, @NonNull String); 45 method public void killSdkSandboxClientAppProcess(@NonNull android.os.IBinder); 46 method @Nullable public android.content.ComponentName startSdkSandboxService(@NonNull android.content.Intent, int, @NonNull String, @NonNull String) throws android.os.RemoteException; 47 method public boolean stopSdkSandboxService(@NonNull android.content.Intent, int, @NonNull String, @NonNull String); 48 } 49 50} 51 52package com.android.server.appop { 53 54 public interface AppOpsManagerLocal { 55 method public boolean isUidInForeground(int); 56 } 57 58} 59 60package com.android.server.pm { 61 62 public interface PackageManagerLocal { 63 method public void reconcileSdkData(@Nullable String, @NonNull String, @NonNull java.util.List<java.lang.String>, int, int, int, @NonNull String, int) throws java.io.IOException; 64 method @NonNull public com.android.server.pm.PackageManagerLocal.FilteredSnapshot withFilteredSnapshot(); 65 method @NonNull public com.android.server.pm.PackageManagerLocal.FilteredSnapshot withFilteredSnapshot(int, @NonNull android.os.UserHandle); 66 method @NonNull public com.android.server.pm.PackageManagerLocal.UnfilteredSnapshot withUnfilteredSnapshot(); 67 field public static final int FLAG_STORAGE_CE = 2; // 0x2 68 field public static final int FLAG_STORAGE_DE = 1; // 0x1 69 } 70 71 public static interface PackageManagerLocal.FilteredSnapshot extends java.lang.AutoCloseable { 72 method public void close(); 73 method @Nullable public com.android.server.pm.pkg.PackageState getPackageState(@NonNull String); 74 method @NonNull public java.util.Map<java.lang.String,com.android.server.pm.pkg.PackageState> getPackageStates(); 75 } 76 77 public static interface PackageManagerLocal.UnfilteredSnapshot extends java.lang.AutoCloseable { 78 method public void close(); 79 method @NonNull public com.android.server.pm.PackageManagerLocal.FilteredSnapshot filtered(int, @NonNull android.os.UserHandle); 80 method @NonNull public java.util.Map<java.lang.String,com.android.server.pm.pkg.PackageState> getPackageStates(); 81 } 82 83} 84 85package com.android.server.pm.pkg { 86 87 public interface AndroidPackage { 88 method @Nullable public String getAppComponentFactory(); 89 method @Nullable public String getApplicationClassName(); 90 method @Nullable public String getBackupAgentName(); 91 method @DrawableRes public int getBannerResourceId(); 92 method public int getBaseRevisionCode(); 93 method public int getCategory(); 94 method @Nullable public String getClassLoaderName(); 95 method @Dimension(unit=android.annotation.Dimension.DP) public int getCompatibleWidthLimitDp(); 96 method @XmlRes public int getDataExtractionRulesResourceId(); 97 method @StringRes public int getDescriptionResourceId(); 98 method @XmlRes public int getFullBackupContentResourceId(); 99 method public int getGwpAsanMode(); 100 method @DrawableRes public int getIconResourceId(); 101 method @StringRes public int getLabelResourceId(); 102 method @Dimension(unit=android.annotation.Dimension.DP) public int getLargestWidthLimitDp(); 103 method @NonNull public java.util.List<java.lang.String> getLibraryNames(); 104 method @XmlRes public int getLocaleConfigResourceId(); 105 method @DrawableRes public int getLogoResourceId(); 106 method public long getLongVersionCode(); 107 method public float getMaxAspectRatio(); 108 method public float getMinAspectRatio(); 109 method public int getNativeHeapZeroInitialized(); 110 method @XmlRes public int getNetworkSecurityConfigResourceId(); 111 method @Nullable public String getRequiredAccountType(); 112 method @Dimension(unit=android.annotation.Dimension.DP) public int getRequiresSmallestWidthDp(); 113 method @Nullable public String getRestrictedAccountType(); 114 method @DrawableRes public int getRoundIconResourceId(); 115 method @Nullable public String getSdkLibraryName(); 116 method @Nullable public String getSharedUserId(); 117 method @StringRes public int getSharedUserLabelResourceId(); 118 method @NonNull public java.util.List<com.android.server.pm.pkg.AndroidPackageSplit> getSplits(); 119 method @Nullable public String getStaticSharedLibraryName(); 120 method @NonNull public java.util.UUID getStorageUuid(); 121 method public int getTargetSdkVersion(); 122 method @StyleRes public int getThemeResourceId(); 123 method public int getUiOptions(); 124 method @Nullable public String getVersionName(); 125 method @Nullable public String getZygotePreloadName(); 126 method public boolean is32BitAbiPreferred(); 127 method public boolean isAllowAudioPlaybackCapture(); 128 method public boolean isAllowNativeHeapPointerTagging(); 129 method public boolean isAnyDensity(); 130 method public boolean isAttributionsUserVisible(); 131 method public boolean isBackupAllowed(); 132 method public boolean isBackupInForeground(); 133 method public boolean isClearUserDataAllowed(); 134 method public boolean isClearUserDataOnFailedRestoreAllowed(); 135 method public boolean isCleartextTrafficAllowed(); 136 method public boolean isCoreApp(); 137 method public boolean isCrossProfile(); 138 method public boolean isDebuggable(); 139 method public boolean isDeclaredHavingCode(); 140 method public boolean isDefaultToDeviceProtectedStorage(); 141 method public boolean isDirectBootAware(); 142 method public boolean isExtraLargeScreensSupported(); 143 method public boolean isExtractNativeLibrariesRequested(); 144 method public boolean isFactoryTest(); 145 method public boolean isForceQueryable(); 146 method public boolean isFullBackupOnly(); 147 method public boolean isHardwareAccelerated(); 148 method public boolean isIsolatedSplitLoading(); 149 method public boolean isKillAfterRestoreAllowed(); 150 method public boolean isLargeHeap(); 151 method public boolean isLargeScreensSupported(); 152 method public boolean isLeavingSharedUser(); 153 method public boolean isMultiArch(); 154 method public boolean isNativeLibraryRootRequiresIsa(); 155 method public boolean isNonSdkApiRequested(); 156 method public boolean isNormalScreensSupported(); 157 method public boolean isOnBackInvokedCallbackEnabled(); 158 method public boolean isPersistent(); 159 method public boolean isProfileable(); 160 method public boolean isProfileableByShell(); 161 method public boolean isRequestLegacyExternalStorage(); 162 method public boolean isRequiredForAllUsers(); 163 method public boolean isResetEnabledSettingsOnAppDataCleared(); 164 method public boolean isResourceOverlay(); 165 method public boolean isRestoreAnyVersion(); 166 method public boolean isRtlSupported(); 167 method public boolean isSaveStateDisallowed(); 168 method public boolean isSignedWithPlatformKey(); 169 method public boolean isSmallScreensSupported(); 170 method public boolean isTaskReparentingAllowed(); 171 method public boolean isTestOnly(); 172 method public boolean isUseEmbeddedDex(); 173 method public boolean isUserDataFragile(); 174 method public boolean isVmSafeMode(); 175 } 176 177 public interface AndroidPackageSplit { 178 method @Nullable public String getClassLoaderName(); 179 method @NonNull public java.util.List<com.android.server.pm.pkg.AndroidPackageSplit> getDependencies(); 180 method @Nullable public String getName(); 181 method @NonNull public String getPath(); 182 method public int getRevisionCode(); 183 method public boolean isHasCode(); 184 } 185 186 public interface PackageState { 187 method @Nullable public com.android.server.pm.pkg.AndroidPackage getAndroidPackage(); 188 method public int getAppId(); 189 method public int getHiddenApiEnforcementPolicy(); 190 method @NonNull public String getPackageName(); 191 method @Nullable public String getPrimaryCpuAbi(); 192 method @Nullable public String getSeInfo(); 193 method @Nullable public String getSecondaryCpuAbi(); 194 method @NonNull public java.util.List<com.android.server.pm.pkg.SharedLibrary> getSharedLibraryDependencies(); 195 method @NonNull public com.android.server.pm.pkg.PackageUserState getStateForUser(@NonNull android.os.UserHandle); 196 method public boolean isApex(); 197 method public boolean isPrivileged(); 198 method public boolean isSystem(); 199 method public boolean isUpdatedSystemApp(); 200 } 201 202 public interface PackageUserState { 203 method public long getFirstInstallTimeMillis(); 204 method public boolean isInstalled(); 205 } 206 207 public interface SharedLibrary { 208 method @NonNull public java.util.List<java.lang.String> getAllCodePaths(); 209 method @NonNull public android.content.pm.VersionedPackage getDeclaringPackage(); 210 method @NonNull public java.util.List<com.android.server.pm.pkg.SharedLibrary> getDependencies(); 211 method @NonNull public java.util.List<android.content.pm.VersionedPackage> getDependentPackages(); 212 method @Nullable public String getName(); 213 method @Nullable public String getPackageName(); 214 method @Nullable public String getPath(); 215 method public int getType(); 216 method public long getVersion(); 217 method public boolean isNative(); 218 } 219 220} 221 222package com.android.server.role { 223 224 public interface RoleServicePlatformHelper { 225 method @NonNull public String computePackageStateHash(int); 226 method @NonNull public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getLegacyRoleState(int); 227 } 228 229} 230 231package com.android.server.security { 232 233 public final class FileIntegrity { 234 method public static void setUpFsVerity(@NonNull java.io.File) throws java.io.IOException; 235 method public static void setUpFsVerity(@NonNull android.os.ParcelFileDescriptor) throws java.io.IOException; 236 } 237 238} 239 240package com.android.server.stats { 241 242 public final class StatsHelper { 243 method public static void sendStatsdReadyBroadcast(@NonNull android.content.Context); 244 } 245 246} 247 248package com.android.server.usage { 249 250 public interface StorageStatsManagerLocal { 251 method public void registerStorageStatsAugmenter(@NonNull com.android.server.usage.StorageStatsManagerLocal.StorageStatsAugmenter, @NonNull String); 252 } 253 254 public static interface StorageStatsManagerLocal.StorageStatsAugmenter { 255 method public void augmentStatsForPackageForUser(@NonNull android.content.pm.PackageStats, @NonNull String, @NonNull android.os.UserHandle, boolean); 256 method public void augmentStatsForUid(@NonNull android.content.pm.PackageStats, int, boolean); 257 method public void augmentStatsForUser(@NonNull android.content.pm.PackageStats, @NonNull android.os.UserHandle); 258 } 259 260} 261 262package com.android.server.wifi { 263 264 public class SupplicantManager { 265 method public static void start(); 266 method public static void stop(); 267 } 268 269} 270 271package com.android.server.wm { 272 273 public interface ActivityInterceptorCallback { 274 method public default void onActivityLaunched(@NonNull android.app.TaskInfo, @NonNull android.content.pm.ActivityInfo, @NonNull com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo); 275 method @Nullable public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptResult onInterceptActivityLaunch(@NonNull com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo); 276 field public static final int MAINLINE_SDK_SANDBOX_ORDER_ID = 1001; // 0x3e9 277 } 278 279 public static final class ActivityInterceptorCallback.ActivityInterceptResult { 280 ctor public ActivityInterceptorCallback.ActivityInterceptResult(@NonNull android.content.Intent, @NonNull android.app.ActivityOptions, boolean); 281 method @NonNull public android.app.ActivityOptions getActivityOptions(); 282 method @NonNull public android.content.Intent getIntent(); 283 method public boolean isActivityResolved(); 284 } 285 286 public static final class ActivityInterceptorCallback.ActivityInterceptorInfo { 287 method @NonNull public android.content.pm.ActivityInfo getActivityInfo(); 288 method @Nullable public String getCallingFeatureId(); 289 method @Nullable public String getCallingPackage(); 290 method public int getCallingPid(); 291 method public int getCallingUid(); 292 method @Nullable public android.app.ActivityOptions getCheckedOptions(); 293 method @Nullable public Runnable getClearOptionsAnimationRunnable(); 294 method @NonNull public android.content.Intent getIntent(); 295 method public int getRealCallingPid(); 296 method public int getRealCallingUid(); 297 method @NonNull public android.content.pm.ResolveInfo getResolveInfo(); 298 method @Nullable public String getResolvedType(); 299 method public int getUserId(); 300 } 301 302 public static final class ActivityInterceptorCallback.ActivityInterceptorInfo.Builder { 303 ctor public ActivityInterceptorCallback.ActivityInterceptorInfo.Builder(int, int, int, int, int, @NonNull android.content.Intent, @NonNull android.content.pm.ResolveInfo, @NonNull android.content.pm.ActivityInfo); 304 method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo build(); 305 method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setCallingFeatureId(@Nullable String); 306 method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setCallingPackage(@Nullable String); 307 method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setCheckedOptions(@Nullable android.app.ActivityOptions); 308 method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setClearOptionsAnimationRunnable(@Nullable Runnable); 309 method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setResolvedType(@Nullable String); 310 } 311 312 public class ActivityInterceptorCallbackRegistry { 313 method @NonNull public static com.android.server.wm.ActivityInterceptorCallbackRegistry getInstance(); 314 method public void registerActivityInterceptorCallback(int, @NonNull com.android.server.wm.ActivityInterceptorCallback); 315 method public void unregisterActivityInterceptorCallback(int); 316 } 317 318} 319 320