PTT評價

[問題] root後系統檔仍然唯讀

看板MobileComm標題[問題] root後系統檔仍然唯讀作者
smith2012
(smith2012)
時間推噓 9 推:9 噓:0 →:21

目前是用pixel 3a

因為出於好奇心就直接root了

boot.img用magisk patch之後刷進去成功了

用adb shell可以瀏覽整個根目錄

也有root check過


但程式都只能放在/data裡面
(覺得有趣裝了vim,python進去)

但環境變數檔是放在/proc 和/etc
(權限是rwx,但實際編輯會跳出唯讀警告)

變成是每次連上去都要export PATH很不方便

都root了居然還有不能編輯這種事情



另外問一下,root後好像通常是去改介面和擋廣告

有推薦下載什麼app來用嗎

其實蠻擔心亂給App權限有資安問題的


-----
Sent from JPTT on my Google Pixel 3a.

--

※ PTT 留言評論
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.82.50.196 (臺灣)
PTT 網址

t5p3ax 03/07 17:42vim 沒鍵盤怎麼用?

用來開文件檔案而已,不然只能cat不太方便

weepingkito 03/07 17:45total commander

我研究看看

※ 編輯: smith2012 (111.82.50.196 臺灣), 03/07/2021 18:03:36

DFIGHT 03/07 19:28Android 10對不對 啊都討論爛了 自己google

不是耶,是android11 我有搜過,mount指令下不了,依舊被擋

DFIGHT 03/07 19:34擋廣告就自己Google host 但是有些Google play st

DFIGHT 03/07 19:34ore 下載的遊戲不是有看廣告拿遊戲內的金幣的設定

DFIGHT 03/07 19:34嗎? 有些host這個也會擋到 人生沒有廣告反而輸人

DFIGHT 03/07 19:34一節 只好忍痛不用host 瀏覽器內建掛件去廣告是最

DFIGHT 03/07 19:34佳解法 kiwi bromite都是chrome瀏覽器的底 很方便

DFIGHT 03/07 19:34適應 youtube spotify 自行Google 網路上都有恩..

DFIGHT 03/07 19:34.那個

是host嗎,我研究看看

※ 編輯: smith2012 (111.82.50.196 臺灣), 03/07/2021 20:42:30

我剛剛看了一下 雖然還沒實作 但原理應該是替換掉原本的system/etc/host 但這個很可能被我的唯讀問題擋住... 在etc裡面我連建立資料夾都不行

http://i.imgur.com/HGQ5XoQ.jpg

※ 編輯: smith2012 (111.82.50.196 臺灣), 03/07/2021 20:50:02

romber 03/07 23:27很久沒root了,不過我猜是system沒有mount成rw

對,但我試過mount他沒有辦法操作

DFIGHT 03/07 23:39我10 11你加油

weepingkito 03/07 23:44http://i.imgur.com/Qb3NXiS.jpg

weepingkito 03/07 23:47按下面加號新增這個後重新掛載

※ 編輯: smith2012 (116.241.215.236 臺灣), 03/08/2021 00:19:22

romber 03/08 00:26有試過用adb或shell remount嗎?

smith2012 03/08 00:29http://i.imgur.com/jV2Puuv.jpg

smith2012 03/08 00:29掛載後出現這個

smith2012 03/08 00:30用adb remount也會跳出這個read only問題

smith2012 03/08 00:31http://i.imgur.com/nTODlTd.jpg

smith2012 03/08 00:31手機內用termux也是一樣

romber 03/08 00:52應該是dm-verity的問題,試試 https://bit.ly/3l0

romber 03/08 00:527zG3

romber 03/08 00:52https://bit.ly/3l07zG3

smith2012 03/08 02:48http://i.imgur.com/zeuBmSq.jpg

smith2012 03/08 02:49好像因為user build的關係?

smith2012 03/08 02:49所以不能改變verity,真的頭大

jh520109 03/08 09:36sepolicy 的關係, Android 10以後root權限被限制

smith2012 03/08 10:06所以應該刷回android9 才能玩嗎

coin3x 03/08 17:15你用 Magisk 配模組不就能覆蓋系統分割區的檔案了

coin3x 03/08 17:16這樣不用真的動到系統分割區