yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] :
got to "yourworkspace/device/samsung/n7100/selinux/file.te"

and open it with any text editor and delete line

type camera_data_file, file_type, data_file_type;

save and exit and rerun build

edit :- dang! [MENTION=4479868]desalesouche[/MENTION] is faster :p
[Android Software/Hacking General [Developers Only]] FuMMoD:
Trying to build on Ubuntu for the first time and I get this error with the first command.

Package lib32readline5-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
lib32readline-gplv2-dev

Package sun-java6-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package libwxgtk2.6-dev
E: Couldn't find any package by regex 'libwxgtk2.6-dev'
E: Package 'sun-java6-jdk' has no installation candidate
E: Package 'lib32readline5-dev' has no installation candidate
E: Unable to locate package gcc-4.3-multilib
E: Couldn't find any package by regex 'gcc-4.3-multilib'
E: Unable to locate package g++-4.3-multilib
E: Couldn't find any package by regex 'g++-4.3-multilib'

Did a search in the thread and found only someone suggesting to add them idividually. This is my first time building and I'm not very experienced with Ubuntu so I don't know how to do that. There was no addition information on how to add them by themselves. Thanks in advance guys.

I used this link for setting up the Java JDK to the latest 8.

Edit: Disregard, I already had my build environment completely setup. I attempted to set it up again due to the beanstalk steps. Complete noob move of me. Doh!
[Android Software/Hacking General [Developers Only]] FuMMoD:
I'm getting a crazy amount of fetch errors when syncing.

Fetching projects: 97% (441/454) Fetching project CyanogenMod/android_external_kissfft
Fetching project platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6
Fetching project scotthartbti/android_frameworks_opt_telephony
Fetching project scotthartbti/frameworks_opt_cards
Fetching projects: 99% (450/454) fatal: Not a git repository: '/home/fum/Android Roms/Beanstalk/.repo/projects/packages/apps/BeanStalkPapers.git'
error: Cannot fetch scotthartbti/android_packages_apps_BeanStalkPapers
warn: --force-broken, continuing to sync
Fetching projects: 100% (454/454), done.

error: Exited sync due to gc errors

error: Exited sync due to gc errors

I looked up ways on how to solve it on google and discovered the following commands. All which did not work.

repo sync -f -j10

repo sync -f -j16

repo sync -f

I'm trying to sync KK4.4 from here https://github.com/scotthartbti/android

I ran the commands to get into the repo and also have an account setup.

fum@fum-System-Product-Name:~/Android Roms/Beanstalk$ repo init -u git://github.com/scotthartbti/android.git -b kk44

Your identity is: FuM <fummod@gmail.com>
If you want to change this, please re-run 'repo init' with --config-name

repo has been initialized in /home/fum/Android Roms/Beanstalk
[Android Software/Hacking General [Developers Only]] jthatch12:
I had a bunch of errors recently, I ended up deleting my build folder and starting fresh. As much as it sucks it was the only solution. After that it fetched fine and built without errors
[Android Software/Hacking General [Developers Only]] CrashTestDroid:
-j10 and -j16 are only going to make it worse. Run fewer threads, more likely to succeed:

repo sync -j2
[Android Software/Hacking General [Developers Only]] a2441918:
Anyone facing build errors with sms java binaries?
[Android Software/Hacking General [Developers Only]] jthatch12:
--force-broken helps on occasion
[Android Software/Hacking General [Developers Only]] FuMMoD:
Setup a new build folder and did repo all over again and it's working now. Thanks
[Android Software/Hacking General [Developers Only]] a2441918:
Get this error while building beanstalk for GT-I9500. Help me out please.

Install: /home/sonic/bs1/out/target/product/i9500/system/app/Browser.apk
Copying: /home/sonic/bs1/out/target/common/obj/APPS/BasicDreams_intermediates/emma_out/lib/classes-jarjar.jar
Copying: /home/sonic/bs1/out/target/common/obj/JAVA_LIBRARIES/uiautomator.core_intermediates/classes-jarjar.jar
Copying: /home/sonic/bs1/out/target/common/obj/APPS/BeanStalkPapers_intermediates/classes-jarjar.jar
Copying: /home/sonic/bs1/out/target/common/obj/APPS/BasicDreams_intermediates/classes.jar
Copying: /home/sonic/bs1/out/target/common/obj/JAVA_LIBRARIES/javax.obex_intermediates/classes-jarjar.jar
target thumb C++: libbatteryservice <= frameworks/native/services/batteryservice/IBatteryPropertiesRegistrar.cpp
target thumb C++: libbatteryservice <= frameworks/native/services/batteryservice/IBatteryPropertiesListener.cpp
Reading library jar [/home/sonic/bs1/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar]
[COLOR="Red"]development/apps/Development/src/com/android/development/SMSTester.java:59: cannot find symbol
symbol : variable MOCK_SMS_RECEIVED_ACTION
location: class android.provider.Telephony.Sms.Intents
Intent in = new Intent(Intents.MOCK_SMS_RECEIVED_ACTION);
^
development/apps/Development/src/com/android/development/SMSTester.java:78: cannot find symbol
symbol : variable MOCK_SMS_RECEIVED_ACTION
location: class android.provider.Telephony.Sms.Intents
Intent in = new Intent(Intents.MOCK_SMS_RECEIVED_ACTION);
^[/COLOR]
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
realmake: *** [/home/sonic/bs1/out/target/common/obj/APPS/Development_intermediates/classes-full-debug.jar] Error 41
realmake: *** Waiting for unfinished jobs....
Reading library jar [/home/sonic/bs1/out/target/common/obj/JAVA_LIBRARIES/framework2_intermediates/classes.jar]
Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
warning: no entries written for drawable/background_protector
Preparing output jar [/home/sonic/bs1/out/target/common/obj/APPS/BeanStalkOTA_intermediates/proguard.classes.jar]
Copying resources from program jar [/home/sonic/bs1/out/target/common/obj/APPS/BeanStalkOTA_intermediates/classes.jar]
sonic@buildbox:~/bs1$
[Android Software/Hacking General [Developers Only]] jthatch12:
Delete development/apps/Development/src/com/android/development/SMSTester.java and do a repo sync.
[Android Software/Hacking General [Developers Only]] a2441918:
Thanks. Fixed that and recurring same type of errors. Get this error at the end. Help me out please. I added a few build.prop tweaks to the system.prop in device folder.

NG/systemimage_intermediates/system.img /home/sonic/donottouch/out/target/product/n7100/system
+ make_ext4fs -s -S /home/sonic/donottouch/out/target/product/n7100/root/file_contexts -l 1610612736 -a system /home/sonic/donottouch/out/target/product/n7100/obj/PACKAGING/systemimage_intermediates/system.img /home/sonic/donottouch/out/target/product/n7100/system
Creating filesystem with parameters:
Size: 1610612736
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 6144
Label:
Blocks: 393216
Block groups: 12
Reserved block group size: 95
Created filesystem with 2287/98304 inodes and 112664/393216 blocks
+ '[' 0 -ne 0 ']'
Install system fs image: /home/sonic/donottouch/out/target/product/n7100/system.img
/home/sonic/donottouch/out/target/product/n7100/system.img+ maxsize=1644331392 blocksize=4224 total=436481836 reserve=16612992
Package target files: /home/sonic/donottouch/out/target/product/n7100/obj/PACKAGING/target_files_intermediates/cm_n7100-target_files-981bce3a1b.zip
Package OTA: /home/sonic/donottouch/out/target/product/n7100/cm_n7100-ota-981bce3a1b.zip
MKBOOTIMG= \
./build/tools/releasetools/ota_from_target_files -v \
-p /home/sonic/donottouch/out/host/linux-x86 \
-k build/target/product/security/testkey \
--backup=true \
--override_device=t03g,n7100,GT-N7100 \
/home/sonic/donottouch/out/target/product/n7100/obj/PACKAGING/target_files_intermediates/cm_n7100-target_files-981bce3a1b.zip /home/sonic/donottouch/out/target/product/n7100/cm_n7100-ota-981bce3a1b.zip
unzipping target target-files...
running: unzip -o -q /home/sonic/donottouch/out/target/product/n7100/obj/PACKAGING/target_files_intermediates/cm_n7100-target_files-981bce3a1b.zip -d /tmp/targetfiles-fqofQ6
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 970, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 913, in main
OPTIONS.info_dict = common.LoadInfoDict(input_zip)
File "/home/sonic/donottouch/build/tools/releasetools/common.py", line 156, in LoadInfoDict
d["build.prop"] = LoadBuildProp(zip)
File "/home/sonic/donottouch/build/tools/releasetools/common.py", line 170, in LoadBuildProp
name, value = line.split("=", 1)
ValueError: need more than 1 value to unpack
realmake: *** [/home/sonic/donottouch/out/target/product/n7100/cm_n7100-ota-981bce3a1b.zip] Error 1
sonic@buildbox:~/donottouch$
[Android Software/Hacking General [Developers Only]] jthatch12:
I'll take a look tomorrow. I'm headed to a concert tonight so I'm pretty busy
[Android Software/Hacking General [Developers Only]] a2441918:
development/apps/Development/src/com/android/development/SMSTester.java --> just comment the set of lines called by line 59 and do with the bacon process. If commenting doesnt work, delete the file and continue.

Scott has to fix telephony services. Hope someone informs scott about this.
[Android Software/Hacking General [Developers Only]] FuMMoD:
How exactly do I do that? Sorry not proficient with ubuntu terminal commands. Are there any others I need to skip as well?
[Android Software/Hacking General [Developers Only]] skull47:
commenting the lines

in development/apps/Development/src/com/android/development/SMSTester.java add two slashes (//) in front of the lines 59 and 78..they will turn blue

its better if u comment out lines 59-69 and 78-80...cos i too faced this error...this is my solution

u can try it out

save it and try building again..
[Android Software/Hacking General [Developers Only]] a2441918:
copy and paste this in root of source directory.

rm development/apps/Development/src/com/android/development/SMSTester.java

Press Enter, repo sync and continue.
[Android Software/Hacking General [Developers Only]] jthatch12:
Do another repo sync, it should fix any build errors today.
[Android Software/Hacking General [Developers Only]] FuMMoD:
Can't thank you enough man. That helped me compile my first rom with no errors.
[Android Software/Hacking General [Developers Only]] a2441918:
Scott fixed the error. Remove frameworks/base and opt folder and do a repo sync to get new files.

Sent from my SOKP powered Galaxy S 4 i9500.
[Android Software/Hacking General [Developers Only]] FuMMoD:
Do I leave the // lines in front of those lines from the previous post or can I remove the //s?
[Android Software/Hacking General [Developers Only]] a2441918:
U completely delete frameworks base and frameworks opt folder. Do a repo sync -f after that. That will delete the file as well and get u new files.

Sent from my SOKP powered Galaxy S 4 i9500.
[Android Software/Hacking General [Developers Only]] FuMMoD:
Ah ok the file I edited was inside that folder. I get it now thank you. Do you know any good cherry picking guides for roms? I haven't found a good guide yet. Red devil's one is the best one I've found and I'm still completely lost.
[Android Software/Hacking General [Developers Only]] a2441918:
I would recommend you this.

http://xdaforums.com/showthread.php?t=2383637

This is the method I used. If u r a newbie in development what will you do if you face conflicts in cherry picking? I am also a newbie in development and I face many conflicts. Its

Sent from my SOKP powered Galaxy S 4 i9500.
[Android Software/Hacking General [Developers Only]] FuMMoD:
Read that one already lol. Thanks for the help
[Android Software/Hacking General [Developers Only]] a2441918:
Ok mate. If u r ready enough to fix conflicts then cherry picking is the best. Btw can you post me the link to red devil's guide here?
[Android Software/Hacking General [Developers Only]] StlGucci:
Do you have the Lg G2 D800 supported would like to build it and maintain it
[Android Software/Hacking General [Developers Only]] FuMMoD:
Here you go man. http://xdaforums.com/showpost.php?p=42701768&postcount=2
[Android Software/Hacking General [Developers Only]] Aceofzeroz:
Heya guys, I'm relatively new to the android building game and I've started it off with Beanstalk KK for my device, the Atrix 2 (edison). :) Before that, I was doing well with file-swap porting from other devices but theere's something with Beanstalk KK that prevents it from mounting my phone's externl storage (only Internal storage shows up).

That said, I've managed to succsssfully build the latest update of the rom twice now after getting rid of the single error that was stopping it. The problem is when I get to flashing and booting it, it shows the boot animtion for 5 seconds, freezes and reboots right away.:( This has occurred on both builds and obviously I can't get a logcat in time to know what exactly is the problem. I even extracted the completed zip and compared it to my device's CM11 to make sure all the files were in place with WinMerge and they're all there, so it's not that.

I'll provide any additional information as needed but my primary question is if anyone has experienced this issue before at all and what do I need to do in order to make working builds?

Thanks and regards! :)
[Android Software/Hacking General [Developers Only]] patch_Adams:
You need Cl3kener's guide to rom building. You'll have to Google it, I'm at work....it's called "Develop Now"....
[Android Software/Hacking General [Developers Only]] CrashTestDroid:
Check your device and kernel, though any builds with a recent repo sync will prob fail due to new CAF commits. Try diff device & kernel tree. Slim might work.
[Android Software/Hacking General [Developers Only]] Aceofzeroz:
Ooo sweet, thank you for suggesting that! [emoji2][emoji16] I knew it couldn't be me since I built another Rom, AICP, afterwards and it's working very well. Alrighty, I'll get right to it asap, thanks for your help and clearing that up for me! [emoji6][emoji3]

Sent from the Ace's MB865 using Tapatalk
[Android Software/Hacking General [Developers Only]] nprev420:
I started getting that error yesterday. I tried your fix and it didn't work now i get this

Package target files: /home/graberroms/jenkins/kitstalk/out/target/product/moto_msm8960/obj/PACKAGING/target_files_intermediates/cm_moto_msm8960-target_files-dce3175669.zip
Package OTA: /home/graberroms/jenkins/kitstalk/out/target/product/moto_msm8960/cm_moto_msm8960-ota-dce3175669.zip
MKBOOTIMG= \
./build/tools/releasetools/ota_from_target_files -v \
-p /home/graberroms/jenkins/kitstalk/out/host/linux-x86 \
-k build/target/product/security/testkey \
--backup=true \
--override_device=moto_msm8960,xt925,xt926,xt907,vanquish_u,vanquish,scorpion_mini,mb886,qinara,asanti,asanti_c,xt897,xt897c --override_prop=true \
/home/graberroms/jenkins/kitstalk/out/target/product/moto_msm8960/obj/PACKAGING/target_files_intermediates/cm_moto_msm8960-target_files-dce3175669.zip /home/graberroms/jenkins/kitstalk/out/target/product/moto_msm8960/cm_moto_msm8960-ota-dce3175669.zip
/bin/bash: ./build/tools/releasetools/ota_from_target_files: Permission denied
make: *** [/home/graberroms/jenkins/kitstalk/out/target/product/moto_msm8960/cm_moto_msm8960-ota-dce3175669.zip] Error 126

EDIT-----Since it said permission denied i looked at the files permissions. ALl were disabled so i enables them all and now I have build.....Thanks for the fix :) :) :)
[Android Software/Hacking General [Developers Only]] desalesouche:
you could have done : chmod 777 build/tools/releasetools/ota_from_target_files
[Android Software/Hacking General [Developers Only]] nprev420:
I didn't know but thanks for the tip in the future :)
[Android Software/Hacking General [Developers Only]] FuMMoD:
Anyone got any tips for my errors?
[Android Software/Hacking General [Developers Only]] nprev420:
I had a similar error but on moto_msm8960. We named ours kitstalk so for example for you I had to delete my local kitstalk/device/motorola folder then kitstalk/kernel/motorola folder

Then repo sync to get a fresh copy of those folders and boom error gone. Hope this helps you man
[Android Software/Hacking General [Developers Only]] skyliner33v:
Bumped to 4.4.285

Sent from my Optimus G Pro running BeanStalk 4.4.2
[Android Software/Hacking General [Developers Only]] jthatch12:
My build for the M7 is running fine
[Android Software/Hacking General [Developers Only]] xtcdk:
I also made a build for yuga and hammerhead without any issues

Hammerhead / Yuga / Dirty Unicorn ! Beanstalk /
[Android Software/Hacking General [Developers Only]] CrashTestDroid:
hlte, deb, jflte all OK on 4.4.285

No bootloops.
[Android Software/Hacking General [Developers Only]] jthatch12:
Do you guys use scripts when compiling your ROMs? If not I made a really nice script that will help ease building. If anyone is interested shoot me a PM
[Android Software/Hacking General [Developers Only]] nprev420:
I dont know man, thats what i did and it worked fine for me. Maybe you should delete EVEYTHING and statrt from scratch. My moto-msm8960 is building fine, so is vs980 and hammerhead. Not sure about d2lte yet, it was throwing an error the other day but i think it was fixed in the update but i havent tried building yet.
[Android Software/Hacking General [Developers Only]] Slomies:
I just built 285 for jflte and am running it fine
[Android Software/Hacking General [Developers Only]] FuMMoD:
Deleted the entire directory and started over new twice and same error lol.
[Android Software/Hacking General [Developers Only]] CrashTestDroid:
broken pipe, looks like your build environment to me.

please post:

java -version

uname -a

or re-follow the BeanStalk/CM instructions in OP. Might have missed a step or dependency
[Android Software/Hacking General [Developers Only]] jthatch12:
Did you change your toolchain?
[Android Software/Hacking General [Developers Only]] phoenixita:
Is someone of you experiencing systemui f/c on boot cause i've fixed them. There were some missing drawables...
[Android Software/Hacking General [Developers Only]] FuMMoD:
All stock settings and fresh repo sync. No tool chain.
[Android Software/Hacking General [Developers Only]] xtcdk:
What commands are you useing for repo/building and what about your manifest

Hammerhead / Yuga / Dirty Unicorn ! Beanstalk /
[Android Software/Hacking General [Developers Only]] FuMMoD:
Followed everything in the op and changed the repo for kitkat. I was able to build last week but now I'm not able. I haven't touched my manifest in either occasion.
[Android Software/Hacking General [Developers Only]] xtcdk:
What device

Hammerhead / Yuga / Dirty Unicorn ! Beanstalk /
[Android Software/Hacking General [Developers Only]] FuMMoD:
Hammerhead

I sync the device files in my vendors folder from AOKP though since I don't know how to from CM.
[Android Software/Hacking General [Developers Only]] xtcdk:
Hang on. Will write to you . PM

Hammerhead / Yuga / Dirty Unicorn ! Beanstalk /

---------- Post added at 02:43 PM ---------- Previous post was at 02:32 PM ----------

Did you get my msg ,

Hammerhead / Yuga / Dirty Unicorn ! Beanstalk /

---------- Post added at 03:04 PM ---------- Previous post was at 02:43 PM ----------

<?xml version="1.0" encoding="UTF-8"?>

<manifest>

<project name="CyanogenMod/android_device_lge_hammerhead" path="device/lge/hammerhead" remote="github" revision="cm-11.0" />

<project name="CyanogenMod/android_kernel_lge_hammerhead" path="kernel/lge/hammerhead" remote="github" revision="cm-11.0" />

<project name="TheMuppets/proprietary_vendor_lge" path="vendor/lge" remote="github" revision="cm-11.0"/>

</manifest>
[Android Software/Hacking General [Developers Only]] BMP7777:
Could you explain and/or lay out the changes you made? Im still getting users complaining of UI FCs with the latest build .285.
[Android Software/Hacking General [Developers Only]] phoenixita:
I'm having systemui f/c on boot since december...basycally there were some missing icons in the drawable folders in frameworks base. I've copied a lot of icons from another rom in these folders and it's working...I'm still doing some tests to confirm i fixed the f/c.

Anyway the last two commits on my fork will explain you better.

https://github.com/phoenixita/android_frameworks_base/commits/kk44

I've opened a pull request let's see if Scott merges it.
[Android Software/Hacking General [Developers Only]] skull47:
u can try dis...

dude u still unable to compile even after deleting complete build directory???

if u hav ccache setup...then delete the entire ccache and start building again cos sumtyms ccache causes the build error as it provides the wrong output from cache....happened to me sumtyms nd helped me many tyms... :P
[Android Software/Hacking General [Developers Only]] CrashTestDroid:
AOKP device tree isn't working for you. CM works for me, you should try it.
[Android Software/Hacking General [Developers Only]] BMP7777:
. build/envsetup.sh
vendor/cm/get-prebuilts

That should get your CM prebuilts....

I'd dump that AOKP vendor folder and get CMs. You can either sync it up, or use this: https://github.com/CyanogenMod/android_vendor_cm

Download the vendor file and paste it in your build directory.
[Android Software/Hacking General [Developers Only]] FuMMoD:
Yeah I did that. Everything that's listed in the steps I followed. Only thing I didn't follow was getting the device and kernel because it doesn't say how. I used AOKP for that. I was able to build on it a week and a half ago.
[Android Software/Hacking General [Developers Only]] xtcdk:
285 works fine both on my yuga and hammerhead device

nexus 5/ Beanstalk 4.4.200 / Meow
[Android Software/Hacking General [Developers Only]] BMP7777:
And you're using the manifest posted above? I don't build for that device, but it looks correct for pulling in device and kernel.

---------- Post added at 11:10 AM ---------- Previous post was at 11:05 AM ----------

HTC ONE(M7) users are complaining of FCs on .278 and .285. Going to try phoenix's fix this evening and see if that takes care of it. Looks like it will....

Was your build straightforward with no additions? When did you last sync? My last sync was around the time when .285 was updated on Git.....
[Android Software/Hacking General [Developers Only]] FuMMoD:
Yes manifest with CM device, CM kernel and the Muppets. I'm thinking it could be that I upgraded from ubuntu 13.10 to 14.04.
[Android Software/Hacking General [Developers Only]] BMP7777:
That may be the issue. I still use Luninux 12 and build like a champ.
[Android Software/Hacking General [Developers Only]] xtcdk:
No addons at all, last sync 22/4

Hammerhead / Yuga / Dirty Unicorn ! Beanstalk /
[Android Software/Hacking General [Developers Only]] gamerman123x:
Built beanstalk 285 nice for hammerhead on Ubuntu 14.04 and I'm wondering if anyone knows how to build beanstalk with the beanstalk kernel instead of the cyanogenmod kernel thanks .
[Android Software/Hacking General [Developers Only]] xtcdk:
Very good question

Hammerhead / Yuga / Dirty Unicorn ! Beanstalk /
[Android Software/Hacking General [Developers Only]] :
just use kernel repos from Scott's repos
[Android Software/Hacking General [Developers Only]] gamerman123x:
Ok so what is the command for that and do I need to edit my local manifest and put it there ?