All AIR apps crash in Android Q Beta
We've just discovered that all apps made with AIR crash immediately after launch in Android Q Beta.
We've opened this bug: Tracker AIR-4198820
This is very serious as it affects all apps, including existing ones from Play Store. They all install fine, but crash at launch each and every time. We've created a simple Hello World (Test.apk - Google Drive ) which shows the same crash. It's compiled with AIR SDK 32, Captive Runtime.
In the logs we can see "java.lang.SecurityException: MODE_WORLD_READABLE no longer supported" originating in libCore.so. Here is a relevant section from the stack trace:
04-05 15:15:45.186 20701 20701 W x.tropictrouble: type=1400 audit(0.0:1370): avc: denied { execmod } for path="/data/app/air.com.qublix.tropictrouble--0Aw4mMbpjDczNwHpL5dEw==/lib/arm/libCore.so" dev="dm-6" ino=10917 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:apk_data_file:s0 tclass=file permissive=0
04-05 15:15:45.255 20701 20701 W System.err: java.lang.SecurityException: MODE_WORLD_READABLE no longer supported
04-05 15:15:45.255 20701 20701 W System.err: at android.app.ContextImpl.checkMode(ContextImpl.java:2608)
04-05 15:15:45.255 20701 20701 W System.err: at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:445)
04-05 15:15:45.255 20701 20701 W System.err: at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:435)
04-05 15:15:45.255 20701 20701 W System.err: at com.adobe.air.AIRSharedPref.getConfigData(AIRSharedPref.java:113)
04-05 15:15:45.255 20701 20701 W System.err: at com.adobe.air.Entrypoints.EntryMainWrapper(Native Method)
04-05 15:15:45.255 20701 20701 W System.err: at com.adobe.air.Entrypoints.EntryMain(Entrypoints.java:139)
04-05 15:15:45.255 20701 20701 W System.err: at com.adobe.air.AndroidActivityWrapper.LaunchApplication(AndroidActivityWrapper.java:1167)
04-05 15:15:45.255 20701 20701 W System.err: at com.adobe.air.AndroidActivityWrapper.onSurfaceInitialized(AndroidActivityWrapper.java:1416)
04-05 15:15:45.255 20701 20701 W System.err: at com.adobe.air.AIRWindowSurfaceView.surfaceChanged(AIRWindowSurfaceView.java:792)
04-05 15:15:45.255 20701 20701 W System.err: at android.view.SurfaceView.updateSurface(SurfaceView.java:737)
....
04-05 15:15:45.256 20701 20701 F libc : Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xbf767000 in tid 20701 (x.tropictrouble), pid 20701 (x.tropictrouble)
04-05 15:15:45.281 20740 20740 I crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstone
04-05 15:15:45.282 1019 1019 I /system/bin/tombstoned: received crash request for pid 20701
04-05 15:15:45.282 20740 20740 I crash_dump32: performing dump of process 20701 (target tid = 20701)
04-05 15:15:45.289 20740 20740 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
If not fixed in time this is a total show-stopper for Adobe AIR on Android, next to the other pending show-stopper Tracker AIR-4198789
Hopefully Adobe can do a quick-fix on this one.
Any ideas for a workaround?
