yashsingh1/xdaforums huggingface dataset:
[T-Mobile Samsung Galaxy S II SGH-T989] ulibube:
Hanging shutdown

Shutting down or rebooting my phone will on occasion hang with a black screen (before the shutdown is complete); the navigation hardware keys light up when tapped, but nothing else happens. To get out of it I have to pull the battery (hard reset via long power button press may work, but my power button is broken). The next boot commonly takes a long time as it tends to reinitialize my apps.

The shutdown/reboot is done via software (ADB or reboot app), due to the broken power button.

I have seen this behavior for several months. Are others seeing this issue? Maybe it only happens with software-triggered reboots?

I usually experience this problem when I reboot twice in a row because the phone service did not come up after an initial reboot. The phone service issue is not very frequent anymore, but still happens on occasion. I don't know if the phone service problem causes the reboot hang, or if a common root cause triggers both problems. The reboot issue seems to occur whenever I have the phone service issue.

I cannot produce a logcat for this issue because ADB is unresponsive during the hang, and the subsequent reboot/battery pull wipes the log.
[T-Mobile Samsung Galaxy S II SGH-T989] true_lies:
has anyone got xposed working with this ROM. doesn't seem to be supported on our device

flashed the arm version of this , but still a no go
[T-Mobile Samsung Galaxy S II SGH-T989] bryan2894:
System Patch - 8/27/15

Here is a system patch for the 8-22 release. It should fix some connection issues with WiFi that may occur, and prevent dalvik-cache from being cleared every time there is a boot failure.

