yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] pete101:
does this apply to all kitkat 4.4.2?

searching the forums i'm seeing a lot of posts about 4.4.2 causing random reboots not just for the s4 but for the nexus and other tablets etc.

i have a note pro 12.2 and the only 3 firmware releases they have official stock are all 4.4.2 and i have this random reboot issue. i can't figure out what it is.. it appeared to happen when i was using the facebook app and once you scroll through like 4000 friends the cache and ram is fully used when i lock the screen it would then reboot.. but then it also did it when i plugged in a samsung usb 2.0 charger (it came with a usb 3.0) and also when i unmounted the sd card.. so it seems a mix of problems causes the reboot.

i dont want to root but is there anyway i can narrow down what is causing the reboot?

i'm fine with it if it is just a firmware issue, my concern is a hardware issue.. is there anyway i can check this?

so far i've factory reset (seemed ok for a little bit then i reloaded my apps) still seemed ok, so i got wakelock detector (if any of you know it cant be used without root access on 4.4.2 but there is a non root workaround where you used adb terminal to load it.. im not sure if that's the cause of the rebooting?) ironically when you reboot it yourself you have to go through all the steps again of using adb terminal in order to get wakelock detector to work on kitkat yet when it soft reboots itself wakelock detector is still working it's like it's not even a proper reboot

seemed ok for a little while.. then i transferred about 6gb of movies from my samsung phone via wifi direct to the tablet. (same thing i did on saturday before it started rebooting) seemed ok.. but then when i unmounted the sd card.. the reboot came back :( i decided to enable all apps again (i always disable apps in all setting bloatware all the ones i can without root it saves so much battery) to test if that's causing the reboot (tho i might need to reboot it myself to test it) so far is ok

i can't figure out what;s causing it. my next plan is to factory reset again (i really hate to do this takes ages loading everything again adding passwords to apps then disabling apps i dont need. if that fails i'll use odin to flash the latest firmware it's on so there's a clean version on it rather than the OTA updates it did on top of one another.. if that fails i'll flash the original firmware it came with.. and if it still does it i have no choice but to return it :(

where i bought it from have no stock as it was a sale item so i can get my money back but i love this tablet and want to keep it.. is there anyway above what i have written that it might be hardware or is it too difficult to say until i done all the steps above?
[Xposed Framework Modules] thomashofmann:
It's difficult to say really. For the S4 some people say they have absolutely no reboots even after rooting, some have even without rooting. The module also worked on other devices for some users here.

All I can say is that the code that is crashing is not really safe. It makes an assumption that is not true at least for some ROMs.

I would say the easiest way is to just try it out. That would mean that you need to root. I understand that you do not want to do that.

To figure out what is causing the crashes or reboots I see two options:

1) When the device crashes a lot of information is usually written to /data/log. I don't know if you can read from that directory without root but if you can you should find files that contain detailed information about the problem. This will included messages from Android log (which you otherwise see using logcat). Copy the file dumpstate_app_error.txt.gz to external storage and then to your PC, unpack it and the study the logs. You might also other important files in this dir.

2) You can also attach the device to your PC and run logcat from the PC. Then you need to trigger the crash somehow and save the logcat at that time to see what was causing the crash.
[Xposed Framework Modules] rondi:
Please help me, I have reboots since the first day and I installed this module and didn't solve it.

I have an at&t i337 S4, it came with the i337UCUFNC1, so yes, the one with locked bootloader. I first rooted with towelroot v3, installed SuperSU, then Xposed and then the module, nothing happened, it kept rebooting, no notifications from the module, nothing. Then i factory reset and wipe, reboots again, i did the xposed instalation process again (root, supersu, xposed, module) this time with more careness in case i missed something, still reboots.

So

If someone with NC1 could confirm it has worked for them i would give him a big thanks! at least i would know it's another thing.

Could this be maybe because it didn't root well? i don't know..

Do you think that if i install the NB1 (with this method right here) would work?

I could do a logcat, but I don't know what to search for. Tips?

I don't know guys... just help me, please :(
[Xposed Framework Modules] PR3DATOR Aaron:
I love it and downloaded it and will try these within 3 days, if never auto shutdown and i will says thanks a lot u help me from random boot

Sent from my GT-I9505

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

Still reboot by itself

Sent from my GT-I9505
[Xposed Framework Modules] jenacadabra:
This fix really works

Thank you! I had just about had it with this brand new Note 12.2 Pro, as I was setting a crash every 30 seconds or so. I'd reinstalled the firmware about 5 times (once I think I nearly bricked it and had to go to the Samsung service centre to get sorted). I messed up rooting a couple of times and did countless resets. Thanks to this site I discovered Xposed and this module which has sorted it.

What I don't understand though is how Apps which are frozen in Titanium can still cause a system crash. All my KnoX and com.sec.knox type apps are frozen so should not be a problem. According to the error report there are some more 0:com.sec.knox apps still causing a problem - does anyone know how to freeze them permanently?
[Xposed Framework Modules] zyxwvu42:
Awesome, this module was the fix for random reboots on my Samsung Galaxy Note Pro 12.2...I just got like 20 crash prevented notifications, thanks so much for providing this! There's 2 friends with Samsung galaxy tab pro 8.4s that I rooted and I am sure have the same problem, now I can fix their's too.
[Xposed Framework Modules] rakstah:
Big Thanks

My device is GT i9505 4.4.2 and I encounter random reboot. This module prevents the random reboot of my device and it notifies you the report of what's the cause of it. I just want to ask how can i fix this issue " A systemserver crash was prevented curProcState: -1 for process:0:com.sec.knox.seandroid/1000". Hope there's a solution for this. Thanks for all of your effort
[Xposed Framework Modules] kevinwu128:
has anyone else upgraded to 5.0.1? has this fixed the random reboots?
[Xposed Framework Modules] lcsd:
Using 5.0.1 Imperium LL v6 without xPosed. No random reboots. Waiting Xposed to turn Greenify fully operational again.
[Xposed Framework Modules] MaXi32:
After tripped the knox status to 0x1 (2), the random reboot occurred. I'm trying wanam exposed servercrash fix. Is that the same function/fix like what the OP given using wanam exposed? Since yesterday I have experience many random reboot. The screen freeze and reboot. I will post the result later.

Running KitKat 4.4.2 on my galaxy note 3 with stock ROM. N9005XXUGNI4
[Xposed Framework Modules] DrHour:
I have Wanam Xposed 3.4.3 installed on a rooted note 3 and checked the box to enable this fix. I was having multiple reboots every day even while making calls. No way to do business! Nova Launcher would also crash furiously throughout the day. I reinstalled Nova and applied this fix. No random reboot since then.

SM-N900 International variant

Baseband version N900UBUDNA1 and Android 4.4.2.

Build number KOT49H.N900UBUDNB2
[Xposed Framework Modules] Zeuszoos:
Hi,

Just a note to the Dev, I was getting reboots and things would get hosed up sometimes and I'd end up having to restore from a NanDroid backup and sometimes I'd still have a problem. This would happen like every other reboot. No idea what was causing it.

I'm running the following:

Samsung Galaxy (SGH-M819N) Mega 6.3" (MetroPCS)

MegaKatX ROM (Samsung OEM ROM, Tweaked)

KitKat 4.4.4, Rooted, PhilZ Touch Recovery 6.48.4

After installing your Mod, I have only had one flaky reboot and of course, you consider one time a fluke, not a problem. :)

Needless to say, I am very impressed with this Mod! It has already saved me hours of dealing with my setup(startup apps/mods and everything) hosing up on me and the frustration that goes with having to deal with all that crap!

So anyway, I think it's safe to add my device to the list! Plus whatever the T-Mobile Model # is, since they own MetroPCS anyway and both are using the same towers and the APN's are interchangeable, etc..

I will definitely be donating! I'm sure the OP tells you how, right? :)

Thanks, Dev!!!

---------- Post added at 03:01 PM ---------- Previous post was at 02:56 PM ----------

Hi,

Oh and just FYI, while I did get the occasional random reboot, my biggest "reboot problem" was actually occuring when I would tell it to reboot. That's when things would get hosed up. So your mod fixes that too. :)

Thanks!!!

---------- Post added at 03:04 PM ---------- Previous post was at 03:01 PM ----------

Hi,

Okay, so no Donate (how to) info in the OP.

So how do I donate, please?

Thanks
[Xposed Framework Modules] thomashofmann:
There's an option in the app and also a link in my profile AFAIK.

Gesendet von meinem SM-G925F mit Tapatalk
[Xposed Framework Modules] Zeuszoos:
I didn't see one in the app, but I'll look again.

Thanks! [emoji1]

---

Samsung Galaxy (SGH-M819N) Mega

MegaKat KK 4.4.4, Philz Touch 6.48.4
[Xposed Framework Modules] thomashofmann:
https://www.paypal.com/cgi-bin/webs...SCF&no_note=1&no_shipping=1&currency_code=EUR
[Xposed Framework Modules] Zeuszoos:
Thank you for the link! However, unfortunately;

1) It comes up in a foreign language (Dutch? German?).

2) I tried logging in anyway, since it already had my email address in there, but I couldn't log in. Maybe because it's a foreign (to me) version of PayPal (I logged into the U.S. site fine)?

If you would please PM me your actual email address, then I will log into the U.S. PayPal site and donate.

I did look again and there's definitely nothing in the Mod's screen for donating and there's no "Menu" in it, just FYI.

---

Samsung Galaxy (SGH-M819N) Mega

MegaKat KK 4.4.4, Philz Touch 6.48.4
[Xposed Framework Modules] jabarel:
i`m on stock 4.4.2 rooted with xposed i just installed this module i hope it`s just finish with random soft reboots ! till now without this module i get soft reboots but only when i`m rootedi hope this is the solution :D i will report in one two days if it`s works for me
[Xposed Framework Modules] Zeuszoos:
Jabarel,

DON'T BELIEVE WHAT THE DEVELOPER SAYS ABOUT THIS MOD!!!

Why not? Because it does more than what he says it does!

Got your attention though and had ya worried for a sec, huh? :)

In my case, mine would only sometimes reboot when it shouldn't, but after any reboot that I did myself, I'd have to try again and again to get it to boot up right. And after performing a NanDroid Backup, in order to get it to boot up right, I'd have to restore from the backup I just created and sometimes, even that wouldn't work the first time!

My device was all kinds of "reboot screwed up"! And I didn't get any error messages, or crash reports asking me to send them in, or any of that sort of thing.

After installing this Mod, I have only experienced this problem one time and one time only! And that was months ago and one time is always to be considered as a fluke. :)

Contrary to the normal reaction that folks are supposed to get when this Mod works, which is the Mod popping up with a crash report, or something to that effect, it doesn't do anything when my device would normally mess up. It simply doesn't mess up anymore! :)

My device has been running as it should since I installed this Mod! No more problems when rebooting, nor after performing a NanDroid Backup!

Told ya it did more! :)

Get this Mod! If it works for you, donate. :)

TTYL
[Xposed Framework Modules] ecd11111:
:oýtr466
[Xposed Framework Modules] RafaelAliaga:
J7 Prime

You can make this module for a J7 prime device. Since this module caught my attention a lot. I would like to install this module for the pixel experience rom with android 10!:Rodar los ojos:
[Xposed Framework Modules] Walter.White:
Let's see if this solves problem on my N3. Which apparently for no reason soft boots from time to time.
[Xposed Framework Modules] Walter.White:
Edit.

It works perfectly on my N3. No hoboots so far.

Thanks so much I was literally pulling my hair out trying to figure this one out.
[Xposed Framework Modules] thomashofmann:
Maybe you could post your ROM version so that others now that it solves this problem on this firmware...
[Xposed Framework Modules] blackspp:
Thomas, thank you from another frustrated installer. Was just about to roll back to a previous version when I came across your solution. Top work!
[Xposed Framework Modules] thomashofmann:
Thanks, it seems that the word is slowly spreading.
[Xposed Framework Modules] Walter.White:
I don't think this bug is ROM related. It's present in all Samsung 4.4.2 ROMs/FWs be it S4 or N3.

For me it would happen when I have 200+ apps and then if I wipe Dalvik... It would start doing random reboots.

This fix needs more attention/coverage!!
[Xposed Framework Modules] sumbeam:
It works perfectly, a whole day without any reboot!

Cheers!!!!
[Xposed Framework Modules] body150165:
You guys talk about random reboots since a certain FW version. I have reboots always since I bought this phone (i9500). Already happened in 4.3 and never changed. Now in Omega V20 based on 4.4.2 NB1.

Any harm expected if I just try?
[Xposed Framework Modules] robertogl:
Try ;)
[Xposed Framework Modules] RoundSparrow:
FYI: the bug seems to be in AOSP source code - so not sure why it would be specific to Samsung... there may just be something going on in the Samsung apps that triggers it more frequently.

I believe today I caught it happening in Android Wear 4.4W on an LG watch...

It seems to be when an app is STOPPED that it triggers the crash and reboot.

http://www.reddit.com/r/androiddev/comments/2al23e/android_wear_44w_adb_install_of_app_crashes_the/

462-478/? E/AndroidRuntime﹕ *** FATAL EXCEPTION IN SYSTEM PROCESS: ActivityManager

java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1

at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)

