Missing install-recovery.sh in stock root please help - GT540 Optimus General

I DLed Stock_Rooted_and_Optimized.zip and followed the steps. While im in the ABD SHELL and put in the command mv /system/etc/install-recovery.sh /system/etc/install-recovery.sh.bak it tell me the file does not exist. I looked in the ETC file and there is no install-recovery.sh. how do i fix this or find that file.

Related

[recovery hack] How to get back recovery 2e

Helo
I found a way to return to the recovery 2e
recovery 2e
Copying a file using the Root Explorer
# unzip and put archive contents in a folder called recovery2e on /sdcard/
# first mount -o remount,rw /system (important options in Root Explorer for do this)
# file recovery copy to /system/bin (and replace)
# xbi folder contents copy to /system/xbin/ (and replace)
Click to expand...
Click to collapse
Method by captive thanks buddy
# put archive contents in a folder called recovery2e on /sdcard/
# open a shell and get root (ADB or Terminal on Phone, type su and pres enter / accept )
# remount /system rw (busybox mount -o remount,rw /system)
# rename recovery in /system/bin to recovery3e (for backup purposes)
# copy "recovery" from /sdcard/recovery2e/ to /system/bin/ (cp /sdcard/recovery2e/recovery /system/bin/)
# copy the folder /sdcard/recovery2e/xbin/recovery to /system/xbin/ (cp -rr /sdcard/recovery2e/xbin/recovery /system/xbin/)
# enjoy!
Click to expand...
Click to collapse
Restart your phone
Isn't anyone going to comment on this?
Gurus: does it really work? That simple?
Thanks
Didn't work for me - used root explorer method. Now just hangs when I try to get recovery mode. Can get download mode ok still, and phone boots ok of course. Running JPM with root and voodoo5 3. Anything else to try?
Does not work on JPM....
it no works.
Phone: Doc's JP6 + voodoo pre3 + rooted
Method: Root explorer.
1, during copy the xbin folder to system, it shows "replace files" but after i check inside the system/xbin, the files are disappared??!! I did manually copy everything one after one from xbin to system/xbin, but i can't see where they are after copy.
2, anyway, i reboot the phone with 3b combo, the recovery mode still showing 3e.
so i say it no works. anyone tried the cable methed?
this thing work but it needs a little workaround as discussed by danzel. follow here: http://forum.xda-developers.com/showthread.php?t=774500&page=188
Could you please update the instruction for jp6 + voodoo pre4?
abd remount (don't know why) isn't working and /system is always ro so adb push and shell (adb shell works) cmd aren't working.
It is correct to remove su and busybox int the extracted folder since i have both already installed?
I was on JPM, followed the instructions.
Phone couldn't boot, lost ability to enter recovery. Luckily I could still enter Download mode, flashed to JPM, but being on voodoo kernel before that, didn't managed to disable lagfix before getting into this trouble - Couldn't revert back to RFS, and without ability to enter recovery to format.
Finally reverted back to Eclair firmware, could see my beloved recovery again. No way I'm going through the above again.
The above is just my own experience, for reference just in case someone is as unlucky as me.
This is the clear step on recovering the recovery2e
Recover recovery2 e
1. uncompress the downloaded file recovery 2e and copy the direcotry to sdcard and rename it to recovery2e
2. Using root explorer copy File recovery from recovery2e on sdcard to /system/bin
3. Using root explorer copy Folder recovery in xbin to /system/xbin
4. If did not work try copy xbin folder over /system/xbin folder
Ok, confirmed working for me on JPM+Voodoo.
I installed Rom Manager too, and CWM Recovery is fully working too!! TNX
xtrememorph said:
This is the clear step on recovering the recovery2e
Recover recovery2 e
1. uncompress the downloaded file recovery 2e and copy the direcotry to sdcard and rename it to recovery2e
2. Using root explorer copy File recovery from recovery2e on sdcard to /system/bin
3. Using root explorer Folder recovery in xbin to /system/xbin
Click to expand...
Click to collapse
Your method DO NOT work at all. I cannot enter recovery mode.
Fortunately download mode is still available.
JPM+Voodoo5 pre6
lagigia, what didn't work for you?
Here's what I did:
put archive contents in a folder called recovery2e on /sdcard/
open a shell and get root
remount /system rw (busybox mount -o remount,rw /system)
rename recovery in /system/bin to recovery3e (for backup purposes)
copy "recovery" from /sdcard/recovery2e/ to /system/bin/ (cp /sdcard/recovery2e/recovery /system/bin/)
copy the folder /sdcard/recovery2e/xbin/recovery to /system/xbin/ (cp -rr /sdcard/recovery2e/xbin/recovery /system/xbin/)
enjoy!
if using the root explorer method, copy xbin folder content, do not try to overwrite the entire dir on top.
mike.sw said:
if using the root explorer method, copy xbin folder content, do not try to overwrite the entire dir on top.
Click to expand...
Click to collapse
too late is there a way to solve it or get a step back?
thx!
i think u can just flash only the old kernel back and it will be fixed (only zimage).
captive said:
lagigia, what didn't work for you?
Here's what I did:
put archive contents in a folder called recovery2e on /sdcard/
open a shell and get root
remount /system rw (busybox mount -o remount,rw /system)
rename recovery in /system/bin to recovery3e (for backup purposes)
copy "recovery" from /sdcard/recovery2e/ to /system/bin/ (cp /sdcard/recovery2e/recovery /system/bin/)
copy the folder /sdcard/recovery2e/xbin/recovery to /system/xbin/ (cp -rr /sdcard/recovery2e/xbin/recovery /system/xbin/)
enjoy!
Click to expand...
Click to collapse
Thanks, works fine on JPM/JP6
Could we get a newbie friendly guide please. Get root. What does that mean and should i just type what you quoted. Thanks
Sent from my GT-I9000 using XDA App
Edited the first post and put the new, easy tutorial
Could i get some background on this, please?
Is it correct that:
1) recovery2e is the default samsung recovery?
2) new versions of recovery2e can't apply all the update.zip we were able to apply with the older versions? (unsigned, signed??)
3) This is why we need the old recovery2e to replace the new one?
4) Where did the issue started? Since Froyo releases?
5) Is this why we can't root Froyo FWs with an update.zip anymore like it was the case with Eclair?
I'm really sorry if this is kinda obvious but i never really saw any clear explanation about this. Hope someone could clear it up for me
1) Yes
2) Correct on recovery 2e you can't apply all the update.zip
4) Yes, New tutorial on fist post
4) The JPM ROM brings new recovery 3e
5) You can root phone by flash kernel with root by odni

