How to build a Nougat system image for the emulator - Android Q&A, Help & Troubleshooting

Just starting out with Android and I thought I'd start with something easy. Except it's not.
I'm trying to build a Nougat system image for the emulator, like the images you can download with AVD Manager in the SDK.
I've tried getting the latest (?) tagged 7.1.2 system from "refs/tags/android-7.1.2_r39" and then building "aosp_x86-userdebug".
It builds without error and I can run it with the emulator in prebuilts, but not a recent emulator. The image seems to be specific to the goldfish kernel and not recent (3.10+) kernels, which are required by recent versions of the emulator.
I think that goldfish is the default for x86 devices, but I have no idea where to override it..
Any advice would be greatly appreciated!

Related

Emulate Android phone on PC

Hello users i got question.
I want emulate my current android system of my phone.
I want have full duplicate system of my current phone (i mean files\programms\ etc) at PC with possible to use it (things like 2-step auth of google, and others)
I think the way to do it is restore image of system that can do ClockWorkMod. But i dosnt know how use it on emulator on my Win7.
Is there some advice?
P.S. if dosnt understand something, ask.
P.P.S. sorry not my native language.
You can try THIS, or this HERE.
Here are the first steps you have to make
go to developers dot android dot /sdk/installing.html and here you will find the first steps you have to make.
The emulator included with the Android SDK is really slow and laggy IMHO. If you want to use the complete Android OS in emulator form, check out this video for installing Android-x86 inside VirtualBox. It will be much smoother and more versatile than the standard emulator:
www[dot]youtube[dot]com/watch?feature=player_embedded&v=vp1S23I0N6s
If you just want it for running Android apps and not for the OS itself, and you need to run it on Windows, check out BlueStacks.
www[dot]androidemulatorforpc[dot]com/2012/05/install-bluestacks-android-emulator-for.html

[Q] Question for developers: How to test system.img file after building from source

Hi,
I have build jelly bean from android source and cyanogenmod device files for p4. My build was successful and it generated system.img, ramdisk.img,etc..
How can I test them to see if they are properly built or not?
I tried running emulator command, it opens up a emulator screen but nothing shows up, only black screen and buttons on the right side..
Could someone help me regarding this..
Thanks in advance
Just now I built again for lunch-> full-eng
After it was built I ran the emulator command and the OS loaded smoothly for this build.
Does this mean my p4 build img file has some problem or emulator runs only with full-eng build?
I have done build for full_grouper and full_crespo. These two also didn't start emulator. So I am thinking that emulator will work only with the system.img which generated from full-eng build.
I don't know how I can test my build before actually trying to flash it to the device. Can anyone throw some light on this please

[Q] Help working with AOSP Source in Eclipse

I have been trying to import the android source into Eclipse (the entire root directory along with all of the files and subdirectories) as a single project as specified here in the AOSP documentation: http://source.android.com/source/using-eclipse.html
No matter what I do though, I end up with hundreds, if not thousands of errors. I have the latest Android SDK, have tried to set the build path to use either Android 4.2 AOSP APIs or Google SDK 4.2 APIs to no avail. I have also tried importing it as an Android Project and a standard Java project. I have followed all instructions for setting up the build environment correctly and checked to make sure it builds correctly using make.
I have tried to remove the sample code packages but am met with the same result.
I usually make changes directly to the file in a simple text editor like gedit but I wanted to use Eclipse to do error checking and validation.
Anyone know how to successfully get and build the android source in Eclipse? ANY help is greatly appreciated.
P.S
I am using Mint 64bit and Eclipse Juno
My first question would be, are you able to create a new Android application project that compiles successfully?

How do you install libhoudini on a custom Android Marshmallow x86 rig?

Hi guys, how's it going. Can I ask a question, please?
I'm currently making a custom built Android Marshmallow x86 64 on a mini PC. I've successfully installed the Android and now I'm trying to install libhoudini on the rig so that it can play ARM apps and games (porting the apps to x86 is not possible since they are 3rd party apps). How do I install and use it? When I went to its Github repo, it only has links with .sfs files in it and two folders which I don't know the difference of besides their name. And also there is no documentation or tutorial whatsoever about how to install and use it.
I've extracted the houdini.sfs file and it contains the files that are supposed to be in the "/lib/" (or "/lib/arm/", I can't tell) folder. I tried to google for the installation tutorial but they are either dead (buildroid.com) or outdated (since they are from 2012 and when I looked at them, the steps are not exactly correct anymore like for instance there is no libdvm_houdini.so in the newest libhoudini repo).
So, is there anyone here that has some experience about this? Thanks.

Emulate my custom Rom in Android Studio Emulator - Black Screen

Good Morning,
I tried to emulate some custom Roms in Android Emulator but at every Rom I get only a black screen.
I tried with the system images from the emulator from the sdk package. This roms works. Then i create a avd for the custom roms. I put the roms into the avd path where are the data of the created avd. I tried with different settings how device, ram an so on. But with all settings I only get a black screen.
The Roms are flashable from a sd card to the device. The Device have a mcu.
The Kernel for the images with Android 4.2.2 is 3.4.35. I tried with some Qemu´s but all qemu´s don´t work / or I only get the black sreen.
Before I flash a rom to the device I want to test it with the emulator that I know that the rom works fine. But with a black screen it isn´t possible.
A qemu for emulating the kernel 3.4.35 I don´t find on the internet.
I have a custom rom for android 6.0 and there I have the same problem with the emulator.
Who can help me to make it possible to emulate the roms at the emulator and get the roms to start?
Thank you very much

Categories

Resources