Firefly开源社区

打印 上一主题 下一主题

[Android] ITX-3588J 改为auto版本后无法adb root

7

积分

0

威望

0

贡献

吃瓜的群众

积分
7

ITX-3588J 改为auto版本后无法adb root

发表于 2023-3-16 15:58:44      浏览:5329 | 回复:2        打印      只看该作者   [复制链接] 楼主
  • 固件类型: 自行编译的固件
  • SDK包名称: rk3588_firefly_itx_3588j/Android12.0/V1.0.23031615
  • SDK更新到哪个COMMIT: 0000-00-00 00:00:00
  • SDK修改内容: 增加Car相关
  • Log日志: log (2).txt
问题描述及复现步骤:
通过修改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:

log (2).txt

4.81 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

1183

积分

1

威望

3

贡献

官方团队

Rank: 9Rank: 9Rank: 9

积分
1183
发表于 2023-3-16 16:02:45        只看该作者  沙发
执行adb shell setprop persist.sys.root_access 3

相关wiki
https://wiki.t-firefly.com/zh_CN ... on.html#mo-ren-root
回复

使用道具 举报

7

积分

0

威望

0

贡献

吃瓜的群众

积分
7
发表于 2023-3-16 16:07:04        只看该作者  板凳
zhangzhenzhao 发表于 2023-3-16 16:02
执行adb shell setprop persist.sys.root_access 3

相关wiki

非非非非非常感谢,文档还没来得及好好看,早知道认真看文档了~
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表