SubhamTyagi / AppLock

AppLock: A agile App Lock for android
Apache License 2.0
109 stars 44 forks source link

App doesn't work on Android 10 #59

Open alittlebitofit opened 3 years ago

alittlebitofit commented 3 years ago

I tried toggling on-off multiple times, it did not lock the apps.

alittlebitofit commented 3 years ago

it seems to be working only "sometimes".

the ones i have chosen to lock, automatically get toggled off.

also, the app icon is the default android icon.

alittlebitofit commented 3 years ago

it gets activated too late.

i have locked the "Settings" app using AppLock, but when I uninstall any app, it doesn't lock that "Uninstallation" service.

nonetrix commented 3 years ago

Doesn't work at all for me

alittlebitofit commented 3 years ago

yea it only works like occasionally

aureliensoria commented 3 years ago

Hello, I have the same issue. The lock screen appears from time to time when launching a locked application on Android 10, but not always. And sometime with a delay.

nonetrix commented 3 years ago

pretty sure this project is dead I would advice someone to fork it if they care tbh

SubhamTyagi commented 3 years ago

pretty sure this project is dead I would advice someone to fork it if they care tbh

Yeah this project is dead 😢

This is the exact problem introduced by Google https://developer.android.com/guide/components/activities/background-starts

There are lots of problem(high maintenance, privacy concern, higher battery usage) in porting to some other working hacky way . This app also inherited some complexity from upstream code so it is very hard for me maintenance these codes(due to less free time). I had also tried to fixed these bug but all are in vein, didn't test them (due to no free time), and fixs are also incomplete(you can check them in 'dev' branch), and android restriction discouraged 😞 me to put my time in this app.

it seems that this fork has some new dirty commits.

ayoub-chabchoub commented 3 years ago

Hello, I used Display over others apps permission to solve this problem, as it mentionned here: https://developer.android.com/reference/android/Manifest.permission.html#SYSTEM_ALERT_WINDOW I used this piece of code to allow this permission: if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) { if (!Settings.canDrawOverlays(this)) { Intent intent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION, Uri.parse("package:" + getPackageName())); startActivityForResult(intent, ACTION_MANAGE_OVERLAY_PERMISSION_REQUEST_CODE); } }