diff options
author | bohu <bohu@google.com> | 2018-02-15 12:44:57 -0800 |
---|---|---|
committer | bohu <bohu@google.com> | 2018-02-15 20:41:48 -0800 |
commit | 6d2eea578beccd1f589ae969e5d5511a4fc3c2a7 (patch) | |
tree | 039d78498def72abe49e32187e5a12d608b8f1d8 | |
parent | 8fe9277e7031c1aedbe23bda4665c7f55a001162 (diff) | |
download | atv-6d2eea578beccd1f589ae969e5d5511a4fc3c2a7.tar.gz |
google-atv-sdk: clean up sdk mk file
use the init.ranchu.rc from goldfish;
make TV bootable by emulator in build environment.
BUG: 73486756
Test: build sdk_google_atv_x86-userdebug
emulator boots up TV with network
Change-Id: I376b966dbe125461ff5faf599382781d8d33c14f
-rw-r--r-- | init.goldfish.rc | 99 | ||||
-rw-r--r-- | init.ranchu.rc | 110 | ||||
-rw-r--r-- | products/sdk_atv_armv7.mk | 2 | ||||
-rw-r--r-- | products/sdk_atv_x86.mk | 10 |
4 files changed, 10 insertions, 211 deletions
diff --git a/init.goldfish.rc b/init.goldfish.rc deleted file mode 100644 index 48663bc..0000000 --- a/init.goldfish.rc +++ /dev/null @@ -1,99 +0,0 @@ - -on early-init - mount debugfs debugfs /sys/kernel/debug - -on init - -on boot - setprop ARGH ARGH - setprop net.eth0.gw 10.0.2.2 - setprop net.eth0.dns1 10.0.2.3 - setprop net.dns1 10.0.2.3 - setprop net.gprs.local-ip 10.0.2.15 - setprop ro.radio.use-ppp no - setprop ro.build.product generic - setprop ro.product.device generic - -# fake some battery state - setprop status.battery.state Slow - setprop status.battery.level 5 - setprop status.battery.level_raw 50 - setprop status.battery.level_scale 9 - -# set up the GPU caching - setprop ro.hwui.texture_cache_size 72 - setprop ro.hwui.layer_cache_size 48 - setprop ro.hwui.r_buffer_cache_size 8 - setprop ro.hwui.path_cache_size 32 - setprop ro.hwui.gradient_cache_size 1 - setprop ro.hwui.drop_shadow_cache_size 6 - setprop ro.hwui.texture_cache_flushrate 0.4 - setprop ro.hwui.text_small_cache_width 1024 - setprop ro.hwui.text_small_cache_height 1024 - setprop ro.hwui.text_large_cache_width 2048 - setprop ro.hwui.text_large_cache_height 1024 - -# disable some daemons the emulator doesn't want - stop dund - stop akmd - -# start essential services - start qemud - start goldfish-logcat - start goldfish-setup - - setprop ro.setupwizard.mode EMULATOR - -# enable Google-specific location features, -# like NetworkLocationProvider and LocationCollector - setprop ro.com.google.locationfeatures 1 - -# For the emulator, which bypasses Setup Wizard, you can specify -# account info for the device via these two properties. Google -# Login Service will insert these accounts into the database when -# it is created (ie, after a data wipe). -# -# setprop ro.config.hosted_account username@hosteddomain.org:password -# setprop ro.config.google_account username@gmail.com:password -# -# You MUST have a Google account on the device, and you MAY -# additionally have a hosted account. No other configuration is -# supported, and arbitrary breakage may result if you specify -# something else. - -on fs - mount_all /fstab.goldfish - -service goldfish-setup /system/etc/init.goldfish.sh - user root - group root - oneshot - -# The qemu-props program is used to set various system -# properties on boot. It must be run early during the boot -# process to avoid race conditions with other daemons that -# might read them (e.g. surface flinger), so define it in -# class 'core' -# -service qemu-props /system/bin/qemu-props - class core - user root - group root - oneshot - -service qemud /system/bin/qemud - socket qemud stream 666 - oneshot - -# -Q is a special logcat option that forces the -# program to check wether it runs on the emulator -# if it does, it redirects its output to the device -# named by the androidboot.console kernel option -# if not, is simply exits immediately - -service goldfish-logcat /system/bin/logcat -Q - oneshot - -service fingerprintd /system/bin/fingerprintd - class late_start - user system diff --git a/init.ranchu.rc b/init.ranchu.rc deleted file mode 100644 index c5b2a83..0000000 --- a/init.ranchu.rc +++ /dev/null @@ -1,110 +0,0 @@ -on fs - mount_all /fstab.ranchu - -on early-init - mount debugfs debugfs /sys/kernel/debug mode=755 - -on init - - symlink /dev/goldfish_pipe /dev/android_pipe - symlink /dev/goldfish_pipe /dev/qemu_pipe - -on post-fs-data - setprop vold.post_fs_data_done 1 - -on boot - setprop net.eth0.gw 10.0.2.2 - setprop net.eth0.dns1 10.0.2.3 - setprop net.gprs.local-ip 10.0.2.15 - setprop ro.radio.use-ppp no - setprop ro.build.product generic - setprop ro.product.device generic - setprop ro.hardware.audio.primary goldfish - setprop ro.setupwizard.mode EMULATOR - -# fake some battery state - setprop status.battery.state Slow - setprop status.battery.level 5 - setprop status.battery.level_raw 50 - setprop status.battery.level_scale 9 - -# set up the GPU caching - setprop ro.hwui.texture_cache_size 72 - setprop ro.hwui.layer_cache_size 48 - setprop ro.hwui.r_buffer_cache_size 8 - setprop ro.hwui.path_cache_size 32 - setprop ro.hwui.gradient_cache_size 1 - setprop ro.hwui.drop_shadow_cache_size 6 - setprop ro.hwui.texture_cache_flushrate 0.4 - setprop ro.hwui.text_small_cache_width 1024 - setprop ro.hwui.text_small_cache_height 1024 - setprop ro.hwui.text_large_cache_width 2048 - setprop ro.hwui.text_large_cache_height 1024 - -# disable some daemons the emulator doesn't want - stop dund - stop akmd - -# start essential services -# These were written for the classic emulator, but are applicable to ranchu - start goldfish-logcat - start goldfish-setup - - -# enable Google-specific location features, -# like NetworkLocationProvider and LocationCollector - setprop ro.com.google.locationfeatures 1 - -#emulator is not much useful before boot complete -#start it later -on property:sys.boot_completed=1 - setprop sys.usb.config adb - start adbd - start goldfish-logcat - -# allow goldfish-setup to take wake lock - chown root system /sys/power/wake_lock - chown root system /sys/power/wake_unlock - -service ranchu-setup /vendor/bin/init.ranchu-core.sh - class core - user root - group root - oneshot - -service ranchu-net /vendor/bin/init.ranchu-net.sh - class late_start - user root - group root wakelock - oneshot - -# The qemu-props program is used to set various system -# properties on boot. It must be run early during the boot -# process to avoid race conditions with other daemons that -# might read them (e.g. surface flinger), so define it in -# class 'core' -# -service qemu-props /vendor/bin/qemu-props - class core - user root - group root - oneshot - -on property:qemu.logcat=start - start goldfish-logcat - -# -Q is a special logcat option that forces the -# program to check wether it runs on the emulator -# if it does, it redirects its output to the device -# named by the androidboot.console kernel option -# if not, is simply exits immediately -# logd user added to prevent logcat from logging content. -# log group added to support access to read logs socket. -service goldfish-logcat /system/bin/logcat -Q - user logd - group log - oneshot - -service fingerprintd /system/bin/fingerprintd - class late_start - user system diff --git a/products/sdk_atv_armv7.mk b/products/sdk_atv_armv7.mk index e98ce70..4d6c4b6 100644 --- a/products/sdk_atv_armv7.mk +++ b/products/sdk_atv_armv7.mk @@ -31,8 +31,6 @@ DEVICE_PACKAGE_OVERLAYS := \ PRODUCT_COPY_FILES := \ device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml \ device/generic/goldfish/camera/media_codecs.xml:system/etc/media_codecs.xml \ - device/google/atv/init.goldfish.rc:root/init.goldfish.rc \ - device/google/atv/init.ranchu.rc:root/init.ranchu.rc \ frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \ frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml \ frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \ diff --git a/products/sdk_atv_x86.mk b/products/sdk_atv_x86.mk index 1b6f3f7..cdb4e81 100644 --- a/products/sdk_atv_x86.mk +++ b/products/sdk_atv_x86.mk @@ -13,6 +13,16 @@ # See the License for the specific language governing permissions and # limitations under the License. # +PRODUCT_PROPERTY_OVERRIDES += \ + rild.libpath=/vendor/lib/libreference-ril.so + +PRODUCT_COPY_FILES += \ + device/generic/goldfish/data/etc/config.ini.tv:config.ini + +PRODUCT_COPY_FILES += \ + development/sys-img/advancedFeatures.ini:advancedFeatures.ini \ + device/generic/goldfish/data/etc/encryptionkey.img:encryptionkey.img \ + prebuilts/qemu-kernel/x86_64/3.18/kernel-qemu2:kernel-ranchu-64 # TODO: separate out a common base for arm/x86 atv SDK build. $(call inherit-product, device/google/atv/products/sdk_atv_armv7.mk) |