Skip to content

Commit

Permalink
aries-common: Jellybean 4.2 bring up
Browse files Browse the repository at this point in the history
Change-Id: I96c39dc243c3cf2379ee6a41eda74cde75ba3bf9
  • Loading branch information
pawitp committed Dec 11, 2012
1 parent f8b15eb commit 0d90789
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 100 deletions.
6 changes: 5 additions & 1 deletion BoardConfigCommon.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ BOARD_USES_GENERIC_AUDIO := false

BOARD_USES_LIBSECRIL_STUB := true

TARGET_ARCH := arm
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_ARCH_VARIANT := armv7-a-neon
Expand Down Expand Up @@ -67,7 +68,7 @@ BOARD_KERNEL_PAGESIZE := 4096
BOARD_KERNEL_CMDLINE := console=ttyFIQ0,115200 init=/init no_console_suspend

BOARD_BOOTIMAGE_PARTITION_SIZE := 7864320
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 262144000
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 419430400
BOARD_USERDATAIMAGE_PARTITION_SIZE := 2013265920
BOARD_FLASH_BLOCK_SIZE := 4096

Expand All @@ -84,6 +85,9 @@ WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path"
WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/fw_bcmdhd.bin"
WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcmdhd_apsta.bin"

# Bluetooth
BOARD_BLUEDROID_VENDOR_CONF := device/samsung/aries-common/libbt_vndcfg.txt

# Vold
BOARD_VOLD_EMMC_SHARES_DEV_MAJOR := true
TARGET_USE_CUSTOM_LUN_FILE_PATH := "/sys/devices/platform/s3c-usbgadget/gadget/lun%d/file"
Expand Down
5 changes: 2 additions & 3 deletions device_base.mk
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ DEVICE_PACKAGE_OVERLAYS := device/samsung/aries-common/overlay
PRODUCT_COPY_FILES := \
device/samsung/aries-common/vold.fstab:system/etc/vold.fstab \
device/samsung/aries-common/egl.cfg:system/lib/egl/egl.cfg \
device/samsung/aries-common/mxt224_ts_input.idc:system/usr/idc/mxt224_ts_input.idc \
device/samsung/aries-common/main.conf:system/etc/bluetooth/main.conf
device/samsung/aries-common/mxt224_ts_input.idc:system/usr/idc/mxt224_ts_input.idc

# Init files
PRODUCT_COPY_FILES += \
Expand Down Expand Up @@ -153,7 +152,7 @@ PRODUCT_PROPERTY_OVERRIDES := \
# be reachable from resources or other mechanisms.
PRODUCT_PROPERTY_OVERRIDES += \
wifi.interface=wlan0 \
ro.telephony.ril_class=SamsungRIL \
ro.telephony.ril_class=SamsungExynos3RIL \
ro.telephony.ril.v3=icccardstatus,datacall,signalstrength,facilitylock \
mobiledata.interfaces=pdp0,eth0,gprs,ppp0 \
ro.vold.switchablepair=/mnt/emmc,/mnt/sdcard \
Expand Down
26 changes: 10 additions & 16 deletions init.aries.rc
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ on init
# FIXME: Market checks this variable for space-checking, but downloads to /datadata
export DOWNLOAD_CACHE /data/download

mkdir /storage 0050 system sdcard_r
mkdir /storage/sdcard0 0000 system system
mkdir /storage/sdcard1 0000 system system
mkdir /storage/sdcard0 0000 root root
mkdir /storage/sdcard1 0000 root root
symlink /storage/sdcard0 /sdcard
symlink /storage/sdcard0 /mnt/sdcard
symlink /storage/sdcard1 /emmc
Expand Down Expand Up @@ -59,11 +58,11 @@ on fs
chmod 770 /efs/imei

# permissions for bluetooth.
chown bluetooth bluetooth /dev/s3c2410_serial0
chown bluetooth net_bt_stack /dev/s3c2410_serial0
chmod 0600 /dev/s3c2410_serial0
chmod 0660 /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state
chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/type

# Permissions for System Server and daemons.
chown system system /sys/class/backlight/s5p_bl/brightness
Expand All @@ -72,6 +71,9 @@ on fs
chown radio radio /sys/class/sec/uart_switch/UART_SEL/value
chmod 660 /sys/class/sec/uart_switch/UART_SEL/value

# load wifi module
insmod /system/lib/modules/bcmdhd.ko

on post-fs
chown system system /datadata
chmod 0771 /datadata
Expand Down Expand Up @@ -115,7 +117,7 @@ service aries-ril-daemon /system/bin/rild
socket rild stream 660 root radio
socket rild-debug stream 660 radio system
user root
group radio cache inet misc audio sdcard_rw log
group radio cache inet misc audio log

# 3D init
service pvrsrvinit /system/vendor/bin/pvrsrvinit
Expand All @@ -135,7 +137,7 @@ service wpa_supplicant /system/bin/wpa_supplicant \
disabled
oneshot

service dhcpcd_wlan0 /system/bin/dhcpcd -aABKL
service dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL
class main
disabled
oneshot
Expand Down Expand Up @@ -164,14 +166,6 @@ service bdaddr /system/bin/bdaddr_read
on property:init.svc.bootanim=running
start bdaddr

service hciattach /system/bin/brcm_patchram_plus --enable_hci --enable_lpm \
--baudrate 3000000 --patchram /vendor/firmware/bcm4329.hcd /dev/s3c2410_serial0
class main
user bluetooth
group bluetooth net_bt_admin
disabled
oneshot

# bugreport is triggered by holding down volume down, volume up and power
# service bugreport /system/bin/dumpstate -d -v -o /sdcard/bugreports/bugreport
# class main
Expand Down
8 changes: 8 additions & 0 deletions libbt_vndcfg.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
BLUETOOTH_UART_DEVICE_PORT = "/dev/s3c2410_serial0"
FW_PATCHFILE_LOCATION = "/vendor/firmware/"
LPM_IDLE_TIMEOUT_MULTIPLE = 5
SCO_PCM_IF_CLOCK_RATE = 0
BTVND_DBG = FALSE
BTHW_DBG = TRUE
VNDUSERIAL_DBG = FALSE
UPIO_DBG = FALSE
2 changes: 1 addition & 1 deletion libcamera/SecCameraHWInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ void CameraHardwareSec::save_postview(const char *fname, uint8_t *buf, uint32_t
uint32_t written = 0;

ALOGD("opening file [%s]\n", fname);
int fd = open(fname, O_RDWR | O_CREAT);
int fd = open(fname, O_RDWR | O_CREAT, 0600);
if (fd < 0) {
ALOGE("failed to create file [%s]: %s", fname, strerror(errno));
return;
Expand Down
66 changes: 0 additions & 66 deletions main.conf

This file was deleted.

12 changes: 5 additions & 7 deletions overlay/frameworks/base/core/res/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,10 @@
<!-- Default blink frequency for notification LED is 9 seconds. -->
<integer name="config_defaultNotificationLedOff">9000</integer>

<!-- Package name providing network location support. -->
<string name="config_networkLocationProviderPackageName" translatable="false">com.google.android.location</string>

<!-- Package name providing geocoder API support. -->
<string name="config_geocodeProviderPackageName" translatable="false">com.google.android.location</string>

<string-array name="config_locationProviderPackageNames" translatable="false">
<item>com.android.location.fused</item>
<item>com.google.android.location</item>
</string-array>

<!-- XXXXX NOTE THE FOLLOWING RESOURCES USE THE WRONG NAMING CONVENTION.
Please don't copy them, copy anything else. -->
Expand Down Expand Up @@ -155,7 +153,7 @@
bluetooth interfaces. If the device doesn't want to support tethering over bluetooth this
should be empty. -->
<string-array translatable="false" name="config_tether_bluetooth_regexs">
<item>"bnep\\d"</item>
<item>"bt-pan"</item>
</string-array>

<!-- Array of ConnectivityManager.TYPE_xxxx values allowable for tethering -->
Expand Down
13 changes: 7 additions & 6 deletions releasetools/aries_ota_from_target_files
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ def WriteFullOTAPackage(input_zip, output_zip):
# change very often.
script = edify_generator.EdifyGenerator(3, OPTIONS.info_dict)

metadata = {"post-build": GetBuildProp("ro.build.fingerprint", input_zip),
"pre-device": GetBuildProp("ro.product.device", input_zip),
"post-timestamp": GetBuildProp("ro.build.date.utc", input_zip),
metadata = {"post-build": GetBuildProp("ro.build.fingerprint", OPTIONS.info_dict),
"pre-device": GetBuildProp("ro.product.device", OPTIONS.info_dict),
"post-timestamp": GetBuildProp("ro.build.date.utc", OPTIONS.info_dict),
}

device_specific = common.DeviceSpecificParams(
Expand All @@ -78,6 +78,7 @@ def WriteFullOTAPackage(input_zip, output_zip):

AppendAssertions(script, input_zip)
device_specific.FullOTA_Assertions()
device_specific.FullOTA_InstallBegin()

if OPTIONS.backuptool:
script.Mount("/system")
Expand All @@ -87,6 +88,9 @@ def WriteFullOTAPackage(input_zip, output_zip):
if OPTIONS.wipe_user_data:
script.FormatPartition("/data")

if "selinux_fc" in OPTIONS.info_dict:
WritePolicyConfig(OPTIONS.info_dict["selinux_fc"], output_zip)

script.FormatPartition("/system")
script.Mount("/system")
script.ShowProgress(0.7, 30);
Expand All @@ -104,9 +108,6 @@ def WriteFullOTAPackage(input_zip, output_zip):
script.ShowProgress(0.2, 10)
script.RunBackup("restore")

if OPTIONS.modelidcfg:
script.RunConfig("")

CopyBootFiles(input_zip, output_zip)
CopyBMLoverMTD(output_zip)

Expand Down

0 comments on commit 0d90789

Please sign in to comment.