Can Linux Android Imgs which built from source run in Windows Android Emulator ? - Android General

At the beginning I am new to android building from source.
I successfully built android for android emulator
useing android 4.0.1 AOSP source
(useing Ubuntu 14.04 64bit)
but when I run $emulator
I get errors
so I decided to run my imgs in windows sdk .
I moved the generated files
system.img
ramdisk.img
userdata.img
to android sdk path in windows
to the following path
....../android-sdk/platforms/android-15/images
but when I start android emulator it's stuck in black screen
but when I use the default android sdk files in the above
path the emulator started successful
.
the question is
can I run my system.img which I built useing Linux in windows?
is android system.img (x86)
system independent?

Related

Developing Android on Windwos

Attached is what was my missing link to full Android development in Windows.
1. For Android Java or C++ cpde I use Win + Eclipse + Android SDK+NDK
2. For Android System.img editing and building Entire Android system I use the following:
Developemnt Overview and purpose of this utility
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a. You do not need to install anything on your windows
machine, if you like you can just copy it to a USB drive and
run it from there.
b. You can use this to build an entire android system and images,
or just modify system.img if you like.
1. Download QEMU for Windows. (google for it Aprox 3Mb)
2. Download QEMU Debian Image. (google for it Arox 150Mb)
3. Run QEMU and use aptitude to download g++, make and other
Android build requirements as mentioned on the dev site.
4. Build Android system or just edit system.img.
By transfering files to/from host windows system....
This is where this Utility is used as ftp'ing from
QEMU to the host system will not work with a regular
ftp server.
To transfer files from QEMU to Host do the following:
Windows: Run Ftpd.exe
QEMU: $ pftp 10.0.2.2 and log in as ian
Now you can use ftp command to send and recieve files to/from
QEMU and Windows.
5. Transfer system.img or entire adriod build image to Device and
follow device flashing procedure.

[Q] Android emulator

How do I port an Android emulator project to a phone (HTC Sensation 4G) ?
Are you talking about taking the code for an existing emulator for the PC, and porting it to run it on Android devices?
If so, I have recent experience with this (I'm currently porting the N64 emulator "Mupen64Plus" to Android). The process is fairly involved (I've been working on my project for 10 months now), but here is a high-level overview:
1) Install the Android SDK and NDK on your computer
2) Work through the example apps to learn how to use the SDK and NDK
3) Determine what external libraries are needed (SDL, for example)
4) Compile and test all the required external libraries
5) Plug in the c/c++ components via the NDK
6) Convert all x86 assembly into ARM or ARMv7a
7) Build and debug on an actual device (AVD will most likely be too slow)
8) Write a new GUI for touchscreens (original GUI probably won't cut it)
Let me know if that isn't what you meant by your question

[Q] Build Android using native compiler

All tutorials on building Android are referring to use M$ with a virtual machine and Ubuntu 64bit linux or use a computer with 64bit Ubuntu and cross toolchain installed.
I have a development board (A20) with Ubuntu 12.04 (32bit) and the arm7hf compiler installed. The manufacturer delivers an Android image along with the source code archive.
My question is:
Is it possible to re-build Android for this kind of device using this environment?
This would avoid big computers with cross compilation instead it's done with the native compiler and tools for the processor it should later run on.
Or is the use of a cross toolchain fixed by Google in the Android SDK, i.e. no possibility to build Android in the native processor environment it is intended to run on?

Guide to creating a Windows XP .img file on Windows 7 / 10 to emulate on Android 6.0

I created a guide on how to create a Windows XP (or indeed any operating system Linux or Windows) image .img file ready to copy to an Android phone to be emulated. Part 2 of how to run the created file on Android is coming soon so subscribe to see that one. This has been tested on Windows 10 and Android 6.0 and is just an updated guide with the latest tools.

[TOOL] gibadb: Easily install adb and fastboot with one command (cross-platform!)

Hey everybody,
I got tired of having to manually install the Android SDK on every platform, so I built this tool.
You can think of it as a cross-platform spiritual successor to Minimal ADB and Fastboot that's always up-to-date.
It installs the base Android SDK along with the latest platform tools directly from Google's servers with one command.
As it installs the SDK, the platform tools can be updated at any time with sdkmanager.
GitHub - hacker1024/gibadb: A tool to easily install the Android SDK command-line and platform tools.
A tool to easily install the Android SDK command-line and platform tools. - GitHub - hacker1024/gibadb: A tool to easily install the Android SDK command-line and platform tools.
github.com
What's the benefit to just downloading platform-tools from google?
https://forum.xda-developers.com/t/tool-minimal-adb-and-fastboot-2-9-18.2317790/post-84252975
@aIecxs
This tool also downloads a minimal version of the Android SDK, which can be used to update the platform tools later on.
It also extracts them for you, tells you what to add to your path, and, on Windows, opens up the path settings.
theOriginalSuperl2 said:
@aIecxs
...........it also extracts them for you, tells you what to add to your path, and, on Windows, opens up the path settings.
Click to expand...
Click to collapse
II installed gibadb but cannot find the path to it. i ran gibadn command into cmd, it can't find it. What is the installation path to define it in the variables ?

Categories

Resources