Permission request in app before running

Hi, I read about potentially entering a permission setting in the 'manifest' of an app:-
<uses-permission android:name="android.permission.READ_LOGS>

I want my app to be able to monitor the clipboard for changes, but to do this I need to grant READ_LOGS permission using ADB before I run the app - using Screen1.AskForPermission doesn't work due to android security changes in v10.

As I understand it, the ADB command fails at present because the required permission needs to be defined in the app manifest beforehand. Does anyone know if this is correct, and if so where is the manifest and how do I incorporate the <uses-permission ...> setting into it?
I've looked at an extracted aia file for my app, but can't seem to find a file that represents a 'manifest'.

Any help with this gratefully received.
C.

You can write a snall extension to add this into your manifest, then you can use the AskForPermission method to ask for that permission

The question however is

How do you like to do that?
And do you want this to work while your app is not running?

Taifun

Hi Taifun, the idea is that the app can still monitor for clipboard changes (and store values) when it is running in the background, ie, when it's not the active app which may be writing to the clipboard.

If this is possible, then how does the manifest extension work, can you briefly explain?
Thanks,
C.

See my answer here

Taifun