最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

快速調試Android應用系統(tǒng)修改ro.debuggable屬性的兩種方式

 更新時間:2023年10月11日 08:30:48   作者:悖論  
這篇文章主要為大家介紹了快速調試Android應用系統(tǒng)修改ro.debuggable屬性的兩種方式,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進步,早日升職加薪

前言

幾乎所有應用市場中的 Android 應用,都處于非可調試狀態(tài)。如果我們需要調試 Android 應用,往往需要反編譯對應的 apk , 然后修改 apk 的 AndroidManifest.xml 中的 application 標簽,將android:debuggable 屬性設置為 true。然后進行回編譯

<application android:debuggable="true">
</application>

這樣做不僅麻煩,而且如果對應的 app 做了簽名校驗,可能會使 app 無法正常運行。

在 Android 系統(tǒng)中一個應用能否被調試是這樣判斷的: 當 android 啟動時,系統(tǒng)屬性 ro.debuggable 為1,系統(tǒng)中所有的程序都是可以調試的。如果系統(tǒng)中的 ro.debuggable 為 0, 則會判斷程序的 AndroidManifest.xml 中 application 標簽中的 android:debuggable 屬性是否為 true。

所以,我們可以通過修改 default.prop 文件中的 ro.debuggable 屬性來調試設備中的所有應用。

下面介紹二種修改 ro.debuggable 的方式

方式一(不推薦)

注入 init 進程,修改內存中的屬性值,只要init進程不重啟,這些屬性值就會生效。但是如果設備重啟,則修改的屬性值就失效。

前提:需要有 su 命令(root)

具體方法:

  • 在 Github 上搜索 mprop,下載對應的 mprop 工具
  • adb push ./mprop /data/local/tmp 將 mprop 推送到手機
  • adb shell 進入手機 shell
  • su 切換到 root
  • cd /data/local/tmp & chmod 777 ./mprop
  • ./mprop ro.debuggable 1

方式二 (推薦)

前提:需要先安裝 Magisk

具體方法:

  • 在 Github 上搜索 MagiskHidePropsConfig,下載對應的 MagiskHidePropsConfig 模塊
  • 在 Magisk 中安裝下載的 MagiskHidePropsConfig 模塊并開啟
  • adb shell
  • props
  • 輸入 5 ,Add/edit custom props
MagiskHide Props Config v6.1.2
by Didgeridoohan @ XDA Developers
=====================================
 Select an option below.
=====================================
1 - Edit device fingerprint
2 - Force BASIC key attestation
3 - Device simulation (disabled)
4 - Edit MagiskHide props (active)
5 - Add/edit custom props
6 - Delete prop values
7 - Script settings
8 - Collect logs
u - Perform module update check
r - Reset all options/settings
b - Reboot device
e - Exit
See the module readme or the
support thread @ XDA for details.
Enter your desired option: 5
  • 輸入 n, New custom prop
MagiskHide Props Config v6.1.2
by Didgeridoohan @ XDA Developers
=====================================
 Custom props
 Select an option below:
=====================================
Set or edit custom prop values for your device.
Currently no custom props set.
Please add one by selecting
"New custom prop" below.
n - New custom prop
b - Go back to main menu
e - Exit
See the module readme or the
support thread @ XDA for details.
Enter your desired option: n
  • 輸入 ro.debuggable
MagiskHide Props Config v6.1.2
by Didgeridoohan @ XDA Developers
=====================================
 New custom prop
=====================================
Enter the prop to set. Example:
ro.sf.lcd_density
b - Go back
e - Exit
Enter your desired option: ro.debuggable
  • 輸入 y
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
  • 輸入 1
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
  • 輸入 y
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: y
Working. Please wait...
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...

結語

通過上述兩種方式修改 ro.debuggable 的值后,在手機 shell 中輸入getprop ro.debuggble 應該會得到 1。此時我們就能愉快地調試手機上的所有 app 了。

