ManagedProvisioning flow in AOSP android 12 is not similar to Android 10 - android-source

I am trying to integrate airwatch(admin app - intelligent hub).
I was going through Android 12 ManagedProvisioning codebase and found that the Admin App enrollment is taking place before the user consent.  
Could anyone please help me out with the way to achieve the flow similar to Android 10 where user consent flow is taking place before the Admin App? 
From Android 12 the flow has been changed.
Please let me know if any further info is required from my end.
Reference activity - https://cs.android.com/android/platform/superproject/+/master:packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/PreProvisioningActivity.java;l=96;bpv=0?q=preprov&sq=&ss=android%2Fplatform%2Fsuperproject:packages%2Fapps%2FManagedProvisioning%2Fsrc%2Fcom%2Fandroid%2Fmanagedprovisioning%2F

Related

HERE-SDK, Flutter: No access to background map [duplicate]

I am trying to migrate my project from Premium Sdk (Android) to Navigate Sdk Edition (Android) , but I have an issue when I am trying to load map scene (Normal_Day and Normal_Night map scheme) , in logcat I am getting (WARN) error: Download metadata failed, error=kAccessDenied, message='{"error":"Forbidden","error_description":"These credentials do not authorize access"}', and the map view stay blank. I have successfully sing up on here platform portal, registered app and project, and I have downloaded Navigate SDK for Android. Note, I don't have a issue with SDK initialization.
The Navigate Edition for Android cannot be used with the credentials you obtain from the HERE platform. Have a look at the documentation:
For now, the Navigate Edition is only available upon request. Please
contact us to receive access including a set of evaluation
credentials. Note that the HERE SDK package for the Navigate Edition
is only available for customers who have signed a commercial contract
via the HERE platform portal.
I tried on 2 times (in last August and September) to contact Here in order to get information about the new Navigate licence. I don't get any reply. So, I try from the Stackoverflow site...
I'm still using the Premium edition and I would like to migrate. I also would like to know if the offline maps for Premium edition will be updated in the future or if the Premium will be compatible with the new maps.
I'm using the SDK for my personal use, and I use it time to time with one application installed on 2 or 3 devices.

Questions about CTS/VTS and CDD for android 10

We are developing Head Unit for Automotive and using Android 10.
We won't integrate Google Play Services on this. I concern that we have to run and pass CTS/VTS or not? And, Do you have compliant all items in Android CDD?
Please help us to make clear.
Let's assume, you are not Integrating the GMS Package, which would be the case like OEMs - Zebra, who launches their product without GMS suite, in this case, you can avoid testing and certification for GTS but if you claim, your phone is android then you have to pass CTS, CTS on GSI, STS, VTS, CTS Verifier compulsory.

Is it possible to lock an Android device from a Flutter app?

Would it be possible to prevent the user from accessing their device for a period of time say 1 minute from a Flutter application?
there are couple of plugins out there
you can check them
One of the plugin to lock Screen
if it doesn't help you can do it your self with native code via Method Channels
Writing custom platform-specific code
Hope that will help you.

Building a Flutter application for mobile and desktop

Recently I've found out about Flutter being able to support desktop applications as well. I'm just curious how far this technology is and if any of you had success porting your mobile apps to the desktop. If so, what was the experience like? Are desktop-specific features like windows, mouse interaction, desktop notifications, etc. supported?
It was demonstrated at the Flutter Live event in December, but nothing official has been released that I'm aware of.
Flutter for Desktop was launched as alpha build at flutter interact 2019.
The official documentation is available at https://flutter.dev/desktop
The following video describes how to run your flutter app on a MacOS
You can watch the following video is you don't wanna read the docs
https://www.youtube.com/watch?v=9tEdoVuC1uQ&t=23s
(Skip to 0:48 seconds, as slight noise occurs for few seconds)
A simple app is created using android studio and we can easily see the options available to port the code to all platforms. For example, if you create a default app using android studio, the mouse event will help you to tap on a button and increase the count.
Regarding the experience, it feels good to write a single code and port/deploy on any platform. Using VSCode or android studio, both are helpful.

Flutter device administrator permission

I'm trying to build an application that will lock the screen on a timer in Flutter. I'm wondering how to grant android device administrator permissions to an application in flutter.
I've found this but it's not really helpful i feel for flutter.
https://developer.android.com/guide/topics/admin/device-admin#java
Does anyone have any suggestions?
There is currently no platform-agnostic Flutter implementation for locking a device screen programmatically. The Android specific page you were looking at is what you need to add admin permissions to the manifest file and implement your screen locking functionality.
You can add Android-specific Java or Kotlin code in a Flutter project as stated here: https://flutter.io/docs/development/platform-integration/platform-channels