yashsingh1/xdaforums huggingface dataset:
[Motorola Photon Q 4G LTE] eis0r:
hmm, im not able to mount anything in 2.7.1.1 ... anyone else having issues there?
[Motorola Photon Q 4G LTE] arrrghhh:
Nope, I fully tested the latest official TWRP. When I go to 'Mount' everything is checked except 'System'. Checking it, I am able to go into Advanced --> File Manager and browse to /system.

What are you having issues mounting? Are you on the latest official 2.7.1.1 from the TeamWin website? Did you flash using fastboot? Can you provide logs? (/tmp/recovery.log in recovery, or go to 'Advanced --> Copy Log to SD')
[Motorola Photon Q 4G LTE] eis0r:
sorry but i'm missing the unmount-button to be able to access the sd-card via USB... this was working 2.7.0.1 ;)
[Motorola Photon Q 4G LTE] arrrghhh:
Just untick the 'MicroSD' checkbox in 'Mount'.
[Motorola Photon Q 4G LTE] eis0r:
i tried that but it has no effect...
[Motorola Photon Q 4G LTE] arrrghhh:
Definitely unmounts the SD, if you go to the file manager TWRP can no longer 'see' any files within the external_sd folder from root.

As for your issue, I've always been able to adb push but you seem to be doing something different. I'm guessing the lun line got removed somehow, but I'm not sure how...

Are you using the latest official, or the latest test build of 2.7.1.1? I need to compare them.
[Motorola Photon Q 4G LTE] eis0r:
i download 2.7.1.1 today from here http://goo.im/devs/OpenRecovery/asanti

i can confirm that if i untick "external_sd" it is no longer browseable in file Manager but it is neither visible on my Computer which is connected via USB ;)

what is that selection button "internal <-> external" in the mount menu used for btw?

thanks!
[Motorola Photon Q 4G LTE] arrrghhh:
The selection button just shows you the different storage options. Whether you want to unmount internal or external SD, as well as see available space for each.

Edit - whoops, there was a line in qcom-common which was disabling USB Storage... Fixed! I'll ask to get another official rolled soon... if I don't see one within a week or so I'll throw up a test build again.

Edit 2 - 2.7.1.2 is up on TWRP's official download site. Tested & working!
[Motorola Photon Q 4G LTE] tobby88:
Looks like TWRP 2.8.0.0 and 2.8.0.1 are out :)

But a user on a german board mentions, that wiping /data doesn't work. Same bug as in the first 2.7.x-versions - if you try to wipe /data, the recovery reboots.

Did anyone else try that?
[Motorola Photon Q 4G LTE] arrrghhh:
I haven't tested 2.8.x yet. I'll have to ask how they are building the device...

Edit - yea, don't use it for now! I will try to build it myself again, and I will sort out what will need to fix the 2.8.x versions. For now, stick with 2.7.1.2. I will only update the thread title with versions I have confirmed working! :)

Edit 2 - I have a personal build which is labeled 2.8.0.0. You can feel free to use it in the short term if you're itching for 2.8.x, or wait for the official fix - not sure 'when' that will happen.

