yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M2] galaxyfreak:
Thank you, it's my pleasure.

No, "USB WiFi drivers" are not in this kernel.

There's no generic USB WiFi driver.

Search for that particular model of WiFi adapter (+ "chipset") on Google and find what chipset does it have and therefore what driver does that chipset use.

Example:

Adapter: TP-Link TL-WN721N

Chipset: Atheros AR9002

Driver: ath_9k

Reference: https://wikidevi.com/wiki/TP-LINK_TL-WN721N

Your driver might already be in kernel, or you might need to add it.

Frequently asked questions:

Q: Ok, my chipset is xxxxxx, can you add it?

A: No, that USB is extension of your own, by that logic I could end up adding support for steering wheel controller.

Q: I'm new to this stuff. Could you please add it for me and send me a link?

A: No...because... It's not me hacking into others WiFi networks ;)
[Sony Xperia M2] iFlashed:
That's one of the things I have ever wanted. One day I will try to modify the kernel including the most popular usb wifi drivers and we will be able to use an external adapter for get WiFi :cyclops:
[Sony Xperia M2] lakiluki:
Thanks, fair enough. ^_^

I'll just follow the sony AOSP guide and use the cyanogen config file for initial setup and add my drivers from there, I'll learn something about compiling ARM kernels while doing it as well, which is a good thing, for sure.

By the way, not sure if it's a bug in the rom or what, but the AudioFX eq doesn't change the sound at all.

EDIT: Just realized you're from Split. Pozdrav, svaka čast :)
[Sony Xperia M2] erikcas:
my pleasure too :silly:
[Sony Xperia M2] Matze6989:
Have this rom zram now?
[Sony Xperia M2] o4i:
My briefly rekindled hope is lost again, back to atrocious Sony stock ROM... :(
[Sony Xperia M2] JackErskine:
I installed CM 12.1 and GAPPS through TWRP and can't get past the CM boot logo
[Sony Xperia M2] Matze6989:
This rom is great but can you please make a kernel with zram.? This rom is very laggy without zram.
[Sony Xperia M2] galaxyfreak:
Someone tried zRAM, said performance has improved, and everybody caught on fire, cross-posting in threads.

I believe zRAM fixes lag, as it's enabled in stock and it makes sense - Phone is not lagging after fresh reboot.

I already did mod my tree to enable zRAM, I'm just lazy/busy to test and ship it.

If someone else wants to build it, attach it here.

December is game time! Semester closing... Gotta fix that first ;)
[Sony Xperia M2] lozohcum:
I wonder how uKSM would work on our M2. Maybe I will try to test it as only I pass my first season of exams.
[Sony Xperia M2] NieeLz:
i think better waiting the sony update 5.1.1 stock, i see the news sony confirm the bugs camera n GPS, i mean waiting for the fix.

or... yea better fix the random lag first :D
[Sony Xperia M2] FrWhyMe:
Instructions to install it ?

Requirement (do i need to start at stock 5.1.1 and root it before flashing it) ?
[Sony Xperia M2] Matze6989:
If you do a restart and no data connection is the clock has always wrong.
[Sony Xperia M2] galaxyfreak:
Sony CES conference announced for 5 January 2016.

I don't like where this is going.

I assume that would be about time Z5 camera is fully fixed, and then instead of going to Yukon (or eagle, for us) newly released device(s) will take priority.
[Sony Xperia M2] linuxct:
Ah... Well, sh*t. Will grab some popcorn in the meantime. Old Xperia M2 won't be forgotten so easily :D
[Sony Xperia M2] Th3 Ant:
Yeah, I hope so... like 2011 Xperias - i still have LwW and AOSP 5.0 installed (it's much harder to do but still, it's possible :D)

Wysłano z D2303 za pomocą Tapatalk
[Sony Xperia M2] Konstantinosj77:
already new devices?! I don't think so....

BTW jerpelea said Front-cam is working with some kernel hacking...any idea on that?
[Sony Xperia M2] galaxyfreak:
Yes, we spoke to Angelo (kholk) who gave more details on the required hack.

The definition of "hacking" varies:

For us, hack is a piece of code that's either copied from stock kernel, or can be written in 5 minutes (after you figure the root of problem ofc)

For Angelo, hack is a fully-functional and for itself clean piece of code that goes against the sonyxperiadev ideals.

