parameters: (self, timeout=None, retries=None)
docstring: Restarts device charging so that dumpsys no longer collects power data.
  
      Args:
        timeout: timeout in seconds
        retries: number of retries
  
      Raises:
        device_errors.DeviceVersionError: If device is not L or higher.
docstring_summary: Restarts device charging so that dumpsys no longer collects power data.
docstring_tokens: Restarts device charging so that dumpsys no longer collects power data .
function: def EnableBatteryUpdates(self, timeout=None, retries=None):
      """Restarts device charging so that dumpsys no longer collects power data.
  
      Args:
        timeout: timeout in seconds
        retries: number of retries
  
      Raises:
        device_errors.DeviceVersionError: If device is not L or higher.
      """
      def battery_updates_enabled():
        return (self.GetCharging()
                or not bool('UPDATES STOPPED' in self._device.RunShellCommand(
                    ['dumpsys', 'battery'], check_return=True)))
  
      self._device.RunShellCommand(['dumpsys', 'battery', 'reset'],
                                   check_return=True)
      timeout_retry.WaitFor(battery_updates_enabled, wait_period=1)
function_tokens: def EnableBatteryUpdates ( self , timeout = None , retries = None ) : def battery_updates_enabled ( ) : return ( self . GetCharging ( ) or not bool ( 'UPDATES STOPPED' in self . _device . RunShellCommand ( [ 'dumpsys' , 'battery' ] , check_return = True ) ) ) self . _device . RunShellCommand ( [ 'dumpsys' , 'battery' , 'reset' ] , check_return = True ) timeout_retry . WaitFor ( battery_updates_enabled , wait_period = 1 )