yashsingh1/xdaforums huggingface dataset:
[One (M7) Original Android Development] fadival:
Yes. It will help you to find the correct region rom for your device.

First do the this in fastboot.

Fastboot oem lock

It will lock your bootloader.

Then using your modelid and cidnum, find the rom on this site :

http://xdaforums.com/htc-one/general/lollipop-ruu-zip-small-collection-t3053944

Download the firmware which matches to your cidnum and modelid and fastboot.exe, then replace fastboot.exe with your platform-tools folder.

Now perform the rest of the commands.
[One (M7) Original Android Development] neosferatu:
Ok I think I got the right ROM.

Trying again

UPDATE:

OKAY

Flash Zip Complete

Execution time is 597(s)

SUCCESS!

Thank you!!
[One (M7) Original Android Development] fadival:
Did you change your modelid for updating device to lollipop GPE version ?

---------- Post added at 04:12 PM ---------- Previous post was at 04:09 PM ----------

Just match the correct modelid.

---------- Post added at 04:16 PM ---------- Previous post was at 04:12 PM ----------

I am assuming that your device is unlocked single sim 801 edition !
[One (M7) Original Android Development] levpard:
Wake gestures

Hi guys, i am running the latest update cm-12.1-20160522-NIGHTLY and i´ve problem enabling wake gestures. I´ve tried the AGK Kernel by antaril, NuK3rn3l by santod040 and JekkosKrrnl by jekk0s. I´ve tried various apps like trickster mod, kernel toolkit and others but nothing works for me. Before trying to enable the wake gestures i´ve mounted the system RW via ES File explorer. Can anyone help?? Thanks in advance
[One (M7) Original Android Development] ace-user:
is anyone else facing this random ghost touch bug? Have to keep locking and unlocking to get the phone working again.
[One (M7) Original Android Development] aloknm:
I started developing a camera app that doesn't crash for this phone and got the rear camera to click without crashing. So I thought I could try to implement my fix into android source. I found this file which could potentially solve our problem. So the basic error we get is that the phone has no idea what the camera is doing (basically if it finished capturing the image or not). With som debugging, when the phone got confused, I told the phone that the photo has been taken (Which is true for our phone but might not be for others so this is only for the HTC ONE M7) clearing it from the confusing and it continues to function.

Andorid on the other hand throws Media Server died and kills the camera. In the below linked file, instead of throwing the exception, since we know the state of the camera, we can create a new camera object which should potentially fix the issue. Thoughts on the fix and can anyone test it?

https://android.googlesource.com/pl...c/com/android/camera/CameraErrorCallback.java
[One (M7) Original Android Development] 9Lukas5:
[MENTION=2905987]aloknm[/MENTION] cool that someone still thinks about that deal breaker ??

Did i understand that right, that this solution would give us a camera app that works so despite the buggy camera?

Or will that fix/hack all camera apps to work?

L

Gesendet von meinem HTC One m7
[One (M7) Original Android Development] aloknm:
It think it should fix all the camera apps if it works.
[One (M7) Original Android Development] 9Lukas5:
Sounds good.

Any tip how to test it / implement it in the rom?

L

Gesendet von meinem HTC One m7
[One (M7) Original Android Development] aloknm:
Replace the onError function in the file with this.

@Override
public void onError(int error, android.hardware.Camera camera) {
Log.e(TAG, "Got camera error callback. error=" + error);
if (error == android.hardware.Camera.CAMERA_ERROR_SERVER_DIED) {
// We are not sure about the current state of the app (in preview or
// snapshot or recording). Closing the app is better than creating a
// new Camera object.
// throw new RuntimeException("Media server died.");

try {
c = Camera.open(); // attempt to get a Camera instance
}
catch (Exception e){
// Camera is not available (in use or does not exist)
e.printStackTrace();
}
}
}

Try that and tell me if it works. If it dosent, upload the debugging log.
[One (M7) Original Android Development] 9Lukas5:
Ok...replace the onError function in the file you linked above. But WHERE do I put that file then?

In the source code for example I can go down to the package of Camera2. There the folder structure is given like in your link.

But would it change anything if I simply put that .java file in there without doing anything else (guess not?)?

Or is there a point in let's say the android_device_htc_m7-common source-tree to put that code into a key place for a general change?

L
[One (M7) Original Android Development] aloknm:
From what I understand you did not find the file to replace. Try a recursive search on the whole thing (I know it will take a long time). I shall try to find the file too. It will not be in the htc_m7-common source-tree since its a file in the camera2 api package which is common to all android mm devices.

Update: I think that file has been deprecated.

