yashsingh1/xdaforums huggingface dataset:
[Motorola Photon Q 4G LTE] Skrilax_CZ:
I changed a few governor related things. Updated OP to 2.07 (different from the one in attachment), changes are new font + KitKat ROM support.
[Motorola Photon Q 4G LTE] stevie13.xo:
So I install the open_recovery_207_kernel_test.zip by using "fastboot flash recovery open_recovery_207_kernel_test.zip" or do I flash it as a kernel

I installed the one in the op and I went to install arghs aosp 4.4 it freezes up when it mounts the SD card in recovery.. Tried flashing the one in the op twice

Anytime I mount the SD card in recovery it hangs and then the screen goes black and them I have to hold the power button
[Motorola Photon Q 4G LTE] Rennert:
First

...Tapatalk
[Motorola Photon Q 4G LTE] stevie13.xo:
i just tried reflashing again and no luck.. it just hangs when i go to apply an update.zip

ive never had problems like this before
[Motorola Photon Q 4G LTE] arrrghhh:
Don't flash in recovery... extract the .img from the .zip file, flash in fastboot as normal.
[Motorola Photon Q 4G LTE] stevie13.xo:
I'm not flashing in recovery.. I flash using fastboot and everything flashes as normal but when I go into open recovery it stalls and then the screen goes black and then I have to hold the power button.. I've tried redownloading the recovery and reflashing but it does the same the every time
[Motorola Photon Q 4G LTE] arrrghhh:
Oh, I have a reading comprehension problem it seems... Sorry...

I'm not sure what would cause that honestly, I don't have that problem :/
[Motorola Photon Q 4G LTE] stevie13.xo:
Don't be sorry man you do great work and this problem ive never had before and I didn't expect anyone to really know unless I could get a logcat.. But a twrp recovery might work for me I'm not expecting you to just make one but that's my only chance I guess of installing kk
[Motorola Photon Q 4G LTE] arrrghhh:
Watch the TWRP thread ;)
[Motorola Photon Q 4G LTE] stevie13.xo:
When I get home from work I'll try that out
[Motorola Photon Q 4G LTE] Skrilax_CZ:
Open Recovery turns off the display after some time of inactivity (just press a key to get it back). Also if I understand, you eject the sdcard from the phone and put it back? That's not really supported, just mount it via mass storage mode.
[Motorola Photon Q 4G LTE] stevie13.xo:
No no no.. Open recovery freezes up whenever I go to apply an update
[Motorola Photon Q 4G LTE] mrvek:
Never had (such) issues with Open Recovery, all cm-1x.x roms. Are you using the latest, final, 2.07 from the OP? Not 2.07 test zip?
[Motorola Photon Q 4G LTE] Skrilax_CZ:
ADB Sideload will be supported in the next release, currently finalizing it on Droid MAXX.
[Motorola Photon Q 4G LTE] arrrghhh:
Haha, thanks buddy :good:
[Motorola Photon Q 4G LTE] Skrilax_CZ:
Updated to 2.08.

I've moved internal backups & settings directory do /data/OpenRecovery (you have to move it manually from /data/media/0/OpenRecovery through root shell), to prevent them having moved to /data/media/0/0 upon clean ROM install and inacessible from the recovery.

Also added support for adb sideload.
[Motorola Photon Q 4G LTE] Skrilax_CZ:
It looks like SELinux will make default permissions for file 600 in the kernel config, breaking gapps package for 4.3 (and older). Until that gets fixed and you're not using KitKat, you might want to remain on 2.06 for now (http://skrilax.droid-developers.org/xt897/open_recovery_206_05_06_2013.img).
[Motorola Photon Q 4G LTE] mrvek:
There is a chance that it is the /data/.layout_version file causing this problem (if .layout_version deleted but directory structure is already /data/media/0 android will create additional 0 dir. So you'd get them multiple (/data/media is intact during factory reset)).
[Motorola Photon Q 4G LTE] Skrilax_CZ:
2.09 released, kinks with internal install and file permissions solved.
[Motorola Photon Q 4G LTE] mrvek:
Thanks but is the uploaded image correct for Q? Kernel is (xz compressed) 3.4.69, cmdline is different, PS1 labels droid maxx... Did you accidentaly pack maxx ramdisk and kernel?
[Motorola Photon Q 4G LTE] Skrilax_CZ:
Oooops, thanks, fixed.
[Motorola Photon Q 4G LTE] Loader009:
I get an error message that my external_sd is not mounted within OR (version before kitkat experimentals).

My sdcard have ext4 as the filesystem. Is any ext-filesystem supported?
[Motorola Photon Q 4G LTE] Skrilax_CZ:
Actually it's set to vfat and not checking for ext4.
[Motorola Photon Q 4G LTE] Loader009:
Ok, then I have to manually mount it, if I need the sdcard.

Thx for the clarification.
[Motorola Photon Q 4G LTE] stevie13.xo:
Yes open recovery works now for my phone :)
[Motorola Photon Q 4G LTE] ---UFO---:
[MENTION=2228410]Skrilax_CZ[/MENTION]

Please is the info in first post in Developer notes up to date?

I have tried to create sh script in /sdcard/OpenRecovery/init folder which was creating file in /menu folder, but it seems to me as it wasn't executed.

Thanks.
[Motorola Photon Q 4G LTE] Skrilax_CZ:
Sorry, that was derp in the description, as original version is from Motorola Milestone (which was hacking vulnerable recovery, and thus placed on sdcard). Here, you need to unpack the recovery and modify /sbin/installer for custom startup stuff.
[Motorola Photon Q 4G LTE] The Solutor:
Finally I tried Open Recovery, for the first time since the good old times of Milestone 1.

Just a couple of thinks I noticed.

#1 Or doesn't offer the choice to backup/restore the recovery partition itself.

I find that option really useful to get back and forth from a recovery to another on the fly, and to have a quick alternate way to upgrade the recovery itself, when a new version is released.

#2 less important, but, why not have the whole thing working in landscape, given we have a nice Qwerty keyboard ?

I haven't looked at the code yet but shouldn't be hard to do it.

I'm wrong ?
[Motorola Photon Q 4G LTE] Loader009:
Bug?

nandroid backup to internal sd is stored in /data/OpenRecovery/nandroid instead of /storage/sdcard0/OpenRecovery/nandroid (which is obviously a link to /data/media/0).

I used internal sd because of that extX automount problem >.>
[Motorola Photon Q 4G LTE] The Solutor:
Feature.
[Motorola Photon Q 4G LTE] Loader009:
Yeah, but:

So this would fix your Quote...

But well, thx, I forgot that post.
[Motorola Photon Q 4G LTE] The Solutor:
My post was not meant to express my personal opinion, just an quick link to author's one.
[Motorola Photon Q 4G LTE] Loader009:
Yeah, of course.

That's how I read it, I've just put my thoughts in words :D
[Motorola Photon Q 4G LTE] aaronmy:
hey guys I'm a new photon user and this open recovery is new to me also but could I use goomanager to install this?
[Motorola Photon Q 4G LTE] Loader009:
I think (!) no.

It's not a .zip so it might refuse to use that file.

Since I don't flash every month a new recovery, I am ok with fastboot.
[Motorola Photon Q 4G LTE] aaronmy:
OK thanks I'll just do it that way
[Motorola Photon Q 4G LTE] JTY:
Download link not working, whole server is gone!
[Motorola Photon Q 4G LTE] JTY:
Does anyone have the 2.09 image ?

If so, please share.

Thanks
[Motorola Photon Q 4G LTE] niko99:
https://www.dropbox.com/s/9e8zj679wlupcvm/open_recovery_209_25_11_2013.img

:)
[Motorola Photon Q 4G LTE] JTY:
Thanks :D
[Motorola Photon Q 4G LTE] Loader009:
Funny thing with sdcard formatted as ext4.

The recovery doesn't mount the sdcard because it isn't FAT32.

If I select the USB mode, I can see the sdcard on the PC but read only :D

