yashsingh1/xdaforums huggingface dataset:
[Android] PGHammer:
Consider CM 12.1 (not 12) if running Lollipop

The issue with 16.04 is the same one that 16.10 has - the obsolescence of OpenJDK 7 with both versions. Use the same PPA to correct for it (so you can use OpenJDK 7). I also wound up dropping down to CM 12.1 due to OTHER issues (specifically, my Lenovo A7-30F, like the A7-10F that is getting the ROM love these past few weeks) is based on Lollipop V.2 (CyanogenMod equivalent is 12.1) as opposed to 13 (Marshmallow). While I COULD use original Lollipop (CM 12), I only dropped back to 12.1 so I could build a ROM later and have it still be an upgrade.

So here's my synopsis (applies to all Ubuntu 16.xx series) - apply the OpenJDK PPA to your repos so you can stick to OpenJDK 7. If you are making a recovery for Lollipop, base it on CM 12.1 (not necessarily 12) - this is especially true for Lenovo-based A7-series tablets (not only are these MTK-based, but they are still using older JellyBean-based kernels - not KK-based kernels; so far, I haven't seen even a custom ROM with a LP-based kernel yet; this includes ROMs based on either CM or Omni-based sources, which do exist for the Lenovo A7-10F).
[Android] rachanta:
Ubuntu 16.10

[MENTION=2645562]sylentprofet[/MENTION]

Thanks for this precise guide.

It works well for building on Ubuntu 16.10 as well. I also used the built-in openjdk-9 with no issues. I am still testing my kernel build with the combo I have mentioned, but everything looks good.

Thanks again :D:good::good:
[Android] arvati:
Noob question: there is any difference on using OpenJDK or Oracle one? I ve seen some posts that recommends Oracle jdk instead of OpenJDK and I am wondering if is there any reason for that.
[Android] jdegreef:
https://www.google.be/search?client...&oe=utf-8&gfe_rd=cr&ei=b1Z2WLXoN67H8AeJoZOIDw
[Android] Assis Brandão:
I am problem:

FAILED: /bin/bash /home/assis/android/system/out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/with-local/classes.dex.rsp

Communication error with Jack server (56). Try 'jack-diagnose'

ninja: build stopped: subcommand failed.

build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed

make: *** [ninja_wrapper] Error 1

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

#### make failed to build some targets (01:45:39 (hh:mm:ss)) ####

Device: Oneplus (bacon)

Android (7.1.1) - LineageOS

Problem compiler jack
[Android] jdegreef:
This is off topic here.

How much ram do you have ?

LineageOS 7.x compilation need a lot of it (>8Gb)

Here's what you can try :

export JACK_SERVER_VM_ARGUMENTS=-Xmx4g

replace 4g by the ram amount you have

in ~/.jack-server/config.properties put jack.server.max-service=1

Retry to compile
[Android] Assis Brandão:
I have 3GB and HDD running Ubuntu 16.04 via USB and I used the command below:

$ export ANDROID_JACK_VM_ARGS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4G"

fonte: http://wiki.lineageos.org/bacon_build.html
[Android] jdegreef:
[MENTION=4849741]Assis Brandão[/MENTION]

Well with this kind of hardware I which you good luck.

With an i7 8Gb ram and an internal HD with 200Gb free I have a lot of problems to finish a build.

With 3Gb ram don't use -Xmx4G. It gives Jack the memory available for him. In your case use -Xmx3G or or preferably less. With 8Gb ram I use Xmx4G.

BTW, when a build crashes you can restart it without cleaning first. It will go on from where it stopped. In my case it took sometimes up to 5 restart to finish.
[Android] Assis Brandão:
Suggest replacing the compiler jack with java?
[Android] jdegreef:
What do you mean ? Jack is the toolchain used to compile Android roms

https://source.android.com/source/jack.html

Up to you to modify the build tree to use another toolchain.

Or buy a proper hardware to compile Android 7.x and over : i7, 16 Gb ram or more, a fast internal HD or SSD drive with lot of space.

I know, it's expensive but the code is free :D
[Android] DKnightX91:
Can someone tell me how to beat this?

[ 26% 12800/47935] Building with Jack: /home/dknightx91/android/Test1/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex

FAILED: /bin/bash /home/dknightx91/android/Test1/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex.rsp

Out of memory error (version 1.2-rc4 'Carnac' (298900 f95d7bdecfceb327f9d201a1348397ed8a843843 by android-jack-team@google.com)).

