FORUMS

[Android 10.0] AOSP for Xperia XZ2 [2019.10.01]

401 posts
Thanks Meter: 498
 
By Sjll, Recognized Developer on 24th September 2019, 06:00 AM
Post Reply Email Thread
AOSP 10.0 For XZ2

Based on Sony Open Devices

I am not responsible for bricked devices, dead SD cards.

Special Thanks: @local__hero
请中文用户遵守XDA规则,使用双语留言
For English Users
Required files:

Kernel 4.9
:
Code:
Read me at first
SODP will support AOSP 10.0 officially on kernel 4.14. 
This build is based on kernel 4.9(The same as Pie).
kernel-4.9-based: Download Link With: )SW_binaries_for_Xperia_Android_9.0_2.3.2_v9_tama.i mg

How to flash:
You must flash full package before flashing Update
Code:
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash dtbo dtbo.img
fastboot flash vendor vendor.img
fastboot flash vbmeta vbmeta.img
fastboot flash oem <PATH of OEM>
fastboot erase userdata
How to flash Gapps
1. Flash AOSP 9.0 by Martin X3. Never boot after flashing it.
2. Flash TWRP for SODP 9.0 by Martin X3.
Code:
fastboot flash boot TWRP.img
3. Power on and boot into TWRP.
4. Copy System.img, vendor.img, boot.img into phone. Flash them to their partitions.
5. Reboot to fastboot.
6. Flash vbmeta.img and dtbo.img
Don't forget to flash oem file.

Update and known BUG:
Flash Full-V20191001 before flashing this update.
Update-V20191001:
Update
1. Hotspot fixed.
Bug
1. Camera lag.

Full-V20191001:
Update
1. USB fixed.
2. Go back to HMP.
3. Audio fixed.
4. Upgrade to Android 10.0.0 R3.
Bug
1. Hotspot is broken.
2. Camera lag.

Update-V20190924:
Flash Full-V20190923 before flashing this update.
Update
1. EAS support, performance improve.
2. PreRoot boot.img.
Bug
1. Audio.
2. Hotspot is broken.
3. Camera lag.

Full-V20190923:
Bug
1. USB is broken.
2. Hotspot is broken.
3. Camera lag.

-----------------------------------------------------U--U------------------------------------------------------------------------------
中文教程
所需文件如下:

基于4.9内核的版本
:
Code:
请详阅:
SODP 会在4.14内核上支持Android 10.0,这是一个基于4.9内核,使用和9.0相同驱动的体验版本
基于4.9内核的刷机包 下载地址 搭配后面这个版本的OEM文件使用SW_binaries_for_Xperia_Android_9.0_2.3.2_v9_tama.i mg

怎么刷机:Fastboot模式下根据下面的命令刷入
刷Update升级包之前必须刷入前一个最近的Full包
Code:
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash dtbo dtbo.img
fastboot flash vendor vendor.img
fastboot flash vbmeta vbmeta.img
fastboot flash oem <PATH of OEM>
fastboot erase userdata
谷歌套件: 自己找10.0能用的,找到了这样刷:
1. 刷马丁AOSP 9.0,不要启动。
2. 将马丁为SODP 9.0 制作的Twrp刷入Boot分区。
3. 开机启动进入Twrp。
4. 拷贝10.0的System.img,boot.img,vendor.img进入内置储存,然后刷入对应 分区。
5. 刷Gapps和Magisk。
6. 关机进入fastboot模式,刷dtbo以及vbmeta文件。
别忘了OEM文件

已知问题和修复内容:
看英文的,这都看不懂了快回去找你们英语老师补习。
--------------------------------------------------------------------U-U----------------------------------------------------------------

XDA:DevDB Information
Treble, ROM for the Sony Xperia XZ2

Source Codes
Link
Contributors
Sjll
ROM OS Version: 10.0
ROM Kernel: Linux 4.x

Paypal
I am very happy to receive your donation.
国内用户可以通过附件的支付宝捐助我

Version Information
Status: Testing

Created 2019-09-24
Last Updated 2019-10-01
Attached Thumbnails
Click image for larger version

Name:	1.jpg
Views:	2606
Size:	124.9 KB
ID:	4826107   Click image for larger version

Name:	_20191003_151948.jpg
Views:	1950
Size:	124.8 KB
ID:	4834325  
The Following 2 Users Say Thank You to Sjll For This Useful Post: [ View ]
24th September 2019, 10:28 AM |#2  
Senior Member
Thanks Meter: 63
 
More
Hi

