4

On Huawei P30 Pro/P30 Lite, there are a feature calls App Launch on this path below:

Settings > Battery > App launch

I would like to open this activity by using intent. I tried two component names below but it didn't work.

 new Intent().setComponent(new ComponentName("com.huawei.systemmanager", "com.huawei.systemmanager.appcontrol.activity.StartupAppControlActivity")),
 new Intent().setComponent(new ComponentName("com.huawei.systemmanager", "com.huawei.systemmanager.optimize.process.ProtectActivity"))
CauCuKien
  • 1,027
  • 2
  • 15
  • 26
  • Did you find a solution yet? I'm facing the same issue, but for now I just created Help Activity to inform the user what to do in case of app not running properly. I foud this solution to prevent HUAWEI from killing services: https://dontkillmyapp.com/huawei – MarkWalczak Jun 12 '19 at 07:10
  • @MarkWalczak, not yet, I just ask this question some minutes ago :). – CauCuKien Jun 12 '19 at 07:14
  • 1
    Ok, take your time :) But be so kind and share the solution if you find it. – MarkWalczak Jun 12 '19 at 07:26
  • @MarkWalczak, see my updated answer – CauCuKien Jun 18 '19 at 05:35

1 Answers1

0

I found the solution (already tested on Huawei P30 Lite).

new Intent().setComponent(new ComponentName("com.huawei.systemmanager", "com.huawei.systemmanager.optimize.bootstart.BootStartActivity")),
new Intent().setComponent(new ComponentName("com.huawei.systemmanager", "com.huawei.systemmanager.startupmgr.ui.StartupNormalAppListActivity"));
CauCuKien
  • 1,027
  • 2
  • 15
  • 26