yashsingh1/xdaforums huggingface dataset:
[RAZR HD Original Android Development] CWGSM3VO:
First pass completed. Now to make clean and rebuild to make sure I got them all. Unfortunately the Linaro commit doesn't marry up 100% so a lot was trial and error and some even unnecessary (parent has it) but it's a start. Was nice to see that I was fairly bang-on for implementing the workaround without using their commits as reference.

The following makefiles where harmed during this process:

bionic/libc/Android.mk
dalvik/vm/Android.mk
dalvik/vm/compiler/codegen/x86/libenc/Android.mk
external/chromium/Android.mk
external/clang/clang-host-build.mk
external/curl/Android.mk
external/dnsmasq/src/Android.mk
external/e2fsprogs/e2fsck/Android.mk
external/e2fsprogs/lib/blkid/Android.mk
external/iputils/Android.mk
external/lsof/Android.mk
external/openssh/Android.mk
external/stlport/Android.mk
external/tcpdump/Android.mk
frameworks/av/media/libeffects/downmix/Android.mk
frameworks/av/media/libeffects/loudness/Android.mk
frameworks/av/media/libeffects/visualizer/Android.mk
frameworks/av/media/libmedia/Android.mk
frameworks/av/media/libmediaplayerservice/Android.mk
frameworks/av/media/libstagefright/Android.mk
frameworks/av/services/audioflinger/Android.mk
frameworks/base/core/jni/Android.mk
frameworks/base/libs/androidfw/Android.mk
frameworks/ex/variablespeed/jni/Android.mk
frameworks/native/services/surfaceflinger/Android.mk
frameworks/opt/net/voip/src/jni/rtp/Android.mk
frameworks/wilhelm/src/Android.mk
hardware/qcom/audio-caf/legacy/alsa_sound/Android.mk
libcore/NativeCode.mk
packages/apps/DSPManager/Android.mk
packages/apps/DSPManager/cyanogen-dsp/Android.mk
system/qcom/softap/sdk/Android.mk
[RAZR HD Original Android Development] Zeljko1234:
Where is the link? I don't see any link. Is there any link out there? :D

Btw, today I was using phone all day, navigation, taking photo, video, browsing, chat... no single issue.
[RAZR HD Original Android Development] CWGSM3VO:
Still building as I type this. Once done, I'll flash and test. If it works out, I'll post a link and from there begin more aggressive optimizations.
[RAZR HD Original Android Development] CWGSM3VO:
So here's the build with the strict aliasing fixes. It does not have the aggressive opts the 06-26 build did and is the same 6-27 source I posted earlier. My first impression is more butter. Now I can re-implement the opts from 06-26 and re-work a few things. Will be working on the 6-27 source for a bit yet still. Checked changelog, nothing really important came down the pipe yet and I have to figure out how to backup my changes when repo sync clobbers it.

My suggestion if you're looking for "the best" would be to wait for next build. Otherwise, here you go: http://www.filedropper.com/cm-11-20140628-unofficial-motomsm8960
[RAZR HD Original Android Development] Zeljko1234:
Great, I've just found CM11 with those optimization (-O3 optimizations, strict-aliasing rules) for LG G Pad. So both devices will run smooth rom :)

Waiting for "the best" ;)
[RAZR HD Original Android Development] madmonkey57:
Posting here to let you 2 guys know that you're not alone interested in that topic!

I'll too be waiting for "the best", and hopefully / eventually an optimized-M8, which would become my DD for a very LLOOONNNGGG while (i.e a couple of weeks:eek:) until I decide to go KK BL.
[RAZR HD Original Android Development] CWGSM3VO:
Haven't built one yet with -O3, just -O2/-Os :) That's currently my next feat of magic.

EDIT: Fully optimized build now under way.
[RAZR HD Original Android Development] CWGSM3VO:
Watching the compile and all I can think of is Emperor Palpatine's immortal words: "Now, witness the firepower of this fully armed and operational battlestation!"
[RAZR HD Original Android Development] madmonkey57:
I just couldn't wait and tried that one. Unfortunately, boot went on and on... (was on cm 6/27 before, ART, wiped system and cache but kept data).

I'll give another try on your next build.
[RAZR HD Original Android Development] Zeljko1234:
Good, means that there is still room for improvement!
[RAZR HD Original Android Development] CWGSM3VO:
ART to my knowledge, isn't working. I believe it may be due to the Qualcomm bits I use as dex2oat fails to generate images on boot (segfault) and boot-loop ensues. If you want to play with these builds, you'll need to use Dalvik until further notice.

EDIT:

I should note the goal is this excerise is to opt the build the best I can. Once that's good, I can put my stuff on git and repo sync and update the sources. I may also be able to work around it by making sure the ART bits are compiled in a more sensible manner to see if that helps. If this is the case however, then the ART core/libs wouldn't be as optimized I would suspect. There's already some of the source that is not as optimized as it can be (strict aliasing violation) and I have no C/C++/Java background to be able to fix it (and no time for that).

I just intended this to be a fun way for me to learn certain aspects of building android and happened to make something good out of it for others to enjoy too :)
[RAZR HD Original Android Development] Zeljko1234:
Doesn't work because ART means Apple Run Time :D
[RAZR HD Original Android Development] CWGSM3VO:
[MENTION=5161352]JustArchi[/MENTION] has a comment about fixing ART but the link to the git object is now 404'd. Hmm. It's actually because of his project I started all this :)
[RAZR HD Original Android Development] Zeljko1234:
He gave up?
[RAZR HD Original Android Development] JustArchi:
https://github.com/JustArchi/android_art/commits/cm-11.0
[RAZR HD Original Android Development] Zeljko1234:
No he didn't and he's following this thread :)
[RAZR HD Original Android Development] CWGSM3VO:
Thanks, never occurred to me to look under android_art on your repo :)
[RAZR HD Original Android Development] CWGSM3VO:
Had a derp that halted the build, took the opportunity to merge in the ART GCC 4.8 fix as well. Build started.
[RAZR HD Original Android Development] Zeljko1234:
In witch time zone are you?
[RAZR HD Original Android Development] CWGSM3VO:
mst/mdt
[RAZR HD Original Android Development] Zeljko1234:
Plus one hour from mine. What's happened with build?
[RAZR HD Original Android Development] CWGSM3VO:
Certain flags are breaking the build when enabled. Trying to whittle it down to a working copy still.
[RAZR HD Original Android Development] Zeljko1234:
Ok, no rush. Just asking. Keep good work.

---------- Post added at 04:56 PM ---------- Previous post was at 04:30 PM ----------

ART work on this rom for lg g pad. Again, not request just info that could be done.
[RAZR HD Original Android Development] CWGSM3VO:
Hinging my hopes on the GCC patch for ART :)
[RAZR HD Original Android Development] Zeljko1234:
I wouldn't worry about ART much. I'm more for -O3 ;)
[RAZR HD Original Android Development] CWGSM3VO:
In the case of the Qualcomm side of things, it's -Ofast ;)
[RAZR HD Original Android Development] Zeljko1234:
Whatever is the name until brings more memory and cores to our device :)
[RAZR HD Original Android Development] CWGSM3VO:
Build completed, not fully opt'd yet but almost there. ART works, just booting it now. Will post link in a bit. It's freaking fast.
[RAZR HD Original Android Development] Zeljko1234:
Yeah! :)
[RAZR HD Original Android Development] CWGSM3VO:
Here we go: http://www.filedropper.com/cm-11-20140630-unofficial-motomsm8960

This is still based on 6-27 source. Not quite where I want it to be but I need to make diffs of my changes before I repo sync now. ART is working. Seems plenty fast/smooth once it settles. I'll be working on my diffs for a while and then producing a newer, hopefully faster build next build. This build is mostly -O3 now but some areas need some tweaking.

EDIT: Sorry Z, no GDrive links yet :)
[RAZR HD Original Android Development] madmonkey57:
Well, I've been running this build for a couple of hours on ART, and it's really nice. Feels slightly smoother (possible placebo due to excitment :p). Battery looks very promising although it's obviously too early to tell.

I think I'll switch to KK BL once you start providing us with post M8 O3 optimized builds ;)!
[RAZR HD Original Android Development] CWGSM3VO:
There's still more I can squeeze out of the build but first things first and that's backing up my changes to git. It'll probably take me a couple of days (or so) to get it done. End of this week my family and I will be going to Disneyland for my son's 5th so time is a bit tight this week.

EDIT: PS, it's a little more than just -O3'ing ;)
[RAZR HD Original Android Development] Zeljko1234:
In my opinion is better to stick with the stable source (when you find it) then sync with repository all the time because developers use it for work in progress and sometimes (often) things became broken over night.

Downloading with damn slow filedroper but at least I have time to read my emails, make a backup, etc. :)

---------- Post added at 09:17 AM ---------- Previous post was at 08:35 AM ----------

@CWGSM3VO have you noticed any difference between ART and Dalvik?
[RAZR HD Original Android Development] CWGSM3VO:
ART seems faster to me. I have KSM disabled again, seems smoother to me, less thrashing due to the KSM daemon. Of course there's the painful first-boot but otherwise, it definitely seems faster to me. Easier on battery too as it doesn't have to constantly JIT everything it does.

I usually sync on a fairly regular basis, only once or twice has it resulted in a broken build for me.

I'll get a GDrive up and running soon ;)
[RAZR HD Original Android Development] Zeljko1234:
Just installed all apps after fresh flash. Definitely ART is less smoother during app installing. Actually that makes sense because of compiling to "native code". Will see how will work in real use and will CoPilot crash again.
[RAZR HD Original Android Development] CWGSM3VO:
I've noticed that after a few runs, the app opens just as fast as if it were dalvik. Sometimes faster. I'm enjoying this build and tweaking a new one ;)
[RAZR HD Original Android Development] Zeljko1234:
So basically no real advantages of ART? More disadvantage during installation and problems with compatibility.
[RAZR HD Original Android Development] CWGSM3VO:
I dont run a lot of custom apps on my phone. Those I do and gapps, all worked fine for me so far. No app issues I've seen.

EDIT: Another benefit I read about and saw this morning when I woke up was battery draw. Much less than previous dalvik based builds overnight. Subjective, yes but I've seen a lot of overnights with my builds.
[RAZR HD Original Android Development] Zeljko1234:
Some apps doesn't work well will Dalvik. Of course is app problem but at the end, Dalvik is more trouble free for now. Probably will change with L.
[RAZR HD Original Android Development] madmonkey57:
No problem at all, of course. I'll be happy whenever with whatever you'll provide us with.
[RAZR HD Original Android Development] Zeljko1234:
I wish to go to Disneyland too :D
[RAZR HD Original Android Development] thewraith420:
CWGSM3VO, i decided to try out the latest build you posted on my razr m and i must say nice job! everything working great for me. i havent tried art yet.. i'd like to but how hard is it to go back to dalvik if i dont like it?
[RAZR HD Original Android Development] Zeljko1234:
If phone boot, then is the same as to switch to ART. If not, well there is flashable zip but you can also make backup before and just restore.
[RAZR HD Original Android Development] Zeljko1234:
Battery dopers for 2% in 10h of idle, no single awake state. Impressive!

---------- Post added at 09:46 AM ---------- Previous post was at 09:23 AM ----------

Forgot, CoPilot is not crashing! It was crashing on the same location with Carbon. Now I see picture about taking next exit instead of crash.

Really looking forward to see what else you can still improve. Many thanks! :)

---------- Post added at 09:52 AM ---------- Previous post was at 09:46 AM ----------

I hope that you'll continue your work with new kernel. Otherwise I'll stay on old. Btw, be careful with repo sync! From today new kernel should be merged.
[RAZR HD Original Android Development] thewraith420:
I'm just happy there's still work being put into the old kernel. I can't use the new one since I'm on page Plus and the new firmware doesn't talk with the old ics radio. Tried to run art it did reboot but apparently I run too many apps because I went from having plenty of room to none at all
[RAZR HD Original Android Development] Zeljko1234:
Switch to ART just after you flash new build, even before flashing gapps. Then flash gapps, install all apps from market and then optionally restore data of apps with titanium backup. Also, I wipe everything except internal storage and sd card.

With this approach you can be sure that you have fresh installation without strange bugs remained from old rom.
[RAZR HD Original Android Development] CWGSM3VO:
Yeah going forward, I'll be focused only on ART building because it's now default in AOSP and because the pros outweigh the cons in my opinion. I'm currently backing up my source and researching on switching to the new BL + kernel. However the information for the XT925 doesn't seem 100% verifiable yet (in that, nobody knows someone who did it :))

On the plus side, I was able to hit ~150mflops in Linpack multi-threaded and ~80mflops single. I know I can squeeze more out of it. I also find that disabling KSM improves performance (for me) because the daemon isn't thrashing the system. At some point I may investigate into optimizing its settings (from what I could google of it and it's more of tuning a queue).

