Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 8 commits
  • 10 files changed
  • 3 commit comments
  • 1 contributor
7 cm.mk
View
@@ -7,10 +7,11 @@ $(call inherit-product, vendor/cm/config/gsm.mk)
# Inherit some common CM stuff.
$(call inherit-product, vendor/cm/config/common_full_phone.mk)
-# Spoof stock gingerbread fingerprint for now
+# Spoof stock fingerprint for now
PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=one_touch_995_ALEU \
- BUILD_FINGERPRINT=TCT/one_touch_995_ALEU/one_touch_995_gsm:2.3.6/GINGERBREAD/v60J-0:user/release-keys \
- PRIVATE_BUILD_DESC="one_touch_995_ALEU-user 2.3.6 GINGERBREAD v60J-0 release-keys"
+ BUILD_FINGERPRINT=TCT/one_touch_995_ALFR/one_touch_995_gsm:4.0.4/IceCreamSandwich/531:user/release-keys \
+ PRIVATE_BUILD_DESC="one_touch_995_ALFR-user 4.0.4 IceCreamSandwich 531 release-keys"
+
# Boot Animation
TARGET_SCREEN_HEIGHT := 800
TARGET_SCREEN_WIDTH := 480
10 cocktail.mk
View
@@ -11,6 +11,7 @@ DEVICE_PACKAGE_OVERLAYS += device/alcatel/cocktail/overlay
# init.rc and ueventd.rc
PRODUCT_COPY_FILES += \
device/alcatel/cocktail/init.cocktail.rc:root/init.cocktail.rc \
+ device/alcatel/cocktail/init.cocktail.usb.rc:root/init.cocktail.usb.rc \
device/alcatel/cocktail/ueventd.cocktail.rc:root/ueventd.cocktail.rc
# vold
@@ -83,18 +84,23 @@ PRODUCT_PACKAGES += \
libmm-omxcore \
libdivxdrmdecrypt
+# Ship Torch
+PRODUCT_PACKAGES += Torch
+
PRODUCT_PROPERTY_OVERRIDES += \
ro.sf.lcd_density=240 \
ro.opengles.version=131072 \
wifi.interface=wlan0
-# Radio properties
+# System properties
PRODUCT_PROPERTY_OVERRIDES += \
rild.libpath=/system/lib/libril-qc-qmi-1.so \
rild.libargs=-d/dev/smd0 \
ro.ril.hsxpa=1 \
ro.ril.gprsclass=10 \
- ro.telephony.ril_class=QualcommSharedRIL
+ ro.telephony.ril_class=QualcommSharedRIL \
+ ro.bt.bdaddr_path=/system/etc/bluetooth/bdaddr.txt \
+ persist.sys.usb.config=mass_storage \
$(call inherit-product, build/target/product/full.mk)
15 init.cocktail.rc
View
@@ -1,3 +1,5 @@
+import init.cocktail.usb.rc
+
on early-init
export EXTERNAL_STORAGE /mnt/sdcard
mkdir /mnt/sdcard 0000 system system
@@ -5,6 +7,9 @@ on early-init
# for backwards compatibility
symlink /mnt/sdcard /sdcard
+on boot
+ mount debugfs /sys/kernel/debug /sys/kernel/debug
+
on emmc-fs
wait /dev/block/mmcblk0
mount ext4 /dev/block/mmcblk0p14 /system nodev barrier=1
@@ -17,6 +22,9 @@ on emmc-fs
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
+ # torch
+ chown camera camera /sys/class/leds/SGM3140_torch_flash/mode
+
# qmux stuff
mkdir /dev/socket/qmux_radio 0770 radio radio
chmod 2770 /dev/socket/qmux_radio
@@ -60,6 +68,13 @@ service iprenew_p2p /system/bin/dhcpcd -n p2p
disabled
oneshot
+service hciattach /system/bin/brcm_patchram_plus --enable_hci --no2bytes --tosleep 50000 --baudrate 3000000 --use_baudrate_for_download --patchram /system/etc/firmware/bcm4330.hcd /dev/ttyHS0
+ class main
+ user bluetooth
+ group qcom_oncrpc bluetooth net_bt_admin
+ disabled
+ oneshot
+
service qmiproxy /system/bin/qmiproxy
class main
user radio
42 init.cocktail.usb.rc
View
@@ -0,0 +1,42 @@
+on boot
+ write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer}
+ write /sys/class/android_usb/android0/iProduct ${ro.product.model}
+ write /sys/class/android_usb/android0/iSerial ${ro.serialno}
+ write /sys/class/android_usb/android0/f_mass_storage/inquiry_string "Alcatel OT-995 0100"
+ write /sys/class/android_usb/android0/f_rndis/wceis 1
+
+on property:sys.usb.config=mass_storage
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 05c6
+ write /sys/class/android_usb/android0/idProduct 9026
+ write /sys/class/android_usb/android0/functions ${sys.usb.config}
+ write /sys/class/android_usb/android0/enable 1
+ setprop sys.usb.state ${sys.usb.config}
+
+on property:sys.usb.config=mass_storage,adb
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 05c6
+ write /sys/class/android_usb/android0/idProduct 9026
+ write /sys/class/android_usb/android0/functions ${sys.usb.config}
+ write /sys/class/android_usb/android0/enable 1
+ start adbd
+ setprop sys.usb.state ${sys.usb.config}
+
+on property:sys.usb.config=rndis
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 05c6
+ write /sys/class/android_usb/android0/idProduct 9026
+ write /sys/class/android_usb/android0/functions ${sys.usb.config}
+ write /sys/class/android_usb/android0/bDeviceClass 224
+ write /sys/class/android_usb/android0/enable 1
+ setprop sys.usb.state ${sys.usb.config}
+
+on property:sys.usb.config=rndis,adb
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 05c6
+ write /sys/class/android_usb/android0/idProduct 9026
+ write /sys/class/android_usb/android0/functions ${sys.usb.config}
+ write /sys/class/android_usb/android0/bDeviceClass 224
+ write /sys/class/android_usb/android0/enable 1
+ start adbd
+ setprop sys.usb.state ${sys.usb.config}
28 overlay/frameworks/base/core/res/res/values/config.xml
View
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <!-- List of regexpressions describing the interface (if any) that represent tetherable
+ Wifi interfaces. If the device doesn't want to support tethering over Wifi this
+ should be empty. An example would be "softap.*" -->
+ <string-array translatable="false" name="config_tether_wifi_regexs">
+ <item>"wlan0"</item>
+ </string-array>
+
+ <!-- Boolean indicating whether the wifi chipset has dual frequency band support -->
+ <bool translatable="false" name="config_wifi_dual_band_support">true</bool>
+
+ <!-- Boolean indicating whether the wifi chipset has p2p support -->
+ <bool translatable="false" name="config_wifi_p2p_support">true</bool>
+
+ <!-- Boolean indicating whether the wifi chipset supports background scanning mechanism.
+ This mechanism allows the host to remain in suspend state and the dongle to actively
+ scan and wake the host when a configured SSID is detected by the dongle. This chipset
+ capability can provide power savings when wifi needs to be always kept on. -->
+ <bool translatable="false" name="config_wifi_background_scan_support">false</bool>
+
+ <!-- Flag indicating whether the we should enable the automatic brightness in Settings.
+ Software implementation will be used if config_hardware_auto_brightness_available is not set -->
+ <bool name="config_automatic_brightness_available">true</bool>
+
+ <!-- Enable electron beam screen-off animation -->
+ <bool name="config_animateScreenLights">false</bool>
+</resources>
41 overlay/frameworks/base/core/res/res/xml/storage_list.xml
View
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+**
+** Copyright 2011, 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.
+*/
+-->
+
+<!-- The <device> element should contain one or more <storage> elements.
+ Exactly one of these should have the attribute primary="true".
+ This storage will be the primary external storage and should have mountPoint="/mnt/sdcard".
+ Each storage should have both a mountPoint and storageDescription attribute.
+ The following attributes are optional:
+
+ primary: (boolean) this storage is the primary external storage
+ removable: (boolean) this is removable storage (for example, a real SD card)
+ emulated: (boolean) the storage is emulated via the FUSE sdcard daemon
+ mtpReserve: (integer) number of megabytes of storage MTP should reserve for free storage
+ (used for emulated storage that is shared with system's data partition)
+
+ A storage should not have both emulated and removable set to true
+-->
+
+<StorageList xmlns:android="http://schemas.android.com/apk/res/android">
+ <storage android:mountPoint="/mnt/sdcard"
+ android:storageDescription="@string/storage_usb"
+ android:primary="true"
+ android:removable="true"
+ android:allowMassStorage="true" />
+</StorageList>
4 overlay/packages/apps/CMUpdater/res/values/config.xml
View
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="conf_update_server_url_def">https://ota.pargon.nl/api</string>
+</resources>
42 overlay/packages/apps/Torch/res/values/config.xml
View
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2011, The CyanogenMod 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.
+*/
+-->
+
+<!-- These resources are around just to allow their values to be customized
+ for different hardware and product builds. -->
+<resources>
+ <!-- If there is no sysfs-based control mechanism, enable this -->
+ <bool name="useCameraInterface">false</bool>
+
+ <!-- Full path to the sysfs toggle -->
+ <string name="flashDevice">/sys/class/leds/SGM3140_torch_flash/mode</string>
+ <!-- Full path to the sysfs luminosity -->
+ <string name="flashDeviceLuminosity"></string>
+
+ <!-- Off setting -->
+ <integer name="valueOff">0</integer>
+ <!-- On setting -->
+ <integer name="valueOn">3</integer>
+
+ <!-- Low setting -->
+ <integer name="valueLow">3</integer>
+ <!-- Middle setting -->
+ <integer name="valueHigh">2</integer>
+ <!-- Highest setting, leave -1 if it doesn't exist -->
+ <integer name="valueDeathRay">1</integer>
+</resources>
3  recovery/wifi_mac.sh
View
@@ -6,9 +6,10 @@ fi
if [ $1 == "backup" ]; then
grep -sh "^macaddr" /custpack/JRD_custres/wlan/nvram.txt \
- /system/etc/wifi/bcmdhd.cal | head -n1 > /sdcard/wifi_mac.txt
+ /system/etc/wifi/bcmdhd.cal /sdcard/wifi_mac.txt | head -n1 > /sdcard/wifi_mac.txt
elif [ $1 == "restore" ]; then
cat /sdcard/wifi_mac.txt >> /system/etc/wifi/bcmdhd.cal
+ cat /sdcard/wifi_mac.txt | cut -d= -f2 >> /system/etc/bluetooth/bdaddr.txt
else
return 1
fi
5 vendor_cocktail.mk
View
@@ -9,8 +9,9 @@ PRODUCT_COPY_FILES += \
device/alcatel/cocktail/proprietary/fw_bcmdhd_p2p.bin:/system/etc/firmware/fw_bcmdhd_p2p.bin \
device/alcatel/cocktail/bcmdhd.cal:/system/etc/wifi/bcmdhd.cal
-# bcm4330 bt fw?
-# device/alcatel/cocktail/proprietary/bcm4330.hcd:/system/etc/firmware/bcm4330.hcd
+# bcm4330 bt fw
+PRODUCT_COPY_FILES += \
+ device/alcatel/cocktail/proprietary/BCM4330B1_002.001.003.0087.0000_TCL_Cocktail_TESTONLY.hcd:/system/etc/firmware/bcm4330.hcd
# video codecs
PRODUCT_COPY_FILES += \

Showing you all comments on commits in this comparison.

fonix232

Just saying but storage description should be @string/storage_sd_card ;D

BENETNATH

hey iuss, where did you find this hcd ? can i get a copy if it's working ?

thanks

ius
Owner

It's taken from the Alcatel ICS firmware (in /system/bin/) - you can grab it there, or from the CM release.

Something went wrong with that request. Please try again.