-- cgit v1.2.3 From 9a1559d6b29520bedf6c3dd7da9913ebde6a6b5a Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Queru Date: Wed, 17 Feb 2010 11:30:41 -0800 Subject: Move open-sourceable passion files Change-Id: Ifd20ebe20322155a4a0a7d905c24425957493b1f --- AndroidBoard.mk | 19 ++++ AndroidProducts.mk | 16 ++++ BoardConfig.mk | 17 ++++ bcm4329.ko | Bin 0 -> 206557 bytes board-info.txt | 5 ++ generic_passion.mk | 19 ++++ gps.conf_AS | 6 ++ gps.conf_EU | 6 ++ gps.conf_US | 6 ++ init.mahimahi.rc | 94 ++++++++++++++++++++ kernel | Bin 0 -> 2248680 bytes passion.mk | 30 +++++++ passion_as.mk | 21 +++++ passion_eu.mk | 21 +++++ passion_us.mk | 21 +++++ recovery/Android.mk | 18 ++++ recovery/MODULE_LICENSE_APACHE2 | 0 recovery/NOTICE | 190 ++++++++++++++++++++++++++++++++++++++++ recovery/recovery_ui.c | 74 ++++++++++++++++ system.prop | 21 +++++ 20 files changed, 584 insertions(+) create mode 100644 AndroidBoard.mk create mode 100644 AndroidProducts.mk create mode 100644 BoardConfig.mk create mode 100644 bcm4329.ko create mode 100644 board-info.txt create mode 100644 generic_passion.mk create mode 100644 gps.conf_AS create mode 100644 gps.conf_EU create mode 100644 gps.conf_US create mode 100644 init.mahimahi.rc create mode 100644 kernel create mode 100644 passion.mk create mode 100644 passion_as.mk create mode 100644 passion_eu.mk create mode 100644 passion_us.mk create mode 100644 recovery/Android.mk create mode 100644 recovery/MODULE_LICENSE_APACHE2 create mode 100644 recovery/NOTICE create mode 100644 recovery/recovery_ui.c create mode 100644 system.prop diff --git a/AndroidBoard.mk b/AndroidBoard.mk new file mode 100644 index 0000000..fcdb14a --- /dev/null +++ b/AndroidBoard.mk @@ -0,0 +1,19 @@ +# 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. + +LOCAL_PATH := $(call my-dir) + +-include vendor/htc/passion/AndroidBoardVendor.mk + +include device/htc/passion-common/AndroidBoardCommon.mk diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..d40692f --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,16 @@ +# 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. + +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/generic_passion.mk diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..cf921d0 --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,17 @@ +# 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. + +include device/htc/passion-common/BoardConfigCommon.mk + +TARGET_RECOVERY_UI_LIB := librecovery_ui_passion librecovery_ui_htc diff --git a/bcm4329.ko b/bcm4329.ko new file mode 100644 index 0000000..712dbf0 Binary files /dev/null and b/bcm4329.ko differ diff --git a/board-info.txt b/board-info.txt new file mode 100644 index 0000000..d85a560 --- /dev/null +++ b/board-info.txt @@ -0,0 +1,5 @@ +require mid=P* +require board=mahimahi|nexusone +require version-bootloader=0.33.2012|0.33.0012 +require version-microp=0b15 +require version-baseband=4.03.00.21_2 diff --git a/generic_passion.mk b/generic_passion.mk new file mode 100644 index 0000000..80625ec --- /dev/null +++ b/generic_passion.mk @@ -0,0 +1,19 @@ +# 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. + +$(call inherit-product, $(SRC_TARGET_DIR)/product/generic.mk) +$(call inherit-product, device/htc/passion/passion_us.mk) + +PRODUCT_NAME := generic_passion +PRODUCT_DEVICE := passion diff --git a/gps.conf_AS b/gps.conf_AS new file mode 100644 index 0000000..51154b9 --- /dev/null +++ b/gps.conf_AS @@ -0,0 +1,6 @@ +NTP_SERVER=asia.pool.ntp.org +XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin +XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin +XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin +SUPL_HOST=supl.google.com +SUPL_PORT=7276 diff --git a/gps.conf_EU b/gps.conf_EU new file mode 100644 index 0000000..926f884 --- /dev/null +++ b/gps.conf_EU @@ -0,0 +1,6 @@ +NTP_SERVER=europe.pool.ntp.org +XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin +XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin +XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin +SUPL_HOST=supl.google.com +SUPL_PORT=7276 diff --git a/gps.conf_US b/gps.conf_US new file mode 100644 index 0000000..b766326 --- /dev/null +++ b/gps.conf_US @@ -0,0 +1,6 @@ +NTP_SERVER=north-america.pool.ntp.org +XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin +XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin +XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin +SUPL_HOST=supl.google.com +SUPL_PORT=7276 diff --git a/init.mahimahi.rc b/init.mahimahi.rc new file mode 100644 index 0000000..98b76bf --- /dev/null +++ b/init.mahimahi.rc @@ -0,0 +1,94 @@ +on early-init + device mtd@misc 0460 radio diag + +on boot + mount debugfs /sys/kernel/debug /sys/kernel/debug + + mkdir /data/misc/wifi 0770 wifi wifi + mkdir /data/misc/wifi/sockets 0770 wifi wifi + mkdir /data/misc/dhcp 0770 dhcp dhcp + chown dhcp dhcp /data/misc/dhcp + + # bluetooth power up/down interface + chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type + chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state + chmod 0660 /sys/class/rfkill/rfkill0/state + + # bluetooth MAC address programming + chown bluetooth bluetooth /sys/module/board_mahimahi/parameters/bdaddr + setprop ro.bt.bdaddr_path /sys/module/board_mahimahi/parameters/bdaddr + + # bluetooth car dock pin + chown system system /sys/class/switch/dock/bt_pin + + # Permissions for Liblights. + chown system system /sys/class/leds/green/brightness + chown system system /sys/class/leds/green/blink + chown system system /sys/class/leds/amber/brightness + chown system system /sys/class/leds/amber/blink + chown system system /sys/class/leds/red/brightness + chown system system /sys/class/leds/red/blink + chown system system /sys/class/leds/blue/brightness + chown system system /sys/class/leds/blue/blink + chown system system /sys/class/leds/jogball-backlight/brightness + chown system system /sys/class/leds/jogball-backlight/color + chown system system /sys/class/leds/jogball-backlight/period + chown system system /sys/class/leds/button-backlight/brightness + chown system system /sys/class/leds/lcd-backlight/brightness + + # enable the GPS + setprop ro.ril.def.agps.mode 2 + + # performance tweaks for flash + write /sys/block/mtdblock3/bdi/read_ahead_kb 4 + write /sys/block/mtdblock4/bdi/read_ahead_kb 4 + write /sys/block/mtdblock5/bdi/read_ahead_kb 4 + + # Power Management + write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 245000 + write /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 998400 + write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ondemand + write /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate 40000 + + + # New Fast dormancy settings + setprop ro.ril.fd.scron.timeout 2 + setprop ro.ril.fd.scoff.timeout 4 + + # Old fast dormancy settings (needed for CDMA) + setprop ro.ril.fast.dormancy.rule 1 + setprop ro.ril.fast.dormancy.timeout 2 + + # GPRS class + setprop ro.ril.gprsclass 10 + +# compass/accelerometer daemon +service akmd /system/bin/akmd + user compass + group compass misc input + +service wpa_supplicant /system/bin/wpa_supplicant \ + -Dwext -ieth0 -c/data/misc/wifi/wpa_supplicant.conf +# we will start as root and wpa_supplicant will switch to user wifi +# after setting up the capabilities required for WEXT +# user wifi +# group wifi inet keystore + socket wpa_eth0 dgram 660 wifi wifi + disabled + oneshot + +service dhcpcd /system/bin/dhcpcd -ABKL + disabled + oneshot + +# bugreport is triggered by the KEY_VOLUMEUP and BTN_MOUSE keycodes +service bugreport /system/bin/dumpstate -d -v -o /sdcard/bugreports/bugreport + disabled + oneshot + keycodes 115 272 + +service hciattach /system/bin/brcm_patchram_plus --enable_hci --enable_lpm \ + --baudrate 3000000 --patchram /etc/firmware/bcm4329.hcd /dev/ttyHS0 + user bluetooth + group bluetooth net_bt_admin + disabled diff --git a/kernel b/kernel new file mode 100644 index 0000000..4d2ff06 Binary files /dev/null and b/kernel differ diff --git a/passion.mk b/passion.mk new file mode 100644 index 0000000..1819940 --- /dev/null +++ b/passion.mk @@ -0,0 +1,30 @@ +# +# 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. +# + +-include vendor/htc/passion/passion-vendor.mk + +PRODUCT_COPY_FILES += \ + device/htc/passion/init.mahimahi.rc:root/init.mahimahi.rc \ + device/htc/passion/bcm4329.ko:system/lib/modules/bcm4329.ko + +ifeq ($(TARGET_PREBUILT_KERNEL),) +LOCAL_KERNEL := device/htc/passion/kernel +else +LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL) +endif + +PRODUCT_COPY_FILES += \ + $(LOCAL_KERNEL):kernel diff --git a/passion_as.mk b/passion_as.mk new file mode 100644 index 0000000..cc6cdb9 --- /dev/null +++ b/passion_as.mk @@ -0,0 +1,21 @@ +# +# 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. +# + +$(call inherit-product, device/htc/passion-common/passion_as.mk) +$(call inherit-product, device/htc/passion/passion.mk) + +PRODUCT_COPY_FILES += \ + device/htc/passion/gps.conf_AS:system/etc/gps.conf diff --git a/passion_eu.mk b/passion_eu.mk new file mode 100644 index 0000000..4405d6b --- /dev/null +++ b/passion_eu.mk @@ -0,0 +1,21 @@ +# +# 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. +# + +$(call inherit-product, device/htc/passion-common/passion_eu.mk) +$(call inherit-product, device/htc/passion/passion.mk) + +PRODUCT_COPY_FILES += \ + device/htc/passion/gps.conf_EU:system/etc/gps.conf diff --git a/passion_us.mk b/passion_us.mk new file mode 100644 index 0000000..a9abb32 --- /dev/null +++ b/passion_us.mk @@ -0,0 +1,21 @@ +# +# 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. +# + +$(call inherit-product, device/htc/passion-common/passion_us.mk) +$(call inherit-product, device/htc/passion/passion.mk) + +PRODUCT_COPY_FILES += \ + device/htc/passion/gps.conf_US:system/etc/gps.conf diff --git a/recovery/Android.mk b/recovery/Android.mk new file mode 100644 index 0000000..043fd24 --- /dev/null +++ b/recovery/Android.mk @@ -0,0 +1,18 @@ +ifneq ($(TARGET_SIMULATOR),true) +ifeq ($(TARGET_ARCH),arm) + +LOCAL_PATH := $(call my-dir) +include $(CLEAR_VARS) + +LOCAL_MODULE_TAGS := eng + +LOCAL_C_INCLUDES += bootable/recovery +LOCAL_SRC_FILES := recovery_ui.c + +# should match TARGET_RECOVERY_UI_LIB set in BoardConfig.mk +LOCAL_MODULE := librecovery_ui_passion + +include $(BUILD_STATIC_LIBRARY) + +endif # TARGET_ARCH == arm +endif # !TARGET_SIMULATOR diff --git a/recovery/MODULE_LICENSE_APACHE2 b/recovery/MODULE_LICENSE_APACHE2 new file mode 100644 index 0000000..e69de29 diff --git a/recovery/NOTICE b/recovery/NOTICE new file mode 100644 index 0000000..64aaa8d --- /dev/null +++ b/recovery/NOTICE @@ -0,0 +1,190 @@ + + 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. + + 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. + + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + diff --git a/recovery/recovery_ui.c b/recovery/recovery_ui.c new file mode 100644 index 0000000..69b0d7c --- /dev/null +++ b/recovery/recovery_ui.c @@ -0,0 +1,74 @@ +/* + * 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. + */ + +#include + +#include "recovery_ui.h" +#include "common.h" + +char* MENU_HEADERS[] = { "Use trackball to highlight; click to select.", + "", + NULL }; + +char* MENU_ITEMS[] = { "reboot system now", + "apply sdcard:update.zip", + "wipe data/factory reset", + "wipe cache partition", + NULL }; + +void recovery_firmware_update_log(); + +int device_recovery_start() { + recover_firmware_update_log(); + return 0; +} + +int device_toggle_display(volatile char* key_pressed, int key_code) { + return key_pressed[KEY_POWER] && key_code == KEY_VOLUMEUP; +} + +int device_reboot_now(volatile char* key_pressed, int key_code) { + return key_pressed[KEY_POWER] && key_pressed[KEY_VOLUMEDOWN] && + key_code == BTN_MOUSE; // trackball button +} + +int device_handle_key(int key_code, int visible) { + if (visible) { + switch (key_code) { + case KEY_DOWN: + case KEY_VOLUMEDOWN: + return HIGHLIGHT_DOWN; + + case KEY_UP: + case KEY_VOLUMEUP: + return HIGHLIGHT_UP; + + case KEY_ENTER: + case BTN_MOUSE: // trackball button + return SELECT_ITEM; + } + } + + return NO_ACTION; +} + +int device_perform_action(int which) { + return which; +} + +int device_wipe_data() { + return 0; +} diff --git a/system.prop b/system.prop new file mode 100644 index 0000000..bde5aec --- /dev/null +++ b/system.prop @@ -0,0 +1,21 @@ +# +# system.prop for mahimahi +# + +ro.sf.lcd_density=240 + +rild.libpath=/system/lib/libhtc_ril.so + +# Default network type. +# 0 => WCDMA preferred. +ro.telephony.default_network=0 + +wifi.interface=eth0 +wifi.supplicant_scan_interval=15 + +# The OpenGL ES API level that is natively supported by this device. +# This is a 16.16 fixed point number +ro.opengles.version = 131072 + +# This is a high density device with more memory, so larger vm heaps for it. +dalvik.vm.heapsize=24m -- cgit v1.2.3