yashsingh1/xdaforums huggingface dataset:
[Motorola Photon Q 4G LTE] arrrghhh:
*****

Please see CM10.1 Nightly thread for CM10.1 builds. They should now work for CDMA fully.

*****

Hey guys,

Yes, this is built off of the razrqcom-dev-team's repo - so the work is based on many, but mainly nadbalak and Skrilax_CZ for the Photon Q.

I am merely rebuilding their source, and trying to make some modifications which will enable CDMA.

Click here for Q&A thread​

Disclaimer

#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.

Pre-Requisites

Unlocked bootloader

Custom Recovery (TWRP, CWM, OpenRecovery)

Desire to run CyanogenMod! You do realize your warranty is beyond void now, right?!

For your convenience, there is a changelog post and a buglist post below.

Installation

1. Download the ROM and GAPPS (below)

2. Reboot to your preferred recovery

3. BACKUP YOUR CURRENT SETUP!!

4. Flash CM10.1 - install zip, adb sideload, etc.

5. Flash GAPPS - same process as #4.

6. Factory reset - I do NOT recommend 'dirty' flashing!!!

7. Reboot to CM10.1 and setup.

Want to over/underclock? See this thread.

Without further adieu, here are the downloads:

gapps-jb-20130301-signed.zip Mirror #1 Mirror #2 Mirror #3

cm-10.1-20130509-UNOFFICIAL-xt897c.zip

Archive:

cm-10.1-20130503-UNOFFICIAL-xt897c.zip

cm-10.1-20130501-UNOFFICIAL-xt897c.zip

cm-10.1-20130430-UNOFFICIAL-xt897c.zip

cm-10.1-20130429-UNOFFICIAL-xt897c.zip

cm-10.1-20130428-UNOFFICIAL-xt897c_userdebug_3.zip

cm-10.1-20130428-UNOFFICIAL-xt897c_userdebug_2.zip

cm-10.1-20130428-UNOFFICIAL-xt897c_userdebug.zip

cm-10.1-20130428-UNOFFICIAL-xt897c.zip

cm-10.1-20130427-UNOFFICIAL-xt897.zip
[Motorola Photon Q 4G LTE] arrrghhh:
BUGS​

Intermittent USB issues (charging, adb, etc) - seems to be caused by charging via AC. Rebooting it resolves it in the short term, working on a permanent fix.

No camcorder (still images work)

LTE signal bars do not show up correctly (although LTE has been reported working)

Some (not all) seem to experience issues with GPS. If you have issues with GPS, please flash the JB soak (thanks for that great guide thedarkness000) and then flash CM10.1. GPS should work now. (I've also heard you can just flash back to stock, get a lock, then flash CM10.1 again...)

Haptic feedback on soft keyboard is not provided when enabled (which it is by default)

While capturing a picture to send via MMS, ensure HDR is deselected - Gallery will cause a force close if HDR is enabled!! (Note - HDR works for normal still photos, just not MMS.)

Update Google Search (manual update), or else any voice searches will fail with FC. Update the app, and it is resolved.

I just threw this together quickly - but one thing I noticed about CM10.1 (vs. CM10) - service comes up right away, no messing around with data menus etc!!!
[Motorola Photon Q 4G LTE] arrrghhh:
Changelog​

cm-10.1-20130509-UNOFFICIAL-xt897c.zip

Sync from CM source

Updates for LTE signal bars...(Pending testing)

cm-10.1-20130503-UNOFFICIAL-xt897c.zip

NFC menu options/hardware enabled

cm-10.1-20130501-UNOFFICIAL-xt897c.zip

MMS FC fix baked in - reverted commit from CM

Upstream fix from razrqcom team for panel

cm-10.1-20130430-UNOFFICIAL-xt897c.zip

MMS works in both directions, but there is a FC occasionally on sending. Need to triage, it's trivial - the message still sends.

In-call Speakerphone fixed (thanks epinter!!)

cm-10.1-20130429-UNOFFICIAL-xt897c.zip

Re-fixed voicemail (sorry!)

MMS overlay - perhaps helped MMS out?

Roaming options!!

cm-10.1-20130428-UNOFFICIAL-xt897c_userdebug_3.zip

Fixed carrier recognition

LTE signal bars maybe fixed?

cm-10.1-20130428-UNOFFICIAL-xt897c_userdebug_2.zip

liblights fixed - keyboard lights and screen brightness should work correctly now

cm-10.1-20130428-UNOFFICIAL-xt897c_userdebug.zip

Changed from eng-->userdebug

BT fixed

No more red bars!

cm-10.1-20130428-UNOFFICIAL-xt897c.zip

eHRPD & hopefully LTE working

Better MMS functionality, probably still needs work for outbound
[Motorola Photon Q 4G LTE] arrrghhh:
Alright guys, enjoy! I've only been running this for a little while, but so far so good. I'm really surprised CDMA data hooks up right away - I didn't have to make any changes, it just worked on first boot!!!

Let me know what you find - I haven't really run this through the full gambit yet.

Also, goo.im was really slow for me downloading gapps... so I provided a few mirrors.
[Motorola Photon Q 4G LTE] huatz84:
Great!!! Does video camera works? I would like to see some feedback before jumping to this. Thank you so much. :)
[Motorola Photon Q 4G LTE] Skrilax_CZ:
Camera works only for photos.
[Motorola Photon Q 4G LTE] nwo122383:
Downloading now will run it through a few things and let everyone know how it goes there are some things I rarely to almost never use such as bluetooth and lte bluetooth I just don't use and lte I don't have in my area
[Motorola Photon Q 4G LTE] huatz84:
Seems bug on all Moto Qualcomm. Hopefully,the new 3.4 kernel will fix it.

Thanks..I also don't use bluetooth and lte. But video camera is sometimes needed.
[Motorola Photon Q 4G LTE] nwo122383:
I'm going to see if using a 3rd party camera app will allow video recording I bought camera zoom fx a long time ago so ill let ya know

Just backing up some apps with titanium backup already did a nandroid backup so I will be installing this very soon!

Update: so far seems pretty smooth slightly laggy at first guessing cause I had all my app installing automatically and running titanium as well. I do see the red thing around the screen from time to time however its not that big a concern to me (yet) also no go on the camera zoom fx working for videos. When you press record it seems to do something but as soon as you stop it is when it just stops responding, I would guess possibly something with the way it saves the videos is the problem? Maybe. Otherwise it seems pretty nice so far. Data connects very quickly and no changes have to be made whatsoever to the network connection setting and you don't have to dial *#*#4636#*#* either that is a big plus. Great work so far I will update with more info soon I'm going to test out the mms and see if that may be working with this build
[Motorola Photon Q 4G LTE] huatz84:
Thanks..It doesn't work on my Atrix HD. Maybe it will be different on Photon Q.. :p
[Motorola Photon Q 4G LTE] palmwangja:
What would be the difference between CM10 and 10.1, which causes Photon Q not to work with video recording especially on 10.1?
[Motorola Photon Q 4G LTE] arrrghhh:
There are a TON of changes in the backend to CM10.1.

As was stated earlier, we probably need kernel 3.4 for cam to work fully.

Thanks for notating this guys, I will put it in the buglist. I thought cam was completely broken, good to know it works for stills at least!!
[Motorola Photon Q 4G LTE] Skrilax_CZ:
Camera / camcoder is rewritten in Android 4.2. Most of the "core" issues are shared among the whole platform. So what doesn't work for Razr HD CM10.1 won't work for Photon Q etc.
[Motorola Photon Q 4G LTE] huatz84:
Is there any lagging issues? Atrix HD has those lagging issues with CM10.1. Good to know data works perfectly. How about mic on speakerphone mode?
[Motorola Photon Q 4G LTE] arrrghhh:
Well, I did notice a bit of lag when I first booted up - but I think that was the Play Store restoring all my apps. After that, it really has been smooth.

I just tested phone calls - mic works with or without speakerphone.

Everyone has their own definition of laggy. Whenever I see those dang red boxes it seems the phone is doing something in the background... if this is "laggy" and unacceptable to you, stick with CM10.
[Motorola Photon Q 4G LTE] noXcape:
This thing is running pretty smooth.
[Motorola Photon Q 4G LTE] nwo122383:
So far I have not been able to get mms working I tried a few different things such as downloading gosms and then changing the mmsc url to http://mms.sprintpcs.com and left the other to fields empty it seemed to work on and off it would download some and not others I had to revert back to the backup as I am waiting for a phone call so I can't test much more today. Other then mms and video recording things seem pretty good and the lag seemed to clear up after google was done restoring my apps. Oh and that red thing around the border of the screen that comes up once in a while is still there but it seems very random when it comes up so not really a bother thanks for the work on this to everyone involved great job!
[Motorola Photon Q 4G LTE] wintrxtrem:
I flashed this over CM10. Should i have done a full wipe first? LTE toggles seem to work now but LTE itself doesnt connect and phone calls crash the phone process although they still go through. High pitch sound still in the earpiece.

It now lets me select 800mhz radio band (to force roam).. before this would crash the phone info app. Even though i can select different radio bands now they dont seem to connect. Roaming indicator will pop up but service never connects. I have toggled to allow roaming in mobile settings.

Edit: Bluetooth is broken and the clock app randomly crashes while performing unrelated operations.
[Motorola Photon Q 4G LTE] arrrghhh:
Dangit, I always forget about MMS. I use Google Voice, so I always tell people to just send pic mail to my email, because MMS is always such a PITA...

I'll see what I can do, but it is a notoriously annoying piece.

I've never experienced the high pitch sound you describe in the earpiece - on CM10 or 10.1.

Also, I never do "dirty" flashes, which it sounds like you have done. I never recommend them... Granted this is my first Android device, it just seems like a bad idea to carry all that over - at least wipe cache/dalvik-cache....

Edit - confirmed BT is dead. Looking into it. As for the clock app, I've set a few alarms and mucked with it earlier today - not one FC. I know you said "unrelated actions" - not sure what that means, but please do a factory wipe.
[Motorola Photon Q 4G LTE] gabestover:
I tried a dirty flash over CM10 and had the same clock crashing problem. Wiped everything, flashed clean & no problems w/ clock.
[Motorola Photon Q 4G LTE] arrrghhh:
Yep, I just confirmed the same. Thanks!
[Motorola Photon Q 4G LTE] gabestover:
Tried out SoundHound and it works fine - must be an issue with Shazam. I hadn't tried it since being on CM10.1, so maybe it just doesn't like 4.2.2. SoundHound it is - thanks!
[Motorola Photon Q 4G LTE] Nippero:
Just installed this on my PQ last night, working great so far :D

Thanks for your work!
[Motorola Photon Q 4G LTE] ACiD GRiM:
This is great, NFC is working!

I was getting a lot of force close on the phone app when making calls, but as long as I didn't press ok the call would keep connected. I'll test in a bit to see if the new nightly is better for that.

Does anyone know if the deodex'd sprint apps like hidden menu, self service, and PRL updates are able to be installed in cyanogen?
[Motorola Photon Q 4G LTE] dwaynet89:
Don't know of anyone else has ran into this but my phone will not vibrate for anything. I have went through messaging settings as well as phone settings and check every vibrate settings there is and still nothing. I did notice this slightly on the jb soak also but thought it was me just being absent minded.
[Motorola Photon Q 4G LTE] FinntheViking:
I'd noticed that as well. I thought the problem was caused by my Otterbox case slightly deadening the vibration, since that had been a problem ever since I put the phone in that case, so 6 months or so. I removed my phone from the case, checked all the settings, and even downloaded some apps that are designed solely to make the phone vibrate (don't ask) for testing purposes. Still no vibration. At this point since no one else has mentioned it, I have assumed it's a hardware issue, and I was going to get 'round to flashing back to stock so I could get the device replaced by Sprint service and repair. If you're the only other person having the issue, I'm sure we just both need our phones replaced lol.
[Motorola Photon Q 4G LTE] arrrghhh:
I doubt any Sprint apps can be installed on here... As Skrilax states in his thread, any PRL updates should happen on stock. Just like Sense devices in the past, where you had to be on Sense to do PRL/etc... AOSP does not include that stuff.

I wouldn't recommend trying to add it either...

As for the FC's, have you made any modifications? That's really odd, I don't have any FC's on phone calling. Did you dirty flash?

Odd, I will have to check this out. I noticed it vibrated when Facebook said I had invalid credentials or something, so vibrate works...

Edit - I use Z Device Test, and vibration works here...

So, I'm not sure what is going on folks! That is a weird function to be missing. Let me see if I can set vibration for inbound calls or SMS.

Edit 2 - Enabled vibrate on incoming calls, and tested that as well... worked great!

I wonder if this is another one of those that degrades after a lot of uptime? For those that are not able to get vibrate to work - use Z Device Test, verify vibrate does NOT work. Reboot the phone, and run Z Device Test again.

Still failing? Take a backup, and do a complete wipe (data/cache/etc) and flash again. Without installing any apps (skip all of the configuration/initial setup stuff) and try to test vibration... Without installing any apps, the easiest way is probably the incoming call test I did. Just make sure that vibration on incoming call is enabled in Phone Settings.

Thanks guys!!
[Motorola Photon Q 4G LTE] FinntheViking:
Confirmed hardware issue. Guess I'll be flashing back to stock and dragging it into a Sprint S&R store when I feel like dealing with it. [Which may be never.]
[Motorola Photon Q 4G LTE] dwaynet89:
Same here. Confirmed that's it's a hardware issue. Thanks though.
[Motorola Photon Q 4G LTE] KyleJDavison:
So I finally took your advice from two weeks ago and flashed the JB soak. I have working GPS - So I guess that's the answer to non working gps. No amount of flashing and wiping seemed to clear it up for me. Thanks for the advice. Most everything else is running smoothly.
[Motorola Photon Q 4G LTE] ACiD GRiM:
I wiped system before flashing this update, and I wiped data before I tried the May 1st rom, but not before I flashed the May 3rd.

Does cyanogen not support "charge only" or is that just something that needs work in this port?
[Motorola Photon Q 4G LTE] dpwhitty11:
Any idea what's causing LTE signal bars not to display correctly?

I'm literally always in LTE areas, so I can test out any changes you make in regards to fixing that.

*EDIT*

For the latest build, installed over the soak test, wiped, installed again, and wiped again:

I'm not getting any haptic feedback from the keyboard, but vibration works on everything else.

The messaging app also doesn't switch to a dark theme when selected to do so.

Wifi Tether for Root Users also doesn't create an access point. It starts, and says there are no erros, but doesn't broadcast the SSID or actually transmits a signal (can't connect or even see it manually).

I also can't get audio to play out of auxiliary output? At least not with the cord I had in my car.
[Motorola Photon Q 4G LTE] arrrghhh:
Please do NOT dirty flash. I state this in the first post.

As for charge only, what do you mean? For USB, you want a 'charge only' option? It still charges if you plug in USB....

I don't know what is up with LTE signal bars. SolitaryWarrior1 said it was a build.prop setting, but I don't think he found it. I haven't found anything fruitful, and since LTE works... I figured it was pretty low priority.

As for your other issues, no clue. Wifi tethering is built-in - why use an app? Haptic feedback, on the soft keyboard? I think you have to enable it. Messaging app, no clue - I can confirm the issue, but what the heck to do to fix it... Lastly, just tested audio on my headphones - works great. I also listen in my car using an aux cable, no problems.

Edit - re: haptic feedback on the keyboard... It seems it is enabled by default. I disabled/re-enabled it... does not seem to work. Odd.
[Motorola Photon Q 4G LTE] dpwhitty11:
The stock wifi tethering doesn't load a page. It connects just fine. Sprint does something to where if you don't have a subscription for tethering, it doesn't put out data even if you make the connection. I don't know of a way around it.

The audio issue is still there for me even after a reboot and trying a few different sets of headphones.
[Motorola Photon Q 4G LTE] arrrghhh:
I just flashed the other 10.1 build, haptic feedback issue is present there as well.

As for the audio issue or wifi tethering... I'm not sure what to tell you. I just tested the slowest speed test ever:

But it's definitely using Sprint. The internet is definitely working. I definitely do not have a tethering plan with Sprint.
[Motorola Photon Q 4G LTE] matt2k12:
so if we need to update PRL or profile, we just switch over to a backup or something on the stock ICS/JB, then switch back to the CM110.1 backup and good to go?

I like and appreciate CM, but I need to use the dock /usb and the video camera on occasions so i would need to switch back and forth between roms.... is this recommended? i know its tedious and kinda time consuming but im jjust wondering if its something you guys do often or whatever.
[Motorola Photon Q 4G LTE] arrrghhh:
Should be able to restore from a stock backup and perform any PRL operations, then either flash CM or restore a CM backup.

Same with your other issue, simply restore backups. I do this quite a bit, I don't see any issue with it. Obviously if you backup something that causes issues, you will restore those issues - just something to be wary of.

Also, clearing cache does wonders if you are having odd issues.
[Motorola Photon Q 4G LTE] dpwhitty11:
I'm at a loss too with the tethering and audio issues.

I guess its just back to the soak test for me. The audio was a DD dealbreaker. I'll try this again in a few weeks.
[Motorola Photon Q 4G LTE] arrrghhh:
I use audio thru the headphone jack daily as well... Tethering, not daily but definitely nice to have when I need it (although as you can see in my basement it's not needed nor wanted).

The only issue that's truly bothering me is the USB issues. It will charge off AC, but won't charge off USB - computer doesn't even recognize anything is plugged in. Reboot, it's fine. Troublesome it happens, and difficult to troubleshoot without USB connectivity. I guess I need to enable ADB over TCP and wait for it to happen again... Or there's probably "an app for that", oy.

Obviously if audio works on the JB soak, then you are fine hardware-wise. Let me know if you want to troubleshoot further... logs will probably be needed. I'm sure you didn't dirty flash :p

Edit - regardless, I appreciate your help with testing. I have updated my buglist accordingly... Let me know if you want to give it another crack, we can try to debunk it.
[Motorola Photon Q 4G LTE] dpwhitty11:
I'd be more than happy to help pin down the issue here.

And no, you're right. Flashing ROMs is the only thing I don't do dirty ;)

I'll give it another install tomorrow and shoot a pm your way with the results.
[Motorola Photon Q 4G LTE] arrrghhh:
Hah, just saw your post after I finished editing mine. Sounds good, thanks much!
[Motorola Photon Q 4G LTE] arrrghhh:
Sorry for the doublepost guys, but I think I have discovered what causes USB to die. After I plug the phone into AC, it will no longer work on USB.

Now to find out why... :D
[Motorola Photon Q 4G LTE] FinntheViking:
I haven't had the USB issue, and I charge my phone via AC every night.
[Motorola Photon Q 4G LTE] arrrghhh:
Odd, I can recreate it consistently.

Plug in USB. Works fine. Plug in AC. Charges. Plug in USB again, nothing. Does not charge, recognize the PC, nada.

Rebooting fixes it. I wonder if time fixes it as well? I'm looking at the logcats when this happens (hooray for adb over TCP) and even though it's not charging or recognizing on the PC that something is plugged in, logcat still shows events as if I am plugging/unplugging.

That's kind of annoying really that everyone does not experience this behavior... Do we have minor hardware differences between our devices? Crap.
[Motorola Photon Q 4G LTE] Mordannon:
After one of my reflashes i noticed that i lost GPS. I tried the other method of flashing stock, letting it get a GPS lock then flashing 10.1 and it worked. I use GPS daily because my drive to work has unpredictable traffic so i'm very happy to have this working.
[Motorola Photon Q 4G LTE] dpwhitty11:
That's what I'm thinking. I wouldn't be surprised. It would also explain the random issues for random people.

In Settings -> About, my HW version is P2B.

Also in regards to me reflashing and getting a logcat for you about my audio issue - it seems I have punched my laptop slightly too hard this time, so I am without a computer XD
[Motorola Photon Q 4G LTE] arrrghhh:
Am I missing something? I see baseband version, but I do not see any Hardware version....

and ouch on the computer situation! Don't punch the electronics! :p
[Motorola Photon Q 4G LTE] dpwhitty11:
It may be left out of CM, I'm back on the soak.

Hey, it worked back in the days of Windows 98!
[Motorola Photon Q 4G LTE] matt2k12:
I just recreated this issue.
[Motorola Photon Q 4G LTE] arrrghhh:
Hah, for the first time I'm kinda glad someone else has this issue!

I will definitely do my best to sectionalize it - I did test the other 10.1 build, the USB bug is present there as well. It's likely a kernel issue, so this might even be cross-device as we use a common kernel for all moto msm8960's.
[Motorola Photon Q 4G LTE] arrrghhh:
Anybody want to over/under clock? Currently at 96mhz and 1809mhz.

I've included my changes from my v0.10 kernel, rebuilt for CM.

Flashable zip attached.
[Motorola Photon Q 4G LTE] wintrxtrem:
Thx! Aside from under/overclocking, are there any other differences from the CM kernel?
[Motorola Photon Q 4G LTE] arrrghhh:
Not one bit. Just tweaked the tables in acpuclock.

I believe the issue with USB is kernel related, but a bit beyond me at this stage. Hoping to work a bit more on it.
[Motorola Photon Q 4G LTE] matt2k12:
How do we do kernels? I've never done them before.
[Motorola Photon Q 4G LTE] arrrghhh:
I made it easy, and bundled it up in a flashable ZIP. Just flash the ZIP as you would any other via recovery. No need to wipe anything.
[Motorola Photon Q 4G LTE] matt2k12:
Ok so now how do I un-kernel? Looks like it killed my wifi. Guess I should have done a back up.......

My wifi is shaded in like its not accessible on the settings menu. Its shaded in the off position. When I click on it to open up the wifi menu, and click "on" it just sits there saying "Turning Wi-Fi on" and never turns on.

I don't have 4g so WIFI was the only thing keeping me going.

EDIT - I haven't been keeping up with nightlies if that matters at all. I might be on the 4/30 build or so.
[Motorola Photon Q 4G LTE] arrrghhh:
Hm, that's odd. I use wifi as well, works fine here (you can see in the screenshot).

Make sure you are on the newest build... There were some kernel changes lately. You can grab the boot.img out of the .zip for cm10.1, put it in the .zip from the kernel flash you downloaded (replace the boot.img in there) and you will effectively flash the kernel back from that version of cm10.1.

Next time take a backup :good:
[Motorola Photon Q 4G LTE] matt2k12:
So should I

1)pull the boot.img from the 4/30 build

2)copy/overwrite it to the Kernel

3)reflash the Kernel

4)Then update to the latest build

?
[Motorola Photon Q 4G LTE] arrrghhh:
If you're going to update to the latest build, just do that first. Then flash the kernel update.

Don't need to muck with any files that way if you're going to the latest... I was only giving you a way out if you wanted to get wifi back now on the setup you had ;)