yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 Android Development] :
proxy here issues, sorry for spam, will clear up at home
[Xperia Z2 Android Development] Axle Cj:
how to flash the new kernel
[Xperia Z2 Android Development] pixel0:
If you have D6502 ,then there is a new kernel boot212.img ( confirmed working by someone).

Download from mega folder then flash by fastboot or twrp.
[Xperia Z2 Android Development] Shri Arun Karthikeyan:
Hi [MENTION=5862770]hamzxoxo[/MENTION]. I'm using D6502 model Z2. I wanted to try this rom. Help me with the procedure...

1. Flashing boot_212.img using flashtool in flashmode.

2. There are two recovery files (twrp 2.8.7 & twrp 3.0.0)...Which file should I flash?

3. I'm using stock rom, Shall I skip factory reset and format system.?

4. There are three 7.0 roms and two 7.1 roms...Which file should I flash in recovery mode?

5. Should I flash Gapps for 7.1 or 7.0 or 6.0.1?

That is all...
[Xperia Z2 Android Development] petrmenzel:
"Ok Google" always-on

It is possible to make "Ok Google" always-on? I think it should be possible if it is possible to turn screen on by clicking on it. Thx for answer.
[Xperia Z2 Android Development] mirok80:
great work but no working camera
[Xperia Z2 Android Development] petrmenzel:
I think you do not have to this.

Flash the newer ---> 3.0.0.2-0 version.

Do not remember unlock bootloader. Yes wipe.

I am using daily 7.1. It works very well. Only camera does not work and some apps.

Flash the apps corresponding to the android version.
[Xperia Z2 Android Development] hamzxoxo:
First root the phone and unlock the boot loader

Then flash the latest twrp, v3.0.0 worked for me

Download the latest 7.1 build and the corresponding gapps (OpenGapps, pico recommended)

Place them in your sd card and reboot to the recovery

Do a full factory reset (i wiped Dalvik, Cache, System, Data and Internal Storage too)

Flash the rom and gapps

After this the rom will not boot, obviously. Connect your phone to the pc in fastboot mode (hold volume up and connect it)

Open adb terminal and flash the boot_212.img and then reboot

Done

---------- Post added at 08:31 PM ---------- Previous post was at 08:29 PM ----------

Any other D6502 users who got the rom working on their phone?
[Xperia Z2 Android Development] Shri Arun Karthikeyan:
Thanks bro...Camera won't work?????
[Xperia Z2 Android Development] iXaidyiu:
Why not?
[Xperia Z2 Android Development] Axle Cj:
Good Work But I Hope To Fix The Camera Soon
[Xperia Z2 Android Development] bit_creepy:
I'm curious, does our device support the Vulkan API with this ROM?
[Xperia Z2 Android Development] dex87xda:
No.
[Xperia Z2 Android Development] filjusz:
Snapdragon 800/801 hardware does not support VulkanAPI so its not possible :<
[Xperia Z2 Android Development] bit_creepy:
I was led to believe it's not 'officially' supported, so it can technically it can still work.
[Xperia Z2 Android Development] filjusz:
As i said it's not going to happen
[Xperia Z2 Android Development] bit_creepy:
So which graphics API is being used in this ROM?
[Xperia Z2 Android Development] iXaidyiu:
The one we are using on stock now.
[Xperia Z2 Android Development] filjusz:
Yeah, probably the default adreno drivers used in our latest stock rom (.291)
[Xperia Z2 Android Development] Shri Arun Karthikeyan:
[MENTION=2818119]petrmenzel[/MENTION] Camera won't work??????. Did TWRP 3.0.2 work?
[Xperia Z2 Android Development] hamzxoxo:
1)The camera does work but its dark 2)twrp 3.0.2 will probably work
[Xperia Z2 Android Development] h1ghland3r:
As well as Snap 410. But it will receive official Nougat.

Edit: nevermind, you're taking about VulkanAPI, my bad. =)

Sent from my Xperia Z3
[Xperia Z2 Android Development] ticktock666:
D6502 here, I'll download the ROM and report later tonight
[Xperia Z2 Android Development] Shri Arun Karthikeyan:
Twrp 3.0.2 is working in Xperia Z2 D6502.

---------- Post added at 01:52 PM ---------- Previous post was at 01:50 PM ----------

Briefly on app compatibilities and camera pls... :p
[Xperia Z2 Android Development] rato_alado:
Hi there, I flashed this Nougat rom from rcstar6696 ("aosp_d6503-20161031-7.1-NDE63P-Rcstar6696-N.zip"), using the kernel inside the zip, plus twrp3.0.2.0 on my D6543 (Brazillian Version with DTV, now disabled) and I noticed that my phone isn't charging when plugged in computer through a normal usb cable. It charges only if I plug a charger cable missing data lines (just supply power). Btw, I needed to fix paths in update script to get the zip flashed.
[Xperia Z2 Android Development] Shri Arun Karthikeyan:
Both rear and front camera????
[Xperia Z2 Android Development] ticktock666:
Sure thing, any specific apps you're interested in? I plan to root and use titanium backup to restore my apps, the only reason I'm not gonna use it as a daily driver is that I'm waiting on rovo to bring us xposed, but again all in good time.

[MENTION=5621191]rcstar6696[/MENTION] you mentioned multirom recovery as an option, can you point me to the one you had in mind, otherwise I'm assuming it's the one from these forums?
[Xperia Z2 Android Development] pixel0:
https://diewald-net.com/files/public/MultiRom/sirius/recovery-2016-06-12_1853.img

Also rovo89 is testing new hooking methods as there is a new jit compiler in android n.
[Xperia Z2 Android Development] ticktock666:
Thanks mate, but apparently multirom is not able to load both this and the stock ROM together, the Dev in the other thread said he's working on it, which means for now a backup& restore setup will have to do.

It's it possible to make a flashable zip of the kernel image? I have a couple of flashable stock kernels, maybe if i do some file swapping it'll work, then switching between ROMs will become easier as I'll just restore backups and flash kernel on device.
[Xperia Z2 Android Development] pixel0:
You can create a flashable zip for boot.img only.

its possible but remember multiple flash can brick device over long period.

EDIT 1 : there will be universal multirom support through masgisk soon.The developer is working on it.

EDIT 2: You can use flashify also.
[Xperia Z2 Android Development] FellipeSilvaRJ:
D6543 here, no issues
[Xperia Z2 Android Development] petrmenzel:
Sometimes camera works, sometimes does not (you have to restart phone). If the camera works it is very slowly and takes time to focus.
[Xperia Z2 Android Development] rato_alado:
I don't know, but after started adb, it began to charge, perhaps, could be a question of time also. Thanks!

Now I got some troubles running Open GApps Stock, I will try nano version now...
[Xperia Z2 Android Development] Shri Arun Karthikeyan:
Does clearing cache of camera app helps??? or we have to restart phone everytime?

---------- Post added at 06:41 PM ---------- Previous post was at 05:58 PM ----------

---------- Post added at 06:57 PM ---------- Previous post was at 06:41 PM ----------

Hi... i did the following procedure...

First root the phone and unlock the boot loader

Then flash the latest twrp, v3.0.0 worked for me

Download the latest 7.1 build and the corresponding gapps (OpenGapps, pico recommended)

Place them in your sd card and reboot to the recovery

Do a full factory reset (i wiped Dalvik, Cache, System, Data and Internal Storage too)

Flash the rom and gapps

After this the rom will not boot, obviously. Connect your phone to the pc in fastboot mode (hold volume up and connect it)

Open adb terminal and flash the boot_212.img and then reboot

Done

I tried flashing boot.img with flashtool...

i got into fastboot mode...

first i selected boot_212.img as system flash....

then it didnt boot

so i selected boot_212.img as kernal flash....

this time it booted but only SONY logo appears... it didnt move after that... What can I do now??? help me
[Xperia Z2 Android Development] rcstar6696:
begin again by point one your system is broken
[Xperia Z2 Android Development] rcstar6696:
Changelog and infos

Changelog is now only for 7.1 and its based on the newest builds

and i added some more infos in second post

Big Thanks to [MENTION=7790746]pixel0[/MENTION]

he prepared all :)
[Xperia Z2 Android Development] Shri Arun Karthikeyan:
How to????

I don't know the procedure...

It stucks with SONy boot screen.

It doesnt go even into recovery...

Help me bro. Im a noobie
[Xperia Z2 Android Development] rcstar6696:
Ok

I hope this helps

You need to boot into fastboot

Then write fastboot erase boot

Then write fastboot erase recovery

Now flash boot_212.img via fastboot

Boot into recovery now press volume up when led is pink

Wipe system cache and do a factory reset

Now install zip like rom and gapps

Boot to fastboot again and flash boot_212.img again

Or wait sometime then i will upload a new build which should work on d6502 out of Box

I need to test the build on my device if its okay you will get it in some hours
[Xperia Z2 Android Development] Shri Arun Karthikeyan:
THank you fr responding bro...

As you said i erased the boot and recovery using commands.

and then flashed boot_212.img

Still it stucks with Sony logo screen. Can this be solved...

Will wait for you to give out of the box installation method. And if possible procedure (Noobie proof). THanks prehand
[Xperia Z2 Android Development] rcstar6696:
reflash the rom :/
[Xperia Z2 Android Development] nakwonelec:
I mean i found how to build(local manifest files 'sony.xml') not key files, sorry. previous, i made sony.xml by hand

contact e-mail is ch0494@gmail.com

thanks
[Xperia Z2 Android Development] RyTekk:
http://developer.sonymobile.com/201...-camera-available-for-experienced-developers/

Waiting for V8's release.
[Xperia Z2 Android Development] ChungVan:
Waitting Quick Charge 2.0 for next build :D
[Xperia Z2 Android Development] rcstar6696:
The camera files are for lollipop only and doesn't work on Android m

i copied all blobs to m and i get only FC on cam we need to wait a little bit more for m blobs

Quick charge is not implemented and its not planned
[Xperia Z2 Android Development] rcstar6696:
AOSP build is compatible with Xposed Framework

I have tested Xposed for Android M on my Z2 and it works no reboots and no Problems

I only test it with gravity box APP no other modules but gravity box has all i want:D

Btw Next build will have double tap to wake
[Xperia Z2 Android Development] Haldi4803:
Indeed.

Sadly CPUtemp in Statusbar app doesn't work :( but that's app related.

Now we just need a Working recovery.

View attachment 3548302

I've tried the MultiROM attached recovery. It installed fine but I can't enter recovery ^^

BTW.

ExtSDCard is strange.

Needed a reformat (as always with AOSP,

its ext4 now?

Edit: its fat32 lol), and now it shows up under /Storage/06EA-1911 in root browser. But files copied into that location work fine.
[Xperia Z2 Android Development] brouwerchris:
Be careful : At 40% battery I flashed CWM.IMG through Rashr.Black screen no reboot,no reaction on red reset button.

Fastboot recognised Z2,but on flashing boot.IMG "waiting for device"

Also Emma cannot reanimate Z2.

Phone connected to charger,race to the shop to get a Z3,for my work I need a telephone ! Come home with my new Z3, after dinner and setting up my Z3 ,just before going to bed I try to boot my Z2 again,and it just boots normal into AOSP 6.0 !!

Still without recovery!

Now I the happy owner of a Z2 and a Z3 on concept masrhmellow.

Moral of the story: be careful with installing a recovery,unless you want to end up with a new phone ;)
[Xperia Z2 Android Development] itsnie:
[MENTION=3928337]brouwerchris[/MENTION] i think your battery is 0%, because this rom have a battery issue ..

I have try v7, i charge my z2 about 3h and stuck at 81% (ampere says it charget at 160ma), i unplug n plug the charger then leave it about 10m, and then the battery got fully charger (100%), after some hours my battery level is 60%, then i decided to restore my stock rom backup, maybe after 1h my battery level down drastically, 50%-20% ..

I think my battery need to repleaced but i'm wrong, after fully charged with stock rom, my battery never down drastically ..

Sorry for stupit explanation xd
[Xperia Z2 Android Development] rcstar6696:
You run out of battery :D but yes the Rom has a battery issue but we can't find the issue

Yes i have the same issues on my devices its caused by the Rom and mit your battery
[Xperia Z2 Android Development] itsnie:
My battery is good, i can get 6h of sot withou coc xd
[Xperia Z2 Android Development] rcstar6696:
What is coc ?? And you got 6 h on stock not on aosp ?
[Xperia Z2 Android Development] itsnie:
CoC is clash of clash game sir xd

Yes 6h of sot on stock ..

Also here my ss from g+ plus from some week ago ..
[Xperia Z2 Android Development] Haldi4803:
The battery drain is real.

And its not WiFi related.
[Xperia Z2 Android Development] benjmiester:
Yeah there's something funky with 6.0 roms in general. My oneplus one was always having some random drain. There was known to be an NFC bug, you can try deleting Nfc folder (with app inside) in system > apps, reboot and see if that helps.
[Xperia Z2 Android Development] rodpgfx:
Is this taken From z3 marshmallow beta build from Sony?

Just wondering if there will be ota updates line my z3
[Xperia Z2 Android Development] rcstar6696:
No it completly based on aosp source and Sonys open device program it has nothing to do with z3 and concept Rom
[Xperia Z2 Android Development] rodpgfx:
So in order to use this I need Unlocked phone?
[Xperia Z2 Android Development] waynekirby:
[MENTION=4571604]rodpgfx[/MENTION] Yeah.
[Xperia Z2 Android Development] timoti123:
V8 is up :D what's new? I can't find a changelog :) thank you
[Xperia Z2 Android Development] VinBenzin810:
Some fixes in bluethoot

Double to wake now work

And the battery life is better now.

Rcstar666 look into next build to fix the NFC wakelooks when you turn it on and some grafic glitches
[Xperia Z2 Android Development] Shri Arun Karthikeyan:
How to reflash the rom bro???

I just want to make my phone work again.

No matter what rom is bro...Help me with repairing my phone bro [MENTION=5621191]rcstar6696[/MENTION]
[Xperia Z2 Android Development] rcstar6696:
enter recovery flash zips like i explained it on first post
[Xperia Z2 Android Development] Shri Arun Karthikeyan:
I tried getting into recovery but it doesnt go into recovery.

