Permalink
Browse files

minor changes/cleanup/added build.prop and system.prop stuffs

  • Loading branch information...
1 parent ac67654 commit 5774d1ed7ada2938d476c3a1fc50626570357887 @ChiefzReloaded committed Jan 18, 2012
Showing with 73 additions and 7 deletions.
  1. +2 −0 BoardConfig.mk
  2. +4 −3 cm.mk
  3. +53 −0 init.vsnet
  4. +3 −3 startablet.mk
  5. +11 −1 system.prop
View
@@ -72,6 +72,8 @@ BOARD_FLASH_BLOCK_SIZE := 4096
TARGET_PREBUILT_KERNEL := device/lge/startablet/kernel
+BOARD_UMS_LUNFILE := /sys/devices/platform/usb_mass_storage/lun0/file
+
# Wifi related defines
WPA_SUPPLICANT_VERSION := VER_0_8_X
BOARD_WPA_SUPPLICANT_DRIVER := WEXT
View
7 cm.mk
@@ -12,10 +12,11 @@ $(call inherit-product, vendor/cm/config/gsm.mk)
#
PRODUCT_NAME := cm_startablet
PRODUCT_BRAND := lge
-PRODUCT_DEVICE := startablet
-PRODUCT_MODEL := v909
+PRODUCT_DEVICE := v909
+PRODUCT_MODEL := LG-V909
PRODUCT_MANUFACTURER := LGE
-PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=v909 BUILD_ID=HMJ37 BUILD_FINGERPRINT=lge/lge_startablet/v909:3.1/HMJ37/v10o.41FD770E:user/release-keys PRIVATE_BUILD_DESC="startablet-user 3.1 HMJ37 release-keys"
+PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=lge_startablet BUILD_ID=HMJ37 BUILD_FINGERPRINT=lge/lge_startablet/v909:3.1/HMJ37/v10o.41FD770E:user/release-keys PRIVATE_BUILD_DESC="startablet-user 3.1 HMJ37 release-keys"
+CHARACTERISTICS=tablet,nosdcard
# Release name and versioning
PRODUCT_RELEASE_NAME := startablet
View
@@ -0,0 +1,53 @@
+#!/system/bin/sh
+
+cid=$1
+ifaceid=$(($cid-1))
+
+VSNET_IP=`/system/bin/getprop net.pdp$cid.ip`
+GW_IP=`/system/bin/getprop net.vsnet$ifaceid.gw`
+
+case "$VSNET_IP" in
+ "" | "0.0.0.0")
+ /system/bin/log -t vsnet "IP address for cid=$cid is not set"
+ /system/bin/log -t vsnet "Stopping vsnet$ifaceid for cid=$cid"
+
+ ifconfig vsnet$ifaceid 0.0.0.0 down || {
+ /system/bin/log -t vsnet "ifconfig for vsnet$ifaceid failed";
+ /system/bin/setprop "net.pdp$cid.svc_done" "0";
+ exit 1;
+ }
+
+ /system/bin/log -t vsnet "ifconfig for vsnet$ifaceid finished successfully";
+ /system/bin/setprop "net.vsnet$ifaceid.local-ip" ""
+ /system/bin/setprop "net.vsnet$ifaceid.remote-ip" ""
+ /system/bin/setprop net.interfaces.defaultroute ""
+ /system/bin/setprop "net.pdp$cid.svc_done" "1"
+ ;;
+
+ *)
+ /system/bin/log -t vsnet "IP address for cid=$cid is $VSNET_IP"
+ /system/bin/log -t vsnet "Starting vsnet$ifaceid for cid=$cid"
+
+ ifconfig vsnet$ifaceid $VSNET_IP up || {
+ /system/bin/log -t vsnet "ifconfig for vsnet$ifaceid failed";
+ /system/bin/setprop "net.pdp$cid.svc_done" "0";
+ exit 1;
+ }
+
+ case "$GW_IP" in
+ "" | "0.0.0.0")
+ /system/bin/log -t vsnet "Default gateway for vsnet$ifaceid is not set"
+ ;;
+ *)
+ /system/bin/log -t vsnet "Default gateway for vsnet$ifaceid is $GW_IP"
+ route add default gw $GW_IP dev vsnet$ifaceid
+ ;;
+ esac
+
+ /system/bin/log -t vsnet "ifconfig for vsnet$ifaceid finished successfully";
+ /system/bin/setprop "net.vsnet$ifaceid.local-ip" $VSNET_IP
+ /system/bin/setprop "net.vsnet$ifaceid.remote-ip" $VSNET_IP
+ /system/bin/setprop net.interfaces.defaultroute gprs
+ /system/bin/setprop "net.pdp$cid.svc_done" "1"
+ ;;
+esac
View
@@ -99,6 +99,6 @@ PRODUCT_PACKAGES += \
com.android.future.usb.accessory
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
-PRODUCT_NAME := full_startablet
-PRODUCT_DEVICE := startablet
-PRODUCT_MODEL := LG G-Slate
+PRODUCT_NAME := lge_startablet
+PRODUCT_DEVICE := v909
+PRODUCT_MODEL := LG-V909
View
@@ -2,10 +2,20 @@
# system.prop for startablet
#
ro.cwm.prefer_tar=true
+dalvik.vm.heapstartsize=5m
+dalvik.vm.growthlimit=48m
+dalvik.vm.heapgrowthlimit=48m
+dalvik.vm.heapsize=256m
+dalvik.vm.lockprof.threshold=500
+dalvik.vm.dexopt-flags=m=y
ro.opengles.version=131072
+wifi.interface=eth0
+ro.ril.wake_lock_timeout=180000
rild.libpath=/system/lib/lge-ril.so
rild.libargs=-d /dev/ttyspi0
-wifi.interface=eth0
+sys.settings_system_version=2
+wifi.supplicant_scan_interval=15
+drm.service.enabled=1
keyguard.no_require_sim=yes
mobiledata.interfaces=gannet0,vsnet0,vsnet1,vsnet2,vsnet3

0 comments on commit 5774d1e

Please sign in to comment.