How to make the emulator faster? - IDEs, Libraries, & Programming Tools

Most of android developers suffer from the slow of emulator when testing their apps so i picked this method for you to make the emulator faster :good:
Windows:
Install "Intel x86 Emulator Accelerator (HAXM)" => SDK-Manager/Extras
Install "Intel x86 Atom System Images" => SDK-Manager/Android 2.3.3
Go to the Android SDK root folder and navigate to extras\intel\Hardware_Accelerated_Execution_Manager. Execute file IntelHaxm.exe to install.
Create AVD with "Intel atom x86" CPU/ABI
Run emulator and check in console that HAXM running (open a Command Prompt window and execute the command: sc query intelhaxm)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Also don't forget install this one
P.S. during AVD creation add emulation memory: Hardware/New/Device ram size/set up value 512 or more
Linux:
Install KVM: open GOOGLE, write "kvm installation "
Create AVD with "Intel atom x86" CPU/ABI
Run from command line: emulator -avd avd_name -qemu -m 512 -enable-kvm
Or run from Eclipse: Run/Run Configurations/Tab "Target" - > check Intel x86 AVD and in "Additional Emulator Command Line Options" window add: -qemu -m 512 -enable-kvm (click Run)
P.S. For Fedora, for Ubuntu
Mac:
In Android SDK Manager, install Intel x86 Atom System Image
In Android SDK Manager, install Intel x86 Emulator Accelerator (HAXM)
In finder, go to the install location of the Intel Emulator Accelerator and install IntelHAXM (open the dmg and run the installation). You can find the location by placing your mouse over the Emulator Accelerator entry in the SDK Manager.
Create or update an AVD and specify Intel Atom x86 as the CPU.
Source : stackoverflow, Thanks to zest

For win: what about checkbox "Use Host GPU" in Emulation Options ?

fast toggles said:
For win: what about checkbox "Use Host GPU" in Emulation Options ?
Click to expand...
Click to collapse
The Use Host GPU option uses the host computer's OpenGL implementation (which is probably hardware-accelerated, on your real GPU) to evaluate OpenGL commands inside the emulated system. Put another way, when a program inside the emulator uses OpenGL for graphics operations, the work goes out to your real GPU, and the result goes back into the emulator, instead of emulating a GPU (which is very slow). The result is a significant speed-up, especially when you consider that most view and canvas drawing uses OpenGL in Android ≥ 4, even in non-graphics apps.
Also you can't use it with the snapshot option.
For more information, see this

Related

How create Emulator

Hi all.
How can i create my own emulator by VS 2005 in my project and us it.(for example create window in my emulator).
thankc
What kind of emulator?
Eg emulate a gameboy on the phone? Or emulate the phone on your PC?
V
i believe that emulators are mostly like games don in pure arm code
they are not even programed using windows mobile sdk
much less minimfc or .net
if one wanna make exsotic stuff like that i'd avice one use a nativ arm compiler
windows Mobile 5.0 smartphone emulator.
in VS 2005 when you create projec and run it .it rans his own device.and i want create project and ran but where i can run my device emulator and do with it what i want.For example carete windows in my devace.
thank.
in vs 2005 you choose if the code is run on a device or on an emulator in the project settings
i want to write programm (for example create windows) and i want that my programm is run im my device which i create.
How can i do it?
vijay555 said:
What kind of emulator?
Eg emulate a gameboy on the phone? Or emulate the phone on your PC?
V
Click to expand...
Click to collapse
Hi vijay555
Is there any emulator available (as per your info) for emulating my himalaya ROM on the desktop PC? Where can I get it???
Near the top of the screen there should be an option to choose what device to run on - Windows Mobile, or further down, Windows Mobile emulators. Just choose which device.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
(not my screenshot).
V
Thanks vijay555 very much. But I cannot launch device emulator manger. There is no option in the emulator window for launching the device emu manager. can you guide. I had downloaded the emulator from download section of buzzdev.net. Is there any other place from where I can download? I want it for WM2005 himalaya..
c_shekhar said:
Thanks vijay555 very much. But I cannot launch device emulator manger. There is no option in the emulator window for launching the device emu manager. can you guide. I had downloaded the emulator from download section of buzzdev.net. Is there any other place from where I can download? I want it for WM2005 himalaya..
Click to expand...
Click to collapse
Hi c_shekhar,
your answer is here:
http://www.microsoft.com/downloads/...A5-183A-4A1E-A7E2-CC500ED1F19A&displaylang=en
Cheers,
.Fred
dotfred said:
Hi c_shekhar,
your answer is here:
http://www.microsoft.com/downloads/...A5-183A-4A1E-A7E2-CC500ED1F19A&displaylang=en
Cheers,
.Fred
Click to expand...
Click to collapse
Thanks .fred for the link. I have downloaded the v1.0 from the link and installed it on my PC. My requirement is to load the nk.nbf which I has been cooked by me on this emulator. How can I do that???

[HELP][UBUNTU] Ubuntu on VirtualBox Graphics Error

I recently installed VirtualBox and created an Ubuntu VirtualMachine but the max graphics I can use are 128MB! When I start the VM is says Graphic memory is to low to run GUI! What should I do? :crying: I can only use the Terminal!
EDIT: It gives Low-on graphics mode error! I can't use GUI Ubuntu
Is this on PC??
Cause I don't think u can do it on phone...! Definitely not on sgy
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
=========HOLO-UBUNTU========theme
sanny5 said:
Is this on PC??
Cause I don't think u can do it on phone...! Definitely not on sgy
=========HOLO-UBUNTU========theme
Click to expand...
Click to collapse
Obviously! DUDE
Sent from my Huawei Glory Honor U8860 Using CM10.1
Most likely
You probably need to install the VirtualBox Addon package for linux.
Before installing the Guest Additions, you will have to prepare your guest system for building external kernel modules:
sudo apt-get install dkms
Insert the VBoxGuestAdditions.iso CD file into your Linux guest's virtual CD-ROM drive - so mount the ISO for the guest additions (it can be found in the VirtualBox installation directory)
Change to the directory where your CD-ROM drive is mounted and execute as root:
sh ./VBoxLinuxAdditions.run
mcapozzi said:
You probably need to install the VirtualBox Addon package for linux.
Before installing the Guest Additions, you will have to prepare your guest system for building external kernel modules:
sudo apt-get install dkms
Insert the VBoxGuestAdditions.iso CD file into your Linux guest's virtual CD-ROM drive - so mount the ISO for the guest additions (it can be found in the VirtualBox installation directory)
Change to the directory where your CD-ROM drive is mounted and execute as root:
sh ./VBoxLinuxAdditions.run
Click to expand...
Click to collapse
I cant enter Terminal! What do I do now?
The basic problem is that I can't run Ubuntu UI! I can only login thru console!
Sent from my Huawei Glory Honor U8860
There is a guy called "oh hey its Lou" he is a Linux expert and makes Linux related videos ... search on YouTube u will find him ... he is also a xda member... I ask all my Linux related quiries with him ... he will surely help contact him... although I use Ubuntu and manjaro a lot I do not use virtual box...
=========HOLO-UBUNTU========theme

Everything on the Windows Phone 8 Emulator

The Windows Phone 8 Emulator is installed as a part of the Windows Phone 8 SDK. You can follow some steps below to begin hacking the emulator.
Things to do:
everything....
InteropUnlock
BCD Editing
Well, first thing is first. Getting the WP8 SDK to install.
PREREQUISITES:
A SLAT capable CPU and BIOS. Some OEMs have only enabled the virtualization feature, but missed the SLAT feature.
Your computer needs to support hardware DEP (No execute bit for AMD).
An OS that supports Hyper-V: Server 2008, 2008R2, 2010, 2012, 2012R2, or Windows 8 Pro.
Note: AFAIK, the only officially supported OS for this is Win8Pro-x64
Access to a user account that has Administrator rights.
Steps for "Getting Ready!"
Set the date to 10/5/13 - one day before expiration (thanks to mister2d.)
Install the SDK normally. (Note: the complete SDK should be installable on any 64bit OS that has the OS version at 6.1 or newer, just follow the tutorial in my signature.)
Install the Visual Studio Update 4.
Install the Windows Phone Emulator - Update 3
Now, most of you can launch the emulator by opening the Windows Phone Deployment Tool (or Windows Phone Power Tools) and deploy to the resolution of choice and to either RTM or GDR3.
I seemed to hit a bug where XDE (the emulator shell) can't create a Virtual Machine properly. It seems to be surrounding the disk being attached improperly.
So.... You can skip the entire part above if you have the Flash.vhd and the desired resolution vhd.
Using the WP8 emulator only using Hyper-V Manager
Open Hyper-V Manager
Click on New, then Virtual Machine
Name the VM what ever you like.
Set RAM at 512 or 1024. 2048 me be a little finicky.
Leave Networking on Not Connected unless you have fully configured Hyper-V.
Select "Attach a virtual hard disk later"
Click Finish.
Right click on the VM you have just created and go to settings.
Click on DVD Drive and press remove.
Click on Hard Drive and paste the location of the desired resolution vhd.
e.g. C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0GDR3\Emulation\Images\Flash.480x800.vhd
Double click on the VM to bring up the control interface and press the blue-green "start" button.
Controls for the VM:
Back - Escape/F1
Start - F2
Search - F3
Vol UP - F9
Vol Down - F10
Camera full-press? - F7
Mouse left & right click - tap
NOTE: THE CURSOR DISAPPEARS WHEN MOVED INTO THE VM SCREEN.
Things disable out of box.
Microsoft accounts
dialer (I can't seem to get any of the dialer codes to work yet.)
camera (kinda...just displays a colored box running around the edges.)
Steps to InteropUnlock:
Attach the vhd
type diskmgmt.msc at the start screen. click attach vhd. paste the location of the vhd and press ok.
e.g. C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0GDR3\Emulation\Images\Flash.480x800.vhd
right click on blue disk shown and click on detach vhd once done with working on it.
type regedit.exe at the start screen.
Navigate to HKEY_LOCAL_MACHINE
Click File, Load Hive.
Go to the main partition (the one that has all the links to the other drives...)
and go down to Windows\System32\config (it will ask for permission to enter...)
Hmm....Seems to be interopunlocked already...
More soon!
reserved
Just saying this in case you didn't know this: You can mount the VHD file as a hardware and explore/edit emulator system files.
That's exactly what's in the op, but I'm not sure what persists and there's a few others too, but I ran out of time to mess with it. Just highlight the text and you'll see that the directions are there.
Essentially this should be able to operate like a real device, but it needs a few tweaks. Also its funny to see in settings for it to say i386 under the SoC.
Sent from my Lumia 928 (RM-860) using Tapatalk
Convert VHD into vmdisk, then you can run the emulator in VMWare directly with CPU without SALT or VT and can also without win8
Saw this over on the winbeta site. Didn't really check it out but may be useful in backing up any work done on the emulators. As I said I didn't take much time checking it out but may be worth a look. http://go.altaro.com/?LP=WinBeta-30...tm_medium=banner-300x250&utm_campaign=winbeta
What would be really nice is to make it so you can connect your MS account from the emulator.
jordanmills said:
What would be really nice is to make it so you can connect your MS account from the emulator.
Click to expand...
Click to collapse
Yeah it might just need an easy tweak, but then again I simply don't know.
Skin WP-Emulator
Skin WP-Emulator from MS Dev Center.
Maybe someone needs
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Nokser

[TOOL][ADB][Windows]RAM-Hog Sniffer For Rooted Android Emulators

Given the case you feel your favorite Android emulator runs slowly, especially at a certain game, then you should remind that Android emulator's (AVD) performance mainly depends on correct setting of its
A: Android per app Heap Size granted
B: VM total RAM (read: Random Access Memory) allocated off host machine
Most emulators don't automatically take care of this, they are preset to standard values: it's on the user to correctly configure it.
User has to check and monitor for the RAM usage of an individual app/game on Android, has to check which app/game is eating the maximum RAM and affecting the performance.
Yes, for me one of the fundamental questions users ask (or at least, they should) is: how much memory is my program using? It may be a simple question, but with a virtual memory operating system like Android the answer is quite complex.
By default Android OS - a derivate of Linux OS - since ages comes with procrank tool, what in detail shows you some RAM metrics for an application as those are VSS, RRS, PPS and USS. So also Android OS provided by the various emulators should do it, too.
Installed Terminal Emulator app on some wellknown emulators and ran procrank. Experienced that on Android emulators like
BlueStacks 4 ( Android Nougat )
PROCRANK doesn't work at all, you get message: "error creating kernel interface -- does this kernel have pagemap?"
MEmu 6 ( Android Nougat )
PROCRANK doesn't exist - means isn't implemented at all
NOX 6 ( Android Nougat )
PROCRANK isn't working, you get message: library "libpagemap.so" not found
Genymotion 3 ( Android Nougat )
PROCRANK doesn't work at all, you get message: "error creating kernel interface -- does this kernel have pagemap?"
Maybe someone knows reasons for that?
Hence, to get out the app/game specific RAM metrics ( read: VmPeak, VmVSS, VmHWM, VmRSS and VmPSS ) on an Android emulator, I wrote a Windows command script ( ~50KB ) that running against a rooted emulator gives them to me: I named it RAM-hog Sniffer. Notes: It's provided on an "AS IS" basis, it's free software, and you are welcome to redistribute it under license GPLv3.
Successfully tried it on properly rooted and ADB-enabled BlueStacks v4.50.5.1003 ( Android Nougat ):
Excerpt of logfile created:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Useful or not is for you to tell, give it a try and leave a comment with suggestion if indicated.
Usage:
• Download the attached ZIP and unpack it on Windows PC into any location of your choice
• Connect a rooted and ADB enabled emulator to PC
• Run Windows batch-file named RAM-hog-Sniffer
FYI: You will need to install the Android ADB drivers if your emulator is not detected.
PS: Please, do NOT share this elsewhere - I want to be able to update if necessary.
Script revamped. New version is in OP.
gr8. ty
To keep you updated: BlueStacks announced to fix the PROCRANK problem
According to the description I think something good,
but, can the script, not to change to the installed system,
for editing on a computer.>?
Ciuma777 said:
According to the description I think something good,
but, can the script, not to change to the installed system,
for editing on a computer.>?
Click to expand...
Click to collapse
You use any ANSI-editor of your choice, preferredly of course Notepad++, to edit the script on your Windows computer according to your needs.

General Seeking Help for fixing vmware tools in Android x86_64 images

Hello Friends~!
I decided to play with some forks of android and chrome os in vmware this week, it was a lot of fun!
A problem I would like to create a solution for, is the inability for vmware tools to install natively.
Here is a toolset I prepared called "droidvmtools" DOWNLOAD
I was able to create this toolset based off of the prelGlibc25 Linux iso that came with VMWare, that is stored in Windows in this directory:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If you care about the extra steps added to "droidvmtools" I tried to document that process HERE
This exercise is performed using this Prebuilt copy of PrimeOS for VMWare DOWNLOAD
In theory, this method should work on other android images with root access, then likely fail as this example does at the end.
INSTALLATION:
Obtaining the perl binaries:
In termux run the command
Code:
pkg install perl
Then in Root Explorer, go to
Code:
/data/data/com.termux/files/usr/bin
and copy the perl binaries.
Now paste the binaries to:
Code:
/system/bin
To install the Toolset:
Extract droidvmtools and paste it to the root file system. The video goes over this step at 2:34 if you need reference. ( I also used my yt channel to easily dl the tools youtube.com/@jennn/about the tools are there if no usb)
Open a terminal emulator and type:
Code:
su
chmod 777 -R /droidvmtools
Then in Root Explorer, open droidvmtools, select all, copy, and then paste the contents to the root file system
You will be prompted with this message, select these options:
Now when you type:
Code:
perl run.pl
The tools are able to start installation but they crash at this part:
This is the part I am stuck on. I had never heard of recursion until this happened..
Here is a PASTEBIN dump of the code, maybe someone is able to look and see why this would be happening?
This thread is in preparation for a megathread I want to make. If you want to preview some of the images early see HERE
PLEASE NOTE:
I Understand that "Vmware Tools is not supported" in Linux let alone Android, blah blah. Let's try!
I also already know about and have tried every emulator in existence... So Please! Let's refrain from "just use x emulator", this is about problem solving.

Categories

Resources