I imagine with the new kernel and newer blobs (I believe) 2D+3D scores would improve as well. We'll see I guess.
[RAZR HD Original Android Development] Zeljko1234:
I would wait before switch to the new kernel until build became full functional.
[RAZR HD Original Android Development] CWGSM3VO:
Ultimately, that's probably what will happen. Since it's my daily driver, I need this phone to function and can't really afford to have it sitting on a table while I figure out how to return back to working state. I'm watching the CM11 thread, if some can successfully prove out [MENTION=813614]Orphee[/MENTION]'s method, then I'll make the jump.
[RAZR HD Original Android Development] Zeljko1234:
It's not just about how to switch to new bl (with one way ticket), kernel/rom still has some serious problems. But probably will be solved much quicker when more people start using it and more devs working on it.
[RAZR HD Original Android Development] Orphee:
Wrong, you can always rollback to JB if bootloader unlocked. You just need to remove "partition_signed" & "tz_signed" lines from your XML RSD Lite file.
[RAZR HD Original Android Development] Zeljko1234:
Really? I read several times that some partitions (tz?) cannot be downgraded.
[RAZR HD Original Android Development] thewraith420:
Yes that's right tz and gpt cannot be downgraded luckily all the other partitions don't care and work anyway

Tapatalk'n it from my XT907 (MoKee 4.4.4) on Page Plus Cellular.
[RAZR HD Original Android Development] Zeljko1234:
Ok, that makes sense.
[RAZR HD Original Android Development] thewraith420:
Anyone here tinker with kernel source? I've just been thinking. The reason i haven't been playing with the new kk based roms is because the ics radio doesn't work with them and it's probably something in the kernel. A custom 3.4 kernel might be able to still talk with the old radio and I could keep my page Plus flash

Tapatalk'n it from my XT907 (MoKee 4.4.4) on Page Plus Cellular.
[RAZR HD Original Android Development] CWGSM3VO:
Researching the upgrade method with more confidence. Most likely I'll flash 07-01 and hang on that for a bit and test. From there, I'll patch my local source tree and begin building again.
[RAZR HD Original Android Development] CWGSM3VO:
So I'm now updated on new BL and kernel. Will commence with builds soon.
[RAZR HD Original Android Development] Zeljko1234:
So you used SCFirefighter guide?

I'm wondering how rom will work with the new kernel and optimizations.
[RAZR HD Original Android Development] CWGSM3VO:
You'll be interested to know the 07-01 w/the new kernel scores the same (I use Quadrant, mainly for visual) as my optimized 3.0 kernel builds. They're basically on par. To me this means I can punch way more out of the stock base like I did with the 3.0 based builds :)
[RAZR HD Original Android Development] Zeljko1234:
Good, only I need to upgrade first... What doesn't work on CM11 with new kernel? I saw complaining about battery drain, microphone problem, bt, music playing...
[RAZR HD Original Android Development] CWGSM3VO:
So far for me, business as usual. Everything seems to work. Only thing I'm "missing" is LTE, it's on 3G right now.
[RAZR HD Original Android Development] Zeljko1234:
Because of radio... interesting no one commented my post: "Guys, if XT925 can use radio from XT926 and lose LTE than should be possible opposite. Flash radio from XT925 to XT926 and get LTE!"

If radio for XT925 will not be upgraded, devs must figured out how to adapt kernel/libs/rom to work with ICS radio and then... XT926 could get LTE with XT925 radio.
[RAZR HD Original Android Development] CWGSM3VO:
I saw your comment in the CM11 thread. I'm not entirely sure that would work. My phone is GSM whereas the XT926 is CDMA. I *think* they have different radios, whether by silicon or software, I don't know.
[RAZR HD Original Android Development] Zeljko1234:
XT926 is not just CDMA, also supports GSM, UMTS and LTE. But LTE only for Verizon bands. Could be that only difference is actually radio firmware. Your XT926 radio flash on your XT925 partially proved that.
[RAZR HD Original Android Development] CWGSM3VO:
I didn't flash a XT926 radio. I flashed a XT925 4.1.2 ROM then flashed [MENTION=813614]Orphee[/MENTION]'s custom partition ZIP from the FR soak test for XT925.
[RAZR HD Original Android Development] Zeljko1234:
Damn, I thought that you flashed xt926 based zip... Why you don't have LTE then?
[RAZR HD Original Android Development] CWGSM3VO:
Maybe they don't have LTE in France? The base ROM necessary for the upgrade is a french based build.

EDIT: Found this:

Country 900/1800/1900/850/3G 4G (live LTE, WiMAX, HSPA+, test, license)
Canada	1900	850	3G 850/2100, 3G 850/1900, 3G 1700	4G LTE Bell Canada; Rogers LTE; Rogers 4G HSPA+
France	900	1800	3G 900/2100	4G LTE SFR, 4G LTE Orange; DC HSPA+ (H+); 4G LTE Bouygues Telecom

From here:

http://www.worldtimezone.com/4g.html
[RAZR HD Original Android Development] Zeljko1234:
They have LTE but maybe on different band...what lead us again to possibility that radio hardware could be programed. Actually that's the point of firmware. Only question is does it support frequencies we need.
[RAZR HD Original Android Development] CWGSM3VO:
Makes me wonder if the JB radio file/partition could be flashed or if it's build-specific.
[RAZR HD Original Android Development] Zeljko1234:
Should be possible but I think that Motorola repartitioned internal memory with KK.

Actually you can check that. I can check mine.
[RAZR HD Original Android Development] idless:
Just a note that may or may not be helpful: I'm on the same french KK soak leak but located in North Europe. I do have LTE working here but bad battery drain from 'Android OS'. Yes, Maybe radio frequencies are not suitable for us, even if LTE does happen to work here.
[RAZR HD Original Android Development] Zeljko1234:
I don't think that your battery drain is related to LTE. You can check by forcing phone to use GSM or UMTS only.
[RAZR HD Original Android Development] madmonkey57:
Yes, we have LTE on a few bands (800mhz, 2600mhz, and 1800mhz as well I think).

I think that the radio chip supports plenty of frequencies, but not all of them at the same time (hardware constraint I think). That's why there are different radio firmware depending on the region/country.

I would say the only question is: what radio frequencies are supported by the soak test zip file? Considering that it applies on top of retail cee, one can assume that the radio firmware supports all countries in central and eastern europe.
[RAZR HD Original Android Development] Orphee:
I can confirm LTE is working with soak test ROM in France, at least on my provider : Orange.

Didn't try with CM11 new bootloader.
[RAZR HD Original Android Development] Zeljko1234:
Quick comparison shows that modem (if that is radio) partitions have the same size.
[RAZR HD Original Android Development] CWGSM3VO:
OK, that sounds good I'm guessing. Now what's the next step? I'm not sure how well flashing the JB radio for my phone will work. Not too worried about bricking it as much as I am spending the time RSD'ing and the like. Installing a XT926 KK radio *might* work however, maybe? Dunno.
[RAZR HD Original Android Development] thewraith420:
Out of curiosity I just checked and my XT907 and it's also the same size modem partition

Tapatalk'n it from my XT907 (MoKee 4.4.4) on Page Plus Cellular.
[RAZR HD Original Android Development] Zeljko1234:
Next step would me flash the radio but I don't wish that someone brick his phone.

Anyway, I just had awake state with your latest build. Reboot solved it. I couldn't find what was causing it.
[RAZR HD Original Android Development] Orphee:
If I were you I wouldn't play with radio (/firmware) between xt925 and 926...

I think it won't work.

But you can always flash back original radio with fastboot...
[RAZR HD Original Android Development] CWGSM3VO:
I'm going to start building the new nightlies (3.4 based) but it looks like dhacker's kernel git is newer than CM's so I may sync his kernel source instead for these builds.
[RAZR HD Original Android Development] CWGSM3VO:
Haven't forgotten about this thread -- just trying to get life straightened out and then I have some free time to play again.
[Galaxy S 4 Q&A, Help & Troubleshooting] MamomaN:
Hello,

I need something to make the headphone sound higher and louder

I tried all the google play apps but nothing works

also i tried Perseus kernel sound controller don't work

i have Nokia PH-503
[Galaxy S 4 Q&A, Help & Troubleshooting] Mandark52:
Bit difficult for unrooted device. But you can try the loudspeaker equalizer of different Music Players available. First try the Adapt Sound feature it is amazing n gives real clarity. All the best
[Galaxy S 4 Q&A, Help & Troubleshooting] MamomaN:
Tried adept but almost nothing changed

Anything for unrooted? :(
[Galaxy S 4 Q&A, Help & Troubleshooting] Lennyz1988:
Probably not.
[Galaxy S 4 Q&A, Help & Troubleshooting] MamomaN:
Tried more apps from the market but nothing works :(

Any chance to make it just with custom recovery , and then get the stock back , without root ?
[Galaxy S 4 Q&A, Help & Troubleshooting] MamomaN:
Nothing ? :(
[Galaxy S 4 Q&A, Help & Troubleshooting] MamomaN:
ok , if i decided to use a custom rom , what is the best one available around ?

what is the best cocked rom you recommend
[Galaxy S 4 Q&A, Help & Troubleshooting] Paolonicus:
It doesn't matter if you are on Custom ROM or not, the important thing is you are rooted and have CWM Recovery.