Snap for 11908474 from c0b598ac428fecbd7b59b167f019876e783bb6a8 to 24Q3-release

Change-Id: If1a8697ed8aa3d6cce2b004d1718fe54c60003ce
diff --git a/acts/framework/acts/controllers/android_device.py b/acts/framework/acts/controllers/android_device.py
index e7f594d..0c774eb 100755
--- a/acts/framework/acts/controllers/android_device.py
+++ b/acts/framework/acts/controllers/android_device.py
@@ -1435,6 +1435,9 @@
             return
         self.stop_services()
         self.log.info("Rebooting")
+        # Send ACTION_SHUTDOWN broadcast and wait for registered services
+        self.adb.shell("am broadcast -a android.intent.action.ACTION_SHUTDOWN")
+        time.sleep(5)
         self.adb.reboot()
 
         timeout_start = time.time()