yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 Original Android Development] championswimmer:
AOKP MM 6.0.1 unofficial + nightly + official

DISCLAIMER

You need to have an unlocked bootloader to use this ROM & kernel. Also I or any contributor in the software DOES NOT take responsibility of damages caused to your phone due to this ROM.

1. Copy ROM zip and gapps zip to sdcard

2. Flash any kernel which has recovery (Use the boot.img in this ROM - It has TWRP)

3. Reboot device and go to recovery by pressing Vol-UP when LED is pink

4. If coming from 5.1 or below ROM wipedata/factory reset your phone

5. Flash ROM zip

6. Flash OpenGapps ARM zip

7. Reboot and enjoy.

Official NIghtlies (automatically built every 4-5 days) :

Basketbuild

Unofficial Test Builds (will contain experimental changes for testing) :

Mirror : Uploaded.to

Mirror : self hosted

Gapps :

http://opengapps.org

We spend countless of hours doing this for next to nothing. Posts, views, and donations encourage me, and everyone else who helps out.

Donate to AOKP

Every donation is cherished and loved.

If you'd like to help contribute by writing code, feel free to stop by IRC and talk to us!

Latest merges on Gerrit

http://gerrit.aokp.co/#/q/sony+status:merged,n,z

Check out the ROM source on github. Open source, in the spirit of community kangage.

CREDITS

Thanks to all device maintainers of Sony devices on CM/AOKP/Omni/PA/PAC as everyone working on the device helps each other into making better ROMs.

Also thanks to Sony Mobile for being so helpful to developers.

XDA:DevDB Information

AOKP MM 6.0.1 unofficial + nightly + official, ROM for the Sony Xperia Z2

Contributors

championswimmer

Source Code: http://github.com/AOKP

ROM OS Version: 6.0.x Marshmallow

ROM Kernel: Linux 3.10.x

Based On: AOKP

Version Information

Status: Alpha

Created 2016-02-09

Last Updated 2016-03-10
[Xperia Z2 Original Android Development] raolleel:
Wow AOKP is back :)

It was my favourite ROM in the "old time" since IceCreamSandwich.

I'm really exited in testing this, when it becomes more stable
[Xperia Z2 Original Android Development] Isley_:
AOKP is back! Thanks, I'll try this ROM.
[Xperia Z2 Original Android Development] Pepousek67:
AOKP
[Xperia Z2 Original Android Development] giaodichlinhtinh:
Like

gửi từ clan của TT
[Xperia Z2 Original Android Development] RaKesh:
any problem like no camera etc...?
[Xperia Z2 Original Android Development] s.hossein:
The camera does not work
[Xperia Z2 Original Android Development] peddarson:
Wohoo! Finally a marshmallow rom appeared next to aosp!
[Xperia Z2 Original Android Development] Mikey94:
I don't want to test formatting my sd card inside the rom, but can you confirm that the "SD-Card format hard brick bug" is not there (like in AOSP)? :D
[Xperia Z2 Original Android Development] AcidFX:
In AOSP it's already fixed in v20
[Xperia Z2 Original Android Development] Austin.gonzo:
What's the point of installing it when it doesn't have camera working :D
[Xperia Z2 Original Android Development] Mikey94:
Just installed the rom. I can report the following things:

- Clean install worked fine, setting up worked fine too

- Phone loses date and time at startup (whatsapp error)

- Cam not working

- Performance is bad (its like energy saving mode in cm12.1, no smooth animations and scrolling)

- pre installed mGerrit app is very unstable (force closing many times)

- Wifi and Mobile data working fine. Didn't test bluetooth yet.

- SD Card gets detected

No daily driver for me, cause of bad performance. (have this bad performance on AOSP too. Vanir has very good performance, but last build is from 1801...)

Testing - one important thing for developing...
[Xperia Z2 Original Android Development] Austin.gonzo:
Sorry :D I thought this is like a beta version
[Xperia Z2 Original Android Development] K-NineHD:
After flashing this I am completely unable to go into recovery, it bricks itself with no return whenever I do try and go into recovery
[Xperia Z2 Original Android Development] Pepousek67:
- Install Minimal ADB and Fastboot

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

- Get this - [KERNEL] [Sony LP] [April 1, 15] Abricot kernel v7

http://xdaforums.com/xperia-z2/orig-development/kernel-abricot-kernel-v3-t2965480

- Unpack zip files and copy - to folder img minimal ADB

- To rewrite sony_abricot_kernel_v7.img - boot.img

- Flesh img

- fastboot devices

- flash boot boot.img

- fastboot reboot

This installation - fles img again get into TWRP and there renew the original ROM :)

Everything you do at your own risk!
[Xperia Z2 Original Android Development] itsnie:
Make sure your bootloader unlocked before flashing custom kernel or custom kernel dude
[Xperia Z2 Original Android Development] championswimmer:
New build up. Wifi and Bluetooth should be working now
[Xperia Z2 Original Android Development] atoyu:
Thx. How about camera?
[Xperia Z2 Original Android Development] s.hossein:
Camera is important for me. I'm waiting to it.
[Xperia Z2 Original Android Development] Pepousek67:
Test: Wifi and Bluetooth OK is working
[Xperia Z2 Original Android Development] Mikeybray16:
Could someone post a stable nougat rom for z2 please
[Xperia Z2 Original Android Development] Austin.gonzo:
No because it's not stable yet, but you could try AOSP, LineAge Os,PureNexus nougat Roms
[Xperia Z2 Original Android Development] Mikeybray16:
If you provide links I will
[Xperia Z2 Original Android Development] Austin.gonzo:
Here https://xdaforums.com/xperia-z2/development/aosp-6-0-marshmallow-sony-xperia-z2-t3235951

The Roms are from the same source so they have the same bugs but people gave a good feedback from the pure nexus rom so I suggest you use pure nexus rom

The bugs are camera is not fully functional(not all Features work) the focus doesn't work but in what's app's camera it works but it takes long time

Other bug is calling issues which made me stop using this Rom, when you call someone they could hear echoes and your phone reboots after Calling plus 1 minute
[Xperia Z2 Original Android Development] RyTekk:
Welcome back, a great ROM in two sometime greatest ROMs. I think OP should list out what working and not.
[Xperia Z2 Original Android Development] K-NineHD:
I am UB. I booted into the ROM
[Xperia Z2 Original Android Development] itsnie:
Are you have format the sdcard then reboot and blank everywhere ?
[Xperia Z2 Original Android Development] Austin.gonzo:
Is it possible to add the camera blobs from the Aosp 6.0 by Rcstarr in this rom ? Will it work ?
[Xperia Z2 Original Android Development] thebigtross:
Good idea

---------- Post added at 03:05 PM ---------- Previous post was at 03:01 PM ----------

The main problem is xperia devices getz the update very later than Samsung oneplus etc...

We are the 16/02 and whats the ETa ?

- pretty unstable 6.0.1

- drivers missing from sony

- myself5 leaved z2 support !

- the last release is révolution Remix 5.1.1 ( last build 3month ago and lot of softreboot)

Never of m'y life Sony again !
[Xperia Z2 Original Android Development] championswimmer:
okay folks, next update will have wifi/sim/bt/cam all working BUT I am holding out on next update till some new changes get merged on CM.

There area lot of changes pending on CM tre. cdesai and kali- are testing a whole bunch of changes to move to using AOSP blobs instead of Sony vendor blobs for many parts.

You can check topic:aosp on review.cyanogenmod.org.

