Upcoming maintenance
Dear Customers and Partners.
This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.
This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.
We apologize for any inconvenience.
Trying to flash Gapps on Sony Xperia 10 III AOSP android 12
-
Hello everyone,
I have a Sony Xperia 10 III open device and I have build an AOSP android 12 and flashed the build to the phone which has booted successfully.
Since the AOSP is not having any google apps prebuilt, I tried flashing the Gapps through ADB sideload by downloading the .zip file of the Gappa from NikGapps, BiTGapps etc.
While trying to flash the .zip file from the ADB in recovery mode, the flashing was not successful and the following error occured:E : Failed to find META-INF/com/android/metadata E : Failed to parse metadata in the zip file.
It was found that the directory tree of the downloaded .zip file was
META-INF/com/google/android/metadata, but the search was done in the tree mentioned in the first error.
I pulled the 'android' directory outside the 'google' directory. After this change, there is a signature verification error that aroseE: footer is wrong E: Signature verification failed E: error: 21
Since the recovery is stock, there is no option to disable signature verification. I am also unable to flash third party recoveries like TWRP and ClockWorkMod on Sony Xperia 10 III.
Is there any other method where we can flash Gapps to Sony Xperia 10 III?
Kindly reply. -
@anerudh-e Further details for the same query above is mentioned below for reference:
Work Objectives:
- Run a customized Android image on Sony Xperia 10 III
- Use customized Google services and other apps on Xperia 10 III Android 12
version - Implement peripheral dependent control over services.
- Test the implementation on the apps.
Work update on on Xperia 10 III & flashing Gapps
- The AOSP android 12L was built from Sony developer’s website for Xperia 10
III. - The build was done for the environment ‘xqbt52’ and the compiled system images
booted the device successfully. - AOSP had only the basic apps like the camera, phone etc.
- The Gapps.zip file was downloaded from providers and attempted to be flashed
using ADB. - The flashing was attempted using the recovery mode,
$ adb reboot recovery
- Gapps are available as packages of .zip files provided by OpenGapps, NikGapps,
etc. - The .zip file can be downloaded from these providers depending on the google
apps requirements. - Gapps support and availability was not present for the android 12L version in the
SONY version of the Android code base. - Therefore, new build for android 12-userdebug was done and was flashed to the
device.
Issues while flashing Gapps:
- The NikGapps-stock-arm64-12-signed.zip file was downloaded from
https://nikgapps.com
The ‘Apply update from ADB’ option in the stock recovery was selected for flashing the
Gapps.zip file with the command,
$ adb sideload <filename.zip>
Error: E: Failed to find META-INF/com/android/metadata E: Failed to parse metadata in the zip file
- The zip file was unzipped and the directory tree was checked.
- META-INF/com/android/metadata was not present.
- The branch is META-INF/com/google/android/
- To test, the ‘android’ directory was brought outside the ‘google’ directory
alongside it.
The new directory branch is is META-INF/com/android/ wherein the ‘android’ was the
directory present inside the ‘google’ directory. - The sideload was repeated which resulted in the error:
E: footer is wrong E: Signature verification failed E: error: 21
- The same errors occurred for the zip files downloaded from many such
providers like MindTheGapps, BitTGapps etc.
All of them did not have the metadata in the android directory. - The stock recovery does not have the signature verification disable feature.
- Third party recoveries like TWRP and ClockWorkMod were attempted, but had
no support for Xperia 10 III. - Few custom built recovery images that was mentioned for Xperia 10 III were
downloaded from Git and flashed but the device did not boot. - The APK of google play services were installed in the device but did not function normally which said 'Error with google play services'.
- The .zip file was copied to an SD card and the option ‘Apply update from SD
Card’ was selected in recovery which resulted in the same error.
Request for details from SONY team
- Successful addition of customized packages to the build
- Procedure for signing the customized images for it to be accepted as
part of OS image to be loaded - Can Secure boot be used?