[Q] How to edit /system in recovery/fastboot? - Atrix 4G Q&A, Help & Troubleshooting

I want to edit the /system/build.prop on my phone from my recovery because my phone doesn't boot and I know what change led to that.
How can I do this? Can anybody give me nooby instructions on how to do this?
I think I may have to use ADB pull/push, but how do you use it? Also, can I do it via moto-fastboot?
Thanks.

Notorious544d said:
I want to edit the /system/build.prop on my phone from my recovery because my phone doesn't boot and I know what change led to that.
How can I do this? Can anybody give me nooby instructions on how to do this?
I think I may have to use ADB pull/push, but how do you use it? Also, can I do it via moto-fastboot?
Thanks.
Click to expand...
Click to collapse
Boot to recovery, go into mounts and storage and mount /system then use adb to pull build.prop off, edit it, then push it back up.
Speedily sent from CM7 Beta

d3athsd00r said:
Boot to recovery, go into mounts and storage and mount /system then use adb to pull build.prop off, edit it, then push it back up.
Speedily sent from CM7 Beta
Click to expand...
Click to collapse
What's the exact command for ADB pull? My Android SDK is saved on C:\

I copied the commands from adb;
adb push <local> <remote> - copy file/dir to device
adb pull <remote> [<local>] - copy file/dir from device
Open up CMD under administrator privilages (right click the CMD icon and select run as administrator)
type cd c:\
type adb pull /system/build.prop c:\
this should copy the file to the c:\ and when your done editing use the following commands to push it back
adb push c:\build.prop /system/

I accidently pulled all of /system. How do I push it all back? If I don't push it, does it mean that my phone has no /system?

adb push <local> <remote> - copy file/dir to device
adb pull <remote> [<local>] - copy file/dir from device
all you did was make a copy of the files...

Thanks!
Thanks for your advice everybody, but in the end, I ended up reflashing Rom. However, this situation has at least given me experience with ADB commands.

Related

ADB command (Help)

Is there anyway that adb can mount the internal sdcard to the computer to i can install a rom or something? I can't get the phone to boot up but I can get to Cloclwork recovery and I can connect to ADB.
player4lifeov said:
Is there anyway that adb can mount the internal sdcard to the computer to i can install a rom or something? I can't get the phone to boot up but I can get to Cloclwork recovery and I can connect to ADB.
Click to expand...
Click to collapse
umm yeah, adb push <file you want to push> /sdcard
Also google "android commander"
Is there not an option to toggle usb in clockwork recovery? Nvm that, try "adb usb"
watcher64 said:
umm yeah, adb push <file you want to push> /sdcard
Also google "android commander"
Click to expand...
Click to collapse
would it look like this?
adb push C:\Documents and Settings\HP_Administrator.HARRIER\My Documents\Downloads\Frankin_Final.zip /sdcard
Or do i first have adb shell and then the command?
ms79723 said:
Is there not an option to toggle usb in clockwork recovery? Nvm that, try "adb usb"
Click to expand...
Click to collapse
Tried this but I can't acces anything on the drive. It says "please insert disk"
player4lifeov said:
would it look like this?
adb push C:\Documents and Settings\HP_Administrator.HARRIER\My Documents\Downloads\Frankin_Final.zip /sdcard
Or do i first have adb shell and then the command?
Click to expand...
Click to collapse
Never tried with a file path that has spaces, copy the .zip to your tools directory and try it
adb push Frankin_final.zip /sdcard
or you might have to put quotes around your long path.
Like I said I am not sure, I keep my paths for things like this short.
You do NOT adb shell first ...
watcher64 said:
Never tried with a file path that has spaces, copy the .zip to your tools directory and try it
adb push Frankin_final.zip /sdcard
or you might have to put quotes around your long path.
Like I said I am not sure, I keep my paths for things like this short.
You do NOT adb shell first ...
Click to expand...
Click to collapse
It worked!!
Your a lifesaver!! Thank youuuuuuu sooooo much! I thought I had bricked my friends phone!
I am very gratefull

How to do this ADB command Will pay!

Willing to pay someone to show me how to do this command:
Step by step instructions and I'll give you $20.00
-------------------------------------------------------------
You will need modified libraries to take full advantage of this kernel as they override speeds at times, you can find these here.
You'll have to push them over adb for now after flashing the kernel, when CWM is up I will make a CWM zip for it.
From the directory with adb and the three .so files:
Code:
adb remount
adb push libhardware_legacy.so /system/lib/
adb push librpc.so /system/lib/
adb push libandroid_runtime.so /system/lib/
adb shell chmod 0644 /system/lib/libhardware_legacy.so
adb shell chmod 0644 /system/lib/librpc.so
adb shell chmod 0644 /system/lib/libandroid_runtime.so
adb reboot
What does it tell you when you try to run the first command?
You've got to have ADB installed first.
Download the modified files from that post and extract them to a folder lets say C:\
Hit start run CMD now type CD C:\
Now type those commands that you posted one by one with your phone in Dev Mode plugged into the computer.
& give the $ to the man who deserves it Da_G!
sent from AT&T Samsung Galaxy Note Dual Core 1.83 GHz
You,need ti set up adb first .. Click the chat libk in my sig i will help you live..
Sent from my GT-I9000 using xda premium
BrandonPrice31 said:
Willing to pay someone to show me how to do this command:
Step by step instructions and I'll give you $20.00
-------------------------------------------------------------
You will need modified libraries to take full advantage of this kernel as they override speeds at times, you can find these here.
You'll have to push them over adb for now after flashing the kernel, when CWM is up I will make a CWM zip for it.
From the directory with adb and the three .so files:
Code:
adb remount
adb push libhardware_legacy.so /system/lib/
adb push librpc.so /system/lib/
adb push libandroid_runtime.so /system/lib/
adb shell chmod 0644 /system/lib/libhardware_legacy.so
adb shell chmod 0644 /system/lib/librpc.so
adb shell chmod 0644 /system/lib/libandroid_runtime.so
adb reboot
Click to expand...
Click to collapse
enable USB debugging in settings on phone.
Connect phone to your pc.
run 'adb' on your PC from the command line.
If you do not have the USB drivers etc installed, see http://developer.android.com/sdk/index.html and http://developer.android.com/sdk/win-usb.html
once you have adb working (e.g. you can run 'adb devices' and see your phone) just type the command as above.
donbowman said:
enable USB debugging in settings on phone.
Connect phone to your pc.
run 'adb' on your PC from the command line.
If you do not have the USB drivers etc installed, see http://developer.android.com/sdk/index.html and http://developer.android.com/sdk/win-usb.html
once you have adb working (e.g. you can run 'adb devices' and see your phone) just type the command as above.
Click to expand...
Click to collapse
I have all of that but once I get to that part it doesnt work..
He only gives one file:
http://forum.xda-developers.com/showthread.php?t=1504920
maxjivi05 said:
You've got to have ADB installed first.
Download the modified files from that post and extract them to a folder lets say C:\
Hit start run CMD now type CD C:\
Now type those commands that you posted one by one with your phone in Dev Mode plugged into the computer.
& give the $ to the man who deserves it Da_G!
sent from AT&T Samsung Galaxy Note Dual Core 1.83 GHz
Click to expand...
Click to collapse
Problem is there is only one file given?
http://forum.xda-developers.com/showthread.php?t=1504920
BrandonPrice31 said:
I have all of that but once I get to that part it doesnt work..
He only gives one file:
http://forum.xda-developers.com/showthread.php?t=1504920
Click to expand...
Click to collapse
ah, the files are in a tar.gz file.
If you are on windows, open this with winzip and extract.
if u r on linux, do 'tar zxvf modded-libs.tar.gz'
You need to install the SDK for Windows to get ADB installed. That would be easiest
sent from AT&T Samsung Galaxy Note Dual Core 1.83 GHz
There are three files in there. it's a tar.gz file. You have to extract twice. Once to get a .tar file, then you extract the three files from the .tar.
DAGr8 said:
You,need ti set up adb first .. Click the chat libk in my sig i will help you live..
Sent from my GT-I9000 using xda premium
Click to expand...
Click to collapse
Waiting for your response
Okay so I have the three files unzipped, where do I place them so the commands will work?
uh, any old directory will do.
then 'cd' to that directory.
then run adb as above.
the 'adb push' will be copying them to the device.
For some reason the overclock freezes on me I don't get it.
try 1 notch above 1544 speed first.
BrandonPrice31 said:
For some reason the overclock freezes on me I don't get it.
Click to expand...
Click to collapse
Im sorry something came up im afk atm hang around ill help when i get home in about an hour
Sent from my GT-I9000 using xda premium

Edited build.prop; phone now hangs during boot

Well I've had my first issue with my shiny new handset! I rooted it this afternoon and decided to modify the build.prop to change the dalvik heap size as recommended by various people. However on rebooting, the phone's now hanging on the splash screen.
I can get into download and recovery ok - any ideas on how to fix this? Is build.prop editable in either of these modes?
If you have adb, boot in to CWM, adb pull /system/build.prop
Edit the file, please note that if you're on windows, DO NOT USE WORD or anything similar, it'll mess up your line endings (Newline Format), I suspect this is what happened in the first place.
In any case, if you need to edit the file in plain notepad, download "ToFroDos" and run todos on the file before editing,
then edit, then run fromdos on the file, then adb push it back on to the device.
Note on Re-uploading: you may need to execute adb remount rw in order to upload the file.
In any case, short form:
1. Boot to recovery
2. adb pull /system/build.prop
3. Edit locally (Making sure to keep the proper newline format (\n))
3.5 adb remount rw
4. adb push ./build.prop /system/build.prop
As said extract the original one from the rom and push it manually via adb push command
Sent from my GT-I9300 using Tapatalk 2
Oddly enough I used the build.prop editor app from the Play store. Seems that the issue was that it didn't put an 'm' at the end of the line specifying the size - so it read as '128'. Anyway, I've done what you suggested, and it worked - excellent stuff, thanks!
Next time, just use Jota Text Editor on your phone
I have use it many times to edit my build.prop file and never have issue
I tried adb pull /system/build.prop, but the build.prop file doesn't appear anywhere on my PC, so I can't edit it. My device appears in adb devices, and the command line responds with "718 KB/s (2943 bytes in 0.004s)" when I enter "adb pull /system/build.prop", but I can't find it
guitarplayer365 said:
I tried adb pull /system/build.prop, but the build.prop file doesn't appear anywhere on my PC, so I can't edit it. My device appears in adb devices, and the command line responds with "718 KB/s (2943 bytes in 0.004s)" when I enter "adb pull /system/build.prop", but I can't find it
Click to expand...
Click to collapse
Make sure you're not in a readonly directory on the host,
a default cmd in windows will start in the dir of %ComSpec% (Usually C:\windows\system32).
Abd will try to put files wherever you're located in you filesystem, unless you tell it otherwise. (adb pull {source} [destination])
Sent from my GT-I9300 using XDA
T0yK4T said:
If you have adb, boot in to CWM, adb pull /system/build.prop
Edit the file, please note that if you're on windows, DO NOT USE WORD or anything similar, it'll mess up your line endings (Newline Format), I suspect this is what happened in the first place.
In any case, if you need to edit the file in plain notepad, download "ToFroDos" and run todos on the file before editing,
then edit, then run fromdos on the file, then adb push it back on to the device.
Note on Re-uploading: you may need to execute adb remount rw in order to upload the file.
In any case, short form:
1. Boot to recovery
2. adb pull /system/build.prop
3. Edit locally (Making sure to keep the proper newline format (\n))
3.5 adb remount rw
4. adb push ./build.prop /system/build.prop
Click to expand...
Click to collapse
How do I do ADB pull/push if I can only get to the stock recovery screen? (The one with Mr. Android on his back with the ! above him)
BTW, I'm on a Note 3
Check the permissions!!!!!
The build.prop file should have 644 permissions.
Check if it fits, else change them using adb.
See other thread
http://forum.xda-developers.com/showthread.php?t=1927198

[Q] xperia sola recovery mode

i need to pull and push some system files in my phone for that i need to enter recovery mode in my xperia sola.please help to enter recovery mode.my phone is rooted.thanks in advance :good:
dviraj00 said:
i need to pull and push some system files in my phone for that i need to enter recovery mode in my xperia sola.please help to enter recovery mode.my phone is rooted.thanks in advance :good:
Click to expand...
Click to collapse
I think you dont need to put your device to recovery mode. Just use adb shell
to pull: (no need superuser privileges)
ex: format: adb pull [location of the file in the device] [to where the file is save locally]
adb pull /system/xbin/su c:
Click to expand...
Click to collapse
to push: (need su) since you rooted then:
adb shell
su
mount -o remount,rw /dev/block/stl9 /system
chmod 777 /system/app
then exit from devices, go to your command prompt and type:
adb push <local> <remote>
Click to expand...
Click to collapse
Hope it helps
capsule46 said:
I think you dont need to put your device to recovery mode. Just use adb shell
to pull: (no need superuser privileges)
to push: (need su) since you rooted then:
Hope it helps
Click to expand...
Click to collapse
thank you mate bt i am just a noob and dont know how to use adb shell.can u tell me plzz.this will save my relationship,plz mate
Hi, sorry for late reply
I assume you have installed your device driver properly
Then install android sdk: go to developer.android.com/sdk
Follow the step to install it. If you done it properly,you will find adb command in folder installation name platform-tools
Use it in command prompt. You can type adb /? to learn its capability.
Or you just go frok my post earlier
Hope it helps
Sent from my GT-N7100 using Tapatalk 2

How to push build.prop in a read only partition

Hi there, i have a Lenovo A1000 tablet and make changes to build.prop and now i am stuck on the boot logo...
i mange to get a adb shell and i try to push my build.prop backup but the shell returns that is just a read only file system... so i need remount it as writyeable but dont know anything about the system partition (/dev patch or whatever), i enter the command "mount | grep system" but i dont undestand the output...
please help!
Lenovo dont provide a way to restore the tablet xD
Best Regards!
You have to be rooted. If you are, be sure to be su in the terminal. Also, remember next time to set the right permissions for build.prop. It should be 644 (rw-r-r), or else you'll get another bootloop.
LordManhattan said:
You have to be rooted. If you are, be sure to be su in the terminal. Also, remember next time to set the right permissions for build.prop. It should be 644 (rw-r-r), or else you'll get another bootloop.
Click to expand...
Click to collapse
i am pretty sure that the permitions are in 644, but anyway how do i check it? just in case
wolframio74 said:
i am pretty sure that the permitions are in 644, but anyway how do i check it? just in case
Click to expand...
Click to collapse
reflash rom through odin
ummarrkhan said:
reflash rom through odin
Click to expand...
Click to collapse
is a lenovo xD, anyway...
for the record, here are the steps that use to restore my backup of build.prop with the stock recovery and a logo stuck at the boot:
*INSTALL PDANET FOR WIN FROM HERE: http://pdanet.co/a/ IN THE PC.
and put your backup of "build.prop" in the same folder with ADB.
Disconect any cable from the tablet.
1.- Power off the tablet with the reset button on the sd car slot.
2.- Power it on factory mode with holding "vol down and power", a screen with a Blue bar appears on the tablet.
3.- Connect the tablet to the PC, open two (yes 2 Windows) CMD and go to your ADB folder with the your backup of Build.prop, then enter the follow commands in one CMD Window...
CMD Window 1:
adb shell
su
mount -o rw,remount /dev/block/mmcblk0p1 /system
CMD Window 2:
adb push build.prop /system/build.prop
then back to CMD Window 1 and put:
chmod 644 /system/build.prop
reboot
if i didnt forget anything the tablet will boot normally!
wolframio74 said:
is a lenovo xD, anyway...
for the record, here are the steps that use to restore my backup of build.prop with the stock recovery and a logo stuck at the boot:
*INSTALL PDANET FOR WIN FROM HERE: http://pdanet.co/a/ IN THE PC.
and put your backup of "build.prop" in the same folder with ADB.
Disconect any cable from the tablet.
1.- Power off the tablet with the reset button on the sd car slot.
2.- Power it on factory mode with holding "vol down and power", a screen with a Blue bar appears on the tablet.
3.- Connect the tablet to the PC, open two (yes 2 Windows) CMD and go to your ADB folder with the your backup of Build.prop, then enter the follow commands in one CMD Window...
CMD Window 1:
adb shell
su
mount -o rw,remount /dev/block/mmcblk0p1 /system
CMD Window 2:
adb push build.prop /system/build.prop
then back to CMD Window 1 and put:
chmod 644 /system/build.prop
reboot
if i didnt forget anything the tablet will boot normally!
Click to expand...
Click to collapse
this will be better

Categories

Resources