dimanche 12 juillet 2020

How to restrict launching activities from command line

Currently i have added android:exported="false" in the application manifest file to restrict access to exported activities. Using this solution i have tested on Device(Android 8) and android studio emulator(Android 10) and tried launching activity using adb shell am start -n from command line. This solution worked fine and was giving permission denied error, this solution only failed when i runned the app on emulator(Android 5.1.1)

The problem : I took the same apk and tested on genymotion emulator(Android 9) and tried launching activity from command line. This time it didnt give any error and intent was launched to activity

please give solution in fixing this.

Currently I'm reading this Improper Export of Android Application Components

Aucun commentaire:

Enregistrer un commentaire