question

jdcunha avatar image
jdcunha asked jdcunha commented

Clover Remote Pay Android SDK issue when app targets Android 12

Hello,

My semi-integrated Android POS targets Android API level 31 (Android 12) and pulls in the Clover Remote Pay Android SDK via Gradle. When trying to install on an Android 12 device, the installation fails citing the following exception:

android.content.pm.PackageParser$PackageParserException: /data/app/vmdl1438200283.tmp/base.apk (at Binary XML file line #145): com.clover.remote.client.transport.usb.pos.PosUsbBroadcastReceiver: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present

I think Clover needs to update the manifest file in the Remote Pay Android SDK to conform to the following: https://developer.android.com/about/versions/12/behavior-changes-12#exported. I looked at the manifest file in the Github repo and it appears to be missing exported="true" on some items where it is necessary as per the linked documentation.

semi-integrations
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

mikebrooking avatar image
mikebrooking answered jdcunha commented

Thanks for the heads up. We'll review these changes and address in a future update.

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jdcunha avatar image jdcunha commented ·
Hi Mike,

Is there a timeline for this update? We are hoping to implement Android 12 support for our app and this issue is preventing that.

0 Likes 0 ·
mikebrooking avatar image
mikebrooking answered jdcunha commented

Can you please try with our latest version, 4.3.5 ?

2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jdcunha avatar image jdcunha commented ·

Just tried with 4.3.5 and still getting the same error described in my original post. I am looking at the manifest file here and am still seeing that it is missing the exported attribute on a couple nodes.

0 Likes 0 ·
jdcunha avatar image jdcunha commented ·
Can I get an update on this please? Android 13 is now out and this issue is really holding back our app.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community