4

How to check Programmatically if the "AutoStart" permission is Enable or disable on android studio ?

In This Image : enter image description here

SHUBHAM SONI
  • 71
  • 2
  • 9
  • What do you mean by "AutoStart Permission"? – CommonsWare Dec 18 '21 at 16:42
  • i think RECEIVE_BOOT_COMPLETED Permission AutoStart Permission to app to allow auto boot like alarm automatic started on seted time – SHUBHAM SONI Dec 18 '21 at 17:14
  • @shubhamsoni , i hope my post answers your question ? – DrHowdyDoo Dec 18 '21 at 17:20
  • `RECEIVE_BOOT_COMPLETED` cannot be disabled in ordinary Android. If there is some device manufacturer that allows it to be disabled, you would need to contact that manufacturer or do research specific to that manufacturer. – CommonsWare Dec 18 '21 at 17:54
  • RECEIVE_BOOT_COMPLETED is only think i request for AutoStart permission this permission specific customized android os like vivo, oppo, etc on available – SHUBHAM SONI Dec 22 '21 at 16:29

1 Answers1

2

There's no way to find out whether the Auto-start option is enabled or not

Source : How to programmatically enable auto start and floating window permissions

For now it's not possible.

As it's completely depend on their operating system API's and customisation. Even developers have requested for this on XIOMI's official forums but there is no response from there side.

Till now even i am finding an answer to this question but nothing helped me.

Source : How to check MIUI autostart permission programmatically?

DrHowdyDoo
  • 2,327
  • 2
  • 7
  • 21
  • thanks for reply but this one i implemented so i requested how to check enable or disable because if i not check is enable or disable so mostly user every time missed to this permission so thats is required. – SHUBHAM SONI Dec 18 '21 at 17:28