TWRP_2.8.0.0-asanti.img - 8.46 MB
[Motorola Photon Q 4G LTE] latenite:
Installed 2.8.0.1 before you posted this. This version seems to have some problem backing up boot (from what I can tell the boot backup file has data in it, but the recovery.log states: ".. Boot.info not found".

On 9/16, I used TWRP to full backup my stock rom and installed CM 11. I made several interim backups as I got more functionality running.

Two days ago, I did another full backup and tried to restore my stock Rom. I started out with a factory reset and then a TWRP restore of the stock rom. The restore executed, no error messages. But when I rebooted, I got the standard Moto Warning!! Unlocked!! screen and then the screen went black. Plugging the USB cable into a PC at this point, I get an "unrecognized device". I then hard reset and got into TWRP again, I re-did the restore, same result.

I then went back into TWRP, did a factory reset and restored the full backup of CM11. Same results . I also tried some of my interim backups (possibly created with Titanium BKU?) but they would not restore at all

I also know that my successful restore of the stock rom from external SD worked. So I suspect something with backing up of the rom.

If interested I have a copy of the recovery.log starting yesterday, it has a backup and several restore attempts

I finally recovered by downloading someone else stock rom, When I restored this version the phone re booted no problem.

I also know that my successful restore of the stock rom was from external SD. So I suspect something with backing up of the rom.

If interested I have a copy of the recovery.log starting yesterday, it has a backup and several restore attempts

I am now in process of installing (per your recommendation) TWRP 2.7.1.2
[Motorola Photon Q 4G LTE] arrrghhh:
I only keep the most stable (read: tested) versions in the thread title. I never updated the thread title for this reason...

I have a test build, posted above. When I was working with [MENTION=912474]Dees_Troy[/MENTION] from the TWRP team, we found that we could get MTP working on Linux fine, but had issues in Windoze. Still trying to hammer that out in fact, not sure what the solution is going to be. I'm not sure I want to release a version of TWRP which MTP only works in Linux (may work on Mac too, I don't have access to one).
[Motorola Photon Q 4G LTE] latenite:
I've completed installing TWRP 2.7.1.2, done a backup of current (stock) rom, tried to restored my full cm 11 backup (watching closer now I see the restore never completed and the phone reboots) so am now trying a restore of the backup I just made(restore completed successfully and phone works). So based on my experience, the backup is feature is broken in 2.8.0.1

Windoze MTP problems aside, the fact the backup doesn't work is a major problem.
[Motorola Photon Q 4G LTE] arrrghhh:
I suppose I didn't convey myself properly...

I was talking about my test build. Do NOT use anything official past 2.7.1.2 until this is resolved. If you want to use 2.8, use my test build. Otherwise I'm not sure if there will be another official build until I can get MTP sorted out on both operating systems - I don't see the point of releasing an update of TWRP if it doesn't work fully. Might be good to note that I also have no control over when and how new builds are released.
[Motorola Photon Q 4G LTE] latenite:
Since I had already made the mistake of trying (the official) version of TWRP, I just thought I would supply a detailed description of the problem found. I see nothing on the TWRP release list that talks about specific fixes for specific devices so I thought TWRP was more generic and did not require highly specific versions for each device.
[Motorola Photon Q 4G LTE] arrrghhh:
Well, I think part of the problem is I do not coordinate with the TWRP folks - I'm not hanging out in IRC that often, and I am not exactly 'in tune' with their releases.

They release based on some old stuff that is device specific, it will break all sorts of terrible things. I'll try to get the guys to at least ping me when they're going to do a release for the device so I can test it before it's released... but who knows.

For now, just stick to the version in the thread title :)
[Motorola Photon Q 4G LTE] latenite:
They already _have_ done a release. Google search for TWRP: Motorola Photon Q turns up this page:

http://teamw.in/project/twrp2/137

( I wish the developers had reached out and got at least one person with a Photon Q to test the software before )

Making the following claims:

TWRP 2.8 - Motorola Photon Q page

Disclaimer:

Team Win strives to provide a quality product. However, it is your decision to install our software on your device. Team Win takes no responsibility for any damage that may occur from installing or using twrp.

Device Specific Known Issues:

None

From this thread, I already know you have discussed MTP issues with one of the TWRP developers. The whole web site gave me the impression that some testing had been done. From my experience all it looks like is they have a clean compile and the main menu comes up.

The page should say that 2.7.1.2 is known to work and 2.8 is in beta

I wouldn't even call it release candidate material, more like a nightly build.
[Motorola Photon Q 4G LTE] arrrghhh:
You can call it whatever you want. I can't control the TWRP site, I'm not an owner/member of the team. Just someone who likes to use TWRP...

You can follow my rules, or try to follow theirs. If you don't follow mine, then don't expect any help from me! ;)
[Motorola Photon Q 4G LTE] antonyfirst:
I have been using argh's modded 2.8.0 and it's working perfectly.
[Motorola Photon Q 4G LTE] marknoll:
Please say you've gotten somewhere on this recovery. I love twrp!!
[Motorola Photon Q 4G LTE] Schattenspieler:
Don't know exactly what kind of response you're expecting here, but TWRP 2.8.5.0 is right here: http://xdaforums.com/photon-q-4g-lte/development/cyanogenmod-12-0-photon-q-t3034552
[Motorola Photon Q 4G LTE] marknoll:
Um..I was expecting a twrp for the atrix
[Motorola Photon Q 4G LTE] tobby88:
But this is Photon Q thread/forum...
[Motorola Photon Q 4G LTE] arrrghhh:
I don't think the touchscreen issues were ever sorted out...

I worked a bit with some fellow with an Atrix maybe a year ago. Never were able to resolve the issue unfortunately. On the Q, it was really easy to take the firmware and reuse it in TWRP. However, this was not possible - the panel on the Atrix is different.

Also, this is true. I owned a Q and only built for it. I never claimed to build anything for the Atrix, my kernels just happened to work for the device because of the shared SoC ;)
[Motorola Photon Q 4G LTE] marknoll:
Yes. That's why I posted on here arrrrgh...sorry everyone.
[Motorola Photon Q 4G LTE] tobby88:
I just compiled a current version of TWRP (2.8.6.0 from the android-5.1 branch). Goal: Get a TWRP on the Photon Q behaving like if there is no internal mass storage, only the external sdcard. So a wipe of /data will actually format it instead of just removing everything but /data/media. And a backup of /data will include everything on it (no exclusion for media).

My twrp.fstab is looking like this:

# mount point fstype device

/data ext4 /dev/block/platform/msm_sdcc.1/by-name/userdata flags=encryptable=footer;length=-16384
/cache ext4 /dev/block/platform/msm_sdcc.1/by-name/cache
/system ext4 /dev/block/platform/msm_sdcc.1/by-name/system
/boot emmc /dev/block/platform/msm_sdcc.1/by-name/boot
/recovery emmc /dev/block/platform/msm_sdcc.1/by-name/recovery
/sdcard vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=display="Micro SDcard";storage;wipeingui;removable

To use this fstab I changed BoardConfigCommon.mk in device/motorola/msm8960_jbbl-common:

TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/rootdir/etc/twrp.fstab

I am sure, this fstab is used by TWRP. e.g. I could change the display-name of the sdcard and it shows up in TWRP after compiling.

Also I configured

RECOVERY_SDCARD_ON_DATA := false

and commented out

#TW_INTERNAL_STORAGE_PATH := "/data/media"
#TW_INTERNAL_STORAGE_MOUNT_POINT := "data"

in BoardConfigCommon.mk in device/motorola/qcom-common.

At last I changed these two lines to the following:

TW_EXTERNAL_STORAGE_PATH := "/sdcard"
TW_EXTERNAL_STORAGE_MOUNT_POINT := "sdcard"

It compiles successfully, I can flash it and boot into it.

In the "Mount" menu of TWRP it only shows data, cache, system and Micro SDcard. Looks good to me. But on the bottom "Internal Storage" is selected. Same problem in other menus, like "Install".

In the "Wipe | Advanced Wipe" menu it still shows Internal Storage as a partition. Why?

Also the external sdcard is still mounted in /external_sd in the file manager of TWRP instead of /sdcard like configured in the fstab.

Any ideas what I am doing wrong?
[Motorola Photon Q 4G LTE] mionica:
Nope, but...

If all you want is to really format /data, you have two already-existing options:

wipe > format data > "yes", or

wipe > advanced wipe > ["Data" selected] repair or change file system > change file system > ext4 (yes, it works even if it's already ext4 ;) )

Also, my opinion is that you're beter off not doing that, or at least not distributing it - people who are accustomed with TWRP, as well as people who don't understand that the "internal SD" is actually a folder on /data, will be pretty pissed that all their internal storage went away when they chose to wipe (just :p) /data.

EDIT. Come to think of it, I should probably tweak the thing to re-create the "/data/media/0" folder as soon as mkfs is done, if the mount point is "/data"; that should presumably get rid of the "internal storage is not accessible", or whatever it says, after /data gets mkfs'd.

---------- Post added at 01:25 AM ---------- Previous post was at 01:07 AM ----------

It's weird, allright. I tried all 4 combinations of reporting qHD and 720p, respectively, in BoardConfig.mk and cm.mk (/carbon.mk), and none of those combinations worked on the mb866 - I got [MENTION=4895937]palmbeach05[/MENTION] testing it on the AHD. He reported that all touches were off "by about an inch" - and sure enough, I did inject the right (non-xt987) version of the touch panel config file (/vendor/etc/atmxt-r2.tdat).

To make things funnier, to get PhilZ' touch to work on the same AHD, I had to lie to it about the resolution being qHD (when I tried 720p, which the AHD screen is, touches were off).

If anybody has any ideas, I'm willing to give it one more go... The only thing that I havn't tried is a mka clean (and, just to be sure, ccache -C) between those builds, but I refuse to accept that the build system is dumb enough that it wouldn't pick the resolution I declared in those fecking .mk's.
[Motorola Photon Q 4G LTE] Logos Ascetic:
Your link is dead, can you upload it again?

Can you give us a link to your version?

TWRP 2.8.6.2 recovery for Photon Q: https://dl.orangedox.com/Ajalit2rGIU....6.2-xt897.img

CWM 6.0.1.3 for Photon Q: http://download2.clockworkmod.com/recoveries/recovery-clockwork-6.0.1.3-asanti.img
[Motorola Photon Q 4G LTE] tobby88:
Have a look here: http://tobby.eu/downloads/cm.html :)

Like I said above: All builds (CM and TWRP) have the "classic sdcard mount". So no emualated "internal mass storage" on /data/media and the external sdcard is mounted on /sdcard.
[Motorola Photon Q 4G LTE] Logos Ascetic:
So you made your original 2.8.6.0 release because you wanted format /data instead of just removing everything in/data/media. And a backup of /data will include everything on it (no exclusion for media).

That was the main difference between yours and the official release? From your 2.8.6.0 until your 2.8.7.0 release, what changes did you make?
[Motorola Photon Q 4G LTE] tobby88:
That's the only difference to the official builds. I didn't change any (big) things from 2.8.6.0 to 2.8.7.0. It's just a merge from the upstream changes.

So both (2.8.6.0 and 2.8.7.0) behave like the official ones but include /data/media when doing a backup of /data, format the /data partition when wiping /data (so it also removes /data/media) instead of just removing the stuff besides /data/media, and you can't save your backups to /data/media, only /sdcard (which is the external one) is allowed. That's all.
[Motorola Photon Q 4G LTE] Logos Ascetic:
OK thanks for clarifying what your version does. So what did you think about what Mionica had to say about your modified version?
[Motorola Photon Q 4G LTE] tobby88:
Yes there are already two options to wipe /data. But the first option doesn't really format it but only remove the stuff except for /data/media. This is a problem if your filesystem is corrupt. Then this option will fail. And corruption happens some times with f2fs.

So then you have to use the second option but this is a little bit more complicated. Sure, not a big deal, but you have a second problem when doing a full format with the second option - because you can't do a full backup of /data, because /data/media is not included when doing a backup. So a full format by "changing" (recreating) the file system will clear all stuff on the "internal storage" as well and you can't do a backup beforde - besides using MTP and copy all data to a pc. That's not very practical when doing backups often.

And I don't see the problem in distributing it because of three reasons. At first, "changing" the file system in the official version already has the same effect as a wipe in my version. So the people can be pissed about the official version as well ;) At second I clearly tell everybody about this special "feature" every time I post a link to this builds. And at last this perfectly fits to my CM builds (on the same page) which behave exactly like the TWRP. Nobody using my CM-builds can loose its internal storage on my TWRP-builds, because there IS no virtual internal storage thing in my CM builds :)
[Motorola Photon Q 4G LTE] arrrghhh:
No, that was a test version. It wasn't meant to be used / re-used.

Use the official 2.7.1.2 version, or tobby88's.
[Motorola Photon Q 4G LTE] marknoll:
Know a good twrp for the atrix?

STRIKE
[Motorola Photon Q 4G LTE] arrrghhh:
Dude. Flip back a page, you asked me this exact question and I already answered it...
[Motorola Photon Q 4G LTE] marknoll:
Oops. Meant for the desire HD thread. Ugh. Sorry.
[Motorola Photon Q 4G LTE] arrrghhh:
mmmm fresh TWRP...

3.0 is here! MTP works, I need to test more but it's not my phone anymore. Please let me know if anything is broken, I'd like to make this an official TWRP device again.

Thanks to [MENTION=2218140]kabaldan[/MENTION] for maintaining such a great set of CM trees, I didn't need to make really any changes at all to get 3.0 to build. Of course thanks to the TWRP team for making such a great recovery!

Edit - removed test link for Official Link

Flash via fastboot as usual. Let me know!
[Motorola Photon Q 4G LTE] reinoso:
Tested it today, used for a clean flashing of the new CM13 rom + last Open GAPPS

ROM flashing worked without problems but the open GAPPs hangs at this point:

I had to force reboot, but then the system booted correctly and it seems to work OK.

Thank you!
[Motorola Photon Q 4G LTE] arrrghhh:
Hm, that's odd. It seems you flashed multiple at the same time (which I do as well, should work fine). Just curious, can you try at some point to flash just gapps by itself on a fresh system at some point?

It sounds like it still installed OK so it may be moot...

Thanks!
[Motorola Photon Q 4G LTE] Dreamliners:
I tried 3.0.0 today and also experienced the slow flashing issue (compared to tobby88's 2.8.7.0).

Dirty flashing CM13 which was stored on internal memory took forever and hanged at some point so I decided to force reboot and try with an sdcard.

Flashing files on an sdcard was a bit faster, but still slower than tobby's 2.8.7.0. OpenGapps also hanged at the exact point as reinoso mentioned, but after waiting more than 30 minutes flashing was finally completed.

Since I have not tried recoveries other than 2.8.7.0 and 3.0.0, I am unsure of experiences with other recoveries.
[Motorola Photon Q 4G LTE] maisdoiscorregos:
Thanks for great work.
[Motorola Photon Q 4G LTE] arrrghhh:
Great, thanks for the detailed report. I think there is a bug in 3.x, as I recall reading other devices complaining about similar issues in TWRP...

Also, if you were using tobby88's, you may just want to switch back as that version fundamentally changes how it formats partitions (as I'm sure you are aware).

I will try to track down the slow flashing thing, although this one may take a bit.

Edit - official is up, I have removed the testing build links. Will likely still have that slow flashing issue, as there really should be functionally no difference between my early test version and the official on TWRP's site.

Thanks!
[Motorola Photon Q 4G LTE] LucioT:
one tip:

My Photon Q have the TWRP 2.8.x installed and, for some reasons, is unable to wipe data and install other ROMs

Just upgrade TWRP to 3.0 and finally all work fine...
[Motorola Photon Q 4G LTE] arrrghhh:
2.7.1.2 was the only version I was officially recommending before 3.0. Any version between did not get tested properly by myself (or anyone else before release AFAIK).

Unless of course you got TWRP from a place other than the official TeamWin site...

Glad it's working for you tho!
[Motorola Photon Q 4G LTE] gtmaster303:
i just tried downloading 3.0 from the website and all it gave me was a 6kb file for the recovery img. in fact, any version img file i download is that small

am i doing something wrong? i dont think i should flash that file...
[Motorola Photon Q 4G LTE] arrrghhh:
I just downloaded twrp-3.0.0-0-asanti_c.img no problem. 8.57mb.

https://dl.twrp.me/asanti/twrp-3.0.0-0-asanti_c.img.html

You're getting it from there, right?
[Motorola Photon Q 4G LTE] gtmaster303:
yup. maybe it's a mobile issue? not sure. i was able to download 3.0 from a previous post anyway. maybe it's just my device...
[Motorola Photon Q 4G LTE] arrrghhh:
I always download from a computer, never had an issue...
[Motorola Photon Q 4G LTE] mrvek:
[MENTION=420530]arrrghhh[/MENTION]: It might be good to rebuild twrp 3 with new patches, especially slow install fix.
[Motorola Photon Q 4G LTE] arrrghhh:
As the device is now official, they should be automatically building the updates as they come...

I'll bug the guys over there - that was kind of the point of going official, so I wouldn't have to rebuild everytime there is an update ;)

Thanks for the heads up!
[Motorola Photon Q 4G LTE] arrrghhh:
OK folks, twrp-3.0.0-1-asanti_c.img is up on their site.

It seems the device will only get updates with big feature releases. So let me know if there is something like this again which you feel warrants a rebuild.

I have yet to test that version, I will try to do some basic tests tonight. Certainly let me know if you experience any issues.

Thanks!
[Motorola Photon Q 4G LTE] kabaldan:
TWRP 3.0.2-1 for Photon Q

https://dl.orangedox.com/LVD5PR8Q5dZPSCixtS

Very similar to previous 3.0.2-0 (MTP & adopted storage including mixed mode is supported).

Includes updates from TWRP upstream since the last build (beginning of April).

The main reason for this new build is updated f2fs support in kernel.
[Motorola Photon Q 4G LTE] arrrghhh:
Thanks for the update. I'm curious:

Have these changes made it upstream into TWRP? I'd like to rebuild official as it sounds like it would be warranted, but these changes seem like they would be pretty helpful - the first being a bit of a edge-case, but still useful.

Thanks again!!
[Motorola Photon Q 4G LTE] kabaldan:
Hi [MENTION=420530]arrrghhh[/MENTION] !

There's still ongoing review for the proper fix here: https://gerrit.omnirom.org/18254

