Loading api/4.xml +0 −424 Original line number Diff line number Diff line Loading @@ -31801,97 +31801,6 @@ > </field> </class> <interface name="IPackageInstallObserver" abstract="true" static="false" final="false" deprecated="not deprecated" visibility="public" > <implements name="android.os.IInterface"> </implements> <method name="packageInstalled" return="void" abstract="true" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="packageName" type="java.lang.String"> </parameter> <parameter name="returnCode" type="int"> </parameter> <exception name="RemoteException" type="android.os.RemoteException"> </exception> </method> </interface> <class name="IPackageInstallObserver.Stub" extends="android.os.Binder" abstract="true" static="true" final="false" deprecated="not deprecated" visibility="public" > <implements name="android.content.pm.IPackageInstallObserver"> </implements> <constructor name="IPackageInstallObserver.Stub" type="android.content.pm.IPackageInstallObserver.Stub" static="false" final="false" deprecated="not deprecated" visibility="public" > </constructor> <method name="asBinder" return="android.os.IBinder" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > </method> <method name="asInterface" return="android.content.pm.IPackageInstallObserver" abstract="false" native="false" synchronized="false" static="true" final="false" deprecated="not deprecated" visibility="public" > <parameter name="obj" type="android.os.IBinder"> </parameter> </method> <method name="onTransact" return="boolean" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="code" type="int"> </parameter> <parameter name="data" type="android.os.Parcel"> </parameter> <parameter name="reply" type="android.os.Parcel"> </parameter> <parameter name="flags" type="int"> </parameter> <exception name="RemoteException" type="android.os.RemoteException"> </exception> </method> </class> <class name="InstrumentationInfo" extends="android.content.pm.PackageItemInfo" abstract="false" Loading Loading @@ -33041,36 +32950,6 @@ <parameter name="appInfo" type="android.content.pm.ApplicationInfo"> </parameter> </method> <method name="installPackage" return="void" abstract="true" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="packageURI" type="android.net.Uri"> </parameter> <parameter name="observer" type="android.content.pm.IPackageInstallObserver"> </parameter> <parameter name="flags" type="int"> </parameter> </method> <method name="installPackage" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="packageURI" type="android.net.Uri"> </parameter> </method> <method name="isSafeMode" return="boolean" abstract="true" Loading Loading @@ -33344,17 +33223,6 @@ visibility="public" > </field> <field name="FORWARD_LOCK_PACKAGE" type="int" transient="false" volatile="false" value="1" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="GET_ACTIVITIES" type="int" transient="false" Loading Loading @@ -33531,270 +33399,6 @@ visibility="public" > </field> <field name="INSTALL_FAILED_ALREADY_EXISTS" type="int" transient="false" volatile="false" value="-1" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_CONFLICTING_PROVIDER" type="int" transient="false" volatile="false" value="-13" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_DEXOPT" type="int" transient="false" volatile="false" value="-11" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_DUPLICATE_PACKAGE" type="int" transient="false" volatile="false" value="-5" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_INSUFFICIENT_STORAGE" type="int" transient="false" volatile="false" value="-4" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_INVALID_APK" type="int" transient="false" volatile="false" value="-2" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_INVALID_URI" type="int" transient="false" volatile="false" value="-3" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_MISSING_SHARED_LIBRARY" type="int" transient="false" volatile="false" value="-9" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_NO_SHARED_USER" type="int" transient="false" volatile="false" value="-6" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_OLDER_SDK" type="int" transient="false" volatile="false" value="-12" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_REPLACE_COULDNT_DELETE" type="int" transient="false" volatile="false" value="-10" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_SHARED_USER_INCOMPATIBLE" type="int" transient="false" volatile="false" value="-8" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_UPDATE_INCOMPATIBLE" type="int" transient="false" volatile="false" value="-7" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_BAD_MANIFEST" type="int" transient="false" volatile="false" value="-101" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_BAD_PACKAGE_NAME" type="int" transient="false" volatile="false" value="-106" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_BAD_SHARED_USER_ID" type="int" transient="false" volatile="false" value="-107" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_CERTIFICATE_ENCODING" type="int" transient="false" volatile="false" value="-105" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES" type="int" transient="false" volatile="false" value="-104" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_MANIFEST_EMPTY" type="int" transient="false" volatile="false" value="-109" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_MANIFEST_MALFORMED" type="int" transient="false" volatile="false" value="-108" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_NOT_APK" type="int" transient="false" volatile="false" value="-100" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_NO_CERTIFICATES" type="int" transient="false" volatile="false" value="-103" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION" type="int" transient="false" volatile="false" value="-102" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_SUCCEEDED" type="int" transient="false" volatile="false" value="1" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="MATCH_DEFAULT_ONLY" type="int" transient="false" Loading Loading @@ -33850,17 +33454,6 @@ visibility="public" > </field> <field name="REPLACE_EXISTING_PACKAGE" type="int" transient="false" volatile="false" value="2" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="SIGNATURE_FIRST_NOT_SIGNED" type="int" transient="false" Loading Loading @@ -101178,23 +100771,6 @@ <parameter name="appInfo" type="android.content.pm.ApplicationInfo"> </parameter> </method> <method name="installPackage" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="packageURI" type="android.net.Uri"> </parameter> <parameter name="observer" type="android.content.pm.IPackageInstallObserver"> </parameter> <parameter name="flags" type="int"> </parameter> </method> <method name="isSafeMode" return="boolean" abstract="false" api/current.xml +22 −437 Original line number Diff line number Diff line Loading @@ -7346,6 +7346,17 @@ visibility="public" > </field> <field name="testOnly" type="int" transient="false" volatile="false" value="16843378" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="text" type="int" transient="false" Loading Loading @@ -34179,6 +34190,17 @@ visibility="public" > </field> <field name="FLAG_TEST_ONLY" type="int" transient="false" volatile="false" value="512" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="FLAG_UPDATED_SYSTEM_APP" type="int" transient="false" Loading Loading @@ -34594,97 +34616,6 @@ > </field> </class> <interface name="IPackageInstallObserver" abstract="true" static="false" final="false" deprecated="not deprecated" visibility="public" > <implements name="android.os.IInterface"> </implements> <method name="packageInstalled" return="void" abstract="true" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="packageName" type="java.lang.String"> </parameter> <parameter name="returnCode" type="int"> </parameter> <exception name="RemoteException" type="android.os.RemoteException"> </exception> </method> </interface> <class name="IPackageInstallObserver.Stub" extends="android.os.Binder" abstract="true" static="true" final="false" deprecated="not deprecated" visibility="public" > <implements name="android.content.pm.IPackageInstallObserver"> </implements> <constructor name="IPackageInstallObserver.Stub" type="android.content.pm.IPackageInstallObserver.Stub" static="false" final="false" deprecated="not deprecated" visibility="public" > </constructor> <method name="asBinder" return="android.os.IBinder" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > </method> <method name="asInterface" return="android.content.pm.IPackageInstallObserver" abstract="false" native="false" synchronized="false" static="true" final="false" deprecated="not deprecated" visibility="public" > <parameter name="obj" type="android.os.IBinder"> </parameter> </method> <method name="onTransact" return="boolean" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="code" type="int"> </parameter> <parameter name="data" type="android.os.Parcel"> </parameter> <parameter name="reply" type="android.os.Parcel"> </parameter> <parameter name="flags" type="int"> </parameter> <exception name="RemoteException" type="android.os.RemoteException"> </exception> </method> </class> <class name="InstrumentationInfo" extends="android.content.pm.PackageItemInfo" abstract="false" Loading Loading @@ -35847,36 +35778,6 @@ <parameter name="appInfo" type="android.content.pm.ApplicationInfo"> </parameter> </method> <method name="installPackage" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="packageURI" type="android.net.Uri"> </parameter> <parameter name="observer" type="android.content.pm.IPackageInstallObserver"> </parameter> <parameter name="flags" type="int"> </parameter> </method> <method name="installPackage" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="packageURI" type="android.net.Uri"> </parameter> </method> <method name="isSafeMode" return="boolean" abstract="true" Loading Loading @@ -36150,17 +36051,6 @@ visibility="public" > </field> <field name="FORWARD_LOCK_PACKAGE" type="int" transient="false" volatile="false" value="1" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="GET_ACTIVITIES" type="int" transient="false" Loading Loading @@ -36348,281 +36238,6 @@ visibility="public" > </field> <field name="INSTALL_FAILED_ALREADY_EXISTS" type="int" transient="false" volatile="false" value="-1" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_CONFLICTING_PROVIDER" type="int" transient="false" volatile="false" value="-13" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_DEXOPT" type="int" transient="false" volatile="false" value="-11" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_DUPLICATE_PACKAGE" type="int" transient="false" volatile="false" value="-5" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_INSUFFICIENT_STORAGE" type="int" transient="false" volatile="false" value="-4" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_INVALID_APK" type="int" transient="false" volatile="false" value="-2" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_INVALID_URI" type="int" transient="false" volatile="false" value="-3" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_MISSING_SHARED_LIBRARY" type="int" transient="false" volatile="false" value="-9" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_NEWER_SDK" type="int" transient="false" volatile="false" value="-14" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_NO_SHARED_USER" type="int" transient="false" volatile="false" value="-6" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_OLDER_SDK" type="int" transient="false" volatile="false" value="-12" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_REPLACE_COULDNT_DELETE" type="int" transient="false" volatile="false" value="-10" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_SHARED_USER_INCOMPATIBLE" type="int" transient="false" volatile="false" value="-8" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_UPDATE_INCOMPATIBLE" type="int" transient="false" volatile="false" value="-7" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_BAD_MANIFEST" type="int" transient="false" volatile="false" value="-101" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_BAD_PACKAGE_NAME" type="int" transient="false" volatile="false" value="-106" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_BAD_SHARED_USER_ID" type="int" transient="false" volatile="false" value="-107" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_CERTIFICATE_ENCODING" type="int" transient="false" volatile="false" value="-105" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES" type="int" transient="false" volatile="false" value="-104" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_MANIFEST_EMPTY" type="int" transient="false" volatile="false" value="-109" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_MANIFEST_MALFORMED" type="int" transient="false" volatile="false" value="-108" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_NOT_APK" type="int" transient="false" volatile="false" value="-100" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_NO_CERTIFICATES" type="int" transient="false" volatile="false" value="-103" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION" type="int" transient="false" volatile="false" value="-102" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_SUCCEEDED" type="int" transient="false" volatile="false" value="1" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="MATCH_DEFAULT_ONLY" type="int" transient="false" Loading Loading @@ -36678,17 +36293,6 @@ visibility="public" > </field> <field name="REPLACE_EXISTING_PACKAGE" type="int" transient="false" volatile="false" value="2" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="SIGNATURE_FIRST_NOT_SIGNED" type="int" transient="false" Loading Loading @@ -114686,25 +114290,6 @@ <parameter name="appInfo" type="android.content.pm.ApplicationInfo"> </parameter> </method> <method name="installPackage" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="packageURI" type="android.net.Uri"> </parameter> <parameter name="observer" type="android.content.pm.IPackageInstallObserver"> </parameter> <parameter name="flags" type="int"> </parameter> <parameter name="installerPackageName" type="java.lang.String"> </parameter> </method> <method name="isSafeMode" return="boolean" abstract="false" cmds/pm/src/com/android/commands/pm/Pm.java +25 −19 Original line number Diff line number Diff line Loading @@ -540,6 +540,9 @@ public final class Pm { case PackageManager.INSTALL_FAILED_NEWER_SDK: s = "INSTALL_FAILED_NEWER_SDK"; break; case PackageManager.INSTALL_FAILED_TEST_ONLY: s = "INSTALL_FAILED_TEST_ONLY"; break; case PackageManager.INSTALL_PARSE_FAILED_NOT_APK: s = "INSTALL_PARSE_FAILED_NOT_APK"; break; Loading Loading @@ -584,9 +587,9 @@ public final class Pm { String opt; while ((opt=nextOption()) != null) { if (opt.equals("-l")) { installFlags |= PackageManager.FORWARD_LOCK_PACKAGE; installFlags |= PackageManager.INSTALL_FORWARD_LOCK; } else if (opt.equals("-r")) { installFlags |= PackageManager.REPLACE_EXISTING_PACKAGE; installFlags |= PackageManager.INSTALL_REPLACE_EXISTING; } else if (opt.equals("-i")) { installerPackageName = nextOptionData(); if (installerPackageName == null) { Loading @@ -594,6 +597,8 @@ public final class Pm { showUsage(); return; } } else if (opt.equals("-t")) { installFlags |= PackageManager.INSTALL_ALLOW_TEST; } else { System.err.println("Error: Unknown option: " + opt); showUsage(); Loading Loading @@ -821,38 +826,39 @@ public final class Pm { System.err.println(" pm list permissions [-g] [-f] [-d] [-u] [GROUP]"); System.err.println(" pm list instrumentation [-f] [TARGET-PACKAGE]"); System.err.println(" pm path PACKAGE"); System.err.println(" pm install [-l] [-r] [-i INSTALLER_PACKAGE_NAME] PATH"); System.err.println(" pm install [-l] [-r] [-t] [-i INSTALLER_PACKAGE_NAME] PATH"); System.err.println(" pm uninstall [-k] PACKAGE"); System.err.println(" pm enable PACKAGE_OR_COMPONENT"); System.err.println(" pm disable PACKAGE_OR_COMPONENT"); System.err.println(""); System.err.println("The list packages command prints all packages. Use"); System.err.println("the -f option to see their associated file."); System.err.println("The list packages command prints all packages. Options:"); System.err.println(" -f: see their associated file."); System.err.println(""); System.err.println("The list permission-groups command prints all known"); System.err.println("permission groups."); System.err.println(""); System.err.println("The list permissions command prints all known"); System.err.println("permissions, optionally only those in GROUP. Use"); System.err.println("the -g option to organize by group. Use"); System.err.println("the -f option to print all information. Use"); System.err.println("the -s option for a short summary. Use"); System.err.println("the -d option to only list dangerous permissions. Use"); System.err.println("the -u option to list only the permissions users will see."); System.err.println("permissions, optionally only those in GROUP. Options:"); System.err.println(" -g: organize by group."); System.err.println(" -f: print all information."); System.err.println(" -s: short summary."); System.err.println(" -d: only list dangerous permissions."); System.err.println(" -u: list only the permissions users will see."); System.err.println(""); System.err.println("The list instrumentation command prints all instrumentations,"); System.err.println("or only those that target a specified package. Use the -f option"); System.err.println("to see their associated file."); System.err.println("or only those that target a specified package. Options:"); System.err.println(" -f: see their associated file."); System.err.println(""); System.err.println("The path command prints the path to the .apk of a package."); System.err.println(""); System.err.println("The install command installs a package to the system. Use"); System.err.println("the -l option to install the package with FORWARD_LOCK. Use"); System.err.println("the -r option to reinstall an exisiting app, keeping its data."); System.err.println("the -i option to specify the installer package name."); System.err.println("The install command installs a package to the system. Options:"); System.err.println(" -l: install the package with FORWARD_LOCK."); System.err.println(" -r: reinstall an exisiting app, keeping its data."); System.err.println(" -t: allow test .apks to be installed."); System.err.println(" -i: specify the installer package name."); System.err.println(""); System.err.println("The uninstall command removes a package from the system. Use"); System.err.println("the -k option to keep the data and cache directories around"); System.err.println("The uninstall command removes a package from the system. Options:"); System.err.println(" -k: keep the data and cache directories around."); System.err.println("after the package removal."); System.err.println(""); System.err.println("The enable and disable commands change the enabled state of"); Loading core/java/android/content/pm/ApplicationInfo.java +6 −0 File changed.Preview size limit exceeded, changes collapsed. Show changes core/java/android/content/pm/IPackageInstallObserver.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,7 @@ package android.content.pm; /** * API for installation callbacks from the Package Manager. * * @hide */ oneway interface IPackageInstallObserver { void packageInstalled(in String packageName, int returnCode); Loading Loading
api/4.xml +0 −424 Original line number Diff line number Diff line Loading @@ -31801,97 +31801,6 @@ > </field> </class> <interface name="IPackageInstallObserver" abstract="true" static="false" final="false" deprecated="not deprecated" visibility="public" > <implements name="android.os.IInterface"> </implements> <method name="packageInstalled" return="void" abstract="true" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="packageName" type="java.lang.String"> </parameter> <parameter name="returnCode" type="int"> </parameter> <exception name="RemoteException" type="android.os.RemoteException"> </exception> </method> </interface> <class name="IPackageInstallObserver.Stub" extends="android.os.Binder" abstract="true" static="true" final="false" deprecated="not deprecated" visibility="public" > <implements name="android.content.pm.IPackageInstallObserver"> </implements> <constructor name="IPackageInstallObserver.Stub" type="android.content.pm.IPackageInstallObserver.Stub" static="false" final="false" deprecated="not deprecated" visibility="public" > </constructor> <method name="asBinder" return="android.os.IBinder" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > </method> <method name="asInterface" return="android.content.pm.IPackageInstallObserver" abstract="false" native="false" synchronized="false" static="true" final="false" deprecated="not deprecated" visibility="public" > <parameter name="obj" type="android.os.IBinder"> </parameter> </method> <method name="onTransact" return="boolean" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="code" type="int"> </parameter> <parameter name="data" type="android.os.Parcel"> </parameter> <parameter name="reply" type="android.os.Parcel"> </parameter> <parameter name="flags" type="int"> </parameter> <exception name="RemoteException" type="android.os.RemoteException"> </exception> </method> </class> <class name="InstrumentationInfo" extends="android.content.pm.PackageItemInfo" abstract="false" Loading Loading @@ -33041,36 +32950,6 @@ <parameter name="appInfo" type="android.content.pm.ApplicationInfo"> </parameter> </method> <method name="installPackage" return="void" abstract="true" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="packageURI" type="android.net.Uri"> </parameter> <parameter name="observer" type="android.content.pm.IPackageInstallObserver"> </parameter> <parameter name="flags" type="int"> </parameter> </method> <method name="installPackage" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="packageURI" type="android.net.Uri"> </parameter> </method> <method name="isSafeMode" return="boolean" abstract="true" Loading Loading @@ -33344,17 +33223,6 @@ visibility="public" > </field> <field name="FORWARD_LOCK_PACKAGE" type="int" transient="false" volatile="false" value="1" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="GET_ACTIVITIES" type="int" transient="false" Loading Loading @@ -33531,270 +33399,6 @@ visibility="public" > </field> <field name="INSTALL_FAILED_ALREADY_EXISTS" type="int" transient="false" volatile="false" value="-1" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_CONFLICTING_PROVIDER" type="int" transient="false" volatile="false" value="-13" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_DEXOPT" type="int" transient="false" volatile="false" value="-11" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_DUPLICATE_PACKAGE" type="int" transient="false" volatile="false" value="-5" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_INSUFFICIENT_STORAGE" type="int" transient="false" volatile="false" value="-4" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_INVALID_APK" type="int" transient="false" volatile="false" value="-2" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_INVALID_URI" type="int" transient="false" volatile="false" value="-3" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_MISSING_SHARED_LIBRARY" type="int" transient="false" volatile="false" value="-9" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_NO_SHARED_USER" type="int" transient="false" volatile="false" value="-6" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_OLDER_SDK" type="int" transient="false" volatile="false" value="-12" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_REPLACE_COULDNT_DELETE" type="int" transient="false" volatile="false" value="-10" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_SHARED_USER_INCOMPATIBLE" type="int" transient="false" volatile="false" value="-8" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_UPDATE_INCOMPATIBLE" type="int" transient="false" volatile="false" value="-7" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_BAD_MANIFEST" type="int" transient="false" volatile="false" value="-101" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_BAD_PACKAGE_NAME" type="int" transient="false" volatile="false" value="-106" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_BAD_SHARED_USER_ID" type="int" transient="false" volatile="false" value="-107" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_CERTIFICATE_ENCODING" type="int" transient="false" volatile="false" value="-105" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES" type="int" transient="false" volatile="false" value="-104" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_MANIFEST_EMPTY" type="int" transient="false" volatile="false" value="-109" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_MANIFEST_MALFORMED" type="int" transient="false" volatile="false" value="-108" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_NOT_APK" type="int" transient="false" volatile="false" value="-100" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_NO_CERTIFICATES" type="int" transient="false" volatile="false" value="-103" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION" type="int" transient="false" volatile="false" value="-102" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_SUCCEEDED" type="int" transient="false" volatile="false" value="1" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="MATCH_DEFAULT_ONLY" type="int" transient="false" Loading Loading @@ -33850,17 +33454,6 @@ visibility="public" > </field> <field name="REPLACE_EXISTING_PACKAGE" type="int" transient="false" volatile="false" value="2" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="SIGNATURE_FIRST_NOT_SIGNED" type="int" transient="false" Loading Loading @@ -101178,23 +100771,6 @@ <parameter name="appInfo" type="android.content.pm.ApplicationInfo"> </parameter> </method> <method name="installPackage" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="packageURI" type="android.net.Uri"> </parameter> <parameter name="observer" type="android.content.pm.IPackageInstallObserver"> </parameter> <parameter name="flags" type="int"> </parameter> </method> <method name="isSafeMode" return="boolean" abstract="false"
api/current.xml +22 −437 Original line number Diff line number Diff line Loading @@ -7346,6 +7346,17 @@ visibility="public" > </field> <field name="testOnly" type="int" transient="false" volatile="false" value="16843378" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="text" type="int" transient="false" Loading Loading @@ -34179,6 +34190,17 @@ visibility="public" > </field> <field name="FLAG_TEST_ONLY" type="int" transient="false" volatile="false" value="512" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="FLAG_UPDATED_SYSTEM_APP" type="int" transient="false" Loading Loading @@ -34594,97 +34616,6 @@ > </field> </class> <interface name="IPackageInstallObserver" abstract="true" static="false" final="false" deprecated="not deprecated" visibility="public" > <implements name="android.os.IInterface"> </implements> <method name="packageInstalled" return="void" abstract="true" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="packageName" type="java.lang.String"> </parameter> <parameter name="returnCode" type="int"> </parameter> <exception name="RemoteException" type="android.os.RemoteException"> </exception> </method> </interface> <class name="IPackageInstallObserver.Stub" extends="android.os.Binder" abstract="true" static="true" final="false" deprecated="not deprecated" visibility="public" > <implements name="android.content.pm.IPackageInstallObserver"> </implements> <constructor name="IPackageInstallObserver.Stub" type="android.content.pm.IPackageInstallObserver.Stub" static="false" final="false" deprecated="not deprecated" visibility="public" > </constructor> <method name="asBinder" return="android.os.IBinder" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > </method> <method name="asInterface" return="android.content.pm.IPackageInstallObserver" abstract="false" native="false" synchronized="false" static="true" final="false" deprecated="not deprecated" visibility="public" > <parameter name="obj" type="android.os.IBinder"> </parameter> </method> <method name="onTransact" return="boolean" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="code" type="int"> </parameter> <parameter name="data" type="android.os.Parcel"> </parameter> <parameter name="reply" type="android.os.Parcel"> </parameter> <parameter name="flags" type="int"> </parameter> <exception name="RemoteException" type="android.os.RemoteException"> </exception> </method> </class> <class name="InstrumentationInfo" extends="android.content.pm.PackageItemInfo" abstract="false" Loading Loading @@ -35847,36 +35778,6 @@ <parameter name="appInfo" type="android.content.pm.ApplicationInfo"> </parameter> </method> <method name="installPackage" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="packageURI" type="android.net.Uri"> </parameter> <parameter name="observer" type="android.content.pm.IPackageInstallObserver"> </parameter> <parameter name="flags" type="int"> </parameter> </method> <method name="installPackage" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="packageURI" type="android.net.Uri"> </parameter> </method> <method name="isSafeMode" return="boolean" abstract="true" Loading Loading @@ -36150,17 +36051,6 @@ visibility="public" > </field> <field name="FORWARD_LOCK_PACKAGE" type="int" transient="false" volatile="false" value="1" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="GET_ACTIVITIES" type="int" transient="false" Loading Loading @@ -36348,281 +36238,6 @@ visibility="public" > </field> <field name="INSTALL_FAILED_ALREADY_EXISTS" type="int" transient="false" volatile="false" value="-1" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_CONFLICTING_PROVIDER" type="int" transient="false" volatile="false" value="-13" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_DEXOPT" type="int" transient="false" volatile="false" value="-11" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_DUPLICATE_PACKAGE" type="int" transient="false" volatile="false" value="-5" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_INSUFFICIENT_STORAGE" type="int" transient="false" volatile="false" value="-4" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_INVALID_APK" type="int" transient="false" volatile="false" value="-2" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_INVALID_URI" type="int" transient="false" volatile="false" value="-3" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_MISSING_SHARED_LIBRARY" type="int" transient="false" volatile="false" value="-9" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_NEWER_SDK" type="int" transient="false" volatile="false" value="-14" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_NO_SHARED_USER" type="int" transient="false" volatile="false" value="-6" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_OLDER_SDK" type="int" transient="false" volatile="false" value="-12" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_REPLACE_COULDNT_DELETE" type="int" transient="false" volatile="false" value="-10" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_SHARED_USER_INCOMPATIBLE" type="int" transient="false" volatile="false" value="-8" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_FAILED_UPDATE_INCOMPATIBLE" type="int" transient="false" volatile="false" value="-7" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_BAD_MANIFEST" type="int" transient="false" volatile="false" value="-101" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_BAD_PACKAGE_NAME" type="int" transient="false" volatile="false" value="-106" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_BAD_SHARED_USER_ID" type="int" transient="false" volatile="false" value="-107" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_CERTIFICATE_ENCODING" type="int" transient="false" volatile="false" value="-105" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES" type="int" transient="false" volatile="false" value="-104" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_MANIFEST_EMPTY" type="int" transient="false" volatile="false" value="-109" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_MANIFEST_MALFORMED" type="int" transient="false" volatile="false" value="-108" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_NOT_APK" type="int" transient="false" volatile="false" value="-100" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_NO_CERTIFICATES" type="int" transient="false" volatile="false" value="-103" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION" type="int" transient="false" volatile="false" value="-102" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="INSTALL_SUCCEEDED" type="int" transient="false" volatile="false" value="1" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="MATCH_DEFAULT_ONLY" type="int" transient="false" Loading Loading @@ -36678,17 +36293,6 @@ visibility="public" > </field> <field name="REPLACE_EXISTING_PACKAGE" type="int" transient="false" volatile="false" value="2" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="SIGNATURE_FIRST_NOT_SIGNED" type="int" transient="false" Loading Loading @@ -114686,25 +114290,6 @@ <parameter name="appInfo" type="android.content.pm.ApplicationInfo"> </parameter> </method> <method name="installPackage" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="packageURI" type="android.net.Uri"> </parameter> <parameter name="observer" type="android.content.pm.IPackageInstallObserver"> </parameter> <parameter name="flags" type="int"> </parameter> <parameter name="installerPackageName" type="java.lang.String"> </parameter> </method> <method name="isSafeMode" return="boolean" abstract="false"
cmds/pm/src/com/android/commands/pm/Pm.java +25 −19 Original line number Diff line number Diff line Loading @@ -540,6 +540,9 @@ public final class Pm { case PackageManager.INSTALL_FAILED_NEWER_SDK: s = "INSTALL_FAILED_NEWER_SDK"; break; case PackageManager.INSTALL_FAILED_TEST_ONLY: s = "INSTALL_FAILED_TEST_ONLY"; break; case PackageManager.INSTALL_PARSE_FAILED_NOT_APK: s = "INSTALL_PARSE_FAILED_NOT_APK"; break; Loading Loading @@ -584,9 +587,9 @@ public final class Pm { String opt; while ((opt=nextOption()) != null) { if (opt.equals("-l")) { installFlags |= PackageManager.FORWARD_LOCK_PACKAGE; installFlags |= PackageManager.INSTALL_FORWARD_LOCK; } else if (opt.equals("-r")) { installFlags |= PackageManager.REPLACE_EXISTING_PACKAGE; installFlags |= PackageManager.INSTALL_REPLACE_EXISTING; } else if (opt.equals("-i")) { installerPackageName = nextOptionData(); if (installerPackageName == null) { Loading @@ -594,6 +597,8 @@ public final class Pm { showUsage(); return; } } else if (opt.equals("-t")) { installFlags |= PackageManager.INSTALL_ALLOW_TEST; } else { System.err.println("Error: Unknown option: " + opt); showUsage(); Loading Loading @@ -821,38 +826,39 @@ public final class Pm { System.err.println(" pm list permissions [-g] [-f] [-d] [-u] [GROUP]"); System.err.println(" pm list instrumentation [-f] [TARGET-PACKAGE]"); System.err.println(" pm path PACKAGE"); System.err.println(" pm install [-l] [-r] [-i INSTALLER_PACKAGE_NAME] PATH"); System.err.println(" pm install [-l] [-r] [-t] [-i INSTALLER_PACKAGE_NAME] PATH"); System.err.println(" pm uninstall [-k] PACKAGE"); System.err.println(" pm enable PACKAGE_OR_COMPONENT"); System.err.println(" pm disable PACKAGE_OR_COMPONENT"); System.err.println(""); System.err.println("The list packages command prints all packages. Use"); System.err.println("the -f option to see their associated file."); System.err.println("The list packages command prints all packages. Options:"); System.err.println(" -f: see their associated file."); System.err.println(""); System.err.println("The list permission-groups command prints all known"); System.err.println("permission groups."); System.err.println(""); System.err.println("The list permissions command prints all known"); System.err.println("permissions, optionally only those in GROUP. Use"); System.err.println("the -g option to organize by group. Use"); System.err.println("the -f option to print all information. Use"); System.err.println("the -s option for a short summary. Use"); System.err.println("the -d option to only list dangerous permissions. Use"); System.err.println("the -u option to list only the permissions users will see."); System.err.println("permissions, optionally only those in GROUP. Options:"); System.err.println(" -g: organize by group."); System.err.println(" -f: print all information."); System.err.println(" -s: short summary."); System.err.println(" -d: only list dangerous permissions."); System.err.println(" -u: list only the permissions users will see."); System.err.println(""); System.err.println("The list instrumentation command prints all instrumentations,"); System.err.println("or only those that target a specified package. Use the -f option"); System.err.println("to see their associated file."); System.err.println("or only those that target a specified package. Options:"); System.err.println(" -f: see their associated file."); System.err.println(""); System.err.println("The path command prints the path to the .apk of a package."); System.err.println(""); System.err.println("The install command installs a package to the system. Use"); System.err.println("the -l option to install the package with FORWARD_LOCK. Use"); System.err.println("the -r option to reinstall an exisiting app, keeping its data."); System.err.println("the -i option to specify the installer package name."); System.err.println("The install command installs a package to the system. Options:"); System.err.println(" -l: install the package with FORWARD_LOCK."); System.err.println(" -r: reinstall an exisiting app, keeping its data."); System.err.println(" -t: allow test .apks to be installed."); System.err.println(" -i: specify the installer package name."); System.err.println(""); System.err.println("The uninstall command removes a package from the system. Use"); System.err.println("the -k option to keep the data and cache directories around"); System.err.println("The uninstall command removes a package from the system. Options:"); System.err.println(" -k: keep the data and cache directories around."); System.err.println("after the package removal."); System.err.println(""); System.err.println("The enable and disable commands change the enabled state of"); Loading
core/java/android/content/pm/ApplicationInfo.java +6 −0 File changed.Preview size limit exceeded, changes collapsed. Show changes
core/java/android/content/pm/IPackageInstallObserver.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,7 @@ package android.content.pm; /** * API for installation callbacks from the Package Manager. * * @hide */ oneway interface IPackageInstallObserver { void packageInstalled(in String packageName, int returnCode); Loading