How to build a best compatible ARM binary for Android system - General Questions and Answers

Hi, all
I'd like to build busybox from source code and I would like to make it to be most compatible, i.e to be able to run on most ARM HW for Android phone, I'm wondering if I should choose codesoursery or Android NDK?
Pls suggest. Thanks!

You should use "original" Software.
So try Android NDK.

crinca15 said:
You should use "original" Software.
So try Android NDK.
Click to expand...
Click to collapse
Thanks, I will have a try on your suggestion!

Related

Android parts in HP Pre 3 kernel

Hello everybody,
I was just looking around the Pre 3 kernel sources to find something useful about turning on the flash LED to make a torch when I found some lines related to Android.
Maybe HP just used Android sources to make their kernel or maybe this kernel is ready to start Android ?
What do you think about that ?
Code:
# Android
#
CONFIG_ANDROID=y
CONFIG_ANDROID_BINDER_IPC=y
CONFIG_ANDROID_LOGGER=y
CONFIG_ANDROID_RAM_CONSOLE=y
CONFIG_ANDROID_RAM_CONSOLE_ENABLE_VERBOSE=y
# CONFIG_ANDROID_RAM_CONSOLE_ERROR_CORRECTION is not set
# CONFIG_ANDROID_RAM_CONSOLE_EARLY_INIT is not set
CONFIG_ANDROID_TIMED_OUTPUT=y
CONFIG_ANDROID_TIMED_GPIO=y
CONFIG_ANDROID_LOW_MEMORY_KILLER=y
legsim said:
Hello everybody,
I was just looking around the Pre 3 kernel sources to find something useful about turning on the flash LED to make a torch when I found some lines related to Android.
Maybe HP just used Android sources to make their kernel or maybe this kernel is ready to start Android ?
What do you think about that ?
Code:
# Android
#
CONFIG_ANDROID=y
CONFIG_ANDROID_BINDER_IPC=y
CONFIG_ANDROID_LOGGER=y
CONFIG_ANDROID_RAM_CONSOLE=y
CONFIG_ANDROID_RAM_CONSOLE_ENABLE_VERBOSE=y
# CONFIG_ANDROID_RAM_CONSOLE_ERROR_CORRECTION is not set
# CONFIG_ANDROID_RAM_CONSOLE_EARLY_INIT is not set
CONFIG_ANDROID_TIMED_OUTPUT=y
CONFIG_ANDROID_TIMED_GPIO=y
CONFIG_ANDROID_LOW_MEMORY_KILLER=y
Click to expand...
Click to collapse
Qualcomm's reference kernel for that processor is an Android kernel. So all devices based on that processor start with an Android kernel and work from there.
-- Rod
rwhitby said:
Qualcomm's reference kernel for that processor is an Android kernel. So all devices based on that processor start with an Android kernel and work from there.
-- Rod
Click to expand...
Click to collapse
so,is it possible to run android on hp pre 3?
Yes, both the Pre3 and touchpad were developed with android due to mismatch in speed between hardware teams and webOS teams. I.e. webOS teams were way too slow.
pablo_max said:
Yes, both the Pre3 and touchpad were developed with android due to mismatch in speed between hardware teams and webOS teams. I.e. webOS teams were way too slow.
Click to expand...
Click to collapse
On what authority do you make this statement? Do you work in either of those teams? You'll need some facts to back up a bold, unprovable statement like that.
-- Rod
pablo_max said:
Yes, both the Pre3 and touchpad were developed with android due to mismatch in speed between hardware teams and webOS teams. I.e. webOS teams were way too slow.
Click to expand...
Click to collapse
Seriously ? It sounds a little weird, I thought that the Pre 3 was developed with WebOS 2.1.
Anyway, it still would be great to be able to dual-boot Android or at least make Android apps working, maybe within a chroot like there is with the Touchpad.
By the way, would the Touchpad Android IPK work on Pre 3 ? Is there any reason I shouldn't try ?
legsim said:
Seriously ? It sounds a little weird, I thought that the Pre 3 was developed with WebOS 2.1.
Click to expand...
Click to collapse
Without further proof, you should treat that post as trolling. There is no Android available from HP for the Pre 3.
Anyway, it still would be great to be able to dual-boot Android or at least make Android apps working, maybe within a chroot like there is with the Touchpad.
By the way, would the Touchpad Android IPK work on Pre 3 ? Is there any reason I shouldn't try ?
Click to expand...
Click to collapse
You should read the threads on PreCentral where the damage that package does to your kernel installation is outlined. Folks are having to doctor their devices to recover full capability again.
-- Rod
I tried to install the IPK but it didn't want to install the modified kernel.
So I did it manually and now the Pre 3 won't boot anymore.
It's time for doctoring in recovery mode
legsim said:
I tried to install the IPK but it didn't want to install the modified kernel.
So I did it manually and now the Pre 3 won't boot anymore.
It's time for doctoring in recovery mode
Click to expand...
Click to collapse
that's the attitude.
gratz