https://github.com/CyanogenMod/andr...es/android.hardware.Camera.ErrorCallback.html
[One (M7) Original Android Development] :
When will the update be available?
[One (M7) Original Android Development] n0j0e:
Lets the devs work and still wait! xda rule: Don't ask for eta. ;)

Send with much love & Android.
[One (M7) Original Android Development] -leo-:
I tested this rom under f2fs, very smooth, and daily driver like. camera will exit after a shutter, will try cameringo later as i am in china, very firewalled from google play.........lol

btw. may i expect logo2menu and dt2w, please, if possible?

thanks for the great work
[One (M7) Original Android Development] aloknm:
I already looked at that file and some others but the errors handled by them dont seem to correspond to the issue. And even if it did, I dont know how to fix it without having access to the camera object which are not present in these functions.

The problem seems to be happening when camera2Api tries to talk to the legacy api after the photo is taken but the legacy api is not responding to it and the camera2 object kills itself.

I presume all the apps have been updated to camera2 but did anyone try an app version before lolipop and see if there is any issues?
[One (M7) Original Android Development] 9Lukas5:
The app Snap Camera HDR from PlayStore has a switch to use Camera2 API and the problem is the same with the option on and off:/

L

Gesendet von meinem HTC One m7
[One (M7) Original Android Development] mtpektas:
CM fixed the camera problem. XenonHD hasn't got that bug..
[One (M7) Original Android Development] 9Lukas5:
I guess it's this commit:

http://review.cyanogenmod.org/#/c/149734/

I'll start a build as soon as I get home (y)

L

Gesendet von meinem HTC One m7
[One (M7) Original Android Development] Homerstar296:
M7 finally gets CM13 :D didn't believe that this day would come :victory:

http://review.cyanogenmod.org/#/c/149845/

Gesendet von meinem HTC One M7
[One (M7) Original Android Development] aloknm:
Yeah that's the one. Realized i was looking totally in the wrong place to fix the bug. Glad someone spotted it and fixed it.
[One (M7) Original Android Development] renepf:
Does the CM 13 also work on HTC One Mini2? That would be just awesome!
[One (M7) Original Android Development] 9Lukas5:
Hm...I did a new repo sync, compiled and uoloaded it.

But for me personally the camera behavior didn't change ?

The build can be found in my AFH folder if you want to test for yourself.

But the Google camera aswell as cms inbuilt Snap is doing the same yet for me.

L

Gesendet von meinem HTC One m7
[One (M7) Original Android Development] Homerstar296:
For me the same! The official CM13 fix doesn't solve the camera issues :( Back to 12.1 again.
[One (M7) Original Android Development] 9Lukas5:
I knownow what's the problem.

The proprietary vendor files I used needed an update ?

Because the actual fix was a hexedit in the camera Hal.

See the comments under the commit fir preview restart on gerrit

Gesendet von meinem HTC One m7
[One (M7) Original Android Development] Homerstar296:
Can you compile a new version?

Would be great ?
[One (M7) Original Android Development] 9Lukas5:
Haha of course

I made a dirty build with the newer vendor files and checked it.

It WORKS now.

Clean build is compiling right now (will take 2-3 hours).

Then I'll upload it and post again for you all to notice ?

The problem is, that when I started making builds, I had to find the vendor files and used the AICP repo.

But unfortunately, they haven't merged this hexedit of the camera HAL yet, so it didn't work yesterday.

Now I'm using the repo from TheMuppets for the vendor files

Edit: the time is over, but for some reason the build is still working, sorry^^

L

Gesendet von meinem HTC One m7
[One (M7) Original Android Development] Homerstar296:
Take your time :) If it takes more time it will get even better :)

I'm glad that we have nearly stable CM13 now! I never thought that anybody would care about the 3 year old m7s camera problems anymore :D
[One (M7) Original Android Development] 9Lukas5:
Yeah, and the actual magic (as the answer was under commit after I asked^^) was a HEX edit in the Camera HAL

Would be so much easier and better I guess if HTC gave us the full source code ?

L

Gesendet von meinem HTC One m7

---------- Post added at 18:08 ---------- Previous post was at 17:35 ----------

Hi all,

cm fixed the camera in this commit

they also did create the commit for pushing the m7 official to cm13.0

I uploaded a new build with the fixed camera:

Edit: Re-uploaded with a rebuild of the kernel, as I noticed that on a sync with cm, anytime the swap config was set off again. For those wanting swap and flashed the update yet, here's only the rebuild boot.img:

boot_cm-13.0-20160618-UNOFFICIAL-9Lukas5-RC1-m7.img