Once they are tested and merged, we will have a lot of things working then,
[Xperia Z2 Original Android Development] rcstar6696:
Yes they test those and i know that all things are working with aosp blobs :D cm will use 3.10 linux kernel to like aosp does it
[MENTION=4308696]championswimmer[/MENTION] i wrote you on hangouts i'm max there
[Xperia Z2 Original Android Development] Mikey94:
How is the chance, that we get a good front cam with the aosp blobs?
[Xperia Z2 Original Android Development] peddarson:
So the chances increase that the z2 will get an official cm release soon?
[Xperia Z2 Original Android Development] s.hossein:
What is the difference between kernel 3.10 and 3.4?
[Xperia Z2 Original Android Development] itsnie:
http://kernelnewbies.org/Linux_3.10
[Xperia Z2 Original Android Development] Mikey94:
AOSP Blobs have been merged to cm13 today for xperia devices :) :)
[Xperia Z2 Original Android Development] Austin.gonzo:
Does this mean camera,WiFi, Bluetooth & etc will work on aokp ?
[Xperia Z2 Original Android Development] SysGhost:
It means it works as well as it does on CM13 / AOSP 6.x, which currently have these problems:

* Camera "kinda" works, but cannot focus.

* NFC does not work
[Xperia Z2 Original Android Development] championswimmer:
new builds up. wifi/baseband working

laggy camera too :P (will improve in coming days)
[Xperia Z2 Original Android Development] s.hossein:
My wifi problem continue with new build.not detect my network when simcard inserted. To use wifi I should turn on airplane mode.
[Xperia Z2 Original Android Development] thebigtross:
I tested last build.

It works with last blobs but ive some issues:

- no data at all 3g 4g... (*#*#4636#*#* dont work too)

There is à bug in 6.0.1 I dont but i dont have a network data at all...

- some softreboot (cm issue ?)

We need à [MENTION=3816568]Myself5[/MENTION] kernel for this ☺

Its in a good way thx for the build. I'll test nexts working builds...
[Xperia Z2 Original Android Development] Kernel_Panic:
I guess my phone hard bricked after flash this rom.
[Xperia Z2 Original Android Development] championswimmer:
lol, nope, not possible.

charge it, then flash stock FTF. all will be good.
[Xperia Z2 Original Android Development] raolleel:
[MENTION=4754862]Kernel_Panic[/MENTION]

I think you're just normally booting, the rom boots really slow (at least here) and it has a few secounds with a black screen while booting

just give it a few seconds/minutes.

All in all its a really nice rom, I think its pretty smooth, but I noticed a few bugs:

-black screen while booting (between the sony logo and the aokp logo)

-resetting its time everytime I reboot or a forced reboot happens

-problems with video decoding .. youtube works in fullscreen but in "normal" orientation not

-camera not working correctly (obliviously ;) ) .. but it tries to focus, so this should be a config-error (at least I think that it'll be the problem)

-camera not working in other app (I tested whatsapp web)

But for the second build its really good, no dayly driver, but it shows that our phone has no problem handeling this rom

Thank you for your hard work

greetings raolleel
[Xperia Z2 Original Android Development] nicholasknicks:
Mobile Data not working on the latest build

Bluetooth also not working

Automatic display bug also present
[Xperia Z2 Original Android Development] hagryd007:
Thx, looks good so I will try it ;)
[Xperia Z2 Original Android Development] kingsasha:
Can i use this with androplus kernel v72?
[Xperia Z2 Original Android Development] raolleel:
no

Androplus is only for stock 5.1 ... and AOKP-MM is 6.0 and Cyanogenmod-based
[Xperia Z2 Original Android Development] Austin.gonzo:
Does snapchat work on this rom ?
[Xperia Z2 Original Android Development] Austin.gonzo:
I know a lot of developers hate this question and im sorry if u get mad or anything but are you working on a new update for this rom if you are then i'll wait..

I dont want to download the current update then you upload the latest version in the next day, you know what im saying
[Xperia Z2 Original Android Development] championswimmer:
New build have been uploaded.

There are new features in ROM Control.

Device hardware state is mostly same - laggy camera, mobile data works

http://uploaded.net/f/614c0k
[Xperia Z2 Original Android Development] VinBenzin810:
what does mean laggy camera ? - like asop mm build that the focus doesnt work ?

on which source this rom is build asop or cm ?

and which issue this rom have more ?

i will be sure that i test this rom but i need some infos before i flash it.
[Xperia Z2 Original Android Development] Austin.gonzo:
Laggy means it's slow basically like when u try to play a game with high end graphics with your low end computer, and yes it's like aosp camera

It's merged with both of em

Idk bout the last question haha sorry, i havent installed yet
[Xperia Z2 Original Android Development] Chatty:
I am new to the Xperia Z2. I have not yet unlocked it. TWRP does not state to require unlocking. So is it really required? Explanation?

Thanks.
[Xperia Z2 Original Android Development] sayz:
Simple: With locked bootloader, there is no possibility to flash necessary data to the Phone which is required to run a custom rom that isn't based on Stock Rom.
[Xperia Z2 Original Android Development] arsenicas:
Great ROM aside from restarting during calls when the screen turns off on the latest update. Anyone else or it's just me?
[Xperia Z2 Original Android Development] Austin.gonzo:
Hi installed the latest build, it works great, but I can't find my wifi, wifi starts without crashing or anything but I can't find my WiFi.
[Xperia Z2 Original Android Development] s.hossein:
Yes same problem is here.
[Xperia Z2 Original Android Development] kokesh:
Same problem in AOSP.
[Xperia Z2 Original Android Development] Austin.gonzo:
Rcstarr said it's been fixed in the latest aosp build, download and check it if it's true
[Xperia Z2 Original Android Development] s.hossein:
I'm now on latest build aosp, but my wifi not detec my network.
[Xperia Z2 Original Android Development] Faisal Z Ahmad:
Wow,Awesome ROM :),Thank You For Bringing 6.0 To Z2 :D

Performance is Great , Battery is Superb,Sound is descent (Tried Viper4Andriod But Freezes In Installing drivers Through The App) and It may Be Used For Daily Drivers Because It Is Stable Enough Except For Camera lovers (Front Camera Is working Good but Back Camera Isnt)

And Xposed Is Working didnt Try many Modules but Most Of Them Work

Here Are Some Bugs/Issues I Encountered:

-Settings App Crashes When pressing Vibration intensity

-Sometimes Brightness Reset To Max When Sreen Goes Off And On

-Clock Crash When Selecting profiles

-USB OTG Not Working

-When You power On The Device It Shows A Black Screen for seconds And It Skips some Of The Bootanimation (It Is not from The Bootanimation.zip)

-Sometimes Settings Crash On Boot

-Doze Mode Isnt Working Properly Or Isnt Working At All

-Flashlight Turns Off Automatically After Like 8~Sec No Matter How It Has Been Powered On By (Notification panel,App..)

-Also The Flashlight Is Too Bright Like 2x More Than Other ROMs

So I Hope These Get Fixed Soon And If I Encounter More I Will Write It

Sorry My English Isnt Perfect
[Xperia Z2 Original Android Development] arsenicas:
thanks for the update. I'm dying to know if I'm the only one who has a reboot when the screen turns off whenever in call. have you seen anything like that?
[Xperia Z2 Original Android Development] Faisal Z Ahmad:
I Dont Know Cause I Didnt Try It

In My Country Calls Are Expensive When I Can I Will Try
[Xperia Z2 Original Android Development] hardcoremildred:
[MENTION=6365941]Faisal Z Ahmad[/MENTION] yes I can confirm it's an awesome rom!

Camera is not that bad that it is not working at all, it's more like "no flagship quality" and laggy.

I tested extra for you, no problem here. I tested screen off with proximity sensor, time out (15 seconds) and power button-off each several times in 3 different calls, no bug or anything. I tested doing the call and receiving the call.

NFC not working is a pity, anyway I will test further because I really suits as a daily driver quite well.

Two bugs I encountered:

"Design" force closing and the search inside settings does not always bring me to the correct page.

EDIT: And i think "restart system ui" is not working too, you have to reboot for some changes to take effect (weather in statusbar)

Awesome ROM, THX championswimmer!
[Xperia Z2 Original Android Development] arsenicas:
Thanks mate. I have the same issue on AOSP MM as well. its probably something I'm doing perhaps. Still trying to see where it's coming from. Great rom though.
[Xperia Z2 Original Android Development] Faisal Z Ahmad:
Hey Guys,

I Flashed Divine Beats On This ROM And It Is Working Flawlessly ,The Sound is Hugely Improved and is Way Better Than Stock Because Audiofx Is still Not Working

So Give It Try you wont Regret It :o
[Xperia Z2 Original Android Development] AlanDS:
Is anybody using this rom with internet calls like Viber, Skype etc... Whether both ends able to hear sound properly without echo?
[Xperia Z2 Original Android Development] hardcoremildred:
- Smart lock with Bluetooth (smart watch) sometimes not working.

- Trusted Face does not work (camera does not open to complete setup).

- I had an issue where my screen stayed on for 6 hours, then reboot, then on again. This happened while I was sleeping, phone was fully charged but not connected to power. At the morning it had like 18% charge left.

Besides the 6 hours display-SOT the most power got sucked by "others" , more than 60% . Sorry no screenshot.

I have no idea what happened with my phone that night :confused: probably it was having a good time drinking and dancing :D

Another issue is, that my battery really goes empty very (!) fast when below 15%. This appeared with this rom, but I don't know of it is rom-related or just got out of calibration.

Now testing divine beats :D
[Xperia Z2 Original Android Development] VinBenzin810:
The last issue is a cm issue i know it right.