GC overhead limit exceeded.

Try increasing heap size with java option '-Xmx<size>'.

Warning: This may have produced partial or corrupted output.

[ 26% 12800/47935] Building with Jack: /home/dknightx91/android/Test1/out/target/common/obj/JAVA_LIBRARIES/libprotobuf-java-micro_intermediates/classes.jack

ninja: build stopped: subcommand failed.

build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed

make: *** [ninja_wrapper] Error 1

make: Leaving directory '/home/dknightx91/android/Test1'

That file, no mater what I try I get beat by it every time I compile. Any tips on why or how to get around it?
[Android] neonkat:
buy more ram or add swap memory.if you have 8 gb ram,use like 45 swappiness with 6-8 gb swap memory.

or else don't build with ninja,there are some scripts availale(****jack!,yeah,its f.u.c.k).
[Android] DKnightX91:
Thanks but I finally got it to work by doing this:

export ANDROID_JACK_VM_ARGS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx=6g"

export JACK_SERVER_VM_ARGUMENTS="-Xmx6g -Dfile.encoding=UTF-8 -XX:+TieredCompilation"

prebuilts/sdk/tools/jack-admin kill-server

prebuilts/sdk/tools/jack-admin start-server
[Android] jdegreef:
That's what I would have suggested if I had seen your post earlier.

Here's my setup (Linux Mint 18.1, 64b, i7, 8Gb ram, 120Gb free on hard drive) :

export JACK_SERVER_VM_ARGUMENTS=-Xmx4g

.jack-server/config.properties : jack.server.max-service=1

export USE_CCACHE=1

ccache -M 40
[Android] zuber1979:
Ubuntu 17.04

Any idea how to make AOSP buildable using Ubuntu 17.04? I cannot make it work using guide for 16.04, I got this error:

error: code kernel does not support PIC mode
[Android] ivankolev:
Try this

https://github.com/Inventor1938/vendor_citrus/commit/0f57778c13c50760b4c2c319080289edcb8eb663
[Android] toxinburn:
Can anyone tell me this I know the was showing how to compile cyanogen but I was curious as it has been quite awhile since i compiled any roms, I was looking at the google site for instruction and noticed that it says their is a different method something about android studio for compiling aosp are the commands to actually start building different than they were with lollipop? I would have already tried to move forward but been working on a pain in the butt bug with all forms of ubuntu where my mouse loses focus on new windows so far I can only fix it by right clicking on the previous windows etc to get focus back arch linux seemed fine with the mouse thing but ubuntu not so much....anyhow I am rambling the guide is helpful somewhat but I am trying to find a full guide start to finish anyone know a good tut that is recent and referring to the latest builds of android 7.1 at a minimum? Thanks alot and if you by chance know about the mouse prob pm me would love to not have the prob no google search has provided fruitful for fixing that.
[Android] PraneethMv:
I'm sorry to bring up this topic again after long time. Even by using all the commands mentioned about jack server (XmX4g) I still get that error. No matter what. my ccache is set to 50G. I have AMD A8 with 6GB ram. Is there any other way to make it work? ( Without buying a RAM though. :p )
[Android] neonkat:
give https://github.com/mikecriggs/****jack a try.also add swap memory,like 6-8 gb.
[Android] PraneethMv:
Thanks for replying. The link returned 404 :( . And how do we swap memory? I'm pretty much new to Development.
[Android] neonkat:
that' "f.u.c.k" jack.you can google to get it.

check https://support.rackspace.com/how-to/create-a-linux-swap-file/.this can help,keep swappiness 60(default) as you are low on ram.
[Android] PraneethMv:
Thanks! Just one doubt. How much swap space should i create so that build runs smoothly?
[Android] srgunukula:
Hi,

Just wondering building CM13 is only possible on OpenJDK ?

I have Oracle JDK8. Cann't I build Cyanogen projects over it ?
[Android] neonkat:
i will suggest 8 or 10gb.
[Android] DodoGTA:
You can
[Android] PraneethMv:
Hey, i installed the f.u.c.k jack script and added a swap space of 10gb. But even then my build fails due to running out of space... :(
[Android] fhem:
try this

export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4g"
./prebuilts/sdk/tools/jack-admin kill-server
./prebuilts/sdk/tools/jack-admin start-server
source build/envsetup.sh
etc...........
[Android] PraneethMv:
Thanks. I already specified that export... with -XmX8G. Still it says it runs out of memory.
[Android] desalesouche:
try doing first: build/envsetup.sh

then follow advice told but with "Xmx4g" instead 8.

it worked for me
[Android] PraneethMv:
I'm sorry. I tried every possible way. :( Using all Xmx combinations. There's another git module naming f.u.c.kjackatall which is a build tool by itself. It helped in finishing the build, but zip was broken, didnt build properly. :(
[Android] santor:
Thanks for the guide, it helped me a lot. A question. What version of Java do I need for nougat ROM compiling?
[Android] PraneethMv:
Open-jdk 8 or higher
[Android] Jay_B:
Well thanks to OP I was able to make my first RR ROM for Mi Max. Appreciate the time taken in making the tut.

I have a question hope someone is able to help me.

I want to make a ROM for my Mi Max 2 now. However the kernel source is not yet released by Xiaomi. A lot of guys I spoke to asked me to use prebuild kernel and make the rom. However I have no I idea how to. I have searched google for last 3 days however was not able to find a tut or anything regarding this.Maybe I was not searching correctly.

I would really appreciate if some one can tell me how to make a rom if the kernel sources are not available.

I am aware of how to set the environment and download the source from github the tools required to be downloaded. As I understand we need 3 things viz. 1. Device Tree, 2. Vendor Tree 3. Kernel Tree.

Don't have kernel tree.

Thank you.

Jay
[Android] austinpinto:
hi all.

i have never built a rom before and this is my first time build.

i am using bash for windows and ubuntu 16 from microsoft store.

i have made a script which installs the packages but some packages it cant find.

so can you please correct the script? thanks.

the file originally is a .sh file but i renamed it to txt as xda doesnt support uploading sh files.
[Android] austinpinto:
so i installed all the packages using aptitude.

installed repo from first post of this guide.

when i init the repo i get repo command 1.23 is available upgrade soon.

how do i do that?

and when syncing PixelExperience rom sources using.

repo sync -c -jx --force-sync --no-clone-bundle --no-tags

i get error s repo sync is used when syncing a project.

and python invalid integer what is going wrong?
[Android] dataghost2014:
Thank you

Thank you for the guide
[Android] lehmancurtis:
It's possible to use jdk 8 for 5.1.1.

export EXPERIMENTAL_USE_JAVA8=true

Input code before compiling
[iPAQ rw6828, XDA Atom Software Upgrading] sthoeft:
Since I installed the latest ROM wich is availible at the O2 HP onto my Atom life I am just able to connect to the internet via a few Programs (IE, Opera Mobile, Messaging and Fring) but all other Progs (the new Java Software, Worldmate, Skype) do not connect and say that there is no internet connection availible (but I can browse the Web via Opera).

Has anyone an Idea how to solve this problem or had the same thing? Please help, I'm getting desperate!!!

I am using the WM6 B2 ROM, the latest issue.
[Moto G Q&A, Help & Troubleshooting] linkshido:
Hi guys! I'm new in this forum (at least new on posting). I had an issue with a device and I think maybe you can help me.

My girlfriend's device (Moto G XT1040) was working really laggy and slow after updating to 5.1, so I decided to do a factory reset. Before that, I made a backup of all the photos and contacts on the cloud, so I can recover them later. I've made the reset, started the device fresh, set up the Google Account, but none of the contacts and photos were there, not even the apps she bought on Google Play (in fact, there wasn't any downloaded app related to the account).

The thing is that I can't remember which account was set BEFORE the reset, but considering that my gf has only one G. Account (for real, she doesn't even use Gmail, she uses Outlook), is kind of strange that it isn't the same account she used previously. And as far as I know, there's no way to backup photos on "Photos" app witouth a Google Account, right? So those images went somewhere when I did the backup...

First, is there any way to find which Account was set up in the device before the reset? (I tried looking at the browser history, youtube history, even location log, but nothing comes up). Second, if the account was the same, what happened?

Thanks in advance for your help, and sorry for my rusty english! ;)
[Moto G Q&A, Help & Troubleshooting] heintjeput:
Would it be possible you set her phone up on your account? You can check https://security.google.com/settings/security/activity?pli=1 on you google and her account and see whether the device pops up. Searching in the other direction, I would know.
[Moto G Q&A, Help & Troubleshooting] linkshido:
Yep. She had another account that even she didn't knew... Sorry to waste your time guys. And thanks a lot for your help!
[Upgrading, Modifying and Unlocking] Piramix:
This Trebuchet launcher that came with Cyangenmod it has a glitch where on the bottom right corner of the screen on the dock an icon disappears.

Like so

i.imgbox.com/WBQcFR5t.png

I have tweaked the launcher in settings and it has not fixed this, everytime i put a icon in that spot it disappears after a few minutes, how do i fix this?

Device: Samsung Galaxy Tab SC-01C / P1000 Android Jellybean Rooted by Vio
[Verizon Samsung Galaxy S6 Edge+] LaosPerson:
Just like the title says. My phone doesn't load the Google play store, YouTube, or maps. Everything else, all apps work fine. I did all the cache/data reset methods etc even went as far as factory reset, no avail.

The main issue is it only doesn't work on my home wifi, when connected to other people's wifi and mobile data, it works just fine to load.

To get it to work on my house wifi I have to take out the sim card and then it starts to work just fine and loads quickly without problems. The Google apps work on other Android devices on the same wifi flawlessly as well, so I'm pinning it down as a sim card issue, but how can that be? Maybe I should try to replace the sim card but I'm not sure. (Would have to have a talk with my mom as well to get it replaced due to me just being 15)

Suggestions would be appreciated.
[Verizon Samsung Galaxy S6 Edge+] phiftyopz:
That's weird... I don't know why a SIM card would do that... You've tried a factory reset and that didn't work... You might want to get in a chat with a Samsung representative and look into a replacement phone. Or you could try replacing the SIM card first and see if that works. Do you have an extra SIM card lying around? It doesn't even have to be activated. If you do, try inserting that SIM into your phone and seeing if that fixes the problem. If not, then I would recommend you getting a replacement SIM and/or phone.
[Verizon Samsung Galaxy S6 Edge+] LaosPerson:
It is weird. I think I might try to download the marshmallow ROM in the general thread for Verizon and install it to start a new a new maybe there's a kink within the software itself, and it'll suck to have to get another replacement because this is my replacement lol. Assuming the install isn't too complicated and doesn't harm my phone. I'm fairly capable though since I remember my s3 days on at&t and custom romming that phone.

FYI forgot to mention I think this started happening a few days ago.
[Verizon Samsung Galaxy S6 Edge+] phiftyopz:
Go ahead and try that, though I have been having a few problems myself with the Android 6 ROM (very minor problems, though). If that doesn't work, I would recommend you try to get another replacement.
[Verizon Samsung Galaxy S6 Edge+] LaosPerson:
:victory: sorry for needlessly opening a thread for this, but for some reason, the Google apps now finally work on my house wifi, strange that my phone was the only device that couldn't connect to YouTube or Google play even after a factory reset, while other Android devices worked fine (thank God for Samsung smart switch so nothing was lost in the process)
[Verizon Samsung Galaxy S6 Edge+] phiftyopz:
That's good to hear. One of the problems I'm having with the Android 6 ROM is that the YouTube app will sometimes freeze, but I probably just need to reinstall the app.
[Verizon Samsung Galaxy S6 Edge+] LaosPerson:
Speaking of YouTube freeze I think it happened to me too lol
[Verizon Samsung Galaxy S6 Edge+] phiftyopz:
Ya like I said you probably just need to reinstall the app. I'm at school right now so I can't try that at the moment.
[Galaxy Note 3 Q&A, Help & Troubleshooting] Goldendawn:
Hi,

I have been having a ongoing problem with my Galaxy Note 3 N9005 in where after the 5.0 upgrade (stock over air) it has been restarting pretty much 4-5 times during the day, and a number of times while even just sitting on the desk doing nothing.

Since I am still on contract with my supplier in NZ, I took the phone back to get repaired, in which Samsung sent it back to state "Software corruption, reloaded software".

I didn't believe them, but hoped it was correct - but sure enough the same thing happened. So I once again took it back, where they have once again told me the same thing. It is now the third time I have done this, with Samsung saying the same thing!

Now I am at wits end, and have asked for replacement, but I am being told "It is due to your google account being corrupt, and it is causing software corruption....." *sigh*

So now not only is Samsung just not helping, they are blaming my Google accounts for causing the issue. Which btw - I didn't setup the last time, and still it restarted - but they are ignoring that fact!

Anyway - the advice I want to get is has anyone else had the same issue with the Galaxy Note 3 after upgrading? I know there is no way to rollback 5.0 to old version, but did anyone fix the issue by Root and then adding another ROM (I don't want to root this phone, but to be honest I also can't afford right now to replace so I am looking at options)

Right now I am facing a ongoing battle with Samsung and my provider to replace the phone, but they are fighting it a lot and to be honest I have lost my patience so I am thinking to just drop them, root/flash new Rom, and then go to another provider - and probably never buy Samsung again when I can finally upgrade.

(used to love Samsung products but this behavior I have had is certainly making me think twice before I touch them again)
[Galaxy Note 3 Q&A, Help & Troubleshooting] Rosli59564:
Since they refuse to accept warranty you can try to flash twrp. Then clear everthing(system/caches). Then back to stock with odin. There might be leftover of corrupted files that could cause reboot.

But later they have a better reason not to accept your phone, knox tripped.

And you can actually downgrade to 4.4.2. Just flash firmware of the same csc to be safe.

Sent from my SM-N920C
[Galaxy Note 3 Q&A, Help & Troubleshooting] Munawar Mehmood:
Do you have memory card installed? if so then scan you memory card for possible viruses.
[Galaxy Note 3 Q&A, Help & Troubleshooting] syamsoul:
Actually I have this issue too before.

Even if I left it lying on the table, it can restart by itself.

I tried to update to latest PB1 rom, the update failed, the phone restart while ODIN updating.

So I use Kies recovery and got it working again.

After that, i tried again update to PB1 rom using ODIN. and now no issues at all.

I dont know which one did the trick whether update to PB1 or KIES recovery.
[Galaxy Note 3 Q&A, Help & Troubleshooting] Goldendawn:
Thanks - but no I don't - these are the first things I did when it started happening.

When it started happening I did factory reset, removing memory card, factory reset again, didn't restore backup from google... etc etc - so the general admin tech stuff.

Because under warranty (2 year contract) I didn't want to do anything more so sent to provider to get dealt with (into my 22 months of 24 months). For the last 4 months it has been to them a number of times for the same thing.

Now each time they send it back they claim "software corrupt" and that there is no hardware issue. So doing a software root and mod change for me is a hope - and probably not a good one - that the Stock 5.0 is the problem on this phone. And only going down this road because I am coming out of the warranty and right now I have a phone I can't really use, and damn Samsung won't support it or fix it (which is really all I want them to do!!) sigh
[Galaxy Note 3 Q&A, Help & Troubleshooting] Goldendawn:
Thanks for this information, because in fact you are not the first time I have read this but I am not sure what the Kies recovery is - is there some instructions you have because maybe that is what should try, because I have seen other people on Google state this has helped them with restarting, but that was usually after Mod fix. Maybe there is something in the 5.0 update on GN3 that might cause this?
[Galaxy Note 3 Q&A, Help & Troubleshooting] Goldendawn:
Thanks I didn't think from what I was reading that you could backwards - in fact Samsung have just down right refused, which is all I have asked them to do in the last two times - "Just flash back to the version that was on there last 4.4.2. because that didn't cause any issues!" However, they are stating very firmly that you can not rollback or re-flash back to a previous version.

Is there any instructions which are for the 9005? I have seen for the 900 but the instructions state very clearly you can't use them for 9005.
[Galaxy Note 3 Q&A, Help & Troubleshooting] Rosli59564:
Just flash the firmware with odin. Factory reset in recovery after it's done. That's it. There are a lots of threads about going down such this:

http://xdaforums.com/galaxy-note-3/help/how-to-downgrade-lollipop-to-kitkat-t2990262/page2

I suggest you read through before you go further. They are mixed results. Some successful. Some did not. That is why it is better to flash the same csc firmware.

I even able to downgrade my S6 from 6.01 to 5.1.1 without issue but of course it's different phone.

Sent from my SM-N920C

---------- Post added at 08:38 PM ---------- Previous post was at 08:15 PM ----------

I sent you a PM.

Sent from my SM-N920C
[Galaxy S 5 Q&A, Help & Troubleshooting] ShinnKQ:
Hi guys,

I have a very special problem as shown in the screenshots. The phone has been sent for repairs (they said digitizer had issues - so they replaced the whole LCD Including the controller) however the problem persists.

Anyone here can give your thoughts on this?

This scrolling also occurs in Download and Fastboot Mode.

thank you :)