[APP][4.0.3+ & GB][XPOSED] ProtectedApps

Search This thread

defim

Senior Member
Feb 18, 2012
2,744
1,489
Extra protection for your apps

With this app you could protect app with a password, PIN or pattern. The Android lockscreen is used for that. The protection could not be removed with a simple long press on back-button, like with most other apps. You could even protect not straight startable apps eg the package-installer.
Donation: You could select a unlimited count of apps.

TouchWiz users (most Samsung devices): Please enable in settings the compat mode BEFORE reboot the device with enabled module!

Features:
All features are supported since Android 4.2. With older versions not supported options are hidden in the settings.
  • Different observation modes: First start of apps or while using it
  • Duration of unlock time configurable
  • Autmatic locking could be switched off.
  • Notification options: Always, while unlocked, never
  • Duration of unlock could be configured
  • Pre-lock slider could be disabled for app unlocking
  • Minimal and maximal time frame of unlocking configurable
Examples:
  • The device is protected by slider, protected apps with a PIN
  • The device is protected by slider and PIN+TimePIN, protected apps with pattern
Or you could use custom unlock mehtods without the keyguard:
  • Crash report
  • Knock Code
  • Pattern
  • PIN
  • Password
Recommendation:
For extreme protection select these apps:
  • Play Store (install/remove apps)
  • Xposed Installer (enable/disable modules)
  • Package-Installer (install/remove apks)
  • Settings (Android system settings)
  • ProtectedApps (configure protected apps)
WARNING: Please configure and check ProtectedApps with other apps before!

Coloring:
  • YELLOW: System app, could be started by launcher.
  • YELLOW+BLUE: System app, not straight startable.
  • BLUE: User app, not straight startable.
Donator:
  • No self-promotion in the app.
  • More than 5 apps could be selected.
  • You support this app and further development!
Permissions:
  • DEVICE_ADMIN: Lock device (required)
  • BOOT_COMPLETE: Show persistent notification (optional)
Modules reported not correct working with this app:
  • DS Battery saver
  • Lockscreen disabler

This app does not connect itself to any websites or hosts!

Important:
This app needs the Xposed Framework. The framework requires root access for installation. Don't forget to enable the module in Xposed. You can grab it here: Xposed Installer

Website: http://tinyurl.com/lfw2pdu
Play Store: http://tinyurl.com/lp4fn99
Xposed Repository: http://tinyurl.com/oxdejr9
Changelog: http://tinyurl.com/of6gvex

Why this app? Killing "protection" by long touch on back button could be optimized :)

Translation:
You could find here a interface to translate the english strings: http://tinyurl.com/okycacj
A free account of www.oneskyapp.com is required to edit. Additional, please attach your email address or send it via PM ;)
 

Attachments

  • protectedapps1.png
    protectedapps1.png
    168.7 KB · Views: 15,588
  • protectedapps2.png
    protectedapps2.png
    163.5 KB · Views: 14,534
  • protectedapps4.png
    protectedapps4.png
    201.7 KB · Views: 14,470
  • protectedapps5.png
    protectedapps5.png
    242.6 KB · Views: 14,228
  • protectedapps6.png
    protectedapps6.png
    169.1 KB · Views: 13,350
  • protectedapps7.png
    protectedapps7.png
    187.5 KB · Views: 12,699
  • protectedapps8.png
    protectedapps8.png
    164.2 KB · Views: 11,726
  • protectedapps9.png
    protectedapps9.png
    190.2 KB · Views: 11,675
  • protectedapps01.png
    protectedapps01.png
    179.6 KB · Views: 10,283
  • protectedapps02.png
    protectedapps02.png
    125.8 KB · Views: 9,796
  • protectedapps03.png
    protectedapps03.png
    117.7 KB · Views: 9,376
Last edited:

ahrion

Retired Forum Moderator / Recognized Developer
Jul 19, 2013
3,102
5,124
Bootloops galaxy s5 stock

Sent from my SM-G900T using XDA Premium 4 mobile app
 

chw9999

Senior Member
Dec 29, 2006
389
78
Bensheim
Great app :)

Even though it might compromise security, could you add an option to disable locking while in home Wi-Fi net (or BT etc)? Or add a Tasker shortcut to do so?

Thanks a lot!
 

defim

Senior Member
Feb 18, 2012
2,744
1,489
Great app :)

Even though it might compromise security, could you add an option to disable locking while in home Wi-Fi net (or BT etc)? Or add a Tasker shortcut to do so?


I think Tasker Support is better, so could many events beused. What about that: PA accept a broadcast, it contains
1) "mode" extra: protect apps, unlock forever and maybe unlock apps for the duration set in settings
2) "password" extra: In the settings could be a password defined and tasker has to add it to the broadcast. So not every app could send a broadcast.


