diff --git a/BoardConfig.mk b/BoardConfig.mk index 1603e0d..010d9d9 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -46,6 +46,10 @@ BOARD_KERNEL_BASE := 0x02E00000 BOARD_HAVE_BLUETOOTH := true +# For the FM Radio +BOARD_HAVE_FM_RADIO := false +BOARD_WITH_A2DP := true + BOARD_HAS_LIMITED_EGL:=true BOARD_VENDOR_USE_AKMD := akm8973 diff --git a/Changelog-SPQRom.txt b/Changelog-SPQRom.txt deleted file mode 100644 index 46715c7..0000000 --- a/Changelog-SPQRom.txt +++ /dev/null @@ -1,78 +0,0 @@ -0.7: --Using layout overrides for QVGA resolution from Wildfire --Handling of compcache % settings in CyanogenMod menu -From Cyanogen changelog: -* Common: ADWLauncher 1.3.3 - Ander Webbs -* Common: Optional overscrolling - Google, Arcee, Robert Burns -* Common: Messaging/Phone sliders on lockscreen - Rodolfo Hurtado -* Common: Lockscreen gestures - Michael Webster -* Common: Bluetooth FTP server profile - CodeAurora -* Common: New wallpapers - Prash -* Common: Super duper unified flashlights - Michael Webster -* Common: Launch applications via DeskClock - Evan Charlton - -0.6: --Use ARMv6 optimizations -From Cyanogen changelog: -* Common: Various bugfixes from AOSP and CodeAurora -* Common: ADWLauncher 1.2.0 - Ander Webbs -* Common: Notification category support - Pedlar -* Common: Galaxy S style power widget in notification bar - Pedlar -* Common: Autodetect if we should use /cache for system dex files - Kali- -* Common: Quick PIN unlock - gsarrica -* Common: Skia performance enhancements - CodeAurora -* Common: APN list update - Paul Weiss -* Common: Fix AGPS issues on all platforms -* Common: Ability to customize location to save attachments in MMS - Wes Garner -* Common: Dismiss notifications by swiping - Evan Charlton -* Common: Enabled Sound Recorder app -* Common: Bluetooth OBEX performance boost - Sony -* Common: Updated Terminal Emulator app - Jack Palevich -* Common: Updated headset drawables - blunden - - -0.5: --Fixed phone call with bluetooth handsfree/headset --Updated to Android 2.2.1 and latest cyanogen 6.1 sources -From Cyanogen changelog: -* ADWLauncher 1.1.5 - Ander Webbs -* Configurable audio focus for music app - Jonas Larsson -* APN cleanup (fixes many issues with GPS and MMS) - Cyanogen -* AudioDSP updates - Antti S. Lankila -* Status bar themes - Michael Webster -* Email app updates - Michael Webster -* Notification "quiet hours" - Evan Charlton -* Superuser 2.3.6 - Adam Shanks (ChainsDD) -* Control locking of MMS app in memory - Julian J. M -* Kill foreground app by long-pressing back - Evan Charlton -* New AppWidgetPicker dialog - boombuler@XDA -* FileManager app - OpenIntents -* Anonymous install statistics gathering - Chris Soyars -* Dual-mode snooze (long press dismiss) - Evan Charlton -* Compose SMS/MMS via search button long press - Wes Garner - -0.4.1: --Fixed libGps, should not cause issues anymore. - -0.4: --Fixed Network Operators Search --Added ipv6 modules in kernel --Revised layout of Lock Screen, PIN Unlock Screen and Password Unlock Screen --Sync with last Cyanogen sources, new headset icon in status bar. - -0.3: --LatinIME setted as default keyboard --Camera should not drain battery now --Resolve video issues and enabled streaming from Browser --Added TattooCalibration.apk - -0.2: --Disabled menu button in lock screen --Update to lastest CM6 stable release --Cyanogen Compcache setting activated --Included Chinese and Japanese Keyboard --Revisited Layout of Latin Keyboard and USB Storage Dialog for QVGA - -0.1: -Initial Release - diff --git a/custom/init.d/00sysctl b/custom/init.d/00sysctl deleted file mode 100644 index 280bc9a..0000000 --- a/custom/init.d/00sysctl +++ /dev/null @@ -1,3 +0,0 @@ -#!/system/bin/sh - -sysctl -p diff --git a/custom/init.d/01dalvikcache b/custom/init.d/01dalvikcache deleted file mode 100644 index c83cc91..0000000 --- a/custom/init.d/01dalvikcache +++ /dev/null @@ -1,17 +0,0 @@ -#!/system/bin/sh - -# - Move /data/dalvik-cache to /cache partition -# - Get the idea from Cyanogen ROM-5.0.4.1 -if [ ! -d /cache/dalvik-cache ] -then - mkdir /cache/dalvik-cache - chown system.system /cache/dalvik-cache - chmod 0771 /cache/dalvik-cache -fi - -mount -o bind /cache/dalvik-cache /data/dalvik-cache -# double-check the perms -chown system.system /data/dalvik-cache -chmod 0771 /data/dalvik-cache - -exit 0 diff --git a/custom/init.d/02squashfs b/custom/init.d/02squashfs deleted file mode 100644 index ef00e25..0000000 --- a/custom/init.d/02squashfs +++ /dev/null @@ -1,13 +0,0 @@ -#!/system/bin/sh - -# - SquashFS mounted. -setprop fy.modules.mounted 0 - -if [ -f /system/squashfs/modules.sqf ] -then - busybox losetup /dev/block/loop0 /system/squashfs/modules.sqf - busybox mount -o ro -t squashfs /dev/block/loop0 /system/lib/modules - setprop fy.modules.mounted 1 -fi - -exit 0 diff --git a/custom/init.d/08compcache b/custom/init.d/08compcache index 38225c4..98dc7a1 100644 --- a/custom/init.d/08compcache +++ b/custom/init.d/08compcache @@ -1,30 +1,37 @@ #!/system/bin/sh - +L="log -p i -t cm" # - load compcache module -MEMTOTAL=$( awk '{ if ($1 eq "MemTotal:") print $2 ;exit }' /proc/sys/vm/drop_caches - echo 30 > /proc/sys/vm/swappiness + $L "Kalim Compcache: TAAMAÑO PREDEF CACHE: " $CCSIZE + $L "Kalim Compcache: Modulos cargar RAMZSWAP" insmod /system/lib/modules/ramzswap.ko disksize_kb=$CCSIZE + $L "Kalim Compcache: Modulos cargar SWAP" busybox swapon /dev/block/ramzswap0 + $L "Kalim Compcache: Modulo ramzswap cargado en SWAP" fi exit 0 diff --git a/custom/init.d/20opt_and_fix b/custom/init.d/20opt_and_fix index 7a4e3f1..19b4a44 100644 --- a/custom/init.d/20opt_and_fix +++ b/custom/init.d/20opt_and_fix @@ -1,4 +1,6 @@ #!/system/bin/sh +L="log -p i -t cm" +$L " Kalim iniciado optandfix"; # - no need to set higher echo '1' > /sys/devices/virtual/block/mtdblock4/queue/iosched/fifo_batch diff --git a/custom/init.d/80userinit b/custom/init.d/80userinit index e5ebca7..9f8c115 100644 --- a/custom/init.d/80userinit +++ b/custom/init.d/80userinit @@ -1,4 +1,6 @@ #!/system/bin/sh +L="log -p i -t cm" +$L "Kalim iniciado userinit"; # - run customized shell at boot time userscript="/data/local/bin/autostart.sh" diff --git a/custom/init.d/99complete b/custom/init.d/99complete index 259d7e2..cfde4b2 100644 --- a/custom/init.d/99complete +++ b/custom/init.d/99complete @@ -1,5 +1,6 @@ #!/system/bin/sh +L="log -p i -t cm" +$L " Kalim iniciado complete"; sync -setprop fy.filesystem.ready 1 diff --git a/custom/modules.sqf b/custom/modules.sqf deleted file mode 100755 index 5c84287..0000000 Binary files a/custom/modules.sqf and /dev/null differ diff --git a/custom/tattoo-hack.ko b/custom/tattoo-hack.ko deleted file mode 100644 index d534640..0000000 Binary files a/custom/tattoo-hack.ko and /dev/null differ diff --git a/device_tattoo-vendor-blobs.mk b/device_tattoo-vendor-blobs.mk index 9be40a5..7ceb0df 100644 --- a/device_tattoo-vendor-blobs.mk +++ b/device_tattoo-vendor-blobs.mk @@ -3,26 +3,27 @@ PRODUCT_COPY_FILES += \ device/htc/tattoo/custom/logo.rle:root/logo.rle \ device/htc/tattoo/proprietary/libgps.so:obj/lib/libgps.so -# proprietary for /system/squashfs -PRODUCT_COPY_FILES += \ - device/htc/tattoo/custom/modules.sqf:system/squashfs/modules.sqf - # Files in /system/etc PRODUCT_COPY_FILES += \ device/htc/tattoo/custom/passwd:system/etc/passwd \ - device/htc/tattoo/custom/init.d/00sysctl:system/etc/init.d/00sysctl \ - device/htc/tattoo/custom/init.d/02squashfs:system/etc/init.d/02squashsf \ device/htc/tattoo/custom/init.d/08compcache:system/etc/init.d/08compcache \ device/htc/tattoo/custom/init.d/20opt_and_fix:system/etc/init.d/20opt_and_fix \ device/htc/tattoo/custom/init.d/80userinit:system/etc/init.d/80userinit \ device/htc/tattoo/custom/init.d/99complete:system/etc/init.d/99complete \ device/htc/tattoo/custom/sysctl.conf:system/etc/sysctl.conf \ - device/htc/tattoo/custom/placeholder:system/lib/modules/placeholder + device/htc/tattoo/custom/permissions/android.hardware.camera.autofocus.xml:system/etc/permissions/android.hardware.camera.autofocus.xml \ + device/htc/tattoo/custom/placeholder:system/lib/modules/placeholder \ + device/htc/tattoo/custom/modules/wlan.ko:system/lib/modules/wlan.ko \ + device/htc/tattoo/custom/modules/lzo_compress.ko:system/lib/modules/lzo_compress.ko \ + device/htc/tattoo/custom/modules/lzo_decompress.ko:system/lib/modules/lzo_decompress.ko \ + device/htc/tattoo/custom/modules/xvmalloc.ko:system/lib/modules/xvmalloc.ko \ + device/htc/tattoo/custom/modules/ramzswap.ko:system/lib/modules/ramzswap.ko \ + device/htc/tattoo/custom/modules/tattoo-hack.ko:system/lib/modules/tattoo-hack.ko # Tattoo Calibration app PRODUCT_COPY_FILES += \ device/htc/tattoo/custom/TattooCalibration.apk:system/app/TattooCalibration.apk - + # proprietary for /system/sbin PRODUCT_COPY_FILES += \ device/htc/tattoo/custom/dropbear:system/xbin/dropbear \ @@ -36,7 +37,7 @@ PRODUCT_COPY_FILES += \ # boot partition PRODUCT_COPY_FILES += \ - device/htc/tattoo/custom/tattoo-hack.ko:root/sbin/tattoo-hack.ko \ + device/htc/tattoo/custom/modules/tattoo-hack.ko:root/lib/modules/tattoo-hack.ko \ # Other bin stuff PRODUCT_COPY_FILES += \ @@ -57,6 +58,10 @@ PRODUCT_COPY_FILES += \ device/htc/tattoo/proprietary/libOmxH264Dec.so:system/lib/libOmxH264Dec.so \ device/htc/tattoo/proprietary/libOmxMpeg4Dec.so:system/lib/libOmxMpeg4Dec.so \ device/htc/tattoo/proprietary/libOmxVidEnc.so:system/lib/libOmxVidEnc.so \ + device/htc/tattoo/proprietary/libmmcamera.so:system/lib/libmmcamera.so \ + device/htc/tattoo/proprietary/libmm-qcamera-tgt.so:system/lib/libmm-qcamera-tgt.so \ + device/htc/tattoo/proprietary/libqcamera.so:system/lib/libqcamera.so \ + device/htc/tattoo/proprietary/libmmjpeg.so:system/lib/libmmjpeg.so \ device/htc/tattoo/proprietary/libmm-adspsvc.so:system/lib/libmm-adspsvc.so \ device/htc/tattoo/proprietary/libhtc_acoustic.so:system/lib/libhtc_acoustic.so \ device/htc/tattoo/proprietary/libhtc_ril.so:system/lib/libhtc_ril.so \ diff --git a/device_tattoo.mk b/device_tattoo.mk index 52a9d5b..db6f17a 100644 --- a/device_tattoo.mk +++ b/device_tattoo.mk @@ -34,7 +34,8 @@ PRODUCT_PACKAGES := \ LiveWallpapersPicker \ librs_jni -#Gallery 2d +#Gallery 3d o 2D +#PRODUCT_PACKAGES += Gallery3D PRODUCT_PACKAGES += Gallery # Pick up overlay for features that depend on non-open-source files @@ -69,6 +70,7 @@ PRODUCT_PROPERTY_OVERRIDES += \ ro.ril.gprsclass=12 \ ro.ril.htcmaskw1.bitmask = 4294967295 \ ro.ril.htcmaskw1 = 14449 \ + ro.compcache.default=1 \ ro.ril.def.agps.mode = 2 # Time between scans in seconds. Keep it high to minimize battery drain. @@ -76,7 +78,7 @@ PRODUCT_PROPERTY_OVERRIDES += \ # but none are in range. PRODUCT_PROPERTY_OVERRIDES += \ wifi.interface = tiwlan0 \ - wifi.supplicant_scan_interval=45 + wifi.supplicant_scan_interval=60 # density in DPI of the LCD of this board. This is used to scale the UI # appropriately. If this property is not defined, the default value is 120 dpi. diff --git a/extract-files.sh b/extract-files.sh index 19da341..38d9d4e 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -45,3 +45,7 @@ adb pull /system/usr/keychars/qwerty2.kcm.bin proprietary adb pull /system/lib/hw/sensors.bahamas.so proprietary adb pull /system/etc/spn-conf.xml proprietary adb pull /system/etc/voicemail-conf.xml proprietary +adb pull /system/lib/hw/libqcamera.so proprietary +adb pull /system/lib/hw/libmm-qcamera-tgt.so proprietary +adb pull /system/lib/hw/libmmjpeg.so proprietary +adb pull /system/etc/libmmcamera.so proprietary diff --git a/full_tattoo.mk b/full_tattoo.mk index 6ee2a04..167f8bc 100644 --- a/full_tattoo.mk +++ b/full_tattoo.mk @@ -20,6 +20,7 @@ # # Inherit from those products. Most specific first. +#$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk) $(call inherit-product, device/htc/tattoo/device_tattoo_eu.mk) @@ -29,6 +30,14 @@ $(call inherit-product, device/htc/common/common.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/full.mk) # Discard inherited values and use our own instead. -PRODUCT_NAME := full_tattoo -PRODUCT_DEVICE := tattoo -PRODUCT_MODEL := Full Android on Tattoo +PRODUCT_NAME := KalimROM_6.2.0 +PRODUCT_DEVICE := KalimROM +PRODUCT_MODEL := KalimochoAzucarado +#PRODUCT_LOCALES := es_ES +ro.product.locale.language=es +ro.product.locale.region=ES +ro.product.name=Kalim2010 +ro.product.device=tattoo-Kalim +ro.build.product=tattoo-Kalim +ro.rommanager.developerid=KalimochoAzucarado +ro.modversion=CyanogenMod-6.2.0-RC1-Kalim diff --git a/init.rc b/init.rc index af6fc4d..d06e80d 100755 --- a/init.rc +++ b/init.rc @@ -24,7 +24,7 @@ loglevel 3 symlink /system/lib /lib # make /system partition writable - insmod /sbin/tattoo-hack.ko + insmod /lib/modules/tattoo-hack.ko # create mountpoints mkdir /mnt 0775 root system @@ -271,6 +271,9 @@ on boot chown system system /sys/kernel/ipv4/tcp_rmem_max chown root radio /proc/cmdline + # Kalim Change fb0 permissions to enable write ( copybiterror ) + chmod 666 /dev/graphics/fb0 + # Define TCP buffer sizes for various networks # ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax, setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208 diff --git a/kernel b/kernel index 9fb6c8e..699e134 100755 Binary files a/kernel and b/kernel differ diff --git a/market-patch.diff b/market-patch.diff deleted file mode 100644 index c6ff179..0000000 --- a/market-patch.diff +++ /dev/null @@ -1,74 +0,0 @@ -diff -ru com/android/vending/model/DeviceConfiguration$ScreenLayoutSize.smali com/android/vending/model/DeviceConfiguration$ScreenLayoutSize.smali ---- com/android/vending/model/DeviceConfiguration$ScreenLayoutSize.smali 2010-11-04 00:54:16.000000000 +0100 -+++ com/android/vending/model/DeviceConfiguration$ScreenLayoutSize.smali 2010-11-04 00:55:05.000000000 +0100 -@@ -48,7 +48,7 @@ - - const/4 v4, 0x2 - -- const/4 v3, 0x1 -+ const/4 v3, 0x2 - - const/4 v2, 0x0 - -diff -ru com/android/vending/model/DeviceConfiguration.smali com/android/vending/model/DeviceConfiguration.smali ---- com/android/vending/model/DeviceConfiguration.smali 2010-11-04 00:54:16.000000000 +0100 -+++ com/android/vending/model/DeviceConfiguration.smali 2010-11-04 00:55:05.000000000 +0100 -@@ -1202,7 +1202,7 @@ - .end method - - .method public setScreenDensity(I)Lcom/android/vending/model/DeviceConfiguration; -- .registers 4 -+ .registers 5 - .parameter "screenDensity" - - .prologue -@@ -1211,14 +1211,16 @@ - - const/4 v1, 0x7 - -- invoke-virtual {v0, v1, p1}, Lcom/google/common/io/protocol/ProtoBuf;->setInt(II)V -+ const/16 v2, 0xa0 -+ -+ invoke-virtual {v0, v1, v2}, Lcom/google/common/io/protocol/ProtoBuf;->setInt(II)V - - .line 297 - return-object p0 - .end method - - .method public setScreenHeight(I)Lcom/android/vending/model/DeviceConfiguration; -- .registers 4 -+ .registers 5 - .parameter "screenHeight" - - .prologue -@@ -1227,7 +1229,9 @@ - - const/16 v1, 0xd - -- invoke-virtual {v0, v1, p1}, Lcom/google/common/io/protocol/ProtoBuf;->setInt(II)V -+ const/16 v2, 0x1e0 -+ -+ invoke-virtual {v0, v1, v2}, Lcom/google/common/io/protocol/ProtoBuf;->setInt(II)V - - .line 319 - return-object p0 -@@ -1254,7 +1258,7 @@ - .end method - - .method public setScreenWidth(I)Lcom/android/vending/model/DeviceConfiguration; -- .registers 4 -+ .registers 5 - .parameter "screenWidth" - - .prologue -@@ -1263,7 +1267,9 @@ - - const/16 v1, 0xc - -- invoke-virtual {v0, v1, p1}, Lcom/google/common/io/protocol/ProtoBuf;->setInt(II)V -+ const/16 v2, 0x140 -+ -+ invoke-virtual {v0, v1, v2}, Lcom/google/common/io/protocol/ProtoBuf;->setInt(II)V - - .line 308 - return-object p0 diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml old mode 100644 new mode 100755 index 8f86d14..8a952a4 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -1,4 +1,4 @@ - + - usb\\d + usb\\d + "usb0" - - - tiwlan\\d - - + - "rmnet\\d" - "tiwlan\\d" + "rmnet\\d" + "eth\\d" + + + + + "wl0.1" - false + true @@ -252,8 +254,17 @@ Zone N: array[N - 1] <= LUX < array[N] Zone N + 1: array[N] <= LUX < infinity - Must be overridden in platform specific overlays --> + Must be overridden in platform specific overlays --> + 11 + 41 + 91 + 161 + 226 + 321 + 641 + 1281 + 2601 + 66 + 66 + 103 + 103 + 103 + 152 + 152 + 255 + 255 + 255 - + + 255 + 255 + 255 + 255 + 225 + 0 + 0 + 0 + 0 + 0 + 255 + 255 + 255 + 255 + 225 + 0 + 0 + 0 + 0 + 0 - false + true