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
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 property_ service ]; do sleep 0.1; done
while [ ! -e /dev/socket/
Instead, the follow poll guarantees property availability.
while [ -z "$(getprop ro.product.device)" ]; do sleep 0.1; done