• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[Android 10.0] AOSP for Xperia XZ2 [2019.10.01]

Search This thread

Sjll

Recognized Developer
Jun 4, 2017
521
613
Chongqing
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.img

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.img

怎么刷机: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
 

Attachments

  • 1.jpg
    1.jpg
    124.9 KB · Views: 2,615
  • _20191003_151948.jpg
    _20191003_151948.jpg
    124.8 KB · Views: 1,960
Last edited:

NoMercyWWE

Senior Member
May 29, 2009
648
60
35
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
 

Haldi4803

Senior Member
Oct 14, 2010
3,896
1,577
Amazon Fire HD 8 and HD 10
Xperia XZ2
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 ?
 

Sjll

Recognized Developer
Jun 4, 2017
521
613
Chongqing
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.
 
Last edited:

monshoal

Member
Sep 10, 2018
16
0
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 ----------

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
 

asz_kt

Member
Oct 30, 2018
26
0
Wonder if the 4.14kernel based build is stable
and does camera and TF slot work properly?

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

MDLB

Senior Member
Apr 15, 2019
64
17
The Kernel v4.14 already got rooted or not ?
4.14内核版是否已root?

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

Sjll

Recognized Developer
Jun 4, 2017
521
613
Chongqing
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.

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

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

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的版本,不然会闪退。
 

asz_kt

Member
Oct 30, 2018
26
0
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?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    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.img

    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.img

    怎么刷机: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