Android Question How to temporarily fix "Only fullscreen opaque activities can request orientation"

fredo

Well-Known Member
Licensed User
Longtime User
For certain reasons, the targetSdk version of an app was set to 29 and uploaded to the Playstore. Since the app is already rolled out, this cannot be set to a lower level without considerable effort.

In the pre-launch report of the Google Play console, Android 8.0 devices issue the following message:
java.lang.RuntimeException: Unable to start activity ComponentInfo{a....f.main}:
java.lang.IllegalStateException: Only fullscreen opaque activities can request orientation

FATAL EXCEPTION: main
Process: a1.recommended.by.staff, PID: 13801
java.lang.RuntimeException: Unable to start activity ComponentInfo{a....f.main}: java.lang.IllegalStateException: Only fullscreen opaque activities can request orientation
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2822)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2897)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1598)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:251)
at android.app.ActivityThread.main(ActivityThread.java:6572)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
Caused by: java.lang.IllegalStateException: Only fullscreen opaque activities can request orientation
at android.app.Activity.onCreate(Activity.java:986)
at a1.recommended.by.staff.main.onCreate(main.java:35)
at android.app.Activity.performCreate(Activity.java:6975)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2775)
... 9 more

08-21 00:26:24.504: W/ADebug(11472): Failed to get property persist.sys.media.traces
08-21 00:26:24.514: D/AndroidRuntime(11472): >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
08-21 00:26:24.628: D/AndroidRuntime(11472): Calling main entry com.android.commands.pm.Pm
08-21 00:26:24.641: E/asset(11482): setgid: Operation not permitted
08-21 00:26:24.802: I/ActivityManager(1524): Start proc 11484:com.android.defcontainer/u0a32 for service com.android.defcontainer/.DefaultContainerService
08-21 00:26:24.847: D/CompatibilityInfo(1524): mCompatibilityFlags - 0
08-21 00:26:24.847: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:24.847: D/CompatibilityInfo(1524): applicationScale - 1.0
08-21 00:26:24.852: D/CompatibilityInfo(1524): mCompatibilityFlags - 0
08-21 00:26:24.852: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:24.852: D/CompatibilityInfo(1524): applicationScale - 1.0
08-21 00:26:24.902: I/PackageManager.DexOptimizer(1524): Running dexopt (dexoptNeeded=1) on: /data/app/vmdl2115458728.tmp/base.apk pkg=com.google.android.gms.policy_test_support isa=arm64 dexoptFlags=boot_complete,public target-filter=quicken oatDir=/data/app/vmdl2115458728.tmp/oat sharedLibraries=null
08-21 00:26:24.956: I/dex2oat(11500): /system/bin/dex2oat --input-vdex-fd=-1 --output-vdex-fd=16 --compiler-filter=quicken --classpath-dir=/data/app/vmdl2115458728.tmp
08-21 00:26:25.352: I/dex2oat(11500): dex2oat took 397.922ms (971.411ms cpu) (threads: 8) arena alloc=31KB (32168B) java alloc=1737KB (1778960B) native alloc=2MB (2662040B) free=2MB (3105128B)
08-21 00:26:25.352: I/dex2oat(11500): [ 08-21 00:26:25.785 1090: 1648 E/ ]
08-21 00:26:25.352: I/dex2oat(11500): Couldn't opendir /data/app/vmdl2115458728.tmp: No such file or directory
08-21 00:26:25.785: E/installd(1090): Failed to delete /data/app/vmdl2115458728.tmp: No such file or directory
08-21 00:26:25.786: I/Pm(11472): Package com.google.android.gms.policy_test_support installed in 1152 ms
08-21 00:26:25.789: D/CompatibilityInfo(1524): mCompatibilityFlags - 10
08-21 00:26:25.789: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:25.789: D/CompatibilityInfo(1524): applicationScale - 1.0
08-21 00:26:25.792: D/PackageInstaller(1524): Ignoring abandon after commit relinquished control
08-21 00:26:25.793: I/app_process(11472): System.exit called, status: 0
08-21 00:26:25.793: I/AndroidRuntime(11472): VM exiting with result code 0.
08-21 00:26:25.803: I/Finsky(6262): [2] com.google.android.finsky.packagemanager.impl.PackageMonitorReceiverImpl.a(4): PackageMonitor received: android.intent.action.PACKAGE_ADDED
08-21 00:26:25.808: I/Finsky(6262): [2] xwi.a(11): Do not start WearSupportService due to Wear service optimization
08-21 00:26:25.811: D/CompatibilityInfo(1524): mCompatibilityFlags - 0
08-21 00:26:25.811: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:25.812: I/Finsky(6262): [2] xwi.a(11): Do not start WearSupportService due to Wear service optimization
08-21 00:26:25.812: D/CompatibilityInfo(1524): applicationScale - 1.0
08-21 00:26:25.820: I/InputReader(1524): Reconfiguring input devices. changes=0x00000010
08-21 00:26:25.824: D/CompatibilityInfo(1524): mCompatibilityFlags - 0
08-21 00:26:25.824: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:25.824: D/CompatibilityInfo(1524): applicationScale - 1.0
08-21 00:26:25.827: W/ResourceType(1524): ResTable_typeSpec entry count inconsistent: given 541, previously 540
08-21 00:26:25.827: W/ResourceType(1524): ResTable_typeSpec entry count inconsistent: given 366, previously 1421
08-21 00:26:25.827: W/ResourceType(1524): ResTable_typeSpec entry count inconsistent: given 215, previously 1170
08-21 00:26:25.829: I/Finsky(6262): [161] meb.run(2): Cleaning dev-triggered-update data on package install for com.google.android.gms.policy_test_support.
08-21 00:26:25.834: I/Finsky(6262): [163] med.run(2): Finished dev-triggered-update cleaning.
08-21 00:26:25.852: E/PacketFilter(1524): combine fail
08-21 00:26:25.854: I/Finsky(6262): [2] otm.c(2): Frosting ID looked up on UI thread. Caller should move to a background thread.
08-21 00:26:25.856: D/CompatibilityInfo(1524): mCompatibilityFlags - 10
08-21 00:26:25.856: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:25.856: D/CompatibilityInfo(1524): applicationScale - 1.0
08-21 00:26:25.862: D/CompatibilityInfo(1524): mCompatibilityFlags - 10
08-21 00:26:25.862: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:25.862: D/CompatibilityInfo(1524): applicationScale - 1.0
08-21 00:26:25.863: D/CompatibilityInfo(1524): mCompatibilityFlags - 0
08-21 00:26:25.863: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:25.863: D/CompatibilityInfo(1524): applicationScale - 1.0
08-21 00:26:25.865: W/BroadcastQueue(1524): Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.google.android.gms.policy_test_suppo
rt flg=0x4000010 (has extras) } to com.android.vending/com.google.android.finsky.packagemanager.impl.PackageMonitorReceiverImpl$RegisteredReceiver
08-21 00:26:25.874: W/ResourceType(1524): ResTable_typeSpec entry count inconsistent: given 30, previously 36
08-21 00:26:25.875: W/ResourceType(1524): ResTable_typeSpec entry count inconsistent: given 30, previously 36
08-21 00:26:25.876: W/ResourceType(1524): ResTable_typeSpec entry count inconsistent: given 3445, previously 3461
08-21 00:26:25.876: W/ResourceType(1524): ResTable_typeSpec entry count inconsistent: given 2146, previously 2143
08-21 00:26:25.876: W/ResourceType(1524): ResTable_typeSpec entry count inconsistent: given 268, previously 1504
08-21 00:26:25.877: I/Finsky(6262): [162] otl.run(16): Wrote row to frosting DB: 80102
08-21 00:26:25.880: I/ActivityManager(1524): Start proc 11524:com.facebook.system/u0a81 for broadcast com.facebook.system/com.facebook.oxygen.installer.service.PackageReceiver
08-21 00:26:25.885: D/CarrierSvcBindHelper(2007): No carrier app for: 0
08-21 00:26:25.892: W/ResourceType(1524): ResTable_typeSpec entry count inconsistent: given 28, previously 64
08-21 00:26:25.892: W/ResourceType(1524): ResTable_typeSpec entry count inconsistent: given 1, previously 21
08-21 00:26:25.892: W/ResourceType(1524): ResTable_typeSpec entry count inconsistent: given 2334, previously 2336
08-21 00:26:25.892: W/ResourceType(1524): ResTable_typeSpec entry count inconsistent: given 1, previously 235
08-21 00:26:25.892: W/ResourceType(1524): ResTable_typeSpec entry count inconsistent: given 1, previously 235
08-21 00:26:25.892: W/ResourceType(1524): ResTable_typeSpec entry count inconsistent: given 28, previously 64
08-21 00:26:25.892: W/ResourceType(1524): ResTable_typeSpec entry count inconsistent: given 1, previously 21
08-21 00:26:25.892: W/ResourceType(1524): ResTable_typeSpec entry count inconsistent: given 2334, previously 2336
08-21 00:26:25.892: W/ResourceType(1524): ResTable_typeSpec entry count inconsistent: given 1, previously 235
08-21 00:26:25.892: W/ResourceType(1524): ResTable_typeSpec entry count inconsistent: given 308, previously 687
08-21 00:26:25.892: W/ResourceType(1524): ResTable_typeSpec entry count inconsistent: given 605, previously 610
08-21 00:26:25.892: W/ResourceType(1524): ResTable_typeSpec entry count inconsistent: given 24, previously 970
08-21 00:26:25.892: W/ResourceType(1524): ResTable_typeSpec entry count inconsistent: given 164, previously 666
08-21 00:26:25.893: W/ResourceType(1524): For resource 0x7f1500e8, entry index(232) is beyond type entryCount(1)
08-21 00:26:25.896: I/Telecom(1524): DefaultDialerCache: Refreshing default dialer for user 0: now com.sonymobile.android.dialer: DDC.oR@AIo
08-21 00:26:25.899: E/VvmPkgInstalledRcvr(2007): cannot create TelephonyManager from ComponentInfo{com.android.phone/com.android.services.telephony.TelephonyConnectionService}, [****], UserHandle{0}
08-21 00:26:25.901: D/ImsResolver(2007): maybeAddedImsService, packageName: com.google.android.gms.policy_test_support
08-21 00:26:25.901: I/zygote64(9903): Deoptimizing dzg dzg.a(int, android.content.Context, java.lang.String, java.lang.Class) due to JIT inline cache
08-21 00:26:25.902: D/CarrierConfigLoader(2007): mHandler: 9 phoneId: 0
08-21 00:26:25.905: D/CompatibilityInfo(1524): mCompatibilityFlags - 0
08-21 00:26:25.905: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:25.905: D/CompatibilityInfo(1524): applicationScale - 1.0
08-21 00:26:25.912: D/RegisteredServicesCache(2556): Reading service state data always from file
08-21 00:26:25.912: D/RegisteredServicesCache(2556): ServiceStateFileVersion=1.0
08-21 00:26:25.912: E/RegisteredServicesCache(2556): Next Tag=services
08-21 00:26:25.913: E/RegisteredServicesCache(2556): 1invalidateCache:WriteServiceStateToFile
08-21 00:26:25.913: E/RegisteredServicesCache(2556): Writing service state Data Always
08-21 00:26:25.924: D/RegisteredNfcFServicesCache(2556): Service unchanged, not updating
08-21 00:26:25.933: D/CompatibilityInfo(1524): mCompatibilityFlags - 10
08-21 00:26:25.933: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:25.934: D/CompatibilityInfo(1524): applicationScale - 1.0
08-21 00:26:25.937: D/CompatibilityInfo(1524): mCompatibilityFlags - 10
08-21 00:26:25.937: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:25.937: D/CompatibilityInfo(1524): applicationScale - 1.0
08-21 00:26:25.937: I/zygote64(1524): Background concurrent copying GC freed 270198(11MB) AllocSpace objects, 34(896KB) LOS objects, 42% free, 23MB/41MB, paused 757us total 151.505ms
08-21 00:26:25.986: W/BroadcastQueue(1524): Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.google.android.gms.policy_test_support flg=0x4000010 (has extras) } to com.google.android.gms/.games.chimera.GamesSystemBroadcastReceiverProxy
08-21 00:26:25.987: W/BroadcastQueue(1524): Background execution not allowed: r
eceiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.google.android.gms.policy_test_support flg=0x4000010 (has extras) } to com.google.android.gms/.gass.chimera.PackageChangeBroadcastReceiver
08-21 00:26:25.987: W/BroadcastQueue(1524): Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.google.android.gms.policy_test_support flg=0x4000010 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
08-21 00:26:25.987: W/BroadcastQueue(1524): Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.google.android.gms.policy_test_support flg=0x4000010 (has extras) } to com.google.android.googlequicksearchbox/com.google.android.apps.gsa.googlequicksearchbox.GelStubAppWatcher
08-21 00:26:25.987: W/BroadcastQueue(1524): Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.google.android.gms.policy_test_support flg=0x4000010 (has extras) } to com.google.android.ims/.receivers.RcsAutoStartReceiver
08-21 00:26:25.989: I/Finsky(6262): [2] rmx.b(5): Jobs in database: 1-1337 12-1 24-77777777 26-1414141414
08-21 00:26:25.999: I/Finsky(6262): [2] rjy.a(59): ConstraintMapping: 24-77777777, -> L: 0ms, D: 37406699ms, C: false, I: true, N: 0
08-21 00:26:25.999: I/Finsky(6262): [2] rjy.a(59): ConstraintMapping: 1-1337, 12-1, -> L: 14876ms, D: 83996820ms, C: false, I: false, N: 1
08-21 00:26:26.000: I/Finsky(6262): [2] rjy.a(59): ConstraintMapping: 26-1414141414, -> L: 28960996ms, D: 29860996ms, C: false, I: false, N: 0
08-21 00:26:26.008: I/ActivityManager(1524): Start proc 11558:com.sonymobile.entrance/u0a85 for broadcast com.sonymobile.entrance/.logging.PackageInstallationReceiver
08-21 00:26:26.010: W/zygote(11558): Using default instruction set features for ARM CPU variant (cortex-a9) using conservative defaults
08-21 00:26:26.012: I/Finsky(6262): [2] com.google.android.finsky.scheduler.JobSchedulerEngine.a(45): Cancelling existing jobscheduler jobs: 9002 9001 9000
08-21 00:26:26.013: I/Finsky(6262): [2] com.google.android.finsky.scheduler.JobSchedulerEngine.a(1): Scheduling job Id: 9003, L: 0, D: 37406699, C: false, I: true, N: 0
08-21 00:26:26.015: I/Finsky(6262): [2] com.google.android.finsky.scheduler.JobSchedulerEngine.a(1): Scheduling job Id: 9004, L: 14876, D: 83996820, C: false, I: false, N: 1
08-21 00:26:26.017: I/Finsky(6262): [2] com.google.android.finsky.scheduler.JobSchedulerEngine.a(1): Scheduling job Id: 9005, L: 28960996, D: 29860996, C: false, I: false, N: 0
08-21 00:26:26.025: D/CompatibilityInfo(1524): mCompatibilityFlags - 10
08-21 00:26:26.025: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:26.025: D/CompatibilityInfo(1524): applicationScale - 1.0
08-21 00:26:26.029: D/CompatibilityInfo(1524): mCompatibilityFlags - 10
08-21 00:26:26.029: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:26.029: D/CompatibilityInfo(1524): applicationScale - 1.0
08-21 00:26:26.045: I/zygote64(2688): ThreadFlipBegin blocked for 11.742ms
08-21 00:26:26.053: I/zygote(6262): Do full code cache collection, code=253KB, data=183KB
08-21 00:26:26.054: I/zygote(6262): After code cache collection, code=194KB, data=125KB
08-21 00:26:26.102: W/AdvertisingIdClient(11558): Error while reading from SharedPreferences
08-21 00:26:26.102: W/AdvertisingIdClient(11558): java.lang.SecurityException: MODE_WORLD_READABLE no longer supported
08-21 00:26:26.102: W/AdvertisingIdClient(11558): at android.app.ContextImpl.checkMode(ContextImpl.java:2392)
08-21 00:26:26.102: W/AdvertisingIdClient(11558): at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:383)
08-21 00:26:26.102: W/AdvertisingIdClient(11558): at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:370)
08-21 00:26:26.102: W/AdvertisingIdClient(11558): at com.google.android.gms.ads.identifier.AdvertisingIdClient.getAdvertisingIdInfo(Unknown Source:13)
08-21 00:26:26.102: W/AdvertisingIdClient(11558): at com.google.android.gms.tagmanager.zza$1.zzOv(Unknown Source:7)
08-21 00:26:26.102: W/AdvertisingIdClient(11558): at com.google.android.gms.tagmanager.zza.zzOu(Unknown Source:9)
08-21 00:26:26.102: W/AdvertisingIdClient(11558): at com.google.android.gms.tagmanager.zza.zzb(Unknown Source:0)
08-21 00:26:26.102: W/AdvertisingIdClient(11558): at com.google.android.gms.tagmanager.zza$2.run(Unknown Source:2)
08-21 00:26:26.102: W/AdvertisingIdClient(11558): at java.lang.Thread.run(Thread.java:764)
08-21 00:26:26.104: D/CompatibilityInfo(1524): mCompatibilityFlags - 10
08-21 00:26:26.104: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:26.104: D/CompatibilityInfo(1524): applicationScale - 1.0
08-21 00:26:26.105: D/CompatibilityInfo(1524): mCompatibilityFlags - 10
08-21 00:26:26.105: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:26.105: D/CompatibilityInfo(1524): applic
ationScale - 1.0
08-21 00:26:26.106: I/GAv4(11558): Google Analytics 10.0.84 is starting up. To enable debug logging on a device run:
08-21 00:26:26.106: I/GAv4(11558): adb shell setprop log.tag.GAv4 DEBUG
08-21 00:26:26.106: I/GAv4(11558): adb logcat -s GAv4
08-21 00:26:26.107: D/CompatibilityInfo(1524): mCompatibilityFlags - 10
08-21 00:26:26.107: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:26.107: D/CompatibilityInfo(1524): applicationScale - 1.0
08-21 00:26:26.108: D/CompatibilityInfo(1524): mCompatibilityFlags - 10
08-21 00:26:26.108: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:26.108: D/CompatibilityInfo(1524): applicationScale - 1.0
08-21 00:26:26.111: D/CompatibilityInfo(1524): mCompatibilityFlags - 10
08-21 00:26:26.111: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:26.111: D/CompatibilityInfo(1524): applicationScale - 1.0
08-21 00:26:26.112: D/CompatibilityInfo(1524): mCompatibilityFlags - 10
08-21 00:26:26.112: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:26.112: D/CompatibilityInfo(1524): applicationScale - 1.0
08-21 00:26:26.145: D/CompatibilityInfo(1524): mCompatibilityFlags - 0
08-21 00:26:26.145: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:26.145: D/CompatibilityInfo(1524): applicationScale - 1.0
08-21 00:26:26.153: W/GAv4(11558): CampaignTrackingReceiver is not registered, not exported or is disabled. Installation campaign tracking is not possible. See http://goo.gl/8Rd3yj for instructions.
08-21 00:26:26.176: E/GoogleTagManager(11558): Invalid macro: _gtm.loadEventEnabled
08-21 00:26:26.185: E/GoogleTagManager(11558): Invalid macro: _gtm.loadEventEnabled
08-21 00:26:26.212: D/CompatibilityInfo(1524): mCompatibilityFlags - 0
08-21 00:26:26.212: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:26.212: D/CompatibilityInfo(1524): applicationScale - 1.0
08-21 00:26:26.235: W/ADebug(11573): Failed to get property persist.sys.media.traces
08-21 00:26:26.244: D/AndroidRuntime(11573): >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
08-21 00:26:26.271: E/DowngradeHelper(9903): isModuleDowngradeRequired false
08-21 00:26:26.271: E/ConfigFileUtils(9903): Failed to read config file: /data/user_de/0/com.google.android.gms/app_chimera/current_modules_init.pb (No such file or directory)
08-21 00:26:26.303: W/BroadcastQueue(1524): Background execution not allowed: receiving Intent { act=com.google.android.chimera.MODULE_CONFIGURATION_CHANGED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentInternalReceiver
08-21 00:26:26.311: I/ChimeraCfgMgr(9903): Sending com.google.android.chimera.IntentOperation.NEW_MODULE Intents: 1,false,true
08-21 00:26:26.312: D/CompatibilityInfo(1524): mCompatibilityFlags - 0
08-21 00:26:26.312: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:26.312: D/CompatibilityInfo(1524): applicationScale - 1.0
08-21 00:26:26.321: D/CompatibilityInfo(1524): mCompatibilityFlags - 0
08-21 00:26:26.321: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:26.322: D/CompatibilityInfo(1524): applicationScale - 1.0
08-21 00:26:26.329: I/Auth(9903): [SupervisedAccountIntentOperation] onHandleIntent(): android.intent.action.PACKAGE_ADDED
08-21 00:26:26.331: D/CompatibilityInfo(1524): mCompatibilityFlags - 0
08-21 00:26:26.331: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:26.331: D/CompatibilityInfo(1524): applicationScale - 1.0
08-21 00:26:26.333: I/ChromeSync(9903): [Sync,SyncIntentOperation] Handling the intent: Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.google.android.gms.policy_test_support flg=0x4000010 cmp=com.google.android.gms/.chimera.GmsIntentOperationService (has extras) }.
08-21 00:26:26.341: I/Auth(9903): [SupervisedAccountIntentOperation] This operation is disabled
08-21 00:26:26.341: W/zygote64(9903): Skipping duplicate class check due to unrecognized classloader
08-21 00:26:26.342: D/AndroidRuntime(11573): Calling main entry com.android.commands.pm.Pm
08-21 00:26:26.362: E/asset(11603): setgid: Operation not permitted
08-21 00:26:26.370: I/AppsUpload(9903): Received intent with action android.intent.action.PACKAGE_ADDED
08-21 00:26:26.385: D/CompatibilityInfo(1524): mCompatibilityFlags - 0
08-21 00:26:26.385: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:26.385: D/CompatibilityInfo(1524): applicationScale - 1.0
08-21 00:26:26.429: D/CompatibilityInfo(1524): mCompatibilityFlags - 0
08-21 00:26:26.429: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:26.429: D/CompatibilityInfo(1524): applicationScale - 1.0
08-21 00:26:26.432: D/CompatibilityInfo(1524): mCompatibilityFlags - 0
08-21 00:26:26.432: D/CompatibilityInfo(1524): applicationDensity - 320
08-21 00:26:26.432: D/CompatibilityInfo(1524): applicationScale - 1.0
08-21 00:26:26.444: I/ChmraDebugLogger(9903): [46] ads_fdr:30,container:15090
08-21 00:26:26.451:
E/PhenotypeRegOp(9903): Attempting to overwrite config package for com.google.android.gms.car
08-21 00:26:26.460: I/TestSupport(9903): Activate: 1566198000000@1566372386429
08-21 00:26:26.460: I/TestSupport(9903): Boot time: 1566371389585
08-21 00:26:26.463: W/DynamiteModule(9903): Local module descriptor class for providerinstaller not found.
08-21 00:26:26.464: W/ProviderHelper(9903): Unknown dynamite feature providerinstaller
...

2019-08-21_13-39-01.jpg

When searching for a solution this useful site was found next to many nebulous hints from other sources:

2019-08-21_13-22-39.jpg

Since solution 3 is out of question and solution 1 ("Translucent=false" in Manifest) gave no improvement, an attempt with solution 2 brought the desired success:

2019-08-21_14-30-44.jpg

After commenting out the line "#SupportedOrientations" in main a new test run was successful.

2019-08-21_14-35-22.jpg


However, it is important to understand that this is not a final solution, as the line "#SupportedOrientations: portrait" is necessary and represents a reasonable setting.

If someone has successfully found a valid method, I would like to test it with my setup and use it if applicable.
 

fredo

Well-Known Member
Licensed User
Longtime User
Is your main activity a transparent activity?
It's not consciously set.

Related code in Manifest:
B4X:
CreateResource(values-v20, theme.xml,
<resources>
    <style name="LightTheme" parent="@android:style/Theme.Material.Light.NoActionBar.Fullscreen">
    
        <item name="colorAccent">#F7AC08</item>
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
        <item name="android:windowIsTranslucent">false</item>
        <item name="android:textColorPrimary">#ffffff</item>
        <item name="android:textColorSecondary">#ffffff</item>           
    
         <item name="android:colorPrimary">@color/actionbar</item>
         <item name="android:colorPrimaryDark">@color/statusbar</item>
         <item name="android:textColorPrimary">@color/textColorPrimary</item>
         <item name="android:navigationBarColor">@color/navigationBar</item>
    </style>
</resources>
)

