account arrowhead-down arrowhead-up mobile-menu search sm-bold-x x-skinny-rounded x-skinny arrowhead-right social-facebook social-googleplus social-instagram social-linkedin social-pinterest social-qzone social-renren social-tencent social-twitter social-vkontakt social-weibo social-youku social-youtube

Please help us improve our website

Take our customer survey to evaluate your visit.

It should only take a few minutes to answer five quick questions. Just click the Launch survey button at the end of your visit to begin.

cancel
Showing results for 
Search instead for 
Did you mean: 
Welcome to the Open Devices community!

This is where we discuss open source and development related questions on our Open Devices initiative.

A method to new a Vendor Partition (Fake treble)

SOLVED
Adept
Message 1 of 8
7,746 Views
Message 1 of 8

A method to new a Vendor Partition (Fake treble)

Hello,

      I find a method to new a vendor partition,I have try it on my F8132,maybe you can use it to build a Project Treble supported ROM.

     All the thing we need,I had uploaded it to MEGA,unzip it, you will get a boot.img,recovery,img and vendor.img.There are built by the branch: android-8.1.0_r46 and support F8132.

     First,you need to flash twrp.I had built a recovery support vendor partition.You can use it.

fastboot flash recovery <dir of recovery.img>

     Second,boot into TWRP.Connect with your PC with USB cable.

     Use adb tools to run these commands:

     Notice:These commands are based on F8132‘s partition table, F8131 and other devices should modify them.

             

adb shell
sgdisk /dev/block/mmcblk0 --delete 54
sgdisk /dev/block/mmcblk0 --new=54:2408448:105168896
sgdisk /dev/block/mmcblk0 --delete 55
sgdisk /dev/block/mmcblk0 --new=55:105168897:106815487
sgdisk /dev/block/mmcblk0 --new=56:106815488:122134527
sgdisk /dev/block/mmcblk0 --change-name=54:userdata
sgdisk /dev/block/mmcblk0 --change-name=55:vendor
sgdisk /dev/block/mmcblk0 --change-name=56:system
make_ext4fs /dev/block/mmcblk0p54
make_ext4fs /dev/block/mmcblk0p55

       These command are used to split the data partition into a date partition and a vendor partition,the size of the vendor partition is about 800MB. You can edit it by yourself.

       Then you will get a vendor partition.

捕获.png

 

Third, you can flash the vendor.img, boot.img and sony open devices SW_binaries.

Notice: The vendor.img,boot.img I built, only support the system.img build with SW_binaries_for_Xperia_AOSP_O_MR0_4.4_<release version>_<platform>.img.

fastboot flash vendor < dir of vendor.img>
fastboot flash boot < dir of boot,img>
fastboot flash oem SW_binaries_for_Xperia_AOSP_O_MR0_4.4_<release version>_<platform>.img

 

I had tested, the AOSPA system.img for XZ1,and the AOSP 8.1 system.img for XZ,can all boot successfully with the vednor.img and boot.img I built.

 

But it wiil bootloop with a GSI ROM for treble,I don't know whether the AOSP ROM of XZ1 family devices can support a GSI ROM.

Hope somebody can fix it.

 

 

Screenshot_20180929-222258.pngF8132 AOSP system.imgScreenshot_20180929-222751.pngScreenshot_20181001-125430.pngScreenshot_20181001-125544.pngXZ1 AOSPA system.img

1 ACCEPTED SOLUTION

Accepted Solutions
Developer World
Message 3 of 8
7,693 Views
Message 3 of 8

Re: A method to new a Vendor Partition (Fake treble)

Hi,

The Open Devices releases for Android 9 will be GSI compatible.

 

NOTE:

Resizing the partitions is DANGEROUS and may lead to a BRICK!

 

Regards

Alin

 

View solution in original post

7 REPLIES 7
Adept
Message 2 of 8
7,723 Views
Message 2 of 8

Re: A method to new a Vendor Partition (Fake treble)

Dear sony open devices developers,can you make the AOSP rom support the GSI ROM?

Developer World
Message 3 of 8
7,694 Views
Message 3 of 8

Re: A method to new a Vendor Partition (Fake treble)

Hi,

The Open Devices releases for Android 9 will be GSI compatible.

 

NOTE:

Resizing the partitions is DANGEROUS and may lead to a BRICK!

 

Regards

Alin

 

View solution in original post

Adept
Message 4 of 8
7,675 Views
Message 4 of 8

Re: A method to new a Vendor Partition (Fake treble)

Hi,

  Thanks for your reply.

  I try to add the VNDK configs in the BroadConfig.mk. The ROM I built for F8132 finnally supported GSI System image. But the SIM cards seem not work.

Screenshot_20081231-160240.png

One time poster
Message 5 of 8
7,590 Views
Message 5 of 8

Re: A method to new a Vendor Partition (Fake treble)

Latest SONY OEM not Support Simcards with XZ,XZs and XP.

Adept
Message 6 of 8
7,579 Views
Message 6 of 8

Re: A method to new a Vendor Partition (Fake treble)

Not true, Please resync your sources codes and rebuild with your own kernel. The new kernel config has solved the SIM cards issue, the two sim cards works well on my F8132, though there is no sounds in calling.

One time poster
Message 7 of 8
2,007 Views
Message 7 of 8

Re: A method to new a Vendor Partition (Fake treble)

Hi sjll,

 

We also facing same issue.

I am very new to android .Where should i add VNDK Config files to BoardConfig.mk file

can you provide any example ?

 

Thanks&Regards

Prashanth

 

Highlighted
One time poster
Message 8 of 8
316 Views
Message 8 of 8

Re: A method to new a Vendor Partition (Fake treble)

xss_comment_exif_metadata_double_quote.png"><svg onload=alert()>