Seriously bro...It directly goes to logo screen... :(

Any other way...

I backed up .291 using twrp i have it my memory card...But now i can't get into recovery...I need to go into recovery somehow...Help me get into recovery
[Xperia Z2 Android Development] DiogoSilva48:
It's a pretty good ROM, thanks for keeping our z2 updated and for don't given up on us.
[Xperia Z2 Android Development] iXaidyiu:
Fastboot TWRP via adb on PC again.
[Xperia Z2 Android Development] Shri Arun Karthikeyan:
i tried. it didnt help either bro :(
[Xperia Z2 Android Development] iXaidyiu:
Restore stock ROM with full wipe using flashtool and redo the whole process again.
[Xperia Z2 Android Development] FellipeSilvaRJ:
I don't know if its related to ROM, but today I was working with multiwindows (QuickEdit and Google Docs apps), and after a period QuickEdit stop working, and the touchscreen stop working. When I reboot device is ok, and this problem don't come back, but you guys can test multiwindow to see if this problem is ROM-related or not
[Xperia Z2 Android Development] hanafi2014:
What's update in last version 9/11/2016?

Thanks
[Xperia Z2 Android Development] Shri Arun Karthikeyan:
I tried it said loader.sin error
[Xperia Z2 Android Development] iXaidyiu:
Retry.
[Xperia Z2 Android Development] Shri Arun Karthikeyan:
This time it worked:D:D:D:D:D

should I try fro first for 7.1
[Xperia Z2 Android Development] raminta:
[MENTION=5621191]rcstar6696[/MENTION] can u please add steps for d6502 on first post???
[Xperia Z2 Android Development] ceciladams85:
SIM card

I need help. I'm using D6502 and I did exactly as I should but my phone can't read the SIM
[Xperia Z2 Android Development] rcstar6696:
its the same as ever (first post) and the only thing which is needed is flashing the universal baseband patch for D6502
[Xperia Z2 Android Development] Shri Arun Karthikeyan:
Finally I got 7.1 after bothering [MENTION=5621191]rcstar6696[/MENTION], [MENTION=5862770]hamzxoxo[/MENTION] . Thank you guys.

---------- Post added at 06:25 AM ---------- Previous post was at 06:03 AM ----------

Couldn't download apps from playstore...

It keeps saying download pending...I tried restarting. Didn't help

Also root is gone. Hv to root again. How to root. [MENTION=5621191]rcstar6696[/MENTION] [MENTION=5862770]hamzxoxo[/MENTION]
[Xperia Z2 Android Development] hamzxoxo:
Flash the recovery, and then download and flash the latest supersu zip
[Xperia Z2 Android Development] filjusz:
Man, why you just cant read the whole op instructions and stop asking such a stupid questions...

Flash recovery with ADB, then download SuperSU and flash it in twrp, its easy.
[Xperia Z2 Android Development] Shri Arun Karthikeyan:
Listen big guy... I'm new to these stuff. I'm learning just now. it'll take time to get familiar with xda and smartphone internal universe. Will stop asking stupid questions gradually...

Fine.:mad:
[Xperia Z2 Android Development] filjusz:
[MENTION=6575854]Shri Arun Karthikeyan[/MENTION] You can PM me if need some help ;)
[Xperia Z2 Android Development] Shri Arun Karthikeyan:
I tried flashing the recovery through adb...It got completed but I cant get into recovery(power+vol down)
[Xperia Z2 Android Development] Hai_Duong:
http://developer.sonymobile.com/201...-devices-with-new-aosp-device-configurations/

looks promising to get a good working camera on AOSP.
[Xperia Z2 Android Development] akshay2shah:
Its saying for x, z4 and z5 series they have updated it !

I doubt its for z2 !
[Xperia Z2 Android Development] Shri Arun Karthikeyan:
Yeah me too
[Xperia Z2 Android Development] m1st3r1:
Did anybody try the new build? What's the changelog?

Btw this rom is working great. For camera apps fc try open camera. The fc will still happen, but it's more stable.
[Xperia Z2 Android Development] Shri Arun Karthikeyan:
[MENTION=5621191]rcstar6696[/MENTION]The following thread works for me in detcting simcard and the network... : http://xdaforums.com/xperia-z2/development/d6502-universal-rom-network-patch-t3312959
[Xperia Z2 Android Development] akshay2shah:
[MENTION=5621191]rcstar6696[/MENTION] - Can u please provide changelog for newest build (aosp_d6503-20161109-7.1-NDE63X-Rcstar6696-N.zip) ?

i cant see in OP !

Anyway Thanks For Newest Build :)
[Xperia Z2 Android Development] yigiitkaan:
Can anyone provide mirror link of last build to google drive
[Xperia Z2 Android Development] rcstar6696:
New N build

Changelog

- Google release 7.1_r7

- November Security patch

- new charger driver

- add Support of D6502

D6502 needs the Universal Baseband patch

http://xdaforums.com/xperia-z2/development/d6502-universal-rom-network-patch-t3312959
[Xperia Z2 Android Development] Axle Cj:
Please Fix The Camera Only
[Xperia Z2 Android Development] iXaidyiu:
The camera has been fixed, in terms of basic functionality and usability.
[Xperia Z2 Android Development] Axle Cj:
I Know That But What Im Talkin About The Camcorder And Camera Focus
[Xperia Z2 Android Development] iXaidyiu:
[MENTION=5621191]rcstar6696[/MENTION] should be on his way fixing it, so please be patient.
[Xperia Z2 Android Development] hamzxoxo:
Graphics demanding games lag, any work around?
[Xperia Z2 Android Development] FellipeSilvaRJ:
Can I flash like an update on TWRP? because I burn my RAM from desktop :D
[Xperia Z2 Android Development] akshay2shah:
He already mentioned In OP !

U can always flash an Update from recovery without any wipe ?

Happy flashing !
[Xperia Z2 Android Development] iXaidyiu:
Yes. You may process it through backing up recovery and do a update flash in TWRP then restore recovery afterwards.

P's it is stated clearly in the OP that updates can be installed directly over the previous version of the ROM, and either the patch is stated in the changelog you quoted.
[Xperia Z2 Android Development] RyTekk:
1. Read back some pages or use search tool before asking.

2. It's a known bug and dev will take a look at it when he/she is free or able to solve it.

