[Q] Anrdroid Emulator - HD2 Android Q&A, Help & Troubleshooting and Genera

Hi,
I'm trying to experiment with making my own build, but for the first instance I'm trying to gain an understanding of how everything is working by working with a current build.
I'm using eclipse in linux with the android sdk etc.
My question relates to running already prepared builds in the emulator. From what I understand in the sdk/platform folder I should be able to place the system.img file from a current build and run it on the emulator, however when I try this the emulator appears to freeze.
What am I doing wrong or missing?
Thanks in advance.
Can somebody please give me some advice, I know all of us are busy people but all I'm asking is for a couple of minutes of time from somebody more knowledgeable than me?

Related

Running Custom ROMs in SDK Emulator

I've been searching both google, and the xda forums all day trying to find a solution for this problem. I want to test certain functionalities of ROMS in the emulator. The problem is that I'm unable to get past the bootscreen animation on any ROM.
All the guides I've found are for Roms based on 1.5 and earlier.
My method thus far has been to nandroid backup my system, paste the system.img into a copy of the 2.1 API folder located in "platforms".
It's obviously trying to load the system, because it's showing the custom boot sequence, but fails at some point and goes into a loop.
Thus far, I've tried upping the RAM, Cache, and heap limit of the emulator, but to no avail.
So, I'm fairly new to Android myself and am still learning things daily. My first two thoughts are:
1) Aren't there some drivers in the system.img that are going to be device specific? So, you'll have to swap out the Eris stuff and insert some 'goldfish' drivers or whatever they call the emulated arch?
2) Logcat is your friend. Logcat it while it's booting up. That should give you some clues.
3) If you figure this out, please post the steps so that anyone else who wants to do the same will not have to start from scratch.
4) Isn't this fun?
gnarlyc
Indeed, will logcat it tonight and see what I can find through that.
I was looking for a way to make custom rom running in the emulator.anyone got a working 2.1 rom for emulator?

Android Emulator & Custom Roms

I can not for the life of me, even after spending days on this, get a custom rom to run on the android emulator. I've got to be missing something. Can somebody, anybody please go out of their way to help me with this PLEASE!! lol
I have installed Eclipse, downloaded the SDK installed ADT, setup and AVD and put the system.img file in the relevant AVD folder but every time I try to run it, it halts. Theres is no output in the terminal to indicate a reason for this.
Please, please help.
Maybe wrong section now, sorry, please move.
daz1uk said:
I can not for the life of me, even after spending days on this, get a custom rom to run on the android emulator. I've got to be missing something. Can somebody, anybody please go out of their way to help me with this PLEASE!! lol
I have installed Eclipse, downloaded the SDK installed ADT, setup and AVD and put the system.img file in the relevant AVD folder but every time I try to run it, it halts. Theres is no output in the terminal to indicate a reason for this.
Please, please help.
Maybe wrong section now, sorry, please move.
Click to expand...
Click to collapse
Surely there is someone on this forum that can help me with this?

[Q] Developing on Device

I have programmed in java for quite some time, and am decent at android apps.
However, i have two questions about developing on my device (rooted samsung captivate).
First, how can i get dev tools to run correctly on my phone. I have installed it as stated in "developer.android com/guide/developing/debug-tasks html#additionaldebugging". However, when clicking on Dev Settings it crashed with HARDWARE_TEST security exception. I have read that you need to sign/run it as system.
Is it possible to run it on my rooted captivate? if so how do i install it as system or find the system signature to sign it.
My other question is about programing, compiling, and running android applications from a device. I can take my .apk and unzip it. Then edit any resource files. Then rezip and sign it. However if i want to replace the actual code i need to compile it. I can use an online java compiler but i need to convert it to android format.
I know that dx.bat does this by using dx.jar . I can add dx.jar to the referenced libraries of my app. However i cant figure out what to do past there. Is what i am attempting even possible?
Thanks for your help.
There's a couple threads in this forum from folks like me who want to do this. Perhaps you can help us figure it out
Step one is I think to get an java compiler running on the phone. Then to make a version of DX that can run on the phone to convert the class to .apk
Thanks. in normal java programs you can use "com.sun.tools.javac.Main.compile( new String[] {args} );" found in the "<sdk>/lib/tools.jar" to compile a program. And dx.jar is what is used to covert it to android, however i do not know what to call in it.
We just need to find a way to get these jars to work on android.

Android Emulator Idea

So i have been looking at alot of the emulators and i am kinda a noob when it comes to coding and creating Roms and so forth.
Would it be possible to make a emulator that reads the OS from the folders like the phones does. that way noobs like me could copy .apks and rom .zips.
Idk is there anyway that would be posible.
Thanks
The Android SDK contains an emulator, that you can install apps on.
I suggest you download it from here: http://developer.android.com/sdk/index.html
Then read the documentation, play and before long you will be far less of a 'noob'.
--
Simon Monk - memeapps.com
I have read it and read it many times and i get it but i still have a hard time getting everything to work i guess i will try rereading it again tonight
what isn't working, exactly?

Strace command

Hi, first of all, sorry if this is the wrong place to post this, I tried on the development section but I couldn't so here it is the thing;
First of all, I'm using the default rom(AQH3) with root. The point is that I have used other phones, and I have been using strace command as any other linux command, on the android terminal or via adb. However, I recently bought a S8 but it seems it does not include this command in the rom by default. BusyBox does not incluide it either, so the only aproach left was to copy the strace binary from my previous phone to the S8...i do thinks that's not a good idea but at the moment that's the best I can do. Sometimes it works good, but with some apps I can't use it because the information i get is useless; It gives me all the time
Code:
restart_syscall(<... resuming interrupted restart_syscall ...>)
Which is not really usefull...What could I do to use strace on my S8 properly? Maybe I'm missing something, or is there a way to download a 'official' strace binary for this rom/phone? It seems to me that Samsung does not provide you this utility but maybe I'm wrong. I searched everywhere but I found nothing.
Thanks everybody for your time and your help!
You need strace built (preferably staticly) for the right architecture for it to follow the system calls correctly. Ive actually had plans to build one for a while, will share if I do
partcyborg said:
You need strace built (preferably staticly) for the right architecture for it to follow the system calls correctly. Ive actually had plans to build one for a while, will share if I do
Click to expand...
Click to collapse
So you think the problem is that the strace I'm using is for armv7 and so S8 has armv8 does not work properly? I was thinking that maybe the problem was S8 android/kernel version

Categories

Resources