1. Welcome to NoFap! We have disabled new forum accounts from being registered for the time being. In the meantime, you can join our weekly accountability groups.
    Dismiss Notice

Android Device Policy Control (DPC)

Discussion in 'Rebooting - Porn Addiction Recovery' started by sinner76, Mar 8, 2021.

  1. levi989

    levi989 New Fapstronaut

    3
    3
    3
    Good night, i´m with a little problem could you help me? when i try to set device owner this happens
     

    Attached Files:

    • pmo.png
      pmo.png
      File size:
      118.3 KB
      Views:
      45
    xXsinnerXx likes this.
  2. sinner76

    sinner76 Fapstronaut

    780
    1,003
    93
    Hey,
    that's because you didn't remove all accounts from your phone. You need to remove the accounts first, then after you set it as device owner, you add your accounts again.
     
    Mostly harmless likes this.
  3. gabriel_sw1

    gabriel_sw1 Fapstronaut

    17
    29
    13
    I'll leave a tip for those who own xiaomi smartphones. When activating USB Debugging, also activate USB Debugging (Security Mode) and installations via usb. The command that makes TestDPC a Device Owner only worked when I did this.
     
    xXsinnerXx likes this.
  4. sinner76

    sinner76 Fapstronaut

    780
    1,003
    93
    Thanks for the info!
     
  5. urzeja

    urzeja New Fapstronaut

    1
    0
    1
    First of all: thank you for spreading the word about TestDPC. It's a great strategy and I have been using it.

    Something I couldn't do though was the following:

    block System WebView if you use want to use a restricted browser without workarounds

    Can anyone tell me what should I do inside TestDPC to achieve it?

    I have a Samsung Galaxy M31.
     
  6. sinner76

    sinner76 Fapstronaut

    780
    1,003
    93
    All what you have to do is to block this app: Android System Webview using test DPC.
    [​IMG]
     
  7. Infidel.48

    Infidel.48 Distinguished Fapstronaut

    667
    1,132
    123
    Why does it create two profiles ? One for work and one for home. Is there a superquick youtube tutorial ?
    I think I should be using an older version .
     
    Last edited: Apr 27, 2021
  8. sinner76

    sinner76 Fapstronaut

    780
    1,003
    93
    Just forget about "Set up Test DPC" app, you don't need that and delete that work profile, it's useless. Just follow the steps to make Test DPC device owner.
     
  9. FBA

    FBA New Fapstronaut

    2
    1
    3
    Please, can you teach me how to use the DNS thing?
    Here it says that I have to have API level 29
     

    Attached Files:

  10. FBA

    FBA New Fapstronaut

    2
    1
    3
    how to prevent force stop??
     
    Wildcongorat likes this.
  11. go to user restrictions and disallow app control
     
  12. iLikeToEatRice

    iLikeToEatRice Fapstronaut

    5
    1
    3
    Hey, I'd like to suggest to review this app called "BlockerHero." The free version is good but the premium version is I think the best out there. Way better than competitors. It's also waaaaaaaay cheaper and there's a one-time payment. It even allows you to block recent apps, even prevent you from turning your phone off and blocks "ultra battery saver." If however you managed to find a loophole, just email the developer and they'll quickly fix the issue. You can even suggest improvements and they'll implement it fairly quick! I haven't managed to find a cracked version yet but here it is. Ooh blocker.png
     
  13. FantasticReport

    FantasticReport Fapstronaut

    49
    308
    53
    I'm trying it on MIUI 13 (Xiaomi) and it seems that it doesn't have effect. I still can force stop apps.
    @gabriel_sw1 does that work on your Xiaomi?
     
  14. gogibasket

    gogibasket Fapstronaut

    294
    180
    43
    I have also Xiaomi note 7 and miui 12 update has a ultra battery saver and it kills all background apps and blockers
     
  15. FantasticReport

    FantasticReport Fapstronaut

    49
    308
    53
    The ultra battery saver is inside the native Security app, so you should lock the Security app. It should be locked anyway, because... (I will mention other breaches)

    it has other breaches, like dual apps, and the apps manager. From the apps manager you can kill basically anything, even if you disallow app control in Android Device Policy Management.

    I use Lockmeout to lock the Security app and the Android Configs. It's working fine.

    The method that I use in MIUI 13:
    • in private DNS, set one that filters p, like CleanBrowsing
    • using Android Device Policy Management: lock things like installation and uninstallation permissions, changes in time, etc. Also disallow changes in VPN and Private DNS
    • In Lockmeout:
      • give it all the permissions
      • set a password and save it in the Pluckeye Lockbox (or other method that you like)
      • Create a Schedule lockout blocking Security app, Test DPC, and Android Configs. Block other apps as you want. I set the Lockout Time to be 24/7. There is an option to lock only on certain locations, which is pretty cool. If necessary, you can unlock the lockout using the password.

    About Lock Me Out: it's the fourth app mentioned in the Android thread. Play Store doesn't show it for Xiaomi models. Some years ago, I emailed the creator of the app, and he explained to me that Xiaomi users were giving low ratings, because it could be easily killed. So, he decided to remove it for Xiaomi users. So, if you have a Xiaomi phone, you need to get the apk in another site, like Apkpure. It works the same, and the app is free.
     
    Last edited: Apr 24, 2022
    sinner76 likes this.
  16. FantasticReport

    FantasticReport Fapstronaut

    49
    308
    53
    After some tests, my conclusion is:

    Basically, forget about LockMeOut, and go with the native Security app. The Security app is very powerful, because it's native. So:
    • in private DNS, set one that filters p, like CleanBrowsing
    • using Android Device Policy Management: lock things like installation and uninstallation permissions, changes in time, etc. Also disallow changes in VPN and Private DNS
    • In the native Security app
      • set a password and save it in the Pluckeye Lockbox (or other method that you like). Don't forget to disable the fingerprint unlock.
      • Lock Test DPC. I think it's enough, but you can also lock other things like the Configs, Play Store, Chrome and apps like that.
     
    10HansTI likes this.
  17. imakemoneyyeah

    imakemoneyyeah Fapstronaut

    19
    8
    3
    How do you block installation of apps without blocking updates of installed apps ?
     
  18. 10HansTI

    10HansTI New Fapstronaut
    NoFap Defender

    2
    3
    3
    I finally found an effective way to lockdown my Android Phone with a modified version of Test DPC (which asks to set the password before opening the app)

    For users like myself who always look for sneaky ways around VPNs and can turn off the device admin apps like Truple Porn Filter / Blocker or App Lockers (disable draw over apps);
    this is the most bulletproof Android option I have found.


    I got this Test DPC file from someone online who was working on a fork from Github (not sure if he's part of the NoFap Community but his name is Michael)
    https://github.com/googlesamples/android-testdpc/issues/131
    https://github.com/routerdieb - github user profile

    Pre-requisites
    - Need a Cleanbrowsing Pro 50 subscription
    - Android Phone with Android 11 or higher software
    - Allow android phone to install unknown apps
    - Android ADB / usb debugging enabled
    - A backup usb to secure the Test DPC password


    1 - Install The Custom Test DPC Apk File (which has password lock enabled)

    I have uploaded this Test DPC file to my google drive, if you have any issues downloading / installing please PM me
    https://drive.google.com/file/d/1YP0bwrHglYz2gpIRzYoriAqm73ZJezXY/view?usp=share_link

    2 - Setup Test DPC as Device Owner (using adb)

    plug your phone into you PC / Mac and configure a new profile for Test DPC
    dpm set-device-owner com.afwsamples.testdpc/.DeviceAdminReceiver

    make sure you have removed all other accounts from your android phone


    3 - Open The Test DPC App (should be called Applock DPC) + Copy Password

    remember to copy / paste the password and put it somewhere (it gives you a random password, so remember this code!)
    disable uninstall apps in Test DPC
    disable configure dns option

    4 - Copy Your Custom DNS From The Cleanbrowsing Portal

    Under network settings you should see something like this
    DNS over TLS (DoT): customd4bcaaa123.dot.cleanbrowsing.org

    copy and paste the dns url into your private dns setting
    set the DNS config in Test DPC


    Your phone should now be unable to use any VPNs, Porn, Adult sites etc that Cleanbrowsing blocks
    You will be unable to disable your Android DNS settings either because its locked :)


    Hope this guide helps some Android users, I know its definitely helped me out


    cc: sinner76.354636
     
    Last edited: Nov 4, 2022
    sinner76 likes this.
  19. Augustine_

    Augustine_ Fapstronaut

    60
    62
    18
    Thank you for sharing the Test DPC app. I'm now using it to disable access to settings and Google Play, while also suspending YouTube and Chrome.

    I'm using it now in combination with Boomerang - which I'm using to block access to Test DPC itself as well as to prevent multi window switching. In my experience most blocker apps can be bypassed by using multi window switching and then disabling the usage data access permission in settings.

    I'm not entirely comfortable with Boomerang as it is closed source and has so much access to my phone. If Boomerang was hacked then I would have virtually zero security on my phone. I would like to get rid of Boomerang entirely and just use a modified version of Test DPC with a password or timer. Unfortunately I can't find the one @10HansTI mentioned on GitHub. Test DPC is ideal for me because it's a large and popular open source project created by the Android developers.

    I'm not comfortable using Handoff for similar reason. It is closed-source, it's a niche product for a niche audience, and the company name itself is somewhat occult (Single Eye Software).
     
    skorpioho likes this.
  20. sinner76

    sinner76 Fapstronaut

    780
    1,003
    93
    10HanstI uploaded it to google drive, the link is in the comment just above yours.

    I think you're being over skeptical. I am personally using Handoff and it is the best. The app never connects to the internet except for logging in to u.pluckeye.net. It is up to you if you don't trust the developers enough.
     

Share This Page