Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,805,022 Members 53,097 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Disabling Android 2.2 DropBoxManager

Tip us?
 
epolaris
Old
(Last edited by epolaris; 19th March 2011 at 02:32 AM.)
#1  
Member - OP
Thanks Meter 24
Posts: 46
Join Date: Jul 2010
Location: Port Of Spain
Exclamation [Q] Disabling Android 2.2 DropBoxManager

Good Day Folks.

I'm a Noob in need of help and i'm hoping the more experienced among us might be able to assist. I have an issue with disappearing phone storage. Over the course of a week I realized that I was losing about 1MB a day. My phone would basically be dormant and I would still see my storage space dropping by this amount everyday.
Cache cleaning didn't work. Later I realized that Android creates a bunch of log files in Data/System/Dropbox that was responsible for the disappearing phone storage trick I've been seeing for a while now.
I know now that Google has incorporated into Android as of the 2.2 iteration, a DropBox Manager that's responsible for logging all of the events that take place during the course of a running Android session. Everything from what took place at boot to force close details.
I understand that this is used for debugging purposes but I'm no developer . So my question is.... Can this DropBox Manager be disabled....somehow.
I really don't need all these files (and its A LOT OF THEM) being created as they serve no practical purpose for me. Not sure if anyone else might have noticed this but I'm hoping to receive some help. Even if it means pointing me in the right direction so I can work on it myself.
I really don't have a clue on how to start. Any help will be appreciated....Seriously...

Currently using G1 with CM6 Magpie running on EZTERRY's 2.6.34.7 kernel.
Its perfect except for this annoying problem.......
 
Dark3n
Old
#2  
Dark3n's Avatar
Recognized Developer
Thanks Meter 2,157
Posts: 1,984
Join Date: Sep 2007
Hm what happens if you rename the directory. It might throw some errors in the logger, but probably won't create anymore files.
I just deleted the content of my dropbox folder, the DropboxManagerService was throwing some errors that he could not open files, but the phone was fine, no FCs or anything.
 
epolaris
Old
(Last edited by epolaris; 19th March 2011 at 07:40 AM.)
#3  
Member - OP
Thanks Meter 24
Posts: 46
Join Date: Jul 2010
Location: Port Of Spain
Renaming the directory just results in a random reboot. My guess is that when Android tries to create a new log, its unable to find the directory and then it just freezes and after a while it reboots. Once restarted it just reappears... I've tried that too.
And its true.. Its ok to delete the files. Its what I do currently. All of those files in Data/System/Dropbox as well as the ones located in Data/Tombstones are ok to delete. As I said, its just used for debugging purposes. Whats really annoying though is that, no matter how many times you delete anything, they just get repopulated just as fast as they're deleted. I'm ok with micro-managing my memory and phone storage (its a G1 after all) but this is ridiculous. It just creates too many of these log files too quickly.
If there was a way to turn the DropBoxManager service off then that would be the end of it all.
What's unusual about it too is that in my particular case, the contents of these text files just have two things listed in them. Pertaining to my online accounts associated with the phone: My Google account and My Whatsapp account...
It just repeats the same thing over and over again. I'm starting to think that the event data might actually be synchronization data or at least synchronization attempts made at regular intervals. But ultimately i'm guessing....
I really don't have a clue... Have you ever heard of anything like this on XDA......possible resolutions of this issue?
 
Dark3n
Old
#4  
Dark3n's Avatar
Recognized Developer
Thanks Meter 2,157
Posts: 1,984
Join Date: Sep 2007
Quote:
Originally Posted by epolaris View Post
I really don't have a clue... Have you ever heard of anything like this on XDA......possible resolutions of this issue?
Not yet :).
What about replacing the folder by a symlink to /dev/null ?
You could also try to change permission on the folder.
The Following User Says Thank You to Dark3n For This Useful Post: [ Click to Expand ]
 
epolaris
Old
(Last edited by epolaris; 19th March 2011 at 05:20 PM.)
#5  
Member - OP
Thanks Meter 24
Posts: 46
Join Date: Jul 2010
Location: Port Of Spain
Ok... I'm a real Noob but I'll take a shot.. When you say symlink what do you mean.
I'm not really familiar with Android at that level yet its really just flashing and such.
But I know a symlink is really just a reference to a location that the OS would interpret and follow (like a pointer i think). So, is it that you're suggesting some sort of redirection where the Data/System/Dropbox directory is pointed to another arbitrary location. Kind of like a creating a dead link that Android is unable to follow up on. Or maybe, redirecting the folder to an entirely new location that Android would then follow. I'm not sure... How do you perform a symlink in Android... I'm willing to try.
 
Dark3n
Old
#6  
Dark3n's Avatar
Recognized Developer
Thanks Meter 2,157
Posts: 1,984
Join Date: Sep 2007
You can do it with a console on the phone it self or using adb shell. You need root of course.
You could make a link to another location where you have more space?
Or you change to permissions of that directory to write only.
Or you can mount a different file system to that directory that is read only.
On how to do that just google a bit for linux tutorials on that topic.

I have just googled a bit and it seems you can't symlink directories to /dev/null.

If all that doesnt help post again, there might be an option to make an app delete the files automaticly, first time they get created.
If that would be an option too let me know, im in the mood to program something intresting .
The Following User Says Thank You to Dark3n For This Useful Post: [ Click to Expand ]
 
epolaris
Old
(Last edited by epolaris; 20th March 2011 at 04:35 PM.)
#7  
Member - OP
Thanks Meter 24
Posts: 46
Join Date: Jul 2010
Location: Port Of Spain
Thumbs up Disabling Android 2.2 DropboxManager [RESOLVED]

I took your advice and did the research you suggested and it worked.
The first thing I tried was changing the permissions on the "Data/System/Dropbox" directory and it worked. But I didn't use CHMOD and console command line to do it.
I have a program called Root Explorer that allows me to permanently change the permissions on any file or folder I select. I set all of the offending folders to read only and the log files stopped being written to those folders.
These are the directories I set to read only:

1. "Data/System/Dropbox"
2. "Data/System/UsageStats"
3. "Data/Tombstones"

Since changing the permissions on these folders my phone storage has stopped dwindling out of control. No additional programming necessary
Disabling the DropBoxMangerService itself is not necessary which is good.
I'm going to take your advice and read up some more on Linux commands (specifically Ubuntu as its what I currently use).
You have been very helpful, thanks for the advice. If you have any ideas about Froyo ROMS (Maybe even Gingerbread ) I should try let me know.
Thanks again....
The Following 2 Users Say Thank You to epolaris For This Useful Post: [ Click to Expand ]
 
vax
Old
(Last edited by vax; 11th July 2011 at 08:54 AM.)
#8  
Member
Thanks Meter 1
Posts: 31
Join Date: Mar 2006
I have also found these files. They can take MUCH space in memory and nothing seems to delete them. I made the dropbox system folder RO but I think this is a bug. It should be reported to the dropbox team. Is there a bug report form somewhere? I did not find it... Just found the forum, QA,...

[edit]I reported it in the forum... Just see http://forums.dropbox.com/topic.php?id=41227 [/edit]
 
Dark3n
Old
#9  
Dark3n's Avatar
Recognized Developer
Thanks Meter 2,157
Posts: 1,984
Join Date: Sep 2007
Quote:
Originally Posted by vax View Post
I have also found these files. They can take MUCH space in memory and nothing seems to delete them. I made the dropbox system folder RO but I think this is a bug. It should be reported to the dropbox team. Is there a bug report form somewhere? I did not find it... Just found the forum, QA,...

[edit]I reported it in the forum... Just see http://forums.dropbox.com/topic.php?id=41227 [/edit]
You are mistaken: /data/system/dropbox, has NOTHING todo with www.dropbox.com !

See http://developer.android.com/referen...oxManager.html
 
Trebuchette
Old
#10  
Trebuchette's Avatar
Member
Thanks Meter 9
Posts: 58
Join Date: Aug 2011
Quote:
Originally Posted by Dark3n View Post
You are mistaken: /data/system/dropbox, has NOTHING todo with www.dropbox.com !

See http://developer.android.com/referen...oxManager.html
Hey, just looked at your SD Maid app (looks cool).

So what do you know about /data/system/dropbox? I just read that htc uses the dir to store phone events which is then sent to the htc cloud of spying-on-your-ass. But since non-htc phones have this dir, is htc merely misusing the directory and it has other legit uses, or is this a directory we should try to keep cleaned out?

(I like the idea of changing perms so nothing writes to it if that's the case.)

Tags
cm6, dropbox, froyo, magpie, phone storage
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes