[Q] Build Android using native compiler - Miscellaneous Android Development

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?

Related

[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] Arch Linux on TF101

Can someone give me a quick how-to how to load the Arch installer on my TF101? I'm already rooted, but I haven't felt it necessary to run Ubuntu on it because I don't really need it and am not really a fan of Debian-based systems. There is a distro for Arch compiled for ARM (and it supports Tegra 2) but the only guide they have is for a device called TrimSlice. Once I get the installer running, I'm good after that since I have installed Arch multiple times.
ArchLinux|ARM
http://archlinuxarm.org/forum/viewtopic.php?f=27&t=1720&sid=43b8c641e6e82affff4365d6d452cc15

Best way to run linux on android

Hello, I have a Micromax Funbook tablet with ICS running on it. It's got a 1.2Ghz Cortex A8 and 512MB RAM.
I wanted to increase my productivity, so I found some ways to run linux on android.
But now I'm confused and want to know which out of the three methods listed below, is the best and most efficient way to run linux on android:
1. Using the VPN
2. Using Bochs or QEMU
3. Using chroot
I'm not sure what is meant by "VPN", but the other two are vastly different.
Bochs and Qemu will emulate a CPU architecture, like x86. You'd most likely need this if you wanted to run something closed-source on Linux, since most commercial Linux software is compiled for x86 and not ARM (Cortex A8). It would be dog-slow doing this on a mobile device.
If you're just wanting the OS and open source software (KDE, Firefox, etc.), you'd be better off setting up a chroot. The software in this case would be communicating directly to the same Linux kernel that's running Android, so it would be much faster. It would limit you to using that kernel as well, which may or may not be a problem for your project. You'll need a distribution that is compatible with your CPU. I believe there's a Debian branch for ARM.
p.s. When I say "commercial Linux software", I should probably specify I meant commercial software compatible with GNU/Linux, because Android apps are also Linux software. Linux is the kernel. GNU or Android is the rest of the OS. Praise be to RMS and all that.
The VPN method
humanophile said:
I'm not sure what is meant by "VPN"
Click to expand...
Click to collapse
The VPN method is this(It requires three files: ubuntu.img, ubuntu.sh and ubuntu.sh.md5):
Make a folder named Ubuntu on your SD card and transfer them there.
Finally open up termial emulator and type "su" then hit enter
Next type "cd sdcard/ubuntu"
After that type " sh ubuntu.sh"
(ignore the warning) Then go and open up Android VNC.
Address: localhost ((or keep empty, it may work better for some that way))
Password: ubuntu
Port: 5900
BPP 24
You're all set!!
Click to expand...
Click to collapse
I think the VPN method is similar to chroot.
Bochs consumes high cpu
Hi,
I am using bochs to run tinycore linux on my Micromax Funbook Infinity, but it uses almost 89% of cpu. I there any way to lower the utilization? My device heats up fast.
Thanks

[LINUX] [QUESTIONS] Some basic questions about the Linux operating system

Does android run Linux? If yes, is it a modified version of linux? Which is the exact Linux operating system variant used for developing android custom ROMs? Is the windows operating system which I've been using for decades Linux-based? Which OS has a more easy to understand GUI? Does Linux support .exe files like Windows? Don't mind but please give me the basic knowledge of how to use the OS as I'm completely new to the OS :crying: along with the questions I'd asked above.
Android uses the linux kernel and so do desktop linux distributions.
However, android applications won't work on linux distros and linux applications wont work on linux.
This is because the kernel is just the base of the operating system and there is a lot more on top that makes something "android" or "linux (desktop)"
Each ROM will be based on a version of the android system that Google has released.
Each of these is based on a particular version of the android kernel.
However, you can also upgrade the kernel using custom code too!
Windows is not based on linux. It is completely separate.
However, it is possible to create a linux like environment under Windows.
e.g. Cygwin, GitBash, and most recently Windows Subsystem for Linux https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux
"More easy to understand GUI" is often confused with "Which GUI am I most used to".
Linux Desktops can be configured much more extensively than Windows so you can get quite close to a Windows experience on Linux if you want to.
Linux can run certain exe files via WINE. However, this is an intermediary layer and exe files are not natively supported on Linux

Samsung S8/any phone smartingTV

Hi,
I want to install just linux firmware official and kernel and run it as a PC linux.
Can I install only a Linux 4.4 kernel and then install gnome and other Linux apps?
I need because if I install a custom rom with TWRP, etc, some applications do not work properly. Instead by linux browser it does.
Can I install a Linux distro or ChromiumOS directly over my Exynos?
Thanks
Hi, AFAIK that won't work at all. A generic distro and Linux kernel doesn't have the device specific drivers. But i've heard about some apps that can emulate some Linux distros live on a running Android device. (like a VM)
so there isn't a native alternative?
What is the difference between the phone kernel and a PC kernel?
The Unix kernel does not allow command execution and does not work like any linux machine?
Why aren't there no ubuntu distros for phone architectures?
What is the difference between a phone architecture and PC architecture?
Thank you very much for your answer <3

Categories

Resources