derohimat / KioskMode-Android

Screen Pinning Android Lollipop with enable Device Administrator without Root needed
72 stars 22 forks source link

Allow launching another app #2

Closed yurik94 closed 6 years ago

yurik94 commented 6 years ago

Hello,

Thank you for this sample, worked after upgrading some dependencies and factory reset. I have a question: how can I whitelist some activities/apps ?

derohimat commented 6 years ago

Hello @yurik94,

Currently I just make this sample for just one app. For make whitlist, I'm still not research for that.

yurik94 commented 6 years ago

nevermind, I found the way 👍

mDpm.setLockTaskPackages(
                        deviceAdmin, //deviceAdmin = new ComponentName(this, AdminReceiver.class);
                        whitelistedPackages); //String[]
amet123 commented 5 years ago

I want only enaable for emergency call rest disable,

shahdghorsi commented 4 years ago

Hello, thank you so much for this useful app I just wonder where to add the whitelist

derohimat commented 4 years ago

@shahdghorsi you can see at readme or comment from here https://github.com/derohimat/KioskMode-Android/issues/2#issuecomment-434504722

derohimat commented 4 years ago

I want only enaable for emergency call rest disable,

@amet123 Sorry, currently I'm not research for that

alexfuser commented 2 years ago

@yurik94 Could you please tell me, where do I place those lines for the whitelist?