yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] wasowski02:
Ubuntu 17.04, but I have also tried it on 16.10 last week, and openjdk-8
[Android Q&A, Help & Troubleshooting] Sands207:
I can't speak for others but I have not had success building anything android on 15.10,16.04,16.10... I always end up on a wild goose chase with all the compiling errors. I have consistently compiled without errors using 14.04 with oracle java 8 as that is what many of the manufacturers are using to make their own builds. If or oracle spits errors with 14.04 i try to use the rule of thumb and thats openjdk-6 and jre for LP, openjdk-7 and jre for MM and openjdk-8 for nougat builds but im only working on MM builds at the moment so your results may vary. Hope this helps a bit, just remember you can use sudo update-alternatives --display java to switch versions on the fly if needed and make sure you incorporate Google prebuilts as well. good luck ?
[Android Q&A, Help & Troubleshooting] wasowski02:
Then I will try 14.04 and see what happens. Thanks for help
[Android Q&A, Help & Troubleshooting] ninja_unmatched:
[MENTION=6085001]Sands207[/MENTION] Is there by any chance a site where you can learn to do this? Tutorial for noobs of sort.
[Android Q&A, Help & Troubleshooting] Sands207:
Yes, luckily for us xda members we have our own Android college built right into xda https://xdaforums.com/general/xda-university its a great starting point and rom compiling guide is also there. Its all aimed to help new folks find their way ? jump right in ?
[Android Q&A, Help & Troubleshooting] RealWelder:
If you need TWRP for it I have it. It was built by blaz3r64, but since AA51 is down I can upload it for you. I can confirm that it works on both the ST Galaxy Core Prime and the Boost Prevail LTE.
[Android Q&A, Help & Troubleshooting] wasowski02:
So I have already downloaded the official TWRP, but thanks for your interest.

I have tried to compile using ubuntu 14.04 (with openjdk-8) as [MENTION=6085001]Sands207[/MENTION], but I get this error:

FAILED: /bin/bash -c "prebuilts/misc/linux-x86/bison/bison -d --defines=/home/karol/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_y.h -o /home/karol/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_y.cpp system/tools/aidl/aidl_language_y.yy"
/bin/bash: prebuilts/misc/linux-x86/bison/bison: No such file or directory
[Android Q&A, Help & Troubleshooting] Sands207:
I recommend trying this keychain as it has full support for what you are attempting https://xdaforums.com/showthread.php?t=3606941 I have tried it myself but Id recommend cleaning your build folder before incorporating them, maybe even a reboot as well. i had forgotten about this but it has far more tools than the normal keychain.

---------- Post added at 04:29 PM ---------- Previous post was at 04:22 PM ----------

remember to select the right architecture ??
[Android Q&A, Help & Troubleshooting] wasowski02:
So I downloaded the new toolchain/keychain/cross compiler (just to make sure - this is the same, yes?), but I cannot find how to choose it to compile android. The official post says:

# for arm64
export CROSS_COMPILE=$(pwd)/bin/aarch64-linux-gnu-

but as I'm not compiling the kernel I assume it is not what I need (I think) and

echo $CROSS_COMPILE

does not return anything by default. If I should have used the export function then which file should I choose, because there are many (-strip, -strings, -size, -run, etc.).

There is a directory called toolchain (it contains only binutils) in the folder containing the source code. Should I add a folder called gcc and put the files there? Or maybe I have to run brunch with some options or change an entry in a configuration/make file?

I use the aarch64 version, but not the newest (20170515 not 20170520).
[Android Q&A, Help & Troubleshooting] Sands207:
I do think as you said you will need to run brunch but resetting up your build & source environment to use the new keychain as you attempted to switch from one keychain to the other as well may help if this doesn't work as well take a look at your build configuration. rc file and make sure you don't have double entries or the new keychain missing i usually import the prebuilts i need as I am using arm architecture at the moment but i either download the individual keychain i need and place it in my source folder when i setup my build environment to be added to the build along with my sources before i run lunch because my source folder is untouched by me besides that at that point. I'll be home in an hour or so I'm going to see if i can track down some info to help you get untangled but i do recommend downloading the folder and making a gcc folder with the toolchain folder for arm64 as you said and and adding it to your build ensuring it is clean besides what you need and adding it then attempt to compile again.
[Android Q&A, Help & Troubleshooting] wasowski02:
I'm​ not sure if I should use aarch64. I have an armv7-a-neon (so 64-bit) and the internet says that aarch64 and arm64 is pretty much the same, but maybe I am wrong and I should use arm instead. But I think that does not matter until I put the new toolchain both to the aarch64 and arm directory (I guess the compilation process will choose the right one automatically). So I've put the compilers into prebuilts/gcc/linux-x86/... folders, but should I delete the old compilers? And then run the environment setup again (all this stuff starts to make sense to me ?)
[Android Q&A, Help & Troubleshooting] Sands207:
Yes you should delete the old ones and set up your enviroment again and it should include them. Also yes the compile proccess should pick the correct one in your case as long as you include them and you have, you are heading in the right direction for sure. :good:
[Android Q&A, Help & Troubleshooting] wasowski02:
So I deleted the old ones and I get this error:

