Skip to content
This repository has been archived by the owner on Mar 7, 2022. It is now read-only.

Commit

Permalink
android-init: Disable GPS daemon to avoid held wakelock.
Browse files Browse the repository at this point in the history
The GPS daemon will hold a wakelock until it has acquired the current time via NTP.
Since AsteroidOS by default doesn't provide a internet connection, the wakelock would be held forever.
  • Loading branch information
MagneFire committed May 16, 2021
1 parent 4c7f8ef commit 9db6a30
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions recipes-android/android-init/android-init/init.rc
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,6 @@ on init
# Vibrator
chown system root /sys/class/timed_output/vibrator/enable

# GPS
mkdir /data/ 0770 root root
mkdir /data/gps/ 0770 root root
write /sys/class/gpio/export 23
chown gps system /sys/class/gpio/gpio23/value
chown gps system /sys/class/gpio/gpio23/direction
write /sys/class/gpio/gpio23/direction out
write /sys/class/gpio/gpio23/value 0

# Sensors
mkdir /data/misc/ 0770 root root
mkdir /data/misc/em718x/ 0770 root root
Expand All @@ -40,8 +31,3 @@ service logd /system/bin/logd

service servicemanager /system/bin/servicemanager
class core

service gpsd /system/bin/glgps -c /system/etc/gps/glconfig.xml
class core
socket gps seqpacket 0660 root root
ioprio be 0

0 comments on commit 9db6a30

Please sign in to comment.