I found that apps like Telegram and WeChat have Autostart permissions enabled when they are installed.enter image description here
My app can only guide users to manually enable Autostart permissions.
Is it because the mobile phone manufacturers turned on the Autostart permission when installing some applications when customizing the system, or can I also automatically turn on this permission at the app level?
The enhancement in many cases to be able to turn on Autostart for an application like the Telegram or WeChat results from some special terms or consortia signed by the application creators and mobile devices manufacturers. These manufacturers modify their Android operating systems (the MIUI of Xiaomi, the EMUI of Huawei, etc.) and may have several recognized applications that have essentially lifted certain prohibitions or obtained permissions such as Autostart.
For regular apps such as yours, Android does not for security and privacy reason incorporate a means of programmatically enabling Autostart permission from app settings. For that matter, developers are unable to perform permission enabling directly at the application level. Rather, even in settings, users will be able to change a setting related to Autostart permission.