OSDN Git Service

Porting the v4l2 works made by niels.keeman@tass.nl
authorYi Sun <beyounn@gmail.com>
Wed, 15 Jul 2009 06:50:33 +0000 (23:50 -0700)
committerYi Sun <beyounn@gmail.com>
Wed, 15 Jul 2009 06:50:33 +0000 (23:50 -0700)
BoardConfig.mk
init.rc
system.prop

index d39af42..bef34b8 100644 (file)
@@ -15,8 +15,6 @@ BOARD_USES_GENERIC_AUDIO := true
 
 TARGET_PROVIDES_INIT_RC := true
 
-USE_CAMERA_STUB := true
-
 USE_CUSTOM_RUNTIME_HEAP_MAX := "128M"
 
 TARGET_USERIMAGES_USE_EXT2 := true
diff --git a/init.rc b/init.rc
index 9ca3238..632b24d 100644 (file)
--- a/init.rc
+++ b/init.rc
@@ -21,6 +21,9 @@ loglevel 3
 # create mountpoints and mount tmpfs on sqlite_stmt_journals and debugfs on d
     mkdir /d
     mkdir /sdcard 0000 system system
+    mkdir /sdcard
+    chmod 0777 /sdcard
+    chown system system /sdcard
     mkdir /system
     mkdir /data 0771 system system
     mkdir /cache 0770 system cache
@@ -51,6 +54,11 @@ loglevel 3
 #   mount ext3 /dev/block/sda5 /cache
     chown system cache /cache
     chmod 0770 /cache
+    chown root camera /dev/video0
+    chmod 0660 /dev/video0
+    chown system audio /dev/snd
+    chmod 0664 /dev/snd
+
 
     # This may have been created by the recovery system with odd permissions
     chown system system /cache/recovery
index 87b002b..538e9a1 100644 (file)
@@ -2,6 +2,12 @@
 ro.config.sync = yes
 app.setupwizard.disable=1
 keyguard.no_require_sim=1
+# we are faking sdcard partition for now
+# if you have a real sdcard, you should remove
+# this line and let either vold or mountd to
+# set it. And to do that correctly, you also
+# need to change vold.conf or mountd.conf
+EXTERNAL_STORAGE_STATE=mounted
 # default the paths and parameters for sys fs
 ro.sys.fs.power_supply.ac=/AC0
 ro.sys.fs.power_supply.bat=/BAT0