public final class PinnerService extends SystemService
PinnerService pins important files for key processes in memory.
Files to pin are specified in the config_defaultPinnerServiceFiles overlay.
Pin the default camera application if specified in config_pinnerCameraApp.
PHASE_ACTIVITY_MANAGER_READY, PHASE_BOOT_COMPLETED, PHASE_LOCK_SETTINGS_READY, PHASE_SYSTEM_SERVICES_READY, PHASE_THIRD_PARTY_APPS_CAN_START, PHASE_WAIT_FOR_DEFAULT_DISPLAY
Constructor and Description |
---|
PinnerService(Context context) |
Modifier and Type | Method and Description |
---|---|
void |
onStart()
Called when the dependencies listed in the @Service class-annotation are available
and after the chosen start phase.
|
void |
onSwitchUser(int userHandle)
Pin camera on user switch.
|
getBinderService, getContext, getLocalService, isSafeMode, onBootPhase, onCleanupUser, onStartUser, onStopUser, onUnlockUser, publishBinderService, publishBinderService, publishLocalService
public PinnerService(Context context)
public void onStart()
SystemService
onStart
in class SystemService
public void onSwitchUser(int userHandle)
onSwitchUser
in class SystemService
userHandle
- The identifier of the user.