From b521a675304dc2af41876261eaa0c576006e8cec Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Mon, 12 Dec 2011 01:57:29 +0000 Subject: [PATCH] leo: a few fixes from bravo (credits drewis) --- leo.mk | 14 +++++-- .../base/core/res/res/values/config.xml | 4 +- .../base/core/res/res/xml/storage_list.xml | 41 +++++++++++++++++++ prebuilt/init.htcleo.rc | 9 ++-- 4 files changed, 57 insertions(+), 11 deletions(-) create mode 100644 overlay/frameworks/base/core/res/res/xml/storage_list.xml diff --git a/leo.mk b/leo.mk index af9eb00..75a0592 100755 --- a/leo.mk +++ b/leo.mk @@ -46,7 +46,10 @@ PRODUCT_COPY_FILES += \ frameworks/base/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ frameworks/base/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ frameworks/base/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \ - frameworks/base/data/etc/android.hardware.touchscreen.multitouch.distinct.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.distinct.xml + frameworks/base/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ + frameworks/base/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ + frameworks/base/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \ + frameworks/base/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml # media config xml file PRODUCT_COPY_FILES += \ @@ -63,10 +66,13 @@ PRODUCT_PACKAGES += \ leo-reference-ril \ gps.htcleo \ libgps \ + com.android.future.usb.accessory \ libhtc_ril_wrapper \ - audio.primary.qsd8k \ - audio_policy.qsd8k \ - copybit.qsd8k + audio.a2dp.default \ + audio.primary.htcleo \ + audio_policy.htcleo \ + copybit.htcleo \ + gralloc.htcleo # leo uses high-density artwork where available PRODUCT_LOCALES := hdpi diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index eb3545e..21cacce 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -100,7 +100,7 @@ 0 @@ -112,7 +112,7 @@ - com.android.wallpaper.nexus.NexusWallpaper + com.android.wallpaper/.nexus.NexusWallpaper 0 1 diff --git a/overlay/frameworks/base/core/res/res/xml/storage_list.xml b/overlay/frameworks/base/core/res/res/xml/storage_list.xml new file mode 100644 index 0000000..e1c713a --- /dev/null +++ b/overlay/frameworks/base/core/res/res/xml/storage_list.xml @@ -0,0 +1,41 @@ + + + + + + + + diff --git a/prebuilt/init.htcleo.rc b/prebuilt/init.htcleo.rc index 462cf9d..bd4a4b4 100644 --- a/prebuilt/init.htcleo.rc +++ b/prebuilt/init.htcleo.rc @@ -28,11 +28,7 @@ on fs write /data/drm/rights/mid.txt 0 chmod 0777 /data/drm/rights/mid.txt - setprop vold.post_fs_data_done 1 - -on boot - mount debugfs /sys/kernel/debug /sys/kernel/debug - +on post-fs-data mkdir /data/misc/wifi 0770 wifi wifi mkdir /data/misc/wifi/sockets 0770 wifi wifi mkdir /data/misc/dhcp 0770 dhcp dhcp @@ -40,6 +36,9 @@ on boot setprop vold.post_fs_data_done 1 +on boot + mount debugfs /sys/kernel/debug /sys/kernel/debug + # bluetooth power up/down interface chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state