Kernal - General Questions and Answers

Developers of xda listen here, i am porting the firefox os to android mobiles, but i don't know how to edit kernal. Help me,i'll make credits in my upload(guide me to edit kernal)

Hey,
Fix the title, and I think you need more experience to port firefox OS, it's not that easy, android mobiles is too generic (you should work on a specific device).

Dude I have already ported the fire fox for a specific device ( I am not eagar to mention the device name) and I am trying to port the os to some more devices so I have to edit kernal. Searching for help ........ Help me do you know.

Related

Creating a rom based off CM(Galaxy S4), How ?

A bit of infos before starting this thread. I'm using a Samsung Galaxy S4 Canadian, I have a high end computer(maybe that helps for coding,stuff like that) and I have "medium" knowledge on rooting/flashing,etc. I am a great designer, well for myself, I think i'm good. So I can edit or create icons and themes for new rom!
I say medium, because the only thing I really know about this kind of stuff,is rooting,flashing,installing roms and pretty much that honestly.
I already downloading the Android SDK to test those custom roms i'd like to create. I thought of doing like a couple of guys on here, using the CM Source? and just adding stuff,etc.
--
What i'm looking to do, is creating a rom based of CM for the Galaxy S4 and just in general a little side project for myself and adding some infos in my head; Some may laugh because of the lack of knowledge, but hey! we all started somewhere
I'm asking the community of dev's or just users, do you have some threads or some stuff to download to "Start" this project ?
Some things I should read before, I won't test rom's on my phone as it's a daily phone, i'll use the emulator instead(AVD or SDK) and i'm already searching on how to run it.
If you have any useful youtube videos i'll gladly accept them
I found a tutorial on how to build a rom but for the Nexus 4, I guess it's the same process but different sources ?
I'll search for the sources of Cm for the Galaxy s4 but if anyone reads this thread and knows where to get it, please link me!
Thanks to the community, this may also be useful for other users. Thanks!
Okay, I will help
1st off, let me teach you some basics.
1.) You cannot test roms on the android sdk, the android sdk has nothing to do with roms, its for building apps and java programming. It will not help you with anything if an issue goes wrong in a rom, well only the adb (android debugging bridge) for taking locats.
2.) You cannot compile a rom on windows, only linux, preferably ubuntu. So you need to just download cm11 for your device and extract the rom zip.
I will tell you more later, but its like 1pm here Goodnight

[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 build/port Bugless Android Nougat for MT65xx (MT6582) devices?

How could I be able to build/port bugless Android 7 (Nougat) for MT65xx based devices (Specifically MT6582 device "Mine is Infinix Hot X507")? I am looking for building/porting a bugless Lineage OS/Resurrection Remix/AOSP/... latest release ROMs for my MT6582 device. I've no experience in building/porting Android ROMs. My question could be what are the topics/guides I need to learn from in order to have the skills of the person who is able to build/port a bugless Nougat version for my device?
It doesn't matter the topics/guides are for porting/building (also is it easy/hard), however the more convenient approach for me is the one by which I could have a bugless fully device-compatible ROM at the end.
I have good programming knowledge base and dealing with command line software. Also I will start learning Linux Kernel in few weeks after my exams.
I need your valuable help and suggestions. Thanks in advance.
Research/Outcomes till now:
■ I have read a little about porting. I understood that first I need a to-be-Port-ed ROM of another phone having the same CPU. I have found one here, but unfortunately it has some bugs. The publisher says that this version is unstable and needs someone to build it for MT6582. I'm looking for being able to have the skills to be that person .
omareg94 said:
How could I be able to build/port bugless Android 7 (Nougat) for MT65xx based devices (Specifically MT6582 device "Mine is Infinix Hot X507")? I am looking for building/porting a bugless Lineage OS/Resurrection Remix/AOSP/... latest release ROMs for my MT6582 device. I've no experience in building/porting Android ROMs. My question could be what are the topics/guides I need to learn from in order to have the skills of the person who is able to build/port a bugless Nougat version for my device?
It doesn't matter the topics/guides are for porting/building (also is it easy/hard), however the more convenient approach for me is the one by which I could have a bugless fully device-compatible ROM at the end.
I have good programming knowledge base and dealing with command line software. Also I will start learning Linux Kernel in few weeks after my exams.
I need your valuable help and suggestions. Thanks in advance.
Research/Outcomes till now:
Click to expand...
Click to collapse
First of all, chances are high you won't get a fully bugless one at the very first boot.there will be device specific files that causes minor bugs which you can only find and fix after the ROM boots successfully. This should be your primary objective,there are lot of guides for porting mediatek devices you can follow guides for marshmallow ROMs as its similar.
But i must it will be easier trying a marshmallow or lollipop roms first if youre new,anyway I wish you Good luck:good:
- Now to the ROM (trust me I know all about it)
It is based on 3.10.103 kernel so first you have to build one for your device. basic things like data aren't working in this beta release.
The publisher says he needs someone to build it for mt6582? Well,**** .
Building ROMs/kernels aren't easy but I'll tell you what is though ,stealing someone's days of work, put it in your blog without even giving some credits,this youtuber may not know about it so...I'm not gonna do anything about it
Will this build be fixed? It was ditched because of the above mentioned problem but I/other devs may release another stable build for our device(lenovo a5000) but it may or may not be available to the public
Edit :it's out now

Some questions regarding Android ROM Development and Kernel Development

Hi, I'm completely new in Android ROM development and want to get into it. I have a Moto G Turbo and a old Moto E 1st gen.
So I had some question regarding Android ROM development. I may sound completely noob which I am, but still if you help me by answering my question or at least referring to some links then I'll be helpful. And please only answer if you are confident about what you are saying.
1> I understand that Android is open source, so basically we can download and build it. What does it take to make that boot on a particular device?
2> Android is based on linux kernel. So we need a kernel source too. I found this, https://github.com/MotorolaMobilityLLC/kernel-msm, is this the kernel source for moto devices? I am confused because I can find only one repository although it must different repositories for different devices.
3> If we have a kernel source for the device, can we build any ROM like AOSP or AOSP-CAF and boot it in our device? If not why?
3> I have a good knowledge of C although I am still learning. How do I start developing or porting ROM? I am specially interested in PURE AOSP.
I don’t know but you might find a lot of tutorials in non-device-specific threads. And I think there’s a guide on how to build lineage 13 for osprey
This thread could be helpful:
https://forum.xda-developers.com/showthread.php?t=2073370&page=1

Porting B2G to moto g3

Hi Folks,
I'm trying to port B2G to my moto g3. I was referring to this doc (https://developer.mozilla.org/en-US/docs/Archive/B2G_OS/Porting_B2G_OS/basics). However some of the things mentioned in this doc are not clear to me. Could you please help me with the below issue.
I'd like to build the AndroidKernel from source. So where should I include the below lines? Is it in this file?
https://github.com/LineageOS/android_device_motorola_osprey/blob/cm-14.1/rootdir/etc/init.target.rc
HTML:
on early-init
start ueventd
import /init.b2g.rc
Also if I understood correctly. building the kernel from source doesn't require to unpack , edit the init.rc file and repack the kernel from the device. Could you please confirm this?
Thanks,
Arun
Hi Arun,
I totally understand your frustration with this. You'd like to contribute to the Servonk project but first you need to port B2G to your phone or buy a new phone. Since the only other supported phones are the Z3 compact and Nexus 5, both of which are still relatively expensive secondhand, you want to use your Moto G3 which means first porting B2G to it.
So, I think there are two options you have:
1. Port direct from the AOSP code
2. Port from the CM12 code.
As Gerard said in telegram, porting from CM to B2G was never finalised so may actually require more work. However there may actually be more people here who can help you since people seem more familiar with CM than AOSP (in general, I know some people are very knowledgeable in both).
I see you've posted in the AOSP 7.1.1 kernel thread. Unfortunately, for the Servonk project you currently need a Lollipop based build, so 5.x AOSP kernel or CM12.x.
It might be worth asking a mod to move this thread into one of the development sub-forums.
As you know, this is the limit of my knowledge, but I really hope you find some success, if would be great if you could contribute to the Servonk project.
Your last option is to use the desktop build of Servonk, based on Glutin instead of Gonk, but I understand that you really want to get Servonk working on your phone.
Best of luck

Categories

Resources