Comment 1 for bug 1540804

Revision history for this message
You-Sheng Yang (vicamo) wrote :

I tried to add following poll loop to powerd upstart conf as ubuntu-location-service does, but some device still fails to retrieve correct property.

  # wait for Android properties system to be ready
  while [ ! -e /dev/socket/property_service ]; do sleep 0.1; done

Instead, the follow poll guarantees property availability.

  while [ -z "$(getprop ro.product.device)" ]; do sleep 0.1; done