yashsingh1/xdaforums huggingface dataset:
[RAZR HD Android Development] lslacker:
No I was actually wary of actually installing xposed till I saw that tip of yours. I am a developer (not android..yet) and having an application that can hook up to other apps and override methods/properties is just scary, not to mention a separate memory using process. But I was getting tired of the launcher redraws and didn't feel like trying a new launcher, so I gave it a shot.

So the only xposed module I'm using is the app settings module. I was already using greenify. I also use an app called Gemini app manager to prevent certain apps from auto starting at every boot or based on certain events(Google play music, facebook). You can see all the hooks in Gemini. I don't need Facebook to start every time I connect my phone to a charger for instance.

Memory issues can vary with each user though. You might be running 10 more push notified widgets than I do. I don't use Google now or location aware apps either except when using Navigation. If you're the only one really experiencing memory issues though, your memory needs might have outgrown this phones 1gb limit.
[RAZR HD Android Development] manuski:
I have memory issues too. In fact I hear it when listening to my Bluetooth. It constantly skips every couple seconds or a minute. And it happens even when data is not being used to play music. I'm still in 10/13 but because I need some things on newer version that don't work to work so I stood on this version until things feel better. Allot of times I only have 70mb free when enabling the recent ram bar. I'll close everything and still only have a small amount of ram left. In fact I went on a social network through browser and at one point I got a Device Low in Memory notification as if I was back on my og droid.
[RAZR HD Android Development] DonKilluminati23:
Nothing unusual here, this is without using taskers for anything and about 17 hours after the last reboot.
[RAZR HD Android Development] matt1313:
Yes the memory issue is getting old. How can we help locate the issue? I get reboots daily now where before I didn't. I run tasker to reboot daily just to help but still gets bogged down.

If there is a way for us to help let us know.
[RAZR HD Android Development] abuttino:
This latest build is... So far so good, haven't been on my phone to much today but the battery isn't getting sucked down like it was before..

Unlike most of you, I don't see a reason to run applications to boost a non-stock ROM.. It just doesn't make sense.. The custom ROMs are supposed to be better than stock.

We can all agree in one thing.. There is a memory leak and it happens no matter what applications are in the background or foreground.

One can only deduce that it's coming from inside the OS.
[RAZR HD Android Development] lslacker:
MMS appears to be fixed on 1024. News & Weather app is crashing though
[RAZR HD Android Development] manuski:
Confirmed. MMS works but yes that application does crash. I get allot of skipping on music.
[RAZR HD Android Development] jldr:
Guys, I'm pretty hopeful I found the issue...

It's very possible it might be systemUI memory leak. I checked its RAM usage and it was up to 180mb. Apparently it should be around 40-60mb, mine is now at 79 after restarting. I restarted it using ROM Toolbox (scroll to the bottom and tap reboots) and now I cannot replicate the app closes, whereas just seconds before this I could easily.

This could be a good sign. I recommend others who are having this issue to check and see if their SystemUI RAM is at that number. You can use an app called Elixir , but there are tons of apps that do the same thing.

I'm going to continue testing it and see if this is truly the issue!! I'm pretty excited!
[RAZR HD Android Development] manuski:
How? You rebooting every day? I don't know what to do with memory anymore. Tried allot. Even messing in tool box options. Foreground applications and all. Nothing. I feel that's why multi tasking and music skipping is happening. Starving for memory. Mind you I haven't clean flashed since end of September or early October version. And just dirty flashed from 10/13 to 10/24.
[RAZR HD Android Development] noobiest:
2 things: First, I reboot every day through an app that is scheduled to do it while I sleep. It does a lot for the stability of the system. Second, I never submit an issue in the thread unless I have clean flashed with no other mods installed. A clean flash also solves bugs a lot of the time. I don't have the ram issue you are describing. Sure I have the occasional fc but no Bluetooth problems etc. Also, launchers like buzz or apps like fb kill ram like crazy. Just a thought
[RAZR HD Android Development] manuski:
People are still having fc and RAM issues even with a clean flash fyi
[RAZR HD Android Development] noobiest:
2 things. First, I reboot every day through an app that will do it while I sleep. It does a lot for the stability of the system. Second, I never submit an issue in the thread unless I have clean flashed with no other mods installed. That also fixes a lot of bugs. Also, launchers like buzz or apps like fb kill ram. Just a thought.

---------- Post added at 03:10 PM ---------- Previous post was at 03:08 PM ----------

Sorry, didn't mean to post twice.
[RAZR HD Android Development] abuttino:
My systemui process is up to 94mb.

Second to that is Tasker is 43 with my enormous task list, that's pretty good.

I haven't rebooted since this morning because there hasn't been a reason to yet.. No FC and stable with system and battery life. I must say, today's nightly is one of the most stable I've seen in about a week.
[RAZR HD Android Development] jldr:
Not bad. Keep an eye on it, especially if the apps start closing. If it's up to 180 range, something is wrong again.
[RAZR HD Android Development] abuttino:
Arghhh, can you tell me intent broadcasted for extended desktop on/off? I'm trying to set a Tasker variable based on these intents.
[RAZR HD Android Development] arrrghhh:
Hm. Not sure.. can you trace it in logcat?
[RAZR HD Android Development] abuttino:
Uhh.. Probably.. Not sure why I didn't think of that one.
[RAZR HD Android Development] abuttino:
The most recent thing I've noticed on 10/24 and previous builds.... If the system isn't force closing the hell out of your apps, it also tends to be a bit better on battery life . . . In other words, these two are directly related
[RAZR HD Android Development] manuski:
I'm getting phone. Android. Com stopping allot. And some other ones to. Is just stopping though not force closing. And I did a fresh install on 10/24. Also noticed there's no torch light in this build. No option for lock screen light for nav button or lock ring. Trying 10/25 or 26 with a dirty flash. Is there any other 4 .3gapps besides 8/13? that I don't know about
[RAZR HD Android Development] arrrghhh:
Hm, I have heard of the new telephony commits causing issues like this.

I had issues with the torch light (specifically on the lock screen, wouldn't stick), still not sure how to troubleshoot it - although I didn't realize it was removed... I think this is a global issue, will check.

As for gapps, I use 8/13 as they're the latest official. There's plenty of unofficial gapps you can try - they work with varying success, I will only recommend official gapps in this thread. You are welcome to try the others!
[RAZR HD Android Development] GillRigged:
So, systemui is definitely what causes apps to force close and/or restart;a major memory leak issue. I use the ROM Toolbox Pro Rebooter shortcut to restart System UI and that takes care of it for a while without rebooting the phone.
[RAZR HD Android Development] manuski:
Nice. Good thinking, good for the time being. So the ui reboots but not the phone right? Which means at a certain time the screen may blink or turn black for a couple seconds and come back? I have to check that out. About to flash 10/25
[RAZR HD Android Development] jldr:
Yeah, good thinking... even though I was the one who originally found the leak and fix on this very page.
[RAZR HD Android Development] GillRigged:
Indeed you were the one;just confirming your find. So, thanks.

The Notification bar will go away for awhile and the screen might flash quickly.
[RAZR HD Android Development] abuttino:
After 3 days on 10/24, systemui finally bloated to 190 mb. Several reboots through the days but not in the last 24 hours..
[RAZR HD Android Development] arrrghhh:
Torch is in the latest, I just flashed 10/26 (although it was a dirty flash...)

I still have the annoying issue with the lockscreen torch option - just doesn't want to stay on when I hold it.

I also don't seem to have issues with front cam, but perhaps that was another Carbon thread...
[RAZR HD Android Development] abuttino:
Arghhh, have you been able to track down the memory leak with systemui?
[RAZR HD Android Development] arrrghhh:
Nope, I honestly do not know where to even start with this issue. Assuming it does not exist in CM, then it must be some tweak which we have applied. We being Carbon.
[RAZR HD Android Development] matt1313:
I made a task in Tasker to run every 2 hours to restart SystemUi.

Works great.

Run as root

pkill -TERM -f com.android.systemui; am startservice --user 0 -n com.android.systemui/.SystemUIService
[RAZR HD Android Development] abuttino:
Is that a plugin? Pkill?
[RAZR HD Android Development] scoobaspeaz:
Its a basic Linux command that should work on Android.
[RAZR HD Android Development] arrrghhh:
Indeed, pkill is pretty much a core part of Linux. I don't think you need anything added to use pkill, just root permissions.

As for the actual leak - guys, I need more. At least a logcat of the issue, or perhaps something that you folks are doing which induces it...

Memory leaks over time are not a simple thing to fix either. If you can confirm this exists in other ROM's, or perhaps when it started... these things help.

I don't have to restart SystemUI every 2 hours, and I would say I do not have this problem... but perhaps I am not using some feature / tweak which you folks are, I am not sure.

I don't use Tasker, but I doubt that is the issue... Other than that, I haven't seen anything in common, is there something special you are changing in Carbon Fibers? Some system-related tweaks perhaps that I am not applying?

I don't change a lot of the settings, I use ActiveDisplay and disable the low battery alert... Enable Dark Carbon maybe. I don't change a whole lot else, haha.
[RAZR HD Android Development] abuttino:
I have about the same tweaks you do, dark carbon, RAM tweaks and pie.

I have exactly 9 toggles in the tiles and that is it. No animations for text or anything that might eat up RAM.

There is absolutely no doubt there is a leak in systemui. But you are right, the hardest part is going to be finding it.

I can tell you that it might have something to do with the touchscreen or navigation. An extra press of the back button can crash every application on the phone.

It is the most commonly used thing on the phone, explaining how it could go to hell after a while.

Just my $.02
[RAZR HD Android Development] arrrghhh:
If there's something you can do which induces the issue, please do so and pull a logcat after such activity. If you can capture the leak, that is what is needed. I haven't been able to recreate it.
[RAZR HD Android Development] abuttino:
I have set aside my systemui restart in an effort to help you find this.

Once the phone starts closing everything, I'll start the logcat and make it continue to close things.
[RAZR HD Android Development] matt1313:
Streaming pandora for 1 hour then trying to surf the web my phone freezes. Cant pull a logcat from that. Usually Im out and about. If I have BT Streaming and try to open apps or surf I get this
[RAZR HD Android Development] arrrghhh:
Just remember guys, there's usually logs in /data/logger if you are out and not around a PC.

There's also apps which can help you pull logcat on the phone directly.
[RAZR HD Android Development] abuttino:
Slightly o/t here: What version of CWM Recovery are you all using? I use a version that takes FOREVER (15min+) to wipe cache and hoping that there is another solution with an upgraded recovery.
[RAZR HD Android Development] arrrghhh:
I personally use TWRP.
[RAZR HD Android Development] abuttino:
Might I ask, how long does it take you to wipe cache?
[RAZR HD Android Development] arrrghhh:
I just did an 'advanced' wipe in TWRP of cache only. About 4 seconds.
[RAZR HD Android Development] abuttino:
Hmm.. Not bad.. I knew it was a problem taking that long.

I know you don't have a 926, but to be VERY sure, what version of TWRP for the 926 would you suggest?

Also, I've been tempted to try some of the latest builds.. 10/24 is so perfect, I don't feel like messing with it.. I can always go back, but the past builds have accelerated the FC problem (following a near-perfect build) and it would probably help if you got those Logcats sooner, rather than later..
[RAZR HD Android Development] arrrghhh:
Does the 926 have it officially? I helped get TWRP official for the Photon Q. So whatever the newest is I suppose...
[RAZR HD Android Development] abuttino:
Are you planning a ROM release tonight? I'll wait if so.
[RAZR HD Android Development] arrrghhh:
Should build every night.
[RAZR HD Android Development] djuniah:
For those asking about TWRP, take a look at the build i made. There's a link i my sig. I've been using it for a month now. Works great.

For those looking for a repro on the mem leak, try firing up navigation (to some remote location), let it run in the BG while you play music/browse/whatever. That tends to help show the issue. (most likely since nav is a pretty intensive activity for your phone that uses a vast majority of the sensors/radios and runs a lot of things in the background)
[RAZR HD Android Development] abuttino:
And obviously you are using it with Carbon Rom?

Nevermind.. Just tried it, worked perfectly. Thanks.. No more waiting 15 minutes for a cache wipe..

arghh..

10-28 is running pretty good as well... Looking better every day!
[RAZR HD Android Development] abuttino:
Are there any themes for carbon? I notice there is a theme changer but I haven't been able to find any themes.

Also, I'd like to change the font on the notification area, tried ROM Toolbox Lite but it ended up hanging at boot and had to reflash
[RAZR HD Android Development] gtownie:
Last nightly was 10/28. Hope all is well with the development. Any idea why new nightlies aren't building?
[RAZR HD Android Development] arrrghhh:
They are building... Goo.im is effectively down (read-only) and thus none of the jobs are uploading.

Noticed that the jobs fail to upload to our other mirror as soon as it fails to upload to goo... we are working on fixing it.
[RAZR HD Android Development] manuski:
Anyone getting phone. Com stopping or anything else like Google chats?
[RAZR HD Android Development] arrrghhh:
I use Hangouts all the time, no issues here....
[RAZR HD Android Development] famac!:
Weird issue with my 10/24 build. All my icons on all 5 screens are now showing just the top half! Had to reboot twice to get full icons back. Anyone seen this before? I checked and i still have about 200MB of RAM so i think i am good on that front.
[RAZR HD Android Development] RikRong:
Patience...
[RAZR HD Android Development] iceeyes91:
Have been on the 28/10 nightly and can confirm it. I get it if I want to access the mobile network settings. It happened with the 4.2.2 release build too, but not so far with the nightly builds up to 20/10 (last one I tested after going to 28/10 build).

I think it is because I use the verizon phone here in europe with an international sim card though.

best regards

Edit:

Change langauge to english US and it will stop. Having selected my native language german FC it though, don't know why.
[RAZR HD Android Development] scoobaspeaz:
Is the MMS issue here with Carbon as well? I know with the most recent CM builds MMS does not work with the stock text android app.
[RAZR HD Android Development] arrrghhh:
Probably. I can't test MMS, I use Google Voice.
[RAZR HD Android Development] abuttino:
Most people say it's fixed. I get them on stock but never send and MMS
[RAZR HD Android Development] DarkKnight62:
how do you add the option for rebooting into recovery or the bootloader? i'm on the 10/31 nightly and whenever i chose reboot i don't get any options anymore.
[RAZR HD Android Development] lslacker:
Settings --> Developer Options
[RAZR HD Android Development] DarkKnight62:
i seem to have been having a problem and it doesn't matter which kernel i'm on and it's been happening on this rom for about the last couple weeks. sometimes when i turn on or reboot the phone the status bar never appears. i wait 5-10 minutes and it never turns on. has anyone else ever had this problem?
[RAZR HD Android Development] RikRong:
It might be set to autohide. Have you touched the top of the screen to see if it shows up?
[RAZR HD Android Development] DarkKnight62:
it's not auto-hide since the entire system ui doesn't load. can't use pie either. so i can't really navigate through my phone. sometimes i just power off completely and then turn on the phone and that might do it. sometimes i go to recovery and wipe the davlik and cache and that seems to do it all the time.
[RAZR HD Android Development] Byakko Custom:
That used to happen to me all the time...

I remembered how fast the phone was to boot up and load system ui when there were only the system apps after a clean install.

I had about 300+ apps installed at one point and it was hell using my phone. I figured I might add well clean up and uninstall as many unnecessary apps as I could...

Dropped about 150 "useless" apps and games. Never had an issue with system ui since. Always starts within 30 seconds of seeing the lock screen.

Of course, this'd only applies of you have a ton of apps installed.

tl;dr

Had 300+ apps, uninstalled a lot of them. Problem Solved. (For me)

On a side note, thou art probably wondering, "How am I supposed to uninstall the apps if system ui won't start?" Assuming you have TiBu, batch uninstall. (If you can.)

Now if you barely have any apps installed, well then this tip is rather useless.

Either way, good luck.
[RAZR HD Android Development] hugodefcon:
Why has the xt925 been drooped out from goo.im ?

Its not under the carbon folder. :(
[RAZR HD Android Development] arrrghhh:
Please use http://download.carbon-rom.com, goo is in the process of a massive overhaul.
[RAZR HD Android Development] hugodefcon:
I believe this mirror isnt working.

I wasnt able to download it on my phone or computer.

Or is it not supposed to work at the moment?
[RAZR HD Android Development] arrrghhh:
Well... it seems there is an issue. I start the download, and it just sits at 'Starting'... Eventually finishes, but only 24kb.

I will talk to the admin.
[RAZR HD Android Development] jldr:
FWIW, I switched to CM and haven't had a leak. So there's something with Carbon, because all my apps are the same.
[RAZR HD Android Development] theZest:
Guys, I've just noticed that HDMI doesn't work. When cable is plugged the screen turns to horizontal view but nothing more happens. No signal from HDMI according to my TV. It's not implemented yet, right?

Carbon Nightly-2013-10-28, XT925.
[RAZR HD Android Development] StefanGA:
Hi Guys, tried the Carbon Rom over the weekend for the first time (Nightly from 10/28 on the XT925). I am very positively surprised by performance and featureset, also bluetooth streaming works flawlessly without any type of clipping - I did notice two small issues though:

1. Everytime I reboot the phone, if I unlock to quickly and the homescreen get's loaded, I get a toast that "Unfortunately, Carbonfibres has stopped". Seems to work fine though after that.

2. An issue I noticed on all major roms including CARBON (CM, REVOLT, PAC, LIQUID SMOOTH) - the carrier name is displayed as my "home carrier" everywhere. Means if I do a network operator search, I get a list with 6 times "Telekom.de". Also when I cross the country border, the network switches, roaming gets properly activated, but carrier name still displays as "Telekom.de". I did some research and figured it might be related to the preloaded_config.xml in system/etc missing - tried to put one in manually, but that didn't change anything. Maybe someone has an idea?

I have custom carrier deactivated.

thanks for your awesome work!
[RAZR HD Android Development] arrrghhh:
1. I get this as well - sent in a logcat and need to send in moar. If you can get a logcat of the FC that would be great!

2. The custom carrier label works great for me - but you must keep in mind how CDMA and GSM acquire this information. GSM gets it from the tower, and CDMA uses a set of pre-configured names in a list - so if this MCC/MNC match up, you get that carrier label. On CDMA, renaming my carrier works great! However, on GSM I don't think this works as well - again, because the service provider's name should be coming from the tower itself.

Regardless of all I said for #2 - it's a cosmetic thing. Not sure what can be done about it, since you are GSM.
[RAZR HD Android Development] StefanGA:
Agree it is majorly cosmetic, but makes picking the "cheaper" roaming partner a trial and error game.. what wonders me, though is that the proper carrier name seems to be correctly available in data/property/ - persist.radio.nitz_plmn_0 has "270 01" and the persist.radio.nitz_lons_0_0 and persist.radio.nitz_sons_0_0 both show "POST" as the proper carrier.. so the phone knows at least what current operator is active.. programmatically should be possible to display those values over whatever is currently retrieved when custom carrier lable = false... SIM operator!?

Not sure where the list for "all available network operators" during search is taken from, but I figure this comes in with the proper data as well.. I know this works correctly on stock rom..

I wil see if I can get one of those FC's logged..
[RAZR HD Android Development] abuttino:
Arghhh, can you get 11-04-13 reuploaded to download.carbon-rom.com?
[RAZR HD Android Development] arrrghhh:
The mirror was being DDoS'd... Pretty much every upload for every build failed last night :(
[RAZR HD Android Development] abuttino:
Wtf, people don't have anything better to do with their time? Odd target
[RAZR HD Android Development] djuniah:
I use HDMI daily, and it works fine (I have the phone mirror into my car's dashboard via HDMI). As a test, try using a different TV. I had an old HDMI->Composite adapter that i used to use that wouldn't do sound with non-moto ROMs, but a newer adapter worked fine. So it MIGHT be on the receiving end.
[RAZR HD Android Development] KeepingItCuttingEdge:
Has Carbon been updated with the latest CM nightly? I ask because the file sizes have jumped on CM to 217MB a few days ago and these are still around 160MB. I realize the CM nightlies have always been quite a bit larger. What accounts for this? Just curious...

Thanks and keep up the good work! (Any enlightenment/explanation would be appreciated.)

*** Sent from my XT926 hacked to AT&T ***
[RAZR HD Android Development] abuttino:
arghhh,

do you have the md5 from 11-05?

Since that FS is getting hacked, I don't want to put an incomplete rom on the phone.
[RAZR HD Android Development] arrrghhh:
I'm not completely familiar with the exact process, but I think it's the squisher that does the heavy lifting. There's also an optimization process that the build goes through at the end...

You can see our build scripts on github :)

https://github.com/CarbonDev/android_build

MD5's should be available from the website - just let it load... I know, sounds silly just saying it.

Edit - I realized you might not have seen the little 'i' - click on it at the end of the download, it will pop up a new window which takes a bit to load... but should have the MD5.
[RAZR HD Android Development] StefanGA:
Here is my logcat, stopped couple of seconds after the FC.. Shows couple of errors, just copied the last few lines. Let me know, if you need more.
[RAZR HD Android Development] arrrghhh:
Please get the actual FC.

You should see some error lines "E/" and java stuff. Especially look for the Carbon Fibers app (com.carbon.fibers or whatever...)
[RAZR HD Android Development] manuski:
Any one know about that memory leak?