Android安装app错误码
安装APK的错误码,定义在android源码中的这个⽂件中:frameworks/base/core/java/android/content/pm/PackageManager.java error code解释
INSTALL_SUCCEEDED = 1success
INSTALL_REASON_USER = 4包安装由⽤户发起
INSTALL_REASON_DEVICE_SETUP = 3包安装了,作为设备设置的⼀部分
INSTALL_REASON_DEVICE_RESTORE = 2表明这个包安装的从另⼀个设备恢复
INSTALL_REASON_POLICY = 1代码表明这个包安装由于企业政策
INSTALL_REASON_UNKNOWN = 0代码表明安装这个包的原因是未知的
INSTALL_FAILED_ALREADY_EXISTS = -1程序已经存在
INSTALL_FAILED_INVALID_APK = -2⽆效的APK
INSTALL_FAILED_INVALID_URI = -3⽆效的链接
INSTALL_FAILED_INSUFFICIENT_STORAGE = -4没有⾜够的存储空间
INSTALL_FAILED_DUPLICATE_PACKAGE = -5已存在同名程序
INSTALL_FAILED_NO_SHARED_USER = -6共享⽤户不存在
INSTALL_FAILED_UPDATE_INCOMPATIBLE = -7更新不兼容(旧包没有删除)
INSTALL_FAILED_SHARED_USER_INCOMPATIB LE = -8共享⽤户不兼容 如果新包请求⼀个共享的⽤户已安装在设备上,没有匹配的签名
INSTALL_FAILED_MISSING_SHARED_LIBRARY =
-9
共享库已丢失
INSTALL_FAILED_REPLACE_COULDNT_DELETE
= -10
替换时⽆法删除,如新的包使⽤⼀个共享库是不可⽤的INSTALL_FAILED_DEXOPT = -11空间不⾜或验证失败
INSTALL_FAILED_OLDER_SDK = -12系统版本过旧
INSTALL_FAILED_CONFLICTING_PROVIDER = -
13
存在同名的内容提供者
INSTALL_FAILED_NEWER_SDK = -14系统版本过新
INSTALL_FAILED_TEST_ONLY = -15不被允许测试的测试程序
INSTALL_FAILED_CPU_ABI_INCOMPATIBLE = -
16
包含的本机代码不兼容CPU_ABI
INSTALL_FAILED_MISSING_FEATURE = -17使⽤了⼀个⽆效的特性
INSTALL_FAILED_CONTAINER_ERROR = -18SD卡访问失败
INSTALL_FAILED_INVALID_INSTALL_LOCATION
= -19
⽆效的安装路径
INSTALL_FAILED_MEDIA_UNAVAILABLE = -20SD卡不可⽤
INSTALL_FAILED_VERIFICATION_TIMEOUT = -
21
验证超时
INSTALL_FAILED_VERIFICATION_FAILURE = -22验证失败
INSTALL_FAILED_PACKAGE_CHANGED = -23预期的应⽤被改变
INSTALL_FAILED_UID_CHANGED = -24新的包分配⼀个与过去不同的UID INSTALL_FAILED_VERSION_DOWNGRADE = -25安装旧版本
INSTALL_FAILED_PERMISSION_MODEL_DOWN GRADE = -26如果旧包⽬标SDK⽀持运⾏时允许和⾜够⾼的新⽅案⽬标SDK⾜够低到不⽀持运⾏时权限
INSTALL_FAILED_SANDBOX_VERSION_DOWNG
RADE = -27
新包试图下调⽬标沙箱版本的应⽤程序
NSTALL_PARSE_FAILED_NOT_APK = -100解析失败,不是APK
INSTALL_PARSE_FAILED_BAD_MANIFEST = -
101
解析失败,⽆法提取
error parse new
INSTALL_PARSE_FAILED_UNEXPECTED_EXCEP
TION = -102
解析失败,⽆法预期的异常
INSTALL_PARSE_FAILED_NO_CERTIFICATES = -
103
解析失败,不到证书
INSTALL_PARSE_FAILED_INCONSISTENT_CERTI
FICATES = -104
解析失败,证书不⼀致
INSTALL_PARSE_FAILED_CERTIFICATE_ENCODI
NG = -105
解析失败,证书编码异常
INSTALL_PARSE_FAILED_BAD_PACKAGE_NAM
E = -106
解析失败,manifest中的包名错误或丢失
INSTALL_PARSE_FAILED_BAD_SHARED_USER_I
D = -107
解析失败,manifest中的共享⽤户错误
INSTALL_PARSE_FAILED_MANIFEST_MALFORM
ED = -108
解析失败,manifest中出现结构性错误
INSTALL_PARSE_FAILED_MANIFEST_EMPTY = -109解析失败,manifest中没有actionable tags (instrumentation or application)
INSTALL_FAILED_INTERNAL_ERROR = -110系统问题导致安装失败
INSTALL_FAILED_USER_RESTRICTED = -111因为⽤户限制安装应⽤程序,系统没有安装INSTALL_FAILED_DUPLICATE_PERMISSION = -
112
权限重复定义使⽤
INSTALL_FAILED_NO_MATCHING_ABIS = -113native code不匹配任何⽀持的abi系统error code解释

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。