javaandroidandroid-intenthomescreenlockscreen

Understanding custom lock implementation on Android via home screen replacement technique


I've been researching about this question a lot. I asked a related question this week.The most helpful and relevant links in the area are this and this. I want to understand how it works and all, if implemented as home screen replacement app.

Quick questions:

What exactly does this mean? I don't quite understand the logic here. Please help?


Solution

    1. If you implemented a home screen replacement app, your app should be set as the default launcher/home screen.

    2. setComponentEnabledSetting() allows you to override the intent filters in the manifest and essentially disable them. It sounds like he overrode the filter for the launcher intent after the user unlocked so he could get the default home screen to show up.

    That being said, I don't recommend writing a lock screen replacement, there are too many issues, it's hacky and insecure. Focus on lock screen widgets.