Are gapps baked in? I had trouble booting twrp and would like to have a build with gapps build in if possible, so I can directly flash to my device

Best regards
24th September 2019, 10:57 AM |#3  
Member
Thanks Meter: 11
 
More
good job,but any bug?
24th September 2019, 03:21 PM |#4  
OP Recognized Developer
Flag Chongqing
Thanks Meter: 498
 
More
Quote:
Originally Posted by NoMercyWWE

Hi

Are gapps baked in? I had trouble booting twrp and would like to have a build with gapps build in if possible, so I can directly flash to my device

Best regards

No gapps included. Twrp doesn't works.

Quote:
Originally Posted by tainhao

good job,but any bug?

Speaker audio quality is not good.
25th September 2019, 01:57 AM |#5  
Haldi4803's Avatar
Senior Member
Thanks Meter: 1,572
 
More
Now i'm really enticed to unlock Bootloader ^^

But if TWRP doesn't work and you can't install GAPPS that kinda sucks.

Would it theoretically be possible to manually modify system.img and inject gapps? or is that signed ?
25th September 2019, 02:19 AM |#6  
OP Recognized Developer
Flag Chongqing
Thanks Meter: 498
 
More
Quote:
Originally Posted by Haldi4803

Now i'm really enticed to unlock Bootloader ^^

But if TWRP doesn't work and you can't install GAPPS that kinda sucks.

Would it theoretically be possible to manually modify system.img and inject gapps? or is that signed ?

You could wait for the TWRP for 10.0 or use com.excean.gspace

-------------------------------------------------Update------------------------

Update the way to flash Gapps.
@Haldi4803 @NoMercyWWE
-------------------------------------------------Update------------------------
I made some mistake.
26th September 2019, 08:04 AM |#7  
Junior Member
Thanks Meter: 0
 
More
just finished the flash, but when this phone connected to my laptop there was no link mode pumped out or on the navigation bar, and I didn't find anything that can help me link the phone.

---------- Post added at 07:04 AM ---------- Previous post was at 06:54 AM ----------

Quote:
Originally Posted by monshoal

just finished the flash, but when this phone connected to my laptop there was no link mode pumped out or on the navigation bar, and I didn't find anything that can help me link the phone.

sorry, it's the USB's fault. so far no problem encountered
27th September 2019, 05:46 PM |#8  
Junior Member
Thanks Meter: 0
 
More
Wonder if the 4.14kernel based build is stable
and does camera and TF slot work properly?

(总之就是4.14的能不能用捏,4.9以前装着bug略多,毕竟刷一次太费时间了,不稳就等养肥)
28th September 2019, 04:05 AM |#9  
Member
Thanks Meter: 17
 
More
The Kernel v4.14 already got rooted or not ?
4.14内核版是否已root?

Does GCam work on AOSP v10 ?
谷歌相机能用吗?
1st October 2019, 12:55 PM |#10  
OP Recognized Developer
Flag Chongqing
Thanks Meter: 498
 
More
Quote:
Originally Posted by monshoal

just finished the flash, but when this phone connected to my laptop there was no link mode pumped out or on the navigation bar, and I didn't find anything that can help me link the phone.

---------- Post added at 07:04 AM ---------- Previous post was at 06:54 AM ----------



sorry, it's the USB's fault. so far no problem encountered

USB fixed.

Quote:
Originally Posted by asz_kt

Wonder if the 4.14kernel based build is stable
and does camera and TF slot work properly?

(总之就是4.14的能不能用捏,4.9以前装着bug略多,毕竟刷一次太费时间了,不稳就等养肥)

Quote:
Originally Posted by MDLB

The Kernel v4.14 already got rooted or not ?
4.14内核版是否已root?

Does GCam work on AOSP v10 ?
谷歌相机能用吗?

Kernel 4.9 version is almost stable. 4.14 version is still working in progress.
You can use Magisk app to build a prerooted kernel.
Gcam works on AOSP, but you need to choose a suitable edition.

4.9内核的版本基本上没啥问题了,等twrp 10刷Gapps,不然你就用谷歌空间。4.14还要继续等,现在只能启动到adb,卡Sony,后续基本 上会修复。
Root用Magisk app就能够做一个预先root过的boot.img,然后刷一下就好。
Gcam一直可用,不过你需要找一个适合Android 10的版本,不然会闪退。
6th October 2019, 05:46 PM |#11  
Junior Member
Thanks Meter: 0
 
More
Is there a schedule for the 4.14kernel version? or is there a bug list?
Camera lagging is just unbearable and i guess it comes with the 4.9kernel?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes