Comments (7)
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.
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.
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.
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" :
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.
Why is it closed? This doesn't work...
from android-testdpc.
@AndroidDeveloperLB
After provisioning, you should tap on the TestDPC icon with a badge.
from android-testdpc.
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)
- Closed
- testDPC app crashing on Android 13 HOT 3
- The setCameraDisabled method fails HOT 1
- What's the compatibility condition? HOT 1
- testDPC app crashing on Android 14 (multiuser, user 10) HOT 1
- Couldn't launch 'test dpc' app built myself HOT 1
- How I can run this in My Android Studio HOT 2
- Action APPLICATION_RESTRICTIONS_CHANGED
- add android.permission.POST_NOTIFICATIONS HOT 1
- No toolchains found HOT 1
- DeviceAdminReceiver.onProfileProvisioningComplete() not getting called on when managed profile is created HOT 1
- ADB provisioning command in README is not very noticable HOT 1
- Bazel build is failing HOT 1
- WifiEapTlsCreateDialogFragment's save feature not capable of saving any WiFi Configurations
- Android tester HOT 1
- Cross profile calendar not working properly HOT 1
- cannot import this project to my android studio even after loading bazel plugins HOT 1
- Getting error in "bazel build testdpc" command HOT 3
- Review testing setup HOT 2
- TesDPC keeps stopping after Reboot in Android 14 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-testdpc.