donghi 发布的帖子
发布在 bug、问题、建议 阅读更多

已经给了存储权限,但是创建文件或文件夹会提示失败。系统为鸿蒙系统。希望能够解决😁

发布在 bug、问题、建议 阅读更多

复制的报错信息为:
手机型号为荣耀8x ,系统为鸿蒙2.0
Version: 601
Android: 29
java.lang.SecurityException: getUniqueDeviceId: The user 10144 does not meet the requirements to access device identifiers.
android.os.Parcel.createException(Parcel.java:2090)
android.os.Parcel.readException(Parcel.java:2058)
android.os.Parcel.readException(Parcel.java:2006)
com.android.internal.telephony.IHwTelephony$Stub$Proxy.getUniqueDeviceId(IHwTelephony.java:3173)
android.telephony.HwTelephonyManagerInner.getUniqueDeviceId(HwTelephonyManagerInner.java:1750)
android.telephony.HwTelephonyManagerInnerUtils.getUniqueDeviceId(HwTelephonyManagerInnerUtils.java:71)
android.telephony.HwInnerTelephonyManagerImpl.getUniqueDeviceId(HwInnerTelephonyManagerImpl.java:361)
android.telephony.TelephonyManager.getDeviceId(TelephonyManager.java:1670)
org.autojs.autojs.ui.main.drawer.DrawerFragment.getIMEI(DrawerFragment.java:365)
org.autojs.autojs.ui.main.drawer.DrawerFragment.inputRemoteHost(DrawerFragment.java:384)
org.autojs.autojs.ui.main.drawer.DrawerFragment.connectOrDisconnectToRemote(DrawerFragment.java:308)
org.autojs.autojs.ui.main.drawer.DrawerFragment$$ExternalSyntheticLambda7.onClick(Unknown Source:2)
org.autojs.autojs.ui.main.drawer.DrawerMenuItem.performAction(DrawerMenuItem.java:87)
org.autojs.autojs.ui.main.drawer.DrawerMenuItemViewHolder.onClick(DrawerMenuItemViewHolder.java:105)
org.autojs.autojs.ui.main.drawer.DrawerMenuItemViewHolder.lambda$new$0$org-autojs-autojs-ui-main-drawer-DrawerMenuItemViewHolder(DrawerMenuItemViewHolder.java:51)
org.autojs.autojs.ui.main.drawer.DrawerMenuItemViewHolder$$ExternalSyntheticLambda1.onCheckedChanged(Unknown Source:2)
org.autojs.autojs.ui.widget.SwitchCompat.lambda$setOnCheckedChangeListener$0$org-autojs-autojs-ui-widget-SwitchCompat(SwitchCompat.java:33)
org.autojs.autojs.ui.widget.SwitchCompat$$ExternalSyntheticLambda0.onCheckedChanged(Unknown Source:4)
android.widget.CompoundButton.setChecked(CompoundButton.java:186)
androidx.appcompat.widget.SwitchCompat.setChecked(SwitchCompat.java:1162)
org.autojs.autojs.ui.widget.PrefSwitch.setChecked(PrefSwitch.java:89)
androidx.appcompat.widget.SwitchCompat.toggle(SwitchCompat.java:1157)
android.widget.CompoundButton.performClick(CompoundButton.java:146)
android.view.View.performClickInternal(View.java:7286)
android.view.View.access$3600(View.java:838)
android.view.View$PerformClick.run(View.java:28242)
android.os.Handler.handleCallback(Handler.java:900)
android.os.Handler.dispatchMessage(Handler.java:103)
android.os.Looper.loop(Looper.java:219)
android.app.ActivityThread.main(ActivityThread.java:8668)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109)