diff --git a/README.en.md b/README.en.md index 9ca51d1..4e9552d 100644 --- a/README.en.md +++ b/README.en.md @@ -534,61 +534,61 @@ Failure [INSTALL_FAILED_ALREADY_EXISTS] Common Installation failed output code, the meaning and possible solutions are as follows: -| Output | Meaning | solutions | -|---------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------| -| INSTALL\_FAILED\_ALREADY\_EXISTS | application already exists | use `-r` parameters | -| INSTALL\_FAILED\_INVALID\_APK | invalid APK file | | -| INSTALL\_FAILED\_INVALID\_URI | invalid filename APK | APK file names to ensure no Chinese | -| INSTALL\_FAILED\_INSUFFICIENT\_STORAGE | lack of space | cleanup space | -| INSTALL\_FAILED\_DUPLICATE\_PACKAGE | program of the same name already exists | | -| INSTALL\_FAILED\_NO\_SHARED\_USER | shared user requested does not exist | | -| INSTALL\_FAILED\_UPDATE\_INCOMPATIBLE | already installed the app, but signature is not the same; or uninstalled, but data is not removed. | | -| INSTALL\_FAILED\_SHARED\_USER\_INCOMPATIBLE | shared user request exists but the signatures do not match | | -| INSTALL\_FAILED\_MISSING\_SHARED\_LIBRARY | installation package used on the device unusable shared library | | -| INSTALL\_FAILED\_REPLACE\_COULDNT\_DELETE | can not be deleted when replacing | | -| INSTALL\_FAILED\_DEXOPT | dex optimization validation failure or lack of space | | -| INSTALL\_FAILED\_OLDER\_SDK | equipment system version is lower than the application requirements | | -| INSTALL\_FAILED\_CONFLICTING\_PROVIDER | equipment already exists with the same name in application content provider | | -| INSTALL\_FAILED\_NEWER\_SDK | equipment system version higher than the application requirements | | -| INSTALL\_FAILED\_TEST\_ONLY | test-only applications, but when you install `-t` parameter is not specified | | -| INSTALL\_FAILED\_CPU\_ABI\_INCOMPATIBLE | contains incompatible device CPU Application Binary Interface for native code | | -| INSTALL\_FAILED\_MISSING\_FEATURE | application uses device features that are unavailable | | -| INSTALL\_FAILED\_CONTAINER\_ERROR | sdcard access failure | confirm sdcard is available, or to install built-in storage | -| INSTALL\_FAILED\_INVALID\_INSTALL\_LOCATION | can not be installed to the specified location | switch mounting position, add or delete `-s` parameters | -| INSTALL\_FAILED\_MEDIA\_UNAVAILABLE | installation location is unavailable | generally sdcard, confirm sdcard is available or to install built-in storage | -| INSTALL\_FAILED\_VERIFICATION\_TIMEOUT | Installation Timeout verify | | -| INSTALL\_FAILED\_VERIFICATION\_FAILURE | verify the installation package fails | | -| INSTALL\_FAILED\_PACKAGE\_CHANGED | calling application program expects inconsistent | | -| INSTALL\_FAILED\_UID\_CHANGED | previously installed the app, and this assignment UID inconsistent | remove residual files previously installed | -| INSTALL\_FAILED\_VERSION\_DOWNGRADE | already installed the application later | use `-d` parameters | -| INSTALL\_FAILED\_PERMISSION\_MODEL\_DOWNGRADE | installed target SDK runtime support for application permissions of the same name, to install the runtime version does not support permission | | -| INSTALL\_PARSE\_FAILED\_NOT\_APK | specified path is not a file or not to `.apk` end | | -| INSTALL\_PARSE\_FAILED\_BAD\_MANIFEST | unresolved AndroidManifest.xml file | | -| INSTALL\_PARSE\_FAILED\_UNEXPECTED\_EXCEPTION | parser encounters an exception | | -| INSTALL\_PARSE\_FAILED\_NO\_CERTIFICATES | installation package is not signed | | -| INSTALL\_PARSE\_FAILED\_INCONSISTENT\_CERTIFICATES | already installed the app, and signed with the APK files are inconsistent | first uninstall the application on the device, then install | -| INSTALL\_PARSE\_FAILED\_CERTIFICATE\_ENCODING | encountered while parsing APK file `CertificateEncodingException` | | -| INSTALL\_PARSE\_FAILED\_BAD\_PACKAGE\_NAME | manifest file no or an invalid package name | | -| INSTALL\_PARSE\_FAILED\_BAD\_SHARED\_USER\_ID | manifest file specifies an invalid shared user ID | | -| INSTALL\_PARSE\_FAILED\_MANIFEST\_MALFORMED | encountered while parsing file manifest error structural | | -| INSTALL\_PARSE\_FAILED\_MANIFEST\_EMPTY | in the manifest file can not be found to find operable label (instrumentation or application) | | -| INSTALL\_FAILED\_INTERNAL\_ERROR | installation fails because of system problems | | -| INSTALL\_FAILED\_USER\_RESTRICTED | Users are limited to installing applications | | -| INSTALL\_FAILED\_DUPLICATE\_PERMISSION | application attempts to define an existing permission name | | -| INSTALL\_FAILED\_NO\_MATCHING\_ABIS | applications include device application binary interface does not support the native code | | -| INSTALL\_CANCELED\_BY\_USER | applications installed on the device needs confirmation, but not operate the device or the point of cancellation | agree to install on the device | -| INSTALL\_FAILED\_ACWF\_INCOMPATIBLE | applications are not compatible with the device | | -| INSTALL_FAILED_TEST_ONLY | APK file is build via Android Studio 'RUN' | Rebuild via Gradle assembleDebug or assembleRelease, or Generate Signed APK | -| Does not contain AndroidManifest.xml | invalid APK file | | -| Is not a valid zip file | invalid APK file | | -| Offline | device is not connected successfully | first device with adb successful connection | -| Unauthorized | unauthorized device allows debugging | | -| Error: device not found | not successfully connected equipment | equipment and adb first successful connection | -| Protocol failure | device is disconnected | first device with adb successful connection | -| Unknown option: -s | Android 2.2 does not support the following installation to sdcard | do not use `-s` parameters | -| No space left on device | lack of space | cleanup space | -| Permission denied ... sdcard ... | sdcard unavailable | | -| signatures do not match the previously installed version; ignoring! | already installed this app, but signatures do not match | uninstall previous installed, then install this one | +| Output | Meaning | solutions | +|---------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------| +| INSTALL\_FAILED\_ALREADY\_EXISTS | application already exists | use `-r` parameters | +| INSTALL\_FAILED\_INVALID\_APK | invalid APK file | | +| INSTALL\_FAILED\_INVALID\_URI | invalid filename APK | APK file names to ensure no Chinese | +| INSTALL\_FAILED\_INSUFFICIENT\_STORAGE | lack of space | cleanup space | +| INSTALL\_FAILED\_DUPLICATE\_PACKAGE | program of the same name already exists | | +| INSTALL\_FAILED\_NO\_SHARED\_USER | shared user requested does not exist | | +| INSTALL\_FAILED\_UPDATE\_INCOMPATIBLE | already installed the app, but signature is not the same; or uninstalled, but data is not removed. | | +| INSTALL\_FAILED\_SHARED\_USER\_INCOMPATIBLE | shared user request exists but the signatures do not match | | +| INSTALL\_FAILED\_MISSING\_SHARED\_LIBRARY | installation package used on the device unusable shared library | | +| INSTALL\_FAILED\_REPLACE\_COULDNT\_DELETE | can not be deleted when replacing | | +| INSTALL\_FAILED\_DEXOPT | dex optimization validation failure or lack of space | | +| INSTALL\_FAILED\_OLDER\_SDK | equipment system version is lower than the application requirements | | +| INSTALL\_FAILED\_CONFLICTING\_PROVIDER | equipment already exists with the same name in application content provider | | +| INSTALL\_FAILED\_NEWER\_SDK | equipment system version higher than the application requirements | | +| INSTALL\_FAILED\_TEST\_ONLY | test-only applications, but when you install `-t` parameter is not specified | | +| INSTALL\_FAILED\_CPU\_ABI\_INCOMPATIBLE | contains incompatible device CPU Application Binary Interface for native code | | +| INSTALL\_FAILED\_MISSING\_FEATURE | application uses device features that are unavailable | | +| INSTALL\_FAILED\_CONTAINER\_ERROR | sdcard access failure | confirm sdcard is available, or to install built-in storage | +| INSTALL\_FAILED\_INVALID\_INSTALL\_LOCATION | can not be installed to the specified location | switch mounting position, add or delete `-s` parameters | +| INSTALL\_FAILED\_MEDIA\_UNAVAILABLE | installation location is unavailable | generally sdcard, confirm sdcard is available or to install built-in storage | +| INSTALL\_FAILED\_VERIFICATION\_TIMEOUT | Installation Timeout verify | | +| INSTALL\_FAILED\_VERIFICATION\_FAILURE | verify the installation package fails | | +| INSTALL\_FAILED\_PACKAGE\_CHANGED | calling application program expects inconsistent | | +| INSTALL\_FAILED\_UID\_CHANGED | previously installed the app, and this assignment UID inconsistent | remove residual files previously installed | +| INSTALL\_FAILED\_VERSION\_DOWNGRADE | already installed the application later | use `-d` parameters | +| INSTALL\_FAILED\_PERMISSION\_MODEL\_DOWNGRADE | installed target SDK runtime support for application permissions of the same name, to install the runtime version does not support permission | | +| INSTALL\_PARSE\_FAILED\_NOT\_APK | specified path is not a file or not to `.apk` end | | +| INSTALL\_PARSE\_FAILED\_BAD\_MANIFEST | unresolved AndroidManifest.xml file | | +| INSTALL\_PARSE\_FAILED\_UNEXPECTED\_EXCEPTION | parser encounters an exception | | +| INSTALL\_PARSE\_FAILED\_NO\_CERTIFICATES | installation package is not signed | | +| INSTALL\_PARSE\_FAILED\_INCONSISTENT\_CERTIFICATES | already installed the app, and signed with the APK files are inconsistent | first uninstall the application on the device, then install | +| INSTALL\_PARSE\_FAILED\_CERTIFICATE\_ENCODING | encountered while parsing APK file `CertificateEncodingException` | | +| INSTALL\_PARSE\_FAILED\_BAD\_PACKAGE\_NAME | manifest file no or an invalid package name | | +| INSTALL\_PARSE\_FAILED\_BAD\_SHARED\_USER\_ID | manifest file specifies an invalid shared user ID | | +| INSTALL\_PARSE\_FAILED\_MANIFEST\_MALFORMED | encountered while parsing file manifest error structural | | +| INSTALL\_PARSE\_FAILED\_MANIFEST\_EMPTY | in the manifest file can not be found to find operable label (instrumentation or application) | | +| INSTALL\_FAILED\_INTERNAL\_ERROR | installation fails because of system problems | | +| INSTALL\_FAILED\_USER\_RESTRICTED | Users are limited to installing applications | open options 'install app via USB' in developer options, if it was opened, close and reopen it | +| INSTALL\_FAILED\_DUPLICATE\_PERMISSION | application attempts to define an existing permission name | | +| INSTALL\_FAILED\_NO\_MATCHING\_ABIS | applications include device application binary interface does not support the native code | | +| INSTALL\_CANCELED\_BY\_USER | applications installed on the device needs confirmation, but not operate the device or the point of cancellation | agree to install on the device | +| INSTALL\_FAILED\_ACWF\_INCOMPATIBLE | applications are not compatible with the device | | +| INSTALL_FAILED_TEST_ONLY | APK file is build via Android Studio 'RUN' | Rebuild via Gradle assembleDebug or assembleRelease, or Generate Signed APK | +| Does not contain AndroidManifest.xml | invalid APK file | | +| Is not a valid zip file | invalid APK file | | +| Offline | device is not connected successfully | first device with adb successful connection | +| Unauthorized | unauthorized device allows debugging | | +| Error: device not found | not successfully connected equipment | equipment and adb first successful connection | +| Protocol failure | device is disconnected | first device with adb successful connection | +| Unknown option: -s | Android 2.2 does not support the following installation to sdcard | do not use `-s` parameters | +| No space left on device | lack of space | cleanup space | +| Permission denied ... sdcard ... | sdcard unavailable | | +| signatures do not match the previously installed version; ignoring! | already installed this app, but signatures do not match | uninstall previous installed, then install this one | Reference: [PackageManager.java](https://github.com/android/platform_frameworks_base/blob/master/core%2Fjava%2Fandroid%2Fcontent%2Fpm%2FPackageManager.java) diff --git a/README.md b/README.md index fca635a..82152d6 100644 --- a/README.md +++ b/README.md @@ -584,7 +584,7 @@ Failure [INSTALL_FAILED_ALREADY_EXISTS] | INSTALL\_PARSE\_FAILED\_MANIFEST\_MALFORMED | 解析 manifest 文件时遇到结构性错误 | | | INSTALL\_PARSE\_FAILED\_MANIFEST\_EMPTY | 在 manifest 文件里找不到找可操作标签(instrumentation 或 application) | | | INSTALL\_FAILED\_INTERNAL\_ERROR | 因系统问题安装失败 | | -| INSTALL\_FAILED\_USER\_RESTRICTED | 用户被限制安装应用 | | +| INSTALL\_FAILED\_USER\_RESTRICTED | 用户被限制安装应用 | 在开发者选项里将「USB安装」打开,如果已经打开了,那先关闭再打开。 | | INSTALL\_FAILED\_DUPLICATE\_PERMISSION | 应用尝试定义一个已经存在的权限名称 | | | INSTALL\_FAILED\_NO\_MATCHING\_ABIS | 应用包含设备的应用程序二进制接口不支持的 native code | | | INSTALL\_CANCELED\_BY\_USER | 应用安装需要在设备上确认,但未操作设备或点了取消 | 在设备上同意安装 |