CreateResource(values-v14, theme.xml,
<resources>
    <style name="LightTheme" parent="@android:style/Theme.Holo.Light.NoActionBar.Fullscreen">
        <item name="android:actionBarStyle">@style/CustomActionBarStyle</item>
    </style>
    <style name="CustomActionBarStyle" parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse">
        <item name="android:background">@color/actionbar</item>
    </style>
</resources>
)

Resulting AndroidManifest.xml in folder .\Objects:
2019-08-21_15-28-44.jpg
 
Upvote 0

fredo

Well-Known Member
Licensed User
Longtime User
There is an emulator available for Android 8 ...
Oops, I meant "At the moment there is no device or emulator for me with api 26".​

Ok, with an emulator from the Android Studio I can now reproduce the error locally, so that the test project will be quicker available.

Shutting down VM
FATAL EXCEPTION: main
Process: a...f, PID: 6119
java.lang.RuntimeException: Unable to start activity ComponentInfo{a...f/a...f.main}: java.lang.IllegalStateException: Only fullscreen opaque activities can request orientation
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2817)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
Caused by: java.lang.IllegalStateException: Only fullscreen opaque activities can request orientation
at android.app.Activity.onCreate(Activity.java:986)
at a...f.main.onCreate(main.java:35)
at android.app.Activity.performCreate(Activity.java:6975)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1213)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2770)
... 9 more
Deoptimizing java.lang.Object com.google.android.gms.measurement.internal.zzea.zza(java.lang.Object) due to JIT inline cache
Not supplying enough data to HAL, expected position 1081775 , only wrote 929520
File error accessing recents directory (directory doesn't exist?).
Failed to execute task.
java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask.get(FutureTask.java:206)
at com.crashlytics.android.core.CrashlyticsBackgroundWorker.submitAndWait(CrashlyticsBackgroundWorker.java:41)
at com.crashlytics.android.core.CrashlyticsController.handleUncaughtException(CrashlyticsController.java:321)
at com.crashlytics.android.core.CrashlyticsController$6.onUncaughtException(CrashlyticsController.java:301)
at com.crashlytics.android.core.CrashlyticsUncaughtExceptionHandler.uncaughtException(CrashlyticsUncaughtExceptionHandler.java:42)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1068)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1063)
at java.lang.Thread.dispatchUncaughtException(Thread.java:1953)
Force finishing activity a...f/.main
Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
Showing crash dialog for package a...f u0
Couldn't load memtrack module
failed to get memory consumption info: -1
gralloc_alloc: Creating ashmem region of size 380928
uid=1000(system) allocator@2.0-s identical 1 line
gralloc_alloc: Creating ashmem region of size 380928
eglMakeCurrent: 0xa99062e0: ver 2 0 (tinfo 0xa9957250)
Activity pause timeout for ActivityRecord{78a67da u0 a...f/.main t8 f}
Killing 4159:com.google.android.configupdater/u0a3 (adj 906): empty #17
 
Upvote 0

asales

Expert
Licensed User
Longtime User
I get this same error in Firebase, 100% in Android 8.0:
B4X:
Fatal Exception: java.lang.RuntimeException
Unable to start activity ComponentInfo{br.com.myprofile/br.com.myprofile.perfil}: java.lang.IllegalStateException: Only fullscreen opaque activities can request orientation

I don't made any change in this part of the code in my app, for several months ago and now this error is raised.

I use an transparent activity with this codes:

Manifest:
B4X:
SetActivityAttribute(Profile, android:theme, @style/Theme.Transparent)

Styles.xml
B4X:
<?xml version="1.0" encoding="utf-8"?>
<resources>
  <style name="Theme.Transparent" parent="android:Theme.Holo.Light">
    <item name="android:windowNoTitle">true</item>
    <item name="android:background">@android:color/transparent</item>
    <item name="android:windowBackground">@android:color/transparent</item>
    <item name="android:colorBackgroundCacheHint">@null</item>
    <item name="android:windowIsTranslucent">true</item>
    <item name="android:windowAnimationStyle">@android:style/Animation</item>
  </style>
</resources>
 
Upvote 0

asales

Expert
Licensed User
Longtime User
I would be interested if the error persists when you set

B4X:
<item name="android:windowIsTranslucent">false</item>
I do not have a device with Android 8.0 and I removed the transparency of the layout, which caused the error in Firebase. I will try to change this line in the other app that has less users.
 
Upvote 0

asales

Expert
Licensed User
Longtime User
I would be interested if the error persists when you set

B4X:
<item name="android:windowIsTranslucent">false</item>
To give an answer: yes, the error persists.
I tried in other app, that has the same issue int the firebase, and the problem remains.
 
Upvote 0
Top