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. sinner76

    sinner76 Fapstronaut

    780
    1,001
    93
    Handoff is an app that uses device owner permissions to enforce enterprise-grade restrictions. It is a fork from Test DPC app that you could find on the Play Store or github.

    Here is a list of some useful settings to use in Handoff

    You can protect all of Handoff settings using a password or a delay. This is not present in Test DPC app.
    • Block uninstallation of select apps
    • Prevent force stopping apps or clearing their data.
    • block installation of play store apps, third party apps and APKs
    • enforce private DNS settings (CleanBrowsing)
    • block Android System WebView app (This will block all in-app browsers but could make a few apps buggy)
    • block VPN usage
    • disable ADB debugging and developer settings
    • prevent factory resetting of device
    • prevent multi user support and new user creation
    • disallow safe mode
    • Suspend apps: You won't be able to open the app, works like an app lock.
    • Hide apps: The app will be completely non functional and hidden from your phone.

    Steps Summary:
    1-Download Handoff:
    https://play.google.com/store/apps/details?id=app.plucky.dpc&hl=en&gl=US

    Handoff device owner permissions need to be enabled for it to start working. One way to do it is through wiping your phone but we won't do that. We will use ADB instead which requires your phone to be connected to your PC via a USB cable. Setting up an app as device owner requires that you have no accounts on your device. From your phone Settings, open Accounts and remove all accounts even Facebook and reddit accounts.
    (Remember that the only other way to do it involves wiping your device, so this is a more gentle way. Don't worry, you can add your accounts again after you finish.

    2-Set up Handoff as Device Owner
    First of all you need to know how to execute adb commands on your phone. You could find a few ways here:
    https://forum.nofap.com/index.php?threads/adb.305532/

    Then after you download Handoff from the play store, make sure that you have removed all accounts from your phone settings even facebook, reddit, whatsapp and your Google account.
    After you have removed the accounts, run those adb commands
    Code:
    adb shell
    Code:
    dpm set-device-owner app.plucky.dpc/.PluckyDAR
    You should get this output:
    Success: Device owner set to package ComponentInfo{app.plucky.dpc/app.plucky.dpc.PluckyDAR}
    Active admin set to component {app.plucky.dpc/app.plucky.dpc.PluckyDAR}

    If instead you get something that starts with…
    java.lang.IllegalStateException: Not allowed to set the device owner....

    This means that there are still active accounts on your device. Some apps auto add accounts like whatsapp, so wait for those accounts to appear again and execute the adb commands immediately after you remove them. If you still fail, you might have to factory reset your device from settings then enter the commands before installing apps or adding accounts.
    3-In handoff, make sure advanced mode is enabled to be able to access all options. You could enable it by clicking on the settings button. You could add a delay or password protect handoff settings.

    Other alternatives to Handoff:
    -Test DPC:
    This is the parent of Handoff. However, you can't lock Test DPC settings except by using a third party app lock or by using the built-in app lock present in some phones. You also can't disable most system apps including system webivew and vpndialogs.

    There are still some services which are meant to be used by enterprises that are completely FREE up to 100 devices. If you're curious, you could check them out:
    -Manageengine (free up to 25 devices):
    https://www.manageengine.com/mobile-device-management/free-mobile-device-management-software.html
    -Esper (free up to 100 devices):
    https://esper.io/pricing/
    -Itarian (free up to 50 devices):
    https://www.itarian.com/

    -Thanks to KingHolly from Cleanbrowsing Forums
     
    Last edited: Jan 10, 2023
    A22, stopper, ThisIsHard97 and 6 others like this.
  2. sinner76

    sinner76 Fapstronaut

    780
    1,001
    93
  3. sinner76

    sinner76 Fapstronaut

    780
    1,001
    93
  4. Awesome! Great work @xXsinnerXx . I think for now Android could be rid of p0rn completely... is it not?
     
    xXsinnerXx likes this.
  5. sinner76

    sinner76 Fapstronaut

    780
    1,001
    93
    I hope so, @Mostly harmless! Seems you could do a lot of stuff using this app even more than what family link is capable of. There are LOTS of policies to change for Chrome alone. I remember you asked about that a few months ago. As you see, Test DPC has a great potential but still needs some testing so we could make our own recipes.
     
    Last edited: Mar 10, 2021
    Mostly harmless likes this.
  6. Hope it can disable usage access settings ..........
    Hey.... your [TUT] is a little famous from google search engine... You've added this link in other forums right ? Hope this thread becomes known to other users so that they don't waste time.. Hope this app can do magic.
     
    xXsinnerXx and Mauritius like this.
  7. sinner76

    sinner76 Fapstronaut

    780
    1,001
    93
    Only on YBR, maybe I'll post it on other forums after we make sure Android filters are effective.
    I hope so. Still under testing.
     
  8. gabriel_sw1

    gabriel_sw1 Fapstronaut

    17
    29
    13
    As soon as I saw this post I decided to test the Test Dpc on my Xiaomi Redmi Note 5 (miui 11) to be able to block the security mode, developer mode and stuff. My intention was to test on android and then on my chromebook. However, the configuration worked, but these options are still blocked with the warning "not a admin", "Requires device owner" or "requires primary user", even with Test Dpc as a positive administrator and the app itself shows a message on the first sentence when opening the "This app is a profile owner" app.

    I'm trying to solve it, but if you have the same problem or have a solution, let's work on it!
     
    xXsinnerXx and Mostly harmless like this.
  9. Hey,
    I tried testDPC and felt it was complex so didn't bother... How does it work exaclty. It creates other profile and you can set changes to that profile only... Other previously installed apps can be easily accessed.... Some rules weren't available to configure...
    Please try it out and post it in the thread...
    I think @xXsinnerXx is trying iOS supervision currently.
     
    xXsinnerXx likes this.
  10. sinner76

    sinner76 Fapstronaut

    780
    1,001
    93
    .
     
    Last edited: Apr 27, 2021
  11. sinner76

    sinner76 Fapstronaut

    780
    1,001
    93
    That's what happened when I created a profile without setting it as device owner. It's weird the same happened with you even when it's device owner.
    You're right!
     
  12. IMPORTANT..... Test DPC is the best..... Family Link can be used for accountability only... Edit the thread ASAP... With only family link I could reset phone and go through Safe Mode and unlock device.... I couldn't do that in Test DPC. Test DPC is Awesome!! Easier to set up than Family Link
     
    xXsinnerXx likes this.
  13. You have to remove all existing accounts in your Android Phone and install Test DPC. Use minimal ADB and Fastboot to make it a device owner.. Then go through the app.... All features will be unlocked with higher API. If you have the latest Android then all the features will be available to you
    Unfortunately there was nothing I could do about usage access settings... TestDPC uses that and the internet was of no help.. Cunts... they want to waste your time and attention.
     
    Last edited by a moderator: Mar 18, 2021
    xXsinnerXx and gabriel_sw1 like this.
  14. gabriel_sw1

    gabriel_sw1 Fapstronaut

    17
    29
    13
    This information is extremely important for the evolution of blocking methods. As you said, Google family link doesn’t block safe mode, at least not that I know of.

    I will try to follow the steps you said and I believe it will work on my Xiaomi, but the big question is whether it would work on Chromebooks. I will try to test, but I will probably have to enter Chromebook developer mode and consequently delete all my records to try to use Test Dpc. If not, I will try to migrate to windows
     
    xXsinnerXx and Mostly harmless like this.
  15. BorikTign

    BorikTign New Fapstronaut

    2
    2
    3
  16. Actually it does..
    Please find a way to block p0rn in chromebooks too. If you can post it here @xXsinnerXx can update the thread and would help someone out there. Please try it out and post it here...
    Thanks
     
    xXsinnerXx and gabriel_sw1 like this.
  17. sinner76

    sinner76 Fapstronaut

    780
    1,001
    93
    What? How did you reset your phone with family link on??? The only way that I know is by .... okay, mentioning it here is not a good idea. Let's discuss that privately.
    I think there might be a way to block certain activities in the settings app but I can’t test it at the moment
    I think it does. It blocks safe mode.
    Finally!
     
    Last edited: Mar 18, 2021
  18. sinner76

    sinner76 Fapstronaut

    780
    1,001
    93
    Good luck, man. As @Mostly harmless said, it would be really helpful, if you shared your method.
     
  19. sinner76

    sinner76 Fapstronaut

    780
    1,001
    93
    No problem!
     
    Last edited: Mar 18, 2021
  20. Some management has options to prevent changes in settings...... TPC doesn't have it..
     
    xXsinnerXx likes this.

Share This Page