Reboot in the recovery script - G1 Q&A, Help & Troubleshooting

Is there any way I can make a shortcut on my home screen that reboots the phone in to recovery mode?

isikh said:
Is there any way I can make a shortcut on my home screen that reboots the phone in to recovery mode?
Click to expand...
Click to collapse
use gscript .. make a script that just has "reboot recovery" and then with gscript you can add that shortcut

xidominicanoix said:
use gscript .. make a script that just has "reboot recovery" and then with gscript you can add that shortcut
Click to expand...
Click to collapse
Thanks for responding; is this an app in the android marketplace?

Related

[Q] Lost root

I am on Korean v30J rom. I don't know what I've done, but sudenly, when I want to backup my applications on titanium, I don´t get root permissions. I've tested it with several applications and it always shows a message of not allowed root permissions.
Any suggestion?
if you can go into recovery(by power menu or g-recovery), flash superuser.zip and you shall be fine
theaks30 said:
if you can go into recovery(by power menu or g-recovery), flash superuser.zip and you shall be fine
Click to expand...
Click to collapse
No, this V30J rom doesn't allow it.
arventaria said:
No, this V30J rom doesn't allow it.
Click to expand...
Click to collapse
Use adb or terminal emulator.
Code:
reboot recovery
Some apps on market can reboot to recovery and for some unkown reason they wan't root. It's not needed so don't worry about it.
xonar_ said:
Use adb or terminal emulator.
Code:
reboot recovery
Some apps on market can reboot to recovery and for some unkown reason they wan't root. It's not needed so don't worry about it.
Click to expand...
Click to collapse
Thank you. Terminal emulator worked :good:
I was thinking about re-rooting my phone.

Reboot in recovery.

Hi. I have a stock based rom, deodexed. I cant' reboot in recovery with the shoutdown menù. I tried also with apps like rom manager, recovery boot does not works, every time goes in normal reboot. Anyone can give me some suggestions?
Although the power button + vol- button work as normal, but i want to set the "recovery reboot" in the menù, also reboot in fastboot and bootloader boot
I have cwm 6.0.4.5...
It happens to me too!
I have deodexed Stock ROM 4.1.2 and I wanted to add advanced power menu with 4 -Way Reboot: Reboot, Hot Boot, Bootloader and Recovery.
I have followed many guides and in particular this (here my post)
Now all reboots work, except Recovery Reboot:
when I select "Recovery" the phone restart normally!!
After several tests, I tried to use some scripts to reboot into Recovery!
First Script:
Code:
#!/system/bin/sh
echo "boot-recovery" | /system/bin/dd of=/dev/block/mmcblk0p5 bs=1 count=13
When I run this script, the phone reboot into Recovery only the first time and any option I selected, the phone always restarts in Recovery! Why?
Second Script:
Code:
#!/system/bin/sh
rm /cache/recovery/command ; echo 'boot-recovery' | dd of=/dev/block/mmcblk0p5 bs=1 count=13 ; reboot ;
When I run this script, the phone reboot into Recovery immediately!
Now I would like know how I can fix this Problem!
And those scripts serve to reboot the phone into recovery via Advanced Power Menu?
I tried everything and I do not know where I'm wrong!
Are you both running cwm? Could that be the issue?
Sent from my Nexus 5 using Tapatalk
Install "Xposed Framework" and "Advanced Power Menu" to get your wanted options...
Ben36 said:
Are you both running cwm? Could that be the issue?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
I have tried many Recovery: TWRP 2.3.6.0, CWM 6.0.3.1 and 6.0.4.5, PhilZ Touch.
What do you suggest?
Fladder72 said:
Install "Xposed Framework" and "Advanced Power Menu" to get your wanted options...
Click to expand...
Click to collapse
I dont want "Xposed Framework", I want to fix my problem
glfsd said:
I have tried many Recovery: TWRP 2.3.6.0, CWM 6.0.3.1 and 6.0.4.5, PhilZ Touch.
What do you suggest?
I dont want "Xposed Framework", I want to fix my problem
Click to expand...
Click to collapse
Me too
paolotheking said:
Hi. I have a stock based rom, deodexed. I cant' reboot in recovery with the shoutdown menù. I tried also with apps like rom manager, recovery boot does not works, every time goes in normal reboot. Anyone can give me some suggestions?
Although the power button + vol- button work as normal, but i want to set the "recovery reboot" in the menù, also reboot in fastboot and bootloader boot
I have cwm 6.0.4.5...
Click to expand...
Click to collapse
You have to edit the frameworks to add the option, you'll need the android kitchen for that.
The fastboot reboot won't work, the fastboot boot option will work somewhat if you add "-c "androidboot.mode=normal"" as in fastboot boot [kernel.img] -c "androidboot.mode=normal"
It will have some problems but it'll work.
IcanhasLG said:
You have to edit the frameworks to add the option, you'll need the android kitchen for that.
The fastboot reboot won't work, the fastboot boot option will work somewhat if you add "-c "androidboot.mode=normal"" as in fastboot boot [kernel.img] -c "androidboot.mode=normal"
It will have some problems but it'll work.
Click to expand...
Click to collapse
I think he means that he isn't able to reboot to recovery with the option from the shutdown menu, not that there isn't one.
As he wrote he can't boot to recovery with ROM Manager either.
I had such problems back in the beginning of 4.3 development but and on stock too.
Maybe try to grab a log from boot if you tried to reboot to recovery.
Sent from my LG-P880 using XDA Premium 4 mobile app
Omario-242 said:
I think he means that he isn't able to reboot to recovery with the option from the shutdown menu, not that there isn't one.
As he wrote he can't boot to recovery with ROM Manager either.
I had such problems back in the beginning of 4.3 development but and on stock too.
Maybe try to grab a log from boot if you tried to reboot to recovery.
Sent from my LG-P880 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Rom Manager Free does not reboot in recovery, like other app, but Rom Manager Premium works...
Omario-242 said:
I think he means that he isn't able to reboot to recovery with the option from the shutdown menu, not that there isn't one.
Click to expand...
Click to collapse
exactly
Omario-242 said:
...Maybe try to grab a log from boot if you tried to reboot to recovery.
Click to expand...
Click to collapse
how to do it? I tried with adb
Code:
adb logcat > log.txt
or
Code:
adb logcat -v long > logcat.txt
but there are too much informations and I can not find the problem
I attach also "last_log" found in /cache/recovery/
..I do not know ..... but i think the problem is due to cwm
sorry for my poor english
glfsd said:
exactly
how to do it? I tried with adb
Code:
adb logcat > log.txt
or
Code:
adb logcat -v long > logcat.txt
but there are too much informations and I can not find the problem
I attach also "last_log" found in /cache/recovery/
..I do not know ..... but i think the problem is due to cwm
sorry for my poor english
Click to expand...
Click to collapse
maybe is a cwm problem, anyone can help us?

no recovery, no download mode, no micro usb, but root?

hello dears,
i have very big problem with my c6603. i installed first lollipop hongkong version to my c6603. every function works but i want to install mods and other roms but; my phones usb port doesnt let the pc recognize as "phone". it is not driver problem ; it is hardware failure definetly. the port just charging my phone. And on the phone there is no recovery and download mode. But phone has root. i tried a few things to install custom recovery but couldnt be success. unlocked bootloader but no recovery as i said. i really appreciate if there is a solution. many thanks
mca1 said:
hello dears,
i have very big problem with my c6603. i installed first lollipop hongkong version to my c6603. every function works but i want to install mods and other roms but; my phones usb port doesnt let the pc recognize as "phone". it is not driver problem ; it is hardware failure definetly. the port just charging my phone. And on the phone there is no recovery and download mode. But phone has root. i tried a few things to install custom recovery but couldnt be success. unlocked bootloader but no recovery as i said. i really appreciate if there is a solution. many thanks
Click to expand...
Click to collapse
How did you install that Hong Kong lollipop?
mca1 said:
hello dears,
i have very big problem with my c6603. i installed first lollipop hongkong version to my c6603. every function works but i want to install mods and other roms but; my phones usb port doesnt let the pc recognize as "phone". it is not driver problem ; it is hardware failure definetly. the port just charging my phone. And on the phone there is no recovery and download mode. But phone has root. i tried a few things to install custom recovery but couldnt be success. unlocked bootloader but no recovery as i said. i really appreciate if there is a solution. many thanks
Click to expand...
Click to collapse
Hi there.If you have root access and unlocked bootloader,you can install TWRP even without pc connection.
first you should download a terminal emulator app from google play.
then you should download the latest version of TWRP image file from here https://dl.twrp.me/yuga/.
Place it in the root of your /sdcard folder and rename it to twrp.img
Run the following commands in terminal app
Code:
su
and then we write recovery image file to FOTA with dd command.
Code:
dd if=/sdcard/twrp.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
and it's done.
press thanks if it was helpful.
i installed hk lollipop zip from my custom twrp recovery. and when rom istall has finished ; recovery gone.
mrp1375 said:
Hi there.If you have root access and unlocked bootloader,you can install TWRP even without pc connection.
first you should download a terminal emulator app from google play.
then you should download the latest version of TWRP image file from here https://dl.twrp.me/yuga/.
Place it in the root of your /sdcard folder and rename it to twrp.img
Run the following commands in terminal app
Code:
su
and then we write recovery image file to FOTA with dd command.
Code:
dd if=/sdcard/twrp.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
and it's done.
press thanks if it was helpful.
Click to expand...
Click to collapse
thank you mrp1375 but i tried this method and when i want to go recovery phone only restarts. because phone has no stock recovery.
mca1 said:
thank you mrp1375 but i tried this method and when i want to go recovery phone only restarts. because phone has no stock recovery.
Click to expand...
Click to collapse
Below are 2 solutions to get a properly working recovery
Preperation:
1. Download Dual recovery installer: XZ-lockeddualrecovery2.8.23-RELEASE.combined.zip
2. Install NDRUtils
Next up we will test if the TWRP you installed works or not
-open NDRUtils and choose to boot into TWRP recovery.
Now unhide the result that you got to continue with the installation:
OK: I am now in TWRP
flash XZ-lockeddualrecovery2.8.23-RELEASE.combined.zip and reboot.
Everything will work normally now.
Not OK: I am not in TWRP
Reboot the phone if you have to (hold power until you feel 3 vibrations and then turn the phone back on)
You need to download this: http://nut.xperia-files.com/path/XZDualRecovery/Kernel_Builder
To get the right file make sure to selec the xperia z c6603 and select the rom version you are using, you can view what you have in settings, about phone, build number.
it will be much easier for you if you install this: X-plore File Manager The reason i recommend this application is that it automatically makes sure the file rights are correct.
Go into the settings and enable superuser +mount root mode
Now you can browse to the folder where you downloaded the zip in the left pane.
go into the zip and and then into tmp
Select the boot.img
now move to the right pane and browse to the root of your SD card like the comment above
go back to the left pane and with boot.img still checked click copy.
Now follow the original instructions mrp1375 gave you, but notice the different filename
Open terminal
Type : su
Type: dd if=/sdcard/boot.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
Now you can reboot and if it worked the phone will vibrate twice and show a green led meaning you can press the down button to enter TWRP recovery.
Go into the recovery and now flash XZ-lockeddualrecovery2.8.23-RELEASE.combined.zip so you get a proper installation
Now remember this very important fact:
Whenever you flash or wipe anything you MUST reinstall recovery and root again.
This is a failsafe strategy you can NEVER ignore becaus of your usb issues.
Keep SuperSu installer and XZ-lockeddualrecovery installer on your device at all times!
thank you
mca1 said:
thank you
Click to expand...
Click to collapse
Does that mean it worked?
tetsuo55 said:
Does that mean it worked?
Click to expand...
Click to collapse
Yes it worked, thank you much. :good:
tetsuo55 said:
Below are 2 solutions to get a properly working recovery
Next up we will test if the TWRP you installed works or not
-open NDRUtils and choose to boot into TWRP recovery.
Now unhide the result that you got to continue with the installation:
OK: I am now in TWRP
flash XZ-lockeddualrecovery2.8.23-RELEASE.combined.zip and reboot.
Everything will work normally now.
Not OK: I am not in TWRP
Reboot the phone if you have to (hold power until you feel 3 vibrations and then turn the phone back on)
You need to download this:
To get the right file make sure to selec the xperia z c6603 and select the rom version you are using, you can view what you have in settings, about phone, build number.
it will be much easier for you if you install this: The reason i recommend this application is that it automatically makes sure the file rights are correct.
Go into the settings and enable superuser +mount root mode
Now you can browse to the folder where you downloaded the zip in the left pane.
go into the zip and and then into tmp
Select the boot.img
now move to the right pane and browse to the root of your SD card like the comment above
go back to the left pane and with boot.img still checked click copy.
Now follow the original instructions mrp1375 gave you, but notice the different filename
Open terminal
Type : su
Type: dd if=/sdcard/boot.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
Now you can reboot and if it worked the phone will vibrate twice and show a green led meaning you can press the down button to enter TWRP recovery.
Go into the recovery and now flash XZ-lockeddualrecovery2.8.23-RELEASE.combined.zip so you get a proper installation
Now remember this very important fact:
Whenever you flash or wipe anything you MUST reinstall recovery and root again.
This is a failsafe strategy you can NEVER ignore becaus of your usb issues.
Keep SuperSu installer and XZ-lockeddualrecovery installer on your device at all times!
Click to expand...
Click to collapse
Hey! I have the same problem as the OP here. I followed the instructions like 5 times and still couldnt get it to work. The terminal is saying that "No space left on device" when i type "dd if=/sdcard/boot.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel"
any way to fix this? Thanks!
comcastic08 said:
Hey! I have the same problem as the OP here. I followed the instructions like 5 times and still couldnt get it to work. The terminal is saying that "No space left on device" when i type "dd if=/sdcard/boot.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel"
any way to fix this? Thanks!
Click to expand...
Click to collapse
That error sounds like either you dont have root or you have a typo, can you make a screenshot?
tetsuo55 said:
That error sounds like either you dont have root or you have a typo, can you make a screenshot?
Click to expand...
Click to collapse
snag. gy/gi8Ji. jpg
sorry i cant post links yet
comcastic08 said:
snag. gy/gi8Ji. jpg
sorry i cant post links yet
Click to expand...
Click to collapse
That doesnt look quite right it should look like this:
Code:
[email protected]:/ $
Then you type "su" (without the quotes) and press enter
The display then changes to:
Code:
[email protected]:/ #
Now you type "dd if=/sdcard/twrp.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel" (without the quotes) and press enter
And then it should work properly.
tetsuo55 said:
That doesnt look quite right it should look like this:
Code:
[email protected]:/ $
Then you type "su" (without the quotes) and press enter
The display then changes to:
Code:
[email protected]:/ #
Now you type "dd if=/sdcard/twrp.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel" (without the quotes) and press enter
And then it should work properly.
Click to expand...
Click to collapse
i typed su before that code and the same error occured sadly
why did my usb port had to break ugh
comcastic08 said:
i typed su before that code and the same error occured sadly
why did my usb port had to break ugh
Click to expand...
Click to collapse
Can I have another screenshot of that?
tetsuo55 said:
Can I have another screenshot of that?
Click to expand...
Click to collapse
snag .gy/AekHa. jpg
comcastic08 said:
snag .gy/AekHa. jpg
Click to expand...
Click to collapse
In that screenshot i see again the same mistake i mentioned before
please do this
Just type only su and enter
and then send me the screenshot of that.
tetsuo55 said:
In that screenshot i see again the same mistake i mentioned before
please do this
Just type only su and enter
and then send me the screenshot of that.
Click to expand...
Click to collapse
snag. gy/aWyCY .jpg
comcastic08 said:
snag. gy/aWyCY .jpg
Click to expand...
Click to collapse
All i can think of is that you have the wrong boot.img
tetsuo55 said:
All i can think of is that you have the wrong boot.img
Click to expand...
Click to collapse
i downloaded the one you said XZ-lockeddualrecovery2.8.23-RELEASE.combined.zip and renamed it to boot.img
even the twrp.img doesnt work ugh

