yashsingh1/xdaforums huggingface dataset:
[Android] Uchiha_Dev:
thanks

so will I get a /system folder inside the final ZIP ?
[Android] Jeik:
build/core/Makefile
[Android] Uchiha_Dev:
yeah I found it, I was in the wrong folder and I didn't realize it lol

Now will I get a system folder inside the final ZIP ?
[Android] Jeik:
Yep,but expect the fact that the ROM will take more time to flash
[Android] Uchiha_Dev:
yeah I know about that, thanks a ton
[Android] MSF Jarvis:
BLOCK_BASED_OTA := false

Add this line to your BoardConfig.mk and you'll get normal update zips. This is easier and better than patching the ROM repo, but, that's probably just me.
[Android] Uchiha_Dev:
will the above method by The Mationette not work ?

this https://github.com/A-TV/platform_build/commit/69fb0fa49b286ea1f41b74d5933e2cadd825aab8
[Android] Jeik:
I have a problem while building AOSP

http://hastebin.com/fevucoqili.vhdl

I already have the msm8916 folder in hardware/qcom/media-caf,so what could be causing that error???

Could it be that CMs media-caf folder for msm8916 isnt compatible with AOSP?
[Android] Uchiha_Dev:
you should use commits from someone who has built a bug free ROM from source and patch framework/base, system/core using those commits as reference
[Android] Jeik:
o.o

What? Why,how.... I dotn even know how the commit should look like D:
[Android] Uchiha_Dev:
1. Go to github of a developer of your device and find a bug free working ROM built from source

2. Go throught his *_framework_base, *_system_core, *_telephony and other important repos

3. Click on commits

4. Go through all the commits and make the changes made in those commits to your working folder

This way I was abel to easily build AOKP for my device with minimal bugs, which I later fixed
[Android] MSF Jarvis:
It should, but my suggestion would be to stick with the BoardConfig.mk edit coz if anyone builds using your trees, he'll ask why your zips were not block-based but his/hers are.
[Android] Jeik:
https://github.com/TeamRegular/android_frameworks_base/commits/cm-12.0

All of them? o.o

I also found this from Yu Yureka(the Idol 3 and Yu Yureka have identical SOC and partition layout,so this should be good as well?)

https://github.com/Yureka-AOSP/frameworks_base/commits/lp5.1?page=2

I think Ill just wait for my devices dev and talk to him. xD
[Android] Uchiha_Dev:
ok thank you

---------- Post added at 04:44 PM ---------- Previous post was at 04:40 PM ----------

nope, use commits of your device only,

yes they are the commits, just go through them and add the green lines and remove the red lines. You should be good to go
[Android] Jeik:
There are loads of commits,should I be really adding all of them?
[Android] Uchiha_Dev:
no, not all commits. Only commits by your developer
[Android] Jeik:
https://github.com/TeamRegular/andr...mmit/35d7e61f6aba409dfc731df65992e09f7d7972d2

https://github.com/TeamRegular/system_core/commits/kk44?author=C457

I really doubt that those two commits he did affect qcmediaplayer_intermediates D:
[Android] Uchiha_Dev:
I don't really know, but that's what I did and it worked
[Android] limjh16:
Big bump please
[Android] MSF Jarvis:
Tried repo syncing and building again??

This is an upstream regression that is not covered by this tutorial/thread as far as I am able to understand the issue.
[Android] limjh16:
nope same error. Is there any way to solve it outside of whats outlined in this thread?
[Android] MSF Jarvis:
I'm pretty sure I'm not good enough a dev to fix it, but an issue at https://github.com/SlimRoms/<Whichever_repo_you_think_is_messed> should help along with a link to the log.
[Android] Tanuj97:
need help guys while i repo sync..i am getting this

Traceback (most recent call last):
File "/home/tanuj/bliss/.repo/repo/main.py", line 531, in <module>
_Main(sys.argv[1:])
File "/home/tanuj/bliss/.repo/repo/main.py", line 507, in _Main
result = repo._Run(argv) or 0
File "/home/tanuj/bliss/.repo/repo/main.py", line 180, in _Run
result = cmd.Execute(copts, cargs)
File "/home/tanuj/bliss/.repo/repo/subcmds/sync.py", line 762, in Execute
project.Sync_LocalHalf(syncbuf, force_sync=opt.force_sync)
File "/home/tanuj/bliss/.repo/repo/project.py", line 1282, in Sync_LocalHalf
lost = self._revlist(not_rev(revid), HEAD)
File "/home/tanuj/bliss/.repo/repo/project.py", line 2402, in _revlist
return self.work_git.rev_list(*a, **kw)
File "/home/tanuj/bliss/.repo/repo/project.py", line 2596, in rev_list
p.stderr))
error.GitError: CyanogenMod/android_device_common rev-list ('^e0e0d5b4b4e81fafd4bc1c96744b367ce3e73f6e', 'HEAD', '--'): fatal: bad object e0e0d5b4b4e81fafd4bc1c96744b367ce3e73f6e

git status shows this
Untracked files:
(use "git add <file>..." to include in what will be committed)

.repo/
Makefile
abi/
art/
bionic/
bootable/
build/
cts/
dalvik/
developers/
development/
device/
docs/
external/
frameworks/
hardware/
libcore/
libnativehelper/
manifest/
ndk/
packages/
pdk/
platform_testing/
prebuilts/
sdk/
system/
vendor/
[Android] kived:
While I'm sure this post has been helpful to some people, it does not seem to be a "[GUIDE][COMPLETE] Android ROM Development From Source To End" at all. I was expecting details about actually hacking on Android source, but it looks to be essentially a more detailed rehash of the CM build instruction template with some info about setting up a Linux VM in front.
[Android] MSF Jarvis:
I agree about it being a bit copy paste sort of stuff, but making edits to the source is too wide of a subject for ANY thread. You need to learn Java and then try yourself. About copying, Android compiling has not changed since quite some time, so no blame to the OP.

I am looking to create a small tutorial to 'customize your source build', but till then, your on your own.
[Android] Jeik:
My biggest enemy.

It prolongs my build time by at least 4 hours because I have only 4 GB of RAM.

I noticed that BlissPop doesn't hang on libviewchromium,so it means it uses the prebuilt one?

How can I make other ROMs like Slim,EuphoriaOS,Vanir,PAC and AICP use the prebuilt libviewchromium?
[Android] jhpdroid:
Add the following to your. bashrc

export USE_PREBUILT_CHROMUIM=1
[Android] MSF Jarvis:
Note to self : Add this info whenever I make the tutorial thread. With credits.

---------- Post added at 05:15 AM ---------- Previous post was at 05:02 AM ----------

Not all ROMs keep prebuilt Chromium libs ready in their repositories. PAC ROM automatically checks whether there is an updated prebuilt Chromium available and only builds it if there isn't. Resurrection Remix maintains a nearly up to date Chromium so that should help things. For most ROMs, atleast once, you'll have to build Chromium before the .bashrc tweaks kicks in.
[Android] Uchiha_Dev:
4GB RAM has nothing to do, I have 2GB RAM with 4GB swap, and I have built about 3-4 roms and the average time for building those roms is always between 3-4 hours, also source.google.com suggests that you change your output directory to another volume for faster compiling, It definitely makes a lot of difference for me

---------- Post added at 07:50 AM ---------- Previous post was at 07:48 AM ----------

I am going to take a big leap and work on a layer based rom, what are the different things I need to patch for a layer supported ROM ?
[Android] Arvind7352:
You can take this as a note too

The Instructions:-

Google's prebuilt WebView

What's this, dawg?

This repository replaces android_framework_webview to use Google's prebuilt WebView.

You can update the included webview binaries yourself by using chromium/prebuilt/ARCH/extract.sh.

Current version included in this repository is noted at chromium/prebuilt/ARCH/VERSION.

°1 ->You must set those on build/target/product/core_minimal.mk to use this repository:

PRODUCT_PACKAGES += \ libwebviewchromium_plat_support \ libwebviewchromium_loader

°2 ->You also must set config_webViewPackageName to com.google.android.webview on frameworks/base/core/res/res/values/config.xml.

Pros

- Reduces full ROM build time about 40~50%. - Forces users to have the latest WebView library(much higher than AOSP version). - Users with Google Play loged-in, will automatically receive WebView updates provided directly by Google. - Uses CTS passed Google's WebView library(no funny, funky bugs).

Cons

- We're now forced to use Google's prebuilt library, no local changes allowed. (But realistically who mods libwebviewchromium?)
[Android] sh A ne:
Help am stuck with this error
[Android] hdorius:
U need device/qcom/common repo.. Just add it to local manifest
[Android] Jeik:
You need CMs device/qcom/common.

That,or you are missing RAM.

You need to have 10GB of swap partition,also it must be enabled.
[Android] pug1:
I did got clone from cyanogenmod github. Not good enough?

Thanks for the help (out of thanks lol)
[Android] sh A ne:
Swap partition as in the dual boot?Sorry not really experienced:o
[Android] neonkat:
yup,you can use swap with dual boot.
[Android] Jeik:
Open Gparted.

If you don't have it,type "sudo apt-get install gparted" in terminal

Once you open it,it should show two partitions(System and Swap)

To resize the swap partition,you have to shrink the system partition. But you can only shrink the system partition by opening Gparted while Testing Ubuntu on a bootable disk/USB.

Shrink the system partition by 10 GB,enable the swap partition to 10 GB,and you are good to go.
[Android] christopherrrg:
Hey guys, currently trying to build aosp master branch which would be 6.0.1 for Motorola osprey.

I've followed this guide completely the only trouble I'm having is changing the cm device tree to aosp

I may be getting lost but my device (osprey) folders are in Motorola/XT1540/(here)

So would I be renaming cm.mk to aosp.mk, Motorola.Mk or XT1540.Mk?

Sorry if this is incredibly noob, thanks for any pointers.
[Android] MSF Jarvis:
That will be a start, though I'm guessing many more renames and edits will be required before you have a completed build.
[Android] hahagu:
How do I obtain the device tree & the vendor if only the kernel is open source, and there's no vendor or device tree on github?
[Android] neonkat:
you need to build it,need the device too for which you are building.
[Android] MSF Jarvis:
The vendor tree is within your device itself, you just have to know what is not open source, extract it, and then create a makefile for it. About the device treem, it is too broad and complicated for discussion.
[Android] Jeik:
Did everything I shouldve,here are also the lines I edited in framework/base/core/res/res/values/config.xml

<!-- Package name providing default WebView implementation. -->
<string name="com.google.android.webview" translatable="false">com.android.webview</string>

<!-- Package name providing alternate WebView implementation.
Fall back to config_webViewPackageName if not available. -->
<string name="config_alternateWebViewPackageName" translatable="false">com.google.android.webview</string>

Here is the error which occurs:

find: `dummy': No such file or directory
build/core/base_rules.mk:154: *** frameworks/webview/chromium: MODULE.TARGET.SHARED_LIBRARIES.libwebviewchromium_plat_support already defined by frameworks/chromium. Stop.

#### make failed to build some targets (04:06 (mm:ss)) ####

themarionette@themarionette-Lenovo-G780:~/roms/slim$

EDIT

I just placed it in the wrong directory =....=

After actually doing it all properly,I got this error:

No private recovery resources for TARGET_DEVICE idol3
make CFLAGS_MODULE="-fno-pic" -C kernel/alcatel/msm8916 O=/home/themarionette/roms/slim/out/target/product/idol3/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE="/home/themarionette/roms/slim/prebuilts/misc/linux-x86/ccache/ccache aarch64-linux-android-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_idol3_defconfig
make[1]: Entering directory `/home/themarionette/roms/slim/kernel/alcatel/msm8916'
GEN /home/themarionette/roms/slim/out/target/product/idol3/obj/KERNEL_OBJ/Makefile
make: *** No rule to make target `NOTICE-TARGET-STATIC_LIBRARIES-libbatteryservice', needed by `/home/themarionette/roms/slim/out/target/product/idol3/root/sbin/healthd'. Stop.
make: *** Waiting for unfinished jobs....
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)
warning: (ARCH_MSM) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)
warning: (ARCH_MSM) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
#
# configuration written to .config
#
make[1]: Leaving directory `/home/themarionette/roms/slim/kernel/alcatel/msm8916'

#### make failed to build some targets (06:43 (mm:ss)) ####
[Android] christopherrrg:
Oh no doubt I will, just as in the guide where he rename cm.mk to slim.mk I'm just building from Google source so would just naming it all AOSP work with similar results. I think I may be getting lost where he says after gedit slim.mk (was cm.mk) there is those lines requesting where the folders are but in the source I downloaded from MotoG3 github I can't find anything other then the fullphone_osprey.mk file in my vendor, I do not see config folder like in the guide. (May have misspelled file name but it is along those lines, also includes a permission folder.)
[Android] Arvind7352:
Is there a folder called chromium inside frameworks folder??

Cut that folder to other place and start compilation....

I think that folder should not be present...

EDIT: That error isn't related to chromium.... Try searching for solution, I'll too try finding the solution..
[Android] Jeik:
But the kernel built fine before.

I did repo sync,and it gave me an error because I changed the core/res/res/values/config.xml,so could it have messed my OUT directory up?
[Android] amkirk94:
So, it seems that the tutorial is not valid any more.

Please, help me out so that we can find out what exactly changed in Ubuntu 15.10.

When I try to do sudo apt-get update I get this:

Then I install OpenJDK successfully:

But, when I try to install the required tools, I get this:

After Googling the issue, I found out that some people got it working after doing sudo dpkg --add-architecture i386, although this didn't work for me.

Any ideas? Thanks. :)

EDIT: I think I solved the issue by doing

sudo apt-get install git ccache automake lzop bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 g++-multilib python-networkx libxml2-utils bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev squashfs-tools pngcrush schedtool dpkg-dev liblz4-tool make optipng

You might want to fix that on the original post, since I don't think that I'll be the last to complain about this problem
[Android] Arvind7352:
Do a Clean Build... Should not happen

First do 'mka bootimage && mka recoveryimage' so that you get clear with these stuff... Then continue your compilation with 'mka' or 'make'

Its not due to frameworks, because if you edit any file inside frameworks/base, the ENTIRE Framework intermediates will be deleted and it will get re-built...

Repo sync doesn't do anything with the out directory... First of all, don't do a repo sync after you have edited some source files to avoid mismatch errors
[Android] limjh16:
well you should have searched the thread.

the sudo apt-get update problem is not the problem with the thread instructions, its a problem/bug with ubuntu.

I also faced the later problem but I searched this thread and found it.
[Android] sh A ne:
Please help on this one
[Android] FayaX[PT]:
Hello :)

I'm creating my own version of CyanogenMod for bacon.

Can someone explain to me where I can change default CPU governor and max / min freq for these governor?

Thank you!
[Android] MSF Jarvis:
Go to XDA-university.com and learn for yourself. If you ever find that post ;)
[Android] FayaX[PT]:
I already went to xda university, but I cant find what I want. Just how to add new governors :(
[Android] MSF Jarvis:
Changing default governor is through the defconfig, you can search my name on google, open Github and check the latest few commits in the kernel repo I have. You should understand what needs to be done. Max and min frequencies are defined inside the governer.c file, as you can see further down the history, "intelliactive : Fixes for pico" commit is the one you want, both are on page 1

Cheers,

MSF Jarvis
[Android] DarkFrenzy:
What changes need to be done to the smartmax_eps governor to get a better result ? when I cherry picked the the gov commits from a 2.5ghz kernel device to 1.7ghz kernel device.
[Android] neonkat:
no need to make changes.you can tweak it yourself.
[Android] DarkFrenzy:
how ?
[Android] FayaX[PT]:
I think that I found the file in cyanogenMod kernel: cyanogenmod_find7_defconfig.

I can see that:

#

# CPU Frequency scaling

#

CONFIG_CPU_FREQ=y

CONFIG_CPU_FREQ_TABLE=y

CONFIG_CPU_FREQ_STAT=y

# CONFIG_CPU_FREQ_STAT_DETAILS is not set

CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y

# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set

# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set

# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set

# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set

# CONFIG_CPU_FREQ_DEFAULT_GOV_INTERACTIVE is not set

CONFIG_CPU_FREQ_GOV_PERFORMANCE=y

CONFIG_CPU_FREQ_GOV_POWERSAVE=y

CONFIG_CPU_FREQ_GOV_USERSPACE=y

CONFIG_CPU_FREQ_GOV_ONDEMAND=y

CONFIG_CPU_FREQ_GOV_INTERACTIVE=y

CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y

so should I change this 2 lines:

CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y to CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE for conservative to be a default governor ?

(The strange thing is that when I flash the rom the default CPU governor is interactive instead Performance :S)

Sorry about my english :D

Thanks!
[Android] neonkat:
if you want to set interactive as default,change

#CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set

and

CONFIG_CPU_FREQ_DEFAULT_GOV_INTERACTIVE=y

remove # for "CONFIG_CPU_FREQ_DEFAULT_GOV_INTERACTIVE".

i hope your confusion is solved.

---------- Post added at 04:47 PM ---------- Previous post was at 04:43 PM ----------

you need some knowledge about them(you can get info. for basic tuneables like io is busy,sampling rates bla bla over google).you can look into different kernels,and try to understand those changes and choose values best suited for your usage.
[Android] christopherrrg:
No joke, this is the most detailed guide I can find on converting device trees & I am so beyond confused.

I'm not going to ask anyone to spoon feed me but maybe someone has a community or a chat network I could join for some extra help?

I've already read embedded android and the subject is still incredibly vague. I would just like to turn CM device tree into an AOSP one, if anyone could spin me in the correct direction or suggest any more literature I'd be very appreciated!
[Android] Uchiha_Dev:
could someone help me with this error :

build/core/product_config.mk:253: *** No matches for product "cm_xxx". Stop.

Device xxx not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).

Repository for xxx not found in the CyanogenMod Github repository list.

If this is in error, you may need to manually add it to your .repo/local_manifests/cm_manifest.xml

build/core/product_config.mk:253: *** No matches for product "cm_xxx". Stop.

** Don't have a product spec for: 'cm_xxx'

** Do you have the right repo manifest?

Removing previous build.prop

rm: cannot remove ‘/system/build.prop’: No such file or directory

Starting build for xxx

build/core/product_config.mk:253: *** No matches for product "full". Stop.

#### make failed to build some targets ####
[Android] Adromir:
Are you sure you try to compile a supported device?

for me sometimes running breakfast #device helped to solve that or if you already did, deleting the device manifest from the local manifest folder
[Android] Uchiha_Dev:
no it is not for a supported device
[Android] Jeik:
First of all,do you have your cm-fied device tree,and is there a file named cm.mk in there? You should also have vendorsetup.sh in the device folder.

For example,mine(Alcatel Idol 3)s device folder is in ~/roms/cm/device/alcatel/idol3/

Second,instead of "breakfast", type in " lunch cm_YOURDEVICE-userdebug" and then mka bacon
[Android] nitin.chobhe:
Yes, you are right, this is the best guide out there...

What device you are planning to work on? You should be able to directly use cm device trees for aosp (of course by changing the "cm" to aosp in .mk and some other files)
[Android] christopherrrg:
Moto G 2015 (osprey)

After pulling the device tree and vendor files I get as far as changing cm to aosp_osprey.mk and then gedit it to match and then when I check vendor files nothing matches up and I may just be getting lost within folder structure.
[Android] nitin.chobhe:
Vendor files would not change based on AOSP or CM (as far I understand it)...

Refer these trees: https://github.com/Alberto97/android_device_motorola_osprey (though they are for 5.1, you can refer them)

I used mako CM trees to build AOSP based ROM (FlayrOS) :fingers-crossed:
[Android] christopherrrg:
You answered my second question on whether or not version of android mattered. Thanks a bunch for the little push!
[Android] hahagu:
And how do I do that?

---------- Post added at 04:58 AM ---------- Previous post was at 04:58 AM ----------

What, and how do I build that?
[Android] sh A ne:
Does anybody knows the error?

please please please help,ive been stuck here for a while
[Android] Jeik:
Didn't we already tell you that you don't have enough RAM?????
[Android] david makarove:
Why you don't write about how writing device tree after taking a rest after this hard work

because this guide was simplest guide ever

if you did it

You will be xda guides legend :D

sent from unknown place using unknown app
[Android] RVR:
it is pratically impossible .. the making of a tree varies from phone to phone
[Android] Shahan_mik3:
Hey can i know the build time (2 cores) and the amount of storage required( have 30 gb :( for linux)?

Also is it possible to make a kernel development thread...

Because this is the updated Rom building thread and a very detailed one. :) it is very helpful.

Thanks :)
[Android] RVR:
Sadly.. 30gb is not enough fr rom development... Its fine fr Kernel dev though..... U need 50-60 gb fr one full compilation for roms
[Android] Shahan_mik3:
I have to upgrade my PC.... :(

So any thoughts about adding how to compile a kernel?!

With the details provided for ROM it will surely help many
[Android] Asad_:
Hello Sir

[Hi Sir I Have Problem In My Android Phone I Em Trying To Reset My Phone I Em Click On factory date reset Now Mobile Is GoinG To Restert But Then He Dont Come Again He Stil On Welcome Scren Then Em Out The Betrry Andd Again In tUre On The Phone Now He Is Coming On But He Stil in Old Date And Em Try To Recvery Mode But He DOnt Go In Recvery Mode Is In Welcome Scren Pls Help Me ... What I Can Do For This issue Thanks....:(
[Android] keshavt:
What is the minimum amount for Storage i need for ubuntu? Is 30 gb enough?

Sent using XDA Premium app.
[Android] jackeagle:
For Rom Development space needed is 50Gb to 90GB :)
[Android] Shahan_mik3:
Hey jack what about steps to build a kernel?
[Android] RVR:
Mi3 source fr the kernel is too little to make a kernel… . with a lot of features… u might just be able to add oc or uc

..
[Android] Shahan_mik3:
I'll just add oc and UV feature. And few governors and slide to wake :p

But m new to this and need help :D
[Android] keshavt:
Like no CM is their for my device an i want to port it. How can i do it?

TIA.

Sent using XDA Premium app.
[Android] RVR:
Cm fr grand 2 will be ready soon… its already a work in progress
[Android] djixon:
Post genial