Remove All Ads from XDA

[25-11-2013] Photon Q Open Recovery 2.09

1,240 posts
Thanks Meter: 2,395
By Skrilax_CZ, XDA Ad-Free Recognized Developer on 29th March 2013, 12:25 AM
Post Reply Email Thread

Open recovery is a easy-to-use and easy-to-edit recovery based on shell scripts. It features advanced nandroid

and on-phone console (well, it's a QWERTY phone).


- on-phone console, with full QWERTY keyboard support
- nandroid backup / restore from menu for all relevant partitions, with ability to select with partitions are to be backed up and which are to be restored and possibility to reboot the device after backup / restoration is finished
- wipe data (factory reset)
- wipe cache / wipe dalvik-cache
- mass storage mode for external sdcard
- adb in recovery, using bash shell
- running bash scripts in recovery from internal / external storage (!shell is /sbin/bash)
- applying files from internal / external storage
- multiple themes
- improved menu navigation (holding a key works)


- OK key is CTRL, pressing SYM + DELETE forcibly exits the console
- scroll using volume keys (use shift to scroll faster)
- shift + arrow keys puts < | > ~ characters
- text editors will not work as not all escape characters are implemented

Changing a theme:
- "Theme" submenu under settings menu.


Version 2.09
- fixed issues with internal sd card
- fixed issues with SE Linux kernel

Version 2.08
- added support for sideload
- internal backups and settings are moved to /data/OpenRecovery to prevent them having moved to 0 folder upon each ROM install
- fixed nandroid delete for internal backups

Version 2.07
- new font, uses CM10.2 kernel
- fix for KitKat update binary

Version 2.06
- support for CM OTA updater

Version 2.05
- fixed Android 4.2 internal sdcard handling

Version 2.04
- Added screen timeout when you're in menu (30 seconds)
- Added new theme

Version 2.03
- FIX: SYM + DEL will now properly force console exit
- FIX: CPU1 is offline in recovery
- Kernel updated to 3.0.72

Version 2.02
- FIX: added missing partitions to nandroid

Version 2.01
- FIX: update / script directory browsing: stay in current directory finishing update
- FIX: add missing wipe dalvik cache

Version 2.00
- initial release


1) Download the image
2) Flash using fastboot (fastboot flash recovery open_recovery.img)
3) Reboot to recovery



================================================== ================================================== ========================


Menu system:

The menu for the Open Recovery is created dynamically. The files must be created inside "/menu" folder by scripts, which can either be specified (if the menu is scripted_menu). A menu creating script has to create a *.menu file inside the /menu folder. If the menu is supposed to be created on startup and not modified, place the script into /init folder, otherwise use "scripted_menu" item, where the script is ran right before the menu is created. sdcard, system and data partitions are mounted when the scripts are ran. A typical example for "scripted_menu" item is under the tutorial for application menu:
First line is the menu name (normal string), then use the following structure:
"item name:type:argument"
- item name is what is seen in the menu
- type: type of the command (described below)
- argument: argument passed to the command (file, or anything else; if empty, put "*" there, otherwise the item will be discarded)


- reboot: reboots the phone
- poweroff: turns the phone off
- console: shows console (argument is initial call, use "*" for nothing)
- shell: calls a file specified in arguments (default path is to /bin, if not specified)
- shell_dir: shows script directory dialog, argument is the root directory
- menu: opens another menu file (specified in argument), if the argument is "..", it returns to up one level meu
- scripted_menu: argument is in format "menu file:menu script", the menu script is called with variable MENU_FILE containing the menu name (default path for the script is to /bin, if not specified)
- tag: if ticked, file "tags/.argument" is created
- break: unselectable item, argument is ignored (use "*") and creates a menu item like "---- name ----"; using "*" as name will create just "--------------"
- label: unselectable item, argument is ignored (use "*") and creates normal menu item "name "
- update: applies an update *.zip file, specified in argument
- update_dir: shows update directory dialog, argument is the root directory
- wipe_data: factory reset
- wipe_cahce: wipe cache

The menu is refreshed (the script is called if the menu is scripted) on a menu change, applying an update or running a script. The common partitions are mounted whenever a script is run (system, data, cache, external sdcard if present).
The Following 21 Users Say Thank You to Skrilax_CZ For This Useful Post: [ View ]
29th March 2013, 12:31 AM |#2  
Retired Forum Moderator / Recognized Developer
Thanks Meter: 3,816
Donate to Me
Hardcore dude! I know you talked about porting this, but I wasn't sure if you were going to follow thru or not

Nice work.
29th March 2013, 01:03 AM |#3  
huatz84's Avatar
Senior Member
Flag Binjai,North Sumatra
Thanks Meter: 233
Re: [03-28-2013] Photon Q Open Recovery 2.02
Great work! A good replacement for cwm or twrp. Qwerty rules,man..

Sent from my MB886 using Tapatalk 2
29th March 2013, 03:48 AM |#4  
palmwangja's Avatar
Senior Member
Thanks Meter: 28
wow this is too awesome... :P
29th March 2013, 07:23 AM |#5  
Senior Member
Thanks Meter: 237
Excellent! Thanks a lot!
29th March 2013, 12:59 PM |#6  
CornholioGSM's Avatar
Senior Member
Flag Prague
Thanks Meter: 278
Donate to Me
29th March 2013, 11:23 PM |#7  
palmwangja's Avatar
Senior Member
Thanks Meter: 28
I don't know if this is off-topic, but when you do a nandroid backup, you have to 'back up all' ? or you better select a couple of area such as system, data, and cache to save a SD?

This is hilarious...
29th March 2013, 11:35 PM |#8  
Skrilax_CZ's Avatar
OP Recognized Developer
Thanks Meter: 2,395
I'd say it this way:

If you are on stock rom and want to go to CM10, then it's better to have full backup. If you are taking a backup before installing newer CM10, usually just backing up boot / system / data is enough.

However the "other" not so common partitions don't have that much MB.
5th April 2013, 11:19 PM |#9  
Skrilax_CZ's Avatar
OP Recognized Developer
Thanks Meter: 2,395
Updated to 2.03 version (see changelog in OP).
The Following 2 Users Say Thank You to Skrilax_CZ For This Useful Post: [ View ]
6th April 2013, 11:06 AM |#10  
Senior Member
Thanks Meter: 51
Originally Posted by Skrilax_CZ

Updated to 2.03 version (see changelog in OP).

Great work
Can you integrate a screensaver mode like TWRP? In backup and Restore mode the screen and hardware keyboard light are on all the time and the Photon Q is hot.

6th April 2013, 09:18 PM |#11  
Skrilax_CZ's Avatar
OP Recognized Developer
Thanks Meter: 2,395
Yeah I could add that (would surely help charging). Although it's not related to the heat (which is caused by CPU usage). Up until 2.03, CPU1 was always on max frequency, which caused the heat. In 2.03, CPU1 is off (though sole CPU0 is able to heat it a bit).
The Following User Says Thank You to Skrilax_CZ For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes