Hi
I tried SuperOSR for a few months now, but i really want to use the camera so therefor i want to return to stock firmware.
I used this thread:
http://forum.xda-developers.com/showthread.php?t=1164468
Now the problem is, when i download stockrecovery and install it to the SDCARD and then i try to update it via CWM, it says:
Error in sdcard/stockrecovery.zip (Status 0) and then it stops, what now?
To flash stock recovery back you need to rename it to PH06img.zip.
and if you wanted to go back to stock rom alone, you dont need stock recovery. Just download the stock rom and install the RUU
If you want to flash the stock recovery, here is one:
File name: recovery.img
File will remain active for: 24 Hrs
Link: http://www.streamfile.com/myid/sA81KohsAsgN
(if some1 could mirror it, I can't seem to access any file sharing from here)
place the file in your sdcard (don't change the name), and flash from CWM recovery using adb:
c:\somedir\> adb shell
$ su
# mount /sdcard
# cd /sdcard
# flash_image recovery recovery.img
Adlx u went from clique to chacha development?
Sent from my LT15i using XDA App
zainthesnipe said:
Adlx u went from clique to chacha development?
Sent from my LT15i using XDA App
Click to expand...
Click to collapse
lol, yeah, I started with the Cliq, then Cliq XT, Defy, and now I'm working on CM7/SuperOSR for the Chacha, check http://forum.xda-developers.com/showthread.php?t=1291232
You got a Chacha?
adlx.xda said:
(if some1 could mirror it, I can't seem to access any file sharing from here)
Click to expand...
Click to collapse
Up on http://alex.swtesting.ro/downloads/ or http://swtesting.ro/alex/downloads/ for unlimited time.
when i type mount sdcard,adb show me this:
$ mount sdcard
mount sdcard
Usage: mount [-r] [-w] [-o options] [-t type] device directory
whats wrong?
and its all of this comands:
$ mount sdcard
mount sdcard
Usage: mount [-r] [-w] [-o options] [-t type] device directory
$ cd /sdcard
cd /sdcard
$ flash_image recovery recovery.img
flash_image recovery recovery.img
flash_image: permission denied
ok, sorry about that, my mistake
Try that:
c:\somedir\> adb shell
$ su
# mount /sdcard
# cd /sdcard
# flash_image recovery recovery.img
all of my phone:
C:\Users\Pasha\Desktop\adb\adb>adb shell
adb server is out of date. killing...
* daemon started successfully *
$ su
su
# mount sdcard
mount sdcard
Usage: mount [-r] [-w] [-o options] [-t type] device directory
# cd /sdcard
cd /sdcard
# flash_image recovery recovery.img
flash_image recovery recovery.img
flash_image: not found
#
file not found but i placed recovery.img into root of my sdcard!
From your post you're missing a / in "mount /sdcard".
not found again..
$ su
su
# mount /sdcard
mount /sdcard
Usage: mount [-r] [-w] [-o options] [-t type] device directory
# cd /sdcard
cd /sdcard
# flash_image recovery recovery.img
flash_image recovery recovery.img
flash_image: not found
#
The only thing that worked to get stock recovery was to change back to OTA firmware, which i downloaded on the 2nd page. Then i updated to OTA1.54 (official from HTC) and then i put CWM on it again to root my device.
All the other methodes like, use recovery.zip etc. etc. do not work the phone gives error 0 and hangs
Justphemy said:
flash_image: not found
[/COLOR]
Click to expand...
Click to collapse
Damn it! I thought CWM had flash_image...
help
pongzor said:
The only thing that worked to get stock recovery was to change back to OTA firmware, which i downloaded on the 2nd page. Then i updated to OTA1.54 (official from HTC) and then i put CWM on it again to root my device.
All the other methodes like, use recovery.zip etc. etc. do not work the phone gives error 0 and hangs
Click to expand...
Click to collapse
Could you write step by step how to back to stock revocery or show which file should I download, please
That should be a useful guide I agree
Hello all: since I've messing with this, too, and I found this site (link) where it's explained how to put the flash_image utility and how to flash the recovery image by using adb.
I will quote it:
flash_image is a small utility to be used on the device that allows you to re-write system partitions with image files. If you don't have it, it can be found here: http://cyanogen-files.carneeki.net/flash_image.zip (Unzip it)
You will need to install flash_image on the device, this requires the use of the SDK. So if you do not have the SDK installed, do it now.
Then go to the tools directory in the SDK,
Code:
example: cd c:\android-sdk-windows\tools
or
Code:
example: cd ~/android-sdk-linux/tools
At this point you will need to use your command line or terminal on your PC to access ADB, if you do not know how to use ADB and it is causing you to unsuccessfully perform these actions please read one of the many guides on ADB, also if the device is not recognized, you may need to uninstall HTC sync and install the ADB USB drivers in the SDK after downloading them from the setup program. (You will also need to turn on USB debugging on the device, in Settings/Applications/Development)
From command prompt or terminal:
Copy flash_image to the sdcard on the device
Code:
adb push flash_image /sdcard/
To use flash_image to flash a recovery image called recovery.img in the root of your sd card
Code:
adb shell
su [/CODE]
Temporarily allow app to run from the sdcard (use mount to find the correct device for your sdcard, ie: the /dev/block/BLAH part)
Code:
mount -o remount,exec /dev/block//vold/179:1 /sdcard
cd /sdcard
./flash_image recovery /sdcard/recovery.img
Click to expand...
Click to collapse
I hope it works for you. It did for me.
adlx.xda said:
If you want to flash the stock recovery, here is one:
File name: recovery.img
File will remain active for: 24 Hrs
Link: http://www.streamfile.com/myid/sA81KohsAsgN
(if some1 could mirror it, I can't seem to access any file sharing from here)
place the file in your sdcard (don't change the name), and flash from CWM recovery using adb:
c:\somedir\> adb shell
$ su
# mount /sdcard
# cd /sdcard
# flash_image recovery recovery.img
Click to expand...
Click to collapse
Hi !
When i write su and press enter it's says permission denied
tokafondo said:
Hello all: since I've messing with this, too, and I found this site (link) where it's explained how to put the flash_image utility and how to flash the recovery image by using adb.
I will quote it:
I hope it works for you. It did for me.
Click to expand...
Click to collapse
tokafondo said:
Hello all: since I've messing with this, too, and I found this site (link) where it's explained how to put the flash_image utility and how to flash the recovery image by using adb.
I will quote it:
I hope it works for you. It did for me.
Click to expand...
Click to collapse
C:\Fastboot>adb shell
$ mount -o remount, exect /dev/block//vold/179:1 /sdcard
mount -o remount, exect /dev/block//vold/179:1 /sdcard
Usage: mount [-r] [-w] [-o options] [-t type] device directory
$ cd /sdcard
cd /sdcard
$ ./flash_image recovery /sd/card/recovery.img
./flash_image recovery /sd/card/recovery.img
./flash_image: not found
$ ./flashimage.zip recovery /sdcard/recovery.img
./flashimage.zip recovery /sdcard/recovery.img
./flashimage.zip: not found
$ ./flash_image.zip recovery /sdcard/recovery.img
./flash_image.zip recovery /sdcard/recovery.img
./flash_image.zip: permission denied
Anybody a little help ...
Related
When I try to get root on my g1 I get to the "flash_image recovery recovery.img" step and I keep getting "error opening recovery.img: No such file or directory." I have tried changing recovery.img to /sdcard/recovery.img and I have made sure that I properly unmounted it from my computer. When I cd to sdcard and ls the only thing inside is dcim, but when I mount it to my pc again the recovery.img and update.zip folders are inside and nothing else.
Not sure what's up with your sdcard issue, but you could always just write the recov directly and bypass the sdcard:
On G1:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
On PC:
adb push /path/to/recovery.img /system/recovery.img
On G1:
cd system
flash_image recovery recovery.img
When I type "adb push /home/stephen/Desktop/recovery.img /system/recovery.img" I get bash: adb: command not found. Also, I am running Ubuntu 8.10 if that would make a difference.
ShaffersMyHomie said:
When I type "adb push /home/stephen/Desktop/recovery.img /system/recovery.img" I get bash: adb: command not found. Also, I am running Ubuntu 8.10 if that would make a difference.
Click to expand...
Click to collapse
In terminal, you have to cd into the directory where adb is found. It's probably easiest to put the recovery.img in the same directory as the adb file.
Try this:
adb remount
adb push recovery.img /system/recovery.img
that should work.
adb is a part of the Android sdk. If you haven't downloaded the sdk before, you'll need to do that.
Alright now I keep getting error: device not found even though I have mounted my g1.
You have to turn on debuging by going into settings->applications->development->debug
ShaffersMyHomie said:
Alright now I keep getting error: device not found even though I have mounted my g1.
Click to expand...
Click to collapse
You need to follow the directions here:
http://code.google.com/android/intro/develop-and-debug.html#developingondevicehardware
Ok well I switched over to windows because Ubuntu was getting annoying and I installed sdk and everything and now when i enter "adb remount" I get remount failed: Operation not permitted. And if I put in "adb push recovery.img /system/recovery.img" I get failed to copy 'recovery.img' to '/system/recovery.img': Read-only file system.
Do you have rc29?
persiansown said:
Do you have rc29?
Click to expand...
Click to collapse
Yes I have rc29.
I updated my rom and there are some omitted apps that I would like to get back into system/apps/ for example VoiceDialer.apk, but I cannot seem to get them back on. I am using Fresh Rom 0.4 and the phone is obviously rooted. maybe I am doing something wrong in adb shell but I keep getting one of 2 different erors. Either permission denied or adb not found. Thank you in advance for your help.
flaav8r said:
I updated my rom and there are some omitted apps that I would like to get back into system/apps/ for example VoiceDialer.apk, but I cannot seem to get them back on. I am using Fresh Rom 0.4 and the phone is obviously rooted. maybe I am doing something wrong in adb shell but I keep getting one of 2 different erors. Either permission denied or adb not found. Thank you in advance for your help.
Click to expand...
Click to collapse
1) Permission denied - make sure that when you do an adb shell, you're root (have the # prompt) and make sure you've mounted /system as rw (adb remount)
2) adb not found - make sure there's only one adb.exe on your computer and that it's the one from the SDK and that the SDK's /tools directory is in your path (to be safe, you can always just run adb from that directory)
jmanley69 said:
1) Permission denied - make sure that when you do an adb shell, you're root (have the # prompt) and make sure you've mounted /system as rw (adb remount)
2) adb not found - make sure there's only one adb.exe on your computer and that it's the one from the SDK and that the SDK's /tools directory is in your path (to be safe, you can always just run adb from that directory)
Click to expand...
Click to collapse
1. the procedure I used is this: from the cmd prompt in the androidsdk/tools/ directory:
adb shell
$ su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# cd /system/app
# adb push VoiceDialer.apk system/app
but its a no go. Can't understand why.
BTW, I have the VoiceDialer.apk file in the androidsdk/tools folder just to make the push easier.
Ok, here is a screen shot from my command prompt window. I know someone knows what the hell I'm doing wrong. Just wanna get the damn voice dialer back on my phone. Please help, thank you.
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Barry>cd \
C:\>cd androidsdk\tools\
C:\AndroidSDK\tools>adb shell
* daemon not running. starting it now *
* daemon started successfully *
$ su
su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# adb push VoiceDialer.apk /system/app/
adb push VoiceDialer.apk /system/app/
adb: not found
#
you cant do adb push while in shell ($ or #). Exit out and just try tying the adb push
goku14238 said:
you cant do adb push while in shell ($ or #). Exit out and just try tying the adb push
Click to expand...
Click to collapse
When I do that I get permission denied or something to that effect.
Yeah there's a post about this in the Fresh thread.
The most straightforward way is this:
Reboot to the recovery partition.
adb shell into the phone.
Issue the following command to mount the system partition:
mount -t yaffs2 /dev/block/mtdblock3 /system
Type exit to exit the shell.
Then do:
adb push c:\directory-with-the-apks /system/app
jonnythan said:
Yeah there's a post about this in the Fresh thread.
The most straightforward way is this:
Reboot to the recovery partition.
adb shell into the phone.
Issue the following command to mount the system partition:
mount -t yaffs2 /dev/block/mtdblock3 /system
Type exit to exit the shell.
Then do:
adb push c:\directory-with-the-apks /system/app
Click to expand...
Click to collapse
Thank-you, I will give it a try.
Hi guys,
If any one getting error while remounting system partition in rw mode using adb, please follow these steps :
C:\Android\android-sdk-windows\tools> adb remount
remount failed: No such file or directory
SOLUTION:
Connect to your device usb adb: [FOR ROOTED DEVICES ONLY]
C:\Android\android-sdk-windows\tools> adb shell
$su
#mount -o remount,rw /dev/stl12 /system
(do your desired work like copy some files on system/media folder , then remount the system partition in ro mode again)
# cd /
#mount -o remount,ro /dev/stl12 /system
#exit
$exit
Thats all
FYI if you want to know the dev partitions mounted on your device :
C:\Android\android-sdk-windows\tools> adb shell
$ su
# mount
cheers
Did you map the other partitions by any chance? I'd like to be able to make a full backup to eventually be flashed back with Heimdall or ODIN. I already have a system.rfs (stock + root) that could be made in a tar image.
I've see tutorials for other Samsung phones but these need to be adapted to our exact setup. I haven't found anything generic enough to know how to go about mapping things.
It might also help those who flashed GT-S5660 ROMs on the Bell Canada GT-S5660M, as the screen brightness issues sound very much like kernel issues to me...
I can't quite tell what the difference is between stl and bml either. (I'll probably try dd'ing the different blocks, except stl5, and peek around with a hex editor...)
Goodbye,
Darkshado
I am locked out of my Nexus S due to a Force Close loop with Nfc.app caused by installing a non-working fix for the Google Wallet app on the T-Mobile (thanks Google!). I therefore can't run root explorer etc.
I am trying to remove Nfc.app using but get these errors:
Code:
$ rm /system/app/nfc.app
rm failed for /system/app/nfc.app, Read-only file system
$ remount
remount: permission denied
# mount -w -o remount /system
Usage: mount [-r] [-w] [-o options] [-t type] device directory
Any way I can get past the read-only error, and the failure of remount?
Boot in recovery and run adb shell. That'll give you root permissions and access to the file system.
Greetz
That gives me:
error: device not found
I am using stock recovery (because it was a soft ClockworkMod recovery and I can't get back into ROM manager to reflash it).
Flash recovery with fastboot.
Thanks but I get:
$ fastboot flash recovery clockwork.img
fastboot: permission denied
Doing it wrong. Read the guides to learn how to set up and use fastboot.
I tried but that's all I came up with. If you could type the line of command I need, I'd really appreciate it, and give thanks
frutelaken said:
Boot in recovery and run adb shell. That'll give you root permissions and access to the file system.
Greetz
Click to expand...
Click to collapse
adb shell only inherently grants root permissions on an insecure boot image. If he's stock, rooted he'll get the standard user prompt and have to request elevated privileges.
CJSnet said:
I am locked out of my Nexus S due to a Force Close loop with Nfc.app caused by installing a non-working fix for the Google Wallet app on the T-Mobile (thanks Google!). I therefore can't run root explorer etc.
I am trying to remove Nfc.app using but get these errors:
Code:
$ rm /system/app/nfc.app
rm failed for /system/app/nfc.app, Read-only file system
$ remount
remount: permission denied
# mount -w -o remount /system
Usage: mount [-r] [-w] [-o options] [-t type] device directory
Any way I can get past the read-only error, and the failure of remount?
Click to expand...
Click to collapse
No offense, but the Thanks Google is a bit snarky - they didn't provide for T-Mobile users and never distributed the APK to flash.
For something helpful though - go ahead and boot up normally. Grab a shell, su and remount /system manually
Code:
mount -o remount,rw /dev/mtdblock3 /system
You have to tell mount which partition to mount, it won't accept just a mount point.
Thanks, but how do I request elevated privileges? E.g. I get this:
$ mount -o remount,rw /dev/mtdblock3 /system
mount: Operation not permitted
And this:
$ fastboot OEM unlock
fastboot: permission denied
Seems I can't do anything from the $ prompt.
PS: My snark at Google was for releasing a fragmented product that was not available to T-Mobile in the first place, hence these problems with the cracked version.
CJSnet said:
Thanks, but how do I request elevated privileges? E.g. I get this:
$ mount -o remount,rw /dev/mtdblock3 /system
mount: Operation not permitted
And this:
$ fastboot OEM unlock
fastboot: permission denied
Seems I can't do anything from the $ prompt.
PS: My snark at Google was for releasing a fragmented product that was not available to T-Mobile in the first place, hence these problems with the cracked version.
Click to expand...
Click to collapse
Are you rooted - if so then su prior to issuing the mount command?
If not, Is the bootloader current unlocked? You don't use fastboot from the device shell. Fastboot is a command line utility used from your local computer to operate on the device when it is in the boot loader.
Bootloader was already unlocked.
I solved it:
Rebooted into fastboot mode by holding volume up and power
On computer navigated to folder containing fastboot and put the clockwork.img in there
Typed fastboot flash recovery clockwork.img
I now have CWM recovery back, thanks.
Hi,all, I just get start with Nexus 5. can anybody tell me what the problem? follow with the command I input in windows shell.
K:\N5\ROOT>adb shell
[email protected]:/ $ su
su
[email protected]:/ # mount -o remount system /system
mount -o remount system /system
mount: Permission denied
255|[email protected]:/ #
Anyone on this?
Cheers!
su
mount -o remount,rw /system
However this only works if you have a custom "insecure" kernel that allows adb to do root things.
Sent from my Nexus 5 using Tapatalk
Thanks for the reply!
So, I will write my story here, hopefully to help some other guy in the future!
Basically I was on debug build from AOSP for the N5! And I installed all proprietary files from Google, LG, Qualcomm etc! But camera was faulty! So I decided to flash the stock images from Google! Then I 've lost
Code:
adb root
So I flashed the boot image from the debug build I had previously!
adb root works like charm!
to flash it, I used: fastboot flash boot boot.img