Help me make a file executable.

Thanks for helping me out.
My Vibrant is rooted. When I adb shell into my phone and try to ./file or chmod 755 file it gives me a permission denied.
I believe I am already running as su in the terminal. Anyway I can get Android to let me modify the file? The file in question in on my sdcard, not in /system.
Thanks!
symbit said:
Thanks for helping me out.
My Vibrant is rooted. When I adb shell into my phone and try to ./file or chmod 755 file it gives me a permission denied.
I believe I am already running as su in the terminal. Anyway I can get Android to let me modify the file? The file in question in on my sdcard, not in /system.
Thanks!
Click to expand...
Click to collapse
/sdcard is mounted noexec, you can't mark files executable on it. You could remount it, but it's handled by vold so you probably meted to change the configuration for vold to get it to stick. If you are trying to run a script, use "sh script.sh".

Cannot find install-recovery.sh

I've rooted and flashed streakmod recovery successfully but cannot seem to find install-recovery.sh to rename it to keep streakmod around. I have read posts/guides that say it is in /etc/ and in /system/etc but it doesn't seem to be in either.
Using a root enabled session of file expert to search for the file.
Streak is running stock froyo build 340
please advise
data_loss said:
I've rooted and flashed streakmod recovery successfully but cannot seem to find install-recovery.sh to rename it to keep streakmod around. I have read posts/guides that say it is in /etc/ and in /system/etc but it doesn't seem to be in either.
Using a root enabled session of file expert to search for the file.
Streak is running stock froyo build 340
please advise
Click to expand...
Click to collapse
Dunno about file expert but in Root Explorer you have to enable the show hidden files option
I've enabled showing hidden files, super user privileges, mounting /system writable and even tried a couple different explorer apps to make sure I'm not crazy.
Here is the output when I look in the terminal:
Code:
$ su
# ls -a /system/etc/i*
/system/etc/init.streak.fm.sh
/system/etc/init.streak.post_boot.sh
Is there any other mechanism for disabling the recovery restore. What calls install-recovery.sh in the first place?
TIA
What rom are you on?
Preinstalled roms (roms that never existed as pkgs such as 347/357) dont have install-recovery.sh

Copying folder to another in zip packages

Hi,
I want to create an updater-script file that copies /sdcard/data to /data,
How can i do this? dd and cp commands say 'cannot find /sdcard/data/*: no such file or directory'
I don't want to integrate files in the zip package
Is there a way or a command to do that?
I searched on the web, but seems i cannot a working solution, maybe you can anwser
Well your query is wrong.updater-script is for flashable zips and in your case you don't want to integrate the files in the zip right?
Try using this command via terminal :
#cp ~/sdcard/data/*your data /data
what are you trying to do?? o_0
files in sdcards have ownership system:sdcard_rw and permissions something like ----rwx-r-x
to copy files with cp to /data.. you need to be root on terminal/adb shell
the copy will change ownership to root:root while keeping permissions intact...
with such odd permissions and ownership for files in /data .. you are looking at a bootloop..
you'd have to fix permissions for each and every thing incase you really need to copy it
can you tell what are you trying to copy.. and what's in /sdcard/data :|
Hi, sorry for my late reply
I will try that command and post result, :good:
It worked, thanks

[HELP] [Battery capacity] Cannot save/push/copy file to root of device

hello guys. battery of my zf5 is dead. i have dissambled it and get the controller, and i have conected another battery (bigger one, 6000mah) to controller.
now device work, but it using only 2100 mah from battery, because this value is setted in framework-res.apk, and in the charge-full file from /sys/class/power_supply/battery.
now, i have modified value in the framework-res.apk, recompiled it and pushed to device (no problem with this).
now, i have pulled charge-full file from /sys/class/power_supply/battery folder, modified it, but i cannot copy/replace it back to device.
i have root, i have rw permisions to root of device.
i have chmod 777 -R /sys/class/power_supply/battery folder, chmod +x -R /sys/class/power_supply/battery folder. i have try to change owner of /sys/class/power_supply/battery/charge-full file. but no luck, allways i get Failed: operation not permited.
tryed copy/replace from adb shell, from twrp file manager, from twrp terminal. no luck
can please anyone help me?
thx!!

Categories

Resources