OTA升级,无法找到更新包
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
OTA升级,服务器上已经上传了新版本,但是手机检索的时候,仍然提示版本已经是最新版本,找不到更新包。
从log看:提示如下:
{"status":1000,"name":"mp.v1.1","size":4455854,"android_version":"4.2.2","release_notes":"MP.V1.1","delt
aId":181,"fingerprint":"XXXXX/vh075_td_emmc_xxxxx_s4509/vh075_td_emmc_xxxxx_s4509:4.2.2/JDQ39/1387464158
:user/test-keys"}//这个log说明找到了新的软件版本
12-20 09:49:20.887: INFO/SystemUpdate/HttpManager(2002): parseCheckVersionInfo
12-20 09:49:20.894: INFO/SystemUpdate/HttpManager(2002): HTTP_RESPONSE_SUCCESS
12-20 09:49:20.895: INFO/SystemUpdate/HttpManager(2002): res.mVersionName = mp.v1.1
12-20 09:49:20.895: INFO/SystemUpdate/HttpManager(2002): res.fileSize = 4455854
12-20 09:49:20.895: INFO/SystemUpdate/HttpManager(2002): res.releaseNote = MP.V1.1
12-20 09:49:20.895: INFO/SystemUpdate/HttpManager(2002): delta package: res.packageId = 181
12-20 09:49:20.895: INFO/SystemUpdate/HttpManager(2002): res.packageId = 181res.isFullPkg = false
12-20 09:49:20.895: INFO/SystemUpdate/HttpManager(2002): fingerPrintPkg =
XXXXX/vh075_td_emmc_xxxxx_s4509/vh075_td_emmc_xxxxx_s4509:4.2.2/JDQ39/1387464158:user/test-keys
12-20 09:49:20.895: INFO/SystemUpdate/HttpManager(2002): fingerPrintLocal =
12-20 09:49:20.898: INFO/SystemUpdate/HttpManager(2002): sendErrorMessage, mErrorCode = 1010//这里说明软件版本不匹配
[SOLUTION]
在对比版本的时候,会对比fingerprint值,log来看这里
12-20 09:49:20.895: INFO/SystemUpdate/HttpManager(2002): fingerPrintPkg =
XXXXX/vh075_td_emmc_xxxxx_s4509/vh075_td_emmc_xxxxx_s4509:4.2.2/JDQ39/1387464158:user/test-keys
12-20 09:49:20.895: INFO/SystemUpdate/HttpManager(2002): fingerPrintLocal =
fingerPrintLocal是获取来的本地手机的fingerprint值,这边获取为null,是因为
客户定义的版本号太长了,导致在组装成fingerprint值的时候,超出了google限制
的property的长度92 byte,这种情况下,请改小客户定义版本内容,即
XXXXX/vh075_td_emmc_xxxxx_s4509/vh075_td_emmc_xxxxx_s4509:4.2.2/JDQ39/1387464158:user
/test-keys
XXXXXOEMalps
vh075_td_emmc_xxxxx_s4509
OTA升级,服务器上已经上传了新版本,但是手机检索的时候,仍然提示版本已经是最新版本,找不到更新包。
从log看:提示如下:
{"status":1000,"name":"mp.v1.1","size":4455854,"android_version":"4.2.2","release_notes":"MP.V1.1","delt
aId":181,"fingerprint":"XXXXX/vh075_td_emmc_xxxxx_s4509/vh075_td_emmc_xxxxx_s4509:4.2.2/JDQ39/1387464158
:user/test-keys"}//这个log说明找到了新的软件版本
12-20 09:49:20.887: INFO/SystemUpdate/HttpManager(2002): parseCheckVersionInfo
12-20 09:49:20.894: INFO/SystemUpdate/HttpManager(2002): HTTP_RESPONSE_SUCCESS
12-20 09:49:20.895: INFO/SystemUpdate/HttpManager(2002): res.mVersionName = mp.v1.1
12-20 09:49:20.895: INFO/SystemUpdate/HttpManager(2002): res.fileSize = 4455854
12-20 09:49:20.895: INFO/SystemUpdate/HttpManager(2002): res.releaseNote = MP.V1.1
12-20 09:49:20.895: INFO/SystemUpdate/HttpManager(2002): delta package: res.packageId = 181
12-20 09:49:20.895: INFO/SystemUpdate/HttpManager(2002): res.packageId = 181res.isFullPkg = false
12-20 09:49:20.895: INFO/SystemUpdate/HttpManager(2002): fingerPrintPkg =
XXXXX/vh075_td_emmc_xxxxx_s4509/vh075_td_emmc_xxxxx_s4509:4.2.2/JDQ39/1387464158:user/test-keys
12-20 09:49:20.895: INFO/SystemUpdate/HttpManager(2002): fingerPrintLocal =
12-20 09:49:20.898: INFO/SystemUpdate/HttpManager(2002): sendErrorMessage, mErrorCode = 1010//这里说明软件版本不匹配
[SOLUTION]
在对比版本的时候,会对比fingerprint值,log来看这里
12-20 09:49:20.895: INFO/SystemUpdate/HttpManager(2002): fingerPrintPkg =
XXXXX/vh075_td_emmc_xxxxx_s4509/vh075_td_emmc_xxxxx_s4509:4.2.2/JDQ39/1387464158:user/test-keys
12-20 09:49:20.895: INFO/SystemUpdate/HttpManager(2002): fingerPrintLocal =
fingerPrintLocal是获取来的本地手机的fingerprint值,这边获取为null,是因为
客户定义的版本号太长了,导致在组装成fingerprint值的时候,超出了google限制
的property的长度92 byte,这种情况下,请改小客户定义版本内容,即
XXXXX/vh075_td_emmc_xxxxx_s4509/vh075_td_emmc_xxxxx_s4509:4.2.2/JDQ39/1387464158:user
/test-keys
XXXXXOEMalps
vh075_td_emmc_xxxxx_s4509