yashsingh1/xdaforums huggingface dataset:
[Sprint Samsung Galaxy S 4 Android Development] blarg:
I'm running Stock rooted NAE and NAE modem on MF9 bootloader.

Could I update the modem and then install over my existing image so I don't have to reload/resetup all my apps?
[Sprint Samsung Galaxy S 4 Android Development] blarg:
looks like dirty flash DOES work...now is there an odexed version of hotspot mod?
[Sprint Samsung Galaxy S 4 Android Development] guitardoc64:
It worked fine for me. I installed the ROM first wiping dalvik and cache, odined the firmware and everything is good.
[Sprint Samsung Galaxy S 4 Android Development] mxmr:
Updated OP with Mostly Stock NG2 v1.0 at the bottom of the post. Read there for more details. This is for those who want an aggressively debloated stock rom with a few added apps like xposed and v4a. A big thanks to [MENTION=5571003]CiDev[/MENTION] for helping me get the flashlight toggle. I may update later to make it look like it belongs with the other quicksetting toggles.
[Sprint Samsung Galaxy S 4 Android Development] CiDev:
nice rom

cheers bro, looks nice, will send you PM with customized toggles later.

It's my daughters B-Day tomorrow so after weekend.

grtz
[Sprint Samsung Galaxy S 4 Android Development] mxmr:
Happy birthday to her, relax and have fun! And thanks man everybody thank his post if you use the flashlight toggle I could not have got it working without his help :good::highfive:
[Sprint Samsung Galaxy S 4 Android Development] dbug2008:
I dirty flashed and lost my messaging app! And NO flashlight quick setting.
[Sprint Samsung Galaxy S 4 Android Development] onelovekir:
hello, was wondering if we could possibly get the flashlight toggle as a flashable zip or just the files we need to replace in a zip cuz I already debloated what i needed myself as well as the additional apps using your stock rom but would love the flashlight toggle. thanks so much mxmr!
[Sprint Samsung Galaxy S 4 Android Development] mxmr:
You need to clean flash for the flashlight toggle to show up. And I prefer hangouts just personal preference (i'll add stock messaging app back in next update) so use that otherwise just push the stock messaging app to system app set permissions and reboot.

Edit: Here is the flashlight toggle zip, flash first (thanks again [MENTION=5571003]CiDev[/MENTION] for providing the zip): https://www.dropbox.com/s/d10eqdrdqy14n9j/Flashlight_toggle.zip?dl=0

That zip adds the right files, but in the stock rom the toggle won't work now without flashing this zip, to make necessary sqlite3 edits: http://cnexus.co/downloads/getdownload.php?file=Misc/Add_flashlight_toggle.zip

I also attached the stock MMS app - Push to system/priv-app, set permissions to 644 and reboot.
[Sprint Samsung Galaxy S 4 Android Development] unomedmen1:
Can you provide the stock messaging app please.
[Sprint Samsung Galaxy S 4 Android Development] Drumrocker:
You can download all the stock apps from here http://xdaforums.com/galaxy-s4-sprint/development/sph-l720-original-touchwiz-ng2-bloat-t2865172
[Sprint Samsung Galaxy S 4 Android Development] mxmr:
Updated the post above yours with stock messaging app. Push to system/priv-app, set permissions to 644, and reboot.

If you are using the stock Rom, you can flash the flashlight toggle zip CiDev provided then CNexus's zip to add sqlite changes (also linked to in the post above yours)

Edit: Updated OP with Mostly Stock NG2 v1.1

Added Stock messaging app and calculator app back in. That is the only change, so if you've already done that or have alternative apps for those then there is no need to update.
[Sprint Samsung Galaxy S 4 Android Development] rp076:
First time Touchwiz has been on this phone since I got it last year & must say you knocked it out! Thanks for your hard work!
[Sprint Samsung Galaxy S 4 Android Development] Im a troll:
Sorry it took so long to get back to all of you...

I just did a dirty flash (only wiped dalvik/ cache) and I can confirm that everything works going from MF9 straight to this.

I will admit though, I am not sure if I should see an differences with icons. Everything looks basically the same except I now get an HD icon when calling and I have a camera icon on my lock screen.

-Troll
[Sprint Samsung Galaxy S 4 Android Development] mxmr:
The stock rom shouldn't be too different. You named the most obvious visual changes, the rest is under the hood stuff.
[Sprint Samsung Galaxy S 4 Android Development] dbug2008:
Is it ok to dirty flash 1.1?
[Sprint Samsung Galaxy S 4 Android Development] mxmr:
What rom are you coming from? If you're on Mostly Stock 1.0 you'll be fine dirty flashing, any other rom and you should do a full wipe. Honestly if you're on 1.0 the only change is I added stock MMS app and calculator app back in so I think it's easier just to push those rather than flashing a whole rom.

Let us know what works for you!
[Sprint Samsung Galaxy S 4 Android Development] dbug2008:
I'm on deodexed 1.0 mostly stock

thanks.
[Sprint Samsung Galaxy S 4 Android Development] rushco:
On Mostly Stock 1.1

Trying to get OK Google working but it's not listening. Anyone else have problems or is it just me?
[Sprint Samsung Galaxy S 4 Android Development] mxmr:
That's odd, i am encountering the same issue. I will look into this when i get off work.
[Sprint Samsung Galaxy S 4 Android Development] ParkerParker:
Didn't work for me neither yesterday ..I just deleted (Google/now) with tbu and reinstalled from play store all is working perfect now
[Sprint Samsung Galaxy S 4 Android Development] rushco:
One other thing I just noticed.

I'm using Nova launcher and if I double tap the home button to close the app and take me back to my home screen nothing happens. I have to tap, wait for app to close then tap again.

Is that the same for everyone or is that something I did? Seems like double tap home button is trying to do something but isn't programmed to do anything.

Good. Just had to uninstall and reinstall from Play Store. Thanks
[Sprint Samsung Galaxy S 4 Android Development] dbug2008:
the original music player and clock/weather widget are absent in 1.1 also. Going back to 1.0.
[Sprint Samsung Galaxy S 4 Android Development] mxmr:
Updated OP with Mostly Stock NG2 v1.2

*Fixed "OK Goggle" issues with Google Now Launcher

That is the only change, so if your "OK Google" is working, there is no need to update.
[Sprint Samsung Galaxy S 4 Android Development] mxmr:
I removed the original music player and clock/weather widget in Mostly Stock NG2 (all versions). This is because this rom is meant to be an aggressively debloated stock rom where the user can choose how to customize their phone without pre-installed crap. I will attach the original music player and clock/weather widget to this post in a bit.

You'll have to push these apps to system/app, set permissions to 644, and reboot.
[Sprint Samsung Galaxy S 4 Android Development] dbug2008:
They are still in the original version. That's what I'm using now. But thanks for the info.
[Sprint Samsung Galaxy S 4 Android Development] vadyr56:
This ROM is flawless that's for sure. Smooth as butter and quick as lightening! I am running it with the latest release of KT's kernel and using the "Green Quadcore" profile and script. Any other recommendations out there for kernels to try? I'm not necessarily looking to change kernels but I'm always willing to test out other possibilities for the sake of XDA.

The only issue I am having is getting visual voicemail to work. When people call I do receive a missed call but no voicemail notification, nor does it download to my VVM app. I have to call my voicemail box manually. Why would this be happening? I pulled the VVM app from a stock deodexed ROM and pushed it appropriately. This is what I get when I launch the app.

Edit: Off topic, but relevant to the ROM. Can someone please explain what Smart Network Mode is? As well as Network Restriction mode? Network Restriction seems to just be a master switch for data/wifi/bluetooth but if there's more to it I'd be very interested in hearing. As for Smart Network Mode I have no idea. I believe I read somewhere that it turns off wifi/data when the phone sleeps..but I have tested that theory and it does not seem to be its function.
[Sprint Samsung Galaxy S 4 Android Development] conflikt:
Will this work on the tri band s4? Thanks!
[Sprint Samsung Galaxy S 4 Android Development] vq35power:
Exchange calendar issue

on mostly_stock version

editing the build.prop and add a hash did not fix the issue. The phone starts up in swipe mode, then switches to PIN tripping exchange policy and I have to re-enable exchange security settings.

Also, the calendar sync for exchange active sync keeps crashing. Anyone else experiencing this issue?
[Sprint Samsung Galaxy S 4 Android Development] jam97:
NG2 v1.1 link, please?
[Sprint Samsung Galaxy S 4 Android Development] vq35power:
Installed MK2 deodexed from an older thread on xda. Configured exchange active sync and PIN. dirty flashed to NG2 (non-mostly_stock version). Working flawlessly now.

I really like the mostly_stock version, unfortunately it's missing the exchange calendar apk which I absolutely need for a merged exchange and gmail calendar.
[Sprint Samsung Galaxy S 4 Android Development] ryan2202:
Is there a list of whats been "debloated" on the Mostly Stock version of this ROM? Im interested in going back to a stock type of ROM but would like to know what is or isnt there before I go through the flash process. Im assuming anything thats missing I can probably pull from the stock version of the ROM that isnt debloated?
[Sprint Samsung Galaxy S 4 Android Development] ParkerParker:
Almost sounds like using Odin to go back to completely stock would be your best bet
[Sprint Samsung Galaxy S 4 Android Development] vq35power:
No issues anymore after I downgraded and reinstalled the regular deodexed NG2 version.

Mostly stock version kept crashing when my exchange calendar would try to sync. Other than that, the rom was great and lightweight!
[Sprint Samsung Galaxy S 4 Android Development] vadyr56:
I've confirmed, or at least I think I have, that it is something with the ROM itself. I flashed a stock rooted NG2 ROM and VVM is working. Is it something with the debloat that has been done possibly? I would really prefer to be able to use your ROM with the debloat so any help with this would be appreciated. Not trying to point fingers, as this ROM is awesome otherwise, but I can't seem to figure out what else it may be.
[Sprint Samsung Galaxy S 4 Android Development] rushco:
A follow up to my double tap home button problem.

I downloaded and installed the s voice apk and enabled the double tap home button option. Then I disabled the double tap home button option. Then I could quickly double tap the home button and it will close what I'm in and take me to the home screen. Then I uninstalled the s voice app.

Perfect ROM now and I have it set up just how I like it.
[Sprint Samsung Galaxy S 4 Android Development] vadyr56:
Yeah I tried that, just so you know. Hey man no worries at all, this ROM is pretty solid besides the couple of hiccups we seem to be coming across. Great work with everything, and please keep us posted if there's anything we can do to help troubleshoot or test anything you need. I feel bad bothering you with the issues, but I'm glad you're open to feedback and willing to work with us to fix things; that's what makes XDA such a great community. Would there be any chance of you uploading a version of your ROM that has your toggles and tweaks and de-knoxed, but not debloated in the meantime? Or even just a zip for those toggles, I love the way they look and I'm not sure if the stock ROM has some of them included. If not that's totally understandable, thanks again for your hard work! I'm usually pretty willing to test and troubleshoot as long as I have the time and can risk having some issues with my phone temporarily depending on my schedule, so if you need help with anything like that please feel free to PM me. I am by no means a dev, I don't know much about coding and the really deep stuff, but I am always willing to help in any way that I can. Don't hesitate to ask!

Edit: Now that I think of it, would it be a bad idea to flash your ROM, and batch restore all the stock apps and set permissions, and then de-bloat the obvious stuff that I don't use? Or do you think that would cause issues? I may try that and see if it works. At best, I'll spend some time tonight and see if I can't help figure out the other issues people have brought up, along with my voice mail issues. Not seeing the old lady tonight so I've got some time to nerd out :)

Edit2: I tried batch pushing the stock apps and it just seemed to mess a lot of stuff up. If you'd be able to provide a zip for your toggles I thing going with stock rooted for now might be my best option. Or if anyone can explain to me how to pull the files for the toggles myself I'd gladly do that. I have no idea how to theme and customize at that level unfortunately.
[Sprint Samsung Galaxy S 4 Android Development] hotrodssnova:
Has anyone else noticed after a reboot that there's no security lock screen. All I have to do is a screen swipe. Then I shut the screen off with the power button and then I have the pin lock screen. I would like to see the pin lock screen upon a power on of the phone. Is there a setting I'm missing?
[Sprint Samsung Galaxy S 4 Android Development] mxmr:
Stock Rooted Deodexed NG2 Refitted

Hey guys, I updated OP with stock rooted deodexed NG2 refitted.

This is a completely stock rom with a few small exceptions:

*added root, busybox, init.d support, deodexed, hotspot mod, hotspot/flashlight/smart network/network restriction toggles

*removed knox

This is for those who want the extra goodies of Mostly Stock, but are having issues with exchange, voicemail, lockscreen etc.

The two roms have opposite philosophies:

*Mostly Stock aims to be an aggressively debloated stock rom with a few extras and addons. This is meant to be a minimal base that users can customize to their own preference by adding back mods and apks I have removed.

*Stock Refitted IS NOT DEBLOATED, so this means users will get the benefit of Mostly Stock's mods (such as hotspot and flashlight toggle), but I leave customization via debloating up to the user. This also does not have extra system apps like xposed or v4a. So Stock Refitted is a lot closer to a true stock rom, while Mostly Stock is going to be a lot more minimal base but with extra apps/features.

I will working on fixing the bugs and kinks in Mostly Stock when I have time, but in the meantime I wanted to give everyone another option, in case they want the goodies from mostly stock but are having issues with the rom.

Cheers!:good::cool:
[Sprint Samsung Galaxy S 4 Android Development] vadyr56:
Tested it all night last night and all day today and it runs like butter, I can't believe its not butter! I'm running on KTs last release with the Green Quad Core profile and script and it runs with no lag, will idle for days, and pulls 4-5 hours screen time no problem at all. I debloated pretty heavy myself but left most of the true internals intact. Data and WiFi on all day too, not connected to Wifi for 80% of the day normally. Give it a go.

And for those who want Xposed and VP4, I'd give links if I wasn't on my phone but they are easy to track down. Happy flashing!
[Sprint Samsung Galaxy S 4 Android Development] neswii:
This is a great rom. So far I have no stability problems after 3 days on it. Can't believe so much has been removed and this still remains this stable. Great job.
[Sprint Samsung Galaxy S 4 Android Development] ccnd8:
I'm not sure if it was a bad download or not. During flashing the [ROM] Stock Rooted Deodexed NG2 Refitted, I got a few error messages in recovery mode. When finished flashing, on the ROM I don't see SuperUS, no flashing toggle, and my hotspot doesn't work. I will redownload the rom again, just not sure if anyone has the same issues?
[Sprint Samsung Galaxy S 4 Android Development] mxmr:
Can anyone else confirm?

Edit: Did you check the md5sum, and what was your flashing procedure?
[Sprint Samsung Galaxy S 4 Android Development] ccnd8:
I redownload it again, and same errors. I flashed using TWRP. Is it possible to make a TAR file? I think it's easier to flash TAR files to make it easier on people. Thanks! I will try download your other ROM see if it's the same, I see most people flashed that and haven't report an issue.
[Sprint Samsung Galaxy S 4 Android Development] mxmr:
Did you check md5sum? Did you do a full wipe before installation? What version of twrp are you using? Have you tried Philz? What error is the recovery showing? Let us know if the other one works for you.

Edit: If all else fails, try flashing with philz recovery: https://goo.im/devs/philz_touch/CWM_Advanced_Edition/jflte/philz_touch_6.57.9-jflte.tar.md5/. You'll need to flash this via odin. This is the latest philz at the time of this post.
[Sprint Samsung Galaxy S 4 Android Development] ccnd8:
I'm not exactly sure what you mean by checking md5sum. I'm using twrp-2.8.0.1 version. I'm lead to believe that the error messages was "something footer too long". I think the recovery is the culprit. However, I'm searching up Philz recovery, and not exactly finding the correct infos on how to install or what is the newest and correct version to install on the Sprint S4. Its been a while (since S2) that I was installing ROMs on my phone, so I'm a bit rusty. Any help will be appreciated. Thanks!
[Sprint Samsung Galaxy S 4 Android Development] mxmr:
Read my edit above.
[Sprint Samsung Galaxy S 4 Android Development] dinaps86:
Hey I'm just wondering which Rom did you use Stock deodexed/odexed? Reformatted? Mostly stock and your using KT's 07/12/14 build with NG2 modem and firmware? Sorry for all the questions also what's Green Quad-core is that an experimental profile ? Can you link it?

---------- Post added at 02:55 AM ---------- Previous post was at 02:54 AM ----------

Ohhh n one more what recovery did u use ?
[Sprint Samsung Galaxy S 4 Android Development] mxmr:
If you're unsure, use the recovery i linked to above. At the time of this posting, that is the latest version. You'll have to flash with Odin
[Sprint Samsung Galaxy S 4 Android Development] ccnd8:
Definitely was something wrong with my recovery. I had to reinstall stock rom with stock recovery, and then Odin the Philz recovery from your link up top. Then everything just started working fine. Thanks for all your help!!! :)
[Sprint Samsung Galaxy S 4 Android Development] vadyr56:
Glad you got it figured out. I was able ro flash using the latest TWRP with no issues.

I'm running the refitted release of this ROM which is deodexed. I wiped my phone in TWRP and flashed with no issues. And yes I'm running KTs 7/12 release with NG2 modem and firmware with no issues. The Green Quadcore profile and script were experimental but there are final releases of both posted in the KTweaker Shop thread, should be a post closer to the end of the thread. If I can pull a link or throw them on my Dropbox later I will. Hope this helps, bud.
[Sprint Samsung Galaxy S 4 Android Development] Alpine-:
Wow, thank you. Just what I was looking for. I wanted a full NG2 rom working with NG2 firmware. Some of the other roms have issues with the NG2 firmware and hotspot wont work.

Mostly Stock NG2 v1.2 is exactly what I needed. One suggestion that would be AMAZING - 3minit's battery MOD. You know how popular 3minit was and its back under dev. The FULL 3minit customization app is not done/released yet. But the battery mod would be a cool addition to Xposed in this "mostly stock" ROM.

Thanks again!
[Sprint Samsung Galaxy S 4 Android Development] lancer1991:
Having a bear of a time. Tried the mostly stock and the swipe lockscreen wouldn't take any input. Every once in a while it would let me in. Never could get wifi to come on. Decided to try stock deodexed. Swipe lockscreen seemed to work better, phone was slow and appeared to lockup/freeze every now and again. Still couldn't get wifi to work. At this point I'm stuck and screwed as the backup I did yesterday seems to have dissapeared. Using Philztouch. Any help would be great.

EDIT: Tried MK2 and NAE modems with no luck either.

EDIT2: Got home and went through steps again and seemed to get it to work on another computer. Tried every port and cord I could at the office, so not sure. One issue I still seem to see is for some reason powering off doesn't seem to stay, wants to reboot itself rather than stay shut down.
[Sprint Samsung Galaxy S 4 Android Development] felibon:
Has anyone tried ##72786# reprovisioning code with success? I've tried and nothing happens
[Sprint Samsung Galaxy S 4 Android Development] Alpine-:
Ouch, I need that too. Work related calendar/email synch is crucial for many. Any chance we can have that added back in next build of Mostly Stock? I'd consider stock working exchange email/calendar pretty crucial to a "stock" ROM. But perhaps I'm the minority there.

Or could you upload a flashable .zip to get the missing Exchange apk's back in there?

Awaiting next version! I think you should keep updating/adding what you consider crucial MODs while still maintaining the "mostly stock" approach. It would be a very popular ROM like TriForce was before he stopped working on it.
[Sprint Samsung Galaxy S 4 Android Development] cmonsterf50:
Wifi not working. Baseband doesn't appear to flash.

Thoughts anyone?

I haven't read through the whole thread and it's kinda late.

I did a full wipe and installed Mostly Stock 1.2. Went back and flashed NG2 modem as my Wifi didn't work. And there lies my problem ... it still doesn't work. When I check the baseband version it shows NAE. I'm using Odin 3.09.
[Sprint Samsung Galaxy S 4 Android Development] GeneralSky2004:
Need help flashing the modem..

I put it in the phone section of Odin. It flashes with no issues but when it reboots, in still on NAE. Not sure what I'm doing wrong. Wrong Odin version? Wrong Odin settings?

The ROM is running fine though, minus Wi-Fi of course.
[Sprint Samsung Galaxy S 4 Android Development] Mudavo:
Are you booting into download mode from a fully powered down state? If not, that will cause the modem to not flash correctly.
[Sprint Samsung Galaxy S 4 Android Development] GeneralSky2004:
I was using the 4 in 1 reboot menu to get there. I'll try doing it the other way and see if it changes. Will any version of Odin work?
[Sprint Samsung Galaxy S 4 Android Development] Mudavo:
Should. If it doesn't work try 3.07
[Sprint Samsung Galaxy S 4 Android Development] GeneralSky2004:
Thank you. I'll try it in a few and report back.

Edit: It worked. Thanks!
[Sprint Samsung Galaxy S 4 Android Development] cmonsterf50:
Poof .. what do you know that works!
[Sprint Samsung Galaxy S 4 Android Development] agentcelsius:
I installed ng2 mostly stock 1.2 and the S-View flip cover seems to work but the clock is missing anyone else having this problem? Any ideas on a fix?
[Sprint Samsung Galaxy S 4 Android Development] jam97:
My daily driver is //NG2 stock Refitted// rom, but I lost the flash toggle after I did a reset in the notification panel editor.

How to return it back?

Thank you so much,
[Sprint Samsung Galaxy S 4 Android Development] dbug2008:
Is anyone having trouble receiving texts? It's driving me crazy. half the time I don't get them.
[Sprint Samsung Galaxy S 4 Android Development] robogoflow:
Is there any all in one s5 zips to theme this rom or any stock deodexed? I really like the s5 design and don't want to have to install each apk one by one.
[Sprint Samsung Galaxy S 4 Android Development] agentcelsius:
ok correction, it doesn't work at all. it senses the s-view cover but the functionality is all messed up. is it just me? should I reflash?
[Sprint Samsung Galaxy S 4 Android Development] GeneralSky2004:
Flashed Ktoonsez kernel.. Phone shuts around 20% battery. Not sure why. Any ideas?
[Sprint Samsung Galaxy S 4 Android Development] vadyr56:
Never had that issue personally and I'm running KTs kernel also. Are you running the latest release or an older one? What profile and script? Does it reboot or shut off? Try dumping a logcat after you start back up and maybe that will point you in the right direction.