zxing-android-embedded icon indicating copy to clipboard operation
zxing-android-embedded copied to clipboard

Targeting sdk version 31 require <activity> declare android:exported

Open robert0ng opened this issue 3 years ago • 1 comments

Description of the problem:

I've found in merged AndroidManifest.xml there is a activity which we can't add android:exported=false to it. This will cause app can't be installed. Is there anyway we can modify this?

<activity
            android:name="com.journeyapps.barcodescanner.CaptureActivity"
            android:clearTaskOnLaunch="true"
            android:screenOrientation="sensorLandscape"
            android:stateNotNeeded="true"
            android:theme="@style/zxing_CaptureTheme"
            android:windowSoftInputMode="stateAlwaysHidden" />

Which library version are you using? E.g. 3.2.0.

4.3.0

Which phone/tablet are you using, and which Android version does it run? (e.g. Samsung Galaxy S5, Android 5.0)

Pixel 4a

Does the same happen on other devices or an emulator?

Yes

robert0ng avatar Aug 12 '22 00:08 robert0ng

Same problem here! https://github.com/journeyapps/zxing-android-embedded/pull/680

crazyserver avatar Aug 23 '22 10:08 crazyserver