(Which is much better solution than the simple sleep(1) between cryptfs_setup_ext_volume() and Mount() that I used.)

It's currently too hacky and I haven't found the time to rewrite it to a form that I'd be willing to push for a review yet.

The adopted storage handling in twrp needs major rewrite for the proper support of mixed mode.
[Motorola Photon Q 4G LTE] kurono80:
This recovery need unlocked bootloader?

help me, i install first cwm before to unlock the bootloader, now every time that i "power on" mi phone show the fasboot, if i go to the recovery with the volume + volume - and power i cant select any options but mi phone stars normally, i tried motopocalypse and dont work, so i dont know how open the bootloader, my only idea is in the page of motorola with the code, is recommended? (sorry for my english x_x)
[Motorola Photon Q 4G LTE] tobby88:
You can't unlock the bootloader with CWM. It's the opposite: You need an unlocked bootloader to use CWM or TWRP.
[Motorola Photon Q 4G LTE] enigma9o7:
Is the 3.0.2-1 linked above (over a year ago) the latest?

TWRP official site still has 3.0.2-0 as the latest...
[Motorola Photon Q 4G LTE] arrrghhh:
-1 was never official, kabaldan rolled that version himself.
[Motorola Photon Q 4G LTE] enigma9o7:
Understood, and it seems there's been no official update since. I used his cuz his post implied it may be necessary for f2fs, which is what I wanted... and since his was a year ago and the official even older, I was hoping there might be an actual official newer one too. Anyways it all worked fine so no worries at all. Thanks much to both of you!