Forum Discussion
hits error "persistentPreferredActivities 4" when provisioning device using Android Management Api.
Following the docs https://developers.google.com/android/management/policies/dedicated-devices to setup a KIOSK policy, but result in this error.
- jasonbaytonLevel 4.0: Ice Cream Sandwich2 months ago
Hi vnwong!
Could you please confirm the app you're testing with is compatible/capable for for this use case? Based on my own reading a few weeks back, the presence of actions and categories in the app manifest matters.
Besides this, are you testing as a fully managed device? If not it work work.
Finally do you have more than one config, or the restriction enabling a kiosk launcher turned on in your policy? This may cause issues.
- vnwongLevel 1.5: Cupcake2 months ago
Thank you for the reply.
This is my android manifest.xml , please let me know is that any wrong configuration there or direct me to any related reading meterial.<uses-permission android:name="android.permission.INTERNET" /><uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/><uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/><uses-permission android:name="android.permission.CAMERA" /><applicationandroid:label="MyApplication"android:name="${applicationName}"android:icon="@mipmap/launcher_icon"android:requestLegacyExternalStorage="true"><activityandroid:name=".MainActivity"android:exported="true"android:launchMode="singleTop"android:theme="@style/LaunchTheme"android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"android:hardwareAccelerated="true"android:windowSoftInputMode="adjustResize"><meta-dataandroid:name="io.flutter.embedding.android.NormalTheme"android:resource="@style/NormalTheme"/><intent-filter><action android:name="android.intent.action.MAIN"/><category android:name="android.intent.category.LAUNCHER"/><category android:name="android.intent.category.HOME"/><category android:name="android.intent.category.DEFAULT"/></intent-filter></activity><!-- Don't delete the meta-data below.This is used by the Flutter tool to generate GeneratedPluginRegistrant.java --><meta-dataandroid:name="flutterEmbedding"android:value="2" /></application></manifest>
By the way, how to we consider a device is a fully managed device? has it to be purchased from specific party? or any device can be a fully managed device as long as running Android OS.
Thank you ~- jasonbaytonLevel 4.0: Ice Cream Sandwich8 days ago
Any device can be fully managed, QR scanning is a nice way to go about it as it doesn't require pre-registration.
Nothing jumps out at me in your manifest, looks like you have the intent filter sorted also. Did you get this solved in the end, or do you have further device logs?
Related Content
- 2 years ago