Looping into recovery - G1 General

My phone keeps booting into recovery mode.
Power on -> Blank -> Reboot -> Recovery
I had the new SPL (the saphire ported one), JF's recovery (i still have it on) and JF1.51.
This happened since i tried to flash the HTC ADP update.zip.
I have tried using the hardSPL, reflashing the saphire SPL, tried flashing back to JF1.5, Rodgers but nothing seems to work
Any ideas?
EDIT: I just checked and it didnt flash the saphireSPL! i dont think adb shell push is copying the update.zip's to the SD card.
EDIT:
SOLUTION:
I was right in that it wasn't copying the updates to the sd card, i borrowed a friends G1, used it to put on the saphireSPL, flashed (and it worked this time), got into fastboot (the hardSPL fastboot didnt seem to work), and restored my nandroid backups! yey! now to try JAC's build

if you want to adb push in recovery, you'll need to mount the sdcard first or it will appear to have transfered, but actually done nothing.
next time, try
Code:
adb shell mount /sdcard
adb push update.zip /sdcard/update.zip

ravenge said:
if you want to adb push in recovery, you'll need to mount the sdcard first or it will appear to have transfered, but actually done nothing.
next time, try
Code:
adb shell mount /sdcard
adb push update.zip /sdcard/update.zip
Click to expand...
Click to collapse
Thank you, that'll come in really handy for when i dont have a spare Dream or card reader about!

ravenge said:
if you want to adb push in recovery, you'll need to mount the sdcard first or it will appear to have transfered, but actually done nothing.
next time, try
Code:
adb shell mount /sdcard
adb push update.zip /sdcard/update.zip
Click to expand...
Click to collapse
Oh my god... this (hopefully) has fixed the problem I've had for the past two days - I've spent so long reading every thread on here about the SPL problems, etc. I had a feeling the problem was the update wasn't working correctly, but I had no idea why. (It didn't complain, but just went very quickly - much to quick to be doing a full os upgrade).
Thanks!!!

umm how would i even run that script?cuz i keep bootlooping

Jerzdre said:
umm how would i even run that script?cuz i keep bootlooping
Click to expand...
Click to collapse
On Phone:
Recovery -> ALT+X -> Console
On PC
Command prompt
"cd <directory where you have update.zip>"
"adb shell mount /sdcard"
"adb push update.zip /sdcard/update.zip"
On Phone
Hold 'Home' and then:
On PC:
"adb shell reboot"

ravenge said:
if you want to adb push in recovery, you'll need to mount the sdcard first or it will appear to have transfered, but actually done nothing.
next time, try
Code:
adb shell mount /sdcard
adb push update.zip /sdcard/update.zip
Click to expand...
Click to collapse
but you can abd push to the ext2 portion of the sd card without mounting while in recovery, correct?

Related

Can I push files in recovery mode by adb?

I boot my Magic with recovery mode and link with adb.
and using adb push to push a file into sdcard.
everything is ok. but I can not find this file in sdcard.
I also try adb pull to pull a file from sdcard.
It report an error with "remote object 'xx' does not exist"
What is the problem?
the command is:
adb push c:\******.*** /sdcard
exemple with g:\update.zip :
adb push g:\update.zip /sdcard
usefull when wrong rom flashed and no sdcard reader ^^
The command is ok.
But I can not find the file on sdcard.
Is there anyone reply this question?
do you have mount the sdcard before?
adb shell mount /sdcard
Yes, I do.
I also can list the files on sdcard.
up
up
lancelotchen said:
up
Click to expand...
Click to collapse
Just go into recovery, then connect USB, type this:
adb push <local file> /sdcard
Then wait!
lancelotchen said:
The command is ok.
But I can not find the file on sdcard.
Is there anyone reply this question?
Click to expand...
Click to collapse
This very thing happened to me today. I have CWM 3.0.2.4 flashed to my G2x, I booted into recovery, and I did an "adb push" of a ROM image file to /sdcard.
The command appeared to finish correctly, but the file was not on /sdcard at all. I did an adb shell to look at the /sdcard contents to verify this.
I then did the exact same command again, it finished with the same output message (number of bytes transferred, etc.), and it worked this time (file was there now)!

help - Overclock Patch and update.zip

i have my phone updated to 2.1 and rooted. Want to overclock it now but not sure what im supposed to do with the kernel-overclock-update-v3.zip. I have the original PB00IMG.zip i updated and rooted my phone with, am i supposed to use it somehow?? New to this would appreciate any help.
Just use this, Flash it and it will make ur life easyier.
http://forum.xda-developers.com/showthread.php?t=685581
so phone will be stock again right? have to re dload apps and sync contacts and **** again right?
hmm... or u can try to flash the kernel-overclock-update-v3.zip to the one you have
be sure to nand backup first
when i put the kernel-overclock-update-v3.zip on the root of the sd card and power up holding the volume down button it doesn't find the kernel-overclock-update-v3.zip and doesn't install it...? in other word how do i flash it, doesn't seem to be working like when i originally flashed and rooted.
did you flash recovery?
duckingzebra said:
when i put the kernel-overclock-update-v3.zip on the root of the sd card and power up holding the volume down button it doesn't find the kernel-overclock-update-v3.zip and doesn't install it...? in other word how do i flash it, doesn't seem to be working like when i originally flashed and rooted.
Click to expand...
Click to collapse
Hey man,
When you rooted did you flash the Amon-Ra recovery image? If so put the update zip on the root of your sd. Power down your handset. hold the volume UP and the power on will bring you to the recovery menu. Here you have options for back up,flash from zip etc...once there you can select whatever rom/update you want to flash. Remember nandroid is your friend always back up. Also as far as apps etc...check out Titanium back up or one of the other free back up apps in market. I hope this helps you out.
volume up + end button = Recovery
ok, im following the steps to III: Flashing a Custom Recovery. and when i get to the step :adb push recovery.img /sdcard it says :cannot start recovery.img: No such file or directory...is the recovery.img also supposed to gon on the root of my sd card? or just the tools folder, cause its there?
yes its suppose to be on the root of the sdcard too
still says cannot stat 'recovery.img': no such fire or directory
am i supposed to replace /sdcard with /J (which is what my phone comes up as in my computer) -tried that still didn't work...
can u link me to the tut u are using?
http://forum.xda-developers.com/showthread.php?t=647707
QUOTE=TopazAaron]
duckingzebra said:
did you see the tutorial i linked? still cant figure it out.
Click to expand...
Click to collapse
ok
put the Recovery image in the tools/ in the sdk
after that plug ur phone into the comp
now being there in cmd navigate to the /tools/ folder
then type or copy and paste
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
---
now if you still have issues, let me know, sorry i didnt reply, i got busy with other things.
thanks for ur pm tho[/QUOTE]
ok now instead of saying :cannot start recovery.img: No such file or directory
it says error: device not found, when i open my computer my sdcard in my phone shows up and i can open it...
That is really wierd, try joining the irc u may get more help there
-------------------------------------
Sent via the XDA Tapatalk App
TopazAaron said:
That is really wierd, try joining the irc u may get more help there
-------------------------------------
Sent via the XDA Tapatalk App
Click to expand...
Click to collapse
Sorry newser here, irc??
Is your phone actually rooted? To check, turn on your phone, then turn on USB debugging through Settings/Applications/Development/USB debugging. Plug your phone into the computer via the USB cable.
In the run box of your computer, type cmd, then enter.
When the command window shows up, changed you your SDK tools directory. On my system it would be:
cd c:\android-sdk-windows\tools
Then run the following command
adb shell
You're rooted if it comes back with
#
If it comes back with
$
try the typing
SU
if it does not change from $ to # then you might want to try rooting again, and be sure to install the Amon_RA recovery
typing exit multiple times will back you out of adb, and the cmd window.
Hope that helps.
Edit: Of course that works for 2.1 leak 3 users as well.
Easier way for you tho, if you boot to hboot with the send and end buttons, you should see hboot with S off if you're rooted. If it's S On you're not.

Corrupt settings.db

