How to compile aosp from source without aosp apps - Nexus 5 Developer Discussion [Developers Only]

Hi, I want compile an aosp rom from source for nexus 5 without the aosp apps. Once I synchro the source, what should I do? Thanks

michelemascia7 said:
Hi, I want compile an aosp rom from source for nexus 5 without the aosp apps. Once I synchro the source, what should I do? Thanks
Click to expand...
Click to collapse
remove the projects from the make file

opssemnik said:
remove the projects from the make file
Click to expand...
Click to collapse
Can you be more specific ?
"my" make file is that :
Code:
### DO NOT EDIT THIS FILE ###
include build/core/main.mk
### DO NOT EDIT THIS FILE ###
And in the build/core/main.mk, I don't see "intersting" stuff concerning the subject.

Related

Newbie AOSP question and sharing

Hi all,
Having a rooted Nexus one in my hand, I have been playing around with many of the custom ROMs and kernel over the past few months. (Thanks to nandroid backup)
For ROMs, I have been playing around with CM, LeoFroyo, Modaco, Kang-o-rama, ... stock FRF91 deoxed by Geo411m...etc.
For kernel, have been happy in using the intersectRaven's one dated at 0802 (stable one for me...)
Just a few days before, I have setup a Ubuntu... install the jdk 1.5; git; repo; .... and all necessary files for compiling the source from git://android.git.kernel.org/platform/manifest.git -b froyo
Getting the source and compiling are very time consuming jobs because my network speed and computer are not very fast
So, I have successful compile the source, running lunch full_passion-userdebug ; make -j4 for my dual core machine, and find the system.img
I also download and install the dsixda kitchen, based on Leo's ROM, I have replaced it with my newest compiled apps (apks..) and pngs (black status bar ) and also replace the zImage from intersectRaven's kernel into my boot.img. After flashing the ROM in recovery, I am so lucky that my phone can boot up =_= with everything very smooth and OK.
Now, I have a few questions, as a newbie developer (sincerely asking for help~)
1) How can I get the latest google apps (gapps), and where can I get it? Are there any 'source code' for gapps? How to compile them?
2) If I want to get the source again (e.g. get the newest source of browser.apk), how & what command should I use?
3) If I want to modify the system settings, that is "Settings -> About Phone", which file should I modify?
4) After I get the source of AOSP, compilied them, is it mean that I have the rom deoxed? (Because I can see system/apps/ and all apps are breaking down into apks)
5) I enjoy using good things from others (e.g. LeoParts from Leo's ROM. Can I merge it into my rom and re-distribute after that? How?)
6) Is it necessary to sign *all* apk before they can be run on the phone?
7) I use dsixda kitchen and use testsign.jar. Just want to ask will the signing expires? And is it OK to distribute the ROM using test signing?
I know I get so many questions and they are so 'newbie...'. Sincerely hope that experts in this forum can answer my questions.
Once again, thanks all the ROM / Kernel makers in motivating me to custom the AOSP ROM myself.
Many thanks for all of your help.
ardatdat said:
1) How can I get the latest google apps (gapps), and where can I get it? Are there any 'source code' for gapps? How to compile them?
Click to expand...
Click to collapse
GApps are proprietary, closed-source applications... you can get them from http://mirror.kanged.net/gapps/gapps-hdpi-20100814-signed.zip
ardatdat said:
2) If I want to get the source again (e.g. get the newest source of browser.apk), how & what command should I use?
Click to expand...
Click to collapse
repo sync and then rebuild
ardatdat said:
3) If I want to modify the system settings, that is "Settings -> About Phone", which file should I modify?
Click to expand...
Click to collapse
Change the values in build.prop in /system or system.img
ardatdat said:
4) After I get the source of AOSP, compilied them, is it mean that I have the rom deoxed? (Because I can see system/apps/ and all apps are breaking down into apks)
Click to expand...
Click to collapse
AFAIK, yes, they are de-odexed. I believe you need to odex them later if you wish.
ardatdat said:
5) I enjoy using good things from others (e.g. LeoParts from Leo's ROM. Can I merge it into my rom and re-distribute after that? How?)
Click to expand...
Click to collapse
git merge (I forgot the detailed steps), repo sync and build
ardatdat said:
6) Is it necessary to sign *all* apk before they can be run on the phone?
Click to expand...
Click to collapse
Yes, I believe this is a must.
ardatdat said:
7) I use dsixda kitchen and use testsign.jar. Just want to ask will the signing expires? And is it OK to distribute the ROM using test signing?
Click to expand...
Click to collapse
This should be fine... most, if not all, custom ROMs are signed with test keys...
Hope I've been able to help a bit, if not much... have fun building!!! Ask the ROM gurus on twitter...
Thanks, a quick question:
Will repo sync re-download all the source???
I remember I need many hours in download the -b froyo branch.
Any get latest command that only get the difference?
Also, if I only want to get a particular folder, e.g. packages/apps/Browser, what is the command? Thanks.
repo sync takes several hours the first time... but every successive sync is a delta/differential sync... depending on the number of changes in the repository, it could finish in a few minutes. I'm not sure about syncing a particular folder, I just know about syncing a particular branch (which you have done using -b). Need to look it up...

build cyanogemod for p3100

Hi,
I have a samsung tab 2 p3100, which now has cynaogenmod 10 jellybean installed. I now need to make some tweaks in andorid OS<
How do I change the android source code and compile a build to flash on samsung p3100.
I downloaded the android source code from google and compiled it to generate a otapackage build with maguro configuration. But the zip file is not working for the device.
How can I create a ROM from the andorid source code which can be flashed on the samsung P3100. ?
Thanks and Regards,
Mahendra Naik
mahendra0203 said:
Hi,
I have a samsung tab 2 p3100, which now has cynaogenmod 10 jellybean installed. I now need to make some tweaks in andorid OS<
How do I change the android source code and compile a build to flash on samsung p3100.
I downloaded the android source code from google and compiled it to generate a otapackage build with maguro configuration. But the zip file is not working for the device.
How can I create a ROM from the andorid source code which can be flashed on the samsung P3100. ?
Thanks and Regards,
Mahendra Naik
Click to expand...
Click to collapse
You will need to do a lot more research. There are a lot of steps to setup a build environment for a device. No one can answer in a few words here Search XDA for tutorial on building CM10. There are a lot of pieces beyond the Google source that are required
adding application to the caynogenmod build
DigitalMD said:
You will need to do a lot more research. There are a lot of steps to setup a build environment for a device. No one can answer in a few words here Search XDA for tutorial on building CM10. There are a lot of pieces beyond the Google source that are required
Click to expand...
Click to collapse
Thanks for the reply,
I was able to compile cyanogenmod successfully and install it on the device.
Now I want to add my app as part of the build, so when the device is flashed with the rom, the app will already be there, instead of me having to install it again,
For this, I added the source of the app to /packages/apps and wrote an android.mk file and added the name of the app to PRODUCT_PACKAGES in the /build/target/product/core.mk file. But still the app is not included in the build,
How do I add my app as part of the cyanogenmod build?
Thanks and Regards,
Mahendra Naik
mahendra0203 said:
Thanks for the reply,
I was able to compile cyanogenmod successfully and install it on the device.
Now I want to add my app as part of the build, so when the device is flashed with the rom, the app will already be there, instead of me having to install it again,
For this, I added the source of the app to /packages/apps and wrote an android.mk file and added the name of the app to PRODUCT_PACKAGES in the /build/target/product/core.mk file. But still the app is not included in the build,
How do I add my app as part of the cyanogenmod build?
Thanks and Regards,
Mahendra Naik
Click to expand...
Click to collapse
A more simpler way is if You could just keep your app in system/app in your final zip!
Sent from my GT-P3100 using Tapatalk 2

