Were you able to solve this problem? I have the same issue with AOSP 13 on 
Pixel 6 and WhatsApp (and some other apps)

On Thursday, 25 August 2022 at 00:49:26 UTC+3 Mikko Koivisto wrote:

> I’m trying to include WhatsApp.apk to the image of Cuttlefish virtual 
> device. The rule looks like this:
> android_app_import {
> name: "WhatsApp",
> apk: "WhatsApp.apk",
> presigned: true,
> product_specific: true,
> dex_preopt: {
>   enabled: false,
> },
> }
>
> However, when doing the device build (lunch 
> aosp_cf_x86_64_phone-userdebug) the signature changes:
> mikko_koivisto@cf-dev-mikko:~/aosp/out$ apksigner verify -v 
> target/product/vsoc_x86_64/product/app/WhatsApp/WhatsApp.apk
> DOES NOT VERIFY
> ERROR: JAR signer WHATSAPP.DSA: JAR signature META-INF/WHATSAPP.SF 
> indicates the APK is signed using APK Signature Scheme v2 but no such 
> signature was found. Signature stripped?
>
> The app in the original location shows:
> mikko_koivisto@cf-dev-mikko:~/aosp$ apksigner verify -v 
> device/google/cuttlefish/guest/prebuilts/WhatsApp.apk
> Verifies
> Verified using v1 scheme (JAR signing): true
> Verified using v2 scheme (APK Signature Scheme v2): true
> Verified using v3 scheme (APK Signature Scheme v3): false
> Verified using v3.1 scheme (APK Signature Scheme v3.1): false
> Verified using v4 scheme (APK Signature Scheme v4): false
> Verified for SourceStamp: false
> Number of signers: 1
>
> Missing signature makes PackageManager to reject the app included in the 
> image and it won't be visible in launcher.
> I believe the behavior has changed in aosp master during last couple of 
> weeks. The behavior is also apk-dependent since some apks (with similar 
> android_app_import parameters) build just fine.
> Best Regards,
> Mikko
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/4e0dcb1c-3790-4776-af5c-2794a21e4daan%40googlegroups.com.

Reply via email to