@anerudh-e Further details for the same query above is mentioned below for reference:
Run a customized Android image on Sony Xperia 10 III
Use customized Google services and other apps on Xperia 10 III Android 12
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
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
The flashing was attempted using the recovery mode,
$ adb reboot recovery
Gapps are available as packages of .zip files provided by OpenGapps, NikGapps,
The .zip file can be downloaded from these providers depending on the google
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
Issues while flashing Gapps:
The NikGapps-stock-arm64-12-signed.zip file was downloaded from
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>
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
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?