Download: https://www.androidfilehost.com/?fid=24052804347802621
[T-Mobile Samsung Galaxy S II SGH-T989] PowSniffer0110:
Everytime I try an install it gets half way through boot and fails. Any thoughts? I installed same ROM last night on my moms SII and it was fine. Idk the diff in her and my recovery I dont have hers with me. Thanks
[T-Mobile Samsung Galaxy S II SGH-T989] JukiCro:
yeah me too man, this music bug is so annyoing:(
[T-Mobile Samsung Galaxy S II SGH-T989] bryan2894:
What recovery version are you using?

Try going to Settings > Apps, and wipe Media Storage data. Then use an app like Rescan Media or Trickster Mod to manually trigger the Media Scanner.
[T-Mobile Samsung Galaxy S II SGH-T989] PowSniffer0110:
I have tried several different recoveries. I am using twrp 2.8.7.0 right now tho. Can you point me to any help?? Why do my ROMs freeze at Setup Wizard or lollipop not even boot.
[T-Mobile Samsung Galaxy S II SGH-T989] JukiCro:
didn't work for me :( usually I wipe app and media storage + restart but here it didin't help, I noticed that it recognizes music if you make music/audio folder on sd card and put all songs there but after rebooting phone or restoring same problem pops up again

btw I finally got full working viper4android on lollipop 5.1 with this rom and only this annoying thing doesn't let me enjoy listening music
[T-Mobile Samsung Galaxy S II SGH-T989] bryan2894:
Not sure. Try using TWRP 2.8.6.0. Also, have you done a full wipe (system, data, cache)?

Have you checked your sdcard for any ".nomedia" files?
[T-Mobile Samsung Galaxy S II SGH-T989] PowSniffer0110:
I have wiped SEVERAL times, and even found some old super wipe scripts and tried those to no avail. I just flashed back to stock 2.3.6 what seems succusfully, ill try 2.8.6.0 and then flash and let you know. JB radio is the only thing really required right?? Thanks for the help and response
[T-Mobile Samsung Galaxy S II SGH-T989] bryan2894:
If your on gingerbread you'll need to ODIN flash the UVMC6 release. This is gives you the latest radio and other firmware files needed. Then you can ODIN the TWRP recovery. After that, reboot to recovery, wipe system, data and cache. Then flash the ROM and GApps.
[T-Mobile Samsung Galaxy S II SGH-T989] PowSniffer0110:
I cant find an ODIN version of UVMC6 but I have a deodexed version with root that is zip form ready to flash. Can I ODIN TWRP 2.8.6.0 then flash this UVMC6 zip (its 485MB, same size as full update), then flash this, or a diff 4.4.4 ROM??

---------- Post added at 04:34 PM ---------- Previous post was at 04:27 PM ----------

UGHHHH I found twrp 2.8.6.0 but it is in IMG format, not tar, so how do I flash it with ODIN??
[T-Mobile Samsung Galaxy S II SGH-T989] bryan2894:
The zip wont be enough it only modifies the system partition and kernel.

ODIN flash this file: https://www.androidfilehost.com/?fid=24052804347804889. It only updates the radio and necessary firmware needed without having to flash the large stock update. Then you can flash in ODIN this recovery: http://techerrata.com/file/twrp2/hercules/openrecovery-twrp-2.8.5.0-hercules.tar. After that, reboot to recovery, full wipe and flash any ROM you want.
[T-Mobile Samsung Galaxy S II SGH-T989] PowSniffer0110:
Thanks soo much
[T-Mobile Samsung Galaxy S II SGH-T989] junio07:
I have tried several different recoveries too and wiped everything and still no luck! :(
[T-Mobile Samsung Galaxy S II SGH-T989] JukiCro:
Ok I got it working, but not sure how lol, last app I used is media.re.scan but it didn't work at first, today I rebooted and saw all playlists and music again! Good luck
[T-Mobile Samsung Galaxy S II SGH-T989] junio07:
gonna try that... thanks for the info. :good: :fingers-crossed:
[T-Mobile Samsung Galaxy S II SGH-T989] mint403:
Is there anyway I can flash this in Odin?
[T-Mobile Samsung Galaxy S II SGH-T989] PowSniffer0110:
No you can't flash in odin. I got everything working smoooooth but.. I had forgot that Google Now from any screen had disappeared awhile back, I thought it was because I was using an old Moto Atrix 2 and it wasn't supported. Now that I'm still missing I know something is wrong. What is it?! Can anything comment on such?? Do you guys all have Google Now any screen? Thanks!
[T-Mobile Samsung Galaxy S II SGH-T989] all4adriver:
I experience this same issue. Going to try updating to the latest release...
[T-Mobile Samsung Galaxy S II SGH-T989] ulibube:
Preferred install location bug?

I have "Preferred install location" in the Apps settings menu set to "Removable SD card", but it seems that app updates from Google Play get installed to the "/data" partition regardless. Is this a bug?
[T-Mobile Samsung Galaxy S II SGH-T989] Tornado15550:
Is this rom using the latest 5.1.1 r9 codebase?

A few issues I've noticed in the current rom:

- Moving apps (such as facebook and messenger) to USB storage takes a very long time. It even caused the device to randomly reboot in the process.

- The phone can be a bit sluggish at times, but I will be overclocking the device soon and see if it improves things. What scheduler and cpu frequency do you guys recommend?

Other than these minor nitpicks, this rom is excellent! 5.1.1 runs really well on our 3.5 year old phone. :D
[T-Mobile Samsung Galaxy S II SGH-T989] Manos Makrakis:
Hi bryan,the rom with the fix patch now is working better,but the problems with the reboot failure is not solved.yesterday my phone rebootly and this upgrading processs is so annoying..you must wait 30 minutes..

in the next build bryan please solve this problem.if you solve it i think the rom will be stable and fast enough...
[T-Mobile Samsung Galaxy S II SGH-T989] ulibube:
I finally re-partitioned my Hercules with a custom PIT file (1.2 GB system, 4GB data) and re-flashed AOSPA. Thing is, without re-partitioning, the phone is no longer usable as a daily driver these days, even with moderate apps usage. The re-flash went well for the most part. An hour ago the phone crashed out of nowhere (switching from apps drawer to launcher home screen). Then it re-initialized a few apps upon the reboot, then crashed again when it was done with that and reinitialized all apps on the next reboot. It did come back up after that. My guess is that the crashes were not directly tied to the repartition.

Here are some logs with interesting messages, hope they will help track down some of the remaining issues with the ROM:

dmesg: http://pastebin.com/P7BXPiUP

last_kmsg: http://pastebin.com/YJKLQA6c

Also, the 8/27 patch cannot be applied on top of the 8/22 build without going through a whole boot cycle first. The boot hung for me when I tried to apply one on top of the other at the same time.
[T-Mobile Samsung Galaxy S II SGH-T989] ulibube:
So I've used the ROM some more after my last post and ran into a bunch of app crashes and a Play Services crash. I was hoping that it would be more stable after my repartition, but that's not really the case. Here's a logcat:

http://pastebin.com/u49rHCKh

Also, I think I posted about this before: there is so much radio logging in the main log that it obscures everything else. Is it possible to reduce the radio logging in the main log, or at least move it to the radio log?
[T-Mobile Samsung Galaxy S II SGH-T989] bryan2894:
When the phone crashed, did it reboot (show the Samsung logo, then bootanimation) or soft reset (just show the boot animation)?
[T-Mobile Samsung Galaxy S II SGH-T989] ulibube:
I think it was soft resets both times.
[T-Mobile Samsung Galaxy S II SGH-T989] ulibube:
I meant to mention this earlier - the GPS has seemed much weaker the last few builds than before. Is it possible that the wrong file slipped into the build, perhaps at the time of the OTA build switch? I hadn't clean-flashed in a while, but now that I did, GPS is still weak. I haven't run a GPS tool, but it feels like it's having trouble locking on to a bunch of satellites, making me think of an old gps.conf.
[T-Mobile Samsung Galaxy S II SGH-T989] PowSniffer0110:
Ive been having MIC issues, anyone else?? My mic doesnt work most of the time through normal calls, sometimes it rarely acts normal and works, and when I use Hangouts for a call, my MIC is auto disabled from the beginning and I have to hit ENABLE when the call starts. Is this common? I think I just have the UVC6 modem flashed or whichever. I think I have WildKernel too I cant recall. I am on 4.4.4 still, no other thread for it. Just dont like Lollipop

Thanks!
[T-Mobile Samsung Galaxy S II SGH-T989] Tornado15550:
Does this rom support f2fs? As I've heard that it offers a lot of performance improvements.
[T-Mobile Samsung Galaxy S II SGH-T989] Manos Makrakis:
new build

Hi bryan,

i want to ask you if you will release a new build or you will close the rom here?

why my rom is only 2gb and i have other 10 sliced?

can i fix that?
[T-Mobile Samsung Galaxy S II SGH-T989] PowSniffer0110:
This makes no sense. Explain your problem more literate and simple.
[T-Mobile Samsung Galaxy S II SGH-T989] Tornado15550:
Do not ask developers for ETAs. Remember, they are doing this in their free time. I was told that the issues our device faces are quite frustrating for developers to fix. Even then, awesome devs such as Bryan2894 and NoSpamDan devote their time to create high quality builds for our T989(D)s! They deserve much more praise than this sub gives them.
[T-Mobile Samsung Galaxy S II SGH-T989] all4adriver:
Just wanted to chime in and say thanks for all the work on this ROM. I came over from CM and I've really enjoyed the switch!

I've switched radios from the UVMC6 to the TLMC4 and that resolved many of my data issues. I'm running the 08-22-15 ROM and do experience a fair number of Google Services crashes, and a few reboots where the phone briefly shows the boot screen, but then actually shuts down and fails to boot until you remove the battery.

My GPS has always been a bit slow and flaky--but I don't notice it being any slower than usual. Co-pilot gets a lock in about 20 seconds of driving. Walking? It could take a minute or two.

That aside--when it works, it works well. I'm really enjoying lollipop, and impressed this phone continues to see updates. I think it will carry me well into Nexus 5X sales territory...

:good:
[T-Mobile Samsung Galaxy S II SGH-T989] Manos Makrakis:
i have only 2 gb for programs,can i change that and combine the two parts(2+10)?
[T-Mobile Samsung Galaxy S II SGH-T989] MDKAOD:
I'm running the 8-27 patched 8-22 version with the modified app partition from over hereI'm seeing a lot of app crashing. There's also many reboots, but I haven't quite determined whether they're soft resets or not. Still looking into that.

Now, I saw this once before on the modified partitions with Sultan's now discontinued 5.1 rom but a reflash fixed it. That has not worked in this case. So I'm curious, I've seen some mention that /data MUST be vfat and others say that /data can be ext4. I have a feeling that I'm seeing data write problems causing the apps to crash and phone to reboot as it seems to be whenever there's I/O. Can anyone provide some insight to this?
[T-Mobile Samsung Galaxy S II SGH-T989] Kran007:
Tried the pa in hercules and got amazed ?? just a question. I having a hard time flashing the tk gapps. I know it was recommend to use twrp. But i have cwm because i came from gb rom. It was ok to flash this twrp.zip on pa recovery or cwm recovery?
[T-Mobile Samsung Galaxy S II SGH-T989] bryan2894:
Data should always be ext4 (or f2fs, if supported).

If your using TK GApps, TWRP is recommended. You should be able to flash the twrp recovery from the TWRP thread in either recovery.
[T-Mobile Samsung Galaxy S II SGH-T989] bryan2894:
AOSPA-L 5.1.1 Stable

Hi everyone. New build is up. This will likely be the last lollipop build I put out, unless other problems pop up that I can fix.

The latest aosp tag is merged (r24). It includes the latest Stagefright patches and other security fixes.

Also, the ROM should be more stable now. Random reboots should be at a minimum. Changelog and links are below.

Changelog:

- Update to android-5.1.1_r24 branch

- Latest security fixes merged

- Added F2FS support

- Fix S2W issue where any button would turn on device

- lowmemorykiller updates

Download: https://www.androidfilehost.com/?fid=24052804347835264

Since, this is the final release I decided to also include a version of the ROM with virtual partitioning. Details will be in a separate post below.
[T-Mobile Samsung Galaxy S II SGH-T989] JukiCro:
thx for update, can I use twrp 2.8.7.0 to flash this one?
[T-Mobile Samsung Galaxy S II SGH-T989] bryan2894:
Virtual Partitioning

For the final lollipop release I included a virtual partitioned version. This is the same thing as Sultan's version. You'll get increased /system space, and /data and /sdcard are now shared (like in current phones now), and faster upgrading (since there is enough space to preodex apps). I released this to test because believe this format will be beneficial in the long run. Apps are getting larger and we already have limited space. If we're able to get marshmallow, I'd like use this format in those builds. If you don't like this format just reply and I'll reconsider.

To flash the instructions are the same as Sultan's version. Instead of the recovery he provides you can use mine below.

A clean flash is recommened, but if you use the data-transfer method, fix permissions after flashing (you might get bootloops if you don't).

New recovery: https://www.androidfilehost.com/?fid=24052804347835271

ROM: https://www.androidfilehost.com/?fid=24052804347835288

Instructions: http://xdaforums.com/showpost.php?p=56564718&postcount=3

To undo check here: http://xdaforums.com/showpost.php?p=59093149&postcount=611
[T-Mobile Samsung Galaxy S II SGH-T989] bryan2894:
Yes, it should work. It's what I'm using now.
[T-Mobile Samsung Galaxy S II SGH-T989] Manos Makrakis:
new build

First of all, thanks bryan for the new update

i installed 2 hours ago and its great..the partioning method:D:D:D
[T-Mobile Samsung Galaxy S II SGH-T989] jrc2:
I like the virtual repartitioning, but I already flashed a modified pit to repartition it for all ROMs. I have not had a problem with it done that way.
[T-Mobile Samsung Galaxy S II SGH-T989] Kran007:
Now it works, TWRP was the key. Thanks
[T-Mobile Samsung Galaxy S II SGH-T989] Studio1b:
does this have hdmi out ?
[T-Mobile Samsung Galaxy S II SGH-T989] boomerxyz:
Ok. Did all this and everything appears to flash fine. The rom boots up, but no gapps. I'm using the tk_gapps from the op. Is this the correct one?
[T-Mobile Samsung Galaxy S II SGH-T989] obscuresword:
The phone doesn't have HDMI out itself...
[T-Mobile Samsung Galaxy S II SGH-T989] Manos Makrakis:
hdmi?lol
[T-Mobile Samsung Galaxy S II SGH-T989] Studio1b:
what are you talking about the phone supports HDMI with the hdmi adapter

I have been using HDMI out on this phone for a long time.

This rom does not support HDMI for some reason I have tested it. Does anyone know why this does not support HDMI ?

4.X.X lightspeed rom supports it

did they change something in 5.X.X that breaks this feat ?

[IMG="here is the hdmi adapter"]http://www.waltzmart.com/images/catalog/product/2012/07/27/MHL%20TO%20HDMI_1.jpg9[/IMG]
[T-Mobile Samsung Galaxy S II SGH-T989] bryan2894:
HDMI only works on Touchwiz roms. I don't think it ever worked in AOSP roms.
[T-Mobile Samsung Galaxy S II SGH-T989] Studio1b:
Thank you for the reply. Good to know that i will keep a backup of my TW rom so i can use HDMI when needed.

---------- Post added at 03:54 PM ---------- Previous post was at 03:29 PM ----------

bryan2894 - I have to say great job on this rom. . StageFright v1 and v2 have been fixed i just ran tests and checked it out and came back 100% clean :)

I like the interface and how everything runs smooth.
[T-Mobile Samsung Galaxy S II SGH-T989] obscuresword:
There was supposed to be a "I don't believe" at the beginning, but that's what I get for writing things too fast lol. Anyway you're right. I had no idea so I'm sorry about that.
[T-Mobile Samsung Galaxy S II SGH-T989] mint403:
So I flashed the virtual partitioning TWRP recovery, changed /cache, /data, and /system to F2FS. Then I factory reset and flashed the update + gapps as normal, but now it just gets stuck in the bootloop. Anyone know what I'm doing wrong?
[T-Mobile Samsung Galaxy S II SGH-T989] Manos Makrakis:
new build

after 2 days use with the new build i must say that is the best build ever use...no crashing apps,no restarts boot..smooth and stable.thats we want
[T-Mobile Samsung Galaxy S II SGH-T989] aadi90:
offline charging please

Hi,

Can anyone please tell me that is offline charging working in latest build ?

i have tried all lollipop cutom roms but couldnt get it working.

Thanks in advance.
[T-Mobile Samsung Galaxy S II SGH-T989] bryan2894:
It should. It worked for me last time I tried.
[T-Mobile Samsung Galaxy S II SGH-T989] mint403:
I tried again without the F2FS partitions and it still bootloops, so I think that rules that out. It may have something to do with me coming from stock jellybean rom? Anyone know if I missed a step or something? I was on lollipop before, but went back to stock. Thanks! :cowboy:

EDIT: Just tried installing Sultan's rom and it works fine. Is something wrong with the virtual partition rom?
[T-Mobile Samsung Galaxy S II SGH-T989] bryan2894:
Which file did you flash? It should be this one: https://www.androidfilehost.com/?fid=24052804347835288
[T-Mobile Samsung Galaxy S II SGH-T989] chitoka:
Hi bryan2894 why I am not able to flash back to stock rom? or use a different custom rom?

Everytime I flash via Odin it fails at SBL2. is there something I am doing wrong? please help me
[T-Mobile Samsung Galaxy S II SGH-T989] mint403:
That's the one i'm using. Verified it through the MD5 and it's the same, so it's not my download :confused:
[T-Mobile Samsung Galaxy S II SGH-T989] aadi90:
Thanks bryan

Thanks bryan for your reply.

This rom is the most stable lollipop rom on t989 i have ever found and yeah offline charging is working as for other things no crash or bootloop at all.

Once again thank you so much because developers like you give our old device a boost.
[T-Mobile Samsung Galaxy S II SGH-T989] JukiCro:
viper4android works with this rom so if you want to install it follow this instructions I found posted by maximumentropy:

http://xdaforums.com/showpost.php?p=62320814&postcount=19447

and after everything check driver status in menu and if you see first 4 rows below: "yes" "yes" "normal" and "supported" you are fine
[T-Mobile Samsung Galaxy S II SGH-T989] mint403:
I restarted from the beginning, flashing the recovery over again and for some reason this time it worked first time. yay! I don't know what happened before , but oh well thanks for the great rom bryan!
[T-Mobile Samsung Galaxy S II SGH-T989] true_lies:
Getting some random sleep of deaths with the last update, anyone else getting that
[T-Mobile Samsung Galaxy S II SGH-T989] vroomr:
Are you using the first one or the repartitioned one?
[T-Mobile Samsung Galaxy S II SGH-T989] Manos Makrakis:
the repartitioned
[T-Mobile Samsung Galaxy S II SGH-T989] Malth:
I already partitioned my device with a pit file to increase the size of /data. Would that cause any problems doing a virtual partition with this?
[T-Mobile Samsung Galaxy S II SGH-T989] bryan2894:
No, everything should work but you won't get the space that was intended. What was originally the /data partition is now /system and what was your /sdcard is now shared with /data. So now with virtual partitioning more space would be allocated to /system, which may be more than necessary. Also, your new /data partition which is shared with sdcard now has less space.

If you're using virtual partitioning you should stick to the original pit.

Otherwise, just use the ROM without virtual partitioning.
[T-Mobile Samsung Galaxy S II SGH-T989] vroomr:
Hey [MENTION=2107489]bryan2894[/MENTION], can you build for the nexus 4 too? I think we lost our maintainers to the oneplus team... :(
[T-Mobile Samsung Galaxy S II SGH-T989] MDKAOD:
I'm having a weird issue that might be similar to yours. The screen will go black (but not off) about a minute after boot. The hardware lights still respond, I still have sound (i.e. if you press and hold the hardware search key you'll get the Google Now "boop" sound and the bong when it times out) and the power button reboot menu will still come up. It's like the UI itself is crashing. Is this similar to what you're experiencing?
[T-Mobile Samsung Galaxy S II SGH-T989] bryan2894:
This happened to me before. A clean flash should fix it.
[T-Mobile Samsung Galaxy S II SGH-T989] Manos Makrakis:
Clean flash

Hi bryan,could you tell me exactly the steps for a clean flash?
[T-Mobile Samsung Galaxy S II SGH-T989] bryan2894:
In TWRP, click Wipe and do a Factory Reset.
[T-Mobile Samsung Galaxy S II SGH-T989] KorGuy123:
http://img.tapatalk.com/d/13/05/07/uhugu2yq.jpg
[T-Mobile Samsung Galaxy S II SGH-T989] hatememarkz:
How do I install apps from my SD an the market because it won't let me
[T-Mobile Samsung Galaxy S II SGH-T989] hatememarkz:
U took too long went bakc to slim all tho I dug it but the halo activator an the error 24 were killing me then to top it off had a RR after fixing permission :banghead:

ss beanz T989
[T-Mobile Samsung Galaxy S II SGH-T989] sd1esel:
app kill

is there a way to long press back button to kill app?
[T-Mobile Samsung Galaxy S II SGH-T989] bryan2894:
No, not in this ROM.
[T-Mobile Samsung Galaxy S II SGH-T989] JesusWazBlack:
Hey dude can you please be a little more respectful everytime you post something
[T-Mobile Samsung Galaxy S II SGH-T989] drizze99:
OK, I am totally banging my head on this one... I just installed this ROM on my son's SGSII and for the life of me, I can not get it properly make a phone call. It does see the "T-Mobile" towers but it does not work. I have done full wipes, all the cache wipes, system and data wipe and have installed 3 times.

What am I doing wrong?
[T-Mobile Samsung Galaxy S II SGH-T989] meekrawb:
I didn't see you mention it so you probably need the new UVMC6 radio from here:

http://xdaforums.com/showthread.php?t=1895400
[T-Mobile Samsung Galaxy S II SGH-T989] TJSteveMX:
Good point :thumbup: he can see if that's the problem if baseband said unknown.

Sent from SGH-T989 P.A.C.man 23.0.0/UBER 3.0.82
[T-Mobile Samsung Galaxy S II SGH-T989] drizze99:
Fantastic! That fixed it, thanks!!