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

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!

Related

[Q] Android kernel programming

Hi All
I am a newbi to kernel programming , especially to android kernel.
Can you tell me some good places on the net , that can be great sources for getting in touch with that thing.
I want to become familiar with the android kernel , dalvic etc. ( I speak english and german )
thanks in advance.
Sz_gergo
I am too interested in this subject. I am learning slowly as and when I get time.
kernelnewbies.org
Generally good resource for starting out learning linux kernel
(Which is what the android is built off of)
android.git.kernel.org
Android Kernel Source
lwn.net/Kernel/LDD3/
Online guide to driver development among many other related topics.
pdk.android.com
This guide provides an under-the-hood introduction to the Android platform, and is designed for platform developers and manufacturers building Android-powered devices.
Sorry for not providing the links...xda won't allow me to post links since I have less posts.
Android kernel
Dear All
as i understand, the android kernel source, what you can download from Google , should be enough for building a new kernel to some phone.
If i am right, does that mean that the Linux kernel sources are already included?
Or am i totally wrong?
Thanks for your answers
I am also interested in learning the Kernel Development and ROM development. Can Any one Help.
sz_gergo;11673408 begin_of_the_skype_highlighting 11673408 end_of_the_skype_highlighting said:
Dear All
as i understand, the android kernel source, what you can download from Google , should be enough for building a new kernel to some phone.
If i am right, does that mean that the Linux kernel sources are already included?
Or am i totally wrong?
Thanks for your answers
Click to expand...
Click to collapse
I have the answere for the question above.
After i have inspected the Android kernel sources, it came out, that i have been right.The only source you need for creating a new kernel for a phone, is the complete android kernel.
The linux kernel is allready included.
I think if you want to build a kernel, specific for your phone. you have to overwrite the default dirs with the specific sources of your phone. If it is not allready done by others.
Android Kernel
Hi,
We need to distinguish between Linux and Android. Android was forked from Linux, and now those are managed as separate products. Android usually takes the updates from linux, but there are features in Android which Linux refused to get (such as wakelocks).
So the android kernel source includes all needed to build a working kernel.

[Q] How to create my own rom.

Hi,
I'm following the Nexus S Android Development for 6 month now and Rom and Kernel flashing is a a real addiction for me (I flash everyday).
And, since the beginning i want to create my own Rom.
At first, I want to build one from another one (Cyanogen or another).
So, If someone can give me tutos, tools, tips and advices, I'll be very grateful.
Thanks to everybody, waiting for your help.
http://lmgtfy.com/?q=how+to+create+custom+rom?
Sent from my Nexus S 4G using xda premium
Thank you...
[email protected]_OC said:
Hi,
I'm following the Nexus S Android Development for 6 month now and Rom and Kernel flashing is a a real addiction for me (I flash everyday).
And, since the beginning i want to create my own Rom.
At first, I want to build one from another one (Cyanogen or another).
So, If someone can give me tutos, tools, tips and advices, I'll be very grateful.
Thanks to everybody, waiting for your help.
Click to expand...
Click to collapse
Hey you know i find myself sharing this exact interest as you. Let's collaborate and learn this Create A ROM Project
Notice to see the motivation to create a new ROM.
How good are your Linux skills? If you want to do it all properly I suggest you try and build your own AOSP ROM first (from the Adroid Open Source Project).
This is the place where Google publishes the Android source code files. Actually the site is fantatic and guides you through the entire process, but it does require you to understand the basics of the maketools in Linux.
Once you've been able to compile the source, you'll actually have a perfect stock ROM version of Android. Then, you can start doing advanced things to it. Add a different Kernel, add apps, install tweak scripts etc etc etc, the options are endless.
http://source.android.com/source/index.html
Good luck and have fun, because it is
Greetz
-
sippinalizay said:
Hey you know i find myself sharing this exact interest as you. Let's collaborate and learn this Create A ROM Project
Click to expand...
Click to collapse
I think it could be a great idea.
frutelaken said:
Notice to see the motivation to create a new ROM.
How good are your Linux skills? If you want to do it all properly I suggest you try and build your own AOSP ROM first (from the Adroid Open Source Project).
This is the place where Google publishes the Android source code files. Actually the site is fantatic and guides you through the entire process, but it does require you to understand the basics of the maketools in Linux.
Once you've been able to compile the source, you'll actually have a perfect stock ROM version of Android. Then, you can start doing advanced things to it. Add a different Kernel, add apps, install tweak scripts etc etc etc, the options are endless.
http://source.android.com/source/index.html
Good luck and have fun, because it is
Greetz
Click to expand...
Click to collapse
Thank you for your help and advise, i will look into it. I'm a novice concerning linux but i can learn fast.
Thank you again.
oh thats great

What is necessary if I want to compile a ROM?

Hi guys. 2 months ago I've came into Android World deeper than before and now I'm very fascinated. I downloaded linux, all the necessary files to compile a rom but I still don't understand some things.
My device is Redmi Note 2 and I use stock MIUI 7. As we all know mtk and/or xiaomi haven't released kernel sources (6795) so developers have to think hard how to make a rom. And there are my questions. Does kernel source is really necessary? What if I compile rom successfully and then port boot.img from stock? Will it work? However developers made some roms based on LP for this device. And I read that I need device tree and vendor, which doesnt exist for redmi note 2 or I still can't use github.
Second question which I have is: does compiling for 64 bit CPU differ from compiling for 32 bit CPU (like 6592)? If yes, could you give me some tips?
Ohh I think you can understand what I wrote
Thanks in advance and please dont blame me for silly questions
If you are looking to compile roms then you picked the wrong device to do it. They are the worst with kernel source. You can't completely compile a rom but use a patch system that does most of the work.
Yes it is different. There are some Tuts around but they are few as most don't use that type of chip.
If you really want to learn to develop then I would suggest getting a different device. One that respects the copyright and gpl laws.
zelendel said:
If you are looking to compile roms then you picked the wrong device to do it. They are the worst with kernel source. You can't completely compile a rom but use a patch system that does most of the work.
Yes it is different. There are some Tuts around but they are few as most don't use that type of chip.
If you really want to learn to develop then I would suggest getting a different device. One that respects the copyright and gpl laws.
Click to expand...
Click to collapse
Thank you for your advices. I have HTC desire 310 and I found the kernel sources. I know what I'll do in my free time
Monsterlevel said:
Thank you for your advices. I have HTC desire 310 and I found the kernel sources. I know what I'll do in my free time
Click to expand...
Click to collapse
To compile a rom u need kernel source, device tree and proprietary, bye

[Completed] Getting into android.

Hi,
So I've been getting into android the past month and really started liking it. I have however some questions about how an android (or Linux) operating system works. I also have some questions about how the Kernel and the OS work together and what I need to know about it before I start learning more about and getting into developing.
1. Does the Kernel command the OS or the other way around?
2. Can I create a custom Kernel specifically for an OS?
3. How much experience do I need to create a custom Kernel and is it phone specific in the sense that if I make Kernel A for phone A will it be easier to create Kernel B for phone B?
I'm not native speaking, so please ignore any grammar issues.
I'd love to hear something from you all!
Kind regards,
Pinnekeshaar
pinnekeshaar said:
Hi,
So I've been getting into android the past month and really started liking it. I have however some questions about how an android (or Linux) operating system works. I also have some questions about how the Kernel and the OS work together and what I need to know about it before I start learning more about and getting into developing.
1. Does the Kernel command the OS or the other way around?
2. Can I create a custom Kernel specifically for an OS?
3. How much experience do I need to create a custom Kernel and is it phone specific in the sense that if I make Kernel A for phone A will it be easier to create Kernel B for phone B?
I'm not native speaking, so please ignore any grammar issues.
I'd love to hear something from you all!
Kind regards,
Pinnekeshaar
Click to expand...
Click to collapse
Hello,
1) Yes
2) Yes
3) You really need to have an in depth knowledge of your device, linux kernel and you should know how to use git. Depending on how you want to get started, you can add more governors, hotplugs, upstream updates and more..
Regards
Vatsal,
Forum Moderator.
Thanks for your reply and also aswering my questions. I have no more questions.

Android OS source code structure/layout details to build your own custom ROM

Is there a resource where I can learn about the source code details of the Android OS itself ? I was a Windows C++ programmer and an currently a Java/J2EE developer. I know absolutely nothing about python except it is a programming language ! Where can I learn more about how all three are laid out to produce a great operating system that I want to modify?
Thanks,
Zvon
zvondroid said:
Is there a resource where I can learn about the source code details of the Android OS itself ? I was a Windows C++ programmer and an currently a Java/J2EE developer. I know absolutely nothing about python except it is a programming language ! Where can I learn more about how all three are laid out to produce a great operating system that I want to modify?
Thanks,
Zvon
Click to expand...
Click to collapse
Just search for "how to build android from source xda" and you will get good results, https://www.google.com/search?q=how+to+build+android+from+source+xda, you should take some from here and there, as there's not a definitely one guide, also, you could start or add more from https://wiki.lineageos.org/build_guides

Categories

Resources