This payload contains two part that can be used independent from each other or together.
Enterprise Profile Removal Passcode
This payload can be used to set a password which is required to unroll the device.
|Enterprise Profile Removal Passcode||Configure a passcode that is needed for unenrolling (case sensitive).|
|Google Account Id (Factory reset protection, only for Device Owner)||Account Id consists of 21 numbers|
Configuration: Factory Reset Protection (Only for Device Owner) Android 8.1 or later
Factory Reset Protection
Factory Reset Protection is enabled when a Google ID is added on the device and there is pin code or password to lock the screen. When an Android device has Factory Reset Protection (FRP) enabled, it requires the previous user's account details once it has been factory reset. This can cause issues in case of corporate devices, as it prevents corporate devices from being reused.
The idea is to have an enterprise Google account that can be used to unlock devices with unknown Google account added to the device. Both enterprise account and logged in Google account can unlock device. According to Google FRP works from Android 8.1 or above. It its highly commended to test it before using it in production enrvironment! It may vary from device to device and Android version to Android version.
Enroll your android device as DEVICE OWNER:
Click on this link, and click “Execute”. Login with your google account:
Every Google account is associated with an account ID. The 21-digit number present against id is your account ID
You have to copy your Google Account ID, and paste it in the Agent configurator payload:
On your device, you have to login with another google account.
In the console, add the payload to buffer, and paste it to the device:
|7||Verify the payload is on the device|
|8||On your android-device, start it in Recovery mode, and wipe it.|
When you start the android device, you will be prompted to connect to Wifi
Connect to wifi. Now you have to use the google-account, you used to get your Google Account ID. If you use another google-account, you will be rejected.