yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S (4G Model)] AntonX:
Barebone SGS4G KJ6 ROM

Use at your own risk, I take no responsibility for anything that may happen to your phone because of this ROM.

Here is a ROM that I made for myself, but what the heck, let's share. This ROM is very stock-like with just few usability mods.

Features

Will not wipe your programs or data, /data is preserved upon install

Heavily debloated. Most essentials apps are still there (like WiFi Calling)

No extra programs added, you need to add your own

ODEXed to save space in /data

CarrierIQ is completely removed

Extended Power Menu (including Screenshot)

Extended Quick Panel (10 buttons, including Data toggle)

1% battery (horizontal)

CRT-Off

Time zone version 2012b

/etc/hosts to cut ads out of the box (keep up to date with AdAway or similar)

Few conservative presets in build.prop and init.d

Basic with a Twist 1.1.3 kernel included

Notes

* Don't get confused about ODEXing, it's actually better to run and saves quite a bit of space in /data.

* Some Google apps (Maps, Streets, Voice) and Adobe Flash are removed from /system. Install them from market. Benefit - they can be moved to SD card this way.

* Original Swype is removed, is somebody needs it flash this.

* In case you need it, use this thread to add some bloat back.

* Factory Reset is removed from Settings->Privacy, use CWM if you ever need to reset all data.

* KJ6 modem included. Use this thread to flash a different modem if needed.

Install

Flash with CWM. Wait until the system boots up, then wait few more minutes for it to settle.

Download

v1.1.3

v1.1.2

v1.1.1

v1.1.0

v1.0.8

Changelog

1.1.3

Removed "Mobile data connection disabled. Connect?" popup on boot

1.1.2

Removed Factory Reset from Settings->Privacy

Updated kernel

1.1.1

Fixed voicemail notifications not working without Visual Voice Mail installed

1.1.0

CIQ is properly removed

Some neutral cosmetics (logo, animations)

Minor update to the kernel

1.0.8

Fixed slow stock browser scrolling

1.0.7

Extended Quick Panel

1.0.6

Added Screenshot to power menu

1.0.5

Removed DriveSmart and Software Update from Settings menu

1.0.4

Put original framework-res.apk certificate back

1.0.3

Added power menu mod

1.0.2

Original public release
​
[Samsung Galaxy S (4G Model)] AntonX:
Nope, never bothered with power menu. I don't reboot the phone too often and to say the truth don't even remember when last time I needed to take a screenshot. I use ShootMe and QuickBoot when I need to, they both do the job just fine.

Yes, power menu is fully modded now, including Screenshot option.
[Samsung Galaxy S (4G Model)] Wodensman:
Thank you for this, Anton! Love your kernel. Is this ROM ok for OC/UVing with you OC/UV kernel? I think this will be the second ROM I have ever installed. Haven't bothered to try anything since first getting Val Final.
[Samsung Galaxy S (4G Model)] mzangui:
Download link is not working
[Samsung Galaxy S (4G Model)] Blaggah:
Does this come pre-rooted?
[Samsung Galaxy S (4G Model)] eollie:
Yeppers it does.
[Samsung Galaxy S (4G Model)] AntonX:
I updated the link. I actually took it down on purpose, wanted to look at something but never had time.

I was troubleshooting an error message during boot time, so I traced it to the CIQ trying to execute some on-boot code, which was removed by Krylon. Strangely the original code itself doesn't do much, it's initilizing a broadcast receiver with an empty onReceive method. Removing this was a moot point, it probably didn't do much. I disabled the BOOT_COMPLETED permission for the service to avoid the error message.

So I looked at the CIQ more closely. What I found is a little peculiar. The main CIQ code is integrated quite deeply into the framework, it cannot be removed easily, there are just too many calls that send various metrics to the CIQ Agent. The main CIQ classes are not in the framework.jar, they are in ext.jar. Probably that's why nobody noticed them and never tried to modify them. What is strange that many calls seem to be not implemented. For example the sumbitMetric is an empty method, shouldSubmitMetric always returns zero, etc.

It's possible that T-Mobile decided not to use CIQ on our phone (at least extensively), but instead of removing it completely just plugged few calls.

I'm removing the "CIQ removed" description because it's actually not removed, although may not be doing much.
[Samsung Galaxy S (4G Model)] stephen_w:
I cannot get it to boot. After the "Galaxy S 4G" screen, the screen goes back then nothing ever happens. I rebooted into CWM (which still shows Team Acid's logo) and tried fixing permissions to no avail.

Given that the OP says it won't wipe programs, data, etc, was it possibly a Bad Idea™ to have wiped everything before installing this ROM?

Update:

Indeed, installing from a blank phone (literally, I wiped everything) didn't work for me. I flashed Bryan's one-click with CWM, it booted, rebooted into recovery, flashed this, and it booted. Now for testing. Thanks, Anton!
[Samsung Galaxy S (4G Model)] QUIETLYloud:
I had the same issue as well... Thought it was just my phone
[Samsung Galaxy S (4G Model)] AntonX:
Would be interesting to look at the logcat to see where it's stuck.

There was a possible problem with 1.0.3 that I pulled off. The current one that I re-uploaded - I tried to install in on both fresh phone (after factory reset) and on top of a running ROM , everything seemed fine.

The problem was with framework-res.apk. I had to resign in because I changed some permissions in AndroidManifest.xml (related to CIQ), but something went wrong the first time.

There is a little bit of controversy with signing of framework-res.apk. Some say it's OK, some say the original cert should be kept. Maybe somebody else would chime in and tell me if I screwed it up or not.
[Samsung Galaxy S (4G Model)] Lawful123:
wont flash

I wipe everything, the ROM installs, and then black screen...noting. Let it sit for 20min however this did not resolve issue. I was able to install Valhalla no prob. flashed your rom on top of Valhalla and then my phone boots your rom. Do i need to install on top of another rom? I should just be able to whipe my phone and install your rom correct?
[Samsung Galaxy S (4G Model)] stephen_w:
I can probably capture that because I can use adb to get into the OS. I ran top to see what, if anything, was hogging CPU but there was nothing obvious & CPU usage was minimal. I have the phone running now but I'm willing to wipe it again and re-flash. Mind you, I did more than factory reset. I was quite literally trying to start from scratch, so here's what I did (if this helps at all):

Backed up /efs to my PC

Backed up the SD card to my PC

Wiped cache

Wiped Davlik cache

Wiped battery stats

Performed a nandroid backup

Copied the backup from /sdcard/clockworkmod/backup to my PC

Formatted /data, /system, & /sdcard

Rebooted back into recovery

Copied the ROM to the SD card

Flashed it

Let it cook for ~20 minutes

So it was quite literally a blank slate.

I appreciate all of your hard work. When I get the chance I'll download the latest, follow my steps above, & let you know what I find.
[Samsung Galaxy S (4G Model)] AntonX:
Wow, you really wiped everything from your phone :)

I'd appreciate if you send me the log. All you need to do is to save the file with "adb logcat -d >MyLogFile.log" after couple of minutes of this black screen. On an factory reset phone ODEXed ROM should boot very fast the first time because it doesn't have to build Dalvik.

I just tried downloading from my own link and reinstalling, everything seems OK. I also tried installing after full phone reset yesterday, it went fine too. I don't want to reset and restore everything anymore, too lazy ;)

If it proves to be the certificate in the framework-res.apk, I may need to put the original AndroidManifest.xml back.
[Samsung Galaxy S (4G Model)] stephen_w:
Hey Anton,

You can snag the logcat from here. In case anyone wants them & to clarify what I did, here are the steps I followed (similar to above but more detailed):

- Boot into CWM

adb reboot recovery​

- Disable voodoo lagfix

- voodoo lagfix​

- disable lagfix​

- /system lagfix off​

- Reboot

- Create a backup directory structure on your PC (mine is in C:\Users\username\Downloads\SGS4G)

mkdir backups​

cd backups​

mkdir efs nandroid sdcard​

- Backup /efs to your PC

cd efs​

adb pull /efs/​

- Backup /sdcard to your PC

cd ..\sdcard​

adb pull /sdcard/​

- Boot into CWM

adb reboot recovery​

- Wipe cache

- wipe cache partition​

- Wipe Dalvik cache

- advanced​

- Wipe Dalvik Cache​

- Wipe battery stats

- Wipe Battery Stats​

- Create a nandroid backup

- +++++Go Back+++++​

- backup and restore​

- backup​

- Copy the backup to your PC

cd ..\nandroid​

adb pull /sdcard/clockworkmod/backup/​

- Format /data

- mounts and storage​

- format /data​

- Format /sdcard

- format /sdcard​

- Format /system

- format /system​

- Reboot into CWM (necessary for CWM to see the sdcard contents)

- +++++Go Back+++++​

- advanced​

- Reboot Recovery​

- Copy the ROM to the sdcard (this is from the directory in which the ROM is located on your PC)

adb push ROM-sms-T959V-GB2.3.6-antsvx.1.0.3.zip /sdcard/​

- Flash the ROM

- install zip from sdcard​

- choose zip from sdcard​

- ROM-sms-T959V-GB2.3.6-antsvx.1.0.3.zip​

- Reboot & let it sit for ~10 minutes

Sorry for the lengthy post, but I wanted to ensure there was transparency in what I did.
[Samsung Galaxy S (4G Model)] AntonX:
stephen_w,

Seems that it's not framework-res.apk issue, it's not complaining about any certificates.

A lot of unknown permissions in the log, but it's OK, we've removed some of the system packages that grant those permissions but they do more harm than good in the end.

The crash has something to do with that: *** FATAL EXCEPTION IN SYSTEM PROCESS: PowerManagerService. Hm......

Question. If after loading the ROM you shut down completely (power off) first and then boot instead of rebooting right from CWM, will it still do the same?

Btw you don't have to clean everything that extensively. Just do factory reset to erase /data and flash. Dalvik and /cache are cleared but the installer, the /system is completely overwritten anyway.
[Samsung Galaxy S (4G Model)] Shortbus-Driver:
Weird...it flashed fine for me with no wipe....

I did move on and never gave it a break in....but it did work
[Samsung Galaxy S (4G Model)] stephen_w:
I usually don't do it that extensively at all. I was writing a process for myself in case I wanted to really clean it out :) So this gave me a good excuse to test it. I was having some weirdness which prompted me to write the instructions for myself.

I haven't tried shutting it down after the install. I can certainly try that for you, if you like.
[Samsung Galaxy S (4G Model)] Lawful123:
So its something to do with power management. That's weird. Is there something we did to our phones before that is causing the issue now?
[Samsung Galaxy S (4G Model)] stephen_w:
Doubtful. Nothing I can think of, off-hand. I have to wait until later this afternoon/evening to reflash it and try powering off vs. rebooting from recovery. If you have the chance, please feel free and let us know what happens.
[Samsung Galaxy S (4G Model)] champ1919:
Not sure what lib files your looking for, but.

Anything I can do to help. Love your miui Rom.
[Samsung Galaxy S (4G Model)] itzik2sh:
I have both the odexed barebone rom and the deodexed barebone rom. Right to left patch is applicable only to deodexed rom and changes libs and framework-res. From what I've seen it's the same on deodexed and odexed rom. OK, I'll make some experiments... :)

sent from me

EDIT : OK, managed! thanks guys.
[Samsung Galaxy S (4G Model)] quailallstar:
Anyone have issues with flashing this ROM and then running the Adrenaline Injector ---RC2 over? Thoughts or suggestions before I attempt this?
[Samsung Galaxy S (4G Model)] Shortbus-Driver:
Lol....your to flash happy.

You don't need anything with this rom...its tweeked enough
[Samsung Galaxy S (4G Model)] itzik2sh:
tweaks, such as Adrenaline Injetcor, require a deodexed ROM.

This ROM (in OP) is odexed. Search for the deodexed version in the thread and install it instead before applying the Adrenaline Injector or leave it as is.
[Samsung Galaxy S (4G Model)] quailallstar:
Got it. One last question: can I just flash the deodexed ROM over the barebones (odexed) version I already have installed? Thanks!
[Samsung Galaxy S (4G Model)] itzik2sh:
Yes

sent from me
[Samsung Galaxy S (4G Model)] quailallstar:
Awesome, thanks!
[Samsung Galaxy S (4G Model)] hjjiang:
hi, just wondering if any1 here can tell if how to remove popup: Mobile data connection disabled. Connect?, it is removed in this rom, so i would like it to be removed in any rom
[Samsung Galaxy S (4G Model)] quailallstar:
Anyone have good profiles for over-clocking with this rom? Setcpu or Tegrak. Looking to get some more umph out of this phone and the lag is killing me. I don't recall the lag being this bad when I first flashed this rom and I might be up for a clean install.
[Samsung Galaxy S (4G Model)] Warrenforfree:
Anyone have good profiles for over-clocking with this rom? Setcpu or Tegrak. Try this maybe you can find something int there.. http://xdaforums.com/showthread.php?t=1294815
[Samsung Galaxy S (4G Model)] quailallstar:
Thank you! I looked all over couldn't find that link! You rock.
[Samsung Galaxy S (4G Model)] Warrenforfree:
deleted
[Samsung Galaxy S (4G Model)] quailallstar:
Has anyone else had issues with the stock dialer crashing randomly while attempting to dial out? Mine does it speratically and never been able to rule out the underlying issue causing this.

Running:

Baseband - T959VUVK6

Kernel - 2.6.35.7-T959VUVKJ6-antsvx.v1.1.3

Build - GINGERBREAD.VUVKJ6-antsvx.v1.1.3

Even after a complete stock reflash with "one click" and a fresh install of Barebone this happens.

Thoughts or suggestions?
[Samsung Galaxy S (4G Model)] Beastmode:
Logcat and check to see what's making it crash?
[Samsung Galaxy S (4G Model)] mzangui:
fix permissions worked for me
[Samsung Galaxy S (4G Model)] quailallstar:
Here is my logcat. You gurus see anything broken?

Tried this and nothing.
[Samsung Galaxy S (4G Model)] bullriders:
When I try to install stock News & Weather apk I get error
[Samsung Galaxy S (4G Model)] champ1919:
You may need too manually place it into the system/app folder. I use root explorer, but, there are plenty of other file explorer programs that have root privileges.
[Samsung Galaxy S (4G Model)] bullriders:
Thanks Worked Great
[Samsung Galaxy S (4G Model)] coreya92:
READ THE OP DANGIT! READ MAN READ! Stupid questions fill these posts like crazy
[Samsung Galaxy S (4G Model)] Johnmonkey0:
Indeed, it does have the option.
[Samsung Galaxy S (4G Model)] tikay00:
Love this ROM, only one problem. How come I can't 4G speeds on data, and only edge speeds? Is there a kernel I should flash with this ROM? And I've been getting edge speeds with all the GB ROMS. Do I have to flash ICS ROM?
[Samsung Galaxy S (4G Model)] champ1919:
I wonder if you got throttled.. which carrier are you with?
[Samsung Galaxy S (4G Model)] tikay00:
T-mobile. I know for a fact that I'm not getting throttled, seeing that I never use my data, and every time I turn it on when I'm at the gym, it's on edge speeds. When I'm at the bar, edge speeds. House, edge speeds.

Does anyone else have this problem, and is there a solution? Side note, other than CM Roms, Every GB ROM I've tried gives me edge speeds.
[Samsung Galaxy S (4G Model)] Freddynic159:
Does anyone still have this rom? I'm looking for some roms to revive my Galaxy S 4G but the links no longer work.
[Samsung Galaxy S (4G Model)] 404glitch:
https://www.filehosting.org/file/details/755335/ROM-sms-T959V-GB2.3.6-antsvx.1.1.3.zip

That said, recently (well, within the last year or so) I haven't had much luck with this, and swapped out to SlimSaber on my SGS4G. The lack of space on the 'hard drive' makes it a real PITA to deal with at this point though. Even with a minimal install, I have Pandora and YouTube on there, and about 160MB of free space. Because it gets cranky at around 100MB free.

If you can find a way to make the phone think the SD card is the internal storage (I seem to remember that being possible), the sky's the limit with installing stuff. Otherwise you're pretty limited in what you can have.
[Samsung Galaxy S (4G Model)] Freddynic159:
thanks for the link. I tried to download SlimSaber but it seems that there are no links that work currently.

yeah, the storage limitation is annoying. It would be good to have a way of solving that but I could not find how to do it.
[Samsung Galaxy S (4G Model)] 404glitch:
https://www.filehosting.org/file/details/755555/Saber.zip

Unzip that, should be the SlimSaber ROM and the Gapps for it. But again, size will be a hard limit for these phones. The Barebones ROM is still good too (if you have better luck than I do).
[Samsung Galaxy S (4G Model)] AntonX:
Yeah, try it if it's not too difficult. I read someplace on the web that it can actually fix the issue. Seems like you need to do it only on first boot.
[Samsung Galaxy S (4G Model)] AntonX:
I've looked at the PowerManagerService code. It's a little strange that it's crashing there. All it seemingly does - it tries to query some screen options (like "screen_brightness_mode" or "screen_off_timeout" ) from a database (don't know which, probably related to settings), but fails to initialize a ContentQueryMap. Well, I wonder what's if the database, which is probably in the wiped /data, is not there yet, and why...

Well, the are some more weird errors, like "Package has no signatures that match those in shared user android.uid.system; ignoring!". I'm going to make a package with not re-signed framework-res.apk, maybe it still messing things up. I'll post a link later today.
[Samsung Galaxy S (4G Model)] AntonX:
Here is a ROM with original framework-res.apk certificate. If this works better we'll have to deal with CIQ some other way.

http://dl.dropbox.com/u/74713966/ROM/ROM-sms-T959V-GB2.3.6-antsvx.1.0.4.zip
[Samsung Galaxy S (4G Model)] Lawful123:
That works

This ROM worked without issue. Must be the framework-res.apk.

Surely someone on this forum has dealt with this same issue. Is anyone else helping you out?
[Samsung Galaxy S (4G Model)] AntonX:
OK, so let it be this way. All other custom ROMs modded from KJ6 have the original cert in framework-res.apk and therefore not disabled CIQ components in AndroidManifest.xml.

I left noCIQ.sh script in /system/etc that disables some CIQ stuff. It really may not be necessary as CIQ is not completely implemented in our ROM, but it will not hurt to run this script either. Have to run as root and only once is enough.
[Samsung Galaxy S (4G Model)] AntonX:
Couple recent changes:

- Added Screenshot to Power menu. Had to remove the menu title as well to fit it all on one page without scrolling. Screenshot functionality is using built-it ScreenCaptureService.

- DriveSmart and Software Updates are removed from Settings menu.
[Samsung Galaxy S (4G Model)] m0bstr:
thanks for adding the screenshot to powermenu. im downloading your rom right now

how do i install still rom fresh on my phone???
[Samsung Galaxy S (4G Model)] primus123:
I have this installed love it.

I do have one complaint.

I have had 2 problems, both from the same issue, when connecting phone to CPU to transfer files the phone shuts off starts charging, here is the problem, the battery icon comes up, shows it charging, so lets say that my battery is at 75% I unplug USB cable, reboot phone, it bots up but comes up with the connect to charger message and battery icon is in the red status. And I have to recharge the phone completely.

Anyone else with this?
[Samsung Galaxy S (4G Model)] m0bstr:
is there a way to use hancent sms for the messaging icon on the toolbar on the bottom??? like replace the stock messaging app with hancent sms but still have the samsung icon??
[Samsung Galaxy S (4G Model)] AntonX:
You mean to say it's happening only with this ROM? If not, have you tried different computer, USB cable, etc?
[Samsung Galaxy S (4G Model)] AntonX:
Use some other launcher, many of them are way more flexible. I use GO Launcher Ex.
[Samsung Galaxy S (4G Model)] mzangui:
does this rom have the controls in status bar drop down menu to toggle on/off wifi or data connection like Valhalla?
[Samsung Galaxy S (4G Model)] eollie:
AntonX Im sorry but I laugh at the "request" questions.
[Samsung Galaxy S (4G Model)] AntonX:
It's fine. ;) I actually plan on looking at the notification buttons mod when I have time. Some mods make sense to add, they improve usability.
[Samsung Galaxy S (4G Model)] primus123:
Yes only this ROM. I have 3 computers that I have tried,xp,vista and 7.

I have different cables attached to each computer so yes I tried my vista device first, that's the computer that I mainly use for all my modding etc.....then. it happened again with my win 7. Not a big deal, I started using my drop box account to transfer my files. Just didn't see anybody else mention, didn't know if I was the first.
[Samsung Galaxy S (4G Model)] primus123:
Forgot to mention I'm on 1.0.5. For above posts
[Samsung Galaxy S (4G Model)] eollie:
I agree. I just laugh at how they are presented.
[Samsung Galaxy S (4G Model)] m0bstr:
your screenshot option works perfect even on temple run!!!!!
[Samsung Galaxy S (4G Model)] AntonX:
Added Quick Panel mod. 10 toggle buttons total to make exactly two pages. It's easier to scroll with 10 than 12, you don't overshoot to the 3rd page. Set the order of buttons to my own liking, don't ask me to change it.

Tried to add a mod where you can edit and move buttons, but it's too buggy.
[Samsung Galaxy S (4G Model)] ipaq_101:
Haha looks like its less and less barebone....

But we do appreciate it!
[Samsung Galaxy S (4G Model)] AntonX:
I think I've fixed slow scrolling in stock browser in 1.0.8. Whoever uses it (I don't), test it.
[Samsung Galaxy S (4G Model)] stephen_w:
I (finally) got around to installing this ROM. I love it, man. I've wanted a close to stock ROM for a while and this one really fits the bill. Thank you!

I tested the browser briefly and didn't notice any scrolling issues.
[Samsung Galaxy S (4G Model)] tsheeley:
(Advance notice: Ignore my sig, it's ancient. I'm on a LG G2x with a rock solid install of CM7s stable branch.)

My wife has a stock GB SGS4G and I'd like to be sure I'm reading this thread right before I do anything to it...

If I root it using the "Fresh out of the box" guide, when I get to the part about flashing a custom ROM I can flash this barebones build on top of the freshly rooted stock build to de-bloat it... and I won't loose any of her apps in the process?

Has anyone tried adding on some of the tweaks and mods mentioned further down the rooting thread?
[Samsung Galaxy S (4G Model)] AntonX:
That is correct. You will only lose some preinstalled bloat.

I'm not sure why there is a step to use SuperOneClick in the guide. You can still use it, but these days every custom kernel is pre-rooted, so just use one packaged for ODIN and you'll have root and CWM right away. What I would do: 1. If still on Froyo, update to GB with KiesMini. 2. Use ODIN to flash a kernel. 3. Flash ROM in CWM.
[Samsung Galaxy S (4G Model)] lumin30:
If you notice... the guide doesn't use Heimdall or ODIN. That is the point of that particular guide. No driver issues, no phone isn't recognized issues, etc.
[Samsung Galaxy S (4G Model)] twisted03:
flashed this last night, and i must say that it is great rom...lovin it so far...