diff --git a/BoardConfig.mk b/BoardConfig.mk old mode 100644 new mode 100755 index d4e1ee5..548d353 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -103,7 +103,7 @@ COMMON_GLOBAL_CFLAGS += -DEGL_TRACE BOARD_USES_QCOM_LIBS := true BOARD_USES_QCOM_HARDWARE := true -#TARGET_CUSTOM_RELEASETOOL := device/htc/leo/releasetools/squisher +TARGET_CUSTOM_RELEASETOOL := device/htc/leo/releasetools/squisher # # cat /proc/mtd # dev: size erasesize name diff --git a/leo.mk b/leo.mk index 027a21d..459e785 100644 --- a/leo.mk +++ b/leo.mk @@ -100,7 +100,8 @@ PRODUCT_COPY_FILES += \ # This file is used to install the enable RMNET and corresponding modules which dont get activated by normal module script, mount cache so that downloads work correctly PRODUCT_COPY_FILES += \ - device/htc/leo/prebuilt/init.d/01modules:system/etc/init.d/01modules + device/htc/leo/prebuilt/init.d/01modules:system/etc/init.d/01modules \ + device/htc/leo/prebuilt/init.d/97ppp:system/etc/init.d/97ppp # Sensors PRODUCT_PACKAGES += \ @@ -170,7 +171,7 @@ PRODUCT_PROPERTY_OVERRIDES += \ dalvik.vm.heapgrowthlimit=48m \ dalvik.vm.heapstartsize=5m \ dalvik.vm.dexopt-data-only=1 \ - windowsmgr.max_events_per_sec=120 + windowsmgr.max_events_per_sec=180 # HardwareRenderer properties # dirty_regions: "false" to disable partial invalidates, override if enabletr=true @@ -211,6 +212,7 @@ PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \ device/htc/leo/prebuilt/ppp/ip-up:system/etc/ppp/ip-up \ device/htc/leo/prebuilt/ppp/ip-down:system/etc/ppp/ip-down \ + device/htc/leo/prebuilt/ppp/ppp:system/ppp \ device/htc/leo/prebuilt/ppp/options:system/etc/ppp/options # Kernel Modules diff --git a/prebuilt/init.d/02cachesd b/prebuilt/init.d/02cachesd deleted file mode 100755 index a5a7a9c..0000000 --- a/prebuilt/init.d/02cachesd +++ /dev/null @@ -1,11 +0,0 @@ -#!/system/bin/sh - -cache_partition=`grep cache /proc/mtd | cut -d: -f1 | sed 's/mtd/mtdblock/'` - -umount /cache -rmdir /cache -mkdir /mnt/cache -mkdir /data/cache -mount -t yaffs2 -o rw /dev/block/$cache_partition /mnt/cache -ln -s /data/cache /cache -ln -s /mnt/cache/recovery /cache/recovery diff --git a/prebuilt/init.d/97ppp b/prebuilt/init.d/97ppp new file mode 100755 index 0000000..177eaeb --- /dev/null +++ b/prebuilt/init.d/97ppp @@ -0,0 +1,16 @@ +#!/system/bin/sh + +chown 1001.1001 /dev/smd1 +touch /etc/ppp/active +touch /etc/ppp/pap-secrets +touch /etc/ppp/chap-secrets +touch /etc/ppp/options.smd +touch /etc/ppp/options.smd1 +touch /etc/ppp/ppp-gprs.pid +touch /etc/ppp/resolv.conf +chown 0.1001 /system/etc/ppp/* +chmod 775 /system/etc/ppp/* +chown 0.0 /system/bin/pppd +chmod 4755 /system/bin/pppd +#/system/bin/pppd /dev/smd1 defaultroute + diff --git a/prebuilt/init.htcleo.rc b/prebuilt/init.htcleo.rc index efe8424..d353bcd 100644 --- a/prebuilt/init.htcleo.rc +++ b/prebuilt/init.htcleo.rc @@ -27,8 +27,6 @@ on post-fs-data mount rootfs rootfs / remount - mkdir /cache/dalvik-cache 0771 system system - mkdir /data/misc/wifi 0770 wifi wifi mkdir /data/misc/wifi/sockets 0770 wifi wifi mkdir /data/misc/dhcp 0770 dhcp dhcp diff --git a/prebuilt/media_a1026.mk b/prebuilt/media_a1026.mk deleted file mode 100644 index e26d144..0000000 --- a/prebuilt/media_a1026.mk +++ /dev/null @@ -1,30 +0,0 @@ -# -# Copyright (C) 2009 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# -# This file describes the use of the A1026 chip by the media -# framework using system properties. -# -# Note: The property key and value has some length -# limit as defined by PROPERTY_KEY_MAX and -# PROPERTY_VALUE_MAX, respectively -# -# WARNING: We may not use system properties for specifying -# media capabilities and profiles in the future -# -PRODUCT_PROPERTY_OVERRIDES += \ - media.a1026.nsForVoiceRec = 0 \ - media.a1026.enableA1026 = 1 diff --git a/prebuilt/ppp/ppp b/prebuilt/ppp/ppp new file mode 100755 index 0000000..e69de29 diff --git a/releasetools/squisher b/releasetools/squisher index be1b7c1..4c30255 100755 --- a/releasetools/squisher +++ b/releasetools/squisher @@ -125,12 +125,6 @@ $SED -i \ -e '/ro\.build\.type/s/eng/user/' \ $REPACK/ota/system/build.prop -# Include device specific script -if [ "$TARGET_PRODUCT" = "cm_leo" ]; then - . $ANDROID_BUILD_TOP/device/htc/leo/releasetools/squisher.sh -fi - - # Delete unnecessary binaries ( cd $REPACK/ota/system/bin; echo $DELETE_BINS | xargs rm -f; ) diff --git a/releasetools/squisher.sh b/releasetools/squisher.sh deleted file mode 100755 index 4a88988..0000000 --- a/releasetools/squisher.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -# This script is included in squisher -# It is the final build step (after OTA package) - -echo "updater-script: Making MAGLDR Compatible Update script" -cd $REPACK/ota/META-INF/com/google/android -echo 'mount("yaffs2", "MTD", "boot", "/boot");' >> temp -echo 'package_extract_dir("boot", "/boot");' >> temp -echo 'unmount("/boot");' >> temp -grep -vw assert updater-script >> temp -rm -rf updater-script -grep -vw boot.img temp > updater-script -rm -rf temp - -cd $REPACK/ota -echo "Removing: $REPACK/ota/boot.img" -rm -rf $REPACK/ota/boot.img -echo "Removing: $REPACK/ota/boot" -rm -rf $REPACK/ota/boot - -echo "Copying: $OUT/boot ($REPACK/ota/boot)" -cp -a $OUT/boot $REPACK/ota/boot - -if [ ! -e $REPACK/ota/boot/initrd.gz ] ; then - echo "Copying: $OUT/ramdisk.img ($REPACK/ota/boot/initrd.gz)" - cp -a $OUT/ramdisk.img $REPACK/ota/boot/initrd.gz -fi -