Created
April 19, 2014 17:01
-
-
Save ubinix-warun/11090431 to your computer and use it in GitHub Desktop.
run-emulator.sh edited, scale ubuntu-touch display to 0.7 on line 50. Ref: http://www.webupd8.org/2014/03/ubuntu-touch-x86-emulator-better.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# run-emulator.sh -- execute emulator with correct args | |
# | |
# Copyright (C) 2013, Canonical Ltd. | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 3 | |
# of the License, or (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
# GNU General Public License for more details. | |
# | |
# See file /usr/share/common-licenses/GPL for more details. | |
set -e | |
export PATH="out/host/linux-x86/bin/:$PATH" | |
export ANDROID_PRODUCT_OUT=out/target/product/generic_x86 | |
sysdir="out/target/product/generic_x86" | |
disk_system="$sysdir/system.img" | |
disk_userdata="$sysdir/userdata.img" | |
disk_cache="$sysdir/cache.img" | |
disk_sdcard="$sysdir/sdcard.img" | |
disks="$disk_system $disk_userdata $disk_cache $disk_sdcard" | |
if [ ! -e "$disk_sdcard" ]; then | |
echo "No sdcard.img, run build-emulator-sdcard.sh first!" >&2 | |
exit 1 | |
fi | |
if ! which qemu-img >/dev/null ; then | |
echo "Please install qemu-utils" >&2 | |
exit 1 | |
fi | |
exec emulator -memory 512 \ | |
-skin EDGE -skindir development/tools/emulator/skins \ | |
-sysdir "$sysdir" \ | |
-system "$disk_system" \ | |
-data "$disk_userdata" \ | |
-cache "$disk_cache" \ | |
-kernel "$sysdir/ubuntu/kernel/vmlinuz" \ | |
-sdcard "$disk_sdcard" \ | |
-force-32bit \ | |
-shell -no-jni -show-kernel -verbose -scale 0.7 \ | |
-no-snapstorage \ | |
-gpu on -qemu -append 'apparmor=0' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment