1. 程式人生 > >adb 記憶體優化方面有用的2個命令

adb 記憶體優化方面有用的2個命令

  • To simulate conditions where implicit broadcasts and background services are unavailable, enter the following command:
  • $ adb shell cmd appops set <package_name> RUN_IN_BACKGROUND ignore
    
  • To re-enable implicit broadcasts and background services, enter the following command:
  • $ adb shell cmd appops set <package_name> RUN_IN_BACKGROUND allow