yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab S Android Development] :
I've found a bad error. In my unedited first version this reads:

repo manages git and does only starts itself, if it finds a newer version of itself: then repo will download the new repo and execs the new repo python code.

Sorry for this small but idiotic, confusing error.
[Galaxy Tab S Android Development] lionheartk:
Today's build is live!

As always, all commits from CM12 and Nvertigo since the Sex build are in. Dirty flashed and working here!

cm-12-20150317-UNOFFICIAL-lionheartk-chagallwifi.zip 238.3 MB

cm-12-20150317-UNOFFICIAL-lionheartk-chagallwifi.zip.md5sum 142 B

Enjoy!
[Galaxy Tab S Android Development] Eliminater74:
[MENTION=4405529]nvertigo67[/MENTION] , Could you take a look at this makelog and tell me what that error reads. Sorry but im having a bit of trouble understanding it. and google search didnt help much.

It was only a test build anyhow. but I would like to know what the problem is, so I can work on fixing it for future test builds...

Thank you.
[Galaxy Tab S Android Development] :
First I would not use ccache (compiler cache is just one more thing to fail). -Werror means to treat all warnings as error. The warnings are about mismatching declaration. You have to fix that in kernel code, or disable this warning, or use a other toolchain.

Before you ask: No, I will not fix my kernel code for any other toolchain but the google prebuilt toolchain.
[Galaxy Tab S Android Development] Eliminater74:
No I wouldnt ask you to do that. I was only wondering.. you answered the question. thats all I wanted to know. your kernel code compiles just fine with the google prebuilt toolchain. I was only testing something out.

Thank you.
[Galaxy Tab S Android Development] :
What just comes to my mind: Search for some android kernel that is known to compile with linaro/sm/whatever 4.9 toolchain. There look through the commit messages, if you find something rlating to gcc-4.9 or linaro or sm. Look at the diffs - propably (even if not for exynos) you will find something about explicit casting or changing definitions or changing the way static variables are used... When you have found something, you can train using "git format-patch" and "git am"...

BTW: in my personal oppinion all the linaro hype is 99.5 % placebo. The times where it made a hugh difference between gcc and linaro optimized gcc are 2 or 3 years ago: quite some of the linaro ideas was commited to standard gcc meanwhile. I don't know for sabermod, but I doubt you get a performance benefit of more then 1%. Of course people will tell you, rom is MUCH smoother, as soon as you mention linaro or sabermod. And human imagination is the most potent performance booster I know of... ;) On the other hand linaro and sabermod are great toolchains, and getting kernel source to compile with a higher versioned gcc is great for getting used to c.
[Galaxy Tab S Android Development] Eliminater74:
Thank you for that advise. I will do that.. but Im going to stick with the google prebuilt toolchain till I can get more of a handle on all the learning of it. I will test for my self from time 2 time. but Wont post any build of it unless I post it under Other builds labeled testing only. Like you said, the only way to learn is do it my self. I have always hated asking people to do things for me. I rather learn how to do it so I can do it my self.

I have always been that kinda person that is I cant find what I want. I will build it my self. No matter how much reading or asking questions or searching and so forth that I have to do. Sooner or later I will build it.. :)

I started to program on a Commodore 64 back in 1982. Basic though. but my first programing lang was assembly since thats pretty much all the c64 used. I still think assembly is easier then C.. but only because I learned assembly many years ago. C is something im still learning.......
[Galaxy Tab S Android Development] :
Thats cool. Assambly was and is too low level for me. I started with sh and c. I started with an 286. As soon as I got a 386 I started with linux (0.9.x) - 26 years ago... My 386 had 8MB of ram and linux was using it (win3.11 for workgroups only utilizes 4MB if I remember correct) I'm growing old...

Back to todays business:

I messed againnwithmsepolicy the last two days, and fixed init.d support in a nicer ways then before: no need for [MENTION=631273]Chainfire[/MENTION]s SuperSU any longer. I one builds from current-12.0 branch init.d (and therefor 01moduleload and 10 systemtuning) will work out of the box as it should. An other good news: Titanium is working with buildin superuser.

I was to late to get it in the tuesday build. I will do the Friday build and adjust the OP accordingly.
[Galaxy Tab S Android Development] Zootopia:
You may think opposite ways, but believe me when I tell you this kinky geeky talk about memories of the past technology is of the atmost interesting.... I could read you guys for quite some more time you know?.... ?

After all, I mustn't be that much younger than you devs. ☺

NVertigo, glad we can still count on your dedication and perfectionism towards the Tab S. It's a real privilege.

Loving more and more, each day that goes by this tidy, neat and very respectfull corner of the XDA.
[Galaxy Tab S Android Development] Eliminater74:
[MENTION=4405529]nvertigo67[/MENTION] , umm. I need your expertise again.. After a long very long time compiling. I got this error at pretty much the end. Which is to be expected:

here is the make.log. please take a look.. And yell at me for asking to much :)

Im going to reboot that system.. I havent rebooted it in a long time and its moving too slow right now.. When the system upgrades, sometimes it asks me for reboot for changes to take place.. and if I ignore it like I always do.

my System starts to slow down.. which is strange for linux..

Man I hate to be an annoyance to you. You just dont know how much I appreciate your help..
[Galaxy Tab S Android Development] :
Thanx. When thinking of some threads in s3 or OPO forum I know what you mean. Propably it's just a matter of numbers: the less users around, the less trolls around. But even if I can't prove, I like to think tab s users and devs (*) are just have better manners, a more constructive state of mind and a better understanding.... Yeah, the longer I think, the more I opt for the latter... ;)

I know, I'm some times quite off-topic, but -,hey - this is a development forum, so why not discuss some more general development topics or help for an other rom, as long as we still honor the real user questions/issues?

EDIT: forgot the footnote:

(*)I had to thank the devs in this forum! Without [MENTION=4193974]Barracuda77777[/MENTION], [MENTION=3511708]UpInTheAir[/MENTION] and [MENTION=2346758]eousphoros[/MENTION] (to name the most important but surely not all) helping and teaching me, this rom and therefor this thread would not exist!!! Thank you!
[Galaxy Tab S Android Development] :
First for the make.log: Its an error in some java lib. In ProfileSettings mAdapter.refreshProfiles is used, but it's not in - I had to guess here - frameworks/base. Sadly I can't find a gerrit or review for resurrection remix. So it's difficult to tell which commit break this. Just wait, do a new repo sync and build without making clean. Repeat 'till it runs to the end without errors. Then (without a new sync) make clean and do a complete build.

Linux corner:

Updating a userspace program is no problem at all and does not tequire a reboot. Updating the kernel - of course - requires a reboot to runmthe new kernel. Between those two everything is possible:

You need to understand the following about linux (or in this case: unix) os: if the kernel gives a process a file handle, this file handle stays valid until the proces closes this handle. If the file gets overwritten meanwhile the kernel ensures that the original filehandle still points to the old data. Any newly requested filehandles will point to the new data, but the original one will still have access to the original files data. That's great for running processes - if you know of it. What you also need to consider: not only data files (config files i.e.) are accesed this way, but also shared libs (files ending on so - shared object files - like dll on win) and executables. Running executables are - very simplified spoken - file handles from the kernel for the kernel.

Updating a running daemon requires a restart of the daemon.

Updating config files needs a restart of running processes, that use thismconfiguration.

Updating libs require a restart of all running programms, that depend on that libs.

Updating glibc (the gnu bersion of libc of the system: if the kernel is the heart of the system, libc is the aorta) requires a restart of all running processes that use libc in their dependencies tree. init is statically linked, but - again simplified and generalized - every other process depends directly or indirectly on libc. So: reboot.

Updating the rc/initing system (systemd or openrc i.e.) does not require a reboot (your services are already runjing), but I reboot anyway to ensure the updated rc-system is working.

The above list is a list of examples and far from beeing complete.

The gentoo distro leaves that all to the user - other distris recommend sometimes a reboot. As long as you don't know every single process and its dependencies of your system, I would belive the distro devs...

For a slowing down system: use top in a shell. You can sort by cpu-time (default), resident memory, shared mem and much more. So you can easily point out amoking processes, memory consuming processes and much more. You can also see your actual memory usage.

One private question: is Clearwater near a wormhole with stretched time, in a timezone without night hours or are you just refusing to sleep? The latter is not good for developing... ;)
[Galaxy Tab S Android Development] Eliminater74:
Hahah. I went to sleep at 1am. I have always been a night owl.. heack my brother inlaw gets only 2 hours and then works his butt off all day as a tree climber (tree services).

I fixed the Error that I was having.. pretty much doing what you said above.

Linux wise, I think I just may need to disable CrashPlan, it uses alot of resources.. Could be the problem.

Thanks.
[Galaxy Tab S Android Development] :
'Cause no one is testing and reporting, but for me it's working I will put this change in the next build.
[Galaxy Tab S Android Development] reubenskelly1992:
Will this work on blisspop ROM ? Want to test

---------- Post added at 06:58 PM ---------- Previous post was at 06:55 PM ----------

Keep saying download failed:(
[Galaxy Tab S Android Development] :
Dont know,if working on bliss - but I belibe you get it with next bliss update.

Download: have put it on xda - not any other server.
[Galaxy Tab S Android Development] lionheartk:
Mirror:

chagallwifi-20150318.zip 4.9 MB
[Galaxy Tab S Android Development] Bushcrafter:
[MENTION=3456089]nvertigo[/MENTION] I will download it and test it out and see what happens.:D I really hope it increases battery life:good:
[Galaxy Tab S Android Development] :
That one was about wifi channels - no need to download, no relation to battery life...
[Galaxy Tab S Android Development] Zootopia:
Just flashed... Testing.

Today I won't be around my Tab S that much... Tomorrow is feedback day. ;)

Thanks!
[Galaxy Tab S Android Development] Bushcrafter:
So what does the statement above relate too? Please test for stability, performance and battery life. If no one is complaining I will include this kernel changes in next build.:confused:
[Galaxy Tab S Android Development] reubenskelly1992:
Using on resurrection remix. Seems great:)
[Galaxy Tab S Android Development] :
You answerd http://xdaforums.com/showpost.php?p=59529483&postcount=660

And that one relates to wifi channels.
[Galaxy Tab S Android Development] :
...I like the AnyKernel way of flashing kernels without touching the ramdisk. Thanx for letting us know, that it works!
[Galaxy Tab S Android Development] Zootopia:
Yeah, so far so good.

Too soon to say anything consistent about the battery though.
[Galaxy Tab S Android Development] Eliminater74:
Since im pretty much using your source for RR. I can test that for you if you want. ill report back to you on it......

[MENTION=4405529]nvertigo67[/MENTION], Does compiling with openjdk or Oracle JDK make any differents ? I was using Oracle and seem some of the settings crash with java errors.. I was thinking switching to openjdk might fix that problem?
[Galaxy Tab S Android Development] reubenskelly1992:
Seems smoother. Ive only just installed your rom so didnt mind risking new kernel:)
[Galaxy Tab S Android Development] Bushcrafter:
My bad!:crying::crying:
[Galaxy Tab S Android Development] :
I've seen the posting in your thread. But at the moment I've no time to look closely at the log, but I don't think it's the sdk while building (don't know about the recommendation of your rom, cm recommends oracle 7 for cm11 and openjdk 7 for cm12, follow the recommendation of your rom). It would most propably fail while building. After a short look at the log, I would guess it's an error in the Settings source of your rom. What I like about cm is gerrit and jira - I doesn't found something like that for remix rom, so it's hard to tell for you if that's something the devs are working on. What I'm sure about: not the keyboard apps are crashing, but Settings do.
[Galaxy Tab S Android Development] Eliminater74:
Yea they say : sudo apt-get install openjdk-7-jdk :) So, ill give it a try and see what happends.. BTW: they also say using a ssds are better for compiling. They said mech hd's slow down the build process. I really never thought to use one..

my win10 machine has a 1TB Samsung SSD.
[Galaxy Tab S Android Development] :
I build on amd fx8150 oced by 10 % with 16GB 1833MHz ddr3 ram. cm12 takes about 110 minutes. I'm building on a 4x 3TB wd red raid5. System disc is a vertex 4 ssd (256 GB). When building on the ssd it takes 105 minutes. Old rule of thumb:

There is only one substitute for ram: more ram.... ;)

I wish I could effort a new i7 (with a X in the part number) and 64GB 2300MHz ram...

BTW: would be nice if you could test the wifi channel with ccode. Thanx for the offer.
[Galaxy Tab S Android Development] Eliminater74:
First: you have a heck of a system there.. I know you must of paid alot for all that....

My Linux system is only a HP Envy_Dv7 2ghz 16gb ram at 1600 DDR3 4tb drive space.. Takes around 200+ minutes to build for me.

My win machine is: * SysInfo ** Client: HexChat 2.11.0 (x64) ** OS: Microsoft Windows 10 Enterprise Technical Preview (x64) ** CPU: AMD A6-5200 APU with Radeon(TM) HD Graphics (2.00 GHz) ** RAM: 15814 MB Total (7844 MB Free) ** VGA: AMD Radeon HD 8400 / R3 Series ** HDD: 836.10 GB / 3464.46 GB (2628.36 GB Free) ** Uptime: 93.58 Hours **

Then I run Debian Wheezy v7.X on my ASUS RT-AC68U Router with 128gb Flash Drive partitioned off with opt/swap./jffs/data and a 2tb usb drive all attached.. also Running Entware on it.. Custom firmware dd-wrt Kongs.

Second: My Router is set up on channel 149 under the 5ghz section.. I forgot that I did that long ago. anyhow. Seems to work great.. No problems at all.

My Tablet was at first connected to the 2.4ghz till I noticed that and changed it to the 5ghz. so its works good..
[Galaxy Tab S Android Development] :
Thanx. That verified, what I hoped. And now we know something about the sammy blobs, that I don't found any documentatitikn for: the files ending on a1 relate to 2.4GHz, the files ending on a0 relate to 5GHz. They ssem be be configurable independently. Thank you for testing.

In the next build I will set a1 (aka 2.4GHz) to EU and a0 (aka 5GHz) to 00 (aka USA/Canada), what will give us the largest fexibility:

2.4GHz: channel 1 - 13

5GHz: channel 36 - 165 (steps by 4 with some exceptions)

Source: http://en.wikipedia.org/wiki/List_of_WLAN_channels

Who ever uses a channel not covered by this configuration has to edit wifi configuration by hand.

I belive it's just a matter of time till cm put the extended wifi country configuratikn back.
[Galaxy Tab S Android Development] Eliminater74:
[MENTION=4405529]nvertigo67[/MENTION], Tell me if this isnt strange.

When I build though a remote terminal. Like this win system im on now. to my linux system. it builds no problem.

But when I build stright though the Linux system without a remote terminal I get this error:

You are attempting to build with the incorrect version

of java.

Your version is: Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar java version "1.7.0_75" OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-3) OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode).

The required version is: "1.7.x"

Please follow the machine setup instructions at

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

************************************************************

build/core/main.mk:171: *** stop. Stop.

I have the correct version install:

eliminater74@HP_ENVY_dv7:~/Builds/rr-2$ javac -version

javac 1.7.0_75

eliminater74@HP_ENVY_dv7:~/Builds/rr-2$ java -version

java version "1.7.0_75"

OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-3)

OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)

Anyhow, Why would it work though remote terminal but not directly on system. That makes no sense to me.
[Galaxy Tab S Android Development] :
Environment. Compare the environments. Look through bash profile files, I guess if login tty is console, the environment is set in a different way. Don't forget to learn your basics over the fast success in building a bootable rom.

EDIT: no matter which way I loged in my dev server (most of the time remote via ssh, some times from x11 with konsole, very seldom on the console), I start screen. When using screen via ssh from an android device, you need hackerkeyboard to have cursor-, ESC-, ctrl-keys.
[Galaxy Tab S Android Development] Eliminater74:
I am lost man.. I have searched and searched and I even uninstalled opensdk and still it gives the same error.
[Galaxy Tab S Android Development] :
How did you compare environments and what bash profile and rc files have you checked? When calling java and javac, do you get the same output? In environment does the variable PATH have the same elements in the same order? All variables in the environment that contain JAVA are of interest.

I'm pretty sure, that the diffrence is in the environment of the used shell - and I think it's bash.

And: yes, without basic linux/shell knowledge you are lost.
[Galaxy Tab S Android Development] Eliminater74:
are you talking about the /etc/environment ? Sorry, I havent messed with that stuff in so long, I cant remember.. so ill admit it. im not to kean with the linux knowledge ?

in above file is only paths.. and in /etc/bash.bacshrc is just some alias and stuff

As for relating to java, I see nothing or can not find anything...

SO this is what I know, login from remote terminal uses a diffrent file more like .profiles or so.. and login from desktop environment uses .bashrc or something in that nature.

.. Its still crazy..

desktop env does mention JAVA_TOOLS_OPTIONS as terminal env doesnt.
[Galaxy Tab S Android Development] :
I'm talking about the environment of the running shell ("set" and "env"). I'm talking of all rc and profile files bash runs at startup - could be different depending how bash is invoked.