at java.util.ArrayList.get(ArrayList.java:308)

at com.android.server.am.ActivityStackSupervisor.forceStopPackageLocked(ActivityStackSupervisor.java:2034)

at com.android.server.am.ActivityManagerService.forceStopPackageLocked(ActivityManagerService.java:4605)

at com.android.server.am.ActivityManagerService.access$300(ActivityManagerService.java:207)

at com.android.server.am.ActivityManagerService$MainHandler.handleMessage(ActivityManagerService.java:1333)

at android.os.Handler.dispatchMessage(Handler.java:102)

at android.os.Looper.loop(Looper.java:136)

at android.os.HandlerThread.run(HandlerThread.java:61)

at com.android.server.ServiceThread.run(ServiceThread.java:46)
[Xposed Framework Modules] thomashofmann:
Yes I know it is in AOSP. The stacktrace you posted is a different one though. The code seems to Not work well in different corner cases maybe.
[Xposed Framework Modules] thomashofmann:
I will try to to retrieve more context info from the problematic process in a future version. No ETA though. Maybe this reveals whether or not this has to do with Samsung related processes.
[Xposed Framework Modules] palorent:
Hi,

i have rootet my s 4 with towelroot,then i got the reboots.

Than i unrootet with supersu and then i had still reboots.

Than after Worksreset reboots where gone.

If i use your apk,can i install it or must i look at something?

Must i have root for it?
[Xposed Framework Modules] robertogl:
You need root and xposed framework.
[Xposed Framework Modules] palorent:
Thanks a Lot for the Quick Help.
[Xposed Framework Modules] Tanis64:
If Samsung was clever, it will be employ a whole team of people, doing nothing else then read Forums like XDA, i guess then about 70% of Bugs in Samsung ROMs will be vanished.

Thanx thomashofmann for that great fix.

Spread the good news!

regards
[Xposed Framework Modules] wanam:
Yeah maybe it's related to Samsung processes, but i think the "curProcState" should be initialized with a default valid array value instead of the "-1" on "com.android.server.am.ProcessRecord" or maybe do some checks before trying to use the array on "com.android.server.am.ProcessList.computeNextPssTime", as you did.

Great work!
[Xposed Framework Modules] blackspp:
For those that believe the bug is elsewhere:

Running bone stock rooted I9505XXUGNF1 resulted in random boots ever 20 to 60 minutes.

Installed xposed and this fix and now running for 2 days without a hiccup.
[Xposed Framework Modules] M414:
I was trying to find a workaround this problem.

Phone is working 100% again.

Thanks a lot man! :good:
[Xposed Framework Modules] thomashofmann:
Thank you for your kind donation!
[Xposed Framework Modules] Crescendo Xenomorph:
I'm still suffering hotboot on my N900..

Apparently the phone freezed for several seconds then hotboot occured...

Do you need the logcat?
[Xposed Framework Modules] ingy_dust:
Perfect i9505 rooted + xposed

I love you, man! No random reboot for 12 hours and going! This saved my life! Thank you!!!!
[Xposed Framework Modules] thomashofmann:
I can have a look at it to see if it is a similar problem.
[Xposed Framework Modules] Crescendo Xenomorph:
Thanks... I'll post the logcat and last_kmesg then the reboot occured.... ;)
[Xposed Framework Modules] thomashofmann:
It looks like the process that has -1 as prosState is always com.sec.knox.seandroid. Maybe this bug has been introduced with Knox 2.0
[Xposed Framework Modules] Tanis64:
Great Job Samsung!

KNOX is the root of all evil. ;)

Thanx for that excellent research and your XPosed Module.

Best regards

Christopher

Send from the outback with my GT-I9505
[Xposed Framework Modules] trein91:
Does that mean CM11 roms are affected as well? Getting a bunch of random reboots on C-ROM (CM11 4.4.4 based)
[Xposed Framework Modules] access9:
Running great on my gs4 on a tw 4.4 rom. Thanks!
[Xposed Framework Modules] :
well done Samsung ...first of all i was Samsung Client from long time ago and as well i use to aport my knowledges in xda forum... till the note2 everything was great but when i bougth the note 3 the thing was changed. first of all i coud not root the device fearing to not loose the warranty... i ´m a living in Spain from many years and after a short vacations in a Norten Europe Country i´ve received an update from Samsung servers ... after that update i notice that my phone was stared to have randome forced closes and freezes of many apps.

Remember that your policy was not alow me to install the root in my Note 3 and i was unable to make a full debug to know where the error was for that reeason i was forced to sell my phone to a big company from western Europe (thephonehouse.com) as spare parts.

i.ve spend around 550€ in buyng that phone and i´ve sold it as spare parts for a stupid error of your software engineers because after selling the phone a user from xda had found where the error was...

kudo to him and shame to you Samsuing.... are you playng with our money and with our privacy lateley...Shame on you Samsung

http://xdaforums.com/xposed/modules/samsung-kitkat-systemserver-crash-fix-t2806046

so thank you Samsung to making me to buy a 550€ phone and to sell it as spare parts for les that 250€.... well done guys
[Xposed Framework Modules] Walter.White:
I think this will benefit lot more people if it were to make it to XDA Front Page news.

Click Tip Us? Guys
[Xposed Framework Modules] RobertdeHoop:
Can anyone tell me if I should also remove all the KNOX apps first or just install the reboot fix?
[Xposed Framework Modules] thomashofmann:
Just xposed and the module. I didn't touch knox in any way.
[Xposed Framework Modules] ZEKE-:
I installed the app before 7 hours

So far the device doesn't rebooting :D.... I hope that the problem will have been solved.

Thank you thomashofmann :):thumbup:
[Xposed Framework Modules] tariq2kn:
I've installed this & it doesn't seems to be working.

I get random reboot after screen being stuck.

system_server is high in percentage as seen in bbs process.

S3 archi port beta 1 4.4.2.
[Xposed Framework Modules] thomashofmann:
Sounds like a different bug. The bug this fixes does not make the screen beinig stuck.
[Xposed Framework Modules] ZEKE-:
Update

2 days my s4 running without random reboots:D

Thanks again.
[Xposed Framework Modules] guastucci:
Man, God bless you.. No more RR here... really, really tks

Enviado de meu GT-I9505 usando Tapatalk
[Xposed Framework Modules] henrik.dk:
should this affect all s4 user? But I don't get crash without the patch. Any reason?
[Xposed Framework Modules] Tanis64:
I think this could affect all S4 users with newer 4.4.2 Versions, the bug is there, but it belongs to the kind and number of running processes that the bug was triggered which results in a crash of the SystemServer and a reboot.

Send from the outback with my GT-I9505
[Xposed Framework Modules] dimm0k:
is there any way to verify that this bug affects you before installing this mod? I'm on Sprint's 4.4.2 for my Galaxy S4 and haven't seen this yet... would like to never see it if possible.
[Xposed Framework Modules] thomashofmann:
If you don't have any restarts you will Not be affected. If you do have Same The only way to tell is to look at the logcat and see whether or not it is The Same stacktrace in the error before the restart.
[Xposed Framework Modules] RobertdeHoop:
I have been playing with the new release and found that as long as I do not use Towelroot I do not see any crashes. After two days of running very stable (no new apps, no updates), I decided to root the phone. Within the hour after rooting, the first "reboot" occurred.

Now installed Xposed and this module and the crashes are gone.......
[Xposed Framework Modules] dimm0k:
[MENTION=3542212]thomashofmann[/MENTION] I'm not sure how it's usually done, but I'd like to request permission from you on behalf of [MENTION=4714758]Falseclock[/MENTION] to be able to include this fix into his 'KitKat BUGS fixer' module located here http://xdaforums.com/xposed/modules/mod-service-bug-63793-fix-t2830732/post54501226. Thanks for listening and for your great work.
[Xposed Framework Modules] thomashofmann:
I might disapoint you but at the current time I would not like to incorporate this fix into the other module for the following reasons:

AFAIK the Kitkat Fixer Module does not allow one to select the fixes to apply. I don't seem to have the START_STICKY problem on my device. When I start the music player for example and swipe it away from recents it continues to work. As far as I understand this would not work if my device would be affected by the START_STICKY problem. So if the fix would be included in the other module I would need to apply a fix that that is not needed I would not know what consequences this has.

Second, I am currently adding notifications for prevented crashes and I don't think the other module offers that feature.

Installing two modules that hook the same method is also not a good idea and would cause potential new problems.

Although I think the code that I am working around could be guarded better I think that only Samsung devices with KNOX are affected. At least I don't have evidence that other ROMs also have this problem.

The Kitkat Fixer on the other hand is not Samsung specific.
[Xposed Framework Modules] dimm0k:
[MENTION=3542212]thomashofmann[/MENTION] ahh, thank you for providing a detailed reasoning, I completely understand. You mentioned that installing two modules could cause potential new problems... are you recommending not to install both your module and the KitKat Fixer module together?