[Q] Memory Leak in 4.4.2? - AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin

Since I updated to a 4.4.2 TouchWiz ROM, I've been getting memory leaks after a week and a half or so of uptime on my AT&T i337. I notice that apps need to be reloaded shortly after using them previously, and even Nova launcher is getting kicked out of memory. The only fix is a restart. Looking through running services and cached apps before clearing memory shows almost everything has been removed from memory to make room for whatever phantom process is taking up all the RAM. The screenshot attached was taken after using the option to clear RAM. Anyone have any ideas? Thanks!
Details on my setup:
SHOstock-i v5.0 (based on the NB8 firmware for the i9505)
Upgraded to MLD kernel in order to run 4.4.2 TW ROMs
Safestrap 3.71

Related

MDOB rom messed up S4 (full wipe doesn't wipe everything?)

System Specs: Galaxy S4 Canadian i337m OTA 4.3 (jfltecan), carrier is Bell, stock Samsung firmware, stock kernel (use wicked rom 9.1 sometimes too)
WARNING:
lot's of reading so go grab a coffee and have a cigarette before you sit down to read this, you'll probly be here for awhile
The rom/fix in question: MDOB rom/i337m fix - here's a link to both.
http://forum.xda-developers.com/showthread.php?t=2280556
first off i'd like to mention this phone was 100% perfect on stock Samsung rom 4.2.2 using Ktoonsez KT-SGS4 kernel for many months, until the day I installed this dreaded MDOB 4.2.2 rom and the "fix" that came with it
everything went bad on me back while I was running 4.2.2 stock unlocked boot loader and could never get it back to normal so this isn't a issue caused by 4.3 knox or 4.3 itself that i'm currently using. (i'm stuck on 4.3 roms but had this issue way before 4.3 existed)
i'm having an extreme amount of issues AFTER installing the MDOB rom, even after changing rom back to stock (flashed back to stock rom with ktoonsez kernel which is what I was using before I installed MDOB rom and phone has been royaly screwed ever since that day) more specifically I think it happened from the "i337M fix" that's included with the rom, either way after installing this rom I've never been able to get my phone back to normal.
everything runs fine except until I install a custom kernel (Ktoonsez KT-SGS4 kernel) then all hell breaks loose.
I don't blame the kernels or my current rom since I've ran this before for many months until the day i installed MDOB rom on my phone my phone was a dream machine.
issues since this rom has been installed include:
Issues:
A. RANDOM SLEEPS OF DEATH (phone shuts off or freezes)
B. random freezing while trying to turn on phone or enter recovery
C. some kernels won't work proper (specifically ktoonsez KT-SGS4 kernel) example gpu stuck at max while idle and downclocking when screen is touched with this kernel
D. wifi won't work with custom kernel on stock 4.3 rom without build prop edit to ro.securestorage.support, although it should
E. weak wifi and mobile signals
F. bad battery life
G. bad call quality
H. More that I can't remember off the top of my head
here's my flashing process, in attempts to remove as much as possible:
I know a few of these steps are probly pointless but hey can't blame me for trying.
step 1. enable usb debugging & unknown sources
step 2. install root & recovery
step 3. fresh boot phone let files settle so they can save (5mins or more) then plug into computer while turned on and delete everything
step 4. reboot into TWRP recovery (version 2.6.3.1) and clear everything, full advanced wipe, factory reset, format data than clear cache/dalvik afterwards just to be sure
step 5. remove SD card plug into computer and format to make sure there's nothing
step 6. install rom
step 7. (sometimes) clear cache/dalvik/permissions after rom install, although fix permissions seems to break my permissions rather than fix them or maby my permissions just break during flashing and I just can't fix them (haven't tested enough to be 100% sure)
i'm SOOO temped to try a full nand erase since i noticed there ARE still lot's files on my phone directory even after wiping, but i know that isn't a good idea;(
once stock kernel is back on my phone these issues are all gone.
Ktoonsez says it's not his kernel (used to work before, so i have no reason not to believe him), he says it's the rom well i'm on 100% stock Samsung rom (exception of kernel) and the rom was built to act the way it does so you can't really blame the rom so who do i blame??
until i went to go try wicked rom and flash back to stock I didn't realize these things were still on here, but now they emerge! wicked rom was giving me some (unrealated?) issue so i decided ima go back to stock so i flashed stock rom via odin (pc) and right away i noticed the 4G symbol, Samsung wallet, desktop not setup proper (no shortcuts) this ONLY happens when switching from wicked rom to stock rom on the first flash, i flash again everything looks how it should, and in order to get it to do this again i have to flash back to wicked rom and flash stock rom again and BAM it happens.
i knew my issue started on the same day that i installed this MDOB rom but after doing a full wipe and MANY "fresh" stock rom installs later i stopped questioning the rom and just lived with a crap phone that reboots itself all the time and has bad battery life, AS SOON AS I SEEN THE SAMSUNG WALLET bam it hit me like a truck, IT WAS THE MDOB ROM INSTALL.
UNLESS stock Samsung rom comes with wallet preinstalled and hidden on stock/wicked roms than the ONLY other way it coulda got on my phone is from the MDOB rom.
I can wipe/delete/factory reset/flash with twrp & odin on pc all I want, my roms are still messed up after FRESH installs. I believe there is still left over files from this rom/fix, I didn't think there would be anything until I noticed when i'm flashing from wicked rom back to complete stock rom using odin on pc I experience things from MDOB rom (while It should be 100% stock after odin (pc) flash, but it's not)
after the first flash from going from wicked rom back to stock I always experience the following "bug" i'll call it a bug since these things ALL HAPPEN AT THE SAME TIME: once I flash AGAIN all these symptoms go away until I go back to wicked rom and flash back to stock rom than right there after this first flash going from wicked rom BACK TO stock ALL these symptoms come back until I flash stock firmware AGAIN, a second time (even though I just flashed it)
Symptoms:
1. Samsung wallet appears in my apps (this was only EVER on my phone once, when I had the MDOB rom on my phone), this thing shoulda never somehow appeared back on my phone in any way shape or form after ditching the MDOB rom, but again is comes back after the first flash going from wicked rom to stock rom.
2. I get the 4G icon from MDOB rom (not the LTE icon I SHOULD have while on stock, when on wicked rom I have a little LTE icon with a tiny 4G above it, the only time I've ever had just a 4G icon (without LTE) like this is when I had MDOB rom on my phone (which is the only other rom I've run other than wicked rom and stock rom).
3. this icon ONLY shows up after the FIRST flash from wicked rom back to stock, once I install stock AGAIN than it returns to it's normal LTE icon.
4. now i'm not just *****in about an icon here, this is just a part of my problem (indicator if you will), when my rom is "bugged" after first install from wicked rom to stock rom my wifi works normal how It used too. but once corrected (flashing again) AND using custom kernel on STOCK firmware it breaks my wifi 100% broken until I use this little build prop edit fix, set ro.securestorage.support = true to false, bam wifi now working but the rest of my problems are still there (wifi used to work 100% on custom kernels and everything until MDOB rom touched my phone and left this "bug" behind)
5. when this 4G icon appears after this "first" flash back from wicked rom to stock rom I also experience something else, my wifi button works during first boot setup and auto enables itself and I have no issues with my wifi connecting (as soon as I see this toggle on I already know once my phone locks onto the network it's gonna give me a 4G icon and not an LTE icon like it should and sure as shiznit it does, as soon as I get my icon back to how it's supposed to be (LTE icon) all of a sudden wifi won't auto connect on a first boot anymore, never, 100% never. (back before installing MDOB rom I used to auto connect 100% of the time on first boot) like it does now only when it's "bugged" out.
6. apps are missing, when this "bug" appears there's no app shortcuts on the desktop of my phone by default after fresh flash like there should be, sometimes they appear on first flash once in awhile (some apps might not even be installed? or just shortcuts missing, have yet to verify)
7. it feels like the phone flashes way too fast (second flash takes longer, I think?) and more/all? apps get installed on second flash, and Samsung wallet get's REMOVED (how'd it even get there? other than bein left behind from MDOB rom, same with the 4G icon, that icon isn't in either of the two roms I use so how does it get there? and ONLY at the same time the wallet magically appears and the rest of this stuff)
8. when this 4G icon appears my phone seems to be great except for the fact that I know my rom didn't install properly since i'm still missing apps ect, once I flash again, apps appear, Samsung wallet DISappears, 4G icon gets replaced with LTE icon and everything is A-OK until custom kernel is installed, remember this is NOT the kernels fault as it ran 100% perfect for many months ON THIS PHONE until the day this MDOB rom was installed, and it's had these issues ever since.
some of the things I've tried:
- Countless wipes, including full advanced wipe, restore to factory, data wipes
- Ton's of fresh installs of BOTH versions of 4.2.2 - now doing same with 4.3 and wicked rom 9.1
- Tried wiping using TWRP and odin mobile (flashed mobile odin via TWRP, it works incase anyone didn't know)
- Tried flashing roms using odin (pc) v1.85, v3.07, v3.09
- Downloaded new copys of roms from new sources to make sure my roms weren't corrupted in anyway
i'll hopefully edit this post and get some pics up soon and simplify my text to help you guys better understand my situation and i'll also add a list of things I've tried to fix this problem when i have time.
any thought would really be welcome, there's sooo many of us s4 users with random sleeps of death, i'm sure if we could fix this it would help out a lot of S4 users.
thanks, dustin
Amb669 said:
System Specs: Galaxy S4 Canadian i337m OTA 4.3 (jfltecan), carrier is Bell, stock Samsung firmware, stock kernel (use wicked rom 9.1 sometimes too)
WARNING:
lot's of reading so go grab a coffee and have a cigarette before you sit down to read this, you'll probly be here for awhile
The rom/fix in question: MDOB rom/i337m fix - here's a link to both.
http://forum.xda-developers.com/showthread.php?t=2280556
i'll hopefully edit this post and get some pics up soon and simplify my text to help you guys better understand my situation and i'll also add a list of things I've tried to fix this problem when i have time.
any thought would really be welcome, there's sooo many of us s4 users with random sleeps of death, i'm sure if we could fix this it would help out a lot of S4 users.
thanks, dustin
Click to expand...
Click to collapse
Have you tried to flash the stock firmware in Odin. You can get it off the Samsung Updates site.
The guy who puts MDOB together generally makes great rom's. If everyone had the same issues then no one would use it... you really could have gotten a bad download, user error somewhere or one of many other problems.
With apps' just "appearing" are you certain once you log into your google account that it not set up to automatically start downloading apps ?
hednik said:
Have you tried to flash the stock firmware in Odin. You can get it off the Samsung Updates site.
The guy who puts MDOB together generally makes great rom's. If everyone had the same issues then no one would use it... you really could have gotten a bad download, user error somewhere or one of many other problems.
With apps' just "appearing" are you certain once you log into your google account that it not set up to automatically start downloading apps ?
Click to expand...
Click to collapse
don't get me wrong, i'm sure it's a great rom but my battery drain was worse than stock so I went back to stock, I REALLY appreciate his hard work towards our community. I just dislike what it possibly did to my phone is all.
and I don't have issues with the MDOB rom itself, it's AFTER that rom has been on my phone EVERY other rom ever since then now has issues in some way shape or form, no matter what I do.
if it's user error I put down the steps on how I flash in OP, I dunno what's going wrong
i'm gathering screenshot's to better show my situation.
I am 100% positive GAPPS is NOT installing anything after rom installs (I don't connect to wifi until after setup is done spacificlly to prevent this from happening, my rom just flashes this way (only on first flash from wicked rom going to stock rom) once I flash again a second time my symptoms part goes away and I get the issues part of my OP
if i'm on wicked rom and flash to stock = symptoms listed above
if i'm on stock rom and flash to stock = issues listed above
I can replicate this problem all day long.
I've flashed his rom on and off. Never had the issue. The rom doesn't invade anything a full wipe wouldn't cure. If it doesn't full wipe then it's the recovery. It helps once in awhile if you Odin back to stock or even copy your sdcard contents and format your sdcard to make it fresh. read up on it first.
Sent from my SGH-I337 using Tapatalk
---------- Post added at 01:45 PM ---------- Previous post was at 01:44 PM ----------
Also I recommend doing 9 wipes when swapping roms. It sound ridiculous I know but I do it and have never had issues.
Sent from my SGH-I337 using Tapatalk
Amb669 said:
don't get me wrong, i'm sure it's a great rom but my battery drain was worse than stock so I went back to stock, I REALLY appreciate his hard work towards our community. I just dislike what it possibly did to my phone is all.
and I don't have issues with the MDOB rom itself, it's AFTER that rom has been on my phone EVERY other rom ever since then now has issues in some way shape or form, no matter what I do.
if it's user error I put down the steps on how I flash in OP, I dunno what's going wrong
i'm gathering screenshot's to better show my situation.
I am 100% positive GAPPS is NOT installing anything after rom installs (I don't connect to wifi until after setup is done spacificlly to prevent this from happening, my rom just flashes this way (only on first flash from wicked rom going to stock rom) once I flash again a second time my symptoms part goes away and I get the issues part of my OP
if i'm on wicked rom and flash to stock = symptoms listed above
if i'm on stock rom and flash to stock = issues listed above
I can replicate this problem all day long.
Click to expand...
Click to collapse
Just odin back to stock and set if that clears things up. It should solve any odd problems. The thing with flashing rom's is that someone's issues cannot always be replicated.
Going back to Odined stock will take it back to factory stock then do a factory reset in stock 3e recovery and you should be fine

[Q] NAE Slowdown?

I have recently installed about 2 weeks ago the stock 4.4.2 (NAE) rom. (From this thread: [ROM] [STOCK] [NAE] [4.4.2] Stock Rooted NAE Rom - Yes it boots)
Everything has gone great, all radio's, and everything works fine.
Then I Installed the Google Now Launcher. Everything was ok for about a day or two, then I've been getting slowdowns returning to the home screen. To the point, when I press the home key, it sits on the last application's exit screen that I was trying to exit, until the phone falls asleep. When I wake it, then it is back at the home screen.
This happens on both the Google Now Launcher, and TouchWiz (Stock Launcher)
Is there anything I could clear out on the phone?
I have 600mb free on the device memory, so I don't think it's from having too many apps on the phone, but at this point I don't know.
Try this
Triumph said:
I have recently installed about 2 weeks ago the stock 4.4.2 (NAE) rom. (From this thread: [ROM] [STOCK] [NAE] [4.4.2] Stock Rooted NAE Rom - Yes it boots)
Everything has gone great, all radio's, and everything works fine.
Then I Installed the Google Now Launcher. Everything was ok for about a day or two, then I've been getting slowdowns returning to the home screen. To the point, when I press the home key, it sits on the last application's exit screen that I was trying to exit, until the phone falls asleep. When I wake it, then it is back at the home screen.
This happens on both the Google Now Launcher, and TouchWiz (Stock Launcher)
Is there anything I could clear out on the phone?
I have 600mb free on the device memory, so I don't think it's from having too many apps on the phone, but at this point I don't know.
Click to expand...
Click to collapse
Factory reset?
or try looking throu you file with a file manager and delete files you no longer use.
Triumph said:
I have recently installed about 2 weeks ago the stock 4.4.2 (NAE) rom. (From this thread: [ROM] [STOCK] [NAE] [4.4.2] Stock Rooted NAE Rom - Yes it boots)
Everything has gone great, all radio's, and everything works fine.
Then I Installed the Google Now Launcher. Everything was ok for about a day or two, then I've been getting slowdowns returning to the home screen. To the point, when I press the home key, it sits on the last application's exit screen that I was trying to exit, until the phone falls asleep. When I wake it, then it is back at the home screen.
This happens on both the Google Now Launcher, and TouchWiz (Stock Launcher)
Is there anything I could clear out on the phone?
I have 600mb free on the device memory, so I don't think it's from having too many apps on the phone, but at this point I don't know.
Click to expand...
Click to collapse
Why not try booting to recovery, clearing out the cach and the dalvik.
And also go into manage apps and delete the caches for them too - things like internet, facebook, tapatalk/xda, books/magazines etc.

[Q] memory leak lollipop 5.0.2?

So I'm noticing I get home redraws after a day or two of use without restarting. When I freshly boot my phone, I have about 1 gb of free RAM and after a day or so, it'll drop to around 600 mb. I'm rooted and installed the memory leak fix for xposed but it doesn't seem to be working. Any suggestions?
Thanks.
txv0 said:
So I'm noticing I get home redraws after a day or two of use without restarting. When I freshly boot my phone, I have about 1 gb of free RAM and after a day or so, it'll drop to around 600 mb. I'm rooted and installed the memory leak fix for xposed but it doesn't seem to be working. Any suggestions?
Thanks.
Click to expand...
Click to collapse
The memory leak fix is only for when you turn off the screen. There are a bunch of other memory leaks in android 5.0.x and even 5.1. The only way to get rid of them is to update to android 5.1.1 (and later?).
Different rom (debloated) , custom kernel, disabling unnecessary Google play services via MyAndroidTools. All can help. As I heard, screen off memory leak is not an issue with g2 lp, but there are some other leaks, yes.
The best ram management I had was with dorimanx kernel (currently using it, 2.9 for vs980) on stock lp rom (xdabbeb's 3.1.0). It has some tweaks that help fix some of the memory leaks found in 5.0.2. If you are on STOCK g2 rom (not ported) I suggest you to try it for yourself. It seems to me like it makes a difference and it can be set as an scheduled event so you don't have to clean ram, cache and whatnot manually. Check the screenshot for the options via dorimanx stweaks app that comes with the kernel

[Q] KitKat to Lollipop - the phone is unusable (huge battery drain and sys errors)

Hi everyone,
Until recently I've been using a KitKat based ROM and I was pretty OK with how my NOTE 3 SM-9005 was performing. However, a few days ago I decided to try a Lollipop based ROM and the problems started. I had similar problems with 3 different ROMs with great reviews. My battery went, for example, from 100% to 15% in ONE HOUR while streaming from YouTube. It never did that before. Also, It sometimes gives a "system stopped responding" error or something like that (it's like the equivalent of explorer.exe crashing on Windows) and after a few seconds it starts working again. Other system apps crash as well every now and then and sometimes the phone just decides to restart by itself.
I initially used Philz recovery and after the initial errors I switched to TWRP and started from scratch. I completely wiped my system internal space before flashing and, of course, I wiped dalvik cache and cache before and after flashing the ROM. I only used recommended gapps. Also, I did not restore any system apps. I started from scratch after the installation and the problem is the same.
To be more exact, I tries flashing so far the following ROMS, experiencing more or less the same problems on each:
temasek's UNOFFICIAL CM12.1
AryaMod V5.4 TW Lollipop Official BOB6
BlissPop 3.5 Unofficial
I also tried the Dirty Unicorns v9.4 ROM from the Original Android Development section but this one went on a reboot loop initially after the first restart so it never really even installed.
At this point I believe I might have done something that I should't have, but it seems strange because this is not the first time I am flashing a new ROM and I never had problems in the past. Also, my NOTE 3 SM-9500 did not have any problem on my previous KitKat ROM. Did I miss something? Should I have used another kernel? If I understood correctly, the ROMs come with a recommended kernel already. If this is not the problem, what could it be? Should I have done any additional thing before flashing a Lolipop ROM after using a KitKat ROM?
I now installed an app for trying to find out what exactly drains my battery but this is not the only problem. The system itself is really unstable.
I would really appreciate some help, suggestions, or opinions. I really don't know what else should I be doing at this point.
Thanks a lot!
Apparently is the media server eating all that battery (currently 68%).
I will format the SD card hoping this fixes the issue.....but could this have something to do with the system error and, sometimes, restarts?
Well I really don't know what to say! A lot of people report battery problems on 5.0 just because they didn't wipe the phone while coming from KK! But you did, so that's no go. Battery life on LP is much better than KK for me, at least 20% better if not more. And I didn't face any system crashing issues either! Don't really know what's going on with you mate.
Someone suggested that maybe I shoud update the bootloader and modem to a Lollipop version but I really couldn't find any info on how to do that.
Formatting the SD card just slightly reduced the battery drain. The phone is still discharging like crazy. Any suggestion on how to update the bootloader and modem?
Thank you.

All apps stop constantly and in random way -SM-N910F

Hello.
At first, I am new in the forum, so hi to everybody and thanks for the job in this site.
I have a very big problem with Note 4 ( I can't use it right now). Since I rooted the phone and changed the rom (to Cyanogenmod 12) all apps stop constantly and in random way. I have tried everything (I think so), return to the stock rom (android 5.0.1), make wipes (cache, data...) and reinstall the rom from Samsung switch.
I don't know what to do.
More info: All apps stop but the gapps stop with more frequency. I sent the device to the technical service but they take it back because I have modified the software (knox 0x1).
Sorry for my english. I am from Spain.
Thanks.
Third party apps or system apps?
Did you install any battery saving or ram booster apps?
GrippingSphere said:
Third party apps or system apps?
Did you install any battery saving or ram booster apps?
Click to expand...
Click to collapse
All of them
No, I don't believe in those apps. The only thing that I did for imrpoving the performance was to intall CM12 (It works fine at first)
I thought that CM12 doesn't work well with the Fast Charging... Could it be?
Thanks.
It seems like you might've flashed a gApps package for an earlier version of Android than what Cm12 is (5.1.1).
Try a full device wipe, reflashing CM12 & a gapps for 5.1.1
Jishy420 said:
It seems like you might've flashed a gApps package for an earlier version of Android than what Cm12 is (5.1.1).
Try a full device wipe, reflashing CM12 & a gapps for 5.1.1
Click to expand...
Click to collapse
I tried that and It didn't solve the problem. I also reflashed the stock rom (with Odin). Without effect, the problem was not resolved...
Thanks for your help.

Categories

Resources