Android - HUGE Aplogs Tombstones files. How to avoid them? - General Questions and Answers

Hi! I'm new in this forum. I have a problem in a tablet that uses a custom rom. After a while using the tablet (some weeks), the applications start to crash due to lowmemory. Trying to find the causes of this problem, I've discovered that the "logs" folder of the tablet have files (created when some applications crashed) over 800 MB sometimes, and the tablet is out of space... Almost all the available space is occupied by these files!
I want to know how I can avoid the creation of these files if they're bigger than 10MB (for example) in this folder or if I can find some solution to this problem.
Important: The problem of applications crashes stops if I empty the logs folder, but what I want to know is how to avoid the creation of the files, because my objective is to made a custom rom for a certain model of tablets that many users are going to use.
Thank you!

Related

slow performance

All
my xdaII is suffering lethargic performance after upgrading the ROM to latest version from o2! I reloaded all of my applications and now the device is really slow to switch between apps. I have attached acouple of screen shots detailing the device/memory status. Additionally my active synch will not now synchronise files and contacts data, it just keeps on rolling around saying 0 of ?? files synched. I accept it is probably something I've done but I dont know what...
If anybody has any ideas on how to cure this I'd be very grateful. Thanks
Pete
I suspect the performance problem on the XDA II is because it's reaching the process limit - 32. PPC Phone Edition uses more processes than the standard version. There's only a handful of processes available after all the standard stuff is loaded. Basically you should load as little at startup which means editing the contents of the Windows\StartUp directory. Make a backup of this directory before you start deleting things. Below is the standard shortcuts I have left in the directory:
ChgDfLnk
FSK Loader
IA_Caller_ID
This also means you should use as little utilities that run in the background as possible. I don't know if today plug-ins use up an extra process. I have heard that it is possible to write a program to run as a service but most developers don't bother - I don't know enough about PPC development to know whether this is true.
Also Activesync uses 3 processes, maybe it can't get enough free processes to run properly.

Rom optimization idea

I'm no developer, scripter, or any type of person with a thorough understanding of software but I will try to offer a suggestion to those who wish to give me the time of day.
After flashing countless ROMs looking for the fastest and most simple platform to use everyday I have discovered a few things that might help if people agree with me or not. After loading every ROM and first booting... I realize that Advanced Task Manager shows the available system memory at less than half and i haven't even started running apps or installing programs yet. Processes start when the phone boots up that are running in background (asleep but still using system resources) and i believe that a fair percentage of them are not required by the everyday user.
Why is Alarm Clock running in the background when i haven't started it? Why is Email client running and i haven't setup exchange or an email account? Messaging, Maps, Settings, Gallery, these all start up without being physically executed and are using resources. If there is a reason for them to be there like not being able to receive SMS if Messaging is not running, then that is fine and im an idiot... But if there is no need to startup the application from boot then why do it?
My second point is when packages are installed as the ROM is flashed, they cant be uninstalled right? well what if we didnt want tethering apps and facebook apps and proprietary software (Moto apps)? Most of these are available in the market and if not, a 5 min Google search will find an .apk on the net anyway.
So how about a bare bones install with the essentials and nothing else? Youtube, Phone, Messaging, Gmail, Contacts, MT Browser , Maps, Calculator... then anything else can be added at the users will.
If anyone else has something to say... or prove me wrong, then please elaborate.
If you delete the alarm clock task, you're likely to sleep into the morning as the alarm won't go off in the morning. Mail is probably needed for pop3 checks (I rely on my google account).
Anyway, I usualy remove the apps widgets from the ZIP which I don't need prior to flashing, resulting in a liter ROM and less processes which I don't need running in background.
I also used to add the apps I use (ASTRO...) directly into /system/app prior to flashing, putting them to the system partition and ... at this point I am not sure.... this leaves one with more space (internal memory) accessible for apps from market (if you do not use APP2SD). I stopped however doing so, as this makes ROM upgrading painful, as you do have to prepare each .zip before flash.
With regard to operating memory you preferably use either Taskkiller or have your systems autokill file optimized as many ROMS do (CursorSense). Refer to http://forum.xda-developers.com/showthread.php?t=622666
I'm not Linux-guy but I know that Android does this to put those programs in memory ASAP because those are usually the first few apps many people use once they boot up their phone -- meaning those apps, when opened, will quickly open and run faster.
Remember, Linux is made to handle all those opened apps and resources; "Unused RAM is useless RAM".
hol17 said:
I'm not Linux-guy but I know that Android does this to put those programs in memory ASAP because those are usually the first few apps many people use once they boot up their phone -- meaning those apps, when opened, will quickly open and run faster.
Remember, Linux is made to handle all those opened apps and resources; "Unused RAM is useless RAM".
Click to expand...
Click to collapse
Correct!!
People have to stop comparing Android (linux) with WinMo devices, they handle RAM completely different.
dione1200 said:
Correct!!
People have to stop comparing Android (linux) with WinMo devices, they handle RAM completely different.
Click to expand...
Click to collapse
Yes, true.... and well known. However Linux was developped for servers and not mobile phones.
Launching an application into free RAM is slower than pulling it from a suspended state. So much is true.
But first having to free up up RAM (by killing tasks) before launching the application into the freed up RAM is certainly slower than launching into free RAM. Probably that's why guys are tweaking around, as noted in the link of my post above. Also in my opinion the default settings are not optimal, that's why I use tweaked settings. Probably that depends on how you use your phone.
But I agree. Coming from Windows the whole LINUX concept is a f**** nightmare. There are thousands of different methods (Cache/Compcache/ Ext Cache)...
So it's good to have an expert around. Could you please enlight me, whether the system partition is of fixed size or size is been alocated during flashing. In other words, is the Userdata size fixed or depending on the system size? .... and is there a benefit of putting apps to the /system/app as they will go to system parition and I will have more internal storage available?
Thanks in advance.
feicher said:
So it's good to have an expert around. Could you please enlight me, whether the system partition is of fixed size or size is been alocated during flashing. In other words, is the Userdata size fixed or depending on the system size? .... and is there a benefit of putting apps to the /system/app as they will go to system parition and I will have more internal storage available?
Thanks in advance.
Click to expand...
Click to collapse
Your Android Device is divided Into partitions -> (Device memory)
1. Hboot (spl)
2. Radio
3. Data (Where u store ur data apps / passwords / other thing)
4. Cache (temp)
5. System (system dump)
6. Boot (to start the device)
so on
Now partition of memory card is important becoz
1. EXT2/3/4 More Amount of Data Section -> if device memory is less
2. Swap -> To fast up the system
*I m Not best Explaination giving person but i think this is understandable language in which i hav written
I think I side with the OP on this one, I would rather have a rom with less in it and then choose to install Amazon MP3 or whatever by myself. Generally speaking you could argue less apps = better performance, as there will be less happening in the background. That said, I have included Facebook in my rom.
However Linux was developped for servers and not mobile phones.
Click to expand...
Click to collapse
Not really true, Linux is just the kernel and can be ported to anything, it's been in embedded small devices for years and not just installed on servers.
ahmgsk said:
Your Android Device is divided Into partitions -> (Device memory)
1. Hboot (spl)
2. Radio
3. Data (Where u store ur data apps / passwords / other thing)
4. Cache (temp)
5. System (system dump)
6. Boot (to start the device)
so on
Now partition of memory card is important becoz
1. EXT2/3/4 More Amount of Data Section -> if device memory is less
2. Swap -> To fast up the system
*I m Not best Explaination giving person but i think this is understandable language in which i hav written
Click to expand...
Click to collapse
Thank you very much for the feedback! Most appreciated and helps me to improve my general understanding . I find it really hard to come by information, that is not absolutely basic or high level expert.
Thanks again.
Ive got a clock radio that wakes me up... if i have lagging issues with my phone what i do is use advanced task manager to stop all processes im not using (alarm clock, maps, messaging, email, etc) and everything runs fast again.
No use in reboot cause all the apps start again from boot.
ive tried removing zips from rom before flashing... when i goto upgrade the update stops cause of the missing files > incomplete manifest. is this cause you have to re-zip and sign it?
You can either do that and re-sign the zip file.
OR you could just close this thread and use adb to remove things that you dont want from the ROMs.
PS. root explorer also works wonders.
feicher said:
If you delete the alarm clock task, you're likely to sleep into the morning as the alarm won't go off in the morning. Mail is probably needed for pop3 checks (I rely on my google account).
Anyway, I usualy remove the apps widgets from the ZIP which I don't need prior to flashing, resulting in a liter ROM and less processes which I don't need running in background.
I also used to add the apps I use (ASTRO...) directly into /system/app prior to flashing, putting them to the system partition and ... at this point I am not sure.... this leaves one with more space (internal memory) accessible for apps from market (if you do not use APP2SD). I stopped however doing so, as this makes ROM upgrading painful, as you do have to prepare each .zip before flash.
With regard to operating memory you preferably use either Taskkiller or have your systems autokill file optimized as many ROMS do (CursorSense). Refer to http://forum.xda-developers.com/showthread.php?t=622666
Click to expand...
Click to collapse
when i try to remove an app from a ZIP it wont let me flash the ROM. even when i replace an app with a newer version renaming it to match the one im replacing, it still doesnt work. what do i have to edit in order to allow the update to go through?
You need to sign the zip file again. Google signing ROMs, its the first thing that pops up.

