Skip to content
Snippets Groups Projects
  • Luis Hector Chavez's avatar
    faebeaca
    Reduce the number of processes that can start adbd · faebeaca
    Luis Hector Chavez authored
    This change makes it such that only init can start adbd directly. It
    also introduces new rules for ctl.{start,stop,restart} properties such
    that only usbd and recovery (and su, since it's permissive) can directly
    ask init to start adbd.
    
    Bug: 64720460
    Test: adbd still runs
    Test: /data/nativetest64/adbd_test/adbd_test
    Test: python system/core/adb/test_adb.py
    Test: "USB debugging" in System Settings still start/stop adbd
    Test: Recovery menu still make the device show as "recovery" in adb
          devices
    Test: "Apply update from ADB" in recovery menu still works
    Change-Id: Iafcda8aa44e85129afcc958036b472d856fa1192
    faebeaca
    History
    Reduce the number of processes that can start adbd
    Luis Hector Chavez authored
    This change makes it such that only init can start adbd directly. It
    also introduces new rules for ctl.{start,stop,restart} properties such
    that only usbd and recovery (and su, since it's permissive) can directly
    ask init to start adbd.
    
    Bug: 64720460
    Test: adbd still runs
    Test: /data/nativetest64/adbd_test/adbd_test
    Test: python system/core/adb/test_adb.py
    Test: "USB debugging" in System Settings still start/stop adbd
    Test: Recovery menu still make the device show as "recovery" in adb
          devices
    Test: "Apply update from ADB" in recovery menu still works
    Change-Id: Iafcda8aa44e85129afcc958036b472d856fa1192