Gesendet von meinem Xperia Z2 mit Hilfe von xda Forums PRO
[Xperia Z2 Original Android Development] hardcoremildred:
I flashed it and it did not work good for me :(

I flashed the Dolby digital + version and there was no sound on phone speakers when playing music. On Bluetooth it was fine.

Sometimes I have strange battery drain on the ROM, I take further look into it. This night I got GPS on high precision by accident, maybe it was this, but I don't think so.
[Xperia Z2 Original Android Development] Faisal Z Ahmad:
I flashed Dolby atmos, i didn't try Dolby Digital

Dolby atmos is working really great till now zero problems, and I'm not experiencing any battery drain from it (a little maybe Doze mode not working correctly)
[Xperia Z2 Original Android Development] hardcoremildred:
- In settings, it is not possible to select another preferred data mode than LTE(4G).

- Sometimes, mobile data stays on for a while after connecting to WiFi. (And the option for mobile-data-always-on is NOT checked in developer options).

- smart lock/Bluetooth not reliable. Needed to disconnect/reconnect smartwatch to make it work again

- sudden reboot about 1 time per day :D

- VLC force closes when changing volume.

(No xposed, no other kernel. )

And I miss pie-controls :( -- this is a big display on the z2, please add pie :D
[Xperia Z2 Original Android Development] Faisal Z Ahmad:
Also For Me,Sudden Freezing Then a reboot Happens for me Frequently

Most of the Time When During Medium-Heavy Tasks or in Certain Situations ,like Opening a Video On Youtube,Rarely While Browsing The web and Sometimes While Listening To Music Via Headset
[Xperia Z2 Original Android Development] Austin.gonzo:
I think this guy might be able to help u improve the camera app http://xdaforums.com/xperia-z/general/testers-resurrection-remix-m-yuga-t3337024
[Xperia Z2 Original Android Development] hardcoremildred:
I have strange battery drain, when the phone is doing nothing :)

It's OK as long as I actually use it, but when idle it just goes mad.

Here are some screens. The phone is almost all the time "active", screen is off, and the juice is eaten by " others " ('sonstige').

There is often a peak in the battery drain, but no app like titanium or whatever is active to do backups or whatever.
[Xperia Z2 Original Android Development] Faisal Z Ahmad:
For Those Who Have Problems With Doze Mode,I Found Doze Settings editor And Its Working Good ,Well There Is Still Battery Drain But Better (Maybe I Didnt Tweak It Well):D

I Hope It Helps
[Xperia Z2 Original Android Development] Ashuparla:
Testing now this days... It's a great job [MENTION=4308696]championswimmer[/MENTION]. It has the well known bugs related, but it's one of the more customisable mm rom till today. Hope you continue porting it, really appreciate it.

I have issues with themes, but nobody says nothing about, so I assume is my fault.

Anyway, thanks again for your work!
[Xperia Z2 Original Android Development] hardcoremildred:
"Design" is themes :D
[Xperia Z2 Original Android Development] Faisal Z Ahmad:
Yes ,Also For Me Its Not Your Fault I Didnt Mention It Becuase EveryThing CM Realated Not working Like Audiofx
[Xperia Z2 Original Android Development] D_JWhite:
I've installed this rom, the latest version, but can't figure out how to install SuperSu. I don't know if the changes for MM require a different approach that the z2 hasn't caught up with. Either that or I'm just being thick! :p
[Xperia Z2 Original Android Development] hardcoremildred:
I used the build in su, works fine, just "forgot" to flash super-su this time :D

You tried to flash super-su zip from recovery?
[Xperia Z2 Original Android Development] D_JWhite:
Yeah, I tried that initially but the systemless version caused my phone to fall over.
[Xperia Z2 Original Android Development] hardcoremildred:
There is no option for the default alarm sound?

But you can/have to set individual alarm sounds for every alarm.
[Xperia Z2 Original Android Development] hardcoremildred:
If you set camera in video mode in low resolution (below SD-quality) it will force close and you can't reset it, because it force closes now every time you open the app :D

I will flash dirty to try to revert it.
[Xperia Z2 Original Android Development] Austin.gonzo:
You can just go to the app's settings and delete it's data & cache
[Xperia Z2 Original Android Development] Faisal Z Ahmad:
Today, I tried calling someone while screen is off(i disabled proximity sensor so i do it manually) and yes the phone rebooted,that's what happened also to [MENTION=5097748]arsenicas[/MENTION]
[Xperia Z2 Original Android Development] furkey:
Can somebody tell me what bugs there are in this rom?

For instance: Is camera fully fixed or it's still have focus issues etc.
[Xperia Z2 Original Android Development] D_JWhite:
Camera on this ROM is not working. Max resolution is about 1mp and once I tried to replace the AOKP blobs with AOSP blobs it just gave up.

There are a few hangs but nothing major, it'll reset and carry on.
[Xperia Z2 Original Android Development] hardcoremildred:
I can not confirm this, it's more like 8mp. At least if you wait for focus.
[Xperia Z2 Original Android Development] D_JWhite:
What build? Do you think dirty flashing will help?
[Xperia Z2 Original Android Development] hardcoremildred:
I am on the latest "test" - build from champion swimmer, not on the nightlies.

It is from 6 March.
[Xperia Z2 Original Android Development] Austin.gonzo:
Yes you downloaded the test build which is Android marshmallow( 6.0.1)

the nightlies are KitKat (Android 4.4) not Android marshmallow (6.0.1)
[Xperia Z2 Original Android Development] D_JWhite:
Can you upload your camera binaries somewhere, please? Through messing around without backing up I've rendered my camera completely inoperable.
[Xperia Z2 Original Android Development] hardcoremildred:
Sorry, I flashed another Rom last night :)

I used the MM alpha for three weeks now, but I couldn't stand the battery drain any more :D - yesterday evening I was driving in the bus and could not continue my ebook because no juice left in the device, and so I decided it's time for a more stable and reliable software. I tested it intensely now for 20 days, and I will do so again with one of the next releases.

Why don't you just dirty flash your image again? (although, if I remember correct, it will wipe your internal sd-card, so hmm yeah, will probably not really work to flash 'dirty'....)

Sorry, but it seems best way would be to back up mail, SMS/phonecalls, Chats like WhatsApp and maybe games/savegames and than do a fresh install... Good luck!
[Xperia Z2 Original Android Development] D_JWhite:
No worries, dude. I tried a dirty flash this morning and got a bootloop, had to restore from a nandroid backup. What rom have you gone to? Another marshmallow rom?