cm-13.0-20160618-UNOFFICIAL-9Lukas5-RC1-m7.zip

xda-thread for my builds

I'll build even apart from the now shortly starting official builds here and then a private build, because the gpu oc/undervolt and cpu voltage control won't be included in the official builds, but I don't want to give them up :good:

L
[One (M7) Original Android Development] crashdjent:
Camera fixed now. Confirm

But Autorotate doesnt work
[One (M7) Original Android Development] 9Lukas5:
Can anyone else confirm problems with the rotation? Cause on my phone it works fine, and I flashed the same file I uploaded ?

L

Gesendet von meinem HTC One m7
[One (M7) Original Android Development] crashdjent:
On Sense firmware no problem with that. But cm13 or AICP 11 auto rotate is not working. What have I done wrong? maybe I need to somehow reset the firmware by following certain actions?
[One (M7) Original Android Development] sirluckyluke:
No problems here :)

Thx for the commit...
[One (M7) Original Android Development] devsk:
Lukas: How about the CONFIG_SWAP=y related change? Was that merged upstream? If I recall, it was only in your and crdroid's kernel. But its good to see official CM13 for m7.
[One (M7) Original Android Development] 9Lukas5:
This, are still my unofficial builds. And they will further contain exactly those changes, I added additionally to cm default.

So, here the swap config is enabled, but won't be on the official cm builds.

See here:

http://review.cyanogenmod.org/#/c/132759/

L

Gesendet von meinem HTC One m7
[One (M7) Original Android Development] devsk:
Ethan is making a non-argument. Even the phones released with 6GB RAM have CONFIG_SWAP=y in their kernel config.
[One (M7) Original Android Development] 9Lukas5:
Let's see if it gets merged now??

Edit: now it's merged ?

But I thought I won't discuss it further, as I'll need to build for myself anyways further on.

Because, what's not getting merged (I didn't upload those even to gerrit [emoji14] ):

- CPU user voltage control

- GPU undervolt

- GPU overclock

L

Gesendet von meinem HTC One m7
[One (M7) Original Android Development] devsk:
I will very likely take the kernel from crdroid and use that on top of official cm13. It should work because crdroid is basically CM13 code with some mods.
[One (M7) Original Android Development] :
*ignore this and delete*
[One (M7) Original Android Development] Twist79:
I have to say thank you for giving my two M7 phones a second life with your unofficial cm 13 builds!

Keep up the good work please!
[One (M7) Original Android Development] stophart:
i need kernel with double tap wake up for CM 12.1, please tell me, which am i use
[One (M7) Original Android Development] crashdjent:
someone please share the contents of the folder modules from cm12.1
[One (M7) Original Android Development] fohdeesha:
Hey all, it's been a few years since I've flashed my M7 (still on cm10). It's about time I do, and I'd like to try cm13.

Should I grab the "official unofficial" cm13 builds from the first post in this thread, or use 9Lukas5's unofficial builds? If I should use 9Lukas5 unofficial builds, where should I get them? Are they just scattered in links throughout this thread? Thanks!

Also, is there anything with cm13/these builds I should know about bug wise? Are they usable as a daily driver? Like audio, bluetooth, MMS, wifi etc, is it all roughly stable finally, or if I rely on all these should I stick to cm12? I read through as much of the 100 pages here as I could but it all seems to change constantly

Thanks again!
[One (M7) Original Android Development] aloknm:
There are a lot of cm13 based rom.

http://xdaforums.com/htc-one/development

9Lukas5 roms are posted here http://xdaforums.com/htc-one/development/rom-unofficial-cm13-0-t3346054
[One (M7) Original Android Development] fohdeesha:
After reading through the 20+ different cm13 rom threads it seems there's not a single marshmallow rom that actually has working MMS, gps, camera, bluetooth, torch, etc, at least one of them is broken in every rom :(

Was really hoping MM would be daily driver ready, I'll look at some lollipop roms
[One (M7) Original Android Development] 9Lukas5:
[MENTION=4727306]fohdeesha[/MENTION]

- Gps is something quite new, but don't know if it's really a bug everyone has with the current builds or it only doesn't work for some anymore

- Bluetooth calls are buggy, media streaming works for me

- the inbuilt camera is fine, some third party apps have still a few problems

- mms I don't know, not using this (to be true, I never ever used that?)

L

Gesendet von meinem HTC One m7
[One (M7) Original Android Development] 123RaZoR321:
Is there a fix for wifi region code getting reset after some uptime? My problem is that without this the device can't connect to wifi(or just connects at G, 54mbit, OFDM). Running latest 12.1 nigthly build. The device is m7_ul.

