summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDima Zavin <dima@android.com>2011-08-25 16:04:27 -0700
committerDima Zavin <dima@android.com>2011-09-02 14:39:27 -0700
commit6d11ad35bae062b2fc4251e17d9210bc5447fabd (patch)
tree38b9693c1808d648054dc4a739d7506cb2b2593a
parentcf4220b66ccfd5af022480fe24c517f25a5a7a63 (diff)
downloaddevice_samsung_tuna-6d11ad35bae062b2fc4251e17d9210bc5447fabd.zip
device_samsung_tuna-6d11ad35bae062b2fc4251e17d9210bc5447fabd.tar.gz
device_samsung_tuna-6d11ad35bae062b2fc4251e17d9210bc5447fabd.tar.bz2
tuna: include standalone charger mode support
Change-Id: Ib56844c0eda029ed29de28109812646d20727d92 Signed-off-by: Dima Zavin <dima@android.com>
-rw-r--r--device.mk7
-rwxr-xr-xinit.tuna.rc3
-rw-r--r--init.tuna.usb.rc8
3 files changed, 14 insertions, 4 deletions
diff --git a/device.mk b/device.mk
index b86c7b3..fad4ac7 100644
--- a/device.mk
+++ b/device.mk
@@ -30,7 +30,8 @@ DEVICE_PACKAGE_OVERLAYS := device/samsung/tuna/overlay
PRODUCT_AAPT_CONFIG := normal hdpi xhdpi
PRODUCT_PACKAGES := \
- lights.tuna
+ lights.tuna \
+ charger
PRODUCT_PACKAGES += \
sensors.tuna \
@@ -49,6 +50,10 @@ PRODUCT_COPY_FILES := \
device/samsung/tuna/media_profiles.xml:system/etc/media_profiles.xml \
device/samsung/tuna/gps.conf:system/etc/gps.conf
+# charger image
+PRODUCT_COPY_FILES += \
+ system/core/charger/images/charging.png:root/res/images/charging.png
+
# Bluetooth configuration files
PRODUCT_COPY_FILES += \
system/bluetooth/data/main.le.conf:system/etc/bluetooth/main.conf
diff --git a/init.tuna.rc b/init.tuna.rc
index 09970d1..e492373 100755
--- a/init.tuna.rc
+++ b/init.tuna.rc
@@ -156,3 +156,6 @@ service bugreport /system/bin/bugmailer.sh -v
disabled
oneshot
keycodes 114 115 116
+
+service battery_charger /charger
+ class charger
diff --git a/init.tuna.usb.rc b/init.tuna.usb.rc
index 26bcf3c..7233c7a 100644
--- a/init.tuna.usb.rc
+++ b/init.tuna.usb.rc
@@ -1,11 +1,13 @@
-on boot
- write /sys/class/android_usb/android0/iManufacturer $ro.product.manufacturer
- write /sys/class/android_usb/android0/iProduct $ro.product.model
+on init
write /sys/class/android_usb/android0/iSerial $ro.serialno
write /sys/class/android_usb/android0/f_rndis/manufacturer Samsung
write /sys/class/android_usb/android0/f_rndis/vendorID 18d1
write /sys/class/android_usb/android0/f_rndis/wceis 1
+on boot
+ write /sys/class/android_usb/android0/iManufacturer $ro.product.manufacturer
+ write /sys/class/android_usb/android0/iProduct $ro.product.model
+
on property:sys.usb.config=mtp
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 18d1