device/generic/common
リビジョン | 74b32cbcbb7a8d4a7651c90df60d49c245f9303a (tree) |
---|---|
日時 | 2016-05-06 03:17:12 |
作者 | Chih-Wei Huang <cwhuang@linu...> |
コミッター | Chih-Wei Huang |
Test build 20151202
@@ -1,5 +1,5 @@ | ||
1 | 1 | # |
2 | -# Copyright (C) 2013 The Android-x86 Open Source Project | |
2 | +# Copyright (C) 2013-2015 The Android-x86 Open Source Project | |
3 | 3 | # |
4 | 4 | # License: GNU Public License v2 or later |
5 | 5 | # |
@@ -12,6 +12,10 @@ function set_property() | ||
12 | 12 | |
13 | 13 | function init_misc() |
14 | 14 | { |
15 | + # device information | |
16 | + setprop ro.product.manufacturer "$(cat $DMIPATH/sys_vendor)" | |
17 | + setprop ro.product.model "$PRODUCT" | |
18 | + | |
15 | 19 | # a hack for USB modem |
16 | 20 | lsusb | grep 1a8d:1000 && eject |
17 | 21 |
@@ -398,6 +402,14 @@ for c in `cat /proc/cmdline`; do | ||
398 | 402 | ;; |
399 | 403 | *=*) |
400 | 404 | eval $c |
405 | + case $c in | |
406 | + HWACCEL=*) | |
407 | + set_property debug.egl.hw $HWACCEL | |
408 | + ;; | |
409 | + DEBUG=*) | |
410 | + set_property debug.logcat 1 | |
411 | + ;; | |
412 | + esac | |
401 | 413 | ;; |
402 | 414 | esac |
403 | 415 | done |
@@ -19,10 +19,6 @@ on init | ||
19 | 19 | # Backward compatibility |
20 | 20 | symlink system/lib /lib |
21 | 21 | |
22 | - # device information | |
23 | - setprop ro.product.manufacturer $[/sys/class/dmi/id/sys_vendor] | |
24 | - setprop ro.product.model $[/sys/class/dmi/id/product_name] | |
25 | - | |
26 | 22 | exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh |
27 | 23 | |
28 | 24 | on fs |
@@ -143,3 +139,6 @@ on property:persist.sys.nativebridge=1 | ||
143 | 139 | |
144 | 140 | on property:persist.sys.nativebridge=0 |
145 | 141 | stop nativebridge |
142 | + | |
143 | +on property:debug.egl.hw=0 | |
144 | + setprop ro.kernel.qemu 1 |
@@ -24,9 +24,9 @@ while [ ! -s $dest_dir/libhoudini.so ]; do | ||
24 | 24 | sleep 10 |
25 | 25 | done |
26 | 26 | if [ -z "$1" ]; then |
27 | - [ "`uname -m`" = "x86_64" ] && url=http://goo.gl/Xl1str || url=http://goo.gl/PA2qZ7 | |
27 | + [ "`uname -m`" = "x86_64" ] && url=http://goo.gl/Knnmyl || url=http://goo.gl/JsoX2C | |
28 | 28 | else |
29 | - url=http://goo.gl/L00S7l | |
29 | + url=http://goo.gl/n6KtQa | |
30 | 30 | fi |
31 | 31 | wget $url -cO houdini.tgz && |
32 | 32 | bzcat houdini.tgz | tar xvf - -C $dest_dir && rm -f houdini.tgz && break |
@@ -46,6 +46,7 @@ PRODUCT_PACKAGES := \ | ||
46 | 46 | libhuaweigeneric-ril \ |
47 | 47 | lights.default \ |
48 | 48 | make_ext4fs \ |
49 | + parted \ | |
49 | 50 | powerbtnd \ |
50 | 51 | scp \ |
51 | 52 | sensors.hsb \ |
@@ -76,5 +77,4 @@ PRODUCT_PACKAGES += \ | ||
76 | 77 | |
77 | 78 | # Third party apps |
78 | 79 | PRODUCT_PACKAGES += \ |
79 | - Superuser \ | |
80 | - TSCalibration2 \ | |
80 | + CMFileManager \ |
@@ -21,6 +21,9 @@ | ||
21 | 21 | PRODUCT_PROPERTY_OVERRIDES := \ |
22 | 22 | ro.com.android.dateformat=MM-dd-yyyy \ |
23 | 23 | |
24 | +$(call inherit-product,$(LOCAL_PATH)/device.mk) | |
25 | +$(call inherit-product,$(LOCAL_PATH)/packages.mk) | |
26 | + | |
24 | 27 | # Get a list of languages. |
25 | 28 | $(call inherit-product,$(SRC_TARGET_DIR)/product/locales_full.mk) |
26 | 29 |
@@ -29,6 +32,3 @@ $(call inherit-product,$(SRC_TARGET_DIR)/product/generic.mk) | ||
29 | 32 | |
30 | 33 | # Get some sounds |
31 | 34 | $(call inherit-product-if-exists,frameworks/base/data/sounds/AudioPackage6.mk) |
32 | - | |
33 | -$(call inherit-product,$(LOCAL_PATH)/device.mk) | |
34 | -$(call inherit-product,$(LOCAL_PATH)/packages.mk) |