yashsingh1/xdaforums huggingface dataset:
[T-Mobile Samsung Galaxy S II SGH-T989] LimeliME:
Testing I/O Schedulers settings, right now there is only two: Loop and Deadline

1) Noop

Inserts all the incoming I/O requests to a First In First Out queue and implements request merging. Best used with storage devices that does not depend on mechanical movement to access data (yes, like our flash drives). Advantage here is that flash drives does not require reordering of multiple I/O requests unlike in normal hard drives.

Advantages:

Serves I/O requests with least number of cpu cycles. (Battery friendly?)

Best for flash drives since there is no seeking penalty.

Good throughput on db systems.

Disadvantages:

Reduction in number of cpu cycles used is proportional to drop in performance.

2) Deadline

Goal is to minimize I/O latency or starvation of a request. The same is achieved by round robin policy to be fair among multiple I/O requests. Five queues are aggressively used to reorder incoming requests.

Advantages:

Nearly a real time scheduler.

Excels in reducing latency of any given single I/O.

Best scheduler for database access and queries.

Bandwidth requirement of a process - what percentage of CPU it needs, is easily calculated.

Like noop, a good scheduler for solid state/flash drives.

Disadvantages:

When system is overloaded, set of processes that may miss deadline is largely unpredictable.

-the above information came from HERE-

Right now I'm on noop and seems to be very stable right now :)
[T-Mobile Samsung Galaxy S II SGH-T989] UNiqEz:
Welp....

My phone took a sheet when I had to use it the most...

The WiFi thing is bad if your phone freezes in your pocket while this fkr eats up the battery...
[T-Mobile Samsung Galaxy S II SGH-T989] pahlevan:
youtube drains the battery

on the stock rom my son could play youtube for hours but on the CM 12 rom from February 13, 2015 the batter drains very fast.

is there a way to tweak that so the battery lasts longer?
[T-Mobile Samsung Galaxy S II SGH-T989] UNiqEz:
If you find a way tell me about it because you would have saved my life.
[T-Mobile Samsung Galaxy S II SGH-T989] sw6lee:
Plz save my life too. :)

But for me both lollipop and kitkat drains battery. Especially stand by time in mobile data. Is there any way to reduce battery drain in this situation? I also posted a question in Q&A section btw..
[T-Mobile Samsung Galaxy S II SGH-T989] pahlevan:
starbucks app and wellsfargo app

Hi,

I tried to use starbucks app and wellsfargo app. When I go to pay option of Starbucks app the screen goes black! I have same issue with Wellsfargo app when I lunch the app the screen just goes black. There are widgets there but the screen just all black.

Anybody know why?

Ali
[T-Mobile Samsung Galaxy S II SGH-T989] LimeliME:
What Rom version are you on? because as of 3/4 Rom and higher it should been fixed :)
[T-Mobile Samsung Galaxy S II SGH-T989] pahlevan:
My rom is from February 13, 2015. Is there an easy way to update my rom without deleting all the user data? I am asking because the partitioning is different with the new rom.
[T-Mobile Samsung Galaxy S II SGH-T989] LimeliME:
Photos, videos, messages, contacts, and etc will be erased for sure. But app and app data can't be deleted if you have a external SD card. (I think it won't) So make sure you backs up everything from your phone to your SD card or something.

Backup by boot into twrp recovery, tap on backup, check everything in the box and enable compression (saves space, but you can choose not do this), then swipe and let it backup

then go back to home menu, go to wipe, advanced wipe, check internal storage, tap on repair or change file system, press EXT4, then swipe.

after you have repaired / wiped your internal, I guess you restore the Data files from the restore section of twrp and flash the data-transfer package.

Then flash Sultan's recovery and flash the 3/18 Rom (don't do 4/18 if you want your mobile data to work)

wait for it to reboot and done.:good:

-Click Here For The Original Instruction-
[T-Mobile Samsung Galaxy S II SGH-T989] pahlevan:
What Programm is recommended to backup Photos, videos, messages, contacts, and etc?
[T-Mobile Samsung Galaxy S II SGH-T989] LimeliME:
I would just backup straight off of the recovery but the one I'm using for those things is: 360手机助手(yeah it's Chinese so don't use it)

I guess another option you have is Airdroid which is not Chinese but English. But you needed to have the App on your phone and program on your PC for it to work. :good:
[T-Mobile Samsung Galaxy S II SGH-T989] Krebs830:
I believe TWRP defaults to the internal SD, so in the backup menu be sure to set the destination to external SD.
[T-Mobile Samsung Galaxy S II SGH-T989] LimeliME:
There is a reason why I say you needed a external SD card LOL, maybe I'm not detailed
[T-Mobile Samsung Galaxy S II SGH-T989] markusrow:
0. You could make a Nandroid (TWRP Recovery) backup. This is a good habit.

1. If your contacts are all attached to your Google account, then they will be backed up on Google and automatically restored..

2. Search Google Play for a SMS and a Call Log backup APP. Do those backups.

Titanium backup is popular for backing up APPs and App Data. It can also pull Apps from your Nandroid (TWRP) backup.

3. You could connect via USB to your PC. Copy from Internal SD and External SD, Photos, videos to your PC. Remember to copy your SM and Call Log backups and any other backups like Titanium backups and your Nandroid (TWRP) backup to your PC. Airdroid is a popular APP for transferring between phone and PC over WiFi. It is a little quirky on 3/18 but it works. However simply using USB connection to the PC and file manager on the PC is less confusing.

4. If your SD Card after the virtual re-partitioning exercise is now too small then you can balance your Music Videos Photos data across the two SD cards. Use any file manager . I use Root Explorer.
[T-Mobile Samsung Galaxy S II SGH-T989] pahlevan:
I upgraded to the new version and I didn't have to back up ams or contact not callow. thank you
[T-Mobile Samsung Galaxy S II SGH-T989] Lourde:
I was able to work around my USB problems by backing the contents of my internal microSD to my external and handling it that way. Having the common trouble with 4/18, losing my network connection and having it black out in my pocket.

I'm going to try 3/18. Do I need gapps 5.0 or 5.1?
[T-Mobile Samsung Galaxy S II SGH-T989] WRZteeler:
You'll need to use gapps 5.0. I had the same problems with 4/18 so reverted back to 3/18 a few days ago, and had to go back to gapps 5.0.
[T-Mobile Samsung Galaxy S II SGH-T989] UNiqEz:
Told these hoes but as you know they don't listen lol
[T-Mobile Samsung Galaxy S II SGH-T989] Lourde:
Thanks. I tried these pico gapps http://www.androidrootz.com/2015/03/download-android-50x-lollipop-gapps.html, but flashing them gives me an error. Says they need to be flashed on top of older gapps?
[T-Mobile Samsung Galaxy S II SGH-T989] LimeliME:
You need to flash the micro version of the Gapps

It will be also better to tell us what the error says and what recovery did you flash it in ;)
[T-Mobile Samsung Galaxy S II SGH-T989] RogueCoyote:
I used the pico version without any issue
[T-Mobile Samsung Galaxy S II SGH-T989] LimeliME:
Well... Micro Version was the original Gapps for this Rom when the Gapps links are available, it is possible to use the pico
[T-Mobile Samsung Galaxy S II SGH-T989] cameraddict:
I'm guessing I missed something about the gapps package, though I have been following this project pretty closely. I thought one of the benefits of the virtual re-partitioning was being able to use any size gapps package.
[T-Mobile Samsung Galaxy S II SGH-T989] .moidjem:
After installing 12.1 (April 18), I can't install Gapps. Keep getting error that these Gapps are for Android 5.0.x only. Any help? :confused:
[T-Mobile Samsung Galaxy S II SGH-T989] LimeliME:
You know that CM12.1 is actually lollipop 5.1 right? That's why it won't work if you flash the 5.0.x gapps. Here is the 5.x Gapps
[T-Mobile Samsung Galaxy S II SGH-T989] .moidjem:
Thanks so much for reaching out. Unfortunately, those were actually the ones I tried to install, sorry I didn't mention that earlier.:crying:
[T-Mobile Samsung Galaxy S II SGH-T989] LimeliME:
Can the Rom 4/18 slow or not connecting to the mobile network due to conflict with the baseband ?:confused:
[T-Mobile Samsung Galaxy S II SGH-T989] cristi99:
when will be next update? i need mobile data :crying:
[T-Mobile Samsung Galaxy S II SGH-T989] LimeliME:
SultanXDA says he will work on it when he feels like it, so we probably got to wait for his "interest" to come :) He had other things to work on. You can flash back to the 3/18 Version, the mobile network still works on the 3/18. (If you are wondering where is the download for the 3/18 now, it's here)

P.S: You could try NoSpamDan's Candy and Slim Rom which he/she claims to have the mobile data/network fixed (but again, it's in testing and alpha not stable)
[T-Mobile Samsung Galaxy S II SGH-T989] obscuresword:
No ETAs lol.
[T-Mobile Samsung Galaxy S II SGH-T989] MDKAOD:
I had 3/18 but had terrible charging problems. Possible related to wakelock, but I've had issues with wakelock on the CM11 KitKat as well.
[T-Mobile Samsung Galaxy S II SGH-T989] LimeliME:
Maybe charger or battery problem since I have no problem with mine (after getting a new battery from ebay )
[T-Mobile Samsung Galaxy S II SGH-T989] MDKAOD:
I considered that, but I'm trying two different batteries, half dozen cables, and 3 chargers. Battery screen shows the awake bar as blue as long as the phone is turned on. Wakelock detector shows that the CPU isn't sleeping thanks to Google Play Services keeping the CPU alive.
[T-Mobile Samsung Galaxy S II SGH-T989] LimeliME:
that could be a battery draining problem.. Try reflash the gapps (5.0.x one) and then see if the problem continues, if so then manually turn the google play service off:)
[T-Mobile Samsung Galaxy S II SGH-T989] MDKAOD:
I reflashed this ROM and Gapps5 and had the constant wakelock from Google Play Services, again out of the box, disabling the service stopped the wakelock. That was helpful, so thank you for that. I'm still having charging issues on this rom. Less than 5% gain while plugged in overnight. Any suggestions for that? Charging wasn't an issue on previous ROMs.
[T-Mobile Samsung Galaxy S II SGH-T989] Lourde:
I found them myself before I saw Lime's post, but those were the gapps that I needed.

As for Google Play Services, check Settings - Privacy - Privacy Guard. The three dot menu in the upper right has an option to Show built-in Apps; make sure that's checked. You should be able to long press Google Play Services on the list and control its access to wake the phone, maintain wakelock, etc.
[T-Mobile Samsung Galaxy S II SGH-T989] LimeliME:
No sure if this post helps, but feel free to check it out. Another solution could be either turn on airplane mode when charging or just turn off your phone and let it charge. :)
[T-Mobile Samsung Galaxy S II SGH-T989] MDKAOD:
Battery drain was solved by disabling the Play Services. The 5% gain overnight was in airplane mode! D: Charging the device while off works fine, it charges to 100% in a couple of hours. But that's not ideal since I need the device for my alarm in the morning haha

[Edit] I went digging and installed the micro gapps that you linked In post 1045 and it's possible the charging issue may have been resolved. More testing is needed.
[T-Mobile Samsung Galaxy S II SGH-T989] LimeliME:
I don't think it's Gapps' problem since I have the Stock one installed and no charging problem like you mentioned, but I had messed with my phone's settings quiet a lot. Like changing I/O scheduler to noop instead of deadline, turned off scanning always available in advanced Wi-Fi settings, Turned off NFC in more for wireless and networks, having clean master disabled startup apps, auto hibernate apps with Greenify, and having a wokring Xposed modules on my phone. (these are things I did [best of memory] to slow down battery drains, but I have probably done more tweaks than what I have mentioned)
[T-Mobile Samsung Galaxy S II SGH-T989] cristi99:
your right about sultanxda. i allready tried these roms and the best is this rom :D
[T-Mobile Samsung Galaxy S II SGH-T989] dreflashnoob:
Greeting all,

Am new to the whole process of flashing/modding my phone. I'd like to put the most stable version of CM Lollipop on my phone which is a Samsung Galaxy S2 (SGH-T989).

I want everything to be working even if its not the absolute latest version of Lollipop. I only have one phone and I cannot afford to have this phone die on me. Everything is working perfectly fine on my phone, its running the T-Mobile update of 4.1.2 and the battery is fine.

When I say I want everything working on my phone am referring to the basic necessities of today's smartphone such as Mobile Services, Mobile Data, Wifi, Google Services (Gmail, Drive, PlayStore), Camera, Whatsapp, Skype and so on.

Can somebody please point me in the right direction with respect to the right CM version, and everything.

Much appreciated. Thank you.
[T-Mobile Samsung Galaxy S II SGH-T989] LimeliME:
If you are not really familiar with Androids and what it can do, I recommend you to stay at 4.1.2 Stock Rom. Doing Rom Flashes can brick your phone if you don't do it carefully.

But if you are feeling Adventures and wants the latest Android then go ahead, but we will not be responsible for you brick your phone.

There is not stable lollipop for Hercules(A.K.A: SGH-T989) right now (as 5/14/2015), 4/18 Rom of Sultan's Lollipop currently had mobile network broke, but 3/18 Rom has it working. But it's still in beta and does have bugs and etc. If you want a stable latest android rom then I will recommend you to SultanXDA's Kitkat Rom. Which has everything working out of the box. And I have posted a instruction for those who didn't know how to flash a Rom also. (The instruction is mainly for Kitkat but can flashing lollipop will work too but with a different Rom and different Gapps [DO NOT FLASH THE WRONG GAPPS])

Wish you luck, if you have anymore questions, feel free to reply :)

Edit: You probably needed to root your phone first before beginning the process, rooting the SGH-T989 can be found here

AND..... 5/15 Build just uploaded, should have the mobile and a lot more bugs fixed :)
[T-Mobile Samsung Galaxy S II SGH-T989] Sultanxda:
New build uploaded with everyone else's modem fixes.
[T-Mobile Samsung Galaxy S II SGH-T989] LimeliME:
Mobile Network is WORKING :D YAY :cool::good::highfive: Nice work SultanXDA

Everything else seems to be functioning pretty guwd :good::good::good::good:

EDIT: It does have a bit slow start (Not really slow but not really fast either) and says no sim card at start
[T-Mobile Samsung Galaxy S II SGH-T989] Apeaksenuh:
[MENTION=6334923]LimeliME[/MENTION] turn off OK Google and that should fix the sound problem
[T-Mobile Samsung Galaxy S II SGH-T989] cristi99:
if i dont make the partition the rom will work?
[T-Mobile Samsung Galaxy S II SGH-T989] YeshuaGnR:
No, It won't...
[T-Mobile Samsung Galaxy S II SGH-T989] UNiqEz:
It booted in 15 seconds or 30 seconds the second time I turned it on lol

(I was using a Chinese battery but popped in the original one real quick to see if it works, good news)
[T-Mobile Samsung Galaxy S II SGH-T989] markusrow:
No it will not work. The ROM will only flash and run properly, if you do the virtual partition as instructed before flashing the ROM.
[T-Mobile Samsung Galaxy S II SGH-T989] MDKAOD:
Seems to work great. Can I get some info on the wakelock fix that was implemented? I used this post to disable the wakelock culprits, but now I can't seem to turn them back on.
[T-Mobile Samsung Galaxy S II SGH-T989] zeekoshrub:
Best ROM ever. Which launcher and theme do you guys recommend?
[T-Mobile Samsung Galaxy S II SGH-T989] LimeliME:
It all depends on your taste. If you wanted a review of which one is the best then you can use this website.

My recommendation is (this is my opinion, so don't come complain to me if you don't like it :p)

- [currently] Google Now Launcher (Reason I choose this is because it matches lollipop's material design. I mean it's from google it self, who developed Android lollipop. Another reason is you want a good launcher that don't make you pay to get all feature. If you want to use this, disable Ok Google Feature since it have interference with Audio on this Rom.)

-Action Launcher 3 (I kind of like the features of this launcher. But in order to use full feature you have to pay a $4 fee to pro version. [I'm poor :(] I will recommend this if you have extra dollar in your account)

-Smart Launcher (I would recommend this if you are a lazy *** and don't like to organize your apps all the time. This launcher keeps them neat and it also simple to use. It's free to use app but you have to pay if you wanted the pro features [jt's a seperate app] like having multiple widgets, etc. Overall, it's a simple launcher)

Add On: Looking for themes, make sure you looked for CM12 themes. Again here is another website to help you decide

Here I'm reminding you again that Android Launchers are all based on your taste. Everyone launcher is preference is different. Hope you find this helpful to you.;):good::fingers-crossed::highfive:
[T-Mobile Samsung Galaxy S II SGH-T989] obscuresword:
Honestly, the stock launcher is pretty good. I usually switch to Nova Launcher as soon as possible, but the stock launcher is pretty smooth. Themes are based on personal taste so I would suggest to try some out yourself to see if you like them.
[T-Mobile Samsung Galaxy S II SGH-T989] JukiCro:
This last update works so great I got boner:D

thx man keep it up:good::good::good:
[T-Mobile Samsung Galaxy S II SGH-T989] newmab:
5-15-15 Update

Need a little help with this latest update. All works well for me, except google play.

Keep getting the google play services has stopped pop-up and it will not load the play store when I open the app.

I tried clearing the data on the google play and google services and even removing my google account and starting over, but

when I try to log back in it times out saying it cannot connect to server.

Any help is greatly appreciated.
[T-Mobile Samsung Galaxy S II SGH-T989] LimeliME:
Make sure you flash the Gapps link the sultan Has provided :)

(Note: Click Download Now instead of download)
[T-Mobile Samsung Galaxy S II SGH-T989] zeekoshrub:
It did that to me when i was using 5.0 gapps. You gotta get 5.1 gapps. For the latest update i used dhacker gapps that they put a link to in the downloads section of the first post.
[T-Mobile Samsung Galaxy S II SGH-T989] newmab:
Thank you.

I knew it had to be something simple like that. I didn't pay attention to the date of the Gapps update or the version.

---------- Post added at 08:53 PM ---------- Previous post was at 08:43 PM ----------

Thanks again for all of your work on this project.
[T-Mobile Samsung Galaxy S II SGH-T989] gravitysandwich:
Hello.

trying to update my s2 and looks like I have to repartition it.

I tried to download the latest modded twrp sultan has made but it gives an error:

Unexpected response from the server:

So if anyone can reupload it that would be great.
[T-Mobile Samsung Galaxy S II SGH-T989] LimeliME:
I can download the SultanXDA's TWRP recovery just fine, but here is the file :)
[T-Mobile Samsung Galaxy S II SGH-T989] UNiqEz:
Try using other gapps or reflash them.
[T-Mobile Samsung Galaxy S II SGH-T989] cpnfantstk:
I now see that SeLinux is now permissive instead of enforcing on this new kernel. I use a lot of banking apps and also banking within the browser. Should there be a security concern since the policies are no longer enforced.? What about rogue apps trying to do it's thing?Thanks. Oops.. this was supposed to go in Sultan's KK thread.. I guess the same applies here.
[T-Mobile Samsung Galaxy S II SGH-T989] newmab:
That worked like a charm.
[T-Mobile Samsung Galaxy S II SGH-T989] Sultanxda:
Derp, didn't mean to disable SELinux in KitKat, but then again SELinux isn't enforced very well in KitKat. SELinux does improve security a lot (and it happens to be the crux of a lot of security in Lollipop), but there are other forms of security as well. Banking apps request a secure framebuffer when they're open (that is secured in the MDP drivers in the kernel), so attackers can't see your screen when the secure framebuffer is active (try taking a screenshot while a banking app is open and see what happens).

Even with SELinux disabled, security is still probably better than it is with the official 4.1.2 update from Samsung :p I haven't gotten around to setting up SELinux yet because there were more important things that needed to be fixed, and I don't know how to set up the SELinux policy exceptions.
[T-Mobile Samsung Galaxy S II SGH-T989] cssoz:
i wipe internalSD and flash the newest CM 12.1 again then using the sultan gapp link for gapps. flashed Gapps again still doesn't appear to be working. no Google Apps at all :crying:

can anyone help>? thanks
[T-Mobile Samsung Galaxy S II SGH-T989] markusrow:
Cssoz Interesting. I wonder whether the internalSD wipe could break the virtual partition. Just a thought.
[T-Mobile Samsung Galaxy S II SGH-T989] Lumamaster:
Well, going to attempt to flash this again. Hopefully it doesn't end up like last time where my phone got stuck in a bootloop.
[T-Mobile Samsung Galaxy S II SGH-T989] Lumamaster:
Yyyeeesss!!!!! It works! Finally!
[T-Mobile Samsung Galaxy S II SGH-T989] LimeliME:
You are not suppose to wipe the internal SD card, unless you are trying to do a virtual partition. If it don't work for you then flash this Gapps (may not work and be a bit outdated):)

I have flashed this when the gapps are not available (a different one but simular), it should work.
[T-Mobile Samsung Galaxy S II SGH-T989] Seoulja:
bricked

Nice.. repartitioned... flashed ur twrp... Reboot to recovery.... never made it to recovery.. thanks gj!
[T-Mobile Samsung Galaxy S II SGH-T989] talksickisil:
I've been on the Feb 3 version since February ( 3 months on the same ROM might be a personal record for me lol ) but anyway, I'm very tempted to try the newest build. But since the Feb version hasn't given me any issues my question is, if I flash the newest but decide to revert back, will this be an easy task when cosidering the virtual reparation?
[T-Mobile Samsung Galaxy S II SGH-T989] sagirfahmid3:
OMGGGG YEEESSSSS!! GUYS, EXT4 FILESYSTEM ON EXTERNAL SDCARD IS FINALLY, PROPERLY SUPPORTED!

Screw you exfat and fat32! Ext4 FTW! No more lame as hell 4GB filesize limit, and proper permissions management support :D
[T-Mobile Samsung Galaxy S II SGH-T989] LimeliME:
Is your phone able to boot into download mode? If yes, then your phone is not completely bricked, you can still revive it :D

First try this post that I have posted a while back to help another user get out of the brick/soft boot (forgot). If it works then you can restart the process there

If that doesn't work then you might have to go back to stock SGH-T989 Rom. Which the tutorial of how to can be found here. I have soft-bricked my phone once and have used this to bring it back (download of the original tar can be found here also [click download now])

Hope this helped you get out of the soft-brick, feel free to reply the result or questions :fingers-crossed:
[T-Mobile Samsung Galaxy S II SGH-T989] sagirfahmid3:
Just a minor bug report for the status bar swipe brightness feature: brightness levels twitch around a lot from being very bright to being very dim, even when swiping the bar really slowly.

Is there a way you could add a sort of delay to prevent this from happenning?

Edit: Major bug: I'm getting sleeps of deaths during idle periods, randomly. Could be from 30 minutes to 2 hours+. Any ideas how to troubleshoot? Phone freezes completely and I have to poweroff and reboot.
[T-Mobile Samsung Galaxy S II SGH-T989] Seoulja:
I wiped all the data during the repartitioning step and then installed the twrp then got bricked trying to reboot to the new twrp. I can boot to download mode but not recovery mode. so im assuming my only option is to odin back to stock and retry the whole thing over again. ill try your tip and thanks for your tip even if it doesnt work.