ITX-3588J 改为auto版本后无法adb root
通过修改device/rockchip/rk3588/rk3588_firefly_itx_3588j/rk3588_firefly_itx_3588j.mk的make file,成功将Car相关合了进来,并且启动界面确实是Car launcher,可是当我adb root时提示:root access is disabled by system setting - enable in settings -> development options
想问一下adb root的开启与否与配置有关系吗,按道理我没有改动这块儿代码,但是无法adb root,adb root时提示我在开发者选项中打开当我打开时,又出现如下错误:
03-16 07:53:40.681 20975 20975 D AndroidRuntime: Shutting down VM
03-16 07:53:40.684 20975 20975 E AndroidRuntime: FATAL EXCEPTION: main
03-16 07:53:40.684 20975 20975 E AndroidRuntime: Process: com.android.car.settings, PID: 20975
03-16 07:53:40.684 20975 20975 E AndroidRuntime: java.lang.IllegalArgumentException: Unknown component: ComponentInfo{com.android.car.developeroptions/com.android.car.developeroptions.CarDevelopmentSettingsDashboardActivity}
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at android.os.Parcel.createExceptionOrNull(Parcel.java:2430)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at android.os.Parcel.createException(Parcel.java:2410)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2393)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2335)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at android.content.pm.IPackageManager$Stub$Proxy.getComponentEnabledSetting(IPackageManager.java:7277)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at android.app.ApplicationPackageManager.getComponentEnabledSetting(ApplicationPackageManager.java:2832)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at com.android.car.settings.development.DevelopmentSettingsUtil.isDeveloperOptionsModuleEnabled(DevelopmentSettingsUtil.java:80)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at com.android.car.settings.system.DeveloperOptionsEntryPreferenceController.handlePreferenceClicked(DeveloperOptionsEntryPreferenceController.java:84)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at com.android.car.settings.system.DeveloperOptionsEntryPreferenceController.handlePreferenceClicked(DeveloperOptionsEntryPreferenceController.java:37)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at com.android.car.settings.common.PreferenceController.lambda$setPreference$1$PreferenceController(PreferenceController.java:228)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at com.android.car.settings.common.PreferenceController$$ExternalSyntheticLambda1.onPreferenceClick(Unknown Source:2)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at androidx.preference.Preference.performClick(Preference.java:1186)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at com.android.car.ui.preference.CarUiPreference.performClick(CarUiPreference.java:134)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at androidx.preference.Preference.performClick(Preference.java:1168)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at androidx.preference.Preference$1.onClick(Preference.java:181)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at android.view.View.performClick(View.java:7455)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at android.view.View.performClickInternal(View.java:7432)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at android.view.View.access$3700(View.java:835)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at android.view.View$PerformClick.run(View.java:28810)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:938)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:201)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at android.os.Looper.loop(Looper.java:288)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7870)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: Caused by: android.os.RemoteException: Remote stack trace:
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at com.android.server.pm.PackageManagerService.getComponentEnabledSettingInternal(PackageManagerService.java:24714)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at com.android.server.pm.PackageManagerService.getComponentEnabledSetting(PackageManagerService.java:24697)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:3338)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:8907)
03-16 07:53:40.684 20975 20975 E AndroidRuntime: at android.os.Binder.execTransactInternal(Binder.java:1184)
03-16 07:53:40.684 20975 20975 E AndroidRuntime:
执行adb shell setprop persist.sys.root_access 3
相关wiki
https://wiki.t-firefly.com/zh_CN/Firefly-Android-Manual/system_customization.html#mo-ren-root zhangzhenzhao 发表于 2023-3-16 16:02
执行adb shell setprop persist.sys.root_access 3
相关wiki
非非非非非常感谢,文档还没来得及好好看,早知道认真看文档了~
页:
[1]