public final class Installer extends SystemService
Modifier and Type | Field and Description |
---|---|
static int |
DEXOPT_BOOTCOMPLETE
The system boot has finished
|
static int |
DEXOPT_DEBUGGABLE
Application wants to allow debugging of its code
|
static int |
DEXOPT_OTA
This is an OTA update dexopt
|
static int |
DEXOPT_PROFILE_GUIDED
Hint that the dexopt type is profile-guided.
|
static int |
DEXOPT_PUBLIC
Application should be visible to everyone
|
static int |
DEXOPT_SAFEMODE
Application wants to run in VM safe mode
|
static int |
FLAG_CLEAR_CACHE_ONLY |
static int |
FLAG_CLEAR_CODE_CACHE_ONLY |
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
Modifier and Type | Method and Description |
---|---|
void |
clearAppData(String uuid,
String pkgname,
int userid,
int flags,
long ceDataInode) |
void |
clearAppProfiles(String pkgName) |
void |
createAppData(String uuid,
String pkgname,
int userid,
int flags,
int appid,
String seinfo,
int targetSdkVersion) |
void |
createOatDir(String oatDir,
String dexInstructionSet) |
void |
createUserData(String uuid,
int userId,
int userSerial,
int flags) |
void |
deleteOdex(String apkPath,
String instructionSet,
String outputPath) |
void |
destroyAppData(String uuid,
String pkgname,
int userid,
int flags,
long ceDataInode) |
void |
destroyAppProfiles(String pkgName) |
void |
destroyUserData(String uuid,
int userId,
int flags) |
void |
dexopt(String apkPath,
int uid,
String instructionSet,
int dexoptNeeded,
int dexFlags,
String compilerFilter,
String volumeUuid,
String sharedLibraries) |
void |
dexopt(String apkPath,
int uid,
String pkgName,
String instructionSet,
int dexoptNeeded,
String outputPath,
int dexFlags,
String compilerFilter,
String volumeUuid,
String sharedLibraries) |
boolean |
dumpProfiles(String gid,
String packageName,
String codePaths) |
void |
freeCache(String uuid,
long freeStorageSize) |
long |
getAppDataInode(String uuid,
String pkgname,
int userid,
int flags) |
void |
getAppSize(String uuid,
String pkgname,
int userid,
int flags,
long ceDataInode,
String codePath,
PackageStats stats) |
void |
idmap(String targetApkPath,
String overlayApkPath,
int uid) |
void |
linkFile(String relativePath,
String fromBase,
String toBase) |
void |
linkNativeLibraryDirectory(String uuid,
String dataPath,
String nativeLibPath32,
int userId)
Links the 32 bit native library directory in an application's data
directory to the real location for backward compatibility.
|
void |
markBootComplete(String instructionSet) |
boolean |
mergeProfiles(int uid,
String pkgName) |
void |
migrateAppData(String uuid,
String pkgname,
int userid,
int flags) |
void |
moveAb(String apkPath,
String instructionSet,
String outputPath) |
void |
moveCompleteApp(String from_uuid,
String to_uuid,
String package_name,
String data_app_name,
int appid,
String seinfo,
int targetSdkVersion) |
void |
onStart()
Called when the dependencies listed in the @Service class-annotation are available
and after the chosen start phase.
|
void |
restoreconAppData(String uuid,
String pkgname,
int userid,
int flags,
int appid,
String seinfo) |
void |
rmdex(String codePath,
String instructionSet) |
void |
rmPackageDir(String packageDir) |
void |
setWarnIfHeld(Object warnIfHeld)
Yell loudly if someone tries making future calls while holding a lock on
the given object.
|
getBinderService, getContext, getLocalService, isSafeMode, onBootPhase, onCleanupUser, onStartUser, onStopUser, onSwitchUser, onUnlockUser, publishBinderService, publishBinderService, publishLocalService
public static final int DEXOPT_PUBLIC
public static final int DEXOPT_SAFEMODE
public static final int DEXOPT_DEBUGGABLE
public static final int DEXOPT_BOOTCOMPLETE
public static final int DEXOPT_PROFILE_GUIDED
public static final int DEXOPT_OTA
public static final int FLAG_CLEAR_CACHE_ONLY
public static final int FLAG_CLEAR_CODE_CACHE_ONLY
public Installer(Context context)
public void setWarnIfHeld(Object warnIfHeld)
public void onStart()
SystemService
onStart
in class SystemService
public void createAppData(String uuid, String pkgname, int userid, int flags, int appid, String seinfo, int targetSdkVersion) throws InstallerConnection.InstallerException
public void restoreconAppData(String uuid, String pkgname, int userid, int flags, int appid, String seinfo) throws InstallerConnection.InstallerException
public void migrateAppData(String uuid, String pkgname, int userid, int flags) throws InstallerConnection.InstallerException
public void clearAppData(String uuid, String pkgname, int userid, int flags, long ceDataInode) throws InstallerConnection.InstallerException
public void destroyAppData(String uuid, String pkgname, int userid, int flags, long ceDataInode) throws InstallerConnection.InstallerException
public void moveCompleteApp(String from_uuid, String to_uuid, String package_name, String data_app_name, int appid, String seinfo, int targetSdkVersion) throws InstallerConnection.InstallerException
public void getAppSize(String uuid, String pkgname, int userid, int flags, long ceDataInode, String codePath, PackageStats stats) throws InstallerConnection.InstallerException
public long getAppDataInode(String uuid, String pkgname, int userid, int flags) throws InstallerConnection.InstallerException
public void dexopt(String apkPath, int uid, String instructionSet, int dexoptNeeded, int dexFlags, String compilerFilter, String volumeUuid, String sharedLibraries) throws InstallerConnection.InstallerException
public void dexopt(String apkPath, int uid, String pkgName, String instructionSet, int dexoptNeeded, String outputPath, int dexFlags, String compilerFilter, String volumeUuid, String sharedLibraries) throws InstallerConnection.InstallerException
public boolean mergeProfiles(int uid, String pkgName) throws InstallerConnection.InstallerException
public boolean dumpProfiles(String gid, String packageName, String codePaths) throws InstallerConnection.InstallerException
public void idmap(String targetApkPath, String overlayApkPath, int uid) throws InstallerConnection.InstallerException
public void rmdex(String codePath, String instructionSet) throws InstallerConnection.InstallerException
public void rmPackageDir(String packageDir) throws InstallerConnection.InstallerException
public void clearAppProfiles(String pkgName) throws InstallerConnection.InstallerException
public void destroyAppProfiles(String pkgName) throws InstallerConnection.InstallerException
public void createUserData(String uuid, int userId, int userSerial, int flags) throws InstallerConnection.InstallerException
public void destroyUserData(String uuid, int userId, int flags) throws InstallerConnection.InstallerException
public void markBootComplete(String instructionSet) throws InstallerConnection.InstallerException
public void freeCache(String uuid, long freeStorageSize) throws InstallerConnection.InstallerException
public void linkNativeLibraryDirectory(String uuid, String dataPath, String nativeLibPath32, int userId) throws InstallerConnection.InstallerException
public void createOatDir(String oatDir, String dexInstructionSet) throws InstallerConnection.InstallerException
public void linkFile(String relativePath, String fromBase, String toBase) throws InstallerConnection.InstallerException
public void moveAb(String apkPath, String instructionSet, String outputPath) throws InstallerConnection.InstallerException
public void deleteOdex(String apkPath, String instructionSet, String outputPath) throws InstallerConnection.InstallerException