X4A FC on startup on Android 9

I’m testing X4F wit latest V2_R110 (white label, though it doesnt really matter)
since im unable to purchase and import DSDevices into Israel (DSdevice are missing Wifi certificates by the manufacture)
so im testing new Android devices, so far ive been using Minix U9, however these are obsolete and pretty crappy HW…

the new device im testing is 4K capable (HDMI 2.0) and has root access, tested already remote version upgrade - works fine…

when i set X4F as launcher, and reboot the device, there is Force close notification on screen and it wont load the apk correctly.

I tried also leaving the default launcher, waiting for the Xibo APK to automatically launch after 2 minutes - and this doesn’t happen either…

i went through all permissions including Admin permissions and enabled them…

this what is able to fetch in logcat:

--------- beginning of crash
01-01 02:00:20.839  3448  3448 E AndroidRuntime: FATAL EXCEPTION: main
01-01 02:00:20.839  3448  3448 E AndroidRuntime: Process: com.signage.twfidrxfsw, PID: 3448
01-01 02:00:20.839  3448  3448 E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate application uk.org.xibo.player.Xibo: java.lang.IllegalStateException: SharedPreferences in credential encrypted storage are not available until after user is unlocked
01-01 02:00:20.839  3448  3448 E AndroidRuntime:        at android.app.LoadedApk.makeApplication(LoadedApk.java:1069)
01-01 02:00:20.839  3448  3448 E AndroidRuntime:        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5842)
01-01 02:00:20.839  3448  3448 E AndroidRuntime:        at android.app.ActivityThread.access$1100(ActivityThread.java:199)
01-01 02:00:20.839  3448  3448 E AndroidRuntime:        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1650)
01-01 02:00:20.839  3448  3448 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:106)
01-01 02:00:20.839  3448  3448 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:193)
01-01 02:00:20.839  3448  3448 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:6669)
01-01 02:00:20.839  3448  3448 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
01-01 02:00:20.839  3448  3448 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
01-01 02:00:20.839  3448  3448 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
01-01 02:00:20.839  3448  3448 E AndroidRuntime: Caused by: java.lang.IllegalStateException: SharedPreferences in credential encrypted storage are not available until after user is unlocked
01-01 02:00:20.839  3448  3448 E AndroidRuntime:        at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:419)
01-01 02:00:20.839  3448  3448 E AndroidRuntime:        at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:404)
01-01 02:00:20.839  3448  3448 E AndroidRuntime:        at android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:174)
01-01 02:00:20.839  3448  3448 E AndroidRuntime:        at android.preference.PreferenceManager.getDefaultSharedPreferences(PreferenceManager.java:526)
01-01 02:00:20.839  3448  3448 E AndroidRuntime:        at org.acra.prefs.SharedPreferencesFactory.create(SharedPreferencesFactory.java:41)
01-01 02:00:20.839  3448  3448 E AndroidRuntime:        at org.acra.ACRA.init(ACRA.java:234)
01-01 02:00:20.839  3448  3448 E AndroidRuntime:        at org.acra.ACRA.init(ACRA.java:173)
01-01 02:00:20.839  3448  3448 E AndroidRuntime:        at org.acra.ACRA.init(ACRA.java:157)
01-01 02:00:20.839  3448  3448 E AndroidRuntime:        at org.acra.ACRA.init(ACRA.java:140)
01-01 02:00:20.839  3448  3448 E AndroidRuntime:        at uk.org.xibo.player.Xibo.attachBaseContext(Xibo.java:46)
01-01 02:00:20.839  3448  3448 E AndroidRuntime:        at android.app.Application.attach(Application.java:212)
01-01 02:00:20.839  3448  3448 E AndroidRuntime:        at android.app.Instrumentation.newApplication(Instrumentation.java:1121)
01-01 02:00:20.839  3448  3448 E AndroidRuntime:        at android.app.LoadedApk.makeApplication(LoadedApk.java:1061)
01-01 02:00:20.839  3448  3448 E AndroidRuntime:        ... 9 more
01-01 02:00:21.155  3521  3521 E AndroidRuntime: FATAL EXCEPTION: main
01-01 02:00:21.155  3521  3521 E AndroidRuntime: Process: com.signage.twfidrxfsw, PID: 3521
01-01 02:00:21.155  3521  3521 E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate application uk.org.xibo.player.Xibo: java.lang.IllegalStateException: SharedPreferences in credential encrypted storage are not available until after user is unlocked
01-01 02:00:21.155  3521  3521 E AndroidRuntime:        at android.app.LoadedApk.makeApplication(LoadedApk.java:1069)
01-01 02:00:21.155  3521  3521 E AndroidRuntime:        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5842)
01-01 02:00:21.155  3521  3521 E AndroidRuntime:        at android.app.ActivityThread.access$1100(ActivityThread.java:199)
01-01 02:00:21.155  3521  3521 E AndroidRuntime:        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1650)
01-01 02:00:21.155  3521  3521 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:106)
01-01 02:00:21.155  3521  3521 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:193)
01-01 02:00:21.155  3521  3521 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:6669)
01-01 02:00:21.155  3521  3521 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
01-01 02:00:21.155  3521  3521 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
01-01 02:00:21.155  3521  3521 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
01-01 02:00:21.155  3521  3521 E AndroidRuntime: Caused by: java.lang.IllegalStateException: SharedPreferences in credential encrypted storage are not available until after user is unlocked
01-01 02:00:21.155  3521  3521 E AndroidRuntime:        at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:419)
01-01 02:00:21.155  3521  3521 E AndroidRuntime:        at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:404)
01-01 02:00:21.155  3521  3521 E AndroidRuntime:        at android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:174)
01-01 02:00:21.155  3521  3521 E AndroidRuntime:        at android.preference.PreferenceManager.getDefaultSharedPreferences(PreferenceManager.java:526)
01-01 02:00:21.155  3521  3521 E AndroidRuntime:        at org.acra.prefs.SharedPreferencesFactory.create(SharedPreferencesFactory.java:41)
01-01 02:00:21.155  3521  3521 E AndroidRuntime:        at org.acra.ACRA.init(ACRA.java:234)
01-01 02:00:21.155  3521  3521 E AndroidRuntime:        at org.acra.ACRA.init(ACRA.java:173)
01-01 02:00:21.155  3521  3521 E AndroidRuntime:        at org.acra.ACRA.init(ACRA.java:157)
01-01 02:00:21.155  3521  3521 E AndroidRuntime:        at org.acra.ACRA.init(ACRA.java:140)
01-01 02:00:21.155  3521  3521 E AndroidRuntime:        at uk.org.xibo.player.Xibo.attachBaseContext(Xibo.java:46)
01-01 02:00:21.155  3521  3521 E AndroidRuntime:        at android.app.Application.attach(Application.java:212)
01-01 02:00:21.155  3521  3521 E AndroidRuntime:        at android.app.Instrumentation.newApplication(Instrumentation.java:1121)
01-01 02:00:21.155  3521  3521 E AndroidRuntime:        at android.app.LoadedApk.makeApplication(LoadedApk.java:1061)
01-01 02:00:21.155  3521  3521 E AndroidRuntime:        ... 9 more
--------- beginning of system