[Completed] can I make an AOSP in a virtual machine?

Hi everybody!
I am new in this community and I am sorry if a post this thread in the wrong forum.
I want to start making a AOSP or a "custom ROM" for Android, I have some experience with "Linux from scracth" and linux in general, but I think that I still beeing a newbie in OS development.
I really love OS develoment and thats why I want to try with Android. (I know that is very hard, but I am making this for experience)
The AOSP requirements says that I new a Android device and its kernel source. (I am new and I can not post links)
I want to know, if there is any way to make a AOSP or custom ROM in a virtual machine? maybe using google pixel or nexus code?
I have an Android device but I am a complete newbie and I dont want try on real hardware yet.
Thanks for any help!
david_pjimenez said:
Hi everybody!
I am new in this community and I am sorry if a post this thread in the wrong forum.
I want to start making a AOSP or a "custom ROM" for Android, I have some experience with "Linux from scracth" and linux in general, but I think that I still beeing a newbie in OS development.
I really love OS develoment and thats why I want to try with Android. (I know that is very hard, but I am making this for experience)
The AOSP requirements says that I new a Android device and its kernel source. (I am new and I can not post links)
I want to know, if there is any way to make a AOSP or custom ROM in a virtual machine? maybe using google pixel or nexus code?
I have an Android device but I am a complete newbie and I dont want try on real hardware yet.
Thanks for any help!
Click to expand...
Click to collapse
Greetings and welcome to assist. Plenty of devs use a virtual machine to build or even dual boot linux. There are plenty of prebuilt virtual machines at osbox and there are plenty of excellent guides to building in xda university
http://forum.xda-developers.com/general/xda-university
Good Luck and welcome to xda
Sawdoctor
sawdoctor said:
Greetings and welcome to assist. Plenty of devs use a virtual machine to build or even dual boot linux. There are plenty of prebuilt virtual machines at osbox and there are plenty of excellent guides to building in xda university
http://forum.xda-developers.com/general/xda-university
Good Luck and welcome to xda
Sawdoctor
Click to expand...
Click to collapse
Thanks for replying!
I have no problem to install Linux on real hardware, actually I have Arch Linux installed on real hardware and I used as my main OS.
What I want to know is, can I put AOSP or a Custom Android in a Virtual Machine? I mean, modify some code in a custom android and tested in a Virtual Machine?
Thanks for your time and help!
david_pjimenez said:
Thanks for replying!
I have no problem to install Linux on real hardware, actually I have Arch Linux installed on real hardware and I used as my main OS.
What I want to know is, can I put AOSP or a Custom Android in a Virtual Machine? I mean, modify some code in a custom android and tested in a Virtual Machine?
Thanks for your time and help!
Click to expand...
Click to collapse
You mean you want to run a custom rom on a virtual machine on your pc ? I think android studio can do something along these lines
sawdoctor said:
You mean you want to run a custom rom on a virtual machine on your pc ? I think android studio can do something along these lines
Click to expand...
Click to collapse
I mean that I want to modify Android OS to add functions, optimize, maybe modify the UI of the system, learn how Android is programed and that kind of things. I want to modify Android Source Code but I want to tested that code on a Virtual Machine on my PC.
Where can I get Android Source Code or any Custom ROM to start working on it?
Thanks for your help and time!
david_pjimenez said:
I mean that I want to modify Android OS to add functions, optimize, maybe modify the UI of the system, learn how Android is programed and that kind of things. I want to modify Android Source Code but I want to tested that code on a Virtual Machine on my PC.
Where can I get Android Source Code or any Custom ROM to start working on it?
Thanks for your help and time!
Click to expand...
Click to collapse
Here is the link for android studio
https://developer.android.com/studio/index.html#features
For source code you can use cm/aosp or anything opensource. Resurrection remix is quite easy to set up as they have a lot of pre built scripts to help you set everything up
Sent from my SM-N930F using Tapatalk
sawdoctor said:
Here is the link for android studio
https://developer.android.com/studio/index.html#features
For source code you can use cm/aosp or anything opensource. Resurrection remix is quite easy to set up as they have a lot of pre built scripts to help you set everything up
Sent from my SM-N930F using Tapatalk
Click to expand...
Click to collapse
Thanks for your help and time!
You have resolved everything that I needed!

how to verify the custom ROM on android studio emulator

Hello XDA members,
I am preparing custom ROM binary for my device and I would like to verify it on android studio emulator.
Please let me know steps to be followed also the location where i need to keep SW images.
Thanks
Ritu Raj
androidtutoracademy said:
Hello XDA members,
I am preparing custom ROM binary for my device and I would like to verify it on android studio emulator.
Please let me know steps to be followed also the location where i need to keep SW images.
Thanks
Ritu Raj
Click to expand...
Click to collapse
In my knowledge, you cannot test a device specific rom in an emulator. You need to flash the rom on your phone directly, unless your custom rom was made for the emulator.
Hello,
how to compile/build android source code for emulator only.
Please let me know
Thanks
androidtutoracademy said:
Hello,
how to compile/build android source code for emulator only.
Please let me know
Thanks
Click to expand...
Click to collapse
Android Studio includes prebuilt system images for emulators.
You do not need to compile one.

build and flash aosp source code on android emulaor

Hello XDA Developers,
I am new to this forums and development of android stock rom so my question may sounds stupid and basic.
I need to download AOSP source and build for ANDROID Emulator and flash the ROM on Emulator.
I need to flash and check the SW image on Emulator and I don't have the actual Nexus devices with me.
Hence, please let me know the procedure to do so.
if it is feasible to prepare android image for emulator and flash it on the same.
Please help me for the same.
Thanks

Question Help compiling kernel with KVM

Hi,
I wanted to compile a custom kernel with KVM for the ROG Phone 5 on the latest Android 12 (EU variant) so I looked at the Kirisakura kernel for base (from @Freak07) and I looked at the script that starts compiling the kernel. I could not find some things that was required such as the Google's GCC thing or the "DU_Tools" but I still managed to start compiling the kernel after editing the defconfig file using make menuconfig to enable KVM. Once I did that I ran the script but after like two minutes I got an error (Error 2).
So can someone help me doing this please?
Thanks.
Hey Alex - been looking in to creating a build script using docker for this out of curiosity.
Out of interest though - how are you planning to use KVM once it's enabled?
Moved all of my development efforts from XDA.
chrisaw said:
Hey Alex - been looking in to creating a build script using docker for this out of curiosity.
Out of interest though - how are you planning to use KVM once it's enabled?
Click to expand...
Click to collapse
Hey, I didn't tried using docker (because I don't know how to xD) and I want to use KVM because I heard that the Snapdragon 888 is compatible with it so I was thinking about doing a Windows 10 arm VM with native performance.
chrisaw said:
Got this building cleanly and producing a flashable ZIP:
GitHub - cawilliamson/Kirisakura_ANAKIN_ROG5 at master_release_s_1
Contribute to cawilliamson/Kirisakura_ANAKIN_ROG5 development by creating an account on GitHub.
github.com
Build instructions:
Code:
$ cd <kernel sources>/build/
$ ./build.sh
You will need Docker installed on your system via whatever means necessary and this is really aimed at Linux systems although you could also run the build on a Windows or Mac PC if you setup Docker correctly.
Click to expand...
Click to collapse
Thanks I will try that
Moved all of my development efforts from XDA.
chrisaw said:
Your chances of getting that working easily are slim.
Adding the KVM support to the kernel is easy but the problem you then get is about switching the CPU to "HYP" mode. (just based on what I read online)
If you have further info about this I'd be interested in reading it and seeing if we can get something which works. What I can tell you is that /dev/kvm does not get created simply by the changes I made.
Also be aware that /proc/config.gz is spoofed in these kernels with the "stock" config file so running something like "zcat /proc/config.gz" wont show KVM is enabled but it is.
Click to expand...
Click to collapse
Yes you are R8! Without hyp we can't enable KVM support.. but i found a site where telling android 13 has full KVM support.. but don't know it's true or not..
Because KVM support only available on some snapdragon chipset only..
Redirect Notice
Can't all of this work be ported to the Infinix NOTE 8 on Android 10 too?

Categories

Resources