yashsingh1/xdaforums huggingface dataset:
[Android] arnabpratihar:
xperia sp. ROM.expansion

xperia sp. ROM.expansion

I BEG UR PARDON IN ADVANCE.

I KNOW NOTHING OF ROOTING AND SUCH THINGS.

I JUST GOT XPERIA SP.ROM 8 GB.

I JUST WANT TO EXPAND IT .

I HAVE READ A LOT IN THE FORUMS.

I HAVE UNLOCKED MY PHONE WITH THE CODE FORWARDED .

BUT,TO EXPAND ROM,I GOT CONFUSED ABOUT WHAT EXACTLY TO DO WITHOUT MESSING UP.

IT WOULD BE A STEP TO STEP PROCESS.NOW MAY I REQUEST YOU TO HELP IN THAT MATTER ?

MY "ABOUT PHONE" AS IT FOLLOWS----->>androi version-4.3

baseband version--8960A-AAAAATAZQ-40031007-20

KERNEL VERSION--3.4.0-perf-g4c8352f-00775-g89dacae

build user@bild host#1 Sun May 11 2014

build number--12.1.A.1.205

it would be a real help to help me to expand ROM ,taking from sd 32gb card.......

THANK YOU IN ADVANCE
[Android] tobitege:
[MENTION=6369695]arnabpratihar[/MENTION]: completely wrong thread, please post in the General section.

Secondly, don't use caps lock!
[Android] akhilnarang:
Just run repo sync, it'll continue from wherever you stopped it, it'll restart that specific project though
[Android] jack9394:
hello, if i want to build two roms one from lets say liquidsmooth repo and one from slimroms , do i have sync the two repos a apart as this will take around 30gb or there is a way to sync one and sync over it the second in different folder without downloading 30 gb as my internet speed is very low, thanks in advance.
[Android] katinatez:
Two different builds require two source folders
[Android] Hashbang173:
Sort of, use the --reference option when you run repo init for the second ROM (Check guide for details).
[Android] rahul8040:
Limited Sources!

Hey for downloading the sources can't i just download my device specific sources instead of all of them all the CM'S for all devices like 14-15 GB is big! please HELP!

and my REPO sync -f is also giving me an error! exited due to sync gc error! please help on this too!
[Android] akhilnarang:
Remove whatever you don't need with your local manifest
[Android] katinatez:
You don't need to breakfast try this

make clobber && export USE_PREBUILT_CHROMIUM=1 && . build/envsetup.sh && time brunch bacon

or without clobber

export USE_PREBUILT_CHROMIUM=1 && . build/envsetup.sh && time brunch bacon
[Android] tobitege:
[MENTION=3814731]katinatez[/MENTION]: Thanks for your advice, as always, appreciated!

I actually already have the chromium flag in my .bashrc and I always wondered why they told me to always use breakfast lol.

export USE_PREBUILT_CHROMIUM=1
[Android] mohit310:
If you see brunch function in build/envsetup.sh it calls breakfast for you first.
[Android] tobitege:
You're right, it does with our setup, indeed.
[Android] V_v3k:
Yes thanks dude that worked. But now I'm getting a different error... My log is:

pz@Asus-G751JY:~/AOSP$ . build/envsetup.sh

including device/generic/mini-emulator-x86/vendorsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-mips/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/cm/bash_completion/git.bash
including vendor/cm/bash_completion/repo.bash

pz@Asus-G751JY:~/AOSP$ brunch i9082

including vendor/cm/vendorsetup.sh
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/samsung/i9082/cm.mk]]: "vendor/cm/config/gsm.mk" does not exist. Stop.
Device i9082 not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Repository for i9082 not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/samsung/i9082/cm.mk]]: "vendor/cm/config/gsm.mk" does not exist. Stop.

** Don't have a product spec for: 'cm_i9082'
** Do you have the right repo manifest?

No such item in brunch menu. Try 'breakfast'

And I repo synced cm-12.0 directly. Hope that's not the issue....
[Android] akhilnarang:
Try doing brunch cm-i9082_userdebug
[Android] messi2050:
The source is corrupt or it does not have the required permissions
[Android] TimSchumi:
Please share a full build log on pastebin and link it here. There is a error before this one.
[Android] dom133:
I use kernel for msm8916 with patches for nougat.

Wysłane z mojego LG-K420 przy użyciu Tapatalka
[Android] Pritansh Chandra:
Helped me a lot
[Android] dom133:
When you have a while pliss take a look into this kernel file https://github.com/PVineeth/android_kernel_lge_nougat

Wysłane z mojego LG-K420 przy użyciu Tapatalka
[Android] Samucadroid:
I am trying to compile the rom RR and it is giving these errors aqual can min help

build/core/product_config.mk:254: Cycle detected between "vendor/cm/config/common_full_phone.mk" and "device/asus/Z00L/full_Z00L.mk" for context "_nic.PRODUCTS.[[device/asus/Z00L/lineage.mk]]"

build/core/product_config.mk:254: *** import of "vendor/cm/config/common_full_phone.mk" failed. Pare.

build/core/product_config.mk:254: Cycle detected between "vendor/cm/config/common_full_phone.mk" and "device/asus/Z00L/full_Z00L.mk" for context "_nic.PRODUCTS.[[device/asus/Z00L/lineage.mk]]"

build/core/product_config.mk:254: *** import of "vendor/cm/config/common_full_phone.mk" failed. Pare.
[Android] yeshwanthvshenoy:
Here is the full log https://pastebin.com/PTWdfmsa. This is compiling without Jack (disabling it from BoardConfig). If I don't have the flag, I get this https://pastebin.com/Gt8hrPfj.
[Android] TimSchumi:
I don't know what is causing this. Probably some device tree that does not match the source.
[Android] Arvind7352:
Link the Device sources (GitHub)
[Android] heisenberg33:
hi guys

how i can change build variants wen i compile lineage ?

wen i run bruch it compile userdebug but i like to build user ...
[Android] TimSchumi:
Run lunch

lunch lineage_<device>-<build variant>
[Android] blueberry6401:
I'm building LineageOS for gemini (Xiaomi Mi5), and got this error:

Full log here: https://pastebin.com/LKNbVhDQ

Any helps on this? Thanks so much!!

UPDATE: seems like ccache corrupted, all I have to do is clear it.
[Android] ahmed gamal 1m:
I want to make vendor blobs for cm 12 can any one help me
[Android] gtpitch:
What make command are you using? For carbonrom it should be make carbon
[Android] DiamondJohn:
I am building a Lineage ROM, and all is working fine, however, I wish to pull in the latest changes that have been made to code since the last weekly compile they do officially; and I do not wish to do cherry picks as there are a number of changes to include.

If I do a "repo sync" it simply brings my code up to the last official compile.

Is there a command I can issue to get all the changes since the last official compile? I guess it would be like a nightly build of a weekly released ROM.
[Android] rocknegi:
If you have made changes in device tree commit them and push

Then do a repo sync you will get all the latest los changes

:cool:
[Android] DiamondJohn:
I have tried that, and it does not do what I wish.

As a side, my local changes are very specific; lets assume I have no local changes, as I have a process to reapply them if I lose them, and they should NOT go to this device tree.

I am not 100% certain on the terminology, but I am guessing that when they do a compile, they push all the outstanding changes up to head. Then, all the new edits they do, stay out on non merged branches. If I do a repo sync, all I see is what has been pushed to head, and not the changes made since.

for example on my specific device, I only get the code as it was on the last compile (https://download.lineageos.org/xt897/changes/ "Changes included in lineage-13.0-20170513-nightly-xt897-signed.zip") and not all the changes since. eg https://review.lineageos.org/#/c/171479/ (I get none of the "Jelly" changes onto my local disk)

is that clear? or did I screw it up by trying to use terms that actually mean something completely different?:silly:

I think I may of actually did it the other day accidental, but didn't seem to keep a copy of what I did.:crying:
[Android] rocknegi:
You should fork every repo you are using into you GitHub

Then you can push your changes to those repo

Then do repo sync it will work

Maybe this is what you are asking
[Android] NepoRood:
Try

repo sync -c -f --force-sync

This will force the most current of trees with upstream changes :good:
[Android] DiamondJohn:
I think I have worked out what is happening.

I am working in the CM-13.0 branch, and that is also what is being released every week. However, they appear to be placing their changes into the CM-14.1 branch; and hence a repo sync on my current branch doesn't pull them down. I would say they have some merge process happen before they do their weekly builds, to bring the changes down into the CM-13.0 branch. NB: I have tried building the CM-14.1 branch and it didn't build in itself.

I am guessing I will have to cherry-pick the changes from the CM-14.1 branch down into my codebase. Or wait till the end of the week...
[Android] Jamie_oppo:
hi guys, currently we are having troubles with our backlight in lineage 14.1 for the oppo f1f

if someone knows alot about backlights and would like to help us at the oppo f1f thread that would be much appricatied from all of us.

ill link the page with a post that explains it.

https://xdaforums.com/oppo-f1/development/dev-cyanogenmod-14-1-oppo-f1-f1f-t3519981/page30

(this is what he needs help with)

I have already merged the required code into the lm3630 backlight driver but there are another 9 files in the /drivers/video/msm/mdss that need the corresponding functions added in them. I have been looking through them and about 4 or 5 of them are quite easy but the other 4 or 5 will take a lot of work, some of which may be beyond my skills (hopefully not).
[Android] DJKristy:
After 1st repo sync, thats after all source code have been downloaded. Later when I do a repo sync again for getting the changes will I have to download all source code again(20-30gb).
[Android] spookcity138:
No
[Android] Infect_Ed:
What device? It's somewhere in your device dir. Mine is in my msm8996-common dir.

These errors haunted me for 4 days. Lol
[Android] XTutorials:
Hello. I'm am still getting errors (if you know me).. :

target C: libvterm <= external/libvterm/src/encoding.c

target C: libvterm <= external/libvterm/src/parser.c

target C: libvterm <= external/libvterm/src/unicode.c

target C: libvterm <= external/libvterm/src/pen.c

target C: libvterm <= external/libvterm/src/screen.c

target C: libvterm <= external/libvterm/src/state.c

make: *** No rule to make target '/home/andrei/android/system/out/target/common/obj/JAVA_LIBRARIES/ambientsdk_intermediates/aar/classes.jar', needed by '/home/andrei/android/system/out/target/common/obj/APPS/messaging_intermediates/AndroidManifest.xml'. Stop.

make: *** Waiting for unfinished jobs....

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

#### make failed to build some targets (50:10 (mm:ss)) ####

andrei@Andrei-HP-EliteBook:~/android/system$

What I can do? I cannot try 1000 times because it takes a lot (50 min), and why there are files missing? I am trying to build Android Open Kang Project for a device what has now stable source, and even some non-developers released roms, why I fail??????????

I am building AOKP MM and using openjdk-7

Please help. I will be very thankful

Thanks in advance
[Android] mistercheese:
You have vendor/cm?
[Android] somadsul:
Only repo sync will do the job
[Android] XTutorials:
Explain, please.
[Android] NepoRood:
AOKP doesn't have vendor/cm :p

[MENTION=8173346]XTutorials[/MENTION], can you post full error log on Pastebin or some such service, along with links to device tree(s)
[Android] MJPollard:
After struggling with it, I just took the easy way out: I removed Gello completely. :) It's my own build, intended for my own devices, and since I use Chrome as my browser, there was no harm in removing it. Problem solved!
[Android] DiamondJohn:
In Lineage, they have now switched over to Jelly instead of Gellow. See these few links (not comprehensive, but a start):

https://review.lineageos.org/#/c/172413/

https://review.lineageos.org/#/c/169426/6/gello/Android.mk

https://review.lineageos.org/#/c/169426/6/config/common.mk

https://github.com/LineageOS/android_packages_apps_Jelly/tree/cm-14.1/app

I think that the source you are using (probably another download from git) isnt viable anymore as more roms move over to Jelly. I thought of you when I first saw this myself.
[Android] MJPollard:
I thought of that, too, but it appears that Jelly is currently only available for Nougat, whereas I'm compiling Marshmallow (I needs me themes, man!). If they backport Jelly to Marshmallow, cool, but I doubt they will. I use Chrome anyway, so the absence of Gello and Jelly is no big deal to me (and the AOSP browser is still part of the distro; I'm pretty sure it falls back to that if Gello isn't available).
[Android] DiamondJohn:
ooo that puts a spanner in my idea of bringing it down to my Marsmallow rom :( however, https://xdaforums.com/showpost.php?p=72303861&postcount=35

I also noticed that as part of the changes for Jelly, my lineage ROM also had an updated WebView APK. Maybe that's what will get it to work since it relies on the systems built in web browser. I just tried the download the pre-built APK, it installed and loaded, but failed with a "connection refused". It did load up pretty quickly though....:rolleyes:

---------- Post added at 12:35 AM ---------- Previous post was at 12:16 AM ----------

Scratch that. I just read the following http://stackoverflow.com/questions/...arshmallow-when-target-compile-sdk-version-23 and when I checked, my default "Privacy Guard" settings disabled Wifi and mobile data. As soon as I enabled it, Jelly now works. I am guessing if it was installed as a system app as part of the rom, this step would not be needed. So it will be full steam ahead for Jelly browser. (without needing to mess with that pesky webview apk, though ho knows if/what benefits that would give)
[Android] XTutorials:
kernel: https://github.com/OpenKirin/android_kernel_huawei_alice

vendor: https://github.com/OpenKirin/android_vendor_huawei_alice/tree/los-13.0

tree: https://github.com/OpenKirin/android_device_huawei_alice/tree/los-13.0

All of them are on branch los-13.0

And here is the .xml made by me to download device's sources:

<manifest>

<project name="OpenKirin/android_device_huawei_alice" path="device/huawei/alice" remote="github" revision="los-13.0"/><project name="OpenKirin/android_kernel_huawei_alice" path="kernel/huawei/alice" remote="github" revision="los-13.0"/><project name="OpenKirin/android_vendor_huawei_alice" path="vendor/huawei/alice" remote="github" revision="los-13.0"/>

</manifest>

But I don't understand what you mean by full error log and pastebin, can you tell me more about them to understand?

Thank you so much, I'm flattered that an actual AOKP member responded!
[Android] Gabrius99:
Hi to all!

I'm building Lineage OS for my device. I added some third party app to my source code: I put apk in a folder in the directory /packages/apps, I added all the apk's name in /vendor/cm/config/common.mk and also within /build/target/core.mk, but the building process doesn't see them and it doesn't include them in the ROM package.

I followed many guides, but all of them failed on this, so I think i'm forgetting something.

There is a method to add third party app to the source code?
[Android] MZO:
Check the app's Amdroid.mk and use case sensitive name in your makefiles
[Android] NepoRood:
Full Error Log: Actually a full build log, you can generate one in your source folder if you do the following:

mka rainbowfarts 2>&1 | tee buildlog.txt

This will create the file "buildlog.txt" in your AOKP source folder, copy/upload the contents to a service like pastebin or hastebin, both are sites that allow you to copy & paste large amounts of code, or, you can just push the log to Github.

Also, it looks like your "los-13.0" device needs to be "AOKP-ified", if you've done this on your local machine, you should push your changes to git.
[Android] paultsr:
HOw To customize the ROM while Building it from the source code??

Thank you all for supporting me.Finally i have built myown ROM.

I would like to customize the ROM (such as add some apks,change wallpaper,chnage OS name,add su,change kernel parameters,etc..)how can i customize it?is there any online docs available??
[Android] MZO:
You can find handful of stuff like that from github like how to add apks, change kernel params (building kernel guide), don't change the name of OS because it is unethical. Adding SU is same, github.com/search
[Android] Gabrius99:
# Makefile for MaterialTerminal

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := MaterialTerminal;
LOCAL_CERTIFICATE := PRESIGNED
LOCAL_SRC_FILES := $(LOCAL_MODULE).apk
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
include $(BUILD_PREBUILT)

This is my Android.mk for one of the app I included, Material Terminal. Which string I should change?
[Android] MZO:
It must be MaterialTerminal and not Material Terminal
[Android] XTutorials:
Until I upload the log, OpenKirin is not my account so, "los-13.0" is not developed by me, but I can fork it or reupload it on my account and change source.

But, how I will AOKP-ify the source?

I'm really sorry for that much questions, I think I am annoying.

Still, thanks a lot for the help given until now
[Android] Gabrius99:
Yes, i know. All the apps hasn't spaces or anything that terminal can't read. Also them are read by the compiling process, because when i left some errors, the building process stopped itself, but they aren't included in the zip. Maybe I'm forgetting some codes to add somewhere?
[Android] Arvind7352:
Hey,

Read this post to get any Pre-built module copied into the System.

And this one too...

Take your time to understand the procedure
[Android] XTutorials:
I ran the command for log, and got this:

https://github.com/XTutorials/build.log.git

Just click on readme.md, and click "view raw", but I inform you that there is a lot of text.

Mention that I changed repositories, same links, but now I use branch "mm", I was thinking that wasn't made just for LOS 13, but this was made for OMNIRom. And I get the same error as los-13.0 repo.
[Android] AnotherFreakinNoob:
It was an S2
[Android] DJKristy:
Hi, I now get what is device tree and kernel tree.

But still not able to understand what is a vendor tree and how its made.

Can anyone tell me about it
[Android] MZO:
Vendor tree has those libraries and files that don't have a source code so that they can be built from source. These libs are usually proprietary information by OEM and aren't open source
[Android] NepoRood:
When building AOKP, be sure to use Lineage device tree, as it only needs slight modification to work. You should go ahead and fork the device tree (vendor and kernel are optional). What build commands are you using? Meaning, after you do ". build/envsetup.sh", what comes next?
[Android] XTutorials:
Forked. I use lunch/ brunch, but sometimes I use lunch/croot/mka, but I have same errors.

What next?

Edit: To make life easier, here's a link of my Git: https://github.com/XTutorials

The repos are named android_device/kernel/vendor_huawei_alice
[Android] NepoRood:
First,

mka clean

Then you need to change This Line to:

$(call inherit-product, vendor/aokp/configs/common_full_phone.mk)

Then you lunch your device, followed by

mka rainbowfarts

You can include the build log part if you want, but probably isn't necessary, since you're building MM
[Android] XTutorials:
I just downloaded the LOS source and changed the line you did told me, and I cannot even lunch.

20. aokp_honami-userdebug	40. lineage_alice-userdebug

Which would you like? [full-eng] 40

build/core/product_config.mk:234: *** Can not locate config makefile for product "lineage_alice". Stop.

Did not get local manifest, will create a new one

Did not get local manifest, will create a new one

Going to fetch lineage_alice from AOKP github

Checked dependency tree over :

NO_DEPS:	device/*/lineage_alice

build/core/product_config.mk:234: *** Can not locate config makefile for product "lineage_alice". Stop.

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

** Do you have the right repo manifest?

andrei@Andrei-HP-EliteBook:~/android/system$

?

Thanks in advance
[Android] spookcity138:
Did you add your device to AOKP's vendor here...

https://github.com/AOKP/vendor_aokp/blob/mm/aokp.devices
[Android] MZO:
lunch aosp_alice-userdebug
[Android] NepoRood:
You building AOKP or LOS? IF you're on LOS now, you don't need to change anything, just: lunch and make bacon
[Android] XTutorials:
Hi! You're back in helping me, thanks! :angel:

I did not do that, I will try in the morning.

---------- Post added at 08:35 PM ---------- Previous post was at 08:04 PM ----------

I am building

AOKP

, not LOS, just to be clear.

You told me that LOS 13 branch needs just a small amount of modifications to build AOKP.
[Android] paultsr:
i had built the ROM using the following commands :

breakfast surnia user
brunch surnia user

I tried to run it on my laptop using the command "emulator", but i got the following error :

emulator: ERROR: Can't find 'Linux version ' string in kernel image file: /home/paul/android/lineage/out/target/product/surnia/kernel

can i emulate or run my ROM in laptop before flashing it to my phone?
[Android] MZO:
You need to build the emulator imag le for that. Or you can build the image for your phone itself because it won't be harmful
[Android] paultsr:
How?commands?
[Android] Albe96:
Syncing work tree: 6% (31/505) Traceback (most recent call last):

File "/home/alberteno098/android/system/.repo/repo/main.py", line 531, in <module>

_Main(sys.argv[1:])

File "/home/alberteno098/android/system/.repo/repo/main.py", line 507, in _Main

result = repo._Run(argv) or 0

File "/home/alberteno098/android/system/.repo/repo/main.py", line 180, in _Run

result = cmd.Execute(copts, cargs)

File "/home/alberteno098/android/system/.repo/repo/subcmds/sync.py", line 821, in Execute

project.Sync_LocalHalf(syncbuf, force_sync=opt.force_sync)

File "/home/alberteno098/android/system/.repo/repo/project.py", line 1327, in Sync_LocalHalf

self._InitWorkTree(force_sync=force_sync)

File "/home/alberteno098/android/system/.repo/repo/project.py", line 2477, in _InitWorkTree

raise e

error.GitError: --force-sync not enabled; cannot overwrite a local work tree. If you're comfortable with the possibility of losing the work tree's git metadata, use `repo

sync --force-sync device/samsung/mint2g` to proceed.

alberteno098@instance-5:~/android/system/.repo/local_manifests$

How to fix this error.It shows when I type 'repo sync' after cloning device tree,vendorr and kernel source to its directory. . .
[Android] spookcity138:
repo sync --force-sync device/samsung/mint2g

Then sync again.
[Android] Albe96:
I did it..But still got the same error. .
[Android] Albe96:
It seems like Ninja Wrapper Error.

Try this to fix:

1.Open your bash.rc file.

2.Add This Line At The End Of This File-->>

export USE_NINJA=false

3.Go To Source Folder.Do a repo sync.

4.Start Building Again!