I have tested also V2_R207 - same issue.
in V1.8 R110 - no problem… the app starts on boot without errors.

Prueba Raspberry Pi 4 … a mi me va muy bien con todas las pruebas que he echo, y en poco se lo instalo al primer cliente.

Vista … Raspberry Pi 4 + Android

2R207 doesn’t use DirectBoot mode which Google suggests is the cause of the error you get from LogCat.

Please could you check with 2R206 and/or 2R207 and let us know if you get the same logcat output from that?

Thanks Alex,
Retesting now,
V207 seems to work without errors (although yesterday it did produce it)

Also installed Xibo V2 R210 (not whitelabel) - also seems to work (??!)

So V210 Whitelabel generates this error
and V210 official release doesnt ?

I think you’re mistaken. The 210 official build is itself built in the same way as the white labels, so there’s no difference between them.

You’ll only see this happen when the device is cold booted by my reading of the error message you’ve reported.

Thanks Alex.

Rested now, indeed R210 causing this error.

R207 works fine.

OK thank you. I will raise an issue internally to investigate that.

In the interim, I’d suggest either running 210 and manually starting the app once the device has booted, or use 206. 207 has some issues with items being left on the screen once it has been running for some time.

Running now R207 - i have different problem with it then you’ve described,
Single layout is displayed, its duration is 20 seconds, after the last item i have black screen for ~24 seconds before the window with the 20s items is looping back.
tried to disable multiple decoders in the display settings also…

trying 206…

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.