Well, it's no problem to mount it manually so I can use it inside the recovery.
[Motorola Photon Q 4G LTE] matt2k12:
Hello, question for the gurus here, my phone screen is totally dead but my phone still works.... I need to know the hard key presses to make a back up of my phone using open recovery. I know how to boot into recovery mode but from there I don't know which buttons to press to go thru a full backup. Can I do any sort of desktop interface for a back up? My screen is busted but the phone still functions so I want to make a back up but can't see the screen so I need the physical key presses...

---------- Post added at 05:03 PM ---------- Previous post was at 05:03 PM ----------

Or if someone could screenshot the menus I could try doing it myself..................
[Motorola Photon Q 4G LTE] kabaldan:
V means a press on the cursor key in the corner:

V V V V (=Nandroid) Enter

V (=Backup) Enter

V (=Backup All) Enter

Then you'll be presented with a dialogue to enter the backup name - type some name and press Enter

That's it. Good luck.
[Motorola Photon Q 4G LTE] matt2k12:
Thanks!
[Motorola Photon Q 4G LTE] matt2k12:
The download link is dead... :(
[Motorola Photon Q 4G LTE] mrvek:
http://xdaforums.com/showthread.php?p=48551561
[Motorola Photon Q 4G LTE] matt2k12:
Hey Kabaldan are these commands still valid with the older version of Open Recovery? Everytime I try, after the first 4 down arrows then the phone just reboots every time.

EDIT: I realized you were talking about the arrow keys and not the keyboard arrows... but please see my comments below regarding flashing to my new phone...
[Motorola Photon Q 4G LTE] matt2k12:
idiot noob question: Why cant I get Open Recovery to stick between re-boots? Keep getting the dead android guy....
[Motorola Photon Q 4G LTE] arrrghhh:
There's this .sh file that is blasting out OR and installing stock recovery...

I think if you boot recovery, then reboot to Android it's fine.
[Motorola Photon Q 4G LTE] kabaldan:
If you are on stock firmware, non stock recovery will be replaced by stock recovery during each boot to stock android system, unless you remove this script: /system/etc/install-recovery.sh

After fastboot flash of custom recovery, you have to reboot to recovery first (not to Android system) and remove that script via console or adb shell. Only then you can safely reboot to Android system and your custom recovery will be kept.
[Motorola Photon Q 4G LTE] matt2k12:
Ok yall here is my predicament:

My old phone has a cracked screen and was un-usable visually but I kept receiving calls and texts. I have made a nandroid back up of that phone so that I could transfer it all to my new phone and read those texts and calls that I missed.

But I am having trouble getting my restore to load past the CM boot logo.

Here is what I have done so far:

Install Recovery

Update to CM 10.1

Update to CM 10.2 9/23 nightly (which was on the old phone)

Restore from the old phone's 9/23 nightly that I was using all this time

Stuck at CM boot logo

I have verified that my CM 10.1 flash works fine and I have verified that my 9/23 nightly flash works fine because they both boot up into the setup screen when starting the phone.

I just cant get my 9/23 nightly nandroid to restore onto the 9/23 nightly flashed rom.

So my question is, are there specific things I can restore to just get my missed texts and phone calls? Like only data, or cache, or something?

Sorry for being such a noob but I gotta have my MPQ! No new phones!
[Motorola Photon Q 4G LTE] kabaldan:
If you install the same CM 10.2 9/23 on new phone, you can restore just the data.

It's possible that you're encountering the not yet explained and not yet resolved /data filesystem corruption that has been discussed in few other threads.

In such case, /data filesystem check and repair is running while you see the boot logo and the phone seems to be stuck.

Let the phone plugged to usb/power supply and it will eventually boot - the /data filesystem repair can take tens of minutes.
[Motorola Photon Q 4G LTE] matt2k12:
Thank you once again for all your help. I will try restoring only the data. So far I am stuck at the logo.

If this doesn't work then I will get onto my old phone and back up only the data so I don't have such a large file and try restoring only that data file again.
[Motorola Photon Q 4G LTE] matt2k12:
Well, I backed up data only from my old phone, restored data only on my new phone, and the phone will not boot up. It stays at the CM logo for about 5 minutes trying to boot then the phone turns off back to charging. The battery has been run down so I am going to leave it on the charger for a few hours and see if anything different happens.

---------- Post added at 07:06 PM ---------- Previous post was at 06:59 PM ----------

Ok when I leave it there to charge after about 5 minutes it tries to boot up again on its own... its like a boot loop but it stays turned off for about 5 mins in between.
[Motorola Photon Q 4G LTE] matt2k12:
The one thing that is not the same between flashes is that my old phone still has my Sprint service connected and my new phone does not have service connected. Should I cancel my old phone and start service on the new phone before flashing data? Or does this not matter?
[Motorola Photon Q 4G LTE] matt2k12:
Still trying to restore my texts and calls. It sits at the boot screen for several hours. Do you think any other nandroid settings would help get past the boot logo, like system and data? boot and data? etc...
[Motorola Photon Q 4G LTE] matt2k12:
I figured it out.... sorry for being such a distraction on the forum..... :)
[Motorola Photon Q 4G LTE] Loader009:
Any chance to get fsck (with ext4 compatibility) on that recovery?

