使用Android O在Samsung设备上即时应用崩溃

时间:2018-03-16 06:21:23

标签: android samsung-mobile android-instant-apps

我在三星设备上运行即时应用时遇到了崩溃问题,这是崩溃日志:

  Fatal Exception: java.lang.SecurityException: Setting aod_show_state is not accessible from ephemeral package xx.xx.xx
         at android.os.Parcel.readException(Parcel.java:1958)
         at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)
         at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
         at android.content.ContentProviderProxy.call(ContentProviderNative.java:651)
         at android.provider.Settings$NameValueCache.getStringForUser(Settings.java:1923)
         at android.provider.Settings$System.getStringForUser(Settings.java:2229)
         at android.provider.Settings$System.getIntForUser(Settings.java:2299)
         at android.provider.Settings$System.getInt(Settings.java:2294)
         at android.view.ViewRootImpl$1.toViewScreenState(ViewRootImpl.java:1363)
         at android.view.ViewRootImpl$1.onDisplayChanged(ViewRootImpl.java:1319)
         at android.hardware.display.DisplayManagerGlobal$DisplayListenerDelegate.handleMessage(DisplayManagerGlobal.java:966)
         at android.os.Handler.dispatchMessage(Handler.java:105)
         at android.os.Looper.loop(Looper.java:164)
         at android.app.ActivityThread.main(ActivityThread.java:6938)
         at java.lang.reflect.Method.invoke(Method.java)
         at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)

似乎正在尝试访问aod_show_state设置(这是三星设备上名为“始终在线显示”的特定功能),并且需要权限WRITE_SETTINGS / WRITE_SECURE_SETTINGS,以及即时应用程序不支持这两个权限,然后应用程序崩溃......

有什么方法可以解决这个问题吗?

0 个答案:

没有答案