Bootloops galaxy s5 stock
Can you attach a logcat and logfile of Xposed?


Good Job...
But have a problem , for relock app's must pulldown status bar and touch notification of your app till lock apps...
pls add options for relouck app when close app,..

That's not so easy, android does not "closes" apps, it "pauses" them. Eg if you hit HOME button while an app is open it is paused. Therefore is in the menu of PA an "exit" item.
You could get ~~ what you want if you set the oservation method to "create" and the unlocked time to it's minimum (its 30 atm)
 
  • Like
Reactions: a10fjet and chw9999

chw9999

Senior Member
Dec 29, 2006
389
78
Bensheim
I think Tasker Support is better, so could many events beused. What about that: PA accept a broadcast, it contains
1) "mode" extra: protect apps, unlock forever and maybe unlock apps for the duration set in settings
2) "password" extra: In the settings could be a password defined and tasker has to add it to the broadcast. So not every app could send a broadcast.
Wohoo, that would be cool [emoji1]

Right now i have a tasker event to lock apps when away from home, but it's not a really save option.your method should be more reliable.

Thanks again!
 

cramu

Senior Member
Mar 12, 2012
187
52
Berlin
Nice to hear that you're going to integrate with Tasker to control app protection.
Any plans to support app grouping so we can lock/unlock groups of certain apps depending on (Tasker-)context?
 

defim

Senior Member
Feb 18, 2012
2,744
1,489
Nice to hear that you're going to integrate with Tasker to control app protection.
Any plans to support app grouping so we can lock/unlock groups of certain apps depending on (Tasker-)context?

I'm not sure which way, have to thing about it. But at first some bugfixes. :)

I also got bootloop with s5. Got by any change a fix without restoring backup or reinstall rom?

Tried wipe dalvik cache and cache but no luck

You could disable whole xposed with pushing five times a hardware key during boot. After that you have to enable it again in installer! Can you get before that a logcat and attach?



Spanish translation is complete, thanks for another great module :good:

Thanks, i'll atach a translated apk late. In case you forgot: The old unlocker should still work

Does not work on my Galaxy S4 I9505 with Android 4.4.2 when selected an application is not saved in the list of selected applications.

Please check that the folder "files" was created in /data/data/de.defim.apk.protectedapps. There should be also "cache" and something with shared-preferences. There was with another app also the case the "files" was not created, this should be done by android while installing the app. If you create it by yourself, set the same user&permissions like "de.defim.apk.protectedapps" has
 

Kagoshema

Senior Member
Jul 17, 2010
129
1
bugs/suggestions
If there is no lock screen set for the phone then protected apps are impossible to open. Further if there is no lock screen set for the phone then it is also impossible to set a different locking method for protected apps and different methods that were set when the phone did have a lock screen stop working when the lock screen is removed.
So suggestion would be to make a way for your app to work even if the user has screen lock set to "None".
 
  • Like
Reactions: MindArchr

defim

Senior Member
Feb 18, 2012
2,744
1,489
bugs/suggestions
If there is no lock screen set for the phone then protected apps are impossible to open. Further if there is no lock screen set for the phone then it is also impossible to set a different locking method for protected apps and different methods that were set when the phone did have a lock screen stop working when the lock screen is removed.
So suggestion would be to make a way for your app to work even if the user has screen lock set to "None".

Thanks for reporting, i had not considered that case... Should be fixed in attached file (dont forget to reboot, the app reminds only if version code changed)

@badkill: Also translation included
 

Attachments

  • ProtectedApps.apk
    264.7 KB · Views: 29
  • Like
Reactions: badkill

Kagoshema

Senior Member
Jul 17, 2010
129
1
Thanks for reporting, i had not considered that case... Should be fixed in attached file (dont forget to reboot, the app reminds only if version code changed)

@badkill: Also translation included

Nice quick fix. I'll give it a test.

Tested:
Looks good. Minor detail; in settings under "method to unlock apps" if "Don't change" is selected then the checkbox "Use a custom patter/PIN/password" does nothing. I'll probably play around more but you've got my donation.

Also: in settings what is the difference between the "time after which a new unlocking is requested"(self explanatory) and "minimal/maximal duration of unlocking"?
 
Last edited:

Lord_Flaya

Senior Member
Jun 1, 2012
558
121
38
Tomelilla
Really nice mod. Is it possible to evolve it so that you can have protection for selected operations on the device? Demand pin for deleting SMS or whatever the user choose to protect..?

Sent from my A9500 using XDA Premium 4 mobile app
 