wipe cache partition

Anyone any idea how to do this now. The option is gone from erecovery
9.1.0.382
dlevick said:
Anyone any idea how to do this now. The option is gone from erecovery
9.1.0.382
Click to expand...
Click to collapse
. 382? Meant. 328, right?
1. Phone Off.
2. Push and hold Vol+ & Power-Button until you're in menue.
3. Push 'Whipe Cache'
4. Reboot
5. Be a happy Unicorn
CaptainKaracho said:
. 382? Meant. 328, right?
1. Phone Off.
2. Push and hold Vol+ & Power-Button until you're in menue.
3. Push 'Whipe Cache'
4. Reboot
5. Be a happy Unicorn
Click to expand...
Click to collapse
Does the p20 pro optimizer app wipe the cache automatically if initiated?
newp20pro said:
Does the p20 pro optimizer app wipe the cache automatically if initiated?
Click to expand...
Click to collapse
Sadly no it needs to be done in recovery
Also, you need to do that actions with the phone not connected to anything via USB cable, not even charging, or else it would go into eRecovery(useful for updates), not normal Recovery.
Ive tried this method vol up and per button but it shows emu symbol then software install failed
quinnford said:
Ive tried this method vol up and per button but it shows emu symbol then software install failed
Click to expand...
Click to collapse
Do you have a folder named "dload" in the root directory?
quinnford said:
Ive tried this method vol up and per button but it shows emu symbol then software install failed
Click to expand...
Click to collapse
To get to the right menu to wipe the cache partition, I had to let go of the power button once I saw the Huawei symbol come up on the screen but still keep my finger on the volume up button until the menu displayed.

