• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

device/hp/tx2500


コミットメタ情報

リビジョンccc963f6b447982a4d7a4efd2dc15833d9715186 (tree)
日時2012-03-03 01:17:38
作者Kyle Evans <kevans@andr...>
コミッターKyle Evans

ログメッセージ

Enable internal + usb + card reader storage

変更サマリ

差分

--- a/init.tx2500.rc
+++ b/init.tx2500.rc
@@ -1,3 +1,6 @@
1+on init
2+ mkdir /mnt/CardReader 0000 system system
3+
14 on boot
25 chown system system /sys/class/backlight/acpi_video0/brightness
36
--- /dev/null
+++ b/overlays/frameworks/base/core/res/res/xml/storage_list.xml
@@ -0,0 +1,51 @@
1+<?xml version="1.0" encoding="utf-8"?>
2+<!--
3+**
4+** Copyright 2012, The Android-x86 Open Source Project
5+**
6+** Licensed under the Apache License, Version 2.0 (the "License")
7+** you may not use this file except in compliance with the License.
8+** You may obtain a copy of the License at
9+**
10+** http://www.apache.org/licenses/LICENSE-2.0
11+**
12+** Unless required by applicable law or agreed to in writing, software
13+** distributed under the License is distributed on an "AS IS" BASIS,
14+** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+** See the License for the specific language governing permissions and
16+** limitations under the License.
17+*/
18+-->
19+
20+<!-- The <device> element should contain one or more <storage> elements.
21+ Exactly one of these should have the attribute primary="true".
22+ This storage will be the primary external storage and should have mountPoint="/mnt/sdcard".
23+ Each storage should have both a mountPoint and storageDescription attribute.
24+ The following attributes are optional:
25+
26+ primary: (boolean) this storage is the primary external storage
27+ removable: (boolean) this is removable storage (for example, a real SD card)
28+ emulated: (boolean) the storage is emulated via the FUSE sdcard daemon
29+ mtpReserve: (integer) number of megabytes of storage MTP should reserve for free storage
30+ (used for emulated storage that is shared with system's data partition)
31+
32+ A storage should not have both emulated and removable set to true
33+-->
34+
35+<StorageList xmlns:android="http://schemas.android.com/apk/res/android">
36+ <!-- removable is not set in nosdcard product -->
37+ <storage android:mountPoint="/mnt/sdcard"
38+ android:storageDescription="@string/storage_internal"
39+ android:primary="true"
40+ android:removable="false"
41+ android:emulated="true"
42+ android:mtpReserve="100"/>
43+ <storage android:mountPoint="/mnt/CardReader"
44+ android:storageDescription="@string/storage_sd_card"
45+ android:primary="false"
46+ android:removable="true" />
47+ <storage android:mountPoint="/mnt/USB"
48+ android:storageDescription="@string/storage_usb"
49+ android:primary="false"
50+ android:removable="true" />
51+</StorageList>
--- a/tx2500.mk
+++ b/tx2500.mk
@@ -10,6 +10,7 @@ PRODUCT_MANUFACTURER := HP
1010 PRODUCT_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlays
1111 PRODUCT_COPY_FILES += \
1212 $(LOCAL_PATH)/tx2500.sh:system/etc/tx2500.sh \
13+ $(LOCAL_PATH)/vold.fstab:system/etc/vold.fstab \
1314 $(LOCAL_PATH)/input/AT_Translated_Set_2_keyboard.kl:system/usr/keylayout/AT_Translated_Set_2_keyboard.kl \
1415 $(LOCAL_PATH)/input/HP_WMI_hotkeys.kl:system/usr/keylayout/HP_WMI_hotkeys.kl \
1516 $(LOCAL_PATH)/input/SynPS_2_Synaptics_TouchPad.idc:system/usr/idc/SynPS_2_Synaptics_TouchPad.idc
--- /dev/null
+++ b/vold.fstab
@@ -0,0 +1,2 @@
1+dev_mount reader /mnt/CardReader auto /devices/pci0000:00/0000:00:12.2/usb1/1-4/1-4:1.0
2+dev_mount usb /mnt/USB auto