Giter VIP home page Giter VIP logo

Comments (7)

sarog avatar sarog commented on August 19, 2024

Check this out for more information: https://developers.google.com/android/work/build-dpc

TLDR: Enterprise Mobile Management (EMM) console software + Device Policy Controller (DPC, re: this sample project) allows you to setup and deploy Android devices in the enterprise. You can configure various policies, such as enabling/disabling settings, silently install and update APKs, creating work profile accounts, and lock down devices as you please (make your app "locked" to the screen, aka kiosk-mode).

The DPC is what gets installed on the device and manages everything from the user's (hidden) perspective. It is a service that runs in the background with the highest-level privileges. It's basically a Google "Device Policy" app for non-G Suite (Google Apps) users & devices.

The EMM console is what administrators use to manage device policies remotely. You can, for example, manage APK installations by scheduling it through the EMM console and have the DPC listen and perform your requested actions.

The DPC is normally deployed when a device is first setup (or after a factory reset). Instead of signing in with a Google Account, users/admins can provision a supported device by entering a "AfW" code, e.g. afw#123456 and have it automatically download, install and configure everything. This kind of deployment requires "paperwork" to be filled out with Google (re: joining their EMM Community) but it's not a requirement to use DPC as far as I know.

from android-testdpc.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on August 19, 2024

So in short, this is not for normal third party apps.
Right? I can't just publish an app that has this, and everyone would be able to use it....
I also don't get why it asked for being admin, and it didn't updated to show that it has admin rights.

from android-testdpc.

tony-mak avatar tony-mak commented on August 19, 2024

You can publish the app with this, however you will need to ask user consent to set your as admin.
You will find two icons after you have installed TestDPC, tap the "set up" one please.

Thanks.

from android-testdpc.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on August 19, 2024

You mean app shortcut icons. Found it.
I granted admin rights to the app, yet when I pressed the "set up" it showed a wizard, and after accepting all, it has restarted the OS (OS crashed).
Then going back to "test dpc", still everything is the same. Most items there are disabled, exactly as before going to the "set-up" phase.
Tested on Galaxy S7 with Android 7.0.
I then tried to run the "set-up" again, yet this time it allows me to only exit, with the message "TestDPC isn't currently allowed to be set up as the profile or device owner" :

image

Does it require only admin rights, or more?

Is it possible to have admin rights to be able to install APK files and uninstall apps in the background, using the PackageInstaller.Session API ?
Or maybe I need the set-up phase too?
How come I can't see the UI of the app being updated after granting it admin rights?

from android-testdpc.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on August 19, 2024

Why is it closed? This doesn't work...

from android-testdpc.

tony-mak avatar tony-mak commented on August 19, 2024

@AndroidDeveloperLB
After provisioning, you should tap on the TestDPC icon with a badge.

from android-testdpc.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on August 19, 2024

I see. Why does it have a badge ? Why not launch the other, normal icon of the app?
Also, is there a way here to use it for app operations like batch install, batch uninstall, clear data, etc... ?

from android-testdpc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.