diff options
author | Daniel Hillenbrand <daniel.hillenbrand@codeworkx.de> | 2012-06-20 00:09:40 +0200 |
---|---|---|
committer | Daniel Hillenbrand <daniel.hillenbrand@codeworkx.de> | 2012-06-20 00:09:40 +0200 |
commit | e2c3a20a3c7e355c9127b64457b8d19243c260f1 (patch) | |
tree | e6dad8375354905dab4bc11aadf0353d94db3c99 | |
parent | 44cfd4dd340f69f8bd74a306c25fe1fc4028a22b (diff) | |
download | device_samsung_p5100-e2c3a20a3c7e355c9127b64457b8d19243c260f1.zip device_samsung_p5100-e2c3a20a3c7e355c9127b64457b8d19243c260f1.tar.gz device_samsung_p5100-e2c3a20a3c7e355c9127b64457b8d19243c260f1.tar.bz2 |
charging mode
-rw-r--r-- | BoardConfigCommon.mk | 5 | ||||
-rwxr-xr-x | init.espresso10.rc | 20 | ||||
-rwxr-xr-x | p51xx-common.mk | 5 | ||||
-rw-r--r-- | res/charger/battery_0.png | bin | 0 -> 5515 bytes | |||
-rw-r--r-- | res/charger/battery_1.png | bin | 0 -> 5549 bytes | |||
-rw-r--r-- | res/charger/battery_2.png | bin | 0 -> 5548 bytes | |||
-rw-r--r-- | res/charger/battery_3.png | bin | 0 -> 5548 bytes | |||
-rw-r--r-- | res/charger/battery_4.png | bin | 0 -> 5548 bytes | |||
-rw-r--r-- | res/charger/battery_5.png | bin | 0 -> 5522 bytes | |||
-rw-r--r-- | res/charger/battery_charge.png | bin | 0 -> 7126 bytes | |||
-rw-r--r-- | res/charger/battery_fail.png | bin | 0 -> 7051 bytes |
11 files changed, 22 insertions, 8 deletions
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 591f1a8..a034ff0 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -102,7 +102,10 @@ BOARD_USES_MMCUTILS := true BOARD_HAS_NO_MISC_PARTITION := true BOARD_HAS_NO_SELECT_BUTTON := true -TARGET_SPECIFIC_HEADER_PATH := device/samsung/p5100/include +# Charging mode +BOARD_CHARGER_RES := device/samsung/p5100/res/charger + +TARGET_SPECIFIC_HEADER_PATH := device/samsung/p5100/overlay/include # Use the non-open-source parts, if they're present -include vendor/samsung/p51xx/BoardConfigVendor.mk diff --git a/init.espresso10.rc b/init.espresso10.rc index 4dc64a8..f4c2c6a 100755 --- a/init.espresso10.rc +++ b/init.espresso10.rc @@ -345,15 +345,21 @@ on property:ro.bootmode=charger mount ext4 /dev/block/platform/omap/omap_hsmmc.1/by-name/FACTORYFS /system wait ro on property:ro.bootmode=charger - start pvrsrvinit + write /sys/class/android_usb/android0/enable 0 + write /sys/class/android_usb/android0/idVendor 04e8 + write /sys/class/android_usb/android0/idProduct 6860 + write /sys/class/android_usb/android0/functions adb + write /sys/class/android_usb/android0/enable 1 + write /sys/class/android_usb/android0/iManufacturer samsung + write /sys/class/android_usb/android0/iProduct GT-I9100G + start adbd on property:ro.bootmode=charger - class_start sec_charger + start pvrsrvinit -service playlpm /system/bin/playlpm - class sec_charger - user root +on property:ro.bootmode=charger + class_start charger -service lpmkey /system/bin/lpmkey - class sec_charger +service charger /charger + class charger user root diff --git a/p51xx-common.mk b/p51xx-common.mk index bb95219..d106e60 100755 --- a/p51xx-common.mk +++ b/p51xx-common.mk @@ -99,6 +99,11 @@ PRODUCT_PACKAGES += \ make_ext4fs \ setup_fs +# Charger +PRODUCT_PACKAGES += \ + charger \ + charger_res_images + # These are the hardware-specific features PRODUCT_COPY_FILES += \ frameworks/base/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \ diff --git a/res/charger/battery_0.png b/res/charger/battery_0.png Binary files differnew file mode 100644 index 0000000..38b888c --- /dev/null +++ b/res/charger/battery_0.png diff --git a/res/charger/battery_1.png b/res/charger/battery_1.png Binary files differnew file mode 100644 index 0000000..03f4226 --- /dev/null +++ b/res/charger/battery_1.png diff --git a/res/charger/battery_2.png b/res/charger/battery_2.png Binary files differnew file mode 100644 index 0000000..296959e --- /dev/null +++ b/res/charger/battery_2.png diff --git a/res/charger/battery_3.png b/res/charger/battery_3.png Binary files differnew file mode 100644 index 0000000..97a5dfd --- /dev/null +++ b/res/charger/battery_3.png diff --git a/res/charger/battery_4.png b/res/charger/battery_4.png Binary files differnew file mode 100644 index 0000000..63865c2 --- /dev/null +++ b/res/charger/battery_4.png diff --git a/res/charger/battery_5.png b/res/charger/battery_5.png Binary files differnew file mode 100644 index 0000000..eec62b0 --- /dev/null +++ b/res/charger/battery_5.png diff --git a/res/charger/battery_charge.png b/res/charger/battery_charge.png Binary files differnew file mode 100644 index 0000000..c1d2856 --- /dev/null +++ b/res/charger/battery_charge.png diff --git a/res/charger/battery_fail.png b/res/charger/battery_fail.png Binary files differnew file mode 100644 index 0000000..9099d02 --- /dev/null +++ b/res/charger/battery_fail.png |