Confirmed reason/temporary solution for 4.1.x media battery drain on boot

Can't post in development section, but I think this is very important and torment a lot of people. Temporary solution is for normal user and not perfect. There is a permanent solution, but we can only hope some ROM developers look into this and put the solution to their ROMs.
The "media battery drain on boot" issue is not a VZW SGS3 only problem, it exists in almost all the 4.1.x based ROMs on any kinds of devices. You can search in different sub-forums of XDA to find out. Only in recent, this issue got increasing concern on android googlecode issues page and some project members involved. See here: http://code.google.com/p/android/issues/detail?id=37199. In case you don't want to go through the whole thread, I summarize some important information here:
The reasons causing this issue are twofold:
1. After 4.1.x, the process "android.process.media" will scan every files in your sdcards on boot, this is due to the MTP support (I can't be entirely sure and have no idea why it's necessary). Even with .nomedia in folder, all the files inside are still scanned and indexed, only not shown in galley/ringtones. That's why adding .nomedia file will not help.
2. Even with scanning all files, it shouldn't be that slow. The real problem is the non-optimized matching algorithm for deciding if a file is indexed. The algorithm is slow when dealing with filenames with wildcard character such as "_", and this kind of files commonly exist in photos, cache files of apps etc.
Solution:
An android project member has pointed out that the problem has been mostly fixed in 4.2: https://android.googlesource.com/platform/frameworks/base/+/8ab2dc2f9680307febe997631c2148729f714e3d
But normal users can only wait for ROM developers to merge this fix to their ROMs.
A temporary solution is to look into your sdcards and delete all unnecessary files with name containing wildcard characters, such as "_". Those with media drain issue will find this kind of files very common. Some instant message/social network/maps/gallery apps will cache thumb and media files in this form, as well as the photos taken by camera. Some game data, such as NFS from EA, also contain a large number of such files.
Here is my test and prove:
I used to have about totally 40,000 files in sdcard and extsdcard. After I deleted about 5,000 cache files containing wildcard filename, my reboot indexing time reduced from 18+ mins to 8 mins. I still have about 5,000 wildcard files that I cannot delete, such as photos. The improvement is significant, and I believe if I remove the other 5,000 files, the scanning and indexing time should be similar as in 4.0 and before: around 2 minutes.
Here is a more detailed test: http://rowan.smith.gen.nz/post/37744838003/media-battery-consumption-revisited
Cheers!

