Adding services in Extensions?

Hello Dear Developers, I am developing an extension so I want to add a service inside a manifest file but I don’t know how can I do that can anyone help me.

<service android:name="service path" android:exported="false" />

Thanks.

I don’t think that is possible.
You can’t modify manifest file programmatically.
Manifest is automatically generated and can be modified only using decompiler(Although I will not recommend this).

Thanks for your information.

Yeah you are right In the androidmanifest there is no any Element to add service in android manifest.