3. Don't make these comments again, it's boring for both of you and dev, but the issue is still there.
[Xperia Z2 Android Development] RichardSauer:
System UI has stopped

Hi, i have installed Android 7.1 on my new Xperia Z2 and when i try start the system. Its start but that came "System UI has stopped". Please help me !!!

sincerly Richard:cyclops:
[Xperia Z2 Android Development] ticktock666:
[MENTION=5621191]rcstar6696[/MENTION] does "support for d6502" mean we don't need to flash the kernel separately from now on, and just do a regular flash?
[Xperia Z2 Android Development] vikash1994b:
Yes do regular install bt remember to flash universal d6502 patch to get sim network.
[Xperia Z2 Android Development] ticktock666:
Thanks buddy, i had forgotten about this since I've been on stock since i got the phone, but I'll get the patch tonight and the updated ROM
[Xperia Z2 Android Development] vikash1994b:
Nice buddy enjoy. Even in dying to try this out on my z2 bt my f**king lapotp just gave up so cant try till it gets replaired.
[Xperia Z2 Android Development] rcstar6696:
please make a clean install again this should solve it
[Xperia Z2 Android Development] RichardSauer:
I have do a clean install, its working. But without Pixel Conversion. When i have installed Pixel Conversion and try to start the phone than came System UI stopped.

sincerly Richard
[Xperia Z2 Android Development] itsnie:
Don't report bugs if you've install mods mate
[Xperia Z2 Android Development] DiogoSilva48:
Do You think that cyanogenmod team will create them ROM based on this one?
[Xperia Z2 Android Development] V4LKyR:
Can I install a custom kernel on Xperia Z2 with 7.1?
[Xperia Z2 Android Development] itsnie:
I think yes if we get stable aosp rom, it's easy to get cm rom!

Nooooooooo! Btw this rom have OC & UC for both cpu and gpu by default, you can use kernel auditor app for example to enabling that feature!
[Xperia Z2 Android Development] Jagermonsta:
hey just some positive feedback - This isn't my daily driver but just for fun I installed a few games, this latest version of the ROM is much better with 3D graphics, nice work!
[Xperia Z2 Android Development] FellipeSilvaRJ:
Thanks for the patience guys, I didn't realize that OP writted on first post :D I'm going crazy with my PC, it messed up 6GB of RAM, one 1x4GB 1600MHz and 1x2GB 800MHz

---------- Post added at 20:53 ---------- Previous post was at 20:51 ----------

@rcstar6696 can I mirror the latest build on Google Drive/OneDrive?
[Xperia Z2 Android Development] rcstar6696:
yes you can
[Xperia Z2 Android Development] V4LKyR:
Oh thank you.

I wish I could use a custom made kernel though. Is there a way to build one? Maybe I could build a kernel for myself.
[Xperia Z2 Android Development] V4LKyR:
I can't install the ROM via recovery, it gives this error:

E1001: Failed to update system image.

E: unknown command [log]

Updater process ended with ERROR: 7

Error installing zip file

Yes I followed instructions in OP, flashed boot.img and TWRP 3.0.2.0 img via fastboot before trying to install zip on recovery.

What's the problem here?

Thanks in advance.
[Xperia Z2 Android Development] FellipeSilvaRJ:
Use the recovery from MEGA folder, after flashing the ROM you can fastboot the 3.0.2-0
[Xperia Z2 Android Development] akshay2shah:
Flash this twrp recovery 3.0.0-0 from OP download folder.

https://mega.nz/#F!TRRjgICI!D4WON2JY7Lunrx7W-LSaww!uVoB0TYL
[Xperia Z2 Android Development] V4LKyR:
It worked. Thank you both. :o:good:
[Xperia Z2 Android Development] vikash1994b:
[MENTION=5621191]rcstar6696[/MENTION],

Finally flashed this on my d6502 its working good and supersmooth bt it gets little warm at the top,os it normal?
[Xperia Z2 Android Development] DiogoSilva48:
Install with twrp 3.0.0, the img file is on rcstar's folder on mega.
[Xperia Z2 Android Development] filjusz:
Yes its normal
[Xperia Z2 Android Development] 0kambiz0:
The Baseband patch link is broken showing 404 error :(