Is there Current 'HOW TO" guide for building ROM's - General Questions and Answers

Hi everyone!
I've decided to try building my first ROM and I'm having trouble locating a current up to date guide. I have found several guides, but all of them are outdated by at least three years, I was trying to follow one guide that recommenced using Jack to compile, but in the course of researching Jack, (I'm trying to understand what I'm doing, not just copy and pasting), I found this:
"Warning: As of this March 14, 2017 announcement, the Jack toolchain is deprecated. While you may continue to use Jack, we strongly encourage using the latest preview version of Android Studio instead, which provides improved support for Java 8 language features built into the default toolchain."
https://source.android.com/setup/jack
However I can't find a how to to use Android Studio under Linux for compiling ROM's
Any help would be greatly appreciated!
Thanks
zog

zogthegreat said:
Hi everyone! I've decided to try building my first ROM and I'm having trouble locating a current up to date guide...
Click to expand...
Click to collapse
Here's just a handful of them available on the forum.
https://forum.xda-developers.com/showthread.php?t=2814763
https://forum.xda-developers.com/showthread.php?t=1801690
https://forum.xda-developers.com/showthread.php?t=3179331
https://forum.xda-developers.com/showthread.php?t=2195858
https://forum.xda-developers.com/showthread.php?t=2320007
https://forum.xda-developers.com/showthread.php?t=3551484
Good Luck!
~~~~~~~~~~~~~~~
I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.

Related

[Q] Android port to Satio

Firstly, apologies but as a new member I cannot post to the developers area.
I want to know if anyone has put any effort into a port of android to satio? I believe the first part shouldn't be too challenging as Android has already been compiled to the OMAP3430 SoC. I am familiar with setting up an arm cross-compiling toolchain and have worked with the arm9260 chipset in this regard (including writing kernel drivers).
As I haven't developed for a phone before, I'm not sure how easy it is to access the bootloader and download a new kernel.
Beyond that I'm in new territory regards the neceeasry drivers and accessibility to the information to develop the kernel code required
I look forward to your comments.
Regards, Steve
Please use the Q&A Forum for questions Thanks
Moving to Q&A

[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

[Question] Kernel Compilation for Modules

First post in the Dev section but this seemed to be the place to talk about kernel compilation and module development.
I have twice now, and am working on my third kernel compilation for the purposes of custom module building for the TF700 and the TF201.
The question I have has to do with the compilation process. Every time I have gone through this with the downloadable Asus Kernel zip I run in to several issues. Either missing references in code or portions that won't compile at all. Is this normal for kernel compilations? I would have thought that it would be fully compilable out of the box ( so to speak). Is it ASUS or just android/Linux in general that works out this way?
Is there a better way to do it? Should I use some generic source with the same version numbers? The current source is just not working at all. I am using an Ubuntu distro. Have the cross compile tools etc... but it just fails. I have already resolved two missing definition references and it just keeps on failing in new places
Hopefully this question doesn't offend developers. I have moved from WinPhone to here and want to better my understanding of how this should all work but need to start with some basics before I can make a meaningful contribution.
Thanks.
P.S... I looked and didn't find a "Compiling android kernels for dummies" book
hx4700 Killer said:
I looked and didn't find a "Compiling android kernels for dummies" book
Click to expand...
Click to collapse
"Dummies" doesn't write a book on kernel dev. Too wrapped up in telling people how to download iTunes.....
Use your "Google". And when you find it, Google XDA University.
There, you will find steps for setting a build environment and kernel and cross arm.
Understand, all kernels are different, but a good place to start. Plus, you learn how to use Google. An added bonus.
Oh... and... as an extra bonus, I will move this to Q & A, as this post has no development work attached. :silly:
MD
My question wasn't HOW to cross compile. I have done it.
My question is WHY are there so many errors that need correcting when compiling the ASUS downloadable kernels and if this is typical of the source from any device or just ASUS?
hx4700 Killer said:
The question I have has to do with the compilation process. Every time I have gone through this with the downloadable Asus Kernel zip I run in to several issues. Either missing references in code or portions that won't compile at all.
Click to expand...
Click to collapse
I had to fix exactly one pair of quotes vs. angle brackets somewhere in the RIL - get the patch pack from my kernel and apply the ril include fix. Then it should compile. If not, you are doing something wrong.
Can you post any links or names of everything ill need to get started on cross compiling a kernel for my tf700t I download the source and get my config.gz and am running a ubuntu distribution but if you could post a link to a tutorial that has detailed instructions that will work for the infinity that would be greatly appreciated thankyou
alexcass4 said:
Can you post any links or names of everything ill need to get started on cross compiling a kernel for my tf700t I download the source and get my config.gz and am running a ubuntu distribution but if you could post a link to a tutorial that has detailed instructions that will work for the infinity that would be greatly appreciated thankyou
Click to expand...
Click to collapse
Step 1: Get a suitable ARM toolchain. I can't help you here with Ubuntu because I'm using Gentoo and their crossdev tool (http://www.gentoo.org/proj/en/base/embedded/handbook/?part=1).
Step 2: Cross-compiling the kernel works just as for native kernels (make menuconfig, make), but you have to pass parameters to each make, e.g. make ARCH="arm" CROSS_COMPILE="arm-gentoo-linux-gnueabi-" (or whatever your toolchain is called)
Step 3: For the TF700-specific blob stuff I have written a detailed tutorial here: http://forum.xda-developers.com/showpost.php?p=36925180&postcount=4

[Completed] Porting KitKat from NS-15at08 to NS-14T002

Hi everyone. I was given this NS-14T002 tablet for Christmas and after speaking to an insignia employee they promised the update from 4.2.2 to KitKat to be sometime in early summer or late April. Well as you can tell they're a bunch of liars. They recently release a new tablet called NS-15at08 with almost the exact same specs, the only difference being it has a rear camera and it has 1.4 GHz instead of a 1.2 GHz processor. Most importantly the NS-15at08 runs on KitKat. The tasty chocolate I so desire!
Anyways I'm curious as to how difficult it would it be to port it over. I've never ever ported a thing so I'm a bit worried about that but I need myself some chocolate.
My next thought was finding a well-known tablet with the same specs as mine and flashing a custom ROM made for that device. Would this or would this not work? This was actually my preferred way of solving this horrible issue since it would be mean I would most likely also receive Android L. I scoured the web for a device with similar specs but returned empty handed.
Maybe you can help? Here's the specs let me know if you need more information.
Height0.4"
Width8.2"
Depth6.2"
Weight1.2 lbs.
Wi-Fi Built In
InternalHDMI
Ports1Bluetooth
cell lithium-ionpolymer
Operating System 4.2 Jelly Bean
DriveCapacity8GB
Capacity8GBProcessor
BrandRockchipGPS
(RAM)1GBDisplay
TypeCapacitive touch panel (1024 x 768)Processor
Speed1.2GHz
Front Facing WebcamPixels2.0MP
I think this thread [GUIDE]How To Port Different ROMS to Your Device (Simplest and Fastest) would be of help to you.
Perseus71 said:
I think this thread [GUIDE]How To Port Different ROMS to Your Device (Simplest and Fastest) would be of help to you.
Click to expand...
Click to collapse
I appreciate your reply but I was wondering if it would be possible to just flash rom without having to port. A ROM from a device with identical specs.
No. Never. Not unless you love expensive paperweights.
Perseus71 said:
No. Never. Not unless you love expensive paperweights.
Click to expand...
Click to collapse
Okay but I just read the thread and it said I won't be able to upgrade to a newer android version which is kinda the point of me trying to port.
No you can not upgrade unless you have got Source from the Manufacturer.
Perseus71 said:
No you can not upgrade unless you have got Source from the Manufacturer.
Click to expand...
Click to collapse
If I ask for source code they have to give it to me don't they?
developer209 said:
If I ask for source code they have to give it to me don't they?
Click to expand...
Click to collapse
It depends on the manufacturer. Some might others may not.
Perseus71 said:
It depends on the manufacturer. Some might others may not.
Click to expand...
Click to collapse
They said yes and they will email me the source code in a few hours. Now what? ?
You will have to Set up a Linux Build environment and start reading. A lot of reading is required in order not to brick your tablet unless you have good development background.
Here's a Starting point on some of the articles from XDA University. Please note this is just starting point.
Getting Started : Setting up Android Development Environment
How to Build an Android ROM
Porting AOSP ROMs using Source Code
Now please note the mission of XDA Assist is
The mission of XDA Assist is to provide basic help to those who have tried searching but can't find what they are looking for and need assistance. This is not a "helpdesk" providing technical assistance but more to point you in the correct direction with your problem. Perhaps you can't find posts on how to root your phone, install custom recovery or maybe you have questions about how to navigate and use features on the site
Click to expand...
Click to collapse
So we are not able to help you more than this. However if you have further questions on development, you can post in
Android Development and Hacking > Android Software and Hacking General [Developers Only]
or Android Software Development
Perseus71 said:
You will have to Set up a Linux Build environment and start reading. A lot of reading is required in order not to brick your tablet unless you have good development background.
Here's a Starting point on some of the articles from XDA University. Please note this is just starting point.
Getting Started : Setting up Android Development Environment
How to Build an Android ROM
Porting AOSP ROMs using Source Code
Now please note the mission of XDA Assist is
So we are not able to help you more than this. However if you have further questions on development, you can post in
Android Development and Hacking > Android Software and Hacking General [Developers Only]
or Android Software Development[/QUOTEfun.
Gosh this sounds so much fun ??
Click to expand...
Click to collapse

Repo Download Size of CM-14.1 Lineage Branch?

Need some advice here, thought I'd give building Lineage from source a go as it would open up a whole lot of opportunities from there. But I didn't think it would require a massive (unknown size) download to even begin. Could anyone give me an idea of realistically what a repo sync such as "repo init -u https://github.com/LineageOS/android.git -b cm-14.1" would make me download.?
Unfortunately I'm an aussie and data caps are quite strict here, so I can't really go out downloading massive files of unknown sizes.
Well I had to stay up several nights in a row buttt I finally downloaded the 14.1 repo, and it's roughly 20GB .
Spooderman46 said:
Need some advice here, thought I'd give building Lineage from source a go as it would open up a whole lot of opportunities from there. But I didn't think it would require a massive (unknown size) download to even begin. Could anyone give me an idea of realistically what a repo sync such as "repo init -u https://github.com/LineageOS/android.git -b cm-14.1" would make me download.? Unfortunately I'm an aussie and data caps are quite strict here, so I can't really go out downloading massive files of unknown sizes.
Click to expand...
Click to collapse
I've never built a Custom ROM but, your best bet is to post this question within the following thread guide specific to your question.
https://forum.xda-developers.com/showthread.php?t=3551484
There's other guides on the forum but, that one seems, to me, to be the most active one.
Good Luck!
~~~~~~~~~~~~~~~
I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
Ibuprophen said:
I've never built a Custom ROM but, your best bet is to post this question within the following thread guide specific to your question.
https://forum.xda-developers.com/showthread.php?t=3551484
There's other guides on the forum but, that one seems, to me, to be the most active one.
Good Luck!
Click to expand...
Click to collapse
Thanks, I'll try over there

Categories

Resources