I have an Android app and it has 3 activities; A, G and B. When the app starts users see Activity A. If user wants to navigate to activity B, app starts activity G and asks for a password. If the password is true user is directed to Activity B, if not back to activity A. None of the activities are exported. Problem is on rooted devices a user can start activity B from command line using
am start -n package.name/package.name.B
command. How can I prevent this?