Resetting phone usage statistics: data and process stats - Android One (First-Generation) Cross-Device Origin

Some are asking how to reset phone usages without formatting data.
here's what I am doing just to reset my usages:
I'd say much better if your phone is rooted, and a nandroid backup just in case there is something wrong on what you've done.
-Must be rooted and must have a root capable file explorer/manager.
On internet usage:
open this folder in /data/system/netstats/*
inside that folder, delete all files. DON'T DELETE THE FOLDER ITSELF.
it will cause bootloops
On battery usage:
delete the following inside /data/system/* : batterystats-checkin.bin , batterystats-daily.xml, and batterystats.bin
On process stats/usage:
inside /data/system/procstats/* , delete all files inside that folder, again don't delete the folder itself.
also open /data/system/usagestats/0/* , delete all the files inside the following folders: daily, monthly, weekly, and yearly.
not do not delete the folders. might cause bootloops
After that, reboot normally. after rebooting, you will notice that usages are back to its lowest values.
I hope it helped for some who has problems regarding phone's usage.

This section is for device development, post it in general section.
Sent from a Device using an App!

delete them all but the data remains previous after rebooting....

Does anyone ever find another way that works pls?
There has to be a way to reset phone usage/app usage time stats, i tried lotta stuffs on the internet but on dialing *#*#4636#*#* i get the same result

Related

[Q] un-deletable 0kb files HELP !

Greetings from sunny ??? nottingham
I have a folder with a bunch of files that all show as 0kb that i can not remove.
Does anybody have an idea how i can get rid of these?
The story so far....
I am/was on rocket rom v2, previously i had put the google currents app on, but that was a couple of roms ago and i have not put it back.
I started having a few odd problems and realized my int sd was full. i eventually narrowed it down to a google currents folder. this was not so easy as any app that tried to scan the int sd in any way would crash or freeze. Even in manage apps it would only show details of apps from a to c any after that hung on 'computing'. i managed to delete over 5 gb from that folder, all except one folder.
Now i am left with a folder on the int sd inside the android/data folder called 'com.google.android.apps.currents' inside that is a folder 'cache' inside that a folder 'blobs.120.1184434912' inside that a folder thats a bunch of letters and numbers, inside that a folder 'att' and finally inside that a bunch of files all with single letters, numbers or symbols as there filename and all 0kb in size.
These remaining files and folders i can not get rid of.
I have tried....
Delete with root explorer and a couple of other file apps crash's or locks
Cut and paste elsewhere fail
Connect to computer and...
Delete fail
Move fail
Erase fail
Unlock freezes pc
Change permissions blocked
Re-name fail
Scanned with virus and spyware progs clean
Delete with dos fail
Factory reset fail
Factory reset with format usb crash's or locks
Flash a pit file in pc odin Still there
I wouldnt mind just leaving them there, but as i say any app that in any way scans the int sd crash's or freezes this makes the note almost un-useable.
I'm sure I've missed a few things i have tried but you get the point.
I have searched xda and the web as best i can and tried pretty much every idea I've come across.
Help !!!
Please !
What an odd problem....
have you tried aroma file manager?
Thanx p107r0
I havent tried that particular file manager, many others though.
Downloading it now, very busy next couple of days so will give it a go as soon as i can.
many thanx
have fun
all the best
rich
Cant you try copying all your important information off the sd then formatting it?
Sent from my GT-N7000 using Tapatalk
Thanx Postmonkeh
Unfortunatly i have formatted it several times now and those files still remain.
Are you familiar with adb tools? You could try using adb to delete the files.
Ftb
Hi Postmonkeh
Unfortunatly abd is over my head, i wouldnt have a clue what i was doing.
Maybe i need to do some learning Do you know if theres a basic tutorial anywhere ?
Many thanx
all the best
have fun
rich
It's fairly simple once you get the hang of it, but i don't know any guides off the top of my head.
Not on my laptop at the minute but once I'm downstairs I'll give you a quick run through of what to do to delete that folder. Might not work, but then again it might
Ftb
Hey mate thank you very much.
Please dont rush as i am just leaving and will be away for a couple of days. I will get onto it as soon as i return.
Many thanx
Rich
Sent from my GT-N7000 using xda premium
it won't let you rename or delete because they reside on googles servers, that's why they are showing 0kb. u can't change permission because it's on sd card and w don't have the ability to do so on sd card. i promise a format got rid of them but u didn't notice it because google cache server put links back as your phone started. the explorer crashes because as fast as is trying to remove them the server is already putting them back. basically what im trying to say is just ignore them cause there not really there anyways.
Sent from my SPH-D710 using xda premium
veritasaequita said:
it won't let you rename or delete because they reside on googles servers, that's why they are showing 0kb. u can't change permission because it's on sd card and w don't have the ability to do so on sd card. i promise a format got rid of them but u didn't notice it because google cache server put links back as your phone started. the explorer crashes because as fast as is trying to remove them the server is already putting them back. basically what im trying to say is just ignore them cause there not really there anyways.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
dik64 said:
I wouldnt mind just leaving them there, but as i say any app that in any way scans the int sd crash's or freezes this makes the note almost un-useable.
Click to expand...
Click to collapse
as above, these files seem to be causing problems.
my google currents folder has a lot of these folders, but none of the files are empty.
although having said that, it may be an idea to deselect the option to have google back up your app data.
i'd also maybe try installing the currents app then (if you can) go into the app settings and clear the data.
---------- Post added at 01:16 PM ---------- Previous post was at 12:35 PM ----------
http://forum.xda-developers.com/showthread.php?t=1241935
that thread gives a good guide to getting adb installed, and gives a good grounding of what it can do. it's a bit more in depth than what you need though, all you need is to install it, add the path to the environment vaiables as described in that thread (that is an optional step but it makes things much easier)
the path you'll be looking for is /mnt/sdcard/Android/data/com.google.android.apps.currents
be sure to remember that the case of the letters in the linux (and therefore android) file systems is vital - ie mnt/sdcard/Android is an entirely different folder than mnt/sdcard/android.
so basically once you've your note connected (with the screen unlocked) open a command line and type (minus the quotes) "adb devices"
it should (hopefully) list your note in there.
then type these commands in order, being careful to observe the correct case when typing filenames or folder names.
adb shell
rm -r /mnt/sdcard/Android/data/com.google.android.apps.currents
it could take a while if there are a lot of files. once it's finished, you should be back to a line with a flashing cursor, then just type exit and it should take you back to your standard windows command line.
i would try taking off the "back up my settings to googles servers) and installing currents and wiping the data first though.
OK time for an update.....
Aroma file manager same as all the others, it either freezes or crash's out altogether.
I have already deselected back up to google, no effect.
I have already tried re-loading google currents and populating it with fresh downloads. Then clear data and un-install, no effect.
Finally took me a while to get adb set up and working, but............
wait for it............................................................................
No effect !!
It starts the process, and scrolls info very fast. I left it for about 20 mins and it was still going. eventually i clicked on the window and it said something along the lines of no such file or directory then endlessly scrolls att.
I appreciate the suggestions given, but i do hope there are some more.
I am completely lost with this now.
all the best
have fun
rich
Seems kind of similar to problems I used to have in the good old Palm OS days, sometimes due to some app errors 0b files would appear on SD card, and - to make long story short - the only thing that would help was taking the card out and formatting it on the computer.
Maybe flashing with repartitioning could help?
Sent from my GT-N7000 using xda premium
dik64 said:
Greetings from sunny ??? nottingham
I have a folder with a bunch of files that all show as 0kb that i can not remove.
Does anybody have an idea how i can get rid of these?
The story so far....
I am/was on rocket rom v2, previously i had put the google currents app on, but that was a couple of roms ago and i have not put it back.
I started having a few odd problems and realized my int sd was full. i eventually narrowed it down to a google currents folder. this was not so easy as any app that tried to scan the int sd in any way would crash or freeze. Even in manage apps it would only show details of apps from a to c any after that hung on 'computing'. i managed to delete over 5 gb from that folder, all except one folder.
Now i am left with a folder on the int sd inside the android/data folder called 'com.google.android.apps.currents' inside that is a folder 'cache' inside that a folder 'blobs.120.1184434912' inside that a folder thats a bunch of letters and numbers, inside that a folder 'att' and finally inside that a bunch of files all with single letters, numbers or symbols as there filename and all 0kb in size.
These remaining files and folders i can not get rid of.
I have tried....
Delete with root explorer and a couple of other file apps crash's or locks
Cut and paste elsewhere fail
Connect to computer and...
Delete fail
Move fail
Erase fail
Unlock freezes pc
Change permissions blocked
Re-name fail
Scanned with virus and spyware progs clean
Delete with dos fail
Factory reset fail
Factory reset with format usb crash's or locks
Flash a pit file in pc odin Still there
I wouldnt mind just leaving them there, but as i say any app that in any way scans the int sd crash's or freezes this makes the note almost un-useable.
I'm sure I've missed a few things i have tried but you get the point.
I have searched xda and the web as best i can and tried pretty much every idea I've come across.
Help !!!
Please !
Click to expand...
Click to collapse
If you cannot delete the folder with del or erase command in dos I think you have a bad block there. In this case you have to leave this folder alone.
Hi, thanx for the further suggestions
tknguyencsu leaving alone is not a good idea as it does affect how the note works. Anything that scans the int sd freezes or crash's out when it gets to that folder. for instance if i go to manage applications it will only give me detailed info on apps from A to C any after that it wont display the size of data etc, just stays on 'computing'. so i really need to get rid of this folder.
p107r0 Any idea how i try your suggestion of 'flashing with repartitioning' ?
I have done several full wipes inc usb storage, i have formatted usb storage from recovery several times also.
There are a couple of options in recovery i have not tried because i dont know what they really mean and so im a little scared to try with all the bricking thats been going on.
many thanx
all the best
have fun
rich
Lots of reading to be safe, but afair there is Dr ketan's guide on flashing LBF with repartitioning, which should be theoretically safe when performed from/over GB ROM. I'll look for the link later.
Here.
P.S. There's also app by chainfire which checks if your device is prone to superbrick: Got Brickbug
Sent from my GT-N7000 using xda premium
Thanx p107r0 i've had a quick look/search in that thread. Not much detail about re-partitioning, i am now assuming it is connected with pit file ?
If that is correct then i have tried that and unfortunatly it did not help.
I am out of my depth here, so if i have misunderstood please forgive me, and enlighten me.
many thanx
all the best
have fun
rich
Are you still on the same ROM? Maybe formatting int sd from other one would do the trick?
Hi p107r0
Yes i am on the same rom, but now a later version.
I am using Rocket Rom. the problem first came to light after upgrading from v1 to v2. since then i have been back to GB to RR v1, RR v2 and am now on RR v3.
I am out of time tonight, and on the road all day tomorrow, so will try a completely different rom as soon as i can.
many thanx
all the best
have fun
rich

Problem with /data/log/dumpstate...

So, when i buyed the phone, I said to me, no root, no more play with the system folder and so on. But after a week of usage, I get the phanomen of loosing space in the Data Partition. The App Disk Usage only said "system File" are 500mb. So I rooted the Mini some minutes ago, and I must see, that Log files stored without any sense for me... So has anybody else this effect, and is here anybody who can confirm, that if I change the permissions of /system/bin/dumpstate to no execute, that I dont get any boot loop, or can I delete the apk? And that this solve my Problem. At the moment I only delete all dumpstate*.txt files. And wait until the folder get growing again...

[Q] CacheManager

I was just looking through the Internal Storage of my HTC One and in the .data folder is a folder called "CacheManager" with almost 2000 files inside that are about 15-50kb each. There are multiple files created each day and go back all the way to when I got my phone. Can anyone tell me what these files are and if they are safe to delete?
Thanks
Can anyone tell me what CacheManager is or if you also have this on your device too?
Thanks
Its exactly what the name says ... "Cache Manager" ... its a quick save for all kind of small image files which can be used locally instead of fetching from the web or other places ... i believe you can delete the whole thing ... it will just start caching again
Thanks for the response. I figured that each app has its own cache and the browser has its own cache, so what's being cached in CacheManager? I couldn't find any information about it on the forums or anywhere online.
I was clearing some of the caches on my apps but noticed that my CacheManager folder is still growing. Almost at 3000 files now. If it's not app's cache, then what is it? I'm just curious because I've never had this folder on all my previous android phones.
Has anyone learned more about what this CacheManager folder contains?
I too noticed this folder cache manager under .data growing despite clearing my cache via app functions. I deleted the whole folder since I couldnt delete the individual files. Everything works still and the folder thus far hasn't recreated. Edit ... The folder did recreate later... But the 8000 files within did not.

Files that can not be erased in the phone

Hello to everyone, i have a problem with my xt1254 64gb.
In the last few days it was getting too warm, the battery drained quickly and it was very slow. I checked and the problem was Google Play Services ...
After making a series of tests I decided to do a hard reset via twrp but here i find the real problem: you can not do a hard reset because you can not delete the folder "/data/data/com.google.android.gms/cache/ftc ". There are two files in this folder, one is Schedule and another without a name, and these two files are just a problem. I could not even reinstall the firmware because when I did it, my phone was constantly restarting and I was having problems with play services, so the only solution that reminded me of my phone was to rename the folder in com.google.android.gms .OLD, this way when the firmware is reinstalled this folder is ignored and the installation proceeds smoothly.
My question is: why did this problem happen to me? Is there an alternative way to permanently delete this folder?
kisspachyousee said:
Hello to everyone, i have a problem with my xt1254 64gb.
In the last few days it was getting too warm, the battery drained quickly and it was very slow. I checked and the problem was Google Play Services ...
After making a series of tests I decided to do a hard reset via twrp but here i find the real problem: you can not do a hard reset because you can not delete the folder "/data/data/com.google.android.gms/cache/ftc ". There are two files in this folder, one is Schedule and another without a name, and these two files are just a problem. I could not even reinstall the firmware because when I did it, my phone was constantly restarting and I was having problems with play services, so the only solution that reminded me of my phone was to rename the folder in com.google.android.gms .OLD, this way when the firmware is reinstalled this folder is ignored and the installation proceeds smoothly.
My question is: why did this problem happen to me? Is there an alternative way to permanently delete this folder?
Click to expand...
Click to collapse
The way I delete undeletable files is through explorer in SD maid, never failed me once.
I tried but failed to cancel

Please help i’ve tried everything else

Hello is there any ethical hacker out there or at least one who could help me with my current situation. I own a Nokia 8 which I bought last year. My error is that I immediately placed the sd card of my old phone samsung j7 to the newly purchased phone not knowing it has a virus, I noticed my old phone doing crazy things when I factory reset it. Since it is rooted, the virus seemed to have taken hold of all system apps and has been updating itself and i recently noticed something fishy with my nokia 8, I tried chatting with support before but they just dismissed it. What I did exactly was to delete the folders that keep reproducing on the files folder of my nokia 8 it contained about 6 gb before and as I kept deleting it, I noticed that all my Photos 40 GB to be exact became 23gb and as i kept deleting the 1 kb files in the file folder I also deleted a DCIM folder but I think it was not thre DCIM for pictures since it was placed in unknown folders. I tried all kinds of recovery even windows based but it seems like there was nothing deleted as it would have been scanned, and it keeps saying that I need to root it. I don’t want to root it because I might give unlimited power to the hacker or to whatever virus is doing this. Please I need help desperately thanks. All my Photos and files were deleted.
So, you have described your problem. But you did not tell nothin about what exactly you want to someone helped you with. What kind of help you are expect from the community? To repare your data? Or to kill the virus? Or maybe to cure the phone? The best way in your situation is Factory reset for phone (without SD-card) and formatting the SD-card by any tool or even Windows formatting function. If the data is need to be repared try to format the card firstly, than scan it by the R-studio or similar software for search deleted files. Most of the tools of this kind have an options to scan for the concret data like the photos, music etc. Use this option to find all kinds of images and repare it to your hard drive. As I understood from your post you have the PC virus lives at your card? Or it is Android malware? Its very difficult to help you remotely. Nobody knows what exactly happened with your card and with your phone. If the data is not very imortant for you just format the card and the phone (reset it to factory defaults) and scan your PC for viruses for more sureness.
---------- Post added at 00:20 ---------- Previous post was at 00:08 ----------
The advice I gave you is general in nature and is not required to be executed exactly. Better find among your friends or colleagues someone who understands computers and ask him to help you understand your situation. It will be most right to do.
---------- Post added at 00:31 ---------- Previous post was at 00:20 ----------
Use the Card-reader for formatting and scan of you SD-card. Dont do described things through the phone+USB cable. Card-reader only!
kosmatyj said:
So, you have described your problem. But you did not tell nothin about what exactly you want to someone helped you with. What kind of help you are expect from the community? To repare your data? Or to kill the virus? Or maybe to cure the phone? The best way in your situation is Factory reset for phone (without SD-card) and formatting the SD-card by any tool or even Windows formatting function. If the data is need to be repared try to format the card firstly, than scan it by the R-studio or similar software for search deleted files. Most of the tools of this kind have an options to scan for the concret data like the photos, music etc. Use this option to find all kinds of images and repare it to your hard drive. As I understood from your post you have the PC virus lives at your card? Or it is Android malware? Its very difficult to help you remotely. Nobody knows what exactly happened with your card and with your phone. If the data is not very imortant for you just format the card and the phone (reset it to factory defaults) and scan your PC for viruses for more sureness.
---------- Post added at 00:20 ---------- Previous post was at 00:08 ----------
The advice I gave you is general in nature and is not required to be executed exactly. Better find among your friends or colleagues someone who understands computers and ask him to help you understand your situation. It will be most right to do.
---------- Post added at 00:31 ---------- Previous post was at 00:20 ----------
Use the Card-reader for formatting and scan of you SD-card. Dont do described things through the phone+USB cable. Card-reader only!
Click to expand...
Click to collapse
I removed my sd card. All my photos, videos and files are in the phone memory. I want to recover at least all the photos and videos. I have not deleted them I only deleted the files in the files folder. I’m still unsure of what happened either there as a virus or my phone was hacked since it was tampered with. I guess people were interested in deleting my recordings and photos or proof
You completely confused me. Put your card into card-reader and copy all data to PC. Then scan the card for deleted files without filter. Recover all of them to hard drive then sort recovered files which are needed and which are not. Then format the card by any formatting tool. Copy all important data from your phone to PC to safe place and do factory reset on the phone. It will destroy all data including the possible virus or whatever it was. Do not store the important data on the mobile. Do not forget to remove google account before doing factory reset, because the first start after the reset will tell that the phone is locked to account and will ask to enter login/password. If the account will be romoved before the reset you`ll be proposed to setup the mobile as a new one - like you just bought it. That`s all I can to advice to you.
I’m sorry, i meant to say. That my photos and videos are in the phone memory not in the sd card. What I think the virus did is to hide all my photos. My lock screen images, gboard images, and wallpaper is still there which means the photos were not deleted.
As I said - use the card-reader to explore the files on your card. Enable "Show hidden files" in Explorer to see all of data of the card. You will be able to copy files to PC even if the status is "hidden". Then uncheck attribute hidden in fole properties on eache file. Then format your card as mentioned above.
You can do the same except the formatting with the phone memory. I mean copy important files from phone to PC and "unhide" them.
Make the batch file with .cmd extention with this text:
attrib -S -H /D /S
Save it to folder containing your hidden files and execute it. It will unhide all the files in folder and you will see them in Explorer
---------- Post added at 16:17 ---------- Previous post was at 16:04 ----------
It`s probably your PC is contaminated by virus that makes your files hidden, so scan it by antivirus with latest bases.
My photos are in the phone memory.
vaericke said:
My photos are in the phone memory.
Click to expand...
Click to collapse
Ok. Yor photos in the phone memory. So what is your problem? I don`t understand. What help you need with? What you want to do? 3 days you cant to tell what is your problem and what help you ask. Nobody will help you till you formulate a concrete question.
kosmatyj said:
Ok. Yor photos in the phone memory. So what is your problem? I don`t understand. What help you need with? What you want to do? 3 days you cant to tell what is your problem and what help you ask. Nobody will help you till you formulate a concrete question.
Click to expand...
Click to collapse
The problem is that the virus/hijacker has manged to hide it all. It shows as blank. All of my files even my music, only apps are working , but not doing their part. I checked with Sophos Security ( antivirus installed) that most of stock and even pre-installed apps have been modified like for example google play services : other permissions
-android.permission.USE_CREDENTIALS - no description
-android.permission.MANAGE_ACCOUNTS - no desription
-android.permission.READ_PRIVILEGED_PHONE_STATE - nod description
android.permission.ALLOCATE_AGGRESSIVE - no description
android.permission.CONNECTIVITY_USE_RESTRICTED_NETWORKS -no description
I have about 30 other permissions which are bothersome.
vaericke said:
The problem is that the virus/hijacker has manged to hide it all. It shows as blank. All of my files even my music, only apps are working , but not doing their part. I checked with Sophos Security ( antivirus installed) that most of stock and even pre-installed apps have been modified like for example google play services : other permissions
-android.permission.USE_CREDENTIALS - no description
-android.permission.MANAGE_ACCOUNTS - no desription
-android.permission.READ_PRIVILEGED_PHONE_STATE - nod description
android.permission.ALLOCATE_AGGRESSIVE - no description
android.permission.CONNECTIVITY_USE_RESTRICTED_NETWORKS -no description
I have about 30 other permissions which are bothersome.
Click to expand...
Click to collapse
Ok. I said above that you can explore your files via USB cable from PC, if there no files are visible, so you can to try to enable show hidden files in options of folder: Control Panel->Explorer parameters (it may be another name in English, I`m Russian and use a Russian locale in Windows)->View-> in the end of list see check-box "Show hidden files, folders and disks". Now you must be able to see hidden files in phone memory. Copy all of them to you PC and do the script as mentioned above. put it to folder with the hidden files and run it. It will unhide all files in the folder. You can do th same with the files from SD card. Now your data is OK. After all procedures you can format the card and reset your mobile to factory reset - it will delete all possible virus or whatever it was and your phone will work well as it must to. SD card wil be clear after formatting and apps will save and use their data properly. Use it as usual. Keep your data on PC - this is much more safe then mobile.
upd.
Run Notepad copy this text
attrib -S -H /D /S
paste it to Notepad, save the file unhide.cmd, for example - it is simple Windows command line script that cleans files attributes like "hidden" "system" or "read only".
kosmatyj said:
Ok. I said above that you can explore your files via USB cable from PC, if there no files are visible, so you can to try to enable show hidden files in options of folder: Control Panel->Explorer parameters (it may be another name in English, I`m Russian and use a Russian locale in Windows)->View-> in the end of list see check-box "Show hidden files, folders and disks". Now you must be able to see hidden files in phone memory. Copy all of them to you PC and do the script as mentioned above. put it to folder with the hidden files and run it. It will unhide all files in the folder. You can do th same with the files from SD card. Now your data is OK. After all procedures you can format the card and reset your mobile to factory reset - it will delete all possible virus or whatever it was and your phone will work well as it must to. SD card wil be clear after formatting and apps will save and use their data properly. Use it as usual. Keep your data on PC - this is much more safe then mobile.
upd.
Run Notepad copy this text
attrib -S -H /D /S
paste it to Notepad, save the file unhide.cmd, for example - it is simple Windows command line script that cleans files attributes like "hidden" "system" or "read only".
Click to expand...
Click to collapse
Okay I will try it tomorrow I just read your post. Thanks I will update the result. By the way do I need to enable usb debugging?
No, you don`t. Connect as a storage "MTP". Good luck.
kosmatyj said:
No, you don`t. Connect as a storage "MTP". Good luck.
Click to expand...
Click to collapse
Oh. I don’t know what happened. Malwarebytes says the ransomware protection was turned off and I have the old virus I had before, I don’t know if the virus I have was the one from the Phone, which seems to be cross-platform already. Is it okay to do the show hidden files or should I format my computer first. This is so frustrating.
What is Malwarebyte? Do "Show hiddin files". You need to backup your media, right? Do it. Media files does not victim for viruses. They are probably clean. Anyway copy files if it possible.

Categories

Resources