java - Cannot install apk in one certain phone -


when try install apk on 5 different cellphones, 1 of them panics. other 4 work fine. here error info:

  1. android.content.pm.packageparser$packageparserexception: failed adding asset path

  2. java.lang.securityexception: getdeviceid: neither user 10071 nor current process has android.permission.read_phone_state

here detailed error:

04-07 12:10:06.788 9371-9371/? w/zipro: error opening archive /storage/6365-3066/download/qqmail/iscan-debug.apk: invalid file 04-07 12:10:06.789 9371-9371/? e/packageutil: can not parse packag                                           android.content.pm.packageparser$packageparserexception: failed adding asset path: /storage/6365-3066/download/qqmail/iscan-debug.apk                                               @ android.content.pm.packageparser.loadapkintoassetmanager(packageparser.java:898)                                               @ android.content.pm.packageparser.parsebaseapk(packageparser.java:926)                                               @ android.content.pm.packageparser.parsemonolithicpackage(packageparser.java:874)                                               @ android.content.pm.packageparser.parsemonolithicpackage(packageparser.java:855)                                               @ com.android.packageinstaller.packageutil.getpackageinfo(packageutil.java:79)                                               @ com.android.packageinstaller.packageinstalleractivity.oncreate(packageinstalleractivity.java:728)                                               @ android.app.activity.performcreate(activity.java:6367)                                               @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1110)                                               @ android.app.activitythread.performlaunchactivity(activitythread.java:2397)                                               @ android.app.activitythread.handlelaunchactivity(activitythread.java:2504)                                               @ android.app.activitythread.access$900(activitythread.java:165)                                               @ android.app.activitythread$h.handlemessage(activitythread.java:1368)                                               @ android.os.handler.dispatchmessage(handler.java:102)                                               @ android.os.looper.loop(looper.java:150)                                               @ android.app.activitythread.main(activitythread.java:5546)                                               @ java.lang.reflect.method.invoke(native method)                                               @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:792)                                               @ com.android.internal.os.zygoteinit.main(zygoteinit.java:682) 04-07 12:10:06.789 9371-9371/? w/packageinstaller: parse error when parsing manifest. discontinuing installation 04-07 12:10:06.794 3635-3635/? i/windowblurviewmanager: allowchangeblurbackground 04-07 12:10:06.818 4402-4163/? w/system.err: java.lang.securityexception: getdeviceid: neither user 10071 nor current process has android.permission.read_phone_state. 04-07 12:10:06.818 4402-4163/? w/system.err:     @ android.app.contextimpl.enforce(contextimpl.java:1595) 04-07 12:10:06.818 4402-4163/? w/system.err:     @ android.app.contextimpl.enforcecallingorselfpermission(contextimpl.java:1627) 04-07 12:10:06.818 4402-4163/? w/system.err:     @ android.content.contextwrapper.enforcecallingorselfpermission(contextwrapper.java:675) 04-07 12:10:06.818 4402-4163/? w/system.err:     @ android.content.contextwrapper.enforcecallingorselfpermission(contextwrapper.java:675) 04-07 12:10:06.818 4402-4163/? w/system.err:     @ com.android.internal.telephony.hwphoneservice.canreadphonestate(hwphoneservice.java:969) 04-07 12:10:06.818 4402-4163/? w/system.err:     @ com.android.internal.telephony.hwphoneservice.getuniquedeviceid(hwphoneservice.java:984) 04-07 12:10:06.818 4402-4163/? w/system.err:     @ com.android.internal.telephony.ihwtelephony$stub.ontransact(ihwtelephony.java:364) 04-07 12:10:06.818 4402-4163/? w/system.err:     @ android.os.binder.exectransact(binder.java:453) 04-07 12:10:06.819 9371-9392/? w/system.err: java.lang.securityexception: getdeviceid: neither user 10071 nor current process has android.permission.read_phone_state. 04-07 12:10:06.819 9371-9392/? w/system.err:     @ android.os.parcel.readexception(parcel.java:1602) 04-07 12:10:06.820 9371-9392/? w/system.err:     @ android.os.parcel.readexception(parcel.java:1555) 04-07 12:10:06.820 9371-9392/? w/system.err:     @ com.android.internal.telephony.ihwtelephony$stub$proxy.getuniquedeviceid(ihwtelephony.java:1297) 04-07 12:10:06.820 9371-9392/? w/system.err:     @ android.telephony.hwtelephonymanagerinner.getuniquedeviceid(hwtelephonymanagerinner.java:843) 04-07 12:10:06.820 9371-9392/? w/system.err:     @ android.telephony.hwinnertelephonymanagerimpl.getuniquedeviceid(hwinnertelephonymanagerimpl.java:340) 04-07 12:10:06.820 9371-9392/? w/system.err:     @ android.telephony.telephonymanager.getdeviceid(telephonymanager.java:723) 04-07 12:10:06.820 9371-9392/? w/system.err:     @ com.hianalytics.android.v1.e.a(unknown source) 04-07 12:10:06.820 9371-9392/? w/system.err:     @ com.hianalytics.android.v1.e.run(unknown source) 04-07 12:10:06.820 9371-9392/? w/system.err:     @ android.os.handler.handlecallback(handler.java:743) 04-07 12:10:06.820 9371-9392/? w/system.err:     @ android.os.handler.dispatchmessage(handler.java:95) 04-07 12:10:06.820 9371-9392/? w/system.err:     @ android.os.looper.loop(looper.java:150) 04-07 12:10:06.820 9371-9392/? w/system.err:     @ android.os.handlerthread.run(handlerthread.java:61) 

any idea why happens on phone? how fix it? thank you.

04-07 12:10:06.788 9371-9371/? w/zipro: error opening archive /storage/6365-3066/download/qqmail/iscan-debug.apk: invalid file

this problem.

according android source, return code of kinvalidfile reported in couple of places:

  • the archive (apk file) cannot mapped memory because file big, small or cannot accessed.
  • there's wrong end of central directory (eocd) data in apk file.

my guess there's wrong accessing apk @ /storage/... location. try moving apk normal android temp directory - /data/local/tmp/.

failing that, there's either corruption of apk or other software (antivirus, anti-malware, etc) stopping file being accessed.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -