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
Related
Testman08
Junior Member Join Date: Apr 2010
Posts: 1
I am having trouble with installation instructions from Walkthru setups hxxp://forum.xda-developers.com/showthread.php?t=647707. I have installed the rooted img and it shows i'm running 2.1 (original software was unrooted 1.5) but when I attempted to go to step three of custom recovery "Open up a command prompt and go to your tools directory, and execute these commands:" i am having a hard time not getting errors when I attempt to enter these:
adb shell mount -o rw,remount /dev/block/mtdblock3 /system
adb push recovery.img /sdcard
adb push flash_image /system/bin
adb shell chmod 755 /system/bin/flash_image
adb shell flash_image recovery /sdcard/recovery.img
the question I have is how do you go from command prompt to tools directory? what path is it following instructions from above thread? can I use this "all in one script" even though I am already rooted?
firmware 2.1, baseband 2.40.00.01.22, kernel 2.6.29-5898f66b, software 2.19.605.1 and shows test keys. Currently I keep getting force close on maps and navigation apps.
Thanks in advance for any assistance.
Got it resolved......
How did you get it resolved ???????
Im so stuck
Ki1lACrAcK said:
How did you get it resolved ???????
Im so stuck
Click to expand...
Click to collapse
droidfreak said:
have you made it to the tools directory? if you actually go to the tools file on your computer, on the address bar you will see what you need to type.... either (red font)
cd C:\AndroidSDK\tools
that was after I moved the tools folder otherwise it was:
cd C:\AndroidSDK\android-sdk-windows\tools
type one or the other exactly how I have it up top....cd and all....
Click to expand...
Click to collapse
option in bold worked for me
Now if i can figure out how to get the custom rom installed lol
Hmm Im having a similar issue but
I can't seem to get the custom recover working on my eris. I followed the "adb shell mount -o rw,remount /dev/block/mtdblock3 /system
adb push recovery-ra-eris.img /sdcard
adb push flash_image /system/bin
adb shell chmod 755 /system/bin/flash_image
adb shell flash_image recovery /sdcard/recovery-ra-eris.img
4. Close the command prompt and turn off you phone."
to the tee and everything seemed to work.I didnt recieve any error msg on the cmd console but when I boot up holding the Vol+ and power I get and Android under a ! in a triangle and a message that says "E:Can't open /cache/recovery/command then I only get 4 options and none of them are to flash a rom so I always reboot system. I really want to put a rom on here but I have no idea what went wrong. Im sorry if this is a redundant post. I combed a hundred of them and couldnt find anything like this. Thank you for any help in advance.
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.
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
I need help with this ASAP, as my device is currently in a bootloop because a boot animation app didn't work as well as I thought it would and my Dell Streak 7 will not boot up.
The device does still respond to adb commands, so there's a chance at saving it.
Unfortunately, I cannot get adb push to work, it says no permission when I try to do:
adb push bootanimation.zip /system/media
It says permission denied. I either need to know how to get adb push working or how to COMPLETELY reset the tablet, including all the system files such as bootanimation.zip. I need help as soon as possible
HackAttack37 said:
I need help with this ASAP, as my device is currently in a bootloop because a boot animation app didn't work as well as I thought it would and my Dell Streak 7 will not boot up.
The device does still respond to adb commands, so there's a chance at saving it.
Unfortunately, I cannot get adb push to work, it says no permission when I try to do:
adb push bootanimation.zip /system/media
It says permission denied. I either need to know how to get adb push working or how to COMPLETELY reset the tablet, including all the system files such as bootanimation.zip. I need help as soon as possible
Click to expand...
Click to collapse
Ok, I can help.
First, you cannot adb push to a system partition. you would need to have unprotected adb running in su mode.
Also, you will have to remount the system partition to rw.
try this code:
Code:
adb push bootanimation.zip /data/local/tmp/bootanimation.zip
adb shell "su -c busybox mount -o remount,rw /system"
adb shell "su -c cat /data/local/tmp/bootanimation.zip > /system/media/bootanimation.zip"
i have a lenovoA319
i wanna get involved into the root thing , so i wanna make a backup of my stock phone in case i wanted to get it back to its conditions-i dont care about warranty but i lilke to keep a copy of every thing-
as adb backup doesnt work , it seems that many users have faced that , so what are the alternatives ?
is there a way to back up the stock bootloader?
dimmu.borgir said:
i have a lenovoA319
i wanna get involved into the root thing , so i wanna make a backup of my stock phone in case i wanted to get it back to its conditions-i dont care about warranty but i lilke to keep a copy of every thing-
as adb backup doesnt work , it seems that many users have faced that , so what are the alternatives ?
is there a way to back up the stock bootloader?
Click to expand...
Click to collapse
backing up through a recovery is best
BatDroid said:
backing up through a recovery is best
Click to expand...
Click to collapse
stock recovery???
dimmu.borgir said:
stock recovery???
Click to expand...
Click to collapse
You Can't Do Anything With Stock Recovery Other Than Factory Reset In Emergency Conditions.. Install A Custom Recovery like TWRP,Philz for Your Device & Backup As You Wish..
LoverBoy2415 said:
You Can't Do Anything With Stock Recovery Other Than Factory Reset In Emergency Conditions.. Install A Custom Recovery like TWRP,Philz for Your Device & Backup As You Wish..
Click to expand...
Click to collapse
is there a custom recovery backup phone into the pc
i did the backup using flashtool, i backed up all the partitions
LoverBoy2415 said:
You Can't Do Anything With Stock Recovery Other Than Factory Reset In Emergency Conditions.. Install A Custom Recovery like TWRP,Philz for Your Device & Backup As You Wish..
Click to expand...
Click to collapse
Instead ob adb backup/restore, you can use adb pull/push. But it requires fixing file permissions and ownerships. I do it like this from a Bash shell on my Linux computer:
Bash:
APP_ID="org.secuso.privacyfriendlynotes"
# Backup (RUN WITH OLD PHONE CONNECTED)
adb pull "/data/data/${APP_ID}"
# Restore (RUN WITH NEW PHONE CONNECTED)
APP_OWNERSHIP=$(adb shell stat --format "%U:%G" "/data/data/${APP_ID}")
adb shell mv "/data/data/${APP_ID}" "/data/data/${APP_ID}_backup"
adb push "./${APP_ID}" "/data/data/${APP_ID}"
adb shell restorecon "/data/data/${APP_ID}"
adb shell chown -R "${APP_OWNERSHIP}" "/data/data/${APP_ID}"
#adb shell rm -rf "/data/data/${APP_ID}_backup"
ferivon said:
Instead ob adb backup/restore, you can use adb pull/push. But it requires fixing file permissions and ownerships. I do it like this from a Bash shell on my Linux computer:
Bash:
APP_ID="org.secuso.privacyfriendlynotes"
# Backup (RUN WITH OLD PHONE CONNECTED)
adb pull "/data/data/${APP_ID}"
# Restore (RUN WITH NEW PHONE CONNECTED)
APP_OWNERSHIP=$(adb shell stat --format "%U:%G" "/data/data/${APP_ID}")
adb shell mv "/data/data/${APP_ID}" "/data/data/${APP_ID}_backup"
adb push "./${APP_ID}" "/data/data/${APP_ID}"
adb shell restorecon "/data/data/${APP_ID}"
adb shell chown -R "${APP_OWNERSHIP}" "/data/data/${APP_ID}"
#adb shell rm -rf "/data/data/${APP_ID}_backup"
Click to expand...
Click to collapse
This script requires `adb root`, right? Is it still available in modern versions of Android? I didn't manage to use it even after setting `ro.debuggable=1` in `/system/build.prop`, on my Android 12.
Unless you have any insights about this, I guess I can change permission to or copy an app's data directory with `su` before pulling it.
I also noticed that some files (at least the `cache` and `code_cache` directories) in an app's data dir belong to a different group. I'm wondering whether setting the ownership of everything to the same user and group could cause problems in the future.