[ROM] [7.1.1] [AOSP] [PURE NEXUS] Xperia Z2 Tablet [SGP511, SGP512, SGP521]

Status
Not open for further replies.

rcstar6696

Senior Member
Dec 21, 2013
2,468
8,469
0
Kassel (Hessen)


INFORMATION,

First AOSP NOUGAT based builds for Xperia Z2 Tablet.

Disclaimer
We are not responsible for anything that may happen to your device . We ask that you do your part to know your device and know how to recover from problems before you flash!

BUGS
1. Camera Foucs unclear & Dark camera.

All other seems to Work for now.
Please let me know if you find more Bugs!!!


INSTRUCTIONS

Download Rom, Recovery & Gapps First & Unlock Bootloader
1. Download ROM Castor SGP521 (LTE)
--Download ROM Castor-Windy SGP511, SGP512 (WIFI)
2. Download OPENGAPPS
3. Flash the Boot from ROM via fastboot (fastboot flash boot pathTo/boot.img)
4. Flash TWRP Recovery 3.0.0-0 via fastboot too (fastboot flash recovery pathTo/recovery.img)
5. Boot into Recovery by using VOLUME UP when Sony logo comes up with pink notification light.
6. Wipe SYSTEM, DATA, DALVIK, CACHE from recovery.
--- 6.1 If you Update the ROM skip 3,4 & 6.
7. Flash the Rom zip and Open Gapps zip from Recovery.
8. Reboot.

(Optional)
9. Root Direct Download
10. Flash SU zip via recovery.
11. Reboot.


Changelogs :

Build 18/02/2017
- New blobs from sony
- Call Echo Fixed
- Camera crash fixed
- Latest security patch

Build 09/11/2016
- Google release 7.1_r7
- November Security patch
- new charger driver

Build 31/10/2016
-Camera fix (half green is gone)
-Nfc is fixed
-Update interactive gov
-Fix charging bug
-Unify sound Implementation
-Rework panel Implementation

Build 21/10/2016
-Android 7.1.0_r4 release
-Some camera commits
-Removed fm radio (causes deep sleep problems)
-Night display enabled



Sceenshots :







FAQ :

Q- Can i install it on locked bootloader?
A- No.

Q- Which gapps should be used?
A- OpenGapps arm 7.1 Full

Q- How to install this rom?
A- Read first post.

Q- Is camera working?
A-See the bugs listed above.

Q- Something* is not working.
A-Report bugs on github or here when it is not listed above.

Q-Battery draining quickly.
A-There is miscellaneous battery drain.Else no issue with battery.


CREDITS
AOSP/Google
Sonys Open Device Program



Sources
Google
Device Tree (Castor Windy-WIFI)
Device Tree (Castor-LTE)
Kernel tree
Vendor Tree

XDA:DevDB Information
Android Open Source Project [Nougat], ROM for the Sony Xperia Z2 Tablet

Contributors
rcstar6696, akshay2shah
ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.10.x
ROM Firmware Required: Unlocked Bootloader
Based On: AOSP

Version Information
Status: Alpha

Created 2015-10-29
Last Updated 2017-04-11
 
Last edited:

rcstar6696

Senior Member
Dec 21, 2013
2,468
8,469
0
Kassel (Hessen)
Recovery Installation

Recovery is only available if your build is v21 or newer!

1. Download the Recovery Image from Mega folder of your device (Recovery Folder)
(Castor=LTE and Castor-windy= Wifi only)
2. Reboot your device to bootloader
3. connect your device with your pc
4.Use fastboot to flash recovery with this commando:
Fastboot flash recovery PATH TO RECOVERY FILE
(Don't forget to press enter :D)
5. Unplug device
6. Turn on device
7. if the device reaches sony logo the notification Led turns on (pink)
8. press volume up while led is pink (led changes colour to orange if you press correctly)
9. Device should show Recovery now



Enjoy AOSP on Z2 Tablet :D
 
Last edited:

PVL_93_RU

Senior Member
Apr 20, 2012
3,244
547
258
27
Moscow
O-oh, nice! What a treat to try on my tablet

So, a couple of questions prior to installation

1) Right now I have an Android 5.1.1 stock pre-rooted firmware. If I install this - does it overwrite the recovery in the process or does it only touch the system and the kernel partitions? I wouldn't want to lose my XZDualRecovery setup with TWRP

2) by Video not working - do you mean the recording or playing a video? I.E. does it affect apps like Twitch and YouTube video playback?
 

rcstar6696

Senior Member
Dec 21, 2013
2,468
8,469
0
Kassel (Hessen)
O-oh, nice! What a treat to try on my tablet

So, a couple of questions prior to installation

1) Right now I have an Android 5.1.1 stock pre-rooted firmware. If I install this - does it overwrite the recovery in the process or does it only touch the system and the kernel partitions? I wouldn't want to lose my XZDualRecovery setup with TWRP