Top Liked Posts

  • There are no posts matching your filters.
  • 40
    Extra protection for your apps

    With this app you could protect app with a password, PIN or pattern. The Android lockscreen is used for that. The protection could not be removed with a simple long press on back-button, like with most other apps. You could even protect not straight startable apps eg the package-installer.
    Donation: You could select a unlimited count of apps.

    TouchWiz users (most Samsung devices): Please enable in settings the compat mode BEFORE reboot the device with enabled module!

    Features:
    All features are supported since Android 4.2. With older versions not supported options are hidden in the settings.
    • Different observation modes: First start of apps or while using it
    • Duration of unlock time configurable
    • Autmatic locking could be switched off.
    • Notification options: Always, while unlocked, never
    • Duration of unlock could be configured
    • Pre-lock slider could be disabled for app unlocking
    • Minimal and maximal time frame of unlocking configurable
    Examples:
    • The device is protected by slider, protected apps with a PIN
    • The device is protected by slider and PIN+TimePIN, protected apps with pattern
    Or you could use custom unlock mehtods without the keyguard:
    • Crash report
    • Knock Code
    • Pattern
    • PIN
    • Password
    Recommendation:
    For extreme protection select these apps:
    • Play Store (install/remove apps)
    • Xposed Installer (enable/disable modules)
    • Package-Installer (install/remove apks)
    • Settings (Android system settings)
    • ProtectedApps (configure protected apps)
    WARNING: Please configure and check ProtectedApps with other apps before!

    Coloring:
    • YELLOW: System app, could be started by launcher.
    • YELLOW+BLUE: System app, not straight startable.
    • BLUE: User app, not straight startable.
    Donator:
    • No self-promotion in the app.
    • More than 5 apps could be selected.
    • You support this app and further development!
    Permissions:
    • DEVICE_ADMIN: Lock device (required)
    • BOOT_COMPLETE: Show persistent notification (optional)
    Modules reported not correct working with this app:
    • DS Battery saver
    • Lockscreen disabler

    This app does not connect itself to any websites or hosts!

    Important:
    This app needs the Xposed Framework. The framework requires root access for installation. Don't forget to enable the module in Xposed. You can grab it here: Xposed Installer

    Website: http://tinyurl.com/lfw2pdu
    Play Store: http://tinyurl.com/lp4fn99
    Xposed Repository: http://tinyurl.com/oxdejr9
    Changelog: http://tinyurl.com/of6gvex

    Why this app? Killing "protection" by long touch on back button could be optimized :)

    Translation:
    You could find here a interface to translate the english strings: http://tinyurl.com/okycacj
    A free account of www.oneskyapp.com is required to edit. Additional, please attach your email address or send it via PM ;)
    3
    11/08/2014 10:11:34 UTC
    Loading Xposed v54 (for Zygote)...
    Running ROM 'ALEXNDR.N9005XXUFNF4 Light By Rayman95' with fingerprint 'samsung/hltexx/hlte:4.4.2/KOT49H/N9005XXUFNF4:user/release-keys'
    Loading modules from /data/app/hk.valenta.completeactionplus-2.apk
    Loading class hk.valenta.completeactionplus.XCompleteActionPlus
    Loading modules from /data/app/com.vikas.toaststyler-3.apk
    Loading class com.vikas.toaststyler.XposedMod
    Loading modules from /data/app/mobi.xperiacle.xposed.s5powersave-1.apk
    Loading class mobi.xperiacle.xposed.s5powersave.XMod
    Hardware: qcom
    Product: hltexx
    Device manufacturer: samsung
    Device brand: samsung
    Device model: SM-N9005
    Android SDK: 19
    Android Release: 4.4.2
    ROM: ALEXNDR.N9005XXUFNF4 Light By Rayman95
    Loading modules from /data/app/com.droidmate.rcleaner-2.apk
    Loading class com.droidmate.rcleaner.BoostMod
    Loading modules from /data/app/com.pyler.disablesignaturecheck-1.apk
    Loading class com.pyler.disablesignaturecheck.XInstaller
    Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-2.apk
    Loading class de.robv.android.xposed.mods.appsettings.XposedMod
    Loading modules from /data/app/com.germainz.crappalinks-2.apk
    Loading class com.germainz.crappalinks.CrappaLinks
    Loading modules from /data/app/sh.jay.xposed.whatsapp-2.apk
    Loading class sh.jay.xposed.whatsapp.RemoveActionShortcuts
    Loading class sh.jay.xposed.whatsapp.FixBackToContacts
    Loading modules from /data/app/com.oasisfeng.greenify-2.apk
    Loading class com.oasisfeng.greenify.pro.FrameworkPatch
    Loading class com.oasisfeng.greenify.pro.SettingsPatch
    Loading modules from /data/app/com.serajr.blurred.system.ui-2.apk
    Loading class com.serajr.blurred.system.ui.Xposed
    Loading modules from /data/app/ma.wanam.xposed-2.apk
    Loading class ma.wanam.xposed.Xposed
    Loading modules from /data/app/com.germainz.activityforcenewtask-1.apk
    Loading class com.germainz.activityforcenewtask.XposedMod
    Loading modules from /data/app/com.germainz.yourtube-3.apk
    Loading class com.germainz.yourtube.XposedMod
    Loading modules from /data/app/ma.wanam.youtubeadaway-2.apk
    Loading class ma.wanam.youtubeadaway.Xposed
    Loading modules from /data/app/de.defim.apk.protectedapps-1.apk
    Loading class de.defim.apk.protectedapps.Xposed
    [ProtectedApps] initialized
    Loading class de.defim.apk.protectedapps.Xcheck
    Loading modules from /data/app/de.bbukowski.notifcount-3.apk
    Loading class de.bbukowski.notifcount.XposedMod
    Loading modules from /data/app/com.ceco.kitkat.gravitybox-3.apk
    Loading class com.ceco.kitkat.gravitybox.GravityBox
    GB:Hardware: qcom
    GB:product: hltexx
    GB:Device manufacturer: samsung
    GB:Device brand: samsung
    GB:Device model: SM-N9005
    GB:Device type: phone
    GB:Is MTK device: false
    GB:Is Xperia device: false
    GB:Is Moto XT device: false
    GB:Has Lenovo custom UI: false
    GB:Has telephony support: true
    GB:Has Gemini support: false
    GB:Android SDK: 19
    GB:Android Release: 4.4.2
    GB:ROM: ALEXNDR.N9005XXUFNF4 Light By Rayman95
    java.lang.NoSuchMethodError: com.android.server.power.DisplayPowerController#requestPowerState(com.android.server.power.DisplayPowerRequest,boolean)#exact
    at de.robv.android.xposed.XposedHelpers.findMethodExact(XposedHelpers.java:179)
    at de.robv.android.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:129)
    at com.ceco.kitkat.gravitybox.ModDisplay.initZygote(ModDisplay.java:363)
    at com.ceco.kitkat.gravitybox.GravityBox.initZygote(GravityBox.java:66)
    at de.robv.android.xposed.XposedBridge.loadModule(XposedBridge.java:437)
    at de.robv.android.xposed.XposedBridge.loadModules(XposedBridge.java:386)
    at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:120)
    at dalvik.system.NativeStart.main(Native Method)
    java.lang.NoSuchMethodError: com.android.internal.telephony.gsm.GsmServiceStateTracker#isOperatorConsideredNonRoaming(android.telephony.ServiceState)#exact
    at de.robv.android.xposed.XposedHelpers.findMethodExact(XposedHelpers.java:179)
    at de.robv.android.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:129)
    at com.ceco.kitkat.gravitybox.ModTelephony.initZygote(ModTelephony.java:75)
    at com.ceco.kitkat.gravitybox.GravityBox.initZygote(GravityBox.java:74)
    at de.robv.android.xposed.XposedBridge.loadModule(XposedBridge.java:437)
    at de.robv.android.xposed.XposedBridge.loadModules(XposedBridge.java:386)
    at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:120)
    at dalvik.system.NativeStart.main(Native Method)
    Loading modules from /data/app/tw.fatminmin.xposed.networkspeedindicator-2.apk
    Loading class tw.fatminmin.xposed.networkspeedindicator.Module


    Note 3 bootloop :(
    2
    waited along for this... Awesome...!!!
    I hope you like it, it's the way i think its easy to protect apps

    @badkill @pesiran @RBDoMGaM @supergonkas @pugsang @undaclazz
    Maybe you want translate it
    2
    Hi defim,

    Two things.. A couple of your apps get mentioned in this video "Top Xposed Framework modules" by Kevin the TechNinja - http://youtu.be/olxLfJojjIo

    The other thing is, have you considered adding the ability to protect a folder. I'm not even sure if that's possible or not.

    Thanks
    2
    Great app :)

    Even though it might compromise security, could you add an option to disable locking while in home Wi-Fi net (or BT etc)? Or add a Tasker shortcut to do so?


    I think Tasker Support is better, so could many events beused. What about that: PA accept a broadcast, it contains
    1) "mode" extra: protect apps, unlock forever and maybe unlock apps for the duration set in settings
    2) "password" extra: In the settings could be a password defined and tasker has to add it to the broadcast. So not every app could send a broadcast.


    Bootloops galaxy s5 stock
    Can you attach a logcat and logfile of Xposed?


    Good Job...
    But have a problem , for relock app's must pulldown status bar and touch notification of your app till lock apps...
    pls add options for relouck app when close app,..

    That's not so easy, android does not "closes" apps, it "pauses" them. Eg if you hit HOME button while an app is open it is paused. Therefore is in the menu of PA an "exit" item.
    You could get ~~ what you want if you set the oservation method to "create" and the unlocked time to it's minimum (its 30 atm)