The stock HTC rom(and every other that is based on it) gets the country code from the sim card, and Belarus seems to be blacklisted so the phone can't connect to 2.4Ghz N or 5Ghz at all. CM has a handy switch for that, but this setting doesn't stay forever. Sometimes it stays for 2 days, sometimes I have to set it again after couple of hours.
[One (M7) Original Android Development] MacGyverDTH:
I just installed CM 12.1 on my HTC One M7.

I added my google account, but the calendar sync is missing (The calendar app is there, but no sync option in the google acount, just the contact sync option).

There is also the app "calendar sync" missing which should be there.

If i install the google calendar from the store the sync button is here and works. But now i have two google calendars. If i uninstall the google calendar from the store the "sync" button is also gone...

How can i fix this (i do not want to have two calendar apps)

I also saw that the calendar app in the gapps is a little old (v5.1...) and from the store it is v5.5.... is there a newer version of the gapps to download and reinstall on CM 12.1 ?

EDIT:

I found a solution. I extracted the "GoogleCalendarSyncAdapter.apk" from the CM 12.1 zip (/common/app/ directory) and installed it manually on Android. Now i have the sync button for the calendar.
[One (M7) Original Android Development] jhuizi:
CM13 M7 turning off when recieving/making call

Hi all

Flashed the latest CM13 build, everything is great except the fact the phone reboots every time a call comes in or attempt to make an outgoing call. Any ideas?

Using gapps dialer. Attempted with True dialler, same story. Reboots straight to boot animation without HTC logo

Cheers,

Julian
[One (M7) Original Android Development] 9Lukas5:
[MENTION=7613530]jhuizi[/MENTION] the latest isn't *totally right. This thread isn't updated anymore. The latest build can be found e.g. in the link below from me:

http://xdaforums.com/showthread.php?t=3346054

Or in one of the other threads you can find in the development section.

L

Gesendet von meinem HTC One m7
[One (M7) Original Android Development] jhuizi:
[MENTION=3320665]9Lukas5[/MENTION]

No worries, thanks for the reply. I'll try your latest from the thread mentioned.

Cheers,

Julian
[One (M7) Original Android Development] bus22004:
cm13 0727 update bugs:

1)the camera work once then jump to main menu

2)the flash night work once and auto turn off
[One (M7) Original Android Development] natzy85:
Coming from I9250 I'm surprised this does not have an official CM13 yet.
[One (M7) Original Android Development] 9Lukas5:
[MENTION=2015081]natzy85[/MENTION] there's a big dialogue on gerrit on the commit for enabling nightlies for m7 ?

Can send you the link later if your curious ?

L

Gesendet von meinem HTC One m7
[One (M7) Original Android Development] aerozeppel:
Would love the link
[One (M7) Original Android Development] 9Lukas5:
m7: Promote to cm-13.0

L

Gesendet von meinem HTC One m7
[One (M7) Original Android Development] Droidcore:
[MENTION=3320665]9Lukas5[/MENTION] hi, you can read this cat log? https://gist.github.com/droidcore/01f39a77e416ee4642334d0b8e926312

y rom build have soun problem,, touch sound normal but video, music no sound
[One (M7) Original Android Development] 9Lukas5:
Are your kernel and device trees are both synced with cm?

Can't get much out of logs, but there changed something in sound end of June http://review.cyanogenmod.org/#/c/150454/

There where a few kernel patches I merged in last Sunday before building, maybe in one of those you can find an answer?

You could check those on gerrit, too or on my GitHub commit history.

Hope that helped you in anyway

L

Gesendet von meinem HTC One m7
[One (M7) Original Android Development] CarpeDiemJay:
Is the latest CM12.1 completely stable? I'm considering moving from stock Sense OS to CM12. I've got CM13 on my Moto G and I would simply like a stock nexus-y experience on my phone. Do calls, data, wifi, camera and gps etc all work? Is the alarm clock (most important thing) stable? Are there issues like gmail not syncing?

Thanks in advance.
[One (M7) Original Android Development] crashdjent:
All works fine
[One (M7) Original Android Development] CarpeDiemJay:
My m7 had terrible battery (would randomly die below 20%, would give about less than 2 hours 30 min of screen on time all the time etc) so I decided to replace the battery. I bought a genuine battery replacement from a well known brand in the uk called replacebase. I went to a local shop to have it fixed. The issue is the battery doesn't seem to have changed at all. I don't know how to check whether they cheated me and gave me back the same battery or worse and kept the original battery. Could the battery drain be caused by something else or should replacing the battery have fixed any and all battery issues?
[One (M7) Original Android Development] ShreyanshLodha:
Do you have ROM for HTC one Dual SIM 802D m7cdwg?
[One (M7) Original Android Development] dd98:
M7 owners, by the looks of this in the CM code, then we will be seeing Official CM13 for the M7 though as usual it will probably only be for the m7_u and the m7_ul. Once CM13 goes official for the M7, I will add it to this thread and give the OP a bit of a polish!
[One (M7) Original Android Development] 9Lukas5:
[MENTION=5272312]dd98[/MENTION] you saw that this commit isn't done anything since a long time yet?

So I'd guess, that cm13 won't get enabled that soon for m7^^

L

Gesendet von meinem HTC One m7
[One (M7) Original Android Development] todogamer:
who passed me a link to the latest gapps to install this rom CM12.1 in m7 htc at & t ?? thanks..
[One (M7) Original Android Development] crashdjent:
www.opengapps.org
[One (M7) Original Android Development] todogamer:
and there is no risk of any brick if I do not install those promoted in post # 1 of this thread? there is a link there but I saw old but nose if it oblogatorio install these gapps or can I use the most recent opengapps.

and which platform should I choose for this htc m7?
[One (M7) Original Android Development] crashdjent:
Download gapps for your android version and install.
[One (M7) Original Android Development] todogamer:
But not choose which platform I get Arm, Arm64 , x86, x86-64 , which one corresponds me ??
[One (M7) Original Android Development] crashdjent:
ARM
[One (M7) Original Android Development] todogamer:
Now I have the rom cm12.1 is perfect, thank you very much. Now I was watching the MOD sound.

* Which I recommend installing?

* Or I can stay with sound stock and I just, not much diferiencia?
[One (M7) Original Android Development] crashdjent:
Viper4Android
[One (M7) Original Android Development] todogamer:
Rom consumes the battery a little faster than the stock rom 4.4.2 , any solution , suggestions or help would be well pleased . (cm 12.1 last nigtlhy).

And what is best for now CM13 or 12.1 cm ?
[One (M7) Original Android Development] crashdjent:
Stay on stock if you need better battery life
[One (M7) Original Android Development] mchowdhury:
Has anyone noticed the microphone being super quiet (almost unusable) during phone calls? Is this a bug that can be fixed?
[One (M7) Original Android Development] crashdjent:
Are you sure that this is not a fault of the microphone? Maybe it is broken?
[One (M7) Original Android Development] mchowdhury:
Nope, I was running CM12 a few days ago and it was fine. Only since I've flashed CM13 based ROMs have I noticed a problem. The microphone still works, but it's very faint. Is anyone else noticing this problem?
[One (M7) Original Android Development] nightwind84:
use L Speed (on play store and root needed) this tweek it's fantastic... the battery life is superbe with standard feature.
[One (M7) Original Android Development] todogamer:
I've been testing the ROM ( cm12.1 ) and I have noticed a small flaw or bug that came on android 5.0.x is that the battery is being spent faster using WiFi when you're using mobile data ( 3G or LTE ) , recommend trying to find some solution to this because I noticed that the consumer pays more data being which should be to the contrary, WiFi should spend less. Thank you
[One (M7) Original Android Development] iriijo:
Torch goes always off fix

Hi,

i installed yesterday cm13 on my m7 and noticed the flashlight goes always off.... (in CM12.1 it worked fine).

I started debugging (this whole day) and found a solution. If someone has enough courage to test it...

here it is: http://www15.zippyshare.com/v/01zH9JJo/file.html

PS: Use at your own risk & do not share this file/dl link outside from my current post.

Enjoy!

Thanks :D
[One (M7) Original Android Development] 9Lukas5:
[MENTION=4359960]iriijo[/MENTION] WHICH cm13 did you flash?^^

On my last build the torch is working fine.

http://xdaforums.com/showthread.php?t=3346054

Oh and....where does this lib come from?

L

Gesendet von meinem LG Nexus 5
[One (M7) Original Android Development] iriijo:
Torch goes always off fix

Hi,

i used the latest cm source (without any changes) and my torch always turned off after 2 seconds.

The lib is created by my self and contains a "small" hack to avoid a nullRef which destroys the camera service.
[One (M7) Original Android Development] 9Lukas5:
So, a hexedit?

That'd be maybe a mergable better alternative to the bad hack discussed on Gerrit and I cherry-picked into my builds ??

Please have a look here and maybe leave a comment, too

http://review.cyanogenmod.org/160241

L

Gesendet von meinem LG Nexus 5