[ROM][4.2.2] CM10.1 development

I currently work for make cm10.1 to golfu! I use the kernel of cute_prince, but I'll probably be making any changes if necessary...
if someone want to help to advance the project, I leave the link to download the rom!
I try to work as much as possible about the project but I do not have much time: s This is his if you want help, do not hesitate! Your aid goes help this is certain I put the file of the device on my github and file for the kernel are on the github of cute_prince for the moment but it is available since mine: P
Finally, I will publish here all link to the builds!
Build 1 (test only!) (2013-05-24)
Github
Device Github
Kernel Github Credit to cute_prince
the boot stop at htc picture, soo i upload the fix tomorrow just raplace this file in lib folder libandroid_runtime.so libandroid_servers.so libmedia_jni.so with the cm10 file
GL
Good Luck mate ....
for811 said:
the boot stop at htc picture, soo i upload the fix tomorrow just raplace this file in lib folder libandroid_runtime.so libandroid_servers.so libmedia_jni.so with the cm10 file
Click to expand...
Click to collapse
Wont work mate, i have tried many 4.2.2 roms, it will not wok, the set_perms are different and you'll get an error installing, if you use stock cm10 perms you get bootloop, when you carry the libs over it will stay at HTC splash screen, you need to wait for it to be built from source, sorry /:
Can you released to me your port? I can help you.
Jelly Android said:
Can you released to me your port? I can help you.
Click to expand...
Click to collapse
Listen to me oh my god, I have tried many ports and the lib swap will not help at all!!!! Trust Me! I've tried, needs to ported cleanly by source, or built by source, the porting method WILL NOT WORK! At least not for me and I've tried 15 different ROMs and devices! Trust me, need to be source built!
penguin449 said:
Listen to me oh my god, I have tried many ports and the lib swap will not help at all!!!! Trust Me! I've tried, needs to ported cleanly by source, or built by source, the porting method WILL NOT WORK! At least not for me and I've tried 15 different ROMs and devices! Trust me, need to be source built!
Click to expand...
Click to collapse
You are absolutely right!! You cannot port roms of different android versions................Only Method is to compile from source.....
okay, the port dont work, therefore need to compile from source, but I'm new to android developing under ... So I still have a lot to learn, such as how port device from source, soo for this part someone will do in my place anyway :/ I'll have to experiment to port cm10.1 on Golfu and perhaps lead to something
for811 said:
okay, the port dont work, therefore need to compile from source, but I'm new to android developing under ... So I still have a lot to learn, such as how port device from source, soo for this part someone will do in my place anyway :/ I'll have to experiment to port cm10.1 on Golfu and perhaps lead to something
Click to expand...
Click to collapse
Dude, YOU CANNOT PORT 4.2.2 WHEN WE ONLY HAVE A 4.1.2 BASE!
penguin449 said:
Dude, YOU CANNOT PORT 4.2.2 WHEN WE ONLY HAVE A 4.1.2 BASE!
Click to expand...
Click to collapse
when the first 4.1.2 build is create, is dont have a 4.1.2 base?
for811 said:
when the first 4.1.2 build is create, is dont have a 4.1.2 base?
Click to expand...
Click to collapse
When CM10.1 is released we will have a 4.2.2 base to use
penguin449 said:
When CM10.1 is released we will have a 4.2.2 base to use
Click to expand...
Click to collapse
Yess, but i will build cm10.1 from source, not port with another 4.2.2 base
for811 said:
Yess, but i will build cm10.1 from source, not port with another 4.2.2 base
Click to expand...
Click to collapse
Go for it mate, i'm here to test
i will try to make the device tree on my github this weekend! when to be made I will get you the link to my github: P
To 4.2.2? thank you
saider said:
To 4.2.2? thank you
Click to expand...
Click to collapse
yess!
Man I'd rather have a cm9 with working Wi-Fi than an incomplete cm10.1... I still goes for the .ko file thingy to be released, compiled or ported
0118 999 881 999 119 7253
Okey
I have some problem with my ubuntu computer so I was not able to advance this weekend but as soon as I resolve my problems im starting!
Fist build development!!
I'll probably be able to make a first build by the end of the week or early next week!!

[GUIDES INDEX] Start Compiling ROM For Android One!

Hey Guys, Many People Ask About How To Start Compiling ROM And I Am Here With Some Pretty Neat Guides By Some Awesome Developers To Make Your Compiling Journey Way More Easy, If You Are A N00b Back Out(Just Kidding) It Is Still A Bit Complicated At First But You Get The Hang Of It! There Guides Are Not Just For Android But Also For Other Devices!
Requirements:-
A Linux PC (64bit)(Ubuntu Prefered)
Minimum 4 gigs of RAM (Recommended RAM is 8 Gigs And Above)
Make Sure You Have At-least Unlimited Data Plan And A High Speed Network (Coz You Have To Download Repos Over 15 Gigs)
Guides:-
The Best To Start Guide - [GUIDE][COMPLETE] Android ROM Development From Source To End Thanks to @jackeagle
Basics And XDA's - How to Build an Android ROM
The Reference Tally Guide I Would Recommend (Like It Too) - [GUIDE][Step-by-Step] Build ROM from source Thanks to @Haze028
ROM Specific Guides :-
Cyanogen-mod - [GUIDE] Compile CM from source, source basics & FAQ - Very detailed and noob friendly Thanks to @galaxyfreak
PAC Rom - [Guide]How to Compile PAC Rom Thanks To @iurnait
AOKP - [GUIDE] The Comprehensive AOKP Building Guide Thanks to @TheByteSmasher
Paranoid Android - [GUIDE][AOSPA:v3.+] How to Compile AOSPA from Source : + Support and Maintenance Thanks to @gokussjx
Android One Specific Device Tree, Kernel And Vendor Sources Links:- Thanks to @varun.chitre15
Device Tree - https://github.com/varunchitre15/android_device_google_sprout
Vendor - https://github.com/varunchitre15/android_vendor_google_sprout
Kernel Source - https://github.com/varunchitre15/android_kernel_mediatek_sprout
Code To Clone Repo :
git clone https://github.com/varunchitre15/android_device_google_sprout -b cm-11.0 device/google/sprout
git clone https://github.com/varunchitre15/android_kernel_mediatek_sprout -b cm-11.0 kernel/google/sprout
git clone https://github.com/varunchitre15/android_vendor_google_sprout -b cm-11.0 vendor/google/sprout
Click to expand...
Click to collapse
For Video Tutorials :-
Visit Post #2
IF REPO SYNC FAILS​[FIX] Repo Sync Failed Due To Fetch Errors!​
Detailed Video Tutorials On Building Custom ROMs:-
Part 1 :-
Part 2:-
Reserved
Need Help
Is it possible to compile ROMs with Windows 7 ?
SidLoveNuts said:
Is it possible to compile ROMs with Windows 7 ?
Click to expand...
Click to collapse
No,you will need a Linux 64bit machine to compile android from source
SidLoveNuts said:
Is it possible to compile ROMs with Windows 7 ?
Click to expand...
Click to collapse
You can dual boot ur PC such that u can select between Win and Linux
Dear OP, please post/request varun to post a detailed guide for compiling CM for noobs. It will be greatly helpful for budding developers. Thanks .
arunmcops said:
Dear OP, please post/request varun to post a detailed guide for compiling CM for noobs. It will be greatly helpful for budding developers. Thanks .
Click to expand...
Click to collapse
Visit Here For Detailed Guide
It is usefull and same for all Rom's
I already have CM11 branch, want to try CM12 branch . Question is - Can I reuse my existing CM11 sources ? How to do that ?
ash1425 said:
I already have CM11 branch, want to try CM12 branch . Question is - Can I reuse my existing CM11 sources ? How to do that ?
Click to expand...
Click to collapse
No,You need to sync the new branch in order to build CM12
DC07 said:
No,You need to sync the new branch in order to build CM12
Click to expand...
Click to collapse
I think its possible. JBQ responded with positive answer on google groups. Please have a look.
https://groups.google.com/forum/?hl=en#!topic/repo-discuss/yUslU8J76Rs
Code:
You can re-run repo init in your existing client. You can skip the -u parameter to use the same server, and just specify -b.
You can make a local copy of your client first, so that you can have both a kitkat and a lollipop client.
JBQ
ash1425 said:
I think its possible. JBQ responded with positive answer on google groups. Please have a look.
https://groups.google.com/forum/?hl=en#!topic/repo-discuss/yUslU8J76Rs
Code:
You can re-run repo init in your existing client. You can skip the -u parameter to use the same server, and just specify -b.
You can make a local copy of your client first, so that you can have both a kitkat and a lollipop client.
JBQ
Click to expand...
Click to collapse
That's what I said. -_- Check my reply properly.I said that you need the new branch in order to build CM12 and so did JBQ.
My question was "Can i reuse my existing CM11 sources". I might have framed it wrong. Anyways, i have started sync and i can confirm that my download size is minimized a lot.
ash1425 said:
My question was "Can i reuse my existing CM11 sources". I might have framed it wrong. Anyways, i have started sync and i can confirm that my download size is minimized a lot.
Click to expand...
Click to collapse
--reference={whereever the predownloaded rom source is}
Use This During Repo Init Before -u
Kunal.Kene.1797 said:
--reference={whereever the predownloaded rom source is}
Use This During Repo Init Before -u
Click to expand...
Click to collapse
You think that will work for 5.0?
##W4TCH0UT## said:
You think that will work for 5.0?
Click to expand...
Click to collapse
Yeah...using it it will use some pre-downloaded art compilers, etc! it won't make a big difference but it will!
Kunal.Kene.1797 said:
Yeah...using it it will use some pre-downloaded art compilers, etc! it won't make a big difference but it will!
Click to expand...
Click to collapse
You can't use cm11 sources to download cm12...lol. EVERY AND EACH repo is different in cm12.
##W4TCH0UT## said:
You can't use cm11 sources to download cm12...lol. EVERY AND EACH repo is different in cm12.
Click to expand...
Click to collapse
Thanks for this
I was trying to explain this itself from long.
##W4TCH0UT## said:
You can't use cm11 sources to download cm12...lol. EVERY AND EACH repo is different in cm12.
Click to expand...
Click to collapse
Okay!!!! thx!
ubuntu 14.10 compatible
I'm having problem dual boot so can run ububtu on virtual application by running IOS file??

Build own Android with drivers

Hello
I’m building my own android image (so obviously I have the source code)
I want to add my own drivers (specific ones), but I have no idea about how to add them, so any help?
Regards
Any help guys ? srsly, i'm very stuck here
do you mean your device tree?
DSA said:
do you mean your device tree?
Click to expand...
Click to collapse
yes
If the device trees exist, you will need to add a local_manifests folder & roomservice.xml into your repo folder with the relevant details included, mine is attached as an example.
If not, you will need to create them, heres a couple of initial guides:
[GUIDE] How to make a device-tree for your phone
Welcome in this new tutorial! In this thread, i'll try to explain you how to create a device-tree. This is one of the most important part in the rom porting. So let's start right now! Warning: i took as example an Samsung phone and 7.0 rom. 1...
forum.xda-developers.com
How to create Device tree for Android Rom building
How to create Device tree for Android Rom building I assume you already downloaded source code before we start please do following 1. Install unpackbootimg Go to https://github.com/jsharma44/bootimg-tools and download as a zip or use git...
forum.xda-developers.com
Drivers can change for every device. Which devices do you want to support?

Categories

Resources