yashsingh1/xdaforums huggingface dataset:
[Android] keshavt:
Like no CarbonRom is their for my device an i want to port it. How can i do it?

TIA.

Sent using XDA Premium app.
[Android] Hashbang173:
Follow the guide, Follow this for instuctions on how to get the carbon source and building instructions.
[Android] ##W4TCH0UT##:
You need to build cm first. It is already a work in progress.
[Android] Jacky_Chen:
where could I find the local_manifest.xml's information about my device

As is said,I just edit the local_manifest.xml.But what worried me is that I don't know where can I find it, my Device is Nexus 4,so should I go to the Google Nexus 4 forume to find it out?:fingers-crossed:

Just thanks your wonderful job , and hope to listen you reply.:p
[Android] RVR:
for the nexus 4 most roms are supported officially ....which rom are you compiling?
[Android] sh A ne:
i did increase my swap ram to 10 gigs,still no ram?,i never had this problem when building RR rom.How about the error 1 thats not because the ram,is it?
[Android] Jeik:
Check if your swap is even enabled. Check in Gparted. Then try changing swappines to 10 if you have 4GB of ram.

Also,you can use the prebuilt chromium. With the prebuilt webviewchromium,a clean build of a ROM is done in 3-4 hours(it took me over 12 hours for a clean build without prebuilt webviewchromium)

https://github.com/arter97/android_frameworks_webview
[Android] sh A ne:
Thank you you were right,swap wasnt enabled,dont know to how i completely missed that,Sorry for bugging you and thanks for the solution
[Android] FayaX[PT]:
I was building my ROM with "default" cm kernel, and now I switch my local manifest to use sultanxda kernel. But now I have this error:

No private recovery resources for TARGET_DEVICE bacon

make: *** No rule to make target 'kernel/oneplus/msm8974/arch/arm/configs/cyanogenmod_bacon_defconfig', needed by '/home/fayax/android/system/out/target/product/bacon/obj/KERNEL_OBJ/.config'. Stop.

Can someone help me?
[Android] Jeik:
Also try using prebuilt webview with the link I gave you. It really helped me.

"make clean" and then build again.

You can't just change between tricky parts(kernels in this case) and expect it to perform a dirty build.
[Android] FayaX[PT]:
I did that and exactly the same error :(
[Android] Jeik:
delete the whole "out" folder and sync the kernel again...
[Android] FayaX[PT]:
Maybe sultan renamed that file ?
[Android] Jeik:
Maybe. If you have the device tree of your phone too,its ordering that the CyanogenMod defconfig has to be used,and your dev might have renamed the defconfig.

Here is my BoardConfig

https://github.com/TeamRegular/android_device_alcatel_idol3/blob/cm-12.1/BoardConfig.mk

Look at line 52. You can rename yours to the new defconfig name your kernel dev made. To check for the defconfig name,go to your kernel folder

/arch/arm64/configs/ "arm64" if your device is 64-bit and "arm" if it isnt 64-bit
[Android] FayaX[PT]:
Thanks! I just need to figure out which is the file for my device ahaha :D
[Android] Uchiha_Dev:
which files are related to VPN ? I want to fix VPN

---------- Post added at 06:50 PM ---------- Previous post was at 06:27 PM ----------

I want to add a new folder in framework/base along with Android.mk, where do I specify that it needs to read the new folder and Android.mk ?
[Android] Arvind7352:
The makefile in Frameworks/base calls all makefiles inside every sub folder

The makefile tells what to do with the files...

But what are you adding BTW?

---------- Post added at 11:36 PM ---------- Previous post was at 11:33 PM ----------

The last lines do that... Can't show that in first post (no option)
[Android] Uchiha_Dev:
I want to add a feature from RR Remix MM to RR Remix LP

There is a folder called views which does not exist in RR Remix LP

https://github.com/ResurrectionRemi...ges/SystemUI/src/com/android/systemui/recents

I was looking at recent instead of recents lol, found it no need to add new folder :D
[Android] FayaX[PT]:
I ran this command: make idegen && development/tools/idegen/idegen.sh , to import app to android studio, but oI cant use ctrl + left mouse click (Cannot find declaration to go t) :(

Any way to fix that ?

Edit: In which file can I change the name of the zip file?
[Android] aalupatti:
Newbie question.

I am comfortable compiling roms from source however I would like to go to the next level.

I have a base rom and would like to add some of the features from another rom.

Any suggestions for a guide that would help me in this ?

Thank you
[Android] MSF Jarvis:
Look for [MENTION=4803464]jabza[/MENTION]'s thread on cherry picking from Github and Gerrit. There's a link in the last post to a website where there's a guide to cherry pick SlimRecents into CM 12.1
[Android] Qiangong2:
I have a problem with building any android 4.3 or above. I get a "prebuilt/linux-x86/toolchain/arm-eabi-4.6/bin/gcc: command not found" error. I have arm-eabi-4.4.3, how do I get 4.6? Whenever I try and force-sync, it doesn't work. I'm on Ubuntu 15.10 if that matters. This happened only after I did some cross compile work with mips. I believe I have changed all the export variables back to arm/android. I'm also getting applet errors when busybox is being built. I believe that's related to the arm-eabi problem though.
[Android] hieptran.bk:
Guys,

Im a newbie, i was successful complied CM 13 for my device(Snapdragon 801 - msm8974), but i have problem with RIL. My device show no SIM card - No service, i was ported some blods files of vendor, but it still. What was missing here?
[Android] Uchiha_Dev:
are there any tweaks I can add in source for better performance and stuff except for custom toolchain
[Android] hahagu:
OK, so I ported a i9500's CM12.1 to E300K, which is just a korean version of the Galaxy S4.

I installed and booted it up, and it seemed to work for a bit,

though it froze when the 'Starting Apps' dialogue showed up.

So... I've tried clearing the cache/dalvik and the data partition, but with no luck.

How should I deal with this problem?

I used the latest CM12.1 nightly here for the port ROM, and the stock ROM for the base.

Please help!

Thx in advance :D?:D?:D?:D?

Ported ROM: https://www.dropbox.com/s/rxeostkjeholf02/i9500.zip?dl=0
[Android] Jeik:
I am trying to build cm12.1 on Manjaro Linux 15.12.

http://hastebin.com/iboyumuxuc.vhdl

I have 300 GB on my hard drive,and only 128 GB are used. I have 4GB of RAM,and 10 GB of swap(which is also enabled,and used-744 MB).

Could the fact that I am using ccache be the cause of the error?
[Android] Arvind7352:
Your '/tmp' partition is full (Searched for this)

Restart your PC/Laptop and continue the build

Read this : https://wiki.archlinux.org/index.php/Tmpfs

To know about /tmp and tmpfs

(It's a part of Swap Memory)

Restarting would clear the contents ...
[Android] Jeik:
Yeah,I searched too,but I didnt consider that info useful in my case. I rebooted,also out of intuition,but it failed again...
[Android] Arvind7352:
People having this issue had been given the reason that their /tmp partition is full.

I didn't read the wiki completely but there is a way to increase /tmp space (in the link I gave on my previous post)

Try Try Try [emoji4]

Read before you do anything ..

Tell if it worked... I shall take a note of it
[Android] Jeik:
Yeah,but I didnt find a solution to the problem anyways. They just mention it.

Is there any way I can increase the tmp memory?

Ok,found it. Rebooting to see if it actually increased the tmp to 10 GB
[Android] Arvind7352:
[emoji106] [emoji106] Hope it gets solved
[Android] christopherrrg:
I think post #9 on changing device tree should mention about making vendorsetup.sh for add lunch combo. That's the part I got stuck at and after checking out here http://elinux.org/Android_Device#Add_new_device it all made so much more sense.

Also could anyone help with this error?

Which would you like? [aosp_arm-eng] 22

device/motorola/osprey/BoardConfig.mk:120: device/qcom/sepolicy/sepolicy.mk: No such file or directory

make: *** No rule to make target 'device/qcom/sepolicy/sepolicy.mk'. Stop.

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

** Do you have the right repo manifest?
[Android] Jeik:
Ok.

To conclude,for those whos rom build procedure stops because "it ran out of space"(the cause is actually the low size of the tmpfs).

The command to temporarily increase the tmp size to 10GB(until reboot) is:

mount -o remount,size=10G,noatime /tmp
[Android] Arvind7352:
If you're talking about adding your device to the ROM vendor..

Then each ROM has its Own way of adding device to itself (And there WERE and ARE many ROMs out there)

For Pure AOSP it's required to create own vendorsetup.sh

[MENTION=4259007]christopherrrg[/MENTION]

You're missing these repos

https://github.com/CyanogenMod/android_device_qcom_common

Clone this repo and place Its contents at device/qcom/common

https://github.com/CyanogenMod/android_device_qcom_sepolicy

This one to device/qcom/sepolicy
[Android] Uchiha_Dev:
I am setting up SaberMod toolchain in RR Remix LP and it gives error

PS : I have previously setup SbaerMod for compiling CM 13 and it was successful but for RR Remix I am getting errors

"/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: No such file or directory"

I am using 4.9 toolchain versions for both ROM and Kernel
[Android] Arvind7352:
A 'Dash' / '-' is missing after arm-linux-androideabi-gcc(HERE)

Add this, so that it'll look like 'arm-linux-androideabi-gcc-'
[Android] FayaX[PT]:
I change my local_manifest and now my rom sucks on boot (bootloop)

I can't use adb logcat, logcat sucks on waiting for device :(
[Android] Arvind7352:
Don't blame local_manifest for that...

Totally unrelated with bootloop

To Take Logs

Add these lines to your build.prop file inside the ROM zip

persist.service.adb.enable=1 persist.service.debuggable=1 persist.sys.usb.config=mtp,adb

Now flash that zip, and Grab Logs on-boot
[Android] Uchiha_Dev:
sorry for being a noob but where do I add it ? rename that file ?
[Android] Arvind7352:
At your device defconfig

CONFIG_CROSS_COMPILE variable will have that location, do your changes accordingly

It will look like

CONFIG_CROSS_COMPILE := "/home/[USER]/[WORK]/prebuilts/*the rest of the path*"
[Android] Uchiha_Dev:
also I was wondering, if I do a repo sync will all the changes that I made (patches and commits) will be gone/removed and replaced with the original ones ?
[Android] Arvind7352:
After initial sync is completed

Syncing after this will only update the changed things from original source (they will only check the repos which are updated, and then perform changes accordingly)
[Android] Uchiha_Dev:
in other words I will not lose my changes and patches right ?
[Android] Arvind7352:
Unsure about it...

Let others see your question
[Android] Uchiha_Dev:
didn't lose it. Thanks.

I made a new roomservice.xml in /.repo/local_mainfests/ and did a repo sync but nothing changed

<manifest>

<remove-project name="platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8" />

<project name="ArchiDroid/Toolchain" path="prebuilts/gcc/linux-x86/arm/arm-eabi-4.8" remote="github" revision="architoolchain-5.2-arm-linux-gnueabihf" />

<remove-project name="platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8" />

<project name="ArchiDroid/Toolchain" path="prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8" remote="github" revision="uber-4.9-arm-linux-androideabi" />

</manifest>
[Android] christopherrrg:
[MENTION=6049586]Arvind7352[/MENTION] could you explain what is wrong here? Would I do the same again but find qcmediaplayer?
[Android] Arvind7352:
https://github.com/CyanogenMod/android_hardware_qcom_media

1. Sync this project (location- hardware/qcom/media)

2. Looking at the PIC, your chipset is MSM8960

So choose branch cm-12.1-caf-8960/cm-13.0-caf-8960

3. Add/make sure these lines are there in [DeviceName].mk / osprey.mk which is in your Device Source Code

# Media
PRODUCT_PACKAGES += \
qcmediaplayer

PRODUCT_BOOT_JARS += \
qcmediaplayer

Add these to your local_manifest.xml, remove the same in roomservice.xml and try...
[Android] Uchiha_Dev:
I read a force repo sync and now it's done. Thanks a lot
[Android] Arvind7352:
Welcome, Happy Compiling [emoji6]
[Android] FayaX[PT]:
Cant see any logs, just - waiting for device -
[Android] christopherrrg:
Osprey is msm8916 so basically same instructions just 8916 branch? Appreciate your patience with helping also!
[Android] Arvind7352:
Thanks for understanding that. Yes, you're correct. Go On
[Android] Qiangong2:
Bump
[Android] neonkat:
you have 4.4.3 and adding 4.6 in toolchain location.

check this and get the toolchain.
[Android] hahagu:
So.. about this, should I try re-porting?
[Android] Qiangong2:
Thanks, it worked.

---------- Post added at 02:59 PM ---------- Previous post was at 02:09 PM ----------

New error.

Make: *** No rule to make target 'packages/wallpapers/LivePicker/android.software.live_wallpaper.xml' needed by (etc)

I don't have that file and when I repo sync, I don't get it. This is cm-11 by the way.
[Android] Arvind7352:
https://github.com/CyanogenMod/android_packages_wallpapers_LivePicker

Select branch cm-11.0

Clone/Manually download the zip and place contents at packages/wallpapers/LivePicker

If you get such similar errors, then search and clone it. It may not be necessarily present in the Repo Fetch
[Android] buenajuan300:
Hi, im trying to compile CM12.1 to G531M but im facing this problem

im using the right kernel and defconfig for my device, i don't know what is wrong, please help me :(
[Android] hahagu:
OK, so just tried re-porting (and also found out that nobody actually replys to me anyways) and got the starting apps problem sorted out. I just deodexed the apps and restart lol! Anyways, now the ROM doesn't read my SIM card, and the DMB doesn't work.. Help?
[Android] neonkat:
trying replacing ril libs from base rom.

btw what's DMB?
[Android] hahagu:
DMB = Digital multimedia broadcasting

In Korean phones, there's this feature called DMB, and there's even an antenna for it.

When you turn on the DMB, you can watch TV from your mobile device without any mobile data or WiFi.

It's kinda a Korean only feature though, since only Korea broadcasts (as far as I know) on those channels.

And thx, I'll try that. I'll have to test the ROM tomorrow though :(

So.. Yea... wish me good luck XD
[Android] Uchiha_Dev:
how do I update my sources from r_26 to r_34 ? (the RR team has left support for LP)
[Android] Arvind7352:
The team responsible for it will update it...

Can't be done manually
[Android] Uchiha_Dev:
the team will be doing it manually too right ? So why can't I ?
[Android] FayaX[PT]:
Package OTA: /home/fayax/android/system/out/target/product/bacon/cm_bacon-ota-4e8858c57e.zip

Traceback (most recent call last):

File "./build/tools/releasetools/ota_from_target_files", line 1782, in <module>

main(sys.argv[1:])

File "./build/tools/releasetools/ota_from_target_files", line 1674, in main

], extra_option_handler=option_handler)

File "/home/fayax/android/system/build/tools/releasetools/common.py", line 779, in ParseOptions

if extra_option_handler is None or not extra_option_handler(o, a):

File "./build/tools/releasetools/ota_from_target_files", line 1644, in option_handler

from backports import lzma

ImportError: No module named backports

build/core/Makefile:1904: recipe for target '/home/fayax/android/system/out/target/product/bacon/cm_bacon-ota-4e8858c57e.zip' failed

make: *** [/home/fayax/android/system/out/target/product/bacon/cm_bacon-ota-4e8858c57e.zip] Error 1

make: Leaving directory '/home/fayax/android/system'

#### make failed to build some targets (02:42:05 (hh:mm:ss)) ####

Can someone help me pls ?
[Android] Uchiha_Dev:
did you try to remove the "--block /" line in makefile ? if yes add it there again
[Android] FayaX[PT]:
I didn't tried that
[Android] katinatez:
You have 2 options, easy one first is to remove this commit & build will finish compiling but with no compression.

https://github.com/sultanxda/androi...mmit/7a099c0c51a9cf937f670e53364b6c3382ceec32

Your second answer is in this commit message here

https://github.com/sultanxda/android_build/commit/70929695e3aafc4ba84e3057bd1c02c0a69bf9b4

You need to install back ports.lzma for your Linux distro.

For example your compiling with Ubuntu, then google Ubuntu back ports.lzma and install into your build environment.

Then compile
[Android] Arvind7352:
Source code updates also include adapting their added/changed code to them

So we can't manually update them

Tip:-

Try these ROMs

1. PAC-ROM (r34)

2. TipsyOS (r34 Layers)

3. Team Razor (r34 Layers)

Other ROMs are <r30
[Android] hahagu:
OK, just got here, first thing in da morning, and viola! It still doesn't work...

I've tried replacing the ril library, which was libril(something).so, and it didn't work...

I got the dictionary working tho :)

So... What do I do now?
[Android] MSF Jarvis:
It can be done easily if its just a new branch on the manifest. If you're looking for upstream AOSP bring-up, it's gonna be hell if you don't have tons of internet, time, and programming knowledge.

If it's a branch that's come up, use this :

repo init --reference=path/to/old/folder -u https://GitHub.com/ResurrectionRemix/platform_manifest.git -b whichever_you_choose
[Android] Uchiha_Dev:
whichever_you_choose ?
[Android] MSF Jarvis:
Whatever branch you want to sync. Using this you can even move up and down in the Android versions as well, like you have lollipop sources, you can put that folder location in reference, and in branch you can use a MarshMallow one and your download will significantly be reduced.
[Android] Uchiha_Dev:
ohh ok, thanks that will with my slow internet
[Android] Uchiha_Dev:
the path to old will look like this right --reference=/home/<username>/remix/ ?
[Android] MSF Jarvis:
Yeah.
[Android] Uchiha_Dev:
thank you :D I really appreciate the fact that you reply fast and help :victory:
[Android] christopherrrg:
I'm getting these errors, is it still in relation to qcom/hardware/media?
[Android] Arvind7352:
Solved? It should have been...

Edit:- OK
[Android] christopherrrg:
I actually synced msm8960 by accident. I'm going to retry with 8916 and report back.

8916 seems to have solved it. :) thanks!
[Android] FayaX[PT]:
I want replace the cyanogenMod message app by the google one.

I did that on my local manifest:

<remove-project name="CyanogenMod/android_packages_apps_Messaging" />

<project path="packages/apps/Messaging" name="platform/packages/apps/Messaging" remote="aosp" />

However, when I flash the rom I have the cyanogen message app -.-
[Android] Jeik:
You synced the Google messaging app,but the build command still uses the CyanogenMod message app.
[Android] FayaX[PT]:
How? If I remove it ?

And where can I change the build command ?

Thanks!
[Android] Jeik:
Well,i guess you have one already made in the /out folder. As for editing the inclusion/exclusion of certain parts,I myself am curious.
[Android] FayaX[PT]:
So, make clean ?:D
[Android] Arvind7352:
Clear the App's Intermediates

~/[Work]/out/product/[Device]/APPS/Messaging_intermediates

Clone the CM Messaging App OR

Add it to Local manifests and do

repo sync CyanogenMod/packages_apps_Messaging (The Project name might be different)

Now Continue the make process
[Android] Jeik:
It wont help you if the build command is told to build the CyanogenMod messaging app.
[Android] FayaX[PT]:
I'm already doing it: D

One more question. Where can I change the output of the name of the zip?
[Android] akhilnarang:
All the source is open, anyone can update the code

+ the latest updates to LP won't have that many changes, so there won't be anything to adapt

---------- Post added at 01:39 AM ---------- Previous post was at 01:38 AM ----------

build/core/Makefile

Search for "otapackage" there

Zip name is just above/below it depending on pure aosp based/ has cm commits
[Android] FayaX[PT]:
Yes! But the name is "$(name)". I want to change the value of this :D
[Android] Arvind7352:
Var1=$(Var2)

This means that the Var1 will pickup the value of Var2

So search for "name:= and Change it accordingly, the variable which Is equal to $(name) will pickup that value
[Android] akhilnarang:
You can just change the value directly

Else if building CM it should be in vendor/cm/config/common.mk
[Android] hahagu:
I've managed to get the device tree for the E300K.

So... What do I do now?

I extracted the device tree from a prebuilt Cyanogenmod for E300K using extract-files.sh from the i9500 build.

Now do I have to find the vendor files and the kernel src distributed from the samsung opensource center?

Please help

Thanks in advance!
[Android] neonkat:
so you have a samsung?

they give both kernel+vendor sources.(atleast for me,both were there in the same .zip)
[Android] akhilnarang:
Extract files script extracts vendor blobs

Device tree can't just be extracted
[Android] boyz211:
Hey very good guidance for Creating ROM..

Im currently using Nexus 5 device and a particular Custom ROM which is having a build MMB29S.. I just wanted to update the build from the factory image. I mean just merging or updating Custom ROM own my own..

I dont wnat to do any further modifications on ROM as of now.. Please guide me if possible.. I might have made some technical errors in specifying my query since im a noob.. Trying to update my Custom ROM on my own..

Hope you guys help me..
[Android] tandon.ayush:
some help needed.

I'm new to ubuntu and I've been trying to set up environment

I installed java properly, but when I enter the code mentioned in step 2, it gives me the error shown in the attachment.

what do I do now?
[Android] Arvind7352:
The thread is a bit outdated only for the Packages List... (For Older Ubuntus & since some packages were modified to other name of merged with other package)

Perform this Command (From CM Guide)

sudo apt-get install bison build-essential curl flex git gnupg gperf libesd0-dev liblz4-tool libncurses5-dev libsdl1.2-dev libwxgtk2.8-dev libxml2 libxml2-utils lzop openjdk-7-jdk openjdk-7-jre pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev g++-multilib gcc-multilib lib32ncurses5-dev lib32readline-gplv2-dev lib32z1-dev
[Android] tandon.ayush:
I did that.

it show this error now
[Android] Jeik:
Remove the troublesome parts of the command.
[Android] Arvind7352:
I got them installed, weird.... :(

[MENTION=4150512]The Marionette[/MENTION] , it's Linux Mint 17.3 Cinnamon
[Android] Jeik:
Linux Mint Cinnamon?[emoji14]
[Android] FayaX[PT]:
When I do "repo sync"

Fetching projects: 100% (434/434), done.

Syncing work tree: 69% (300/434) Traceback (most recent call last):

File "/home/fayax/android/CAF-AOSP-OLD/.repo/repo/main.py", line 500, in <module>

_Main(sys.argv[1:])

File "/home/fayax/android/CAF-AOSP-OLD/.repo/repo/main.py", line 476, in _Main

result = repo._Run(argv) or 0

File "/home/fayax/android/CAF-AOSP-OLD/.repo/repo/main.py", line 155, in _Run

result = cmd.Execute(copts, cargs)

File "/home/fayax/android/CAF-AOSP-OLD/.repo/repo/subcmds/sync.py", line 675, in Execute

project.Sync_LocalHalf(syncbuf)

File "/home/fayax/android/CAF-AOSP-OLD/.repo/repo/project.py", line 1204, in Sync_LocalHalf

lost = self._revlist(not_rev(revid), HEAD)

File "/home/fayax/android/CAF-AOSP-OLD/.repo/repo/project.py", line 2241, in _revlist

return self.work_git.rev_list(*a, **kw)

File "/home/fayax/android/CAF-AOSP-OLD/.repo/repo/project.py", line 2435, in rev_list

p.stderr))

error.GitError: platform/libcore rev-list (u'^295781a70ff1e5e404313bea17424444a0375fcb', 'HEAD', '--'): fatal: Not a git repository (or any of the parent directories): .git
[Android] SlimShady's:
Does anyone know why do I have lots of errors? O.o

I did a clean flash before building and also I haven't edited a line[emoji14]

http://hastebin.com/anicehavan.vhdl

Inviato dal mio LG-D405n utilizzando Tapatalk