My problem is that on my cellphone huawei my services are killed so I need to change the settings on my cellphone.
My problem is the same than this
NOTE: Huawei and Xiaomi devices have evil task killer services that interfere with the Telegram notification service. For our notifications to work, you need to add Telegram to allowed apps in those devices' security settings. Huawei: Phone Manager App > Protected Apps > Add Telegram to the list. Xiaomi: Services > Security > Permissions > Autostart, find Telegram and enable autostart.
So I need to change the configuration programmatically for my huawei cellphone I need to do this:
Phone Manager App > Protected Apps > Add myApp
Would appreciate some help! :-)
Edit
Why the negative votes, a lot of people have the same problem? My question is how can I change programmatically the settings of my cellphone?