ninja: error: 'prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-strip', needed by '/home/karol/android/system/out/target/product/coreprimeltexx/obj/lib/libdl.so', missing and no known rule to make it

I guess it's because somewhere in a configuration file there is an entry for the old compiler. I have deleted the out directory and played with the envsetup.sh file (about line 210 there is something about compilers),

# defined in core/config.mk
targetgccversion=
targetgccversion2=
export TARGET_GCC_VERSION=$targetgccversion

# The gcc toolchain does not exists for windows/cygwin. In this case, do not reference it.
export ANDROID_TOOLCHAIN=
export ANDROID_TOOLCHAIN_2ND_ARCH=
local ARCH=$(get_build_var TARGET_ARCH)
case $ARCH in
x86) toolchaindir=x86/x86_64-linux-android-$targetgccversion/bin
;;
x86_64) toolchaindir=x86/x86_64-linux-android-$targetgccversion/bin
;;
arm) toolchaindir=arm/arm-linux-androideabi-$targetgccversion/bin
;;
arm64) toolchaindir=aarch64/aarch64-linux-android-$targetgccversion/bin;
toolchaindir2=arm/arm-linux-androideabi-$targetgccversion2/bin
;;
mips|mips64) toolchaindir=mips/mips64el-linux-android-$targetgccversion/bin
;;
*)
echo "Can't find toolchain for unknown architecture: $ARCH"
toolchaindir=xxxxxxxxx
;;
esac

but this did not work either. The ninja files don't contain any gcc configuration. So where can I find the right configuration file? (I can't find the suggested configuration.rc file)
[Android Q&A, Help & Troubleshooting] Sands207:
I usually compile using clang or maven as I only build AOSP atm https://ninja-build.org/manual.html this page includes directions that should assist you. Do you have maven or clang installed on your linux box?
[Android Q&A, Help & Troubleshooting] wasowski02:
So it seems that nor klang nor maven is installed on my machine (but as my computer claims ninja is not installed either I guess that they may be installed somewhere in the build directories). Should I try them instead of ninja?
[Android Q&A, Help & Troubleshooting] Sands207:
yes absolutely
[Android Q&A, Help & Troubleshooting] wasowski02:
So what I understand is:

