Merge commit '307fbbf2b6dbdbc9249c492d5569e874207de5b1' into eclair-mr2-plus-aosp * commit '307fbbf2b6dbdbc9249c492d5569e874207de5b1': Set argv[0] from the main thread of an app, not a random binder thread
This commit is contained in:
@@ -1447,7 +1447,6 @@ public final class ActivityThread {
|
|||||||
Bundle instrumentationArgs, IInstrumentationWatcher instrumentationWatcher,
|
Bundle instrumentationArgs, IInstrumentationWatcher instrumentationWatcher,
|
||||||
int debugMode, boolean isRestrictedBackupMode, Configuration config,
|
int debugMode, boolean isRestrictedBackupMode, Configuration config,
|
||||||
Map<String, IBinder> services) {
|
Map<String, IBinder> services) {
|
||||||
Process.setArgV0(processName);
|
|
||||||
|
|
||||||
if (services != null) {
|
if (services != null) {
|
||||||
// Setup the service cache in the ServiceManager
|
// Setup the service cache in the ServiceManager
|
||||||
@@ -3818,6 +3817,7 @@ public final class ActivityThread {
|
|||||||
//Process.setUid(data.appInfo.uid);
|
//Process.setUid(data.appInfo.uid);
|
||||||
|
|
||||||
// send up app name; do this *before* waiting for debugger
|
// send up app name; do this *before* waiting for debugger
|
||||||
|
Process.setArgV0(data.processName);
|
||||||
android.ddm.DdmHandleAppName.setAppName(data.processName);
|
android.ddm.DdmHandleAppName.setAppName(data.processName);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user