Android-x86
Fork
Faire un don

  • R/O
  • HTTP
  • SSH
  • HTTPS

device-tegatech-tegav2: Commit

device/tegatech/tegav2


Commit MetaInfo

Révision024e1e777fd47148e4fec08f1260c5ecc035c3c1 (tree)
l'heure2012-02-07 03:02:20
AuteurChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Message de Log

support internal storage

Move external micro sdcard mountpoint to /mnt/MicroSD.

Change Summary

Modification

--- a/init.tegav2.rc
+++ b/init.tegav2.rc
@@ -1,3 +1,6 @@
1+on init
2+ mkdir /mnt/MicroSD 0000 system system
3+
14 on boot
25 chown system system /sys/class/backlight/acpi_video0/brightness
36
@@ -5,3 +8,5 @@ on boot
58 setprop rild.libargs "-d /dev/ttyUSB2"
69
710 exec /system/bin/io_switch 0x0 0x1
11+
12+ setkeycode 0x6d 125
--- a/io_switch/Android.mk
+++ b/io_switch/Android.mk
@@ -1,5 +1,6 @@
11 # Copyright (C) 2011 The Android-x86 Open Source Project
22
3+ifeq ($(TARGET_PRODUCT),tegav2)
34 LOCAL_PATH := $(my-dir)
45
56 include $(CLEAR_VARS)
@@ -11,3 +12,4 @@ LOCAL_MODULE := io_switch
1112 LOCAL_MODULE_TAGS := optional
1213
1314 include $(BUILD_EXECUTABLE)
15+endif
--- /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/MicroSD"
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/tegav2.mk
+++ b/tegav2.mk
@@ -12,4 +12,4 @@ PRODUCT_NAME := tegav2
1212 PRODUCT_DEVICE := tegav2
1313 PRODUCT_MANUFACTURER := Tegatech
1414
15-DEVICE_PACKAGE_OVERLAYS := $(LOCAL_PATH)/overlays
15+PRODUCT_PACKAGE_OVERLAYS := $(LOCAL_PATH)/overlays
--- a/tegav2_info
+++ b/tegav2_info
@@ -4,7 +4,7 @@ tegav2_info()
44 {
55 board=`cat $DMIPATH/product_name`
66 case "$board" in
7- TEGA*|VPAD10*|X1*|PC*)
7+ TEGA*|Intel*|VPAD10*|X1*|PC*)
88 ;;
99 *)
1010 error WARNING: An unknown model
@@ -12,9 +12,7 @@ tegav2_info()
1212 esac
1313
1414 # FIXME: a workaround for the race condition of auto-probing
15- EXTMOD="$EXTMOD hid-multitouch"
16- mkdir /android/mnt/USB
17- chown 1000.1015 /android/mnt/USB # system.sdcard_rw
15+ EXTMOD="$EXTMOD ath3k uvcvideo hid-multitouch"
1816
1917 return 1 # auto_detect
2018 }
@@ -22,7 +20,7 @@ tegav2_info()
2220 detect_hardware()
2321 {
2422 case "`cat $DMIPATH/uevent`" in
25- *TEGA*|*VPAD10*|*azpen*|*AZPENPC*)
23+ *TEGA*|*Intel*|*VPAD10*|*azpen*|*AZPENPC*)
2624 ;;
2725 *)
2826 error WARNING: An unknown tablet
--- a/vold.fstab
+++ b/vold.fstab
@@ -1,2 +1,2 @@
1-dev_mount sdcard /mnt/sdcard auto /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.0
1+dev_mount sdcard /mnt/MicroSD auto /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.0
22 dev_mount usb /mnt/USB auto
Afficher sur ancien navigateur de dépôt.