以上就是Android搞機之打開系統(tǒng)調試總開關ro.debuggable的詳細內容,更多關于Android搞機之打開系統(tǒng)調試總開關ro.debuggable的資料請關注腳本之家其它相關文章!

相關文章

  • Android仿微信語音聊天功能

    Android仿微信語音聊天功能

    這篇文章主要介紹了Android仿微信語音聊天功能,很實用,文中示例代碼介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2015-12-12
  • Android編程實現(xiàn)的首頁左右滑動切換功能示例

    Android編程實現(xiàn)的首頁左右滑動切換功能示例

    這篇文章主要介紹了Android編程實現(xiàn)的首頁左右滑動切換功能,涉及Android事件監(jiān)聽及響應相關操作技巧,需要的朋友可以參考下
    2017-07-07
  • Android 登錄頁面的實現(xiàn)代碼(密碼顯示隱藏、EditText 圖標切換、限制輸入長度)

    Android 登錄頁面的實現(xiàn)代碼(密碼顯示隱藏、EditText 圖標切換、限制輸入長度)

    這篇文章主要介紹了Android 登錄頁面的實現(xiàn)代碼(密碼顯示隱藏、EditText 圖標切換、限制輸入長度),本文通過兩種方法給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下
    2020-08-08
  • Android編程實現(xiàn)異步消息處理機制的幾種方法總結

    Android編程實現(xiàn)異步消息處理機制的幾種方法總結

    這篇文章主要介紹了Android編程實現(xiàn)異步消息處理機制的幾種方法,結合實例形式詳細總結分析了Android異步消息處理機制的原理、相關實現(xiàn)技巧與操作注意事項,需要的朋友可以參考下
    2018-08-08
  • android自定義View實現(xiàn)跑馬燈效果

    android自定義View實現(xiàn)跑馬燈效果

    這篇文章主要為大家詳細介紹了android自定義View實現(xiàn)跑馬燈效果,實現(xiàn)連續(xù)滾動的效果,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2018-04-04
  • android 實現(xiàn)圓角圖片解決方案

    android 實現(xiàn)圓角圖片解決方案

    現(xiàn)在我們就來看看怎么樣把圖片的四角都變成圓形的,為什么要這樣做那,可能是為了美化界面吧,下面我們就來看看代碼吧
    2012-11-11
  • Android UI效果之繪圖篇(三)

    Android UI效果之繪圖篇(三)

    這篇文章主要介紹了Android UI效果之繪圖篇,針對Android開發(fā)中的UI效果設計模塊進行講解,感興趣的小伙伴們可以參考一下
    2016-02-02
  • Android SeekBar實現(xiàn)禁止滑動

    Android SeekBar實現(xiàn)禁止滑動

    這篇文章主要為大家詳細介紹了Android SeekBar實現(xiàn)禁止滑動,文中示例代碼介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2021-03-03
  • Android自定義view仿微信刷新旋轉小風車

    Android自定義view仿微信刷新旋轉小風車

    這篇文章主要介紹了Android自定義view仿微信刷新旋轉小風車,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2018-12-12
  • Android亮屏速度分析總結

    Android亮屏速度分析總結

    今天小編就為大家分享一篇關于Android亮屏速度分析總結,小編覺得內容挺不錯的,現(xiàn)在分享給大家,具有很好的參考價值,需要的朋友一起跟隨小編來看看吧
    2019-02-02

最新評論

西藏| 长白| 邵武市| 盐津县| 汪清县| 商都县| 萝北县| 武定县| 共和县| 柳江县| 重庆市| 六盘水市| 中宁县| 右玉县| 墨竹工卡县| 修武县| 宁南县| 许昌县| 历史| 安岳县| 孝义市| 元江| 慈溪市| 雅江县| 衡水市| 滦南县| 万源市| 洞口县| 文化| 陈巴尔虎旗| 祁连县| 文水县| 德钦县| 朝阳区| 旺苍县| 蒲江县| 灵寿县| 休宁县| 文昌市| 临洮县| 昭苏县|