Firefox for Android v34 and v35 are crashing immediately on second opening in Samsung KNOX 2.0 and above.
Within a proof of concept situation we figured out that only freshly installed Firefox versions (v34 and v35) are running fine in a Samsung KNOX container. We are running Android 4.4.2 with KNOX 2.1 on a Samsung S5 device. We are using MobileIron 7.5 for provisioning the devices and configuring the container. The behavior is as follows:
1. Open KNOX container 2. Open Firefox within the container 3. Everything works fine without any problems (expected behavior). Intranet and Internet sites can be opened without any limitations. 4. Close Firefox completely (by multitasking screen) 5. Open Firefox again 6. Firefox crashes without any error message
After setting Firefox to factory settings by deleting all app data (with "System Info for Android" App because the "original" app setting is not available within the container) Firefox behaves like described under 3.
Unfortunately I do only have adb logs because the original Firefox logs can't be exported via USB out of the KNOX container as far as I know. If you have any ideas I would be really thankful for any advice. "about:crashes" can't be used as well because Firefox can't be opened after the first crash and has to be reset (including deleting all logs) by setting it to default.
Outside the KNOX container Firefox works well.
It seems that all KNOX 2.0 and above versions show the same behavior with Firefox which means that Firefox can't be used in a KNOX 2.x container.
We already opened a case at Samsung as well.
Modified
All Replies (3)
Would you check the behavior of Firefox Nightly, http://nightly.mozilla.org/ - Android (ARMv7, 3.0 Honeycomb and above)
Unfortunately the same behavior. At the first opening and outside of the KNOX container everything works fine but after that Firefox / Nightly crashes regularly. We fetched some adb logs during the crash. This might probably help. I have to split it up due to character limitations of each post.
R:\>adb logcat | findstr /i firefox
V/ApplicationPolicy( 1895): isApplicationStateBlocked userId 100 pkgname org.mozilla.firefox
V/ApplicationPolicy( 1895): isApplicationStateBlocked userId 100 pkgname org.mozilla.firefox
V/ApplicationPolicy( 1895): isApplicationStateBlocked userId 100 pkgname org.mozilla.firefox
V/ApplicationPolicy( 1895): isApplicationStateBlocked userId 100 pkgname org.mozilla.firefox
E/dalvikvm(16775): >>>>> org.mozilla.firefox [ userId:100 | appId:10240 ]
E/SELinux (16775): [DEBUG] selinux_android_knoxproc_setcontext: calling setcon(u:r:container_app:s0:c2) for org.mozilla.firefox
D/dalvikvm(16775): Trying to load lib /data/app-lib/org.mozilla.firefox-2/libmozglue.so 0x425af440
D/dalvikvm(16775): Added shared lib /data/app-lib/org.mozilla.firefox-2/libmozglue.so 0x425af440
D/dalvikvm(16775): No JNI_OnLoad found in /data/app-lib/org.mozilla.firefox-2/libmozglue.so 0x425af440, skipping init
D/GeckoHealthRec(16775): Looking for /data/user/100/org.mozilla.firefox/files/mozilla/3rxqmxrr.default/times.json
W/GeckoLinker(16775): /data/app/org.mozilla.firefox-2.apk!/assets/libnss3.so: unhandled flags #8 not handled
I/GeckoHealth(16775): firefox :: HealthReportBroadcastService :: Registering HealthReportUploadService.
I/GeckoHealth(16775): firefox :: BackgroundService :: Setting inexact repeating alarm for interval 3600000
I/GeckoHealth(16775): firefox :: SubmissionPolicy :: Need to wait 86400000 before first upload.
W/GeckoLinker(16775): /data/app/org.mozilla.firefox-2.apk!/assets/libxul.so: unhandled flags #8 not handled
W/GeckoLinker(16775): /data/app/org.mozilla.firefox-2.apk!/assets/libmozalloc.so: unhandled flags #8 not handled
W/GeckoLinker(16775): /data/app/org.mozilla.firefox-2.apk!/assets/libxul.so: Relocation to NULL @0x017d30fc
W/GeckoLinker(16775): /data/app/org.mozilla.firefox-2.apk!/assets/libxul.so: Relocation to NULL @0x017d41c4 for symbol "__cxa_begin_cleanup"
W/GeckoLinker(16775): /data/app/org.mozilla.firefox-2.apk!/assets/libxul.so: Relocation to NULL @0x017d41c8 for symbol "__cxa_type_match"
E/GeckoConsole(16775): Could not read chrome manifest 'file:///data/user/100/org.mozilla.firefox/chrome.manifest'.
W/GeckoLinker(16775): /data/app/org.mozilla.firefox-2.apk!/assets/libsoftokn3.so: unhandled flags #8 not handled
W/GeckoLinker(16775): /data/app/org.mozilla.firefox-2.apk!/assets/libfreebl3.so: unhandled flags #8 not handled
W/GeckoLinker(16775): /data/app/org.mozilla.firefox-2.apk!/assets/libnssckbi.so: unhandled flags #8 not handled
D/ApplicationPolicy( 1895): isStatusBarNotificationAllowed: packageName = org.mozilla.firefox
V/ApplicationPolicy( 1895): isApplicationStateBlocked userId 100 pkgname org.mozilla.firefox
D/GeckoWebapps(16775): Saving /data/user/100/org.mozilla.firefox/files/mozilla/webapps/webapps.json
D/GeckoWebapps(16775): Saving /data/user/100/org.mozilla.firefox/files/mozilla/webapps/webapps.json
E/dalvikvm(16855): >>>>> org.mozilla.firefox.UpdateService [ userId:100 | appId:10240 ]
E/SELinux (16855): [DEBUG] selinux_android_knoxproc_setcontext: calling setcon(u:r:container_app:s0:c2) for org.mozilla.firefox.UpdateService
D/dalvikvm(16855): Trying to load lib /data/app-lib/org.mozilla.firefox-2/libmozglue.so 0x425ab718
D/dalvikvm(16855): Added shared lib /data/app-lib/org.mozilla.firefox-2/libmozglue.so 0x425ab718
D/dalvikvm(16855): No JNI_OnLoad found in /data/app-lib/org.mozilla.firefox-2/libmozglue.so 0x425ab718, skipping init
I/GeckoLogger(16775): firefox :: HealthReportStorage :: Initializing measurement org.mozilla.appSessions to 4 (current 0)
I/GeckoLogger(16775): firefox :: HealthReportStorage :: Measurement org.mozilla.appSessions now at 4
I/GeckoLogger(16775): firefox :: HealthReportStorage :: Initializing measurement org.mozilla.searches.counts to 5 (current 0)
I/GeckoLogger(16775): firefox :: HealthReportStorage :: Measurement org.mozilla.searches.counts now at 5
D/dalvikvm(16775): Trying to load lib /data/app-lib/org.mozilla.firefox-2/libmozglue.so 0x425af440
D/dalvikvm(16775): Shared lib '/data/app-lib/org.mozilla.firefox-2/libmozglue.so' already loaded in same CL 0x425af440
E/GeckoConsole(16775): [JavaScript Error: "syntax error" {file: "jar:jar:file:///data/app/org.mozilla.firefox-2.apk!/assets/omni.ja!/chrome/de/locale/de/browser/searchplugins/list.txt" line:
1 column: 1 source: "amazon-de"}]
I/GeckoHealth(16775): firefox :: HealthReportBroadcastService :: Registering HealthReportPruneService. I/GeckoHealth(16775): firefox :: BackgroundService :: Setting inexact repeating alarm for interval 86400000 I/GeckoHealth(16775): firefox :: HealthReportBroadcastService :: Registering HealthReportPruneService. I/GeckoHealth(16775): firefox :: BackgroundService :: Setting inexact repeating alarm for interval 86400000 I/GeckoHealth(16775): firefox :: HealthReportBroadcastService :: Registering HealthReportPruneService. I/GeckoHealth(16775): firefox :: BackgroundService :: Setting inexact repeating alarm for interval 86400000 I/GeckoHealth(16775): firefox :: HealthReportBroadcastService :: Registering HealthReportPruneService. I/GeckoHealth(16775): firefox :: BackgroundService :: Setting inexact repeating alarm for interval 86400000 I/GeckoHealth(16775): firefox :: HealthReportBroadcastService :: Registering HealthReportPruneService. I/GeckoHealth(16775): firefox :: BackgroundService :: Setting inexact repeating alarm for interval 86400000 V/ApplicationPolicy( 1895): isApplicationStateBlocked userId 100 pkgname org.mozilla.firefox I/ActivityManager( 1895): Killing 16775:org.mozilla.firefox/u100a240 (adj 9): remove task I/ActivityManager( 1895): Killing 16855:org.mozilla.firefox.UpdateService/u100a240 (adj 15): remove task I/WindowState( 1895): WIN DEATH: Window{4517fb78 u100 org.mozilla.firefox/org.mozilla.firefox.App} W/WindowManager( 1895): Force-removing child win Window{45188ec8 u100 SurfaceView} from container Window{4517fb78 u100 org.mozilla.firefox/org.mozilla.firefox.App} V/ApplicationPolicy( 1895): isApplicationStateBlocked userId 100 pkgname org.mozilla.firefox
...see next post
Modified
...this is the rest of the log
E/dalvikvm(17631): >>>>> org.mozilla.firefox [ userId:100 | appId:10240 ] E/SELinux (17631): [DEBUG] selinux_android_knoxproc_setcontext: calling setcon(u:r:container_app:s0:c2) for org.mozilla.firefox D/dalvikvm(17631): Trying to load lib /data/app-lib/org.mozilla.firefox-2/libmozglue.so 0x425b42a8 D/dalvikvm(17631): Added shared lib /data/app-lib/org.mozilla.firefox-2/libmozglue.so 0x425b42a8 D/dalvikvm(17631): No JNI_OnLoad found in /data/app-lib/org.mozilla.firefox-2/libmozglue.so 0x425b42a8, skipping init I/GeckoLogger(17631): firefox :: GeckoProfileInfo :: Restoring ProfileInformationCache from file. I/GeckoLogger(17631): firefox :: HealthReportStorage :: Initializing measurement org.mozilla.appSessions to 4 (current 4) I/GeckoLogger(17631): firefox :: HealthReportStorage :: Measurement org.mozilla.appSessions already at v4 I/GeckoLogger(17631): firefox :: HealthReportStorage :: Initializing measurement org.mozilla.searches.counts to 5 (current 5) I/GeckoLogger(17631): firefox :: HealthReportStorage :: Measurement org.mozilla.searches.counts already at v5 D/dalvikvm(17631): Trying to load lib /data/app-lib/org.mozilla.firefox-2/libmozglue.so 0x425b42a8 D/dalvikvm(17631): Shared lib '/data/app-lib/org.mozilla.firefox-2/libmozglue.so' already loaded in same CL 0x425b42a8 W/GeckoLinker(17631): /data/app/org.mozilla.firefox-2.apk!/assets/libnss3.so: unhandled flags #8 not handled I/GeckoHealth(17631): firefox :: HealthReportBroadcastService :: Registering HealthReportUploadService. I/GeckoHealth(17631): firefox :: BackgroundService :: Setting inexact repeating alarm for interval 3600000 W/GeckoLinker(17631): /data/app/org.mozilla.firefox-2.apk!/assets/libxul.so: unhandled flags #8 not handled W/GeckoLinker(17631): /data/app/org.mozilla.firefox-2.apk!/assets/libmozalloc.so: unhandled flags #8 not handled W/GeckoLinker(17631): /data/app/org.mozilla.firefox-2.apk!/assets/libxul.so: Relocation to NULL @0x017d30fc W/GeckoLinker(17631): /data/app/org.mozilla.firefox-2.apk!/assets/libxul.so: Relocation to NULL @0x017d41c4 for symbol "__cxa_begin_cleanup" W/GeckoLinker(17631): /data/app/org.mozilla.firefox-2.apk!/assets/libxul.so: Relocation to NULL @0x017d41c8 for symbol "__cxa_type_match" E/GeckoConsole(17631): Could not read chrome manifest 'file:///data/user/100/org.mozilla.firefox/chrome.manifest'. I/ActivityManager( 1895): Process org.mozilla.firefox (pid 17631) (adj 1) has died. I/WindowState( 1895): WIN DEATH: Window{4326a358 u100 org.mozilla.firefox/org.mozilla.firefox.App} W/WindowManager( 1895): mAttachedWindow=Window{4326a358 u100 org.mozilla.firefox/org.mozilla.firefox.App EXITING} mLayoutAttached=true W/WindowManager( 1895): mRootToken=AppWindowToken{438217a0 token=Token{435027b8 ActivityRecord{43a50c18 u100 org.mozilla.firefox/.App t43}}} W/WindowManager( 1895): mAppToken=AppWindowToken{438217a0 token=Token{435027b8 ActivityRecord{43a50c18 u100 org.mozilla.firefox/.App t43}}} W/WindowManager( 1895): This window was lost: Window{4326a358 u100 org.mozilla.firefox/org.mozilla.firefox.App EXITING} W/WindowManager( 1895): mOwnerUid=10010240 mShowToOwnerOnly=true package=org.mozilla.firefox appop=NONE W/WindowManager( 1895): mToken=AppWindowToken{438217a0 token=Token{435027b8 ActivityRecord{43a50c18 u100 org.mozilla.firefox/.App t43}}} W/WindowManager( 1895): mRootToken=AppWindowToken{438217a0 token=Token{435027b8 ActivityRecord{43a50c18 u100 org.mozilla.firefox/.App t43}}} W/WindowManager( 1895): mAppToken=AppWindowToken{438217a0 token=Token{435027b8 ActivityRecord{43a50c18 u100 org.mozilla.firefox/.App t43}}} W/WindowManager( 1895): WindowStateAnimator{4353c578 org.mozilla.firefox/org.mozilla.firefox.App}: W/WindowManager( 1895): mSurface=Surface(name=org.mozilla.firefox/org.mozilla.firefox.App) V/WindowManager( 1895): #5: Token{44006cb0 ActivityRecord{4408ca88 u0 org.mozilla.firefox/.App t3}} V/WindowManager( 1895): #5: Window{43f31b18 u0 org.mozilla.firefox/org.mozilla.firefox.App} E/dalvikvm(17717): >>>>> org.mozilla.firefox [ userId:100 | appId:10240 ] E/SELinux (17717): [DEBUG] selinux_android_knoxproc_setcontext: calling setcon(u:r:container_app:s0:c2) for org.mozilla.firefox D/dalvikvm(17717): Trying to load lib /data/app-lib/org.mozilla.firefox-2/libmozglue.so 0x425a7fb8 D/dalvikvm(17717): Added shared lib /data/app-lib/org.mozilla.firefox-2/libmozglue.so 0x425a7fb8 D/dalvikvm(17717): No JNI_OnLoad found in /data/app-lib/org.mozilla.firefox-2/libmozglue.so 0x425a7fb8, skipping init V/ApplicationPolicy( 1895): isApplicationStateBlocked userId 100 pkgname org.mozilla.firefox I/GeckoLogger(17717): firefox :: GeckoProfileInfo :: Restoring ProfileInformationCache from file. I/GeckoLogger(17717): firefox :: HealthReportStorage :: Initializing measurement org.mozilla.appSessions to 4 (current 4) I/GeckoLogger(17717): firefox :: HealthReportStorage :: Measurement org.mozilla.appSessions already at v4 I/GeckoLogger(17717): firefox :: HealthReportStorage :: Initializing measurement org.mozilla.searches.counts to 5 (current 5) I/GeckoLogger(17717): firefox :: HealthReportStorage :: Measurement org.mozilla.searches.counts already at v5 D/dalvikvm(17717): Trying to load lib /data/app-lib/org.mozilla.firefox-2/libmozglue.so 0x425a7fb8 D/dalvikvm(17717): Shared lib '/data/app-lib/org.mozilla.firefox-2/libmozglue.so' already loaded in same CL 0x425a7fb8 W/GeckoLinker(17717): /data/app/org.mozilla.firefox-2.apk!/assets/libnss3.so: unhandled flags #8 not handled I/GeckoHealth(17717): firefox :: HealthReportBroadcastService :: Registering HealthReportUploadService. I/GeckoHealth(17717): firefox :: BackgroundService :: Setting inexact repeating alarm for interval 3600000 W/GeckoLinker(17717): /data/app/org.mozilla.firefox-2.apk!/assets/libxul.so: unhandled flags #8 not handled W/GeckoLinker(17717): /data/app/org.mozilla.firefox-2.apk!/assets/libmozalloc.so: unhandled flags #8 not handled W/GeckoLinker(17717): /data/app/org.mozilla.firefox-2.apk!/assets/libxul.so: Relocation to NULL @0x017d30fc W/GeckoLinker(17717): /data/app/org.mozilla.firefox-2.apk!/assets/libxul.so: Relocation to NULL @0x017d41c4 for symbol "__cxa_begin_cleanup" W/GeckoLinker(17717): /data/app/org.mozilla.firefox-2.apk!/assets/libxul.so: Relocation to NULL @0x017d41c8 for symbol "__cxa_type_match" E/GeckoConsole(17717): Could not read chrome manifest 'file:///data/user/100/org.mozilla.firefox/chrome.manifest'. I/ActivityManager( 1895): Process org.mozilla.firefox (pid 17717) (adj 1) has died. I/WindowState( 1895): WIN DEATH: Window{432b3450 u100 org.mozilla.firefox/org.mozilla.firefox.App}