[MENTION=489838]kholk[/MENTION] :p ;)
[Sony Xperia M2] kholk:
.....Not really.

Our ideal is to have working AND CLEAN code. If by saying "against the sonyxperiadev ideals" you mean what I said, then .. yes.

Hacks are always bad, but it depends on how are they implemented and, well, sometimes they are required to get a final, working and clean, piece of code, that will not break compatibility with all the other supported devices.

Don't worry though, I'm personally working on Eagle and Seagull back camera and I already have something barely "working" (no, not like I can see through the camera or shoot a pic)........
[Sony Xperia M2] FrWhyMe:
Can i install Xposed on this ROM ?
[Sony Xperia M2] 31fahmi:
Sure you can

If I'm not wrong but I'm not sure
[Sony Xperia M2] quake73:
Havent tried it on CM but in both OMNI and Slim, after I installed Xposed, my phone (D2303) began rebooting after phone calls.
[Sony Xperia M2] FrWhyMe:
Here's what i get :
[Sony Xperia M2] iFlashed:
Hey!!

Finally I get it! Here I have a flasheable script which automaticallly fix the sensor bug, based on what [MENTION=4635923]galaxyfreak[/MENTION] and [MENTION=596047]f2065[/MENTION] said. The script has been tested by me and works fine!

Link: https://mega.nz/#!zR0DxLLC!RvZSzNOCc72g7UHjqTM971cRJ5PJmyDv_HNihr1HMwQ

If you want to see some pics: https://twitter.com/kifixo23/status/673628361546194944

Enjoy!

EDIT: I have been testing this... Accelerometer works OK, proximity works OK too, but orientator sensor doesn't. I think they are the same bugs as [MENTION=596047]f2065[/MENTION] mentioned.
[Sony Xperia M2] galaxyfreak:
Nice. But with memsicd and boot.img i see you included, orientation sensor should work atleast on first use?
[Sony Xperia M2] iFlashed:
Hmm nope, for me didn't work. I tried it with a compass app and with Android Sensor Box... It's strange because the script flashed with any errors

Ok, what I will try is to manually flash the boot.img and cooy the memsicd and see if it is a problem of the script

EDIT: Just tried to do it manually and got the same problem with orientator sensor :S

Enviado desde mi XPERIA M2 mediante Tapatalk
[Sony Xperia M2] lolka_bolka:
How is it works?

I've installed the cm-12.1-20151108-UNOFFICIAL-eagle.zip, after that I've unlocked my bootloader, and fastboot flash boot boot-v2.img but CM just show the logo, and nothing happened.

How should I use it? Is there a different way? My phone is Xperia M2, D203
[Sony Xperia M2] iFlashed:
You have to flash only those files in case you have sensor issue. First you have to try only flashing the last build

Enviado desde mi XPERIA M2 mediante Tapatalk
[Sony Xperia M2] ARandomIndian:
Any one know why the last update was taken down and what it happened to fix?
[Sony Xperia M2] ChikoCrave:
Is there any way to go back to stock LP 5.1?

Whenever I try to connect the phone in flash mode , cyanogen tries to boot and the ftf flash fails.
[Sony Xperia M2] BeingAbhi:
Is it working on Xperia M2 D2302 dual ...If it is working how can i install it??
[Sony Xperia M2] ARandomIndian:
Install a custom recovery first. (To know more just look at the 5.1.1 root topic)

Once that's done all you want to do is to put the downloaded file into your external SD card and then you want to boot into your recovery and then select Flash and then select the downloaded file and flash it.

After then exit the recovery and then start up normally.
[Sony Xperia M2] BeingAbhi:
Can you confirm whether it is working on D2302 dual??
[Sony Xperia M2] ARandomIndian:
Any one found a way to port good apps like the Albums Sony app? Flashing and regular install doesn't work.

Also can someone post a photo talking on this rom i reflashed to stock awhile back.
[Sony Xperia M2] iFlashed:
Of course you can
[Sony Xperia M2] ARandomIndian:
This is for all variants, it should work, look in the topic for your specific version.

Also give people who ask questions detailed answers they tend to run into problems if you are vague, any ways here's how.

#1. Boot into recovery

#2. Wipe all your data

#3. Install Flashtools on your PC

#4. Install your Phone driver, Flashmode driver, and Fastboot driver. (Flashmode and Fastboot drivers can be easily installed if you navigate to by default (C:\Flashtool\drivers) and then start the application in the folder and select Fastmode and Fastboot drivers and install) As for your phone, there should be some tutorial out there.

#5. Download your phone version specific FTF file. (You can use the Flashtools but It's easy just to Google search example for me "Sony Xperia M2 D2305 5.1.1 ftf"

#6. Open Flashtools, click the lightning icon button, select Flashmode, put the downloaded ftf where Flashtools can access it by default for me It's (C:\Users\4-20BlazeIt\.flashTool\firmwares) note: 4-20BlazeIt is the name of my PC yours will be different most likely.

#7 After that's done select the file and continue when it asks to put your phone into flash mode all you do is first fully power off (To make sure It's fully powered off open the simcard slot and press the red button with a pin)

#8. Now Connect your USB cable to your PC and keep your phone in your hand ready to connect.

#9. Now you've to work fast, while Holding the Down volume button connect to your PC through your USB cable.

It should start flashing now stay calm and do not interrupt it no matter what, if It's taking longer then usual, don't worry go do something else in the meantime.

---------- Post added at 02:13 AM ---------- Previous post was at 02:11 AM ----------

Please look at my above post, thanks.

---------- Post added at 02:24 AM ---------- Previous post was at 02:13 AM ----------

See the Root 5.1.1 topic it shows how to install a custom recovery and then all you got to do after that is boot into recovery and put the downloaded file into your SD card go to Recovery>Flash>Select file>Flash.
[Sony Xperia M2] lolka_bolka:
Sorry, maybe I am so lame, but I really do not understand what I miss.

The methods what I've tired.

I install the stock rom from Sony PC Companion. So know, I have a stock rom (5.1.1). Root it with Kingroot. Install philz multi recovery (to be able to install the .zip).

I enter the TWRP recovery. Install the zip. Try to start the phone. Cyanogenmod logo appears, and thats it. After 10 - 15mins I restart my phone. Start the whole procedure, except, I do not start the phone, after installed the zip, but install the boot-v2.img too from commandline. I try to start my phone, and the same thing happens.

Thats it. I also did it with Philz recovery.
[Sony Xperia M2] 31fahmi:
Gentlemen, is there any update for dual sim variant? You all know that there is still a little bug on in-call loudspeaker
[Sony Xperia M2] ch3mn3y:
Is there any instruction or requirements for flashing Beta2? Coz after flashing it bootloops. Tried few times.

Should I flash Alpha or Beta1 before, or maybe something other?

Or maybe edit zip file with sensor files as they are here in case of bootloop? I thought about it, but:

And now I'm not sure what to do...
[Sony Xperia M2] iFlashed:
Flash cyanogen last build (beta 2), and then flash this: https://mega.nz/#!fNNnSIrD!aj48sh_qrem_ER2vb73HU4_Emhpx2vD67PRGPxISjLQ

then try if it works
[Sony Xperia M2] narudranei:
it still have lag?
[Sony Xperia M2] ChikoCrave:
Ive tried this, but as I wrote in my first post the phone boots up when the FTF starts flashing.
[Sony Xperia M2] ARandomIndian:
That means you're talking to long do it most likely any ways do it quickly and post the results.
[Sony Xperia M2] Itsbricked:
After succesfully flashing this i cannot get back into the recovery on my d2306. Ive tried flashing twrp and multirecovery through fastboot yet holding power + volume down does nothing, it just boots into cm12 like normal.
[Sony Xperia M2] ARandomIndian:
Will [MENTION=4635923]galaxyfreak[/MENTION] release this to the official Devs once It's out of beta?
[Sony Xperia M2] lozohcum:
There is no need to make it "official". It's more crucial to make it completely working.
[Sony Xperia M2] Th3 Ant:
Will there be CM13 for M2 (D2303)? Experimental or nightly?

Wysłano z D2303 za pomocą Tapatalk
[Sony Xperia M2] ireaper4592:
beta 2 not booting for me
[Sony Xperia M2] ARandomIndian:
Yes i agree, also I've a question,

Will i get Cyanogenmod 13 if i use the built in updater (Settings>About) i think? Or will [MENTION=4635923]galaxyfreak[/MENTION] need to compile it again and fix bugs again?

Thanks
[Sony Xperia M2] PauloHHB:
No, Galaxyfreack needs to compile it , that Updater is for OTA Update, for the devices that have Official Support from Cyanogenmod
[Sony Xperia M2] ARandomIndian:
What are the bugs though? I've not come across any issue while i used it for a day or two before going back and waiting for it to come out of beta
[Sony Xperia M2] ARandomIndian:
Hopefully next build will be stable so I can finally flash it
[Sony Xperia M2] Lojzo_11:
[MENTION=4635923]galaxyfreak[/MENTION] [MENTION=5629525]pawcioo132[/MENTION] Will be there CM12.1 beta with zRAM included finally? I really want to test if CM is more stable with zRAM. Thanks :o
[Sony Xperia M2] pawcioo132:
I can make kernel image with zram but two things, first its not my project (if GalaxyFreak allow i can do it) and second i do not know each kernel source GalaxyFreak are using to make these all build.
[Sony Xperia M2] Lojzo_11:
He wrote if someone wants to build, he can :D so ..? :D
[Sony Xperia M2] pawcioo132:
So... Now second things each I was talking about before, each source kernel galaxyfreak are using making CM for our Xperia M2 :D

Wysłane z mojego Xperia M2 przy użyciu Tapatalka
[Sony Xperia M2] galaxyfreak:
I used https://github.com/erikcas/android_kernel_sony_msm 5.1-3.4 branch.

I'd like to release a build, but I keep hitting obstacles in form of Popcorn Time & Showbox....
[Sony Xperia M2] Lojzo_11:
So pawcioo132, can you make it? :D
[Sony Xperia M2] Konrad69:
hello, when you go out officialna and stable version because I would eventually try on my m2??
[Sony Xperia M2] ismael030885:
This rom is only for unlocked bootloader?? I have D2306 with lock bootloader.
[Sony Xperia M2] aidy.lucas:
Then you are unable to use it or any other non stock based custom rom.
[Sony Xperia M2] ARandomIndian:
New build hype,

Can we expect this to be called "stable" though? Awesome work [MENTION=312334]GALAXY[/MENTION]
[Sony Xperia M2] pawcioo132:
I'll do it when I get back from work
[Sony Xperia M2] Lojzo_11:
Okay, i am waiting ..
[Sony Xperia M2] ismael030885:
Ok thank you
[Sony Xperia M2] sudden36:
Will the next build have working sensors?
[Sony Xperia M2] Lojzo_11:
So, what is going on with zRAM kernel? ?
[Sony Xperia M2] erikcas:
maybe a nice update for all dsds users: we have (at least) one ril up and running on cm-13.0 on kernel 3.10 on a dualsim, using sonyxperiadevs sources (so no swapping blobs from stockroms)

now we have to check:

second sim

possible audio issue on call

screenshot will follow shortly :P
[Sony Xperia M2] Gaurav007:
http://imgur.com/LUTjezV

RIL working in eagle_dsds

Thanks to [MENTION=985241]erikcas[/MENTION] :)
[Sony Xperia M2] ARandomIndian:
Amazing work as always thank you guys
[Sony Xperia M2] Lojzo_11:
So its only for Dual SIM?
[Sony Xperia M2] ARandomIndian:
Can't wait to flash it so hyped for it hopefully It's a somewhat stable release
[Sony Xperia M2] galaxyfreak:
Good news - No, it's for both SIMs, one zip. Pretty decent solution Adam Farden came up with.

Bad news (I guess):

No, Adam did a nice work getting us cleanly in-line with Sony's AOSP on CM, using 3.10 kernel.

Which means easier and more frequent updates, and broken camera.

I'd like to keep it that way, because switching to 3.4 and getting camera to work makes source mess, almost unmaintainable.
[Sony Xperia M2] Lojzo_11:
It means that working camera on 3.10 kernel is impossible?
[Sony Xperia M2] galaxyfreak:
Correct, atleast in forseeable future.
[Sony Xperia M2] Lojzo_11:
---Sorry for my English---

I respect your opinion and your big work for Xperia M2 users, but i think that camera is for half of this people, who want use CM (12,13..) as a daily driver, primary think that needs to be work. So i think you could try one or two builds of CM13 with 3.4 kernel and working camera and then dedicate to 3.10 development. Dont kill me :angel: This is only my opinion, you are the developer and I am grateful to you for your work. :o
[Sony Xperia M2] erikcas:
Imo, cm-13.0 with a camera on 3.4 kernel will be less possible in the foreseeable future, because of the sourcemess [MENTION=4635923]galaxyfreak[/MENTION] mentions

The solution from Adam is tested as we speak, the current rom with working ril on DS was made from a separated devicerepo :P

Edit: tested well!

Edit: for second ril, it needs a new boot.img. Will rebuild and post!! some 3 hrs......
[Sony Xperia M2] galaxyfreak:
Blank
[Sony Xperia M2] galaxyfreak:
build done.

Dual SIM users please test:

http://jenkins.cas-online.nl/job/cy...chive/cm-13.0-20160111-EXPERIMENTAL-eagle.zip
[Sony Xperia M2] erikcas:
yep, these were the fastest three hrs of my life haha :P
[Sony Xperia M2] ARandomIndian:
Wait so Adam is trying to fix the camera on the new build?

Either way great job guys thanks!

Now I'll go cry in the corner of the room because of the Camera issue :)
[Sony Xperia M2] erikcas:
no, Adam made an initscript for distinquishing single sim and dualsim on boot

So, rom can be flashed on both single sim and dualsim, correct type is detected at boot
[Sony Xperia M2] Th3 Ant:
Good work :)

One question - will it work with new sensors?

Wysłano z D2303 za pomocą Tapatalk
[Sony Xperia M2] erikcas:
unfortunately, we still have to sort that out.......
[Sony Xperia M2] NieeLz:
well new thread again cm 13 here i come :D
[Sony Xperia M2] quake73:
I tried it on my 2303, boots fine, works very smoothly, bluetooth turns on/off, gps works but have no sound. Also, Kernel Auditor shows only 2 cores (1 & 3) active.
[Sony Xperia M2] ARandomIndian:
Well good work as always guys meet you in the CM 13 topic,

I'm just grateful we get to atleast have Marshmallow LOL, Camera problem sucks but i trust you with your decisions,

Thanks for all the community.
[Sony Xperia M2] erikcas:
It probably only shows the active cores.

For audio I will check logs

Verstuurd vanaf mijn E6653 met Tapatalk
[Sony Xperia M2] ARandomIndian:
Hi also is there any performance improvements? How much ram does it use?
[Sony Xperia M2] Lojzo_11:
[MENTION=5629525]pawcioo132[/MENTION] Could i knew if you building kernel with zRAM? I am still waiting :confused:
[Sony Xperia M2] pawcioo132:
I do not know why but I have a lot of error when i try to make boot image. But I'm still trying
[Sony Xperia M2] ARandomIndian:
Do you guys have a build I can flash (d2305)
[Sony Xperia M2] Lojzo_11:
Okay. Its good to know you are working on it. ;)
[Sony Xperia M2] erikcas:
sync cm sources, apply kernelpatch and "make bootimage"

could save you tons of time?
[Sony Xperia M2] pawcioo132:
I already did but it did not help because it shows the problems associated with non-existent files, which you really do not have to add them manually by copying the contents of a file from github
[Sony Xperia M2] FunSucker:
Report, sir. My device is D2302.

1. Cant opened camera use camera button

2. When go to Settings - Apps - Swipe to "On sd card" tab, force closed.

3. Trebuchet & Email got crash, force closed

4. Running smoothly with micro-gapps.

Question :

I saw "#" icon in my status bar ? what's that? SU Binary notification, sir?

thanks :)
[Sony Xperia M2] RenkaHinkaru:
I think you installed official xposed firmware by rovo89, didn't you?

You can try to install xposed firmware customized by wanam.

It work for me, maybe it work for you, too.

Sorry my bad English
[Sony Xperia M2] FunSucker:
Yes i did. But i'm not sure when this problem arises, whether after installation xposed or earlier.

To be sure, trebuchet and email app has an error after installing Xposed. For other problems, occurred before the installation xposed.

Thanks for advance.
[Sony Xperia M2] PauloHHB:
It's all XPosed (except for the camera button), and the "#" is Built-in Cm SU.
[Sony Xperia M2] FunSucker:
So, i should install Xposed firmware by wanam (If i want to use Xposed) like [MENTION=7124481]RenkaHinkaru[/MENTION] said for this ROM ?
[Sony Xperia M2] PauloHHB:
Yes, i didn't know that, but it does work, I just tested on SlimROM.
[Sony Xperia M2] RenkaHinkaru:
Yes, you should

and i think everything will be ok;)
[Sony Xperia M2] ismailbozdagg:
My device D2302 . I tested cyanogenmod 13 .Beautiful rom but camera and sound not working
[Sony Xperia M2] RenkaHinkaru:
I don't know about sound problem, but about camera, like [MENTION=985241]erikcas[/MENTION] said, it's very difficult to build on kernel 3.10
[Sony Xperia M2] FunSucker:
Yes it's works. Thanks, gentlemen :D
[Sony Xperia M2] RenkaHinkaru:
You are welcome bro :)
[Sony Xperia M2] mauritzius:
i flashed cm12.1 about a week ago and so far it works great apart from one strange thing: operator names are not shown. instead, it displays the operator code.

has anybody an idea how to solve this?

thanks
[Sony Xperia M2] FunSucker:
During the call, the incoming and outcoming voice is not heard. if anyone has experienced the same thing?
[Sony Xperia M2] RenkaHinkaru:
Here, from linuxct

http://forum.xda-developers. com/xperia-m2/development/xperia-m2-headphone-quality-improvements-t3272661 (remove space)

I don't know it works or not, but I think you can try (uninstall AudioFX first by Titanium Backup, don't forget to create a backup).

Good luck!
[Sony Xperia M2] galaxyfreak:
Done with CM(13) reintegration.

Buliders profit: No patches needed, sync CM13, brunch eagle, come back in an hour.

Users profit: Now all variants are properly recognized in about phone, dual sim working (no new sensors guys, sorry). I need some testers for this. Ping me in PM.
[Sony Xperia M2] freack_v:
Fix audio:

Unzip the system/etc/, replace the file, the right to set 644 and reset smartphone

And work WiFi tethering?

if does not work, you need to place a fix wi-fi in the system / etc to the right 644 and restart the Smart
[Sony Xperia M2] NieeLz:
good work galaxyfreak :D
[Sony Xperia M2] RenkaHinkaru:
:victory: nice, i hope it more stable
[Sony Xperia M2] erikcas:
kernel matter, not android source
[Sony Xperia M2] ^^Robi:
yes I know its kernel but what if he looks at their kernel and get camera drivers? I don't exactly know how to make rom and how to get things workable am just asking :)
[Sony Xperia M2] RatchetHacked:
This is an other kernel Robi, you can't just easily port a driver and get it to work in other kernels
[Sony Xperia M2] galaxyfreak:
First build in 2015 :) Happy new year guys! :)
[Sony Xperia M2] gmpdri:
Happy new year for all.

Link?
[Sony Xperia M2] ReznorNInchNails:
Awesome, thanks!

Happy New Year to you too, all best. (and also to everyone here)

nek je sretna sto bi rekao nas narod :D
[Sony Xperia M2] zodex:
Happy new year ;) What kernel have you used?
[Sony Xperia M2] Supercharlie25:
Happy new year to all!! :D

Link?
[Sony Xperia M2] galaxyfreak:
[MENTION=985241]erikcas[/MENTION] could you please confirm this theory for me when you have time?

You fixed camera on KK, and you say libcameraservice.so from stock is needed. I cannot confirm this now as I have no 4.4.4 blobs CM11 build.

I think on CM12, we're getting same error for camera as we got on KK ROMs before because I'm not using prebuilt libcameraservice.so (can't use it, it won't load on LP.)

If this is right - then I don't think there's an easy solution for LP ROM camera at this moment.
[Sony Xperia M2] ^^Robi:
Bad news... :crying: Seems like we will have to wait very long for lollipop [MENTION=4635923]galaxyfreak[/MENTION] just don't give up please you are our only hope for lollipop on this device.
[Sony Xperia M2] vusun123:
Why ? galaxyfreak himself is developing it already, and you already have functional ROMs, unlike D2305 and D2302 which is sitting in oblivion. Are you talking about stock Lollipop ROM ?