Framework-side DropBox service that maintains a size-bounded
queue of data chunks (sort of a blob-oriented logcat). In the future, this will be coupled with a revised checkin service that would actually upload this data.
This commit is contained in:
@@ -43,6 +43,7 @@ import android.util.EventLog;
|
||||
import android.util.Log;
|
||||
import android.accounts.AccountManagerService;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Timer;
|
||||
import java.util.TimerTask;
|
||||
|
||||
@@ -293,6 +294,14 @@ class ServerThread extends Thread {
|
||||
(new DemoThread(context)).start();
|
||||
}
|
||||
|
||||
try {
|
||||
Log.i(TAG, "DropBox Service");
|
||||
ServiceManager.addService("dropbox",
|
||||
new DropBoxService(context, new File("/data/system/dropbox")));
|
||||
} catch (Throwable e) {
|
||||
Log.e(TAG, "Failure starting DropBox Service", e);
|
||||
}
|
||||
|
||||
try {
|
||||
Log.i(TAG, "Checkin Service");
|
||||
Intent intent = new Intent().setComponent(new ComponentName(
|
||||
|
||||
Reference in New Issue
Block a user