Closed DarrenMiddleton closed 3 years ago
Thanks for this report. Yes, this needs to be fixed in the library.
In the meantime you can make it in your app work by adding entries to your app’s manifest to correct this like this:
<service android:name="org.altbeacon.beacon.service.ScanJob” android:exported="false" tools:replace="exported" />
<service android:name="org.altbeacon.bluetooth.BluetoothTestJob” android:exported="false" tools:replace="exported" />
you will need to add the tools namespace to your manifest tag at the top of your file:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" … >
Fixed in #1033
Please try with 2.19-beta2 (available on Maven central) which has the fix for this problem and report back if you still see the issue.
Please try with 2.19-beta2 (available on Maven central) which has the fix for this problem and report back if you still see the issue.
Thank you for responding.
I tried again with version 2.19-beta2
, but they don't work:
Installation failed due to: 'Failed to commit install session 1551719400 with command cmd package install-commit XXXXX. Error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/XXXXX.tmp/base.apk (at Binary XML file line #449): org.altbeacon.beacon.startup.StartupBroadcastReceiver: Targeting S+ (version 10000 and above) requires that an explicit value for android:exported be defined when intent filters are present'
Looks like exported
value has not been added in AndroidManifest.xml
file:
Please let me know if I missed something. Thank you.
I went to upgrade my app to work for Android 12 and got the error listed below.
android Manifest merger failed : Apps targeting Android 12 and higher are required to specify an explicit value for android:exported
Ref: https://developer.android.com/about/versions/12/behavior-changes-12#security
I looked at what Android manifest was causing this issue and saw the code below.
These two services are not within an activity that has the exported tag and they don't have the exported tag themselves which is required for Android 12.