(1) Install maven or clang (let's say clang because I found it in the official ubuntu repository)

(2) Configure brunch to use clang instead of ninja

So I checked the internet if there are any options I can use with brunch to run clang, but I didn't find any. Also looked through the envsetup.sh file, but there is nothing there, or I missed it.
[Android Q&A, Help & Troubleshooting] Sands207:
tonight i will try doing some digging to see if i can help you. im away from my computer right now but ill do what i can. i would try would maven. clang assists with aosp primarily but maven should work for you as far as using a custom command to run maven, log out or reboot after you install it and run brunch as you normally would also please read this https://clang.llvm.org/comparison.html
[Android Q&A, Help & Troubleshooting] Sands207:
For what its worth too i use this guide and a few others when i start making a mess of things but i use Ubuntu 14.04 ONLY https://xdaforums.com/chef-central/...evelopment-t2814763/post54118614#post54118614 because you are not building aosp there may be build scripts on xda that can automate this process and make things go smoother but Scribt is a very helpful tool to do that and more i am setting up my next build environment with a fresh install to build for build cm for an older Samsung i have to see if i can help and i apologize i had forgotten it until now that has a very helpful process especially for cm omni etc https://xdaforums.com/chef-central/android/guide-tool-projekt-scribt-v1-33-t3503018 hope this helps my friend ?
[Android Q&A, Help & Troubleshooting] wasowski02:
So what I did was I tried to give the last chance to ninja. As the error was something like "compiler not found" i tried to trick the system and change the file names from gnueabi-* (the new compiler) to androideabi-* (the old one). And that pretty much worked but now I have this problem:

FAILED: /bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -o/home/karol/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp system/tools/aidl/aidl_language_l.ll"
flex-2.5.39: fatal internal error, exec of /usr/bin/m4 failed

May it be connected to that I'm using a 64-bit version of ubuntu? All the tutorials say that I should use 64-bit for Android Nougat, but it seems that my host is somehow recognized as "linux-x86" (or am I wrong?)

Or am I just missing m4 and I should install it?

EDIT: So i've fixed this error installing m4 and it has changed into another one (yay!):

FAILED: /bin/bash -c "prebuilts/misc/linux-x86/bison/bison -d --defines=/home/karol/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_y.h -o /home/karol/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_y.cpp system/tools/aidl/aidl_language_y.yy"
/bin/bash: prebuilts/misc/linux-x86/bison/bison: No such file or directory

I tried to reset the environment but it did not work. I guess it is a problem connected with croot or the envsetup.sh file but I could not find anything there while searching for "croot" "bison" "host". I've also checked if the bison file is in the bison folder and it is, so it's not this case.
[Android Q&A, Help & Troubleshooting] wasowski02:
Sorry I missed your message :D I will try them both and see what happens
[Android Q&A, Help & Troubleshooting] ramiabouzahra:
I use 16.04 for compiling for my device (ks01ltexx aka i9506) and it works fine on my crappy dual core amd laptop with 8 gigs of ram, I just have to tell jack the compiler to use 4 gigs otherwise it will run out of memory. Also, can you try "breakfast <codename>" and once that is finished run "make -j<thread amount> bacon".
[Android Q&A, Help & Troubleshooting] ramiabouzahra:
Post the thing in a paste bin if you want to post the whole thing
[Android Q&A, Help & Troubleshooting] wasowski02:
Here is it:

https://pastebin.com/0DkFieD5

I noticed one thing. The first time when I compiled it went to 34%. The when I repeated it it went to 3% (like 3% of the rest, because I did not delete the out directory), and now it jumped to 25% (of the rest of the rest :D). It sounds wired to me :confused:
[Android Q&A, Help & Troubleshooting] ramiabouzahra:
What does it say right before the FAILED thing?
[Android Q&A, Help & Troubleshooting] wasowski02:
Right before it says:

[ 25% 5432/21210] Building with Jack: /home/karol/android/system/out/target/common/obj/APPS/KeyChain_intermediates/with-local/classes.dex

And scrolling up there are some warnings saying:

Warning: AndroidManifest.xml already defines versionCode (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.
[Android Q&A, Help & Troubleshooting] ramiabouzahra:
I noticed that you are using your own vendor files (from the extract-files.sh). I found you a new roomservice.xml (stored in .repo/local_manifests) that I want you to try out. Just put this in your local_manifests folder, repo sync, . build/envsetup.sh, lunch lineage_coreprimeltexx-userdebug, make clean (really important to make clean!), make bacon.

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<!-- Device repos -->
<!-- Samsung msm8916 -->
<project path="device/samsung/msm8916-common" name="MSM8916-Samsung/android_device_samsung_msm8916-common" revision="cm-14.1" />

<!-- coreprimeltexx -->
<project path="device/samsung/coreprimeltexx" name="MSM8916-Samsung/android_device_samsung_coreprimeltexx" revision="cm-14.1" />

<!-- Kernels -->
<project path="kernel/samsung/msm8916" name="MSM8916-Samsung/android_kernel_samsung_msm8916" revision="cm-14.1" />

<!-- Common device repos -->
<project path="device/samsung/qcom-common" name="LineageOS/android_device_samsung_qcom-common" revision="cm-14.1" />
<project path="device/qcom/common" name="LineageOS/android_device_qcom_common" revision="cm-14.1" />

<!-- Hardware
<project path="hardware/qcom/fm" name="CyanogenMod/android_hardware_qcom_fm" revision="cm-13.0" />-->
<project path="hardware/samsung" name="LineageOS/android_hardware_samsung" revision="cm-14.1" />

<!-- Packages -->
<project path="packages/resources/devicesettings" name="LineageOS/android_packages_resources_devicesettings" revision="cm-14.1" />

<!-- Vendor -->
<project path="vendor/samsung/coreprimeltexx" name="MSM8916-Samsung/android_vendor_samsung_coreprimeltexx" revision="cm-14.1" />

<!-- Other -->
<project path="external/sony/boringssl-compat" name="LineageOS/android_external_sony_boringssl-compat" revision="cm-14.1" />
<project path="external/stlport" name="LineageOS/android_external_stlport" revision="cm-14.1" />
</manifest>

Good luck!
[Android Q&A, Help & Troubleshooting] wasowski02:
Tried with no luck :/ I had my own repo configured, but now I use your though it looks much better than mine [emoji14] I get this error:

javac: file not found: /home/karol/android/system/out/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates/src/cyanogenmod/platform/Manifest.java
Usage: javac
use -help for a list of possible options

I don't really have any idea why it happend.

karol@building:~/android/system$ java -version
openjdk version "1.8.0_45-internal"
OpenJDK Runtime Environment (build 1.8.0_45-internal-b14)
OpenJDK 64-Bit Server VM (build 25.45-b02, mixed mode)
karol@building:~/android/system$ javac -version
javac 1.8.0_45-internal
karol@building:~/android/system$

Edit: I've found that it's a common problem when compiling using single thread make. So I ran make -j4 bacon and it went through the point where it crashed last time. Let me see for how long will it continue...
[Android Q&A, Help & Troubleshooting] ramiabouzahra:
Keep me posted :)
[Android Q&A, Help & Troubleshooting] wasowski02:
Ehhhh... another error. So here is the whole output: https://pastebin.com/uqjN1Nah

What I think the problem are lines 830-1012, but I'm not a master :D
[Android Q&A, Help & Troubleshooting] wasowski02:
So I found this: https://android.stackexchange.com/questions/51651/which-android-runs-which-linux-kernel. I checked that the stock kernel for my device is 3.10.49-something-here-probably-doesn't-matter. Is the kernel version a problem? Should I compile the never 4.4.1 for my Samsung Galaxy Core Prime LTE?

P.S.: As Android Lollipop+TouchWiz is my stock ROM I'm about to try if compiling the default Lollipop (just the fresh one from Google) will run.
[Android Q&A, Help & Troubleshooting] wasowski02:
Another update. So [MENTION=6085001]Sands207[/MENTION] suggested earlier to disable jack and ninja. I forgot about it and did it last week (shame on me) and it solved most of the problems. Ninja related problems at least. When I disable jack I get an error like "No known rule to make object (or target, I don't remember) [path to .jack or .dex file]". So how to tell the program to use let's say this compiler as it was suggested earlier: https://xdaforums.com/android/development/toolchains-gnu-linaro-5th-2017-t3606941 ?
[Android Q&A, Help & Troubleshooting] hackintosh5:
Ever get this working?
[Moto G4 Plus Questions & Answers] itslels:
Long story short, bought an Athene the other day, off of eBay, which is basically open box new. The sim card reader simply does not work. I have used multiple sims, that work fine in other phones, from multiple carries, nothing has worked. I tried using a sim adapter at first.. which I guess could of caused damage to the sim slot. Which, is weak, because I didn't do really any forceful pushing. I unlocked the bootloader to tinker with it before I got any sims to try.

Assuming This dude isn't going to refund me on eBay, here is the question. If I pay the 75$ fee to Motorola, to fix physical damage to the sim slot, will they still do it, even though it has an unlocked bootloader? It states they will fix physical damage out of warranty and that as long as it is as you describe and not more and worse, they will fix it. But nothing about unlocked bootloader effecting this. So....? Any help would be great! I just really want to use this phone...as a freaking phone!
[Moto G4 Plus Questions & Answers] DgnrtnX:
Yes they will definitely do it. Unlocked bootloader avoids warranty cuz they want money. also physical damage dont count in wattery unless it has stopped working by itself. They will fix it if u pay thts for sure
[Moto G4 Plus Questions & Answers] itslels:
Thanks for the reply. That's what I was figuring, but wanted others thoughts. I will try live chat with motrola and try to get it sent in. My only last worry is if they decide it'd be easier to just replace the phone than fix the sim...would they not because I only paid 75$, or would they make me pay more. Guess we will see. 75$ more is better being out 200 I guess..... !@#$ :mad:
[Galaxy Tab 2 Q&A, Help & Troubleshooting] AEnterprise:
i'm pretty new to flashing roms so sorry if this is a stupid question but i couldn't find the answers somewhere else

I'm trying to install blissmallow (unless someone sais another would be better, i don't know much about 3/4 different roms i found for it) on my P5110 tablet, it worked but i had no sound. In that thread i found that you need to first have the stock rom flashed on it and tehn blissmallow for it to work.

I found this thread (https://xdaforums.com/showthread.php?t=1704668) with stock roms but there are alot of listings and versions for the P5110, is there a specific one i need or can i use any version for this to work? Some also have a kernel download link, what is that for? does that also need flashing (and if so before/after)?

When flashing with stock can i flash this from TWRP one after the other (stock rom, blissmallow and gapps in one go)?

any help would be much apreceated
[Galaxy Tab 2 Q&A, Help & Troubleshooting] Lightracer:
Why flash outdated roms when you can find newer roms in he unified section? You can find LOS 13, Slim 6, Resurrection Remix, and more roms which have updated security patches. Roms in the unified section are both compatible with the 7 inch and 10 inch models

To flash stock, you need odin, and your rom. Youcan find them on updato or sammobile. Select your region and flash that to your tab

P.S. most roms dont need you to flash stock first. You just need to wipe system, data, cache, and dalvik then flash the zip along wih your gapps.
[Galaxy Tab 2 Q&A, Help & Troubleshooting] AEnterprise:
thanks for the info, i tried blissrom because it seemed good, i'm pretty new to it and didn't realize it is outdated. Thanks for pointing that out, i'll take a look at the others you mentioned :)
[Galaxy Tab 2 Q&A, Help & Troubleshooting] smart-t78:
no need to flash a stock rom, because you are on stock. stock rom means the original samsung firmware.
[LeEco Le Pro3 Questions & Answers] L0laapk3:
So, I recently bought my own lepro3 4/64gb in force gold from grossoshop.net.

I returned it for faulty because I thought the back side of the phone looked extremely pink (rose gold..)

I posted a thread on reddit explaining my situation and my experience with the grossoshop aftersales.

But now people are calling me out saying that the phone is infact the correct color, so I'm starting to doubt myself.

It is mostly the difference in color between front side and back side that shocked me, I'm not saying this is the perfect rose gold or anything, just that something mustve gone wrong in the manufacturing process

images: http://imgur.com/gallery/8yWCb (These aren't the best quality of images, apologies for that, I had to take them with my old phone)

A video of me flipping over the phone: https://youtu.be/tCXoUu-KZAY

I was hoping that other force gold le pro 3 owners can tell me if this is normal or not.

Kris
[LeEco Le Pro3 Questions & Answers] versa-desire:
From the picture you post, the back is really rose gold color, since I have broken my front Mon once before, and order a rose gold color lcd from China, that is exactly the color of the phone 's back you posted!
[LeEco Le Pro3 Questions & Answers] slgooding:
Interesting. Does it look the same in sunlight when you don't have any red around you? It is very reflective like chrome and if you have red on, or around you it can look very rose gold.

I have had 3 replacements of this phone. I noticed the first 2 phones looked rose gold.

However, now looking at my latest it looks more gray than gold depending on the lighting. I have no clue anymore. The lighting has a huge impact on the color...
[LeEco Le Pro3 Questions & Answers] Moon75:
It has both force gold and rose gold colours. I have force gold, its not pink at all.
[LeEco Le Pro3 Questions & Answers] Tan KX:
I'm using the gold version and it looks rose gold under certain lighting
[Huawei P9 Lite Questions & Answers] malak1992:
please how to enable otg in my phone huawei p9lite android N Vnc l31 i have root please any solution
[Huawei P9 Lite Questions & Answers] arafman:
You have to wait for huawei , if they release nougat kernel source than developer can make it otg work.
[Huawei P9 Lite Questions & Answers] Warren_Orange:
Are there any guides to enable OTG in MM?
[Huawei P9 Lite Questions & Answers] TheOneWhoSpeaks:
OTG can be enabled. But Huawei must activate it
[Huawei P9 Lite Questions & Answers] Warren_Orange:
But I thought a custom kernel could do it?
[Huawei P9 Lite Questions & Answers] malak1992:
how can i do ?
[Huawei P9 Lite Questions & Answers] Warren_Orange:
I'm looking into it myself but for the moment it only works on Android 6.
[8525, TyTN, MDA Vario II, JasJam ROM Development] ViktorX:
HI

I have one little problem with microSD card! When I copy some files on card with ActiveSinc or with mobile, speed is 35 Kb/s!!! When I copy the same file with card reader speed is 3-5 Mb/s!!! Is this a problem with my Hermes (AT&T 8525) or with ROM (Shap's 3.60, 4.0, ..., 4.30)? Maybe SDHC driver is problem or something else? Anyone tried some other ROMs?
[8525, TyTN, MDA Vario II, JasJam ROM Development] cirial:
Are you using vista? I experience the same thing, but only under vista :(