[RECOVERY][UNOFFICIAL] TWRP 3.7.0 for the XPeria Z5 compact (suzuran)

Hi all:
Here is a TWRP recovery 3.7.0 for XPeria Z5 compact (suzuran).
Download 2022-12-23
This is a 7z archive with the TWRP image and the md5 file in it. Please unpack this archive. The md5 file is only for control purposes to verify that the download is not broken.
To verify the image file, enter this command line in a terminal window:
Code:
md5sum <image_name>
and compare the output with the content of the <image_name>.md5 file.
FYI: <image_name> is the full name of the image file, for example TWRP_3.7.0_9-0-recovery_suzuran_2022-12-23.img
This version uses a prebuilt kernel, therefore are no kernel sources needed.
Tree sources
Installation instructions:
Shutdown your device.
Wait about 10 seconds to be sure that the device is really shut down.
Press Volume-up, hold the button and then plug in the USB-Cable.
Release the button.
Wait until the LED turns blue.
Enter this code line in a terminal window:
Code:
fastboot flash recovery <image_name>
Press Enter.
When finished: Unplug the USB cable.
To enter TWRP press Volume-down and Power simultaneously.
Use this recovery image at your own risk! It comes without any warranty! I'm not responsible for any damage! If you don't agree with that, don't try to flash this recovery image in any way.
Thanks berni, its great project.
Also, this twrp can install without pc by using "Official TWRP App" in Play Store.
For install, open that app and give root permission and tap TWRP FLASH. after that, pass the device (our device isnt in list) just tap select a file to flash and select twrp img file.
After select, tap FILE TO FLASH and enjoy.
Works:
+Backup.
+Restore
+mount (all is works)
+unmount
+Wipe.
+Flash rom.
+Battery Percentage (need to wait a bit)
+terminal
+file manager (show, remove, create)
Doesnt Works:
-CPU temperature (shows 0 degree)
Maybe Bug:
?in reboot menu, there isnt "recovery"
?in reboot menu, there are system, power off but that 2 sector's icons are "file directory"
TRKARTAL said:
Works:
Click to expand...
Click to collapse
Good.
Doesnt Works:
-CPU temperature (shows 0 degree)
Click to expand...
Click to collapse
Hmmm...
?in reboot menu, there isnt "recovery"
?in reboot menu, there are system, power off but that 2 sector's icons are "file directory"
Click to expand...
Click to collapse
I'll take a look into it asap.
TRKARTAL said:
Doesnt Works:
-CPU temperature (shows 0 degree)
Click to expand...
Click to collapse
Fixed; see 1st post.
Maybe Bug:
?in reboot menu, there isnt "recovery"
Click to expand...
Click to collapse
There must be a logic behind this. I'm not familiar enough with TWRP (and I also don't have enough time) to fix that.
?in reboot menu, there are system, power off but that 2 sector's icons are "file directory"
Click to expand...
Click to collapse
Fixed; see 1st post.
FYI: This is not a bug, it's a feature. In future versions some buttons will be replaced with this list style. I had to revert a commit to restore the button style.
But I'm quite sure that this will not work in the future any more.
I hardly dare to ask: in this TWRP, is decryption of /data working?
No worries; you can ask.
No, encryption is not working. This seems to be a general problem that seems not to be solvable! I'm sorry.
New version out; see 1st post.
I've tried to implement encryption but since I'm not using it I can't test it.
Please report, if it's working or not.
Berni-0815 said:
New version out; see 1st post.
I've tried to implement encryption but since I'm not using it I can't test it.
Please report, if it's working or not.
Click to expand...
Click to collapse
It does not seem to work, tested on los 14.1 and aex 4.6...
Code:
E:Decryption took too long, killing process
Decryption not working (after trying by switching from delock pattern to PIN, due to lack of support of (de)lock pattern in the twrp) on 14.1
DevelLevel said:
It does not seem to work
Click to expand...
Click to collapse
Thanks. Back to previous version...
After installing this test-twrp it is not possible to enter bootloader mode... Blue light for only around 1 sec., then reboot into normal mode.
Any workaround?
Ermann123 said:
After installing this test-twrp it is not possible to enter bootloader mode... Blue light for only around 1 sec., then reboot into normal mode.
Any workaround?
Click to expand...
Click to collapse
can you try:
Code:
adb reboot bootloader
TRKARTAL said:
can you try:
Code:
adb reboot bootloader
Click to expand...
Click to collapse
this worked , thx!
your welcome erman
Ermann123 said:
is not possible to enter bootloader mode
Click to expand...
Click to collapse
Do you have a button for entering bootloader?
Berni-0815 said:
Do you have a button for entering bootloader?
Click to expand...
Click to collapse
I have button in extended shutdown menu, but it didnt work, BUT the hint from TRKARTAL did : "adb reboot bootloader"
Anyway, Berni, or others, I would very appreciate further effort to get the En/decrytion working. I would even donate something therefore
Because it is essential to avoid a lot of manual backup/restoring of data when trying / upgrading another (newer) ROM version.
Ermann123 said:
I have button in extended shutdown menu
Click to expand...
Click to collapse
I haven't seen an extended shutdown menu in TWRP. Could you please point me to that?
Ermann123 said:
I would very appreciate further effort to get the En/decrytion working
Click to expand...
Click to collapse
We have tried a lot to get it working, but unfortunately until now without any success!
Of course, I meant the extended shutdown menu of the lineage OS.
In this TWRP there is not such feature, but I have seen it on other devices, like TWRP for Z3 Tablet.
Keep on trying, pls!

Categories

Resources