Device Administration Android

I’m developing an android app using openfl and I need to get permission administration on device for I can do the auto update from my app.
searching for solutions, I found that I can to recive the device administration in as this link:

But, I don’t have idea how I can to make this using openfl.

You can define permissions from project.xml:

<config:android permission="android.permission.BIND_DEVICE_ADMIN" />

However, to set up an intent filter, you’ll need to override AndroidManifest.xml.

I put the permission android in the AndroidManifest.xml, as the link

but I need to put this:

<receiver android:name=".DeviceAdministrationReceiver" android:label="@string/sample_device_admin" android:description="@string/sample_device_admin_description" android:permission="android.permission.BIND_DEVICE_ADMIN"> <meta-data android:name="" android:resource="@xml/device_admin_sample" /> <intent-filter> <action android:name="" /> </intent-filter> </receiver>

and create the files:


for to open the resquest permission:

so how to put the files in android path “res” ?

<template path="templates/strings.xml" rename="res/values/strings.xml" />
<template path="templates/admin.xml" rename="res/xml/device_admin_sample.xml" />