2) by Video not working - do you mean the recording or playing a video? I.E. does it affect apps like Twitch and YouTube video playback?
1) first you need to unlock your boot loader but anyway you will lose xz dual recovery. Recovery will be overwritten and a complete New kernel is needed ( Linux kernel 3.1). The boot.img from aosp build includes this.

2) Sorry i mean video playback, but if you play Videos with MX player or vlc it will work correct if not you will have confuesed colours

Video recording will not work due the camera.
 

PVL_93_RU

Senior Member
Apr 20, 2012
3,244
547
258
27
Moscow
Hmm, okay. So I should be able to get TWRP back via NUT's kernel builder on his website

Another question - you said that optionally I can use the boot.img you linked in the Optional section (instead of the one that comes with the ROM) - does that mean that the ROM-included boot.img does not allow the device to be rooted? (due to SELinux, I suppose)
 

rcstar6696

Senior Member
Dec 21, 2013
2,468
8,469
0
Kassel (Hessen)
Hmm, okay. So I should be able to get TWRP back via NUT's kernel builder on his website

Another question - you said that optionally I can use the boot.img you linked in the Optional section (instead of the one that comes with the ROM) - does that mean that the ROM-included boot.img does not allow the device to be rooted? (due to SELinux, I suppose)
This could be possible that it work with his kernel builder i haven't test it

Edit: Kernel build with nuts builder is successfull but you won't have recovery. I tested it

Don't use the optinal boot.img. your device will not Boot.The first image is an old Boot.img Form kit kat which has recovery included. First flash the first image than Boot to recovery than flash Boot.img from rom again
No the kernel supports root but the Problem is that you don't have a recovery. You need it to flash super su.
 
Last edited:
  • Like
Reactions: PVL_93_RU

PVL_93_RU

Senior Member
Apr 20, 2012
3,244
547
258
27
Moscow
hey @rcstar6696, Installed the ROM just a few moments ago. Enjoying it so far! Some feedback:

1) The installation went through very smoothly, like I have a Nexus device :p
The "Flash ROM -> flash KK kernel -> Flash SuperuSU -> Flash MM kernel" went okay as well, no issues, just a little extra step to gain root until we have XZDR for Android 6.0

2) The ROM booted up SUPER FAST for the first time. Sony's firmware usually takes at least 2-3 minutes to boot up fully from a shutdown state, while this ROM booted up in less than like 30 seconds. Very refreshing to see such short booting times!

3) The backup restoration process seemed to not have gone through fully. Only about half of the apps I had were restored. Not really much of an issue, just a personal observation
Also after confirming what apps I wanted to restore, the setup wizard stayed at the "Please wait..." screen, so I had to manually quit to the homescreen via the Home button. Seems like a bug to me? Or maybe it's the built-in GAPPS that's the issue (haven't tried flashing a GAPS package manually though)

4) The system seems to not recognize my SIM-card for some reason. It just tells me "No SIM card installed", which is weird considering that the ROM is for the LTE version. Tried turning on and off the Airplane mode to reset the modem - no result. Tried rebooting the device - also n result.
Maybe try to look at Sony's official binaries for Tab Z2? http://developer.sonymobile.com/downloads/tool/software-binaries-for-aosp-m-android-6-0/

5) Like you said, the video playback is all green/purple artifacted. Wonder if it's the drivers/libraries issue, as I have a Marshmallow based ROM on my Nexus 4 and it doesn't seem to have such issues. Too bad, but hopefully this can be fixed in the future builds! (as I often watch YouTube videos). Any app that uses it's own internal player seems to work fine, though, such as Twitch

6) The multiwindow... kinda works. If you have two apps side by side - seems to function well. Anything beyond that - turns the screen into a mess. Dunno if it's because of the ROM itself or because of the feature, but at least it's kinda available here. Besides, can't really complain about an unfinished feature
Also, the Play Store app looks pretty awful using the Multiwindow, maybe it's not adapted accordingly by Google

7) The sound in this ROM is SUPER LOUD. It's nowhere near this level of volume on the stock ROM. I dunno if the audio balancing is wrong here or if it's supposed to be this way, but it's definitely at least twice as loud as official Sony's 5.1.1 firmware

8) Merging the SD card with the internal storage of the tablet went fine, and I seemed to have no issues transferring the data

9) Minor things:
- The "About this tablet" screen still says "Sony Xperia Z2 Tablet WiFi" despite flashing the ROM on the LTE version
- The text in Bluetooth screen when it's off seems to be aligned to the left, looks weird

10) The SuperSU works fine, apps have no issues requesting permissions nor does SuperSU have any issues granting said permissions to the apps on its own

And I that's it. If anything else surfaces - I'll let you know
 
  • Like
Reactions: Gormsen

rcstar6696

Senior Member
Dec 21, 2013
2,468
8,469
0
Kassel (Hessen)
hey @rcstar6696, Installed the ROM just a few moments ago. Enjoying it so far! Some feedback:

1) The installation went through very smoothly, like I have a Nexus device :p
The "Flash ROM -> flash KK kernel -> Flash SuperuSU -> Flash MM kernel" went okay as well, no issues, just a little extra step to gain root until we have XZDR for Android 6.0

2) The ROM booted up SUPER FAST for the first time. Sony's firmware usually takes at least 2-3 minutes to boot up fully from a shutdown state, while this ROM booted up in less than like 30 seconds. Very refreshing to see such short booting times!

3) The backup restoration process seemed to not have gone through fully. Only about half of the apps I had were restored. Not really much of an issue, just a personal observation
Also after confirming what apps I wanted to restore, the setup wizard stayed at the "Please wait..." screen, so I had to manually quit to the homescreen via the Home button. Seems like a bug to me? Or maybe it's the built-in GAPPS that's the issue (haven't tried flashing a GAPS package manually though)

4) The system seems to not recognize my SIM-card for some reason. It just tells me "No SIM card installed", which is weird considering that the ROM is for the LTE version. Tried turning on and off the Airplane mode to reset the modem - no result. Tried rebooting the device - also n result.
Maybe try to look at Sony's official binaries for Tab Z2? http://developer.sonymobile.com/downloads/tool/software-binaries-for-aosp-m-android-6-0/

5) Like you said, the video playback is all green/purple artifacted. Wonder if it's the drivers/libraries issue, as I have a Marshmallow based ROM on my Nexus 4 and it doesn't seem to have such issues. Too bad, but hopefully this can be fixed in the future builds! (as I often watch YouTube videos). Any app that uses it's own internal player seems to work fine, though, such as Twitch

6) The multiwindow... kinda works. If you have two apps side by side - seems to function well. Anything beyond that - turns the screen into a mess. Dunno if it's because of the ROM itself or because of the feature, but at least it's kinda available here. Besides, can't really complain about an unfinished feature
Also, the Play Store app looks pretty awful using the Multiwindow, maybe it's not adapted accordingly by Google

7) The sound in this ROM is SUPER LOUD. It's nowhere near this level of volume on the stock ROM. I dunno if the audio balancing is wrong here or if it's supposed to be this way, but it's definitely at least twice as loud as official Sony's 5.1.1 firmware

8) Merging the SD card with the internal storage of the tablet went fine, and I seemed to have no issues transferring the data

9) Minor things:
- The "About this tablet" screen still says "Sony Xperia Z2 Tablet WiFi" despite flashing the ROM on the LTE version
- The text in Bluetooth screen when it's off seems to be aligned to the left, looks weird

10) The SuperSU works fine, apps have no issues requesting permissions nor does SuperSU have any issues granting said permissions to the apps on its own

And I that's it. If anything else surfaces - I'll let you know
1) at the moment we we don't have a change for working recovery i tested some more things

2) same here :good:

3) i have no problem while restoring aps via ti only the google apps i can't restore all other work

4) my fault i forgot to add the castor link sorry i will do it in 5 min than your sim will work but you need to configure your apns by yourself

5) i think this is a driver issue we had the same **** on aosp l and we use the same driver

6) multiwindow is buggy but its not a full feature of android m its only for testing

7) ok never tested it on full loud
8) yes sdcard is a little bit confuesd now due the new encripton from google

9) sorry you need to flash system and boot.img again but the correct one than all will be good i will add the link
Btw v3 is uploading at the moment

The bluetooth text is not our fault this is from google
 

helfrez

Senior Member
Apr 14, 2007
237
80
0
Small Update
fixes some small Sensor bugs but the Lightsensor is not fixed :crying:

It should be up in the next half an hour
Excellent, pulling now, will report anything interesting found. Is there anything in particular you want battle tested?

NOTE: Mega is pretty slow atm, so it may take awhile..160k over vpn on a 350Mb connection. AFH for future updates maybe? 2hr download to get the 1.2gb file. If not maybe consider zipping up the sparse image files to cut the upload/download times.
 
Last edited:

dnnz

Senior Member
Jan 7, 2013
107
22
0
Do you think this can work on a z3 tablet? according to gsmarena they have kind of the same specs: same resolution, same cpu (MSM8974AB), 3gb ram, even the cameras (8.1 and 2.2mpx)
 

rcstar6696

Senior Member
Dec 21, 2013
2,468
8,469
0
Kassel (Hessen)
Lightsensor fix

Link to flashable zip https://mega.nz/#!LdBzHaQC!uiZIrU-eoI3Lriczk_em2vCXNNZVQ-tX17kcw5F7LWQ

This package includes older sensor moduls and some files but this will fix light sensor
Next build will include the patch but for now use the fix.

Installation is like super su or root

Flash old kernel
Reboot to recovery
Flash lightsensor fix.zip
Reboot to bootloader
Flash M-Kernel ( boot.im)
Reboot and enjoy
 
Status
Not open for further replies.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone