[tutorial] flashing custom recovery via terminal emulator - Optimus One, P500, V General

SOME OF YOU HAVE PROBLEM WITH ROM MANAGER(LIKE ME) AND SOME WITH COMPUTER THATS WHY ITS THE PERFECT(99.9 % WORKING METHOD) TO FLASH CUSTOM RECOVERY VIA TE
TUTORIAL
YOU SHOULD BE ROOTED
I DONT HELD RESPONSIBLE IF SOMETHING HAPPENS TO UR BELOVED O1
1 NOW DOWNLOAD FLASH_IMAGE( http://www.mediafire.com/?7pkcte8gcyn9pet)
2 now download any recovery from this thread( forum.xda-developers.com/showthread.php?t=1523050 ) and extract the "RECOVERY.IMG" ONLY and place it in /sdcard/
3 extract the flash_image
4 USING ROOT MANAGER OR ANY OTHER FILE MANAGER(THAT GIVES YOU ROOT ACCESS) PUT FLASH_IMAGE IN /SYSTEM/BIN ya change ots permission to rwxr-xr-x(thanka for rembering coodingdroid)
5 IN TERMINAL EMULATOR
TYPE
su
it will prompt for root access allow it
then type this
flash_image recovery /sdcard/recovery.img
(and press enter)
you will now get this
#
now type reboot recovery
and you have got a new recovery for your phone
press thanks if i helped you

This should go into the general section.

Bytecode said:
This should go into the general section.
Click to expand...
Click to collapse
Yes and he forgot to mention that we need to set permissions, without setting permissions = no go
Code:
chmod 0777 /system/bin/flash_image
What do you mean by "3. Extract flash_image"?
It is a file, a script, isn't it?
Sent from my LG-P500 running Protos 0.0.1

CodingDroid said:
Yes and he forgot to mention that we need to set permissions, without setting permissions = no go
Code:
chmod 0777 /system/bin/flash_image
What do you mean by "3. Extract flash_image"?
It is a file, a script, isn't it?
Sent from my LG-P500 running Protos 0.0.1
Click to expand...
Click to collapse
ya u r saying right but wo chanhing the permissions it will still work but u still are correct
and the extracting thing is its in zip format the real file is 9.41kb which is inside the zip folder

androidisfuture said:
ya u r saying right but wo chanhing the permissions it will still work but u still are correct
and the extracting thing is its in zip format the real file is 9.41kb which is inside the zip folder
Click to expand...
Click to collapse
Okay now I understand.
But without settings permissions in /system/bin/, /xbin/, /init.d the system won't run the script, as it hasn't any permissions to run it.
Sent from my LG-P500 running Protos 0.0.1

so i need to put that flash file in system/bin and in /xbin ? i copy that but i dont see the file ... superuser allow me to copy that in /bin and /xbin but i dont see the file there .

buhanita said:
so i need to put that flash file in system/bin and in /xbin ? i copy that but i dont see the file ... superuser allow me to copy that in /bin and /xbin but i dont see the file there .
Click to expand...
Click to collapse
ok don't use superuser use any filenanager like solid; es and do it there will be no problem
and u have to put it in system/bin

I did all the things what you said above
But when i type
flash_image recovery /sdcard/recovery.img
I got error with out of memory
But I have a 110mb in internal memory
Now what I do
Sent from my LG-P500 using xda premium

acerkumar said:
i did all the things what you said above
but when i type
flash_image recovery /sdcard/recovery.img
i got error with out of memory
but i have a 110mb in internal memory
now what i do
Sent from my lg-p500 using xda premium
Click to expand...
Click to collapse
get a taskmanager kill all the apps running and then try
it will surely work

I did kill all apps and tried
It didn't show any error msgs
Sent from my LG-P500 using xda premium
---------- Post added at 07:03 PM ---------- Previous post was at 06:57 PM ----------
Is it safe type reboot recovery in terminal emulator
Or
Can I try to boot into recovery mode by turning off the phone and press
Vol +home+power button
Which is safe
Sent from my LG-P500 using xda premium

if it worked
press thanks

Yes, I have flashed amonra 3.0.6 successfully
Thank you :thumbup:
It's work like charm with in few seconds I had flashed amonra easily :thumbup:
Sent from my LG-P500 using xda premium

Hey guysss........there's no such command as "flash_image":crying::crying:

tharu_roxx said:
Hey guysss........there's no such command as "flash_image":crying::crying:
Click to expand...
Click to collapse
please follow the instructions
put the flash image in system/bin
please read before posting

Yeahhhh!!! It worked!! Thanxxx!
Current Device : MT11i Xperia Neo V
ROM : Xperia Ultimate HD ™
Build Number : 2.0.3
Kernel : Suave Kernel
Root Status : Rooted
Bootloader : Unlocked
Previous Devices : Samsung Galaxy Y
GT-5360(Sold)
Sent from my MT11i using XDA Premium HD app

Fastboot after
After recovery reboot I got into fastboot ... Oops .. :/

Can I use it on stock rooted Rom???
Sent from my HTC Desire X using xda app-developers app

sachin kamboj said:
Can I use it on stock rooted Rom???
Sent from my HTC Desire X using xda app-developers app
Click to expand...
Click to collapse
You need to flash_image for that
Sent from my GT-I9082 using xda premium

Related

[Help] ADB Push Permission Denied

I'm trying to push touchwizcalendar but it doesn't work. This is what I get:
C:\sdk\tools>adb push touchwizcalendar.apk /system/app/touchwizcalendar.apk
failed to copy 'touchwizcalendar.apk' to '/system/app/touchwizcalendar.apk': Per
mission denied
Click to expand...
Click to collapse
keep your phone unlocked, run the command and you'll see the Superuser app pop up. Hit allow.
The end.
Eugene has a init script that will have staten as rw always.. Its an update.zip you flash from cwmod recovery.. If you don't have a lag fix it will flash fine, if you do it will over write it so you have to modify...
His newest rom supports both, maybe you could just kang it..
I currently have his mount script on my phone bc im always editing my services.jar and need that ability..
Sent from my SGH-T959 using XDA App
cashless said:
keep your phone unlocked, run the command and you'll see the Superuser app pop up. Hit allow.
The end.
Click to expand...
Click to collapse
It didn't work and I got the same message.
junkdruggler said:
Eugene has a init script that will have staten as rw always.. Its an update.zip you flash from cwmod recovery.. If you don't have a lag fix it will flash fine, if you do it will over write it so you have to modify...
His newest rom supports both, maybe you could just kang it..
I currently have his mount script on my phone bc im always editing my services.jar and need that ability..
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
Really appreciate that you are trying to help but I don't have a clue what you said. I'm totally new to this.
We had are First Sleepless Night with the New baby Boy.... Between Trying Figure out what was Wrong & taking turns with the Wife Holding Aries, I tried Pushing File's & forgot adb push didn't work...
Now this Script originally is what I made for the Behold 2, but the Basic still works For the SGV..
Just mod the script if your using the userinit.sh
Using this script you can place the userinit.sh any place you would Like...
I hope ever gets Good use out of this & Please Enjoy!
~Eugene
Download > adbpushGS1.zip
Installing*
Reboot to recovery, run the update.zip to run ClockworkMod Recovery, then installed the ZIP..
Quoted from eugene's post-- hope this helps...
Sent from my SGH-T959 using XDA App
How do I "Reboot to recovery" and I think I already run the "update.zip" when I rooted the phone. Do I have to download ClockworkMod Reovery or something? Like said I'm new to this so I'm sorry if I'm a nuisance.
Edit: Is it the same thing as this?
http://awdisk.com/2010/01/how-to-reboot-your-motorola-milestone-in-recovery-mode/
Now we can start. Plug your device to your computer and enable the debugging mode of your phone (Go to MENU->SETTINGS->APPLICATIONS->DEVELOPMENT->Enable the “USB debugging”).
Then you need the adb tool that is given with the SDK. (You can find it it the “Tools” directory of the SDK).
Open a command prompt, go to the directory of “adb.exe” and type:
adb.exe devices
You should see your device. If there is no device connected, maybe your phone is not in the “debugging mode” see above. If your device appears, you can now type:
adb.exe -d reboot recovery
Then your phone will reboot in recovery mode and you will see this logo:
Click to expand...
Click to collapse
You can go to the market and download rom manager and use it to flash a custom recovery...
Flash cwmod recovery from the app
Reboot into cwmod recovery from the app
First thing to do its go to the nandroid option and do a backup (always recommended before changing anything)
Then dl the link from above.. This is a new .zip make sure its on the internal sdcard (the 16gb one).. When you reboot into recovery (from the app like last time) go to flash any zip from sdcard.. Choose the new .zip file you just downloaded.. Your /system should now be rw upon reboot
Sent from my SGH-T959 using XDA App
do we rename the adbpushGS1.zip file??
i reboot into recovery and chose reinstall packages because that's all there was, besides deleting ?
edit: i ionstalled the push zip but when i reboot i get stuck at the galaxy s logo
junkdruggler said:
We had are First Sleepless Night with the New baby Boy.... Between Trying Figure out what was Wrong & taking turns with the Wife Holding Aries, I tried Pushing File's & forgot adb push didn't work...
Now this Script originally is what I made for the Behold 2, but the Basic still works For the SGV..
Just mod the script if your using the userinit.sh
Using this script you can place the userinit.sh any place you would Like...
I hope ever gets Good use out of this & Please Enjoy!
~Eugene
Download > adbpushGS1.zip
Installing*
Reboot to recovery, run the update.zip to run ClockworkMod Recovery, then installed the ZIP..
Quoted from eugene's post-- hope this helps...
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
So can I just go into userinit script and add this to the top...
Code:
show_progress 0.100000 0
show_progress 0.500000 0
delete SYSTEM:bin/playlogos1
copy_dir PACKAGE:system SYSTEM:
set_perm 0 1000 0755 SYSTEM:bin/playlogos1
set_perm 0 1000 0755 SYSTEM:bin/playlogosnow
show_progress 0.100000 10
Or was it a diff script we pull from and add to it? Also do I have to put anything after I copy this into the script before the normal script in userinit to signify a pause or finishing one task and starting another?
I saw ;fi placed throughthe script alot and im guessing its afinish point or something to start the next set of commands fresh m???
Pooped from my Samsung Vibrant using XDA app...
Dont mind the skidmarks...
p()()pypants said:
So can I just go into userinit script and add this to the top...
Code:
show_progress 0.100000 0
show_progress 0.500000 0
delete SYSTEM:bin/playlogos1
copy_dir PACKAGE:system SYSTEM:
set_perm 0 1000 0755 SYSTEM:bin/playlogos1
set_perm 0 1000 0755 SYSTEM:bin/playlogosnow
show_progress 0.100000 10
Or was it a diff script we pull from and add to it? Also do I have to put anything after I copy this into the script before the normal script in userinit to signify a pause or finishing one task and starting another?
I saw ;fi placed throughthe script alot and im guessing its afinish point or something to start the next set of commands fresh m???
Pooped from my Samsung Vibrant using XDA app...
Dont mind the skidmarks...
Click to expand...
Click to collapse
I would hate to tell you something wrong... If you use twitter I would ask eugene... or you can send him a pm or here is a link to the OP, you could ask in there
http://forum.xda-developers.com/showthread.php?t=741664
sorry I wasnt more help
Ok so I added that except to the userinit script, lag fix still works, adb doesnt seem to...
Just ran .zip file through clockwork to overwrite other file then just fix later after adb use was done, still no positive results...
Keeps saying
Cannot stat 'touchwizcalendar.apk' : no such file our directory
And if I open a shell and type the same command i get push: not found
Maybe I am just approaching this all wrong and not getting adb set up right first or something...
Can some one just step me through this crap, I can almost always figure this kind of thing out and this is pissing me off that I can't do a simple command to reinstall a damn calendar apk I want and that's the whole frickin point of having root...
Starting fresh again...
Running a fresh flash of vibrant6, have an up to date busy box, no lag fix activated at this time (but files are there from vibe6 and had it installed in the past before nand restoring.stock w/root and flashing fresh vibe 6), no adb push script installed yet but.zip is in root of sd if needed, running version 1.0.26 of adb on my computer and have apk files pulled from deodexed rom that are desired to be pushed sitting in root of sdcard (files named; "TouchWizCalendar.apk", "TouchWizCalendarProvider.apk", "TouchWizCalculator.apk", "ClockPackage.apk".)
Again guys any help would be appreciated as this is driving me nuts and should be slot easier with how some of you make it sound...
Sent from my SGH-T959 using XDA App
Do you use droid explorer? It makes adb much easier...
Sent from my SGH-T959 using XDA App
Finally got the Calendar to show up. Thanks a lot Junkdruggler and other members!
what I got lost... What you trying to do now? What do you want in you system file?
Sent from my SGH-T959 using XDA App
junkdruggler said:
what I got lost... What you trying to do now? What do you want in you system file?
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
I deleted stock samsung calendar (touchwizcalendar) via titaniumbackup and I pushed it back.
oh so your good now? everything working fine?
if so glad I could help...
junkdruggler said:
oh so your good now? everything working fine?
if so glad I could help...
Click to expand...
Click to collapse
Yes, everything is working fine now. Thank you
Can I delete the .apk, .odex, and update.zip from the internal sdcard?
yes you can...they're not needed anymore..
junkdruggler said:
Do you use droid explorer? It makes adb much easier...
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
can i push a boot animation zip using root explorer??
and may i ask how does droid explorer make adb easier?
What kind of boot animation.zip? You prob have to flash that thru recovery...
Droid explorer makes install a one click thing... It adds the sdk to your paths and pushing apps just takes a double click.. Prob more things I don't use also..
Sent from my SGH-T959 using XDA App

Is there a way to flash clockworkmod without fastboot?

My bro has not long got a Dell streak.. but has no computer to hook it up to.
Is there any way round flashing with fastboot?
The phone is already rooted.. so I just need to flash the recovery.
Can handle some command line stuff if anyone knows how to do it.
Thanks.
Sent from my Desire HD using XDA App
Bump!
The phone IS ROOTED already... So if I can mount /system I can delete the install-recovery.sh script so the stock recovery won't reflash.
But Rom manager flashes recovery to the wrong place apparently.
Can anyone tell me if 'flash_image' will work
My bro wants a custom Rom bad... But no pc to get him started
Sent from my Desire HD using XDA App
Maybe with terminal emulator, and clockwork on your sd card... Not sure tho, search the forums.
Just a brain storm.... But could I modify the install-recovery.sh script to flash cwm?
Sent from my Desire HD using XDA App
If someone could upload the script from their phone... Id really appreciate it.
Thanks
Sent from my Desire HD using XDA App
Yes it can be done with terminal on streak just make sure you su.
I will post the script for you if i get time
Cool... I knew it was possible.
He's definatley got Su privileges.. so just need to know the appropriate commands for him to type.
Thanks
Sent from my HTC Vision using XDA App
At a quick guess
Name the recovery something like recovery
copy the Recovery to the SD card
Make sure you have a terminal app on the phone
On the phone, Run the terminal application and type su press enter
Note that the terminal's text prompt will change from # to $
If it doesn't, then you haven't "rooted" the phone. Go back and try again!
In the Terminal, type
flash_image recovery /sdcard/recovery.img
when its done reboot the phone
Thats off top of my head but i think its right

[Script] Change Boot Animation

This is my first contribution for XDA!
Usage: Backup original and replace /system/media/bootanimation.zip
What it does:
Backup original to sdcard (/sdcard/bootanimation.zip.orig)
Replace /system/media/bootanimation.zip with /sdcard/bootanimation.zip
Reboot after replacement
What you need:
Rooted phone (Best way to root: http://forum.xda-developers.com/showthread.php?p=10738467)
Android Terminal Emulator (Market link: https://market.android.com/details?id=jackpal.androidterm)
Custom bootanimation.zip in root of /sdcard
How to use:
Put bootanimation.zip and rebootanim.sh on root of sdcard
Run the script with Terminal Emulator.
Code:
$ su
$ cd /sdcard
$ sh rebootanim.sh
And let it do it's thing and it will reboot after finish
Some bootanimations made by XDA users:
http://forum.xda-developers.com/showthread.php?t=1033818
http://forum.xda-developers.com/showthread.php?t=1035233
http://forum.xda-developers.com/showthread.php?t=901783
There is another way to change the bootanimation already, but you have to use your PC and you must have xRecovery. I made this script so you need only your phone!
Source: http://forum.xda-developers.com/showthread.php?t=901783
Is it so hard to put it on sdcard then copy it using root explorer.
Sent from my E15i using XDA Premium App
as-mario said:
Is it so hard to put it on sdcard then copy it using root explorer.
Sent from my E15i using XDA Premium App
Click to expand...
Click to collapse
I just made this script so it is automatic backup and replace!
as-mario said:
Is it so hard to put it on sdcard then copy it using root explorer.
Sent from my E15i using XDA Premium App
Click to expand...
Click to collapse
hahaha...........
then go to sleep man

Recovery

Important away from a computer for a few days and was wondering if there's a way to flash CWM recovery without a pc or any previous versions of CWM installed. I had the CWM at some point and now when i boot into recovery i have the stock Samsung recovery and can't flash anything......
Sent from my SAMSUNG-SGH-I717 using XDA
I believe you can flash the img from terminal
Yes.
Assuming you're rooted, you should be able to move it to the right partition with a terminal emulator on your phone.
studacris said:
Yes.
Assuming you're rooted, you should be able to move it to the right partition with a terminal emulator on your phone.
Click to expand...
Click to collapse
Sorry but im not familiar with using terminal.....could you post the steps i need to take? Thx in advance
Sent from my SAMSUNG-SGH-I717 using XDA
typically it would go like this
assuming you have the recovery image in the root directory of the sdcard
open the terminal app
$
type 'su'
you should get the # prompt
then
# cd sdcard
# flash_image recovery recovery_image_name
give that a try
jyazzie110 said:
Sorry but im not familiar with using terminal.....could you post the steps i need to take? Thx in advance
Sent from my SAMSUNG-SGH-I717 using XDA
Click to expand...
Click to collapse
animatechnica said:
typically it would go like this
assuming you have the recovery image in the root directory of the sdcard
open the terminal app
$
type 'su'
you should get the # prompt
then
# cd sdcard
# flash_image recovery recovery_image_name
give that a try
Click to expand...
Click to collapse
Thank you!!! I will try that and post results
Sent from my SAMSUNG-SGH-I727 using XDA
animatechnica said:
typically it would go like this
assuming you have the recovery image in the root directory of the sdcard
open the terminal app
$
type 'su'
you should get the # prompt
then
# cd sdcard
# flash_image recovery recovery_image_name
give that a try
Click to expand...
Click to collapse
Still a no go...
Sent from my SAMSUNG-SGH-I727 using XDA
animatechnica said:
typically it would go like this
assuming you have the recovery image in the root directory of the sdcard
open the terminal app
$
type 'su'
you should get the # prompt
then
# cd sdcard
# flash_image recovery recovery_image_name
give that a try
Click to expand...
Click to collapse
I keep getting "error scanning partitions: No such file or ditectory" i have the recovery.img file on the root of my sd card as well
Sent from my SAMSUNG-SGH-I727 using XDA
If you are rooted you can use the goo manager app in the play store to flash TWRP to your phone

Guys Help...I changed my VM Heap size and my galaxy is stuck on Boot Logo..{URGENT]

Hi GUys
I was using Ram Manager . I changed the Heap size to 128 Byte and Noow the phone is stuck on Boot Logo.
I'm rooted on Stock Firmware.
Please help, urgent
Did you backup?
Sent from my GT-I9300 using xda app-developers app
Try another kernel
Nandroid ftw!!
Sent from my GT-I9300 using xda premium
philicibine said:
Try another kernel
Nandroid ftw!!
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
No backup. I've not made any backup beacuse I'm stupid.
Please help; will Reset to factory setting help?
Boot into recovery, connect to your computer, open command prompt and type adb pull /system/build.prop
Edit the build.prop with notepad++ and fix the VM size, chances are that app set the VM size as 128 or 128mb instead of 128m which it should be.
Then once its fixed just adb push it back to /system/build.prop
Sent from my GT-I9300 using xda premium
nodstuff said:
Boot into recovery, connect to your computer, open command prompt and type adb pull /system/build.prop
Edit the build.prop with notepad++ and fix the VM size, chances are that app set the VM size as 128 or 128mb instead of 128m which it should be.
Then once its fixed just adb push it back to /system/build.prop
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
I'm Really noob . Please tell how to :
Boot into Recovery?
How do I push adb ?
eggman89 said:
I'm Really noob . Please tell how to :
Boot into Recovery?
How do I push adb ?
Click to expand...
Click to collapse
Hold volume down, home button and power button together and it will boot into recovery.
I take it you don't have the android sdk on your computer? You need that to use adb.
If not then the easiest option is to factory reset, or maybe someone will make you a flashable zip that will replace your build.prop.
Sent from my GT-I9300 using xda premium
How do I :
"open command prompt and type adb pull /system/build.prop" .
Is it the windows Command Propmt?
If you have these questions you honestly shouldn't be messing with heap size.
Sent from my LG-E739 using Tapatalk 2
eggman89 said:
How do I :
"open command prompt and type adb pull /system/build.prop" .
Is it the windows Command Propmt?
Click to expand...
Click to collapse
Yes, that's it.
First type "adb devices" (no" ")
If you get a long serial number then adb is set up on your computer but I doubt it seeing as you are asking how to boot into recovery.
I take it you have a custom recovery?
If you give me a few mins I'll make you a flashable zip that will replace your build.prop, tell me what rom you are on
Sent from my GT-I9300 using xda premium
Lutin said:
If you have these questions you honestly shouldn't be messing with heap size.
Sent from my LG-E739 using Tapatalk 2
Click to expand...
Click to collapse
I know. I made a stupid mistake and I don't even know why I changed it?
How do I do factory reset?What will I lose?
nodstuff said:
Yes, that's it.
First type "adb devices" (no" ")
If you get a long serial number then adb is set up on your computer but I doubt it seeing as you are asking how to boot into recovery.
I take it you have a custom recovery?
If you give me a few mins I'll make you a flashable zip that will replace your build.prop, tell me what rom you are on
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
Hi
I'm on stock LFB (Indian Version).
I am on CWM-based Recovery c5.5.0.4
nodstuff said:
Yes, that's it.
First type "adb devices" (no" ")
If you get a long serial number then adb is set up on your computer but I doubt it seeing as you are asking how to boot into recovery.
Click to expand...
Click to collapse
I get adb is not a recognized internal or external command.
I also deleted dalvik cache; but it didn't help
eggman89 said:
I get adb is not a recognized internal or external command.
I also deleted dalvik cache; but it didn't help
Click to expand...
Click to collapse
Get me a build.prop from that firmware and I'll make you a zip you can flash in cwm.
You'll find it in the system folder.
Sent from my GT-I9300 using xda premium
nodstuff said:
Get me a build.prop from that firmware and I'll make you a zip you can flash in cwm.
You'll find it in the system folder.
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
I'm unable to access filesystem
Let me ask someone?
eggman89 said:
I'm unable to access filesystem
Let me ask someone?
Click to expand...
Click to collapse
Download another one from samfirmware.com
I'm not downloading it for you.
Sent from my GT-I9300 using xda premium
nodstuff said:
Download another one from samfirmware.com
I'm not downloading it for you.
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
Yes. I'm already downloading it. It's about 800mb and it'll take about 36minutes more.
Once I get that I'll provide it to you.
Thanks a lot for the help
But how will I push the build.prop ?
nodstuff said:
Download another one from samfirmware.com
I'm not downloading it for you.
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
he needs adb to push the zip to his mobile first.
bala_gamer said:
he needs adb to push the zip to his mobile first.
Click to expand...
Click to collapse
How do I get adb?
eggman89 said:
Yes. I'm already downloading it. It's about 800mb and it'll take about 36minutes more.
Once I get that I'll provide it to you.
Thanks a lot for the help
But how will I push the build.prop ?
Click to expand...
Click to collapse
man if you are downloading the full rom, better flash it via odin . job done. almost all the stock roms are non wipe

Categories

Resources