Here's one for the genius'
1. I rooted my phone successfully
2. I edited the settings.db file to allow side apps
3. I copied to copy the original settings.db file (that I think I may have corrupted) back and when I restarted my phone, I get a blank screen.... it will not boot into android.
I have a backup of the original settings.db file, but I need to know if there is there a way that I can copy this file back from recovery mode so that I can boot. I do get command line access in through adb, but it will not let me gain su access. Any help would be great.
I would say just hard reset the phone. It'll restore the settings.db back to the factory one.
masterofthebass said:
I would say just hard reset the phone. It'll restore the settings.db back to the factory one.
Click to expand...
Click to collapse
is it possible to do a hard reset without booting into android? I didn't know about that drats!
systoxity said:
is it possible to do a hard reset without booting into android? I didn't know about that drats!
Click to expand...
Click to collapse
I'm fairly sure there's a way to completely reset the phone while in recovery mode. Haven't done it, but I read about it somewhere.
I did a reset, but the phone still goes blank after the Galaxy logo. If I can mount the sdcard in recovery I think I can fix it. But I can't get it mounted.
take it back and ask for a replacement. Use your imagination.
If this fails and you have a brick phone that you cant do anything with, then i personally would try to open it up and see if that internal microsd card can be removed and hooked up to a card reader. Ofc this is very risky, and i am in no way telling you that you should follow in my theoretical footsteps. Be careful and good luck.
Is there a way to mount the internal sdcard. I have adb access in recovery mode, but not root. I have removable sdcard, but it does not seem to access that one from the recovery mode.
Also, I see the drives in "My Computer", but when I click them they ask me to insert a card. Is there a way to manually mount it from the ADB shell?
you have adb access? So when you have it plugged in and you go to cmd and type adb devices, the phone pops up as connected?
Yes... I have shell access, just can't get root or mount anything. I had already rooted the phone before all this began.
Try this.
Boot into recovery and type this into your computer
"adb shell"
"mount /sdcard"
"exit"
"adb push <whateverfile> /<path>/<whateverfile>"
"adb shell"
"umount /sdcard"
"exit"
I haven't tried this on my phone, but it should work. Please post back if you have any problems.
That will fail because /<path>/<whateverfile> isn't readable/writeable by non-root users (aka adbd). It's /dbdata or something like that, if memory serves.
For the record, booting into recovery mode and clearing all user data will NOT restore a working settings.db. I think the OP is SOL, although I'd love to learn that I'm wrong! :-(
Yeah I tried "mount /sdcard" already.... No luck, it just tells me "usage: mount [-r] [-w] [-o options] [-t type] device directory"
I forgot that you can't get root. The only thing i can tell you is to wait for the dump of the original rom whenever that comes out or take it to your ATT store and tell them it broke.
Mostly new to android, but could you create an update.zip which contains a valid dbsettings file and run it using the bootloader (hold down volume buttons and power up)? Would that then install it to the appropriate place?
If you can't recover the settings.db just take it back to the store and tell them the phone just started booting into a black screen. Leave it at that, turn it on for them to show them it does indeed do that. Then they will exchange it for you because it is so soon after the release date. (ask me how I know) :-/. Always check the db file before you copy it over.
centex99 said:
Mostly new to android, but could you create an update.zip which contains a valid dbsettings file and run it using the bootloader (hold down volume buttons and power up)? Would that then install it to the appropriate place?
Click to expand...
Click to collapse
tbae2 said:
If you can't recover the settings.db just take it back to the store and tell them the phone just started booting into a black screen. Leave it at that, turn it on for them to show them it does indeed do that. Then they will exchange it for you because it is so soon after the release date. (ask me how I know) :-/. Always check the db file before you copy it over.
Click to expand...
Click to collapse
both posts +1
If you can access the phone in adb shell, then you might be able to access the recovery console by going to your computer's command line, getting into the SDK tools folder, and typing "adb shell reboot recovery"

Modifying phone files?

Okay, it will be kinda noob-ish but I searched but couldn't find anything. I have latest liberated rom rooted with unrevoked and I cant push anything to /system/customize or wherever on the phone storage. Cant adb push, when I try to remount with write access phone restarts. Any suggestions?
Code:
C:\Users\Evan\Desktop\New folder\sdk\tools>adb remount
remount succeeded
C:\Users\Evan\Desktop\New folder\sdk\tools>adb push widget.txt /system/customize
failed to copy 'widget.txt' to '/system/customize/widget.txt': Out of memory
There is memory!
all i can say is try booting into clockworkmod and mount system there.
joachim123 said:
all i can say is try booting into clockworkmod and mount system there.
Click to expand...
Click to collapse
Correct. Since our phone is nand locked, to edit/push/etc the phone would have to be booted into clockwork (without usb cable attached) - mount /system partition - and then attach cable. From there, remount in adb and push / pull / explode (explode isn't really a command... lol)
Oh yeah. Thanks for the answers, clockwork worked lol. Stupid me

[Q] how to save all my files without booting android???

Hi !
I have a problem, my phone (nexus with cyanogenmod10.2) switch off when he have finished to boot, as if there was very low power battery.
So i want to reset all but i need a solution to save all my datas, on "sdcard" and in "system" memory
i read that i can using the cmd : adb pull "device files directory" "PC files directory"
but i don't know how to use it... i'm french and its hard to translate all...
so if there is a French who can explain me its perfect !
if the explanations are clear in english its perfect too
To use any of these command you need to install adb on your computer. Here is a guide: http://www.redmondpie.com/how-to-set-up-android-adb-and-fastboot-on-windows-tutorial/
After that you open a command prompt window (windows key + r, type in "cmd", press enter). Then you put the phone into custom recovery and use the command "adb pull /sdcard/".
I've done these steps
But my problem is how to write, i need the "trame"(in french).
to be in recovery mode, i just have to boot in fastboot and select recovery mode and press power and next step is to sent my commands right?
the bg gg said:
I've done these steps
But my problem is how to write, i need the "trame"(in french).
to be in recovery mode, i just have to boot in fastboot and select recovery mode and press power and next step is to sent my commands right?
Click to expand...
Click to collapse
Correct.
Chromium_ said:
Correct.
Click to expand...
Click to collapse
Ok, but, i'm in the correct directory to use adb i write : adb pull /sdcard/ E:\Nexus4SDcard\ and nothing happens, as if i made a mistake... and i need to save all, sd card + system, so how can i do? what is the directory?
Someone can help me? 3 days without phone its hard :/
the bg gg said:
Ok, but, i'm in the correct directory to use adb i write : adb pull /sdcard/ E:\Nexus4SDcard\ and nothing happens, as if i made a mistake... and i need to save all, sd card + system, so how can i do? what is the directory?
Click to expand...
Click to collapse
If you looked at that other guide and have added adb to the environment variables
In your command prompt, do the following
E:
cd Nexus4SDcard
adb pull /sdcard
It should now being transferring
Sent from my Nexus 4 using xda app-developers app
finally i didn't write any directory for destination and it works fine but in this directory : C:\Program Files (x86)\Android\android-sdk\platform-tools, but its not a problem, using command prompt : "adb pull /"
how can i save and restore all my sms messages?
If the database is still intact it is located at /data/data/com.android.providers.telephony/databases/mmssms.db
You grab it the same way you tried to pull.
In recovery
adb shell mount /data
adb pull /data/data/com.android.providers.telephony/databases/mmssms.db
Sent from my Nexus 4 using xda app-developers app
i have an error :/
"C:\Program Files (x86)\Android\android-sdk\platform-tools>adb shell mount /data
mount: mounting /dev/block/platform/msm_sdcc.1/by-name/userdata on /data failed:
Device or resource busy"
and when i'm in the recovery mode i can't unmount /data
Sounds a little extreme... chances are, there's a better method.
If you have CM10.2, then no doubt you have a custom recovery already. I'm going to assume that this is not an actual battery issue. Is it crashing and rebooting or flat out turning off? I can't remember if CWM shows battery percentage, but TWRP does. What does it show?
What are you trying to back up? Just your /sdcard? Or your /data as well?
What happened to make it seemingly turn off once it's booted? Did you flash a new nightly?
You could always backup /data in your custom recovery as well and then do the wipe that doesn't erase the "sdcard" and then pick apart your backup later...

Categories

Resources