OSDN Git Service

generic_x86: add powerbtnd service
authorChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 12 Jul 2011 07:35:37 +0000 (15:35 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 3 Aug 2011 04:55:17 +0000 (12:55 +0800)
target/board/generic_x86/AndroidBoard.mk
target/board/generic_x86/excluded-input-devices.xml [new file with mode: 0644]
target/board/generic_x86/init.rc
target/product/generic_x86.mk

index fca2423..5ada248 100644 (file)
@@ -26,6 +26,7 @@ endif
 
 TARGET_PREBUILT_APPS := $(wildcard device/common/app/*.apk $(TARGET_LOCAL_PATH)/app/*.apk)
 PRODUCT_COPY_FILES   += $(strip $(initrcs) $(tsfiles) $(foreach f,$(TARGET_PREBUILT_APPS),$(f):system/app/$(notdir $(f))))
+PRODUCT_COPY_FILES   += $(call cpyfile,excluded-input-devices.xml,system/etc)
 
 define include-wpa-supplicant-conf
 LOCAL_PATH := $(1)
diff --git a/target/board/generic_x86/excluded-input-devices.xml b/target/board/generic_x86/excluded-input-devices.xml
new file mode 100644 (file)
index 0000000..c0d2e61
--- /dev/null
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/**
+ * Copyright (c) 2011, The Android-x86 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.
+ */
+-->
+<devices>
+    <device name="Power Button" />
+</devices>
index 579aff7..4e02e6e 100644 (file)
@@ -438,6 +438,9 @@ service keystore /system/bin/keystore /data/misc/keystore
     group keystore
     socket keystore stream 666
 
+service powerbtnd /system/bin/powerbtnd
+    user root
+
 service faketsd /system/bin/faketsd
     user bluetooth
     group bluetooth
index b9e1e35..f86bf76 100644 (file)
@@ -9,7 +9,6 @@ PRODUCT_PACKAGES := \
     LunarLander \
     MagicSmokeWallpapers \
     NotePad \
-    PinyinIME \
     Provision \
     RSSReader \
     Snake \
@@ -22,6 +21,8 @@ PRODUCT_PACKAGES := \
     chat \
     faketsd \
     librs_jni \
+    make_ext4fs \
+    powerbtnd \
     v86d \
 
 THIRD_PARTY_APPS = \