further cleanup, ppp is default now (fast and stable under ics)
This commit is contained in:
parent
2c1fceee53
commit
7caf73dac6
2
BoardConfig.mk
Normal file → Executable file
2
BoardConfig.mk
Normal file → Executable file
@ -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
|
||||
|
6
leo.mk
6
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
|
||||
|
@ -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
|
16
prebuilt/init.d/97ppp
Executable file
16
prebuilt/init.d/97ppp
Executable file
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
0
prebuilt/ppp/ppp
Executable file
0
prebuilt/ppp/ppp
Executable file
@ -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; )
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user