GC and CC logs of Mozilla (Firefox ? ) consuming huge amount of space

I have previously posted this question in the Samsung S7 Edge section here http://forum.xda-developers.com/s7-edge/help/gc-cc-logs-mozilla-consuming-huge-space-t3397783 but didn't get any response. It is possible that the topic didn't get any attention as it is in the wrong section and I also feared that my problem could be due to malware and some other security bugs.
My problem started when I was suddenly told that my S7 is running out space without any new huge apps being installed. I tracked down the sudden lose of storage space to a folder named "memory-reports" inside the default Download folder. The folder content comprise multiple logfiles with each file sizes averaging 30mbs, and the number of files gradually increase and eventually hogging over 3gigs of storage space. I deleted the entire folder with the logfiles but the folder appeared again with similar logfiles.
after Googling around, I found the description of the logfiles here https://developer.mozilla.org/en-US/...GC_and_CC_logs. it seem to relate to Mozilla Firefox and I doubt this problem is specific to Samsung S7 Edge although this is the phone I am using now and the problem only occurred to me for the first time recently. couldn't find any mention of similar issue anywhere else via Google, but maybe some of you guys are better at digging them up. Seeking some comments, suggestions as to what cause, possible solutions...
NOTE: My phone is NOT rooted. the logfiles are still being generated periodically and have to be deleted to recover the space. deleting them don;t seem to affect the operation of any apps and especially FIREFOX, which is the only connection I can find with mention of those logfiles name with MOZILLA. The problem seem unique to me at the moment as I still couldn't find any reference on Google to them. Any head-up suggestion on possible reason and ways to track down exactly which apps, background process are generating the log files are certainly welcomed.
I am experiencing the same issue on my Motorola Nexus 6.
Thanks for this. I was facing the same problem. I just deleted the files. It didn't seem to hurt firefox. ]

Curiosity & Experiment - Is there a way to have LESS apps & MORE functionality ?

Hi all!
I was thinking about some way to reduce list of apps installed on my device. Ergo: to get more /data & /system (and other partitions) free space to my advantage.
Testing platform:
Phone: Samsung Galaxy Trend Plus/GT-S7580/kylepro: http://www.phonearena.com/phones/Samsung-Galaxy-Trend-Plus_id8239
ROM: AOSP 7.1.2 (15.06.2017 build): https://forum.xda-developers.com/s7582/development/rom-aosp-7-0-galaxy-s-duos-2-trend-plus-t3472072 - main thread for this ROM.
AOSP 7.1.2 download link: build.sandpox.org
Launcher: Nova Launcher Prime 5.3 beta 2:
https://play.google.com/store/apps/details?id=com.teslacoilsw.launcher&hl=pl - Nova Launcher
https://play.google.com/store/apps/details?id=com.teslacoilsw.launcher.prime&hl=pl Prime Unlocker
Icon pack: Noctum Iconpack 1.9: https://play.google.com/store/apps/details?id=com.mlv.noctum&hl=pl
I started by deleting unwanted apps, but that wasn't enough. I was thinking about replacing some "core" apps from /system partition (e.g. Dialer, Gallery, etc.).
But there was a problem - how do I replace them ?
So I did some searching & found four solutions (I know there are dozens of this kind of apps. but I focused ONLY on this apps):
FOR REPLACING SYSTEM APPS WITH ONE APP:
1) "fooView":
XDA: https://forum.xda-developers.com/android/apps-games/app-fooview-alpha-im-t3326901
Play Store: https://play.google.com/store/apps/details?id=com.fooview.android.fooview&hl=pl
But that wasn't it. I didn't liked it. Some "unnecessary" features (at least for me, that's why it's in quote) & high (In my opinion!) RAM usage by the app marked this app as unusable for me.
But I need to thank the Dev, for letting me dive into it more & search for more suitable solution.
2) "Multitasking":
XDA: Couldn't find, does not exist on XDA ? If it is on XDA, then PM me, I will update the thread with those links. Thank You!
Play Store: https://play.google.com/store/apps/details?id=com.oryon.multitasking
Idea behind this app is very good, but it was crashing & force-closing often. Don't know why, I had always about 300MB of free RAM & CPU usage also wasn't that high.
Also disability to add my own apps & URL links and convert them into floating apps was a dead end for this app (once again - at least in my opinion!).
3) "Floating Apps":
XDA: Couldn't find, does not exist on XDA ? If it is on XDA, then PM me, I will update the thread with those links. Thank You!
Play Store: https://play.google.com/store/apps/details?id=com.lwi.android.flappsfull
Tried it with some disbelief that it will work, but... IT WORKS! THIS IS IT! All is working fine, many themes to choose from.
Great multitasking app! More than 35+ apps included! Dialer, Image viewer, Calculator & more!
Also it has ablility to convert apps & URL links into floating apps!
Works flawlessly, it will stay with me for sure!
But there are two small negatives (in my opinion!):
a) DON'T USE "Quick Launch Icon" on a devices with small RAM amount (like mine) - it increases RAM usage by 300% of the main process of the app.
With QLI: 68MB of RAM used
Without QLI: 16MB of RAM used
b)DON'T DELETE "Contacts" app (and "Contacts Provider" from obvious reasons) from Your phone before syncing contacts from cloud/importing them from .vcf file. "Contacts" app in "Floatnig Apps" can't sync/import contacts - it can only add new ones.
c)DON'T DELETE "Dialer" app (and other apps related to this app) from Your phone, because after deleting it, if You will try to make a call, the "InCallUI" won't show up. Phone will start ringing, but that UI will not show up, so You won't be able to accept/decline a call.
ONE APP FOR TWEAKING ROM*:
(One app to rule them all! XD)
1) 3C Toolbox Pro:
XDA: https://forum.xda-developers.com/android/apps-games/app-2-3-3c-toolbox-pro-t2942186
Play Store: https://play.google.com/store/apps/details?id=ccc71.at&hl=pl
It's a REALLY GREAT TOOL for tweaking ROMs to Your preferences. It has over 80+ tools in ONE app! (just read Play Store description)
It has CPU, RAM, ROM managers, build.prop editor, terminal, battery calibrator & MANY MORE in ONE app!
It's worth it's price.
#IHighlyRecommendThisGreatApp
SO, IT'S TIME TO COMPARE IT:
Before:
About 60-70 apps installed in the device.
Almost 2GB's of ROM memory used
Above 400 MB of RAM used
After:
ONLY 26 apps installed in the device.
Under 1.9GB's of ROM memory used
Under 320 MB of RAM used
Press "Thanks" button, if I helped You somehow. Best regards for You!
But overall, I need to thanks all this people for their work, so...
Credits are going to**:
@fvalpha for his "fooView" app.
OryonCorp for their "Multitasking" app.
LWi s.r.o for their "Floating Apps" app. @3c for his "3C Toolbox Pro" app!
@sandpox for creating a "starting point" for ROM development onto my device & for developing some first ROMs onto this device.
@no_name for creating this great ROM.
@DodoGTA for help with many things related to my device.
@sostk22 for help with many things related to my device. @DNikola for being a nice person. XD
Whole "GT-S758x team" group for so much help & a nice atmosphere in the group.
Whole XDA Community - thanks for existing. XD I have learned SOOOO MUCH with You**, here on xda-developers.com . Thanks to all of you!
*If I have forgot about someone, PM me.
**But I have still SOOO MUCH to learn! Will stay on this forum for a LOOONG time, for sure!
You can't get "full" 4GB from this device, the 4GB are the actual physical EMMC chip capacity, meanwhile it has been splitted to a lot of partition and /data is only max ~2GB
no matter how much you've deleted in /system, your usable capacity of /data will stay the same, unless you do a repartition which is extremely risky and cannot recoverable if it once screwed
The available RAM will depend on how much background apps are running though... but you don't expect to get more than 500MB usable since 200MB will be use to run the OS itself
The actual RAM chip is 768MB but it has been shared with GPU so only ~712MB is available for OS and your apps
so don't fully believe in whatever the OEM claims about the memory capacity, it will be a lot of different because of the unit and the system itself has consumed, my current device is claimed 32GB but only 28GB available for /data
sandpox said:
You can't get "full" 4GB from this device, the 4GB are the actual physical EMMC chip capacity, meanwhile it has been splitted to a lot of partition and /data is only max ~2GB
no matter how much you've deleted in /system, your usable capacity of /data will stay the same, unless you do a repartition which is extremely risky and cannot recoverable if it once screwed
The available RAM will depend on how much background apps are running though... but you don't expect to get more than 500MB usable since 200MB will be use to run the OS itself
The actual RAM chip is 768MB but it has been shared with GPU so only ~712MB is available for OS and your apps
so don't fully believe in whatever the OEM claims about the memory capacity, it will be a lot of different because of the unit and the system itself has consumed, my current device is claimed 32GB but only 28GB available for /data
Click to expand...
Click to collapse
Thanks for answer. Will do some changes in thread. Thanks for showing me my mistakes.
First i want to thanks to you for mention me..and tnx for your help with my problems and qustions.And now thanks for this thread.
Now i want to know can i try this on lineage14.1 ?
Sorry for bad english
DNikola said:
First i want to thanks to you for mention me..and tnx for your help with my problems and qustions.And now thanks for this thread.
Now i want to know can i try this on lineage14.1 ?
Sorry for bad english
Click to expand...
Click to collapse
You can try it, for sure! It will work.
Thanks for the mentions of fooView.
In my opinions, fooView is a floating icon app using machine learning mechanism to improve productivity.
All features in it are connected in the end. And it can be customized, so you need not use each feature, which would not start until you start it manually.
For the RAM, as a 6M apk, fooView takes a very little RAM as a floating icon, so it can run on almost every Android 4.1+ device. A special case is when fooView window is opened as any other browser, the system webview will cost much RAM to utilize your device performance(system costs more when your device is better), and release them when you close the window, it's used by the system and should not be counted into normal RAM usage (you might find the realtime usage in the developer mode in the system settings).
fvalpha said:
Thanks for the mentions of fooView.
In my opinions, fooView is a floating icon app using machine learning mechanism to improve productivity.
All features in it are connected in the end. And it can be customized, so you need not use each feature, which would not start until you start it manually.
For the RAM, as a 6M apk, fooView takes a very little RAM as a floating icon, so it can run on almost every Android 4.1+ device. A special case is when fooView window is opened as any other browser, the system webview will cost much RAM to utilize your device performance(system costs more when your device is better), and release them when you close the window, it's used by the system and should not be counted into normal RAM usage (you might find the realtime usage in the developer mode in the system settings).
Click to expand...
Click to collapse
Thanks for answer. I know about that Real Time RAM Usage (You're talking about "Running Services"). In my post, all RAM info is based on that "Running services" tab in Developer Options.
And (in my opinion!) it is too high. But when I will get a better device with more RAM, I will start using it for sure. About that "unnecessary" features, I was talking about functions, that this app duplicates, I'm not saying they are unnecessary per se. I think You get the point.
Idea behind this app is very good, so...
I wish You luck & success with this (and others!) project. Best regards.
https://drive.google.com/open?id=0B4q2ZkMZt4BjdjVFVnN3aW9xb28
I got this from indo friend
Can someone here check it and report about what it work or not ?
On our device ?
Guide : Add this file to system/bin

Categories

Resources