Last active
May 30, 2017 08:07
-
-
Save tobadia/f186e1de49ebc5c50a4306790009022a to your computer and use it in GitHub Desktop.
How to edit files on /system Android partition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
####################################################################### | |
## Short reminder of how to edit a file in /system Android partition ## | |
## ## | |
## Useful because only a buggy version of vim is available on device ## | |
## Last edit: 2017-05-30 ## | |
####################################################################### | |
## Mount /system as rw and pull Bloat Removal Script | |
adb root | |
adb shell | |
mount -o rw,remount,rw /system | |
exit | |
adb pull /system/addon.d/74-brs.sh | |
## Edit Bloat Removal Script locally | |
mv 74-brs.sh 74-brs.sh.2 | |
vi 74-brs.sh.2 # edit line with 'rm -rf /system/priv-app/Gello' to 'rm -rf /system/priv-app/Jelly'; :wq | |
## Push back to system partition under a new temporary name | |
adb push 74-brs.sh.2 /system/addon.d/ | |
adb shell | |
cd /system/addon.d # check that permissions of 74-brs.sh and 74-brs.sh.2 | |
ls -alg # are the same and file should be exact same size | |
## Set everything back to normal | |
mount -o ro,remount,ro /system | |
exit | |
adb unroot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment