Git Product home page Git Product logo

android-management-api-samples's People

Contributors

fredast avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-management-api-samples's Issues

Auth erro

using this quickstart.ipynb
I'm getting this error
You can’t sign in because "myapp" sent an invalid request. You can try again later, or contact the developer about this issue. Learn more about this error
If you are a developer of myapp, see error details.
Error 400: invalid_request

Error 400: invalid_request
The out-of-band (OOB) flow has been blocked in order to keep users secure. Follow the Out-of-Band (OOB) flow Migration Guide linked in the developer docs below to migrate your app to an alternative method.
Request details: redirect_uri=urn:ietf:wg:oauth:2.0:oob

This is the code which is running

from apiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow

CLIENT_CONFIG = {
'installed': {
'client_id':'----------------------------------------------------------',
'client_secret': '------------------------------------------------------',
'auth_uri':'https://accounts.google.com/o/oauth2/auth',
'token_uri':'https://oauth2.googleapis.com/token'
}
}
SCOPES = ['https://www.googleapis.com/auth/androidmanagement']

flow = InstalledAppFlow.from_client_config(CLIENT_CONFIG, SCOPES)
credentials = flow.run_console()

androidmanagement = build('androidmanagement', 'v1', credentials=credentials)

print('\nAuthentication succeeded.')

Device boot looping

Recently we are working on android management api.we have enrolled 500+ devices.some of these devices get restarted again and again.Is there any chance that this api responsible for this kind of bootloop issue??

Quickstart page no longer working?

I have tried using the code on quckstart page and it no longer seems to work:

  1. Both Create an enterprise and Create a policy fail with the following error:
    "Caller is not authorized to manage project."

  2. Create a policy fails even if the associated account has an Enterprise and has permissions to manage the project and Enterprise associated with it.

Error 400: invalid request

Error 400: invalid_request
The out-of-band (OOB) flow has been blocked in order to keep users secure. Follow the Out-of-Band (OOB) flow Migration Guide linked in the developer docs below to migrate your app to an alternative method.
Request details: redirect_uri=urn:ietf:wg:oauth:2.0:oob

Device stuck in kiosk mode

Posting here because there seems no real support for Android Management API except EMM Community, which Im not part of. My problem:

I have a Lenovo Tab M10 tablet running Android 9. I have build an app and provisioned the tablet via the Android Management API by creating a kiosk policy and enrolled it via QR code setup. Everything worked fine until today when I was playing around with the API and wanted to delete the device (via enterprises.devices.delete), which I have already done several times before without a problem.

But this time, the tablet did not restart and factory reset as it should, it is still running my app in kiosk mode. The strange thing is, that the device is deleted from my list of devices (calling enterprises.devices.list returns an empty list)! But the policy is still applied to the tablet! The policy prevents me from reseting the tablet as the hardware buttons and the factory reset is disabled...

Am I really stuck now with an android tablet which is basically useless because of a bug (?) in the management api? Does anyone had similar experiences and knows what to do?

Thanks

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.