Android Device Policy Management (DPC)

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

  1. sinner76

    sinner76 Fapstronaut

    649
    892
    93
    Here is a tip for Android users out there. A much more robust solution and not too difficult to setup. The approach is to go the route of device policy management. In this instance you do not need any enterprise hosted solutions, but only the Test DPC app (https://github.com/googlesamples/android-testdpc). It can be downloaded from the Play Store. It is basically an app provided by Google to help developers see how their apps work in the context of a restricted device. It is also an app to showcase the latest in Android Enterprise management.

    Here is a list of some useful settings to use in the Test DPC app (not their exact names):


    • Block uninstallation of select apps
    • Prevent force stopping apps or clearing their data.
    • block installation of any app
    • block installation of 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
    • block app stores (not necessarily needed if you already block installation of apps)
    • prevent multi user support and new user creation
    • disallow safe mode
    • suspend or hide certain apps you want to keep on the device but only use temporarily when unlocking restrictions through Test DPC.

    Steps Summary:
    1-Download Test DPC:
    https://play.google.com/store/apps/details?id=com.afwsamples.testdpc&hl=en_GB&gl=US

    You will have two apps installed: "Set up Test DPC" and "Test DPC". Forget about "Set up Test DPC", we don't need that.

    You'll notice that most features of "Test DPC" are greyed out. This is because Test DPC needs to be "Device Owner".

    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 could add your accounts again after you finish.
    2-Set up Test DPC as Device Owner

    3-Set profile settings within Test DPC app as desired

    4-Lock usage of Test DPC app through a robust app locker:
    A)
    AppLock - Fingerprint:https://play.google.com/store/apps/details?id=com.sp.protector.free

    B)Applock by Domobile:https://play.google.com/store/apps/details?id=com.domobile.applockwatcher&hl=en_US&gl=US
    (Don't forget to enable advanced protection)
    C)Adult Block:

    This approach is more akin to hardening than a simple app locker app that likely has many workarounds. Big tech companies obviously are addressing parental controls as an afterthought, but where they are focusing their efforts is on enterprise. That is where the money is. Fortunately for us, many of the features developed for enterprise are exactly what a parent or individual is looking for in order to harden their devices against unwanted content and workarounds. Now the trick is for us consumers to voice our desire to have some of these features packaged in a more consumer friendly format. We may never see that request fulfilled, but tech savvy individuals can make due with using enterprise technologies in a consumer/home environment.

    There are still some services which are meant to be used by enterprises that are completely FREE up to 100 devices. Test DPC is all what is needed for most people but 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/

    An additional approach well beyond the scope of the Test DPC app is for those that are SUPER tech savvy would be to fork your own version of the Android Open Source Project (AOSP). Many of the enterprise configurations can be baked directly into the operating system through the use of configuration files. This would provide consumers a potentially simpler way to get devices that are hardened out of the box against undesired content as well as prevent circumvention of restrictions which come in a variety of ways unknown to most parents and individuals. Just some musings and tips here!

    -Copied from KingHolly on Cleanbrowsing Forums
     
    Last edited: Sep 20, 2021
  2. sinner76

    sinner76 Fapstronaut

    649
    892
    93
  3. sinner76

    sinner76 Fapstronaut

    649
    892
    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

    649
    892
    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

    649
    892
    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
    28
    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

    649
    892
    93
    .
     
    Last edited: Apr 27, 2021
  11. sinner76

    sinner76 Fapstronaut

    649
    892
    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
    28
    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

    649
    892
    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

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

    sinner76 Fapstronaut

    649
    892
    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