yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M2] linuxct:
Okay, maybe I didn't explain myself correctly. There are 2 kind of sensors in the Xperia M2, "regular" ones, which come bundled in almost all Xperia M2, and "special" ones, that came bundled in some batches of Xperia M2 Aqua D2403 and some new D2303.

You have "regular" sensors, and the patch is to get "special" sensors working in the ROM, not to fix a bug of the "regular" sensors set.

Fortunately, for those who own a "special" Xperia M2 they have all sensors working at the moment, however using that won't fix anything for us who own a "normal" Xperia M2.

Hope it's all clear now :)
[Sony Xperia M2] jobinrjohnson:
I think the d2302 users can download the kernel toolkit and increase the ZRAM size to get the best. I tried it and worked fine for me without any lags. It also have an option to enable the settings on startup so that you dont need to change the settings on reboot.

It will be nice if someone fix the lightbar issue.
[Sony Xperia M2] Umesh1041:
Sim is not working mate

---------- Post added at 02:48 PM ---------- Previous post was at 02:42 PM ----------

Are u using d2302 aka dual sim variant..if yes how did u get sim working
[Sony Xperia M2] jobinrjohnson:
Actually Iam not using the latest kernel. I am using kernel toolkit on the previous build
[Sony Xperia M2] Umesh1041:
Well...is it lag free? Or any how smoother
[Sony Xperia M2] linuxct:
I did the same on my D2303 (it's not something D2302 specific, for those wondering) with Kernel Auditor. Never got that high (1GB), but usually around 600-700MB. I couldn't say it increases performance, but it can handle multitasking a bit better.
[Sony Xperia M2] Th3 Ant:
If you comming from OmniRom 5.1.1 and you want to test latest CM build, you don't have to wipe data. Wiping system, cache and installing some gapps will do the work... I've just done that and right now I have "Optimizing app" :D

EDIT: Everything works :D

One thing though - if you won't wipe data, com.android.phone will stop working :(
[Sony Xperia M2] Umesh1041:
Jobinrjhonson pls tell me what exactly you did. Step by step if possible..tq
[Sony Xperia M2] jobinrjohnson:
flash this one http://www.mediafire.com/download/1q29htw5wazcrj5/cm-12.1-20151108-UNOFFICIAL-eagle.zip

install gapps

then download "Kernel toolkit" https://play.google.com/store/apps/details?id=com.dsmartapps.root.kerneltweaker&hl=en

goto I/O tab click on ZRAM under virtual memory and increase the slider (600-700 as [MENTION=4787101]linuxct[/MENTION] said).

Then click apply and exit the app. Sometimes it will reboot.

swipe the side bar out and check I/O under apply settings on boot.
[Sony Xperia M2] jobinrjohnson:
ofcorse it is. Far better than what you have right now.
[Sony Xperia M2] Konstantinosj77:
Ok guys let's get some things sorted out...

1)Please stop sending me PMs about building roms....Just use google! I'll make my local manifest public later!

2)I have the same bug in magnetic field sensor..i'll sort it out

3)DS users..sorry but i can't think anything new for you.So,stop begging and spamming..i do the best i can!

4)I got the pokemon go audio bug...100% mixer_paths i'll sort that out too...

5)Don't expect a new build...if i fix something i'll publish a patch not a new build

So...enjoy what you already have!! :D

Edit: Local manifest is up! https://github.com/kj77/local_manifests/blob/cm-12.1/local.xml
[Sony Xperia M2] galaxyfreak:
I'm curious what are they trying to archieve considering this build includes latest "developments" and "fixes". :confused:

And local_manifest is nothing more than list of used repos. Thing is completely buildable with stuff you've got on your github, lol.
[Sony Xperia M2] slole:
Ok I've fixed my sysMapFile error and I can flash any rom except the new build of cm12.1. I folowed all the instructions and everything (updated bootloader, installed twrp.....) but now I get an error saying failed to map file. And this error only occurs on this build of this rom (even the cm 13 build flashes, boots and works fine).

edit : it seams that there was something wrong with that particular zip just flashed succesfully!!! sorry for the bother
[Sony Xperia M2] Konstantinosj77:
One guy said that "Publishing a guide on how to build this rom wil attract more devs"

I'm pretty sure "devs" know how to build a rom,or at least how to use google!
[Sony Xperia M2] galaxyfreak:
Now that's the keyword. Many want instructions how to build specifically this ROM, and things are constantly changing, that kind of guide is pointless. Output will be exact same zip you've uploaded.

For everyone who wants to start - there are many guides on XDA, actually, I did a pretty long one with instructions and basic explaination of common files and folders back in 2013. :D

[GUIDE] Compile CM from source, source basics & FAQ - Very detailed and noob friendly

CM10.1 is used but concept have stayed the same.
[Sony Xperia M2] slole:
When I was messing around I also tried the cm13 and it seems really nice and stable (apart from the camera not working at all) I don't want to insist on rushing or anything because I know development is a longer process but I am interested in when if at all will you start cm13 development and if will you be able to get the camera working. Im just asking because I'm stoked about the feature that allows the sd card be used as main storage. I'm sorry if I'm bothering you and nice work with this build. You are really raising the value and usability of this phone THANKS.

Btw i like the boot sony logo. ;)
[Sony Xperia M2] Konstantinosj77:
CM13 development will start once we fix all bugs on cm12.1...I can't say anything about camera yet
[Sony Xperia M2] JuniorCaesar:
[MENTION=4550509]Konstantinosj77[/MENTION] works perfectly on my 2303, but i have small bug. I pair my bluetooth speaker and headset, but when i turn my bluetooth off and on, i need to re-pair my devices, phone not connecting to them.

Also rom is rock-solid bro, thanks for your work :)
[Sony Xperia M2] slole:
Thanks for the response. I've been testing this new build the last few minutes and it's crazy fast and the camera quality seems to be the same as stock. The homescreen preformance is nearly nexus 5-ish. Essentially this is what I've been waiting for since I had this device I can't thank you and everyone involved enough.

edit : You've literally given me a new phone because the performance is so much better than stock.
[Sony Xperia M2] galaxyfreak:
For everybody asking about camera on 6.0, well, I did some CM13 builds few months back, and erikcas did some fresh 6.0 Omni builds. It's not working out of the box but seems close. And Omni is a nice ROM for overview, it's pretty clean.

So for now take it as "won't work out of the box but should get fixed down the road" :)
[Sony Xperia M2] Konstantinosj77:
If only you guys had abandoned 3.10 kernel earlier....
[Sony Xperia M2] linuxct:
Pokémon Go & mixer_paths

I've been doing trial and error to narrow in which place of the mixer_paths happens the Pokémon Go glitch.

It's in this section:

<path name="speaker-and-anc-fb-headphones">
<path name="anc-fb-headphones" />
<ctl name="RX4 MIX1 INP1" value="RX1" />
<ctl name="RX4 MIX1 INP2" value="RX2" />
<ctl name="SPK DAC Switch" value="1" />
<ctl name="COMP0 Switch" value="1" />
</path>

And, replacing it by it's predecesor:

<path name="speaker-and-anc-fb-headphones">
<path name="anc-fb-headphones" />
<ctl name="SPK DAC Switch" value="1" />
</path>

Makes the game go completely silent.

EDIT: I've done one more try, the problem's exactly with the RX4 MIX1 lines, removing the COMP0 Switch did nothing.

Hope it helps. (My phone's right now hotter than torbjörn during molten core, but it was worth it lmao)
[Sony Xperia M2] Facundo_Pipa:
Same happens to me with my android wear device
[Sony Xperia M2] linuxct:
I've not experienced that issue with my Mi Band, I use it for Screen Unlock via Smart Lock and it works just fine... However, will try with my SW2 later.

Edit: It's correct, it's happening with my Sw2. Just like Th3 Ant commented below, it probably is related to randomly generated MAC address since hardware address is not correctly detected.
[Sony Xperia M2] Th3 Ant:
I've seen that bug before... bluetooth MAC address is constanlty changing after a reboot or bluetooth on/off. Changing (or creating) one file with random hex MAC address should fix it (can't remember where that file is though :P)

EDIT: I finally found it...

Steps taken from HERE

- go to data/etc

- make file "bluetooth_bdaddr"

- open it and insert random MAC address (it can be the one that you can find by going into settings > about phone > status under "Bluetooth address" (turn on BT first)

- change owner and group of the file to "bluetooth"

- change permissions to rw- r-- ---

- restart phone and check if BT address is changing
[Sony Xperia M2] galaxyfreak:
Oh, Sony released fix for this and time reset long ago https://github.com/sonyxperiadev/macaddrsetup

https://github.com/sonyxperiadev/timekeep
[MENTION=4550509]Konstantinosj77[/MENTION] :)
[Sony Xperia M2] galaxyfreak:
duplicate. Delete.
[Sony Xperia M2] Konstantinosj77:
Hm...there are many bugs...so maybe I'll make one last build after all...
[Sony Xperia M2] sudden36:
Well, that was me then. I think the message didn't come across as planned then. Let me tell you some backstory then:

I was involved in building ROMs for the LG P990, it was very easy to get the build system working

repo init -b cm-version you want
repo sync
breakfast p990
make

everybody could build their own ROMs and could at least try to fix bugs by trial and error.

Now with the eagle this doesn't work as easily, I tried to build CM from source several times, didn't work.

I asked for help, answers did take forever and weren't very helpful, so I gave up and lived with the provided ROMs, no improvements even tried. I suppose I'm not the only one with the same experiences, else there'd be more ROMs.

Anyway I suspect the local_manifest.xml will work now, so I have what I want. Thanks to you [MENTION=4550509]Konstantinosj77[/MENTION] and to you [MENTION=6487599]iFlashed[/MENTION] for the working sensors :D.

greets,

sudden36
[Sony Xperia M2] linuxct:
Working like a charm, many thanks. (I ran out of thanks lmao)

No worries, some of them were already sorted, or at least isolated, and, it really works as intended for a general use! I'd personally wait a bit more, maybe until the August security patch or until we can find and squash more of them ;)

Currently only bugs aware of in 2016-07-27 version are:

1. Magnetometer, which is something that can probably wait :confused:

2. DS Support

3. Mixer_paths.xml messing with Pokemon Go (narrowed here)

4. Random BT address after each reboot (solved here)
[Sony Xperia M2] Th3 Ant:
What's wrong with that? It works on mine [emoji14]

In Google Maps, compass works like it should (finally)... If I turn around it also turn the map in the direction I am facing. Maybe there are some strong magnets or some kind of metal nearby? :D

Sent from D2303
[Sony Xperia M2] Konstantinosj77:
It works for the special sensors but not for the normal ones!!

It's not a kernel problem as we use the same kernel

Only difference between them is that I didn't include memsicd and sensorsecond in my build...hm...
[Sony Xperia M2] Th3 Ant:
Copying them won't work? Like making another flashable zip just for now?

Sent from D2303
[Sony Xperia M2] galaxyfreak:
[MENTION=4550509]Konstantinosj77[/MENTION] are you using sxd sensors.msm8226.so. They dont need memsic 100%. Not sure about stock kernel compatibility :P
[Sony Xperia M2] Th3 Ant:
One question: is there a way to enable ambient display for notifications (like it is on OmniRom)?

Sent from D2303
[Sony Xperia M2] Konstantinosj77:
I don't really remember :P I'll check tomorrow...

I use stock libyasalgo but i don't think that's a problem....

Sensorsecond is not used by our phones

So all that remains is sensors.msm8226
[Sony Xperia M2] Umesh1041:
I mean..as of is it better then the beta 2 build stock...like is it possible for daily usage
[Sony Xperia M2] jobinrjohnson:
It is OK for the daily use. No lags.

Please someone fix the sim card issue so that we can enjoy the new build.
[Sony Xperia M2] Umesh1041:
Please do
[Sony Xperia M2] slole:
Do you mean one last build of cm12.1 and continue with cm13 or will you stop development for this device?
[Sony Xperia M2] iFlashed:
Cm13 will be a difficult work

Enviado desde mi Xperia M2 mediante Tapatalk
[Sony Xperia M2] JuniorCaesar:
my phone fully out of battery and doesnt offline charge :( it gets open and suddenly shuts down.
[Sony Xperia M2] galaxyfreak:
Apart from camera, everything works already :P
[Sony Xperia M2] xazakasrizava:
[MENTION=4635923]galaxyfreak[/MENTION] sorry to bother, but how do I know if I should flash the sensors zip on my phone
[Sony Xperia M2] iFlashed:
Easy, if your device is in bootloop after flash you have to flash the sensor patch too. If works fine it's not necesary

Enviado desde mi Xperia M2 mediante Tapatalk

---------- Post added at 02:46 PM ---------- Previous post was at 02:44 PM ----------

And we have problems with special sensors too we can't use stock blobs due to 3.10 kernel :(

Enviado desde mi Xperia M2 mediante Tapatalk
[Sony Xperia M2] galaxyfreak:
I'm on 3.4 too ;)
[Sony Xperia M2] slole:
In the new build there's a bug where screen under battery always states it used 0% battery and after some time it gets to the bottom of the list and eventually it is not displayed so I can't check screen on time.

While I'm on that note the battery life is nice but not really as good as on the z5 style but it's essentially unnoticeable and it's worth it considering the better performance. (I mean z5 style is already faster than stock but this is just slightly better especially the material design animations are waay faster.)

Thanks again for this build I just wanted to point out that bug.

Edit: I installed the new build following the instructions right from step one so I essentially did a clean install.
[Sony Xperia M2] xazakasrizava:
I flashed the ROM a few hours ago, and it's perfect! Only a couple miniscule bugs (if you can even call them bugs)

#1: Can't install Xposed. I need it for some very specific apps that I regularly use.

#2: It gets a bit hot when charging.

#3: I can't import my contacts from my sim card.
[Sony Xperia M2] Th3 Ant:
Xposed works... I am using it right now for YT background playback and other stuff... Which version are you trying to flash? 5.1.1 is SDK 22 (if I remember correctly)

Sent from D2303
[Sony Xperia M2] xazakasrizava:
Yes that exactly, would you mind giving me a link to the Xposed framework you are using?
[Sony Xperia M2] Th3 Ant:
http://cloud.tapatalk.com/s/579bc92bb7e2c/xposed-v86-sdk22-arm.zip

From my SD card [emoji14] Also, make sure you have backup or uninstaller just in case it bootlooped...

Sent from D2303
[Sony Xperia M2] xazakasrizava:
Perfect, works like a charm!
[Sony Xperia M2] furankuM2:
Where can I find pictures of what it looks like?
[Sony Xperia M2] slole:
Here you have some screenshots:
[Sony Xperia M2] nagyricsi20:
Deodex

Hi devs,

Is there any way to deodex this latest build? I really want to port Sony stuff (camera, incallui, small apps etc.) but it is only possible with deodexed roms. I tried to do it with JoelDroid's Lollipop Batch Deodexer, and the result was that app and priv-app folder remained untouched, only framework folder became deodexed. Flashed it via TWRP recovery and the result was bootloop. I saw other devices (for example Xperia Z) with fully deodexed CM 12.1 roms.

Thanks your reply in advance! :)
[Sony Xperia M2] Lojzo_11:
When I go to sleep yesterday, I had 85% battery. When I wake up, I have only 57%. What's the problem?
[Sony Xperia M2] xazakasrizava:
OK I have a few bugs to report.

#1: Battery drain is a bit aggressive when on WiFi.

#2: When my phone was in standby this morning, I woke up to check the time and noticed the battery was 90%, but when I woke up again it was at 80%

#3: When my phone rings the volume is very low.

#4: There is a constant # in the status bar (picture below).
[Sony Xperia M2] linuxct:
Your phone didn't go into deep sleep for some reason. Download CPU Spy, or GSAM Battery Monitor from Google Play, and check what's going wrong.

1. Here's the same as in mobile data, specially when on LTE, which I considered "normal".

3. Oh look, even my keyboard knows what I was about to say. Mixer_paths.xml, specifically edit the RX1, RX2 & RX3 DIGITAL VOLUMES, located at lines 27~29, with a value around 90 to 96, as you want.

4. That sharp is telling you an application is using Root Access at the moment, and no, it's not a bug. If it truly is constant, I'd suggest you revise which apps you've installed, because, it might be bad :p
[Sony Xperia M2] xazakasrizava:
Thanks! I have one more small problem.

I'm using your snap camera and the pictures come out really grainy, especially in low light.
[Sony Xperia M2] linuxct:
Why did you install it, when this ROM comes already with it? (only difference is UI lmao)

Also would like to know if it looks grainy on both versions or only mine... I've attached the Snap version from 28/07/2016 CM compilation for you.
[Sony Xperia M2] xazakasrizava:
Both are grainy, and also I prefer your UI
[Sony Xperia M2] vijaykmr:
Do you have D2302? If yes, do you have only one sim working?

I'm using only one sim. So if one's working,then I'll install it.
[Sony Xperia M2] Konstantinosj77:
Magnetic sensor fix.

Replace /vendor/lib/hw/sensors.msm8226.so with the new file with permissions rw-r-r

Download link

https://drive.google.com/open?id=0BxEc8D9KskxTbkV2VzFIMm5ndkE

[MENTION=4635923]galaxyfreak[/MENTION] this is the file from sxd zip ;)
[Sony Xperia M2] jobinrjohnson:
No it won't dectect any sim card.
[Sony Xperia M2] Konstantinosj77:
Can you give me dmesg from early boot?
[Sony Xperia M2] jobinrjohnson:
http://cloud.tapatalk.com/s/579cce9c90a15/dmesg.txt

Its here
[Sony Xperia M2] Konstantinosj77:
"Early boot". Reboot your phone and take one as soon as adb is up!
[Sony Xperia M2] vijaykmr:
Thanks
[Sony Xperia M2] jobinrjohnson:
This is from the last supported kernel.
[Sony Xperia M2] galaxyfreak:
RIL is rarely a kernel issue.

Can I get a logcat -b radio output?

Note that I suck at RIL debuging :P
[Sony Xperia M2] jobinrjohnson:
Here is it. It is from the kernel which has the sim support
[Sony Xperia M2] xazakasrizava:
Sorry for spamming every little problem that I have. But there is always an exclamation over the network icon, instead of H or H+.
[Sony Xperia M2] Konstantinosj77:
It goes away when you enable data or WiFi...I don't think it's a bug
[Sony Xperia M2] slole:
It's not a bug. It also appears on my brother's s3 mini with resurrection remix.

Also: the magnetometer fix works nicely even compass works now.... So essentially I don't even know what doesn't work. I've had ZERO random reboots and crashes after 2 days of use as daily driver and I think the new build could almost be considered stable.

NICE work!
[Sony Xperia M2] woj.mor.1998:
My led isnt working except for charging notification, do you have any ideas how to fix that?
[Sony Xperia M2] JuniorCaesar:
did you clean install? led works for me.
[Sony Xperia M2] woj.mor.1998:
Ye clean install
[Sony Xperia M2] karlmorgan92:
So what I read, there's no bugs...almost, but what about battery life? Is it good?
[Sony Xperia M2] DeMaCr:
Hello, everyone. Please, tell me, does work last build on d2303 rev.7?

And what kernels can use with this rom?

And if I will want use something from Sony features, can I do that and how? Sorry for my English and thanx everyone.
[Sony Xperia M2] xazakasrizava:
That's fixable, just go to settings, display and lights, and go to light settings, after that press the "set custom values" switch then just add the apps you want the led to react to.
[Sony Xperia M2] linuxct:
Go into settings, screen and lights, and at the bottom check that Notification Led is enabled, and it's set in default mode.

Battery life is about average. I can't tell how many hours of SoT since the option disappears from the menu. For a normal day it'll do the job, but since we all don't use the phone in the same way, the best it's to try it yourself :)

Rev7 uses the *special sensors* we've been discussing the past few days, IIRC. My suggestion is to flash just the CM12.1 installation zip and kernel (after the corresponding wipes, ofc), and then reboot to see if it works right out of the box. If it bootloops (i.e. gets stuck in the logo for more than 30 minutes), then just enter TWRP again and flash the patch for your sensors from there.

Only kernel available is the one already provided.

I'm personally a fan of certain Sony features, such as the keyboard and the audio libraries, specially for the bass. I came up with those two mods in the Cross-device devices forum, general Sony section, and they worked perfectly well.
[Sony Xperia M2] woj.mor.1998:
Ok, now the led notification is blinking as it should but is there any option to set for example green led for messenger notifications?
[Sony Xperia M2] xazakasrizava:
I think you need Xposed for that.
[Sony Xperia M2] woj.mor.1998:
I have xposed :D
[Sony Xperia M2] Th3 Ant:
Try using Lighflow app [emoji14]

Sent from D2303
[Sony Xperia M2] karlmorgan92:
Well the rom works like charm, no lags, no reboots, but battery life is really bad, at least in my case. It went from 100% to 88% in 5 hours on stand-by.
[Sony Xperia M2] Konstantinosj77:
12 hours on LTE and i still got 31% with FB,Messenger,Instagram,Twitter,Viber and many more apps...
[Sony Xperia M2] pradhana:
Nice works btw..

I'm using it as daily driver right now
[Sony Xperia M2] xazakasrizava:
My standby is also bad, I took a nap for an hour and when I woke up 5% had drained.
[Sony Xperia M2] karlmorgan92:
I don't know what's happening here then, but on stand-by my battery drains really fast. I'll reinstall the rom again, maybe that solves the problem.
[Sony Xperia M2] iFlashed:
After a few days with this rom I have to say that is ok for daily use. Battery drain probably a bit more agressive than stock, but I have to test a normal use, this days I have been playing Pokemon Go xD. Anyway, 2h with Pokemon GO isn't bad.

- mixer_paths. I have problems with Pokemon GO and iGO Navigator GPS (sound detected as alarm and sound like reverberation)

- Talking about GPS (i have tested it in Pokemon GO) At first works fine but around some minutes before opening the app it stands still when I keep going and I have to restart the app every moment. I don't know if this only happend in Pokemon Go tomorrow I will test with Google Maps Navigation to see if it works fine.

The rest is all OK. This ROM works perfect for daily use, you did a good job Konstantinosj77 !

Enviado desde mi Xperia M2 Aqua mediante Tapatalk
[Sony Xperia M2] Th3 Ant:
Yeah, I have the same... On OmniRom this also happens. That may be because of the app. Maps are working OK (if it drops signal it finds it right away). Pokemon Go is broken. Yesterday it showed me "no GPS signal found" so...

Sent from D2303
[Sony Xperia M2] iFlashed:
It's strange because I remember that this in stock doesn't happend I don't know what could be the problem...

Enviado desde mi Xperia M2 Aqua mediante Tapatalk
[Sony Xperia M2] grewicked:
Awesome work

congrats konstantinos for the excellent work

i had a stock 5.1.1 ftf flashed and used as a daily and i flashed cm 12.1 beta3 over it (ULBL, root)

now on cm 12.1 i cant update su binaries (yes i have tried RIC disabler like 3 times (and yes i rebooted among each try))

can you please help?

-edit

i did a

quick

search here but i didnt find anything (i repeat: a QUICK search)
[Sony Xperia M2] karlmorgan92:
In developer options there's an option that reads "enable root access", so you need to turn on that and then you can install the binaries from su.
[Sony Xperia M2] grewicked:
Thank you very much:D
[Sony Xperia M2] TrafalgarD:
I have installed abort error:7 when flash cm12.1

please help

M2 aqua d2403
[Sony Xperia M2] linuxct:
Use the TWRP 3.0.2 version as described in the instructions ...
[Sony Xperia M2] xoloq:
I would really appreciate if someone could help me a littpe bit.Do I need to flash anything else besides rom and gapps because my M2 Aqua(2403) always end up in bootloop. Thanks in advance