Dude, I can't learn the basics for you. "man bash" is a first start. Google for some beginner guides for linux and bash. Not even knowing what I'm talking about, when I suggest checking the environment is sad. Have you even tried to google "bash environment" or "bash startup". Do your homework and learn the basics.

[MENTION=535343]all[/MENTION]: Just for your information: from Satarday on my time will be very limited till end of October. I will slow down development considerable. [MENTION=1409248]lionheartk[/MENTION] will build and I will try to read this thread once a week. I won't stop developping this rom, but I will not have the time to be as active in this forum like now.

[MENTION=5687366]Eliminater74[/MENTION]: I can't answer every linux beginner question then. Again: don't forget over the succes of building a rom from source all the basics. You are lost - if you don't learn linux basics, bash and git you will never find back...
[Galaxy Tab S Android Development] Eliminater74:
I found the problem. It has to do with the version called..

on terminal java -version gives correct results..

on desktop env linux, I get Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar

instead of java version "1.7.0_75" OpenJDK Runtime Environment ..

So then build fails because it cant verify the 2nd string.. it only checks the 1st..

and yes I did google that.. it didnt help if I dont know what im looking for. Yes its sad. I know linux basic but but something you really dont pay attention to; you tend to loose touch with.

To make a long story short and straight to the point. I did all my programming years ago. I ran Debian at the time. back in 1999 - 2005. I got in deep with the law and was locked up for some quite time.

I was released oct 2013. I had to pick everything back up from where I left off. I forgot so many things. Now can you understand why I dont remember much.. when you dont use it for that manys years. you can tend to forget it.

So now im trying to refresh my memory and relearn everything again. I can say that im doing beter now then I did last year.

SO back to the java thing.. I just need to figure out how to remove that JAVA_TOOLS_OPTIONS now. so that it will build right.,

Anyhow, thank you for the support and time you have already given me...

Update: I fixed the problem. I just had to unset java tools thing. then it all worked.
[Galaxy Tab S Android Development] FearlessSpiff:
Little update about Play Services:

I am still on the same Sex Build/Kernel a.s.o as a few days ago when I flashed Gapps 0221 (Play Services 6.xx.xx) which fixed my "Deep Sleep" problems. But this morning I wasn't careful and just updated everything in Play Store, like Chrome, Google Now a.s.o. Then I checked Play Services Version, which got updated to 7.0.97.

But I am happy to report that my Tab S was in "Deep Sleep" the whole day today. So either I was lucky or the problem got fixed.

Maybe somebody willing could verify that. ;)
[Galaxy Tab S Android Development] Zootopia:
NVertigo: I believe the chagallwifi kernel has improved responsivness a little bit, and there's definitely an increase in battery usage.

Couldn't be more satisfied. ?
[Galaxy Tab S Android Development] :
Thank you for reporting.

I just want to make sure: you mean increased battery life, aren't you? Two non-native english speakers... An increased battery usage wasn't my goal...
[Galaxy Tab S Android Development] :
I have not updated everything with "google" in its name the last days. After reading your posting yesterday I have updated all google apps from the queue, and have gozzen play services 7.0.97 as well. Over the night I got 98% of deep sleep. So, I can confirm your observation.

Thank you for having open eyes!
[Galaxy Tab S Android Development] Zootopia:
:cyclops::silly::angel:

My bad!

I menat a dicreased battery usage, of course.

Significant ... I estimate around 10 to 20 %, wich is Big IMHO... :victory:
[Galaxy Tab S Android Development] Hannibal226:
Downloads (Mirrors):

Copy.com

AndroidFileHost [NEW LINK]

Dev-Host

PS: All credits to [MENTION=4405529]nvertigo67[/MENTION]

CHEERS ;)
[Galaxy Tab S Android Development] Bushcrafter:
I agree! Battery life is not as good as previous builds.:(
[Galaxy Tab S Android Development] :
Are you talking about the kernel or the rom build? I think you are talking about kernel, 'cause you need at least two complete loading cycles - prefereble without reboot - before you can judge battery life. I'm sorry to hear, that the new kernel does not perform wellmfor you. For me battery life it is slightly better (about 3 - 5 %; not that much as in [MENTION=4224371]Zootopia[/MENTION]s usecase).

BTW: [MENTION=4224371]Zootopia[/MENTION] clearly states, that battery life has increased and battery usage has decreased with new kernel.