yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S (4G Model)] hutson23:
-I have also removed all but

42 system apps.

-User apps are on SD.

-Made several Sysctl kernal tweaks.

-And many build prop tweaks.

Some work some may be placebo effect but it doesn't

hurt anything who really knows.

-Also turned off animations.

My phone is running the best it ever has before.

Performance wise and battery life too.
[Samsung Galaxy S (4G Model)] inimeg81:
Have u tried mounts2sd? That solves any space issue and greenify... Wow that app is my fav of all time. Must save another 50 60% battery

Also theres a ton of jb roms. Add gps fix and everything would be working. Although i think kk is a big leap from jb
[Samsung Galaxy S (4G Model)] jeffsf:
I believe that whole post would have been better handled through PMs. I would have PM-ed you that suggestion, but you apparently don't accept PMs.

I'll let you determine yourself what the impact of your decision and its public announcement was.
[Samsung Galaxy S (4G Model)] DickyG:
I came up with the absolutely best ever solution to the GPS problem...I bought a used Magellan Roadmate on eBay...$31 with free shipping...problem solved...where's my money?
[Samsung Galaxy S (4G Model)] inimeg81:
Gps is solved
[Samsung Galaxy S (4G Model)] kyrron:
GPS works!

Clean installed new build today, GPS locked on lightning fast.

Thanks for the hard work on it!
[Samsung Galaxy S (4G Model)] christoophat:
There is a new build?:confused:
[Samsung Galaxy S (4G Model)] inimeg81:
Yes latest build is from 3/16. Has gps working, new recents sideview, slimpie.. Some other xtras.. Very tight... Please read thread b4 asking questions in dev thread
[Samsung Galaxy S (4G Model)] Rebel_X:
I gave up on KK 3 weeks ago and went to AOKP-ICS, but I installed this again to try the GPS and it works fine.

On another note, I had a reboot once so far while configuring Gentle Alarm. It didn't happen again, so I would call it a fluke or random reboot. But overall, seems much more stable than first time I tried it. To be honest, beanstalk is snappier and more stable, but that just my opinion.

Thanks inimeg81 and dao for your work.
[Samsung Galaxy S (4G Model)] kyrron:
Apologies, should have said the current build... I switched over to beanstalk for a bit, but, with GPS fixed and space issues I was having, switched back over to slimsaber. So far, 26 hours and really haven't had any issues ::D
[Samsung Galaxy S (4G Model)] Rebel_X:
slimcenter notified me for OTA update for today the 20th, but the link goes to goo website is still 16th. is that normal?
[Samsung Galaxy S (4G Model)] daothanhduy1996:
I haven't been able to uploaded the build coz by the time I started the upload, I realized that I whacked off the sepolicy for mediaserver which might have been the cause of camera FC and maybe the gallery vid player FC, too. So I built another one rite away and it was late last nite so I have to wait til tonite to upload the newest build tho (in 8 hours from now)
[Samsung Galaxy S (4G Model)] daothanhduy1996:
The newest build is online. Changelog:

Feature: Lockscreen rotation optional

Settings - Security - Lockscreen rotation. You can choose between 'enable/disable' or 'portrait/landscape only'. Don't forget to enable rotation mode 180° / 270° in display settings.

Feature: Quiet hours automatic switch

Follow ringer mode when ringer is set to silent/vibrate

Feature: Add "Starred contact only" to Quiet Hours

Disable touch while using the stylus

It seems like palm rejection is working now. I tested with papyrus app.

Re-enable PIE overlay

Some memory leak fixes

See changelog for the rest of changes

Sepolicy fixed for mediaserver and mfc_device for galaxys4gmtd
[Samsung Galaxy S (4G Model)] inimeg81:
Sir. With space issues i highly recommend mounts2sd. I suggest anyone use greenify as well. I honestly dont see how anyone can install more then a couple apps on beanstalk without running out of memory. Theraze posted his settings for mount2sd a few pages back. While i think the readahead may work better a little lower all his settings work great
[Samsung Galaxy S (4G Model)] Theraze:
Yeah... the max-SD settings are based on using ROM Toolbox Pro to benchmark the SD card speeds, and that the read and write were the best using the higher options... for most file sizes, the 4k (the largest in their options of 1/8th, 1/2, 1, 2, 3, and 4k) was the fastest. But check on your own device. Everyone's phone runs a little differently, and every sdcard is a little bit different as well. What works on one... MAY work on another. Or not. :)

The fun thing about running benchmarks is that if you run 5 benchmarks, one right after the last, you'll get 5 slightly different results. So pick your fav results, set your phone how it works for you, and tweak it if you need to.

And thanks dao for keeping up the development on this. I love the ability to bug my co-worker whose new Verizon Note 3 phone is still waiting for his Kit Kat upgrade. It makes the day a bit more amusing. :)
[Samsung Galaxy S (4G Model)] daothanhduy1996:
I'd love to know how do the camera/camcorder and gallery work now tho? :p I, again, couldn't test myself coz after updating my Mom's galaxys4gmtd to 0316 build, I had to factory reset and she didn't feel comfortable bout that lol.

Anyway, there will be a new beanstalk build soon. I have built Slimsaber more often coz I set up ccache for slimsaber and it only takes me 3 hours to build a build now while beanstalk would take me 8 hours @@.
[Samsung Galaxy S (4G Model)] Rebel_X:
I tried mount2sd per your suggestion, was nice at first, now, I have nothing but troubles when changing roms. TWRP can't format sd-ext when factory resetting (failed to format using the function blah blah), can't format it using Aparted app like I used too, and the stupid apps keeps coming back. I had to batch uninstall them using Titanium Backup.

Then, I installed Link2sd, far superior than mount2sd IMO. you can clean up the 2nd partition and link everything like mount2sd.

I use 2GB external partition, I have around 150 apps when I was using Beanstalk and around the same in slim roms, the phone never complained about low memory.

Greenify is the best app ever, I used it since the initial version, I am getting over 2 days with 10% of battery left using a generic and less capacity than stock battery 1500mAh.
[Samsung Galaxy S (4G Model)] ariesgodofwar:
Anyone having issues with the Navigation bar? Every time I reboot it comes back, no matter how many times I turn it off. It is turned off in every setting I can think of. (In Launcher, Gravitybox, etc.)
[Samsung Galaxy S (4G Model)] inimeg81:
So you are using xposed? I see you mentioned gravitybox. Most likely from modified app_process.

Dao i havent tested latest build but i have a good idea on video if it isnt fixed. Ill report tomorrow
[Samsung Galaxy S (4G Model)] johnadelic:
I tried the latest build. Still using MX player.

Sent from inside the time vortex
[Samsung Galaxy S (4G Model)] inimeg81:
Dao. Recording works. Video playback does not on gallery. If u can pm me and tell me when we can talk real time i think i know why
[Samsung Galaxy S (4G Model)] ariesgodofwar:
I am, and you were correct. Though Nav Bar was turned off in Gravity Box 3.0.0, it still seems to load on boot anyway, disabling GravityBox fixed the issue however, so all is well. Thanks for that.
[Samsung Galaxy S (4G Model)] inimeg81:
Yeah xposed changes the framework as well if u were using it with greenify u dont need to. Just remember to check greenify on in accessability
[Samsung Galaxy S (4G Model)] fusionjack:
i'm impressed that you still have mood to build rom that takes 3 hours. [emoji106]

mine takes 20 minutes for 1 build with ccache. [emoji16]
[Samsung Galaxy S (4G Model)] Rebel_X:
Dao, Video playback using the gallery works only for 320x240 videos. But 720x480 doesn't. I noticed even MX Player flickers at the first frame as if it is resizing the output screen while playing the 720x480 videos.

About the Recording, it was always working (even with earlier builds)! was it not supposed too?
[Samsung Galaxy S (4G Model)] inimeg81:
We are both trying to fix it and are closer. It is different with kitkat. If u download vplayer it will play just about any video back better then mx player. I probably read more on it in the past 2 weeks then i have with gps. There is the same exact prob with a lot of different galaxy devices. Use vplayer for now until it gets sorted out. I just made like 12 different log files to map out everything. If you do su then dumpsys display gfxinfo u should see the config where part of this is. Its too in depth to really go into trying to explain it. But dao will get the memory/density scaling/bitmap resmaps/ lib shader res scaling video encoding issue fixed. And maybe memtrack.c

I wrote two more parqgraphs for dao then just deleted it. I been up all night not thinking too well but dao we will have to jam this out when u jave time
[Samsung Galaxy S (4G Model)] daothanhduy1996:
Hehe. Everyone please welcome the ROM creator here eh :p. Yup since I only have an old Vaio inhered from my Mom so I have to live with it at least til the end of this year, b4 getting into university.

Ey good bro. Sr coz I have had exams continuously and I am sick of being thru exams : (( :crying:. Hah, tbh, I have been thru a flu and stress tho but will find time to recruit w ya. I'm gonna have 5 more exams til the end of August so lets make a wish out of an airplane :p.
[Samsung Galaxy S (4G Model)] inimeg81:
Oh dao if u look at media profile. Xml in slim and vb kj6 in system compare the resolution scaling formats and caps... Some are incorrect. Kitkat needs scaling dpi res images .... Desc.txt from system in vahalla black should be in egl.cfg in lib dir on kk. The problem comes down to kinda a device specific/android specific memory and api dpi change in android. The latest build shows gpu drivers from nexus 5... Opengl2.0 i found some khronos related stuff.. Wow im all over the map i need sleep. If u basically look at i9000 boot dmesg compared to ours for kitkat and compare the logcats. Then read googledocs on res shader sampling profiles from dpi/res changer per app basis it needs some type of extra bitmap config between hdpi and virtual xhdpi BUILT_IN screen. Do dumpsys display. Okay i cant go on all i know is do dmesg |grep power.0 look at failed device suspend everythibg collapses and loops after that.
[Samsung Galaxy S (4G Model)] daothanhduy1996:
Oh yep yep I actually edited it locally after the 20140320 build but still haven't had a chance to test it b4 pushing changes online. I will try it asap and inform u bro and if u have any difficulty in preparing the build environment, just let me know and I will write a full guide if u need bro
[Samsung Galaxy S (4G Model)] inimeg81:
Dao i do need sone help. I did numerous builds of cm10.1 and beanstalk jb but its been a bit if u could do that it would be fan freakin tastic. Johnadelix box is fast and always up so ill be able to get something if u can write thst for me. Man i need sleep tho
[Samsung Galaxy S (4G Model)] inimeg81:
Dao. Download vplayer and if u can get the vplayer unlocker. After you install you will see that it auto populates a lot of files not present in the build and it fixes a lot of config files all over. Provdes the font files etc. Plays beautifully in vplayer without rotating the video... I got to make a logcat. Oh... One interestjng thing back on gb eriks VP rom he has a gfx aries library file in there dunno why but its gles related. I think all u might have to do is keep the upfated files that vplayer installs like media_profiles and just match the resolution with the codecs file in gb. The other videos it seem updated.. Theres updated bt routing etc..
[Samsung Galaxy S (4G Model)] daothanhduy1996:
[MENTION=5592807]inimeg81[/MENTION] I will try it asap but apart from my schedule, I really can't use my Mom's phone to dev frequently so hope u will throw me bunch of logcat man so I can read it and catch up w ur idea since my brain is not so interactive atm. Moreover, I'm kinda in a depression lately so I think I will be offline for a while to have a recovery and be ready for the upcoming exam the week after next :).
[Samsung Galaxy S (4G Model)] jeffsf:
egl.cfg is completely unused. It used to be used for finding the OpenGL binaries, but no more.

See frameworks/native/opengl/libs/EGL/Loader.cpp

and Change-Id: Id4b113468df29bae72b323f76598229914e1c7a1

(c. April 23, 2013)

---

Posted from whatever phone booted today
[Samsung Galaxy S (4G Model)] inimeg81:
Sorry about the depression dao. I can relate. Sorry I missed your pm the other day. I kinda narrowed it down... If u dumpsys media.camera it shows no camera set asbdefaultbor player settings recognizing which camera to use. That needs a declaration in the android manifest and what is making the playback stop after one second is the autohide parameter. Which needs to be declared as well. Its in the android camera section on Google. I will try to implement it as soon as I get the box going...

Hey man sidenote. Get Sam-E if they have it where u are at or order it online. The stuff just works
[Samsung Galaxy S (4G Model)] kyrron:
Yup, got mounts2sd and Greenify running now :D
[Samsung Galaxy S (4G Model)] DickyG:
Just a quick note to the developers...and everyone else, I guess.

I'm running Beanstalk but I applied the GPS fix (https://docs.google.com/file/d/0B2tR...GJFaDFaTDVfTlU)

and fixed permissions with the fixed permissions emulator (https://www.dropbox.com/s/lh5ge3zj54otcl5/fix_permissions_emulator.zip)

and GPS is working on all 3 of my apps (Google Maps, Scout, and AAA).

(Don't know if using the emulator was even necessary but I used it anyway).

I'm also guessing that it will work for any of the JB ROM's also.

Great job, everyone!
[Samsung Galaxy S (4G Model)] inimeg81:
Yeah u dont need to fix permissions emulator... I appreciate your feedback.
[Samsung Galaxy S (4G Model)] inimeg81:
Egl.cfg was what was in stock, desc.text. which was two lines.. Just an input of resolution along with the 0 0 which didn't specify library path, it is a setprop value to use hw or sw rendering... Which is overridden based on the build.prop
[Samsung Galaxy S (4G Model)] inimeg81:
The buffer size is half what it should be... Leading to most of the failures after which it is either calling a library that is not there or i t can't open it... Or it wasn't compiled with enough memory attributes
[Samsung Galaxy S (4G Model)] jeffsf:
I agree that the problem is likely causing/caused by the libc failure. I've been seeing that for some time now.

libdashplayer.so is a Qualcom-only library that should only be requested for Qualcom architectures, so that is a red herring (past it being a sign that the build is improperly configured).

See frameworks/av/media/libmediaplayerservice/MediaPlayerFactory.cpp and hardware/qcom/media-caf/dashplayer
[Samsung Galaxy S (4G Model)] inimeg81:
Yeah but you see... I didn't say it was a libc error. Dont all roms have some such variation in error to libc somewhere? I said it was with memory buffers. You don't have to prove or twist anything here. And for whatever reason you feel the kernel dao has made, with working gps, is so deprecated... Maybe you can tell dao how to run His kernel, based off djl, based off noiphone. I'm just a gps guy.

See: search Google for media.camera dumpsys or no_console_suspend power.0
[Samsung Galaxy S (4G Model)] daothanhduy1996:
Hey take it easy gentlemen. (And I read the previous version of your post, [MENTION=5592807]inimeg81[/MENTION]).

I also want to say something tho, from the bottom of my heart. Tbh, I have been sick of what is going on these days to me. Fyi, I have been at school like 6 days a week and 14 hours a day so I really can't do much than maintaining the build line to push out the updates. Furthermore I am gonna have the most important exam in my life, the uni entrance exam and it's kinda different from what y'all luckily have in the US, EU,... So I dunt really care what would happen to this thread nor what might be said to me about my work here. I have gotten enough troubles fo myself and I have my own life out there not here. I have been feeling good w my other phone so I could be like: "Oh, let's stop these things as I am not responsible for doing this" but still want to contribute, learn and make ones happy (can I?)

Btw, I have never said that my works are extremely good. All I have always said is my works are considerably stable for users who want to test out the newest android version as well as some kernel mods. And I am just a normal student who is prior to Chemistry not IT so I am still learning as best as I can and the fact that I have gotten lost w some dev info is normal. And furthermore, I have always been calling for help from devs who are more skilled than me. I just have said that my works are temp while we r waiting fo the real dev from TA. I just want to help and that's all. So if u have something, feel free to commit or so to ur own or my repos, please.

About the libc, I admit that I have had troubles w building w the bionic repo of kitkat. It has been giving out error fo the strchr or so and the memtrack. And I have to patch the build to get thru it and yup, of course it is kinda wrong way to solve but I have no time to investigate it more.
[Samsung Galaxy S (4G Model)] jeffsf:
Hey, slow down. I'm just trying to help keep you from chasing windmills.

There is a lot in the build that is legacy cruft, some of which is even OEM legacy cruft, that is has no impact on the current system. Having been through about 90% of the build tree at this point, I'm just trying to save you some time and help you focus on solving the problem you've decided to attack.

Yes, egl.conf was used in older versions of the Android OS to both identify which OpenGL drivers to load, which screens to use them on, and in what priority. In KitKat, that is no longer the case. Feel free to 'grep' the source tree and all the proprietary blobs.

Be careful thinking that lib<something>.aries.so is actually an aries blob. Several I have found were just renamed from lib<something>.s5pc110.so. This is something of lipstick on the pig, as the libraries know the name that they were created with and the loader should find them, in priority order; device-specific, board-specific, and then generic.

For example:

vendor/samsung/galaxys4gmtd/proprietary$ arm-eabi-readelf -d vendor/lib/hw/gps.aries.so

[...]
0x0000000e (SONAME) Library soname: [gps.s5pc110.so]
[...]

ndk-depends is another useful tool

Some of the "aries" blobs are from crespo/crespo4g which isn't "forward thinking" -- just from a similar device. They aren't "better" than the ones that came from our OEM ROMs, just different. I think it sort of funny that the gpsd that is currently checked in with the comment "may I ask why we aren't using our original files?" is, from what I can tell, that of the Vibrant. Then again, that was what worked for our device in some previous ROMs.

Sounds like we greatly differ on where the root cause might lie for the video-playback failure. I misinterpreted you and apologize.

As far as if I am cherry-picking Dao's work; I'm working on the build tree, not the kernel.

The little bit of kernel work that I've done that is material to the builds that Dao has been doing was that the kernel was improperly configured and could not use the available OpenGL libraries. That was returned to you all both with a patch, and with a pull request, which I believe has been since incorporated by Dao.

Why the build tree and not the kernel? Mainly because you're observing the kernel primarily though the OS. If it is broken at the OS/application level, a fix in the kernel may be "right" for something, but not have any observable change, or even a negative one. You can't clearly distinguish code failure from test-harness failure. WIthout the ability to reliably test each change made, you're shooting in the dark. I may get to the kernel one day,

I do credit Dao and DJL for the work they have done in quickly porting JB and KK to our device. I credit you for finding out that the GPS issue was a start-up problem, not a poor choice of binaries or a kernel issue. I also credit all those that have worked on things before them, both within the SGS4G community and outside.
[Samsung Galaxy S (4G Model)] Rebel_X:
^ That! I didn't see anything you said offensive. Meh, This forum has like 4 members left, more or less. So everybody, instead of bs, cooperation plz.

I don't really care about this phone, but I am still interested in it for the time I invested on it. I am happy with my S2 and S3.

So thanks to Dao for his awesome work, whether he continue or not. Thank you.

Thanks Jeff for your awesome HEFE kernel, without it, ICS would have sucked big time.

Thanks inimeg81 for the GPS fix.

Thanks all.
[Samsung Galaxy S (4G Model)] christoophat:
Well, decided to finally give this ROM a try (coming from Slim Bean) Tried following the OP's suggested method:

Reboot recovery

Install this ROM

Reboot recovery

Advanced Wipe; /system, /data, /cache

Install this ROM - again

Make TWRP backups

Reboot

But after first install, and first reboot attempt, I'm stuck at NiLMT logo screen. Tried battery pull & 3 finger press to get to recovery, but am stuck there again. Am I hosed or is there anything I can do? Did both cmod & Titanium backups, but they won't be of much use if I can't boot into recovery in the first place.
[Samsung Galaxy S (4G Model)] daothanhduy1996:
[MENTION=4103758]christoophat[/MENTION] try doing a heimdall one click back to BML and do all the things over again tho. (One click kernel or rom is ok but the recovery version must be 5.x+)
[Samsung Galaxy S (4G Model)] christoophat:
Got back on my feet using Gremlin Remover, and am running SlimSaber for a day, and very impressed with it's snappy-ness ,much faster than SlimBean was.

Thanks to Dao, inimeg81, & all the devs.
[Samsung Galaxy S (4G Model)] inimeg81:
For those trying to flash 06 or 05... If u are coming from 5.0.2.8 don't flash 6 or 5 flash April 1st. 01. It will install recovery. Then backup boot and recovery partitions. Reboot recovery. Factory reset. Wipe system. Install 05 or 06. While still in twrp restore backup of 01 boot. Flash gapps core. Reboot. I had WiFi working the first few times and now never have it rking. Has anyone else tried copying modules over ? And if u r stuck in bootloop just heimdall flash --kernel boot.IMG (April 1st) or go back to stock start over (recommended)
[Samsung Galaxy S (4G Model)] christoophat:
inimeg81, Are you referring to SlimSaber or Beanstalk? The only build of SlimSaber currently on goo is from 3/20.

Or am I off my nut?:confused:
[Samsung Galaxy S (4G Model)] inimeg81:
U could be off your nut but I stand corrected. sorry for any confusion

---------- Post added at 11:54 PM ---------- Previous post was at 11:52 PM ----------

I haven't started trying to build but recently for kk. Maybe you could help me with the process with the build.sh and the target_recovery error when executing the build. Dao is one quick young lad, and I can only get his guidance on the weekend. I do it the old fationshed way but then run into trouble without your patch. I'm still trying to figure it all out... I get a build going for around 4 hrs without ccache and always dies near ot-something...I looked at dais bash_history and saw some new type of lunch combo... So if u could point me in the right direction on irc I'd appreciate it. We use the same box. And thanks johnadelic for continuing the hosting.
[Samsung Galaxy S (4G Model)] christoophat:
SlimSaber+ Gapps 4.4.2. beta 2+ Link2SD+Auto Memory Manager+VPlayer = the best this phone has worked since I bought it a year ago.:good:
[Samsung Galaxy S (4G Model)] javoxo:
excellent rom