[NOOB] Step-by-step guide on how to build app from source? - General Questions and Answers

I found an open source app that has its code hosted at GitLab, and I wanna build it for my phone myself. To be clear, this app does have a playstore version, but I wanna build it myself, for DIY's sake. I'm not strictly a developer, but I consider myself pretty knowledgable about modding and DIY-ing. So what I'm looking for is a step-by-step guide meant for beginner to intermediate users, on how to build an app from its source code.
The app I'm looking to build is called LibreTorrent. Its code is hosted here on GitLab.

Related

[Q] Linking eclipse with source code and virtual device

This question is more directed towards developers, but anyone who knows feel free to contribute.
Recently i have downloaded the android source code on ubuntu and the SDK, got virtual device running and adb for my g2x. My question is now that i have the source code in my "WORKING_DIRECTORY" how can i link eclipse to the source code, and run my source in virtual device.
To sum up the question im looking for guide on creating own custom rom, it would be nice to be pointed in the right direction
Do u want to build the from from stock or CM sources
Sent from my LG-P999 using XDA App
Thanks for responding, i also have a nexus s, id assume its easier to work with nexus stock code then translate some of my work to the cyanogenmod for my
g2x, whatever is easier the get me going and understanding the concepts, So to answer the question working from stock

Dont know where to start

Hi every one I dont know where to start i want to make my own rom from source,build it,modify it etc.But i dont know where to start.I know how to build rom from source(learned it from the tutorial on source.android) but i dont know what do those codes mean.i searched on google but cant find an easy tutorial.If i build rom from source how do i make it work on my phone.How do i FIX bugs on my roms,modify it Help please
Check out the chef central section under android. There are a lot of great people working on making development accessible.
For a pure AOSP ROM you are going to have a bit more work, but be rewarded in the end. There is also cyanogenmod and other custom distributions you can build from source and modify.
If you are familiar with C and Java programming you can dig into the actual development more by writing apps or changing source code. If you don't you may want to start on that road. Other wise you will be basically cutting and pasting from everyone else, which doesn't get you any credit.
Themes are also a good place to start. There are lots of good guides in the theme section and people are willing to help if you ask nicely and appropriately.
I have done a bit of this foot work and come to the conclusion, I need to learn programming then come back to source. It is overwhelming to take on an entire operating system in a foreign language, especially when that language has to be perfect to function!
Good luck in your endeavors. Feel free to hit me up for the little knowledge I have!
Sent from my PC36100 using xda premium
But! where to learn
First i want to learn the basics of Rom
are you familiar with Java, C and C++? These are going to be very useful in understanding the "codes" as that is what they are written in. You are also going to have to build AOSP specific for your device, which will require adding your device to the device tree and extracting the necessary drivers and files that are specific to your device. Cyanogenmod has many devices already added to their github and you would simply clone the folder for your device, then build AOSP source and issue make using the device specific folder.
THIS is a helpful tool, and yes it will compile pure AOSP as well.
THIS is also a very helpful tutorial, and you can modify instructions to work for Gingerbread.
If you just want to learn to build and modify the source start with Cyanogenmod build from their source first. You can also build the kernel if you choose but that is a bit more complicated. After you have both of those building without errors then start making changes that you want to see.
The CM Wiki has some good info http://wiki.cyanogenmod.com/wiki/Building_from_source
http://wiki.cyanogenmod.com/wiki/Building_Kernel_from_source

[Discussion] Source Code Policy for ROMs on XDA

So to preface, every Development thread on XDA has the following sticky:
1. If you are using a stock kernel you MUST mention where you obtained your source. Also, having a link leading to where the manufacturer has uploaded their source is always helpful.
2. If you are using a community driven source build (e.g. CyanogenMod, AOSP, or Parandroid) or a singular developer's source you MUST link directly to the repository that contains the kernel for that specific device. If you are only linking to another thread or to a general repository, this will not be considered as being GPL compliant unless the code has not been modified.
3. If you are forking a repository that is similar to the examples listed above in #2, you MUST publish and link your entire kernel source. This includes any and all changes that you have made. Two of the most common ways developers publish their source on XDA is either with Gerrit, or GitHub. While these two methods are recommended, they are not the only routes you can choose to accomplish this. All that is required is that the source can be viewed and downloaded by anyone who wishes to do so. When releasing an update, your repository must be updated the moment you release your kernel on XDA. If you can post your update to XDA, there should be no reason as to why you cannot release your source.
Click to expand...
Click to collapse
Yet, what are we to do with the tons of ROM development threads that has no reference to sources or general threads that are not possible to build? For me that's mainly a security concern, when a dev releases a ROM for general use, it's hard to check for the authenticity of the product.

How are LineageOS and TWRP built?

Hello, I am very new to everything. My knowledge is basically limited to using Linux. Could someone tell me where I can find the documentation of how to build TWRP and LineageOS for an unknown phone.
Or tell me what the general process is.
I cannot understand anything, when trying to understand I feel like being faced to a wall and not understanding how the hell it works.
Thanks in advance,
Snow
SnowCode said:
Hello, I am very new to everything. My knowledge is basically limited to using Linux. Could someone tell me where I can find the documentation of how to build TWRP and LineageOS for an unknown phone.
Or tell me what the general process is.
I cannot understand anything, when trying to understand I feel like being faced to a wall and not understanding how the hell it works.
Thanks in advance,
Snow
Click to expand...
Click to collapse
If the source files haven't been released by the OEM, you may be at a dead-end before you begin.
How can I get TWRP for my device? (how to compile TWRP)
We can’t afford to buy every device made and many times certain devices are only available in other countries. TWRP is fully open source, so you can port TWR...
twrp.me
[GUIDE][COMPLETE] Android ROM Development From Source To End
Hello Everyone....:D:D Today I will present you all the ultimate guide for ROM development starting from Source to End. This guide will be applicable to all devices. So lets Start :D What is Android? :rolleyes: Android is an...
forum.xda-developers.com
How to build LineageOS on Windows 10 using WSL 2
XDA Senior Member Uldiniad has published a guide on how to compile Android 10-based LineageOS 17.1 on a Windows 10 PC using WSL 2.
www.xda-developers.com
✦✦✦ [GUIDE] Build LineageOS ✦ How To use Github ✦✦✦
How-to Build LineageOS Introduction These instructions will hopefully assist you to start with a stock device, unlock the bootloader (if necessary), and then download the required tools as well as the very latest source code for LineageOS...
forum.xda-developers.com

[Android Development] How The Developers Make The Custom Rom?? (not buildboting)

My Question Is How Will the Custom Rom Made From The Aosp Base??
I Really want to learn the Android Custom Rom Development.(Again I'm Telling That I'm Not asking about complier or bulid the rom). I'm asking about the source and how it is made.
I Want To Be a core member.
Giving a Guide To This Question Is Highly Appreciated!!
Thank You Guys
(t.me) is a good place, they use SDK and Android Kitchen etc.
JaswanthTeja said:
My Question Is How Will the Custom Rom Made From The Aosp Base??
I Really want to learn the Android Custom Rom Development.(Again I'm Telling That I'm Not asking about complier or bulid the rom). I'm asking about the source and how it is made.
I Want To Be a core member.
Giving a Guide To This Question Is Highly Appreciated!!
Thank You Guys
Click to expand...
Click to collapse
Custom ROM sources require that the stock source code be made available to the public by the manufacturer/carrier of the device. If the stock source code for a specific device has not been made available to the public, developers can not create custom ROM source code for that specific device. Developers use the stock source code to create the custom ROM source code and then ROMs are built using the custom source they created. I think that is the answer you were really looking for. You want to know how the source code itself that the ROMs are built from is created. You aren't asking about the fruit that comes from the tree, you are asking where the tree that bears the fruit comes from. Am I right?
The only way to get custom ROMs on devices that do not have stock source code made available is to port custom ROMs from a similar device with the same architecture that does have available source code and custom ROMs made for it.
OldNoobOne said:
(t.me) is a good place, they use SDK and Android Kitchen etc.
Click to expand...
Click to collapse
I don't think that is what they are asking.
Droidriven said:
I don't think that is what they are asking.
Click to expand...
Click to collapse
Yeah, I Want To Know About Android Arc
JaswanthTeja said:
Yeah, I Want To Know About Android Arc
Click to expand...
Click to collapse
I answered the question. If you specifically want to know how developers convert stock source code into custom ROM source code, you probably will not find that answer here. Most of the people here work with the stuff that the LineageOS team creates from stock source code after the custom ROM source code has been created, they are not part of the process involved in creating the custom source code. It is like being a construction worker, the construction worker does not create the material that he uses to build a house, someone else creates the materials and then he uses what they created to build a house. Google and the LineageOS team create the material, the developers here use what they created to build the ROMs here.
You should try going to github or the LineageOS website to ask your question.
Droidriven said:
I answered the question. If you specifically want to know how developers convert stock source code into custom ROM source code, you probably will not find that answer here. Most of the people here work with the stuff that the LineageOS team creates from stock source code after the custom ROM source code has been created, they are not part of the process involved in creating the custom source code. It is like being a construction worker, the construction worker does not create the material that he uses to build a house, someone else creates the materials and then he uses what they created to build a house. Google and the LineageOS team create the material, the developers here use what they created to build the ROMs here.
You should try going to github or the LineageOS website to ask your question.
Click to expand...
Click to collapse
cool

Categories

Resources