找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 121|回复: 0

Android修改ro.debuggable

[复制链接]

2万

主题

135

回帖

13万

积分

管理员

积分
137739
发表于 2024-7-5 08:01:41 | 显示全部楼层 |阅读模式 IP:山东省临沂市 联通

登录后更精彩...O(∩_∩)O...

您需要 登录 才可以下载或查看,没有账号?立即注册

×
Android修改ro.debuggable


Android版本:8.0.0


结果:修改成功


用途:IDA 调试so,需要开启apk应用的debuggable=1

使用adb root报错“adbd cannot run as root in production builds”

步骤:

1.安装MagiskHide Props Config模块到面具

adb push MagiskHidePropsConf-v6.1.2.zip /data/local/tmp

在面具里安装这个模块


2.运行这个模块

adb shellsuprops
2.png

3.png



发现这里没有ro.debuggable这个属性,需要添加一个



2.png



New custom prop

Enter the prop to set. Example:
ro.sf.lcd_density

b - Go back
e - Exit

Enter your desired option: ro.debuggable

MagiskHide Props Config v6.1.2
by Didgeridoohan @ XDA Developers

=====================================
ro.debuggable

ro.debuggable is
one of the sensitive props that can be
set by the MagiskHide props option.

Are you sure you want to proceed?

y - Yes
n - No
e - Exit

Enter your desired option: y

MagiskHide Props Config v6.1.2
by Didgeridoohan @ XDA Developers

=====================================
ro.debuggable

Enter the value you want to set
ro.debuggable to,
or select from the options below.

The currently set value is:
0
Please enter the new value.

b - Go back
e - Exit

Enter your desired option: 1

MagiskHide Props Config v6.1.2
by Didgeridoohan @ XDA Developers

=====================================
ro.debuggable

This will set ro.debuggable to:

1

Pick an option below to change
what boot stage the prop will
be set in, or set/reset a delay:

1 - Default (current)
2 - post-fs-data
3 - late_start service
4 - Both boot stages
d - Delay

Do you want to continue?

Enter y(es), n(o), e(xit)
or an option from above: 4

MagiskHide Props Config v6.1.2
by Didgeridoohan @ XDA Developers

=====================================
ro.debuggable

This will set ro.debuggable to:

1

Pick an option below to change
what boot stage the prop will
be set in, or set/reset a delay:

1 - Default
2 - post-fs-data
3 - late_start service
4 - Both boot stages (current)
d - Delay

Do you want to continue?

Enter y(es), n(o), e(xit)
or an option from above: y

Working. Please wait...

Working. Please wait...

Working. Please wait...

Working. Please wait...

MagiskHide Props Config v6.1.2
by Didgeridoohan @ XDA Developers

=====================================
Reboot - ro.debuggable

Reboot for changes to take effect.

Do you want to reboot now (y/n)?

Enter y(es), n(o) or e(xit): y

Rebooting...
root@DebbieDavidson5646:# adb root
root@DebbieDavidson5646:# adb root
adbd is already running as root
root@DebbieDavidson5646:# adb root
adbd is already running as root
root@DebbieDavidson5646:#
'''

just set ro.debuggable to 1 then it's working

这时候 ro.debuggable就是1了,可以执行adb root


2.png


3.png



from:https://blog.csdn.net/bluedream21str/article/details/135613106








回复

使用道具 举报

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

本版积分规则

QQ|时间戳|加密|CTF WiKi|CTF平台汇总|CTF show|ctfhub|棱角安全|rutracker|攻防世界|php手册|peiqi文库|CyberChef|猫捉鱼铃|手机版|小黑屋|cn-sec|IOTsec-Zone|在线工具|分享屋 ( 鲁ICP备2021028754号 )

GMT+8, 2024-9-17 03:58

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表