Sub CheckAppAutoStartSomeDevice
Try
Dim p As Phone
Dim manufacturer As String = p.Manufacturer
Dim Intent As Intent
Intent.Initialize("","")
Dim GotoSetting As Boolean =False
If manufacturer.EqualsIgnoreCase("xiaomi") Then
Intent.SetComponent("com.miui.securitycenter/com.miui.permcenter.autostart.AutoStartManagementActivity") : GotoSetting=True
else If manufacturer.EqualsIgnoreCase("vivo") Then
Intent.SetComponent("com.vivo.permissionmanager/com.vivo.permissionmanager.activity.BgStartUpManagerActivity") : GotoSetting=True
else If manufacturer.EqualsIgnoreCase("Letv") Then
Intent.SetComponent("com.letv.android.letvsafe/com.letv.android.letvsafe.AutobootManageActivity") : GotoSetting=True
else If manufacturer.EqualsIgnoreCase("Honor") Then
Intent.SetComponent("com.huawei.systemmanager/com.huawei.systemmanager.optimize.process.ProtectActivity") : GotoSetting=True
else If manufacturer.EqualsIgnoreCase("oppo") Then
Intent.SetComponent("com.coloros.safecenter/com.coloros.safecenter.permission.startup.StartupAppListActivity") : GotoSetting=True
End If
If GotoSetting Then
Dim pm As PackageManager
Dim list As List = pm.QueryIntentActivities(Intent)
If list.Size > 0 Then
Msgbox2Async("Please enable auto-start. ", "","Go To Setting ", "", "", Null, False)
Wait For Msgbox_Result (Result As Int)
If Result = DialogResponse.POSITIVE Then
StartActivity(Intent)
End If
End If
End If
Catch
Log(LastException)
End Try
End Sub