Would be a nice to have.

edit: There should be e2fsck, sorry didn't notice that.

edit 2: No e2fsck, sadly.
[Motorola Photon Q 4G LTE] abortretryfail:
Seems like the download links and images on the OP are broken. Anyone got a good mirror of these files?
[Motorola Photon Q 4G LTE] arrrghhh:
Try here.
[Motorola Photon Q 4G LTE] abortretryfail:
Thanks!

Bash shell in recovery rocks. :)
[Motorola Photon Q 4G LTE] mrvek:
Mirror

Another mirror to OpenRecovery 2.09 can be found here
[Motorola Photon Q 4G LTE] Loader009:
adb in this recovery is showing weird character:

>adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
←[01;31mPhotonQ-Recovery←[01;34m /
←[00m#

←[01;31mPhotonQ-Recovery←[01;34m /
←[00m# ls
ls
←[1;34mbin←[0m ←[1;34mmenu←[0m ←[1;34msbin←[0m
←[1;34mcache←[0m ←[1;34mmnt←[0m ←[1;36msdcard←[0
m
←[1;34mdata←[0m ←[1;34mproc←[0m ←[1;34msys←[0m
←[0;0mdefault.prop←[0m ←[1;36mres←[0m ←[1;34msystem←[0m

←[1;34mdev←[0m ←[1;34mres.or←[0m ←[1;34mtags←[0m
←[1;34metc←[0m ←[1;34mres.sith←[0m ←[1;34mtmp←[0m
←[1;36mexternal_sdcard←[0m ←[1;34mres.squirtle←[0m ←[0;0mueventd.go
ldfish.rc←[0m
←[1;32minit←[0m ←[1;34mres.stock←[0m ←[0;0mueventd.rc
←[0m
←[1;32minit.rc←[0m ←[1;34mres.troll←[0m
←[1;34minstall←[0m ←[1;34mroot←[0m
←[01;31mPhotonQ-Recovery←[01;34m /
←[00m#
←[00m# e2fsck
e2fsck
bash: e2fsck: command not found
←[01;31mPhotonQ-Recovery←[01;34m /
←[00m#
←[00m# fsck
fsck
bash: fsck: command not found
←[01;31mPhotonQ-Recovery←[01;34m /
←[00m#
←[00m# fsck.exfat
fsck.exfat
bash: fsck.exfat: command not found
←[01;31mPhotonQ-Recovery←[01;34m /
←[00m#
←[00m# fsck.ntfs
fsck.ntfs
bash: fsck.ntfs: command not found
←[01;31mPhotonQ-Recovery←[01;34m /
←[00m#
←[00m#

No fsck or e2fsck. (I need it sadly, userdata partition seems to be broken from time to time.)

Please tell us if something will ever be fixed in this recovery or the recovery is given "as is".

edit: Yay, soft reset during backing up with the nandroid feature.

The filesystem truly seems to be corrupted.
[Motorola Photon Q 4G LTE] mrvek:
Those characters are windows issue, it can't display colors correctly in this case.

You can try to use e2fsck in /system/bin/ if you have a working OS installed. eg. use full path from recovery: /system/bin/e2fsck
[Motorola Photon Q 4G LTE] Loader009:
Thanks for the info with those characters... it's time to use linux more often.

I used now e2fsck -cfv /path/to/data/partition but it didn't help.

- c to find badblocks but the program can't be found... because there's no symlink to it.

- f to force check even if it's marked as clean.

- v for verbosity.

I get recovery softreboot while baking up /data partition.

After that softreboot I can't get into nandroid (freeze) or console the following appears:

Motorola Photon Q
Open Recovery 2.09 Console

█

Last line blinks and I can't enter anything. Have to force reset.

edit: Using dd if=/path/to/partition of=/path/to/file to backup the partition (10GiB of space must be enough).
[Motorola Photon Q 4G LTE] mrvek:
What symlink?

path/to/data is /data what you're passing to fsck?

Try with a block device: /dev/block/platform/msm_sdcc.1/by-name/userdata

You'd might wan't to unmount it first.

dd should also work with block device and not mount point, otherwise use tar to backup.
[Motorola Photon Q 4G LTE] Loader009:
Symlink to badblocks.

If I use the -c option in e2fsck, it calls the "badblocks" program.

But because that program is also at /system/bin/, it can't start it... it probably looks for the program at /bin/.

Of course I used the correct path to the partition.

e2fsck ran good and was done within a few seconds, without any warnings. (Before running e2fsck I had to unmount the partition, I did.)

I used dd with the path to the userdata partition you mentioned in your post.

That was successfully, I have a backup nearly 5GiB big. (external_sd is ext4 filesystem, so there's no problem with its size.)

I will try to mount that backup inside linux and check it again with the badblocks option.

Titanium backup is hanging while backing up, so I have to go this way and hopefully repair the filesystem.

PS: I think the filesystem was corrupted from time to time while cm11 crashed. It's coming out just now.
[Motorola Photon Q 4G LTE] mrvek:
Even if that would be the case I doubt it is searching in a hardcoded path, it is more likely searching in $PATH.

But, afaik, bad blocks checking is built into e2fsck binary.
[Motorola Photon Q 4G LTE] Loader009:
Sadly I got an error message that badblocks could not have been found.

That's why I want to try it on a linux desktop.
[Motorola Photon Q 4G LTE] mrvek:
Damn, that badblocks "builtin" I mentioned is really invoking an external program. My fault.
[Motorola Photon Q 4G LTE] Loader009:
My problem is kind of solved. I deleted the backupfolder and titanium backup was fine.

Before that I ran fsck again and it found and repaired the userdata partition. There are many files in lost+found folder.

Because of that I want to format the partition and make a clean install.

After that I want to use titanium backup again for installing all the apps again.

[MENTION=2228410]Skrilax_CZ[/MENTION]

I accidently noticed that you are going to update OR to 2.10.

Would you be so kind and add compatibility for ext4 on external sdcard?

edit: I was searching for some menu example in your github Skrilax_CZ.

Sadly I didn't find anything (as your own made recovery menu).

So would you mind to put some example script on the github?
[Motorola Photon Q 4G LTE] Skrilax_CZ:
Yes I pushed update to 2.10, but haven't yet build it (really too busy lately). I can take a look on ext4 support on external sdcard.

Github only contains open_recovery source, the rest is bundled in the IMG and sources are identical to CyanogenMod.
[Motorola Photon Q 4G LTE] Loader009:
It would be great if you take a look.

I wanted to customize the menu, to add "mount /path/to/external/sdcard/partition /external_sd" as an option to just run that. It works if I use the command in the shell (with the correct path of course).

Another question but I guess that's not that easy/will not be done.

I would like to be able to format the userdata partition. mkfs.ext4 is sadly not available, I will have to look for another way.

You probably won't add that feature because the options/OpenRecovery folder is on that partition.

That might be a problem if you add this feature.

And you will probably need another host for the .img :D
[Motorola Photon Q 4G LTE] Loader009:
Just a notice, nothing important:

I destroyed the filesystem of the userdata partition using fastboot -w. (I intended to format the partition.)

That way OR 2.09 was not able to flash the cm11 M8 release.

(/data could not be found or something like that).

Even booting the already flashed cm11 M8 (with minor modifications -- gapps and xposed) didn't help. It didn't came farther than the cm logo. (Vibrated sometimes on vol buttons.)

I ended by flashing TWRP and formatted all partitions.
[Motorola Photon Q 4G LTE] Fr4gg0r:
Hi,

can you please update the download link? It is broken. Thanks.
[Motorola Photon Q 4G LTE] arrrghhh:
This seems to happen every few pages or so...

Try this post.
[Motorola Photon Q 4G LTE] Rennert:
Hi,

Have trouble with OR2.09. I flashed the PacROM 4.4.4 on my XT897. Make a Nandroid Backup. After restore alle apps are restored, but no settings are avaible. All must be set new:(

...Tapatalk 4
[Motorola Photon Q 4G LTE] palmwangja:
Same thing happened here...
[Motorola Photon Q 4G LTE] Rennert:
Now i use TWRP 2.7.1.2 and it works;)

...Tapatalk 4
[Motorola Photon Q 4G LTE] palmwangja:
yeah i also went with 2.7.1.1... didn't know there was 2.7.1.2
[Motorola Photon Q 4G LTE] Loader009:
I know, that you have other stuff to do [MENTION=2228410]Skrilax_CZ[/MENTION]

but I hope you won't stop developing the OpenRecovery.

I've got another feature request;

please add encryption support for the /data partition (typical android encryption).

I think this will be needed anyway in the future. (Because of android L.)

Theoretically it would also be nice to add encryption support for the external_sd also,

but I haven't seen a standard-procedure in android/cm11 for that.
[MDA II, XDA II, 2060 General] adhoc:
Hello everybody; Sorry for this silly question, but it seems i cannot fully power off my smartphone in order to have it full charge the battery whithout the phone being on. By this i mean the smartphone totaly powered off and not only having deactivated the radio section of the phone which deals with the mobile phone section of the appliance and the bluetooth ; When i press on the power button, the only thing that happens is that the display switches off and not the smartphone; I was accustomed to a real switch off on my other smartphone P900 withj symbian UIQ 7.0

Have i missed something or is this condition a feature /bug of the phone or microsoft windows mobile 2003?

Thanking you all in advance for any input i remain

Arnaud
[MDA II, XDA II, 2060 General] satria:
Hi, I'm new here. Just known XDA II for two weeks.

About ur question, I think it's not a bug but rather a feature. U can turn off the phone by click the phone icon at the top bar.

I would hate it if I can't power off the pda without the phone is on.

'cause when I sleep I really don't need the pda section. :wink:
[MDA II, XDA II, 2060 General] Xant:
Hi

Yes, you missed something...

A "real" power-down is similar to a hard-reset, and believe me, you won't do a hard-reset if it is not totally necessary.

The XDA unpackes the program files at powerup into its sdrams and keeps the data in the sdrams when it is switch off. Of course this sdrams need power to keep the data.

Otherwise, you can still remove the battery :wink:

But, I agree, it would be interessting to know how long the battery lastest when the phone is switch off.

regards,
[MDA II, XDA II, 2060 General] mgolanlan:
actually, you CAN remove the battery

after all, the battery IS removable.... and intended to be replaced.

But then your PPC will be on the "backup battery" and 30 minutes

later you will lose all your data. too bad.

The fact is, not only you absolutely cannot turn this thing off,

if you're down to 5% power and will be awhile before you

plug it for more power,

YOU BETTER TURN IT OFF AND TURN THE PHONE OFF

if you somehoe run down the battery to zero with a phone call,

you will have a hard reset in 30 minutes ....

this is all the result of the STUPID MS DECISION, long time ago,

not to put all the critical data/install/whatever in FLASH / SD card.