Giter Site home page Giter Site logo

android-basicmanagedprofile's Introduction

Android BasicManagedProfile Sample

This repo has been migrated to github.com/android/enterprise. Please check that repo for future updates. Thank you!

android-basicmanagedprofile's People

Contributors

codingjeremy avatar google-automerger avatar tjohns 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  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  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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-basicmanagedprofile's Issues

Provisioning Activity Keep Requesting Restart

I just tried to run this manage profile on my nexus 7, the provisioning activity is displayed and requesting to restart ( encryption purpose ), after restart there is a notification "Continue manage profile". But when I click the notification, it takes me back to the 1st step on provisioning and requesting restart.

I already tried too in emulator and got the same behaviour, what i'm missing?

Can't compile it

Freshly checked out I get this:
➜ android-BasicManagedProfile git:(master) ✗ ./gradlew build
Relying on packaging to define the extension of the main artifact has been deprecated and is scheduled to be removed in Gradle 2.0
:BasicManagedProfileSample:preBuild FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':BasicManagedProfileSample:preBuild'.

    failed to find target android-L : /Users/brindle/adt-bundle-mac-x86_64-20140702/sdk

So I change BasicManagedProfileSample/build.gradle to say android-21 instead and get this:
➜ android-BasicManagedProfile git:(master) ✗ ./gradlew build
...
/Users/brindle/android-BasicManagedProfile/BasicManagedProfileSample/src/main/java/com/example/android/basicmanagedprofile/SetupProfileFragment.java:30: error: cannot find symbol
import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEFAULT_MANAGED_PROFILE_NAME;
^
symbol: static EXTRA_PROVISIONING_DEFAULT_MANAGED_PROFILE_NAME
location: class
/Users/brindle/android-BasicManagedProfile/BasicManagedProfileSample/src/main/java/com/example/android/basicmanagedprofile/BasicManagedProfileFragment.java:39: error: cannot find symbol
import static android.app.admin.DevicePolicyManager.FLAG_TO_PRIMARY_USER;
^

etc, etc, etc.

Did they get removed from the latest SDK release or am I doing something else wrong?

BasicManagedProfile App is not working in Android Q device.

Problem: When tried to install the Sample app(BasicManagedProfile), it is not setting up the work profile into the device hence the app is not setup as DO/PO app.

Reproduction Steps:

  1. Install the app into Android Q device(We built the app based on the sample app code with Android 29 version sdk – We also modified the manifest file by changing the sdk version accordingly)

  2. Click on the button “setup profile”.

  3. Observe that – it will be setting up the work profile.

  4. Click on “next” once work profile installation is done.

  5. Observe that - flow will not be redirected into app after clicked on next.
    Expected result: Flow should be auto-redirected into App where app should display the option mentioned from the second screenshot attached for this app.
    https://github.com/googlesamples/android-BasicManagedProfile/blob/master/screenshots/set_up.png

  6. Observe that - no work profile configuraiton is applied on the device.
    Expected result : After installed the work profile, we can see both Personal and Work option enabled from the device.

  7. Observer that – when manually open the app after installation, still it ask to click on “setup profile” that means our app is not set as “PO” app.
    Expected result: It should display the option as mentioned from the 5th step expected result as device is already set as DO owner app.

Attached the video recording by reproducing the issue.
https://drive.google.com/file/d/1mLnDFwSnhB2KLn495DDfitKuvyYiCOqb/view?usp=sharing

Kindly check the issue. Also attached the bug report captured by reproducing the issue.
bugreport-blueline-QPP6.190730.005-2019-08-28-13-59-30.zip

App is crashing

This app is crashing while (after?) setting a work profile

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.