[Completed] [Q] Android emulator not responding after a while - XDA Assist

I have a script that installs an apk file, launches it, and uninstalls it afterwards (using adb) on the android emulator. (After installation I get a response from the terminal: rm failed for -f, No such file or directory while installing, but I don't think this is a problem) I repeat this for several apk files. But when I launch the android emulator, several minutes to several hours later, the emulator is not responding anymore. The spinning pinwheel appears, the only way to quit is to kill it via the terminal (using kill -9).
I have tried to change the two possible CPU/ABI Settings of an AVD to (ARM and Intelx86), but both settings result in the same problems. I have also tried different API levels (19 and 21), but also no luck there.
As I am running the emulator on a Mac, I thought the problem may be related to my OS, so I performed the same thing on a computer running Ubuntu. The same problem appears on both devices.
I have also captured the logcat files, but there are no similar error messages across these files.
These are the parameters that I am using: Android SDK / AVD Manager on Mac OSX10.10 (64 bit) with Java version 1.7.0_65 and Ubuntu 14.04 (64 bit) with Java version 1.8_0.25
Any idea (why or) how to figure why the emulator is not responding anymore?
Any help would be appreciated.

Please post in Android Software and Hacking General [Developers Only] and one of the experts will be happy to help.

Sorry, but since I am a new user, I am not allowed to post there.

Related

"adb logcat" on Linux vs. "adb logcat" on XP

I'm awaiting the upgrade like everyone else so I flashed RC29 and have my phone plugged in at home and at work with "adb logcat" running so I can get the file name if I'm one of the lucky first few to get the update.
I noticed an interesting difference that I hope someone has an answer.
At home I have Ubuntu and at work I have XP. On ubuntu logcat keeps streaming new log events from the phone to the terminal but on XP's dos cmd window logcat does not update new log events to the screen.
I'm thinking this might be due to buffering? or USB driver differences?
Is there any way to get windows to behave like Linux (at least from a adb logcat perspective)?
On Windows XP, it does keep streaming log events to the console for me
Do you have the full android SDK installed on XP or just the files for adb?
Dave RL said:
Do you have the full android SDK installed on XP or just the files for adb?
Click to expand...
Click to collapse
I am running the full SDK on VISTA and it is streaming new events.
I have also noticed that, i dont ever get the full log report, The report cuts off in the middle of a lines when command prompt window wont catch no more (i guess), and stops there. i only have the adb file in place (in win dir).
I have tried the other command, "adb status-window" and i get no stream of data at all. I do not know if that is a correct command to use for this but just want to put that out there.
Dave RL said:
Do you have the full android SDK installed on XP or just the files for adb?
Click to expand...
Click to collapse
Full SDK
Ok, I'll try installing the full SDK when I get a chance at work today and see if that makes a difference.
It sounds like it's being caused by this bug:
http://www.telesphoreo.org/pipermail/g1-hackers/2008-December/000191.html
although generally that bug only shows up in Vista. Basically whenever the adb server reads data from the phone faster than the program running on your computer can read it out (e.g. tons of logcat data), the adb server locks up. You can try doing an end-task on adb.exe to kill the server and then running a fixed version like http://lfx.org/~jperry/adb_fixed.rar , or if you don't trust Random Files By Strange People On The Internets, you can try running logcat immediately after the phone reboots (so the log will be very short, not triggering the bug) and then just leaving logcat running while you do testing.
> This is probably being caused by the bug mentioned at
> http://code.google.com/p/android/issues/detail?id=1309
> Since it doesn't look like Google is ever going to fix it, I've compiled
> a binary with that patch applied. Try using the adb binary below (or
> apply the patch from the bug report and recompile) and see if that fixes
> it. Be sure to kill the adb daemon first before trying the fix (the bug
> is in the daemon process, not the client).
>
>
Click to expand...
Click to collapse
I can confirm that this fixed the problem for me. I had to restart the G1 (brute force way to restart the daemon) and use the adb_fixed.exe binary.
Thanks aziwoqpd!

[Q] Eclipse ADK Beginner's Issue

I am running Linux (Ubuntu 10.10) on a 64-bit platform, and I have installed Eclipse Helios with ADK 2.3.3 & 3.0. I'm new to Android development, and am trying to run a sample app [~/android-sdk-linux_x86/docs/resources/samples/Wiktionary/...]. However, I am getting the following error messages when I Run it:
Code:
[2011-04-14 14:24:23 - Snake] Still no compatible AVDs with target 'Android 3.0': Aborting launch.
[2011-04-14 14:24:23 - Snake] Performing com.example.android.snake.Snake activity launch
[2011-04-14 14:24:46 - Snake] Launch canceled!
Where can I find an Android Virtual Machine for my Android 2.3.3 (on my 64-bit Linux)?
Hi!
You should rename your thread to "SDK",since "ADK" means a completely different on Android.
First off, can you please all steps you took to install eclipse and the sdk ?
Make sure you follow step-by-step this guide: developer.android.com/sdk/installing.html
Robson

[Q] Not able to install the SDK packages, coz SDK blinks for a sec and then closes.

So, I am sorry, if this is a stupid question, I am novice here. I am trying to run SDK manager on windows 7, 32-bit os. It's already installed. Whenever I try running SDK manager, It flashes for a sec and disappears. When I tried executing android.bat from tools, what I got was :
C:\Program Files\Android\tools>android
[INFO] Starting Android SDK and AVD Manager
'xcopy' is not recognized as an internal or external comman
operable program or batch file.
No command line parameters provided, launching UI.
See 'android --help' for operations from the command line.
Exception in thread "main" java.lang.NoClassDefFoundError:
ts/Display
at com.android.sdkmanager.Main.showMainWindow(Main.
at com.android.sdkmanager.Main.doAction(Main.java:2
at com.android.sdkmanager.Main.run(Main.java:99)
at com.android.sdkmanager.Main.main(Main.java:88)
I have java 6 up date 25 already installed and the path is already added to environ var. Also I am interested in developing for android, If anybody is interested in showing me how, I wud be very greatfull. Thanks in advance. Plzzzzzzz........ HELP.
Currently Using : HTC Desire Z.
And yes, I am having eclipse 3.2 already installed on my system. PLzz help................................., somebody......................, anybody.
General tip
If you double click some techie program on Windows and see it just appear and disappear like that, it usually means that this program is meant to be run in a command line window.
So go to All Programs -> Accessories -> Command Prompt and open that
Then go to wherever that program is installed and run it from there.
Oh, and note that Android development needs the JDK, not the JRE version of Java, The JDK contains all the extra parts needed for Java software development in general, including key parts needed by the Android SDK.
While the JRE can be downloaded from www java com , the JDK is only available from java.sun.com .
P.S.
Sorry for not making proper links, but I have not made enough posts to allow them yet.

Android 4.0.1 ICS Virtual Machine available for donwload

Updated on Aug-19-2012:
Download link: (4.0.4_r1.1)
http://www.vmlite.com/index.php?option=com_kunena&Itemid=158&func=view&catid=9&id=8838
we have built a virtual machine from the latest Android ICS 4.0.1 source code, Ice Cream Sandwich. You can download it free from our site.
It's created for virtualbox and vmlite, but can be converted to vmware format.
Unique features:
(1) mouse integration with host, no more mouse trapping
(2) shared folders
(3) auto mount sdcard
This is the full readme:
/////////// readme file ////////
VMLite Android 4.0.1 ICS virtual machine instructions
Copyright 2011 VMLite Corporation
1. Setup the virtual machine
(1) Using Winrar or 7zip to extract the zip file to a folder.
(2) Start VMLite Workstation 4.2 beta or VirtualBox v4, then go to menu Machine > Add, select Android-v4.vbox file to add the vm, you should be able to then
start the virtual machine.
(3) if (2) is not working for you, you can create a new virtual machine using Machine > New VM... menu, choose Linux 2.6 as guest os, add the two vdi files using
IDE controller to the vm. Android-4.vdi as Master, and sdcard.vdi as slave.
2. Using the virtual machine
(1) Drag the lock using the mouse to enter the Android screen.
(2) sdcard is now automatically mounted, if for some reason that it does not work well, you can do it manually as follows:
open a command prompt, and enter these commands: (adb.exe is included in the zip file)
adb connect localhost
adb shell
mount -t vfat /dev/block/sdb /mnt/sdcard
after the above, you should be able to use the sd card, which has 8G size.
If you can't connect using adb, and you are using NAT as network adapter, you need to run the following command:
VBoxManage modifyvm Android-v4 --natpf1 adb,tcp,*,5555,*,5555
If you are using bridged network adpater, you need to use the ip address of your vm to connect, e.g.
adb connect 192.168.1.10
If you have problems connecting to the vm, execute the following commands:
adb kill-server
adb shell
(3) Use shared folders to copy files between vm and host. This build includes shared folders additions, you can use the following commands to mount
the share.
adb kill-server
adb shell
mkdir /mnt/sdcard/c_drive
mount.vboxsf c_drive /mnt/sdcard/c_drive
ls /mnt/sdcard/c_drive
assume you have added a shared folder to the vm named as c_drive. You can ignore the error message from mount.vboxsf.
will continue to add more full screen, dynamic display resolution, emulations, such as GPS, Camera, remoting, etc.
We are determined to make it the best android vm and virtual phone you can even find.
We will also make it to boot a physical pc using the same virtual disk file via our unique VBoot technology, so same file can run as virtual as well as physical.
And what would be your website?
google "android v4 vm download", as I still can't post external links here.
refer to readme inside .7z for more instructions
100k download over last week after release.
I found the link:
http://www.vmlite.com/vmlite/Android-v4.7z
Some pics:
http://www.sevenforums.com/attachme...oid-v4-vm-available-download-android-v4-1.png
http://www.sevenforums.com/attachme...oid-v4-vm-available-download-android-v4-2.png
I will try it soon.
having issues with the mouse.... host mouse seems to be 2-3cm higher then ics, cant even reach the menu button
huisinro said:
google "android v4 vm download", as I still can't post external links here.
refer to readme inside .7z for more instructions
100k download over last week after release.
Click to expand...
Click to collapse
let me have a try!
yes, it's a bug we are fixing. the mouse moves inside 800x600 while display is 1024x768.
if you see this, try to reboot the vm.
if still like this, you can then disable mouse integration from menu.
elspanish88 said:
having issues with the mouse.... host mouse seems to be 2-3cm higher then ics, cant even reach the menu button
Click to expand...
Click to collapse
Android 4.0.1 ICS questions
Hi,
I do hope someone can assist me. I downloaded the .7z file, extracted and mounted the .vbox in VirtualBox v4.1.8. All good, it booted up perfectly but problems that arose are as follows:
1: no matter WHAT configuration I choose for networking I simply cannot get the VM to browse any webpages or even to see that there is a network connection. I do see briefly in the bootup that eth0 is loading though, so not sure where to look now as I cannot use ALT-F1 to get to a root shell to do a netcfg to diagnose. When booting the network indicator on the status bar of VBox shows activity, also once it is up and running but no internet access whatsoever.
2: I have noticed I cannot change the time, it defaults to whatever it was when it booted up, that is if the time says 13:20 when it booted up, I cannot change the hour to anything else. if I click set, it just reverts back to 13: or whichever hour digit was there before. Also, clock does not seem to run in this VM. Both the desktop clock and the digital clock on the status bar of Android stay at whatever time it was when it booted up, say 14:20. that is where it will stay, it never updates/moves/keeps time. In the settings page, it seems to be keeping time however.
If there is anyone who can assist me with these issues I would be most grateful.
Thanks in advance,
Mark.
i get an error at boot...
Code:
init: Timed out waiting for /dev/.cp;dboot_done
Kernel panic - not syncing : Attempted to kill init!
atkbd.c: Spurious ACK is isa 0060/serio0.Some programmight be trying to access hardware directly.
Is there any way to install more Apps?
Have send me one per mail but no way to install...
It works, but internet is only in the browser. And it still says that wifi isn't working.
By the way, I'm missing the market thats available in other android4.0 versions for X86:
http://code.google.com/p/android-x86/downloads/list
But these versions don't have internet at all, unless your doing some tricks that are explained here:
http://nil.uniza.sk/linux-howto/android-40-virtualbox-networking-issues
But keep on the good working
This is great! The only problem i am having is there is no Wifi avaiable. Also, if i may ask, how can i download apps to it? I have the apk files of the apps so i dont need a market either thanks!
sgtfoo said:
i get an error at boot...
Code:
init: Timed out waiting for /dev/.cp;dboot_done
Kernel panic - not syncing : Attempted to kill init!
atkbd.c: Spurious ACK is isa 0060/serio0.Some programmight be trying to access hardware directly.
Click to expand...
Click to collapse
Have you had any luck figuring out what was causing this? I'm having the same problem. I've tried different chipset, processor, and acceleration settings. None of which have worked.
Mouse Integration Fix!
elspanish88 said:
having issues with the mouse.... host mouse seems to be 2-3cm higher then ics, cant even reach the menu button
Click to expand...
Click to collapse
Hello, elspanish88! Two ways to fix this problem.
1. Double click on VirtualBOX and start your vm, then when you are logged on to Android, click on machine, at the top left corner, then click Disable Mouse Integration. Then you can move freely, around the screen.
2. The easy easy easy way! Type (Right Ctrl+I) .. there you have it!
Cheers,
ConnorTheHelpa!
This vm is updated to 4.0.4_r1 version, available here:
http://www.vmlite.com/index.php?option=com_kunena&Itemid=158&func=view&catid=9&id=8838
Our vmlite vm is very popular, more than 1 million downloads over last few months.
The latest Jelly Bean version, v4.1.1_r4 is being build, will release a vm when ready.
huisinro said:
This vm is updated to 4.0.4_r1 version, available here:
http://www.vmlite.com/index.php?option=com_kunena&Itemid=158&func=view&catid=9&id=8838
Our vmlite vm is very popular, more than 1 million downloads over last few months.
The latest Jelly Bean version, v4.1.1_r4 is being build, will release a vm when ready.
Click to expand...
Click to collapse
I have a noob dbt. Whts special in it than the original android avds??
send from Gods Own Country........
emulators are too slow, not for real work.
vm is 10x faster.
this is awesome, now i can have a real test environment rather than a test phone! kudos!

[Q] change API level on apk

hello
can somone please help me a little. i want to change the API level from an apk to work on my 2.2 android device.
i downloaded sdk manager and downloaded the android 2.2 thingys. then i downloaded eclipse and started it and i installed the sdk following the offival development guide. but how can i now change api level off that app? can someone please give me a guide on what i need to do or if i missing some more plugins or so;ething. i am complete noob here but would like to try it to get that app to work on my device as i get parse error when trying to install.
thanks in advance
If you do not have source code for the apk (which I am assuming you don't), than I do not think you can just change the supported API level.
If the app does not support Android 2.2 (API level 8), than you can try following things:
1. Start ADB (adb.exe) from \android-sdk-windows\platform-tools and run following command
adb install <your apk file> after connecting your device to you computer.
This should install the apk. Application may crash if it uses certain API not supported in API level 8.
2. Just email the APK file and try to open your email from the device and insall there. You will sill run into the same issue of app crashing if it uses features not supported in API level 8.
Hope this helps.

Categories

Resources