Skip to content

Commit

Permalink
i9500: test use open-source charger
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto96 committed Mar 11, 2014
1 parent 1d7cee6 commit ba8aa28
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 108 deletions.
3 changes: 3 additions & 0 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ BOARD_SEPOLICY_UNION := \
BOARD_CHARGING_MODE_BOOTING_LPM := /sys/class/power_supply/battery/batt_lp_charging
BOARD_BATTERY_DEVICE_NAME := battery

# Suspend in charger to disable capacitive keys
BOARD_CHARGER_ENABLE_SUSPEND := true

# Releasetools
#TARGET_RELEASETOOLS_EXTENSIONS := $(LOCAL_PATH)

Expand Down
5 changes: 5 additions & 0 deletions i9500.mk
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ PRODUCT_PACKAGES += \
e2fsck \
setup_fs

# Charger
PRODUCT_PACKAGES += \
charger \
charger_res_images

# GPS
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/gps.cer:system/etc/gps.cer \
Expand Down
47 changes: 0 additions & 47 deletions proprietary-files.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,53 +39,6 @@ lib/libwrappergps.so
# HWC
vendor/lib/hw/gralloc.exynos5.so

# LPM
bin/lpm
media/Disconnected.qmg
media/battery_batteryerror.qmg
media/battery_charging_5.qmg
media/battery_charging_10.qmg
media/battery_charging_15.qmg
media/battery_charging_20.qmg
media/battery_charging_25.qmg
media/battery_charging_30.qmg
media/battery_charging_35.qmg
media/battery_charging_40.qmg
media/battery_charging_45.qmg
media/battery_charging_50.qmg
media/battery_charging_55.qmg
media/battery_charging_60.qmg
media/battery_charging_65.qmg
media/battery_charging_70.qmg
media/battery_charging_75.qmg
media/battery_charging_80.qmg
media/battery_charging_85.qmg
media/battery_charging_90.qmg
media/battery_charging_95.qmg
media/battery_charging_100.qmg
media/battery_error.qmg
media/battery_wireless_charging_10.qmg
media/battery_wireless_charging_100.qmg
media/battery_wireless_charging_15.qmg
media/battery_wireless_charging_20.qmg
media/battery_wireless_charging_25.qmg
media/battery_wireless_charging_30.qmg
media/battery_wireless_charging_35.qmg
media/battery_wireless_charging_40.qmg
media/battery_wireless_charging_45.qmg
media/battery_wireless_charging_5.qmg
media/battery_wireless_charging_50.qmg
media/battery_wireless_charging_55.qmg
media/battery_wireless_charging_60.qmg
media/battery_wireless_charging_65.qmg
media/battery_wireless_charging_70.qmg
media/battery_wireless_charging_75.qmg
media/battery_wireless_charging_80.qmg
media/battery_wireless_charging_85.qmg
media/battery_wireless_charging_90.qmg
media/battery_wireless_charging_95.qmg
media/chargingwarning.qmg

# Media
vendor/firmware/fimc_is_gumi_fw2.bin
vendor/firmware/fimc_is_sec_fw2.bin
Expand Down
66 changes: 5 additions & 61 deletions rootdir/etc/lpm.rc
Original file line number Diff line number Diff line change
Expand Up @@ -2,74 +2,18 @@ on early-init
start ueventd

on init
export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
export LD_LIBRARY_PATH /vendor/lib:/system/lib
export ANDROID_ROOT /system
export ANDROID_DATA /data
export EXTERNAL_STORAGE /sdcard

symlink /system/etc /etc

# Right now vendor lives on the same filesystem as system,
# but someday that may change.
symlink /system/vendor /vendor

mkdir /sdcard
mkdir /preload
mkdir /system
mkdir /data
mkdir /cache
mkdir /efs
mkdir /tmp
mkdir /mnt 0775 root root
#mount /tmp /tmp tmpfs

on early-fs
mount ext4 /dev/block/mmcblk0p20 /system ro wait noatime
mount ext4 /dev/block/mmcblk0p3 /efs noatime nosuid nodev journal_async_commit

mkdir /data/log 0777

chmod 0666 /dev/log/radio
chmod 0666 /dev/log/main
chmod 0666 /dev/log/event
sysclktz 0

on boot
#write /sys/class/sec/switch/usb_sel PDA

# CPU Frequency Governor
# set cpu governor to powersave while in charging mode
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor powersave

# EHCI runtime enable for LPA
write /sys/devices/platform/s5p-ehci/power/control auto

ifup lo
hostname localhost
domainname localdomain

class_start default

service debuggerd /system/bin/debuggerd

## Daemon processes to be run by init.
##
service ueventd /sbin/ueventd
critical

service console /system/bin/sh
console

service playlpm /system/bin/lpm
user root

# adbd is controlled by the persist.service.adb.enable system property
service adbd /sbin/adbd
disabled

# adbd on at boot in emulator
on property:ro.kernel.qemu=1
start adbd

on property:persist.service.adb.enable=1
start adbd

on property:persist.service.adb.enable=0
stop adbd
service battery_charger /charger

0 comments on commit ba8aa28

Please sign in to comment.