yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M2] quake73:
I have a million questions about building ROMs, turned half the internet upside-down for every kind of info but i'd appreciate a little more help here

I'm not having sound in both CM13 and Slim6, where should I search for the reason? vendor, hardware or device folders?

I tried a few combinations of kernel/vendor/device, from CM, SonyAOSP, SonyCM but no luck...

As for SuperBenevolent vendor repos (the ones Konstantinosj77 suggested) - they look the same as the 'binaries' from http://developer.sonymobile.com/kno...e/open-devices/list-of-devices-and-resources/

tried to make sense of the android tree this week...vendor 'blobs' are prebuilt libraries in the vendor folder, that have no open-source code and get linked as-they-are, right?

the vendor's .so files get linked with the kernel? how tightly are vendor & kernel related? what about the hardware folder?

i consider myself a pc/windows guy...i have a realtekXY network card that requires 1000 bytes of ram...WinXP stores those 1000 bytes at 1K, Win7 stores them at 1M...

where do those numbers go? 1000 bytes needed of ram go where? hardware/device/vendor?

The location of those 1000 bytes goes where, which android source folder?

I mean...what the hardware device requests is one thing, where in the product it ends up in, is another thing. (QcomXY is the device, Xperia ABC is the product containing QcomXY.)

looks to me, building a working rom looks like a lottery to me...pick a rom branch, vendor & device folder from the git ocean and pray that it works
[Sony Xperia M2] Apashe:
Sound

the sound is taking?

---------- Post added at 07:19 PM ---------- Previous post was at 07:18 PM ----------

I tried to install the AOSP but could not, how to install this AOSP?
[Sony Xperia M2] galaxyfreak:
As there's still interest, I'm releasing something I did back in february, a partial fix for secondary sensors.

sensorsecond loading logic has been tested by Th3 Ant, but not the complete package with "detection", so please use with caution.

This makes devices with secondary sensors boot successfully, with light and proximity working. Acclerometer not working.

Patches needed:

https://github.com/SonyCM/device-sony-eagle/commit/437908014fcbb46cce57c050f90178a0a6518161 (this is the untested bit)

https://github.com/SonyCM/android_frameworks_native/commit/776ef7667b8a20150170a8e7130ebf05d0fb6ece

https://github.com/erikcas/vendor-sony/commit/a298464078d048d393ed2005fb74ab0b549f31bb (sensors.msm8226.so update NOT needed)

https://github.com/SonyCM/kernel/commits/sensor-test

Things to do if you want work on this, apart from fixing accelerometer:

- Remove product_id kernel patches as accelerometer is not working anyway and find something else to make detection on (gpio-keys?)

- Make light/proximity work with current stk3x1x.c, without copying stock driver.

[MENTION=5185525]Th3 Ant[/MENTION] [MENTION=5366380]quake73[/MENTION]
[Sony Xperia M2] sudden36:
Can anyone please post the sequence of commands needed to build a working CM12.1?

I tried it with the following commands:

repo init -u https://github.com/CyanogenMod/android.git -b cm-12.1
repo sync

then I copied local_manifest from https://github.com/SonyCM/local_manifest/blob/master/local_manifest.xml into the local_manifests folder

repo sync
breakfast eagle

But the last command failed with the following error:

breakfast eagle
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/sony/eagle/cm.mk]]: "device/sony/common/resources.mk" does not exist. Schluss.
Device eagle not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_sony_eagle
Default revision: cm-12.1
Checking branch info
CyanogenMod/android_device_sony_eagle already exists
Syncing repository to retrieve project.
fatal: duplicate path device/sony/common in /home/christoph/build/cm/.repo/manifest.xml
Repository synced!
Looking for dependencies
Done
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/sony/eagle/cm.mk]]: "device/sony/common/resources.mk" does not exist. Schluss.

** Don't have a product spec for: 'cm_eagle'
** Do you have the right repo manifest?
[Sony Xperia M2] quake73:
The manifest you took from SonyCM is for CM13.

Try, empty the local_manifests folder and then run "breakfast eagle" again. I think you should get a new xml file in local_manifests.
[Sony Xperia M2] vinz156:
loud speaker bug cm12.1

I dont know only me or another user got this problem too,everytime i call or someone call me loudspeaker is not working only small speaker is working, can anyone help me or for dev maybe can fix this problem

And one again, i see there is an aosp m build called aosp m 5.3.zip,cm13 20160424 can i install this on d2305?

Thanks,sorry for my bad english
[Sony Xperia M2] quake73:
Those aosp-M and cm13 are for d2303, i dont know if they work on 2305. Also, cm13 has no sound during calls.
[Sony Xperia M2] vinz156:
I got this cyanogenmod from gaurav007 maybe you can make this cyanogenmod as base bcoz this rom is compatible for d2305 and this rom is still use dragonfruit cyanogenmod api

Maybe you can help

https://mega.nz/#!DIJihDgZ!2HrXpjyjdSVzvjK-8oXcednd7obDPAbeo347gqYTVFs

Inside this cyanogenmod audio is look good no bug when calling

And one again can anyone give me 3.10 kernel?
[Sony Xperia M2] sudden36:
[MENTION=5366380]quake73[/MENTION] Thank you very much, that already helped a bit. My next question, is it possible to compile CM without pulling the binaries via ADB? I.e. can I just download them from somewhere?
[Sony Xperia M2] quake73:
I guess you mean these:

http://developer.sonymobile.com/kno...e/open-devices/list-of-devices-and-resources/
[Sony Xperia M2] iFlashed:
But are you still working in eagle device or you left it? The sensor patch sounds really good [MENTION=4635923]galaxyfreak[/MENTION]
[Sony Xperia M2] galaxyfreak:
I'm here, no worries...

Some updates:

Sensor patch sounds pretty good, yes, having patched sensorservice in source mean we can load sensorsecond library on Marshmallow and further versions where we have no stock ROM to copy libsensorservice.so from. I wouldn't put it to use yet, because I can't find and didn't extensively look to be honest, a consistant difference I could read and decide which sensor HAL to load. In my earlier post I linked a draft for reading sys/class/input. That might work, but could still vary depending on kernel, and I don't want to modify the patch everytime, so I would like something more robust. Hope you understand what I'm saying.

I would be appreciate if there's any bit more experienced alternative sensors users would look around, because working on my own on this is tapping in the dark and at this point slightly irritating already. ([MENTION=4787101]linuxct[/MENTION] maybe?)

--

As you can see neither me or Erik opened Marshmallow threads. We're waiting for camera. It's getting closer, but who knows. In my opinion, Marshmallow didn't bring any big features or changes, so I would rather stick with this than open another thread where we will have same struggle - stock kernel with camera, or following AOSP project without camera.
[Sony Xperia M2] slole:
I sort of agree with you on sticking with CM12.1, but marshmallow introduced putting full apps on sd card because the sd card can now act as internal storage. This feature would make this phone quite more useful because of it's 8gb storage.
[Sony Xperia M2] iFlashed:
Awesome!!! Good to know. [MENTION=4787101]linuxct[/MENTION] and I were working in sensor around a year ago (but I only as a tester) those time when the multirecovery button detection was based in the gpio events. Also if I remeber well, erickas were investigating too

Enviado desde mi Xperia M2 Aqua usando Tapatalk
[Sony Xperia M2] Manolovini2000:
Can someone tell me if there is Cyanoagem 13 for Xperia m2 fully working? Please put the link to download, if there is...
[Sony Xperia M2] iFlashed:
Nope there isn't
[Sony Xperia M2] nishchayv:
Bootloop on Xperia M2 D2302

I tried flashing this ROM on my M2 Dual (D2302) using CWM and got bootloop. Them I tried flashing using TWRP and it says "This package is for device: D2302, D2303, D2305, D2306, D2403, D2406, eagle; this device is eagle_dsds."

Please help cause I don't have any backup or anything.
[Sony Xperia M2] Konstantinosj77:
Update your bootloader,flash twrp and try again

Seriously guys these instructions are ALL OVER the M2 threads! I would suggest [MENTION=4635923]galaxyfreak[/MENTION] to put them in the OP but i'm pretty sure nobody will read them...
[Sony Xperia M2] nishchayv:
Thanks for your help. Can you please tell me how to update bootloader.

PS- I googled how to update bootloader but got instructions only on how to unlock bootloader.
[Sony Xperia M2] Konstantinosj77:
http://xdaforums.com/xperia-m2/development/ubl-xperia-m2-bootloader-update-ftfs-t3288148

http://xdaforums.com/xperia-m2/development/twrp-2-8-7-0-updated-theme-t3252807
[Sony Xperia M2] quake73:
You need the program Emma from Sony. You'll find instructions here:

http://fxpblog.co/2015/05/01/finally-boot-to-recovery-enabled-in-special-bootloaders-from-sony.html
[Sony Xperia M2] Konstantinosj77:
[MENTION=4635923]galaxyfreak[/MENTION] what about a new CM12.1 build? I'm testing the last one and it super outdated....

-Stagefright vulnerabilities

-Camera quality sucks due to outdated libs (yup i know about the patch by [MENTION=4787101]linuxct[/MENTION] but it would be nice to have it in-rom)

-No fm-app

-In-call speaker not working

-Maybe include snapdragon camera too?
[Sony Xperia M2] Lojzo_11:
And its very laggy too .. Because zRAM is not included :confused:
[Sony Xperia M2] Konstantinosj77:
Yup,that too :P
[Sony Xperia M2] nishchayv:
I updated bootloader, flashed TWRP, but it is still showing the same error.
[Sony Xperia M2] quake73:
open the CM Rom zip file........

go to META-INF\com\google\android\.........

open/view 'updater-script'........

delete the first line that says "assert(........);" , your error should be there, in the first line (This package is for device: D2302, D2303, D2305, D2306, D2403, D2406, eagle)

save the file when the zip program asks (just to be sure that you did everything right, reopen the file 'updater-script' and check to be sure that the line that says "....eagle...." is gone.)

copy the new zip to your phone and try flashing it again
[Sony Xperia M2] nishchayv:
I was able to flash CM, but now my phone is stuck in bootloop. Even worse, when I tried to get back to stock through ftf, I am getting a bootloop there too.
[Sony Xperia M2] galaxyfreak:
Let's do it :highfive:
[Sony Xperia M2] Konstantinosj77:
Starting syncing cm12.1,good thing i already got aosp lp on my machine :P
[Sony Xperia M2] iFlashed:
:victory:
[Sony Xperia M2] nathankaunang:
Any new build cm 12.1 to fix some bug on this room ??
[Sony Xperia M2] DanielFlorin:
Latest build is good for daily use ? Bugs ? Xposed work ? Some screenshoot + backup for me ? Please.
[Sony Xperia M2] sudden36:
I use the latest build since around 3 months without a single reboot and it's still smooth as butter. Sadly I'm plagued by non working sensors, so I hope [MENTION=4635923]galaxyfreak[/MENTION] will release a build where it's fixed, even if it's just a test build for now :)

Can't say anything about Xposed, since I don't use it.
[Sony Xperia M2] anggaramdan:
exusme sir, i have a problem about in call loudspeaker witch not working, is there any patch or anything that can fix this, sorry for my english..
[Sony Xperia M2] mmiya:
I used the mixer_paths from this post http://xdaforums.com/showpost.php?p=64967339&postcount=1595 and solved the in-call loudspeaker bug. But my device is d2406
[Sony Xperia M2] quake73:
https://1drv.ms/u/s!AgjGxeMsjY4K9UN-jN7uYcOzE86K
[Sony Xperia M2] gabrielmr:
Just flashed the CM12.1 in my Xperia M2, and now I can't turn on my phone, HELP!!!

It keeps on a black screen, if I put it in a charger a red led keeps blinking, already let it charging for hours and hours still nothing. And I can't even put it in my PC and use adb since the phone won't turn on.

If I hold power and Vol+ and put it in my PC it turns on a blue led but still nothing, not even in pc companion.

HELP FOR ODIN SAKE!!!
[Sony Xperia M2] WonderNOVA:
Can i just say, am i the only one that is experiancing really bad performance with this rom? Im getting constant crashes and some serious lag spikes. i cant run any games/apps beacuse of the constant lag.... Is there any solution to this? if not could someone reccomend me a really good rom for the m2 d2303?
[Sony Xperia M2] Konstantinosj77:
yes both cm12.1 and 13 are laggy...13 has some random reboots too

What's your model? Did you update your bootloader? Do you think we are magicians here?
[Sony Xperia M2] gabrielmr:
1- D2306

2- I just unlocked it when installed the Z5 Xperience ROM

3- Maybe...
[Sony Xperia M2] WonderNOVA:
[MENTION=4550509]Konstantinosj77[/MENTION] could you recommend any decent roms for this device that have at least semi decent performance? xD
[Sony Xperia M2] Konstantinosj77:
[MENTION=4635923]galaxyfreak[/MENTION] feel free to quote this on OP

1-Unlock your bootloader following this http://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/

2-Update your bootloader by following the instructions here http://developer.sonymobile.com/201...for-a-range-of-unlocked-xperia-devices-video/ OR the ftf from here http://xdaforums.com/xperia-m2/development/ubl-xperia-m2-bootloader-update-ftfs-t3288148

3-Flash TWRP http://xdaforums.com/xperia-m2/development/twrp-2-8-7-0-updated-theme-t3252807

4-Wipe data

5-Flash the zip

6-In case of bootloop see this http://xdaforums.com/showpost.php?p=64002712&postcount=1480

This is development thread,so stop OT...there are many roms around,test and decide :)
[Sony Xperia M2] gabrielmr:
I will try this if I manage to turn on my phone, I'm trying the repair option from Sony PC Companion right now, I'll wait it to finish then I'll try your steps. Thank You! :D
[Sony Xperia M2] gabrielmr:
It worked!!!

Thank you very much, again!
[Sony Xperia M2] ismael030885:
You remove the radio on this Rom?? I have installed beta 2
[Sony Xperia M2] loskut:
Dear forum! Is there a patch for our device to flash the radio separately. Or firmware for 2303 with priority on LTE in 2302 all works except the SIM. Since radio is the other, it is invisible sim. What change or edit the firmware, so Sims earned. I will be grateful.

Отправлено с моего XPERIA M2 Dual через Tapatalk
[Sony Xperia M2] grewicked:
Hey galaxyfreak, and all of you participated.

i want to thank for all this work you have done. I have flashed your rom successfully but its super laggy especially in chrome.

I would like to ask if you are going to continue this project until it reaches a stable version and if yes, can you give us an ETA.

I am sure that there are a lot of people, including me, that want to have a fully working CM for this phone

:good::good::good:

---------- Post added at 12:03 PM ---------- Previous post was at 11:57 AM ----------

Also, for those who flashed gapps and have a very very laggy phone

but want PlayStore, this is how i reduced an important amount of lag.

1) Wipe Data/Dalvik/Cache/System

2) Flash CM12.1 zip

3) Flash

AROMA GAPPS

zip (important)

4) DONT INSTALL ANYTHING FROM GAPPS (just press next all the time)

5) Reboot system

i hope it works for you

Tested on D2303
[Sony Xperia M2] AbdalraziQ:
Thank you man

It's working fine with me with aroma gapps

The nano gapps very laggy.. I dont know why!!

D2302 now is very fast but we still need the correct

Mixer_paths to fix sound problems like In call speaker
[Sony Xperia M2] icecube27:
Flashed this ROM on D2302 and it works fine, however i cant boot into CM recovery and flash gapps...

Tried installing twrp and it just bricks my M2 :(
[Sony Xperia M2] furankuM2:
The original post needs pictures
[Sony Xperia M2] Lojzo_11:
As I see, there is no effort to create properly working CM build .. Marshmallow arrived long time ago and we still dont have stable Lollipop build .. SAD :(
[Sony Xperia M2] Konstantinosj77:
I'm currently trying to build Omni6 with 3.4 kernel... Recovery boots but phone freezes and reboot almost instantly...

Haven't try a full build yet...if recovery isn't working android will surely fail

[MENTION=985241]erikcas[/MENTION] [MENTION=4635923]galaxyfreak[/MENTION] any help is appreciated
[Sony Xperia M2] Lojzo_11:
Yes, I see you are probably only who trying to do something .. and what about camera? Is camera work on 3.4 kernel on 6.0 ROMs or not?
[Sony Xperia M2] Konstantinosj77:
I haven't build it yet...but at least there is something to play with.
[Sony Xperia M2] galaxyfreak:
Looks like neither me nor Erik are really motivated to chuck out some builds, anyway, if you wanna continue, please do, I will try to help if you get stuck.

I don't know why Omni freezes, I usually build CM and use erikcas build of TWRP.

Anyway, about that "wishlist" page back :

-zRAM is easy, and common for all devices, look at Android documentation and copy it over in fstab and init.

Stock kernel already enabled.

- FM Radio, you need boardconfig enable, build all packages + fm binary from stock. Look at official CM repos for that.

Sensors - wrote little releasetools script to rename blob if needed, will PM you later.

Audio/mic issue, not sure, usual suspects are audio HAL and mixer_paths.xml
[Sony Xperia M2] Lojzo_11:
[MENTION=4550509]Konstantinosj77[/MENTION] so if zRAM is easy, could you create CM12.1 build with zRAM? I would really like to have at least no-laggy CM12.1 on my phone. :confused:
[Sony Xperia M2] ethantownley:
I cannot seem to get this to boot on my D2303, I just get stuck at the bootscreen... I might just be a noob though! I have wiped phone before install, and wiped dalvik and cashe after flashing but no go....
[Sony Xperia M2] Th3 Ant:
Delete sensors.msm8226.so file from system/lib/hw. It'll disable some sensors (screen rotation, proximity etc.) but it should boot.
[Sony Xperia M2] ethantownley:
I cannot find sensors.msm8226.so in my system/lib/hw folder, there are a lot of *.so files in there but none of them are the right one.
[Sony Xperia M2] Th3 Ant:
Try in system/vendor/lib/hw
[Sony Xperia M2] ethantownley:
Found it there! Thanks a bunch, rom works nicely!
[Sony Xperia M2] xazakasrizava:
Can i get the sensors work again?
[Sony Xperia M2] xoloq:
Bootloop

I also have Xperia M2 Aqua and I tried 5 times to flash it,with and without the GApps.I always end up in bootloop.Can you tell me how did you manage to flash it? Thanks in advance
[Sony Xperia M2] Lojzo_11:
I ask for this one thing really long ..

PLEASE :( CAN SOMEONE (who have time) CREATE BUILD with zRAM? I would be very, very grateful :angel:
[Sony Xperia M2] iFlashed:
I think galaxyfreak was working on that. Just patient...

Enviado desde mi Xperia M2 Aqua usando Tapatalk
[Sony Xperia M2] galaxyfreak:
I've stopped development on this. Thought kj77 might take over.

Camera on 3.10 is now confirmed CANCELLED. And I don't feel like being stuck on stock 3.4 kernel.
[Sony Xperia M2] Konstantinosj77:
Zram needs 2 changes: fstab and init.rc and just a simple kernel will do the job...i'll try to finish with that today or tomorrow

After that i'll go for a new cm12.1 build (maybe the last?!) And if everything is working correctly straight to cm13.

Please be ultra-patient ,i have a real life job and i'm not as skilled as galaxyfreak!!
[Sony Xperia M2] Lojzo_11:
Great! And is there a chance for working camera on CM13?
[Sony Xperia M2] Konstantinosj77:
ZRAM Kernel is here!

Just flash it over latest build

To check if zram is on: open terminal emulator and type "free" or "cat /proc/swaps" (without ")

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

First we have to get camera working on pure cm12.1 frameworks and dont kang from omni...than we can discuss about cm13 ;)

be patient :)
[Sony Xperia M2] iFlashed:
Isnt nice to know that galaxyfreak is not working anymore on eagle devices :(. With no doubts the developing of the xperia m2 had had lota of difficulties

BTW, congrats for the new kernel!! What about the preformance? Works better now?

Thanks

Enviado desde mi Xperia M2 Aqua usando Tapatalk
[Sony Xperia M2] farmer92:
Hi!

I have installed this rom and everything works fine, but I have problem with audio.

Every speaker (callspeaker, loudspeaker) is very silent and I can't hear ringtones, notifications etc.

On stock rom everything is ok.

Is any fix/patch or solution to repair sound in my D2303?

Thanks
[Sony Xperia M2] iFlashed:
After 24h on CyanogenMod with the last kernel by [MENTION=4550509]Konstantinosj77[/MENTION] appears to works really fine, with no lags, and battery drain appears to be ok (probably a bit worse than stock). The minor bugs I have found at the moment:

- Orientator sensor (only the devices with special sensor yasalgo). Maybe there's a library lack?

- Speakers sounds really low. I found this but I don't know if it works in custom roms: https://www.androidfilehost.com/?fid=24269982087020017

- No FM Radio App
[Sony Xperia M2] linuxct:
Man, congratulations, it's the most stable kernel I've tried so far. I've had 0 random reboots since several hours of play, looks like zRAM is all we needed afterall. Also, I'm very impressed to see the I/O wait is at 0% normally, while... you know what happened on stock. May be the swappiness, I don't know, but hey, it works.

There's only a single issue my spanish friends and I have detected so far: The notification LED doesn't blink but stays fixed. I know it's just such a minor issue, I don't mind if it doesn't get fixed! :)

Also, just like iFlashed said, remember to flash the latest camera blobs from Sony's stock ROM in order to get the best camera experience :)
[Sony Xperia M2] Konstantinosj77:
Thanks :)

Led blinking is fixed in the updated device tree and needs a new build...be patient ;)
[Sony Xperia M2] iFlashed:
Also we have tested NFC and appears not to be working. We tested in your kernel and the galaxyfreak's kernel, so the minor bugs for now:

- NFC

- No Radio FM App

- Orientator sensor (only in yasalgo sensors, the rest works fine). I will investigate about this and see if there's a library lack or what's wrong on this :confused:

- Notification LED (you said that had been updated on the device tree so just wait :cyclops:)

- Speaker in calls doesn't works

Those are the minor bugs, those are things that do not bother me. This is the most stable kernel I have tested. Battery drain is OK, no lags, no random reboots, just awesome :victory: