Closed Bug 1170854 Opened 9 years ago Closed 9 years ago

[B2gDroid] The b2gdroid.apk file doesn't install correctly on ZTE Open_c

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: JMercado, Unassigned)

References

()

Details

Attachments

(1 file)

Attached file logcat
Description:
When attempting to install the b2gdroid.apk file found on https://people.mozilla.org/~fdesre/b2gdroid/ the user sees odd errors.  If attempting to install through the browser the package installer does not even open and the file is not downloaded to attempt manually.  
If the file is put onto the phone through usb and opened with a file explorer program, the package installer will open but give this error: Parsing error:  There was a problem parsing the package."


Repro Steps:
1) Have a ZTE Open_c device running android
2) Go to https://people.mozilla.org/~fdesre/b2gdroid/ and attempt to install the b2gdroid app
3) Note that the file is not downloaded
4) Download the file with a computer
5) Enable usb mass storage on the android device and put the apk file there
6) Attempt to open the file with a file manager program (I used the free Astro File manager)


Actual:
The file is not downloaded on th device and when put there with USB storage is not correctly installed by the package installer.


Expected:
The file installs and b2gdroid can be run.

Repro frequency: 100%
See attached: logcat, video
Fabrice and Naoki: Do either of you know why I'm seeing this?
QA Whiteboard: [QAnalyst-Triage?]
Flags: needinfo?(nhirata.bugzilla)
Flags: needinfo?(ktucker)
Flags: needinfo?(fabrice)
I can't see anything useful in your logcat. I installed from the downloaded version successfully on a nexus 4 running 4.4 so that looks device specific.
Flags: needinfo?(fabrice)
Summary: [B2gDroid] The b2gdroid.apk file doesn't install correctly on android devices → [B2gDroid] The b2gdroid.apk file doesn't install correctly on ZTE Open_c
Oh, actually the error is here:
06-03 01:48:41.306 10781 10781 D zipro   : Zip: EOCD not found, /storage/sdcard1/b2gdroid.apk is not zip
06-03 01:48:41.306 10781 10781 D asset   : failed to open Zip archive '/storage/sdcard1/b2gdroid.apk'
06-03 01:48:41.316 10781 10781 W PackageInstaller: Parse error when parsing manifest. Discontinuing installation
06-03 01:48:41.316 10781 10781 W PackageParser: Unable to read AndroidManifest.xml of /storage/sdcard1/b2gdroid.apk
06-03 01:48:41.316 10781 10781 W PackageParser: java.io.FileNotFoundException: AndroidManifest.xml
06-03 01:48:41.316 10781 10781 W PackageParser: 	at android.content.res.AssetManager.openXmlAssetNative(Native Method)
06-03 01:48:41.316 10781 10781 W PackageParser: 	at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:488)
06-03 01:48:41.316 10781 10781 W PackageParser: 	at android.content.res.AssetManager.openXmlResourceParser(AssetManager.java:456)
06-03 01:48:41.316 10781 10781 W PackageParser: 	at android.content.pm.PackageParser.parsePackage(PackageParser.java:528)
06-03 01:48:41.316 10781 10781 W PackageParser: 	at com.android.packageinstaller.PackageUtil.getPackageInfo(PackageUtil.java:73)
06-03 01:48:41.316 10781 10781 W PackageParser: 	at com.android.packageinstaller.PackageInstallerActivity.onCreate(PackageInstallerActivity.java:465)
06-03 01:48:41.316 10781 10781 W PackageParser: 	at android.app.Activity.performCreate(Activity.java:5231)
06-03 01:48:41.316 10781 10781 W PackageParser: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
06-03 01:48:41.316 10781 10781 W PackageParser: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2162)
06-03 01:48:41.316 10781 10781 W PackageParser: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2248)
06-03 01:48:41.316 10781 10781 W PackageParser: 	at android.app.ActivityThread.access$800(ActivityThread.java:138)
06-03 01:48:41.316 10781 10781 W PackageParser: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1199)
06-03 01:48:41.316 10781 10781 W PackageParser: 	at android.os.Handler.dispatchMessage(Handler.java:102)
06-03 01:48:41.316 10781 10781 W PackageParser: 	at android.os.Looper.loop(Looper.java:136)
06-03 01:48:41.316 10781 10781 W PackageParser: 	at android.app.ActivityThread.main(ActivityThread.java:5050)
06-03 01:48:41.316 10781 10781 W PackageParser: 	at java.lang.reflect.Method.invokeNative(Native Method)
06-03 01:48:41.316 10781 10781 W PackageParser: 	at java.lang.reflect.Method.invoke(Method.java:515)
06-03 01:48:41.316 10781 10781 W PackageParser: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:780)
06-03 01:48:41.316 10781 10781 W PackageParser: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:596)
06-03 01:48:41.316 10781 10781 W PackageParser: 	at dalvik.system.NativeStart.main(Native Method)

can you open your b2gdroid.apk with a zip utility and check that there's an AndroidManifest.xml file? It should really be there... I just pushed a new one, size is 67652130 and md5sum a57ab4a7e043a96f6bffddd557ab9cb3
Flags: needinfo?(ktucker) → needinfo?(jmercado)
The original apk file (63.8 MB) I had did have an AndroidManifest.xml file inside it when opening it with an archive manager.  However the newer file (67.7 MB) does install and run so whatever changes you made fixed the problem when i put it on with USB Mass Storage.

However now when attempting to download the apk with the browser on the Open_c device I'm seeing a prompt asking me what program to open it with (options are default browser or Chrome) and if I select either it will open a new browser tab and prompt me again, repeating indefinitely (regardless of which browser was chosen).  Not sure if this is a problem with andorid or with the apk file.
Flags: needinfo?(ktucker)
Flags: needinfo?(jmercado)
Flags: needinfo?(fabrice)
Android should prompt you to install the downloaded .apk. At least this is what happens on my n4. So let's close this bug as you managed to install.
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: needinfo?(fabrice)
Resolution: --- → FIXED
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(ktucker)
clearing my name since it's resolved with a newer file.
Flags: needinfo?(nhirata.bugzilla)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: