Source:
public static void main ( java.lang.String [ ] args ) { if ( com.android.ddms.Main.isMac ( ) ) { java.lang.management.RuntimeMXBean rt = java.lang.management.ManagementFactory.getRuntimeMXBean ( ) ; java.lang.System.setProperty ( ( "JAVA_STARTED_ON_FIRST_THREAD_" + ( rt.getName ( ) . split ( "@" ) [ 0 ] ) ) , "1" ) ; } java.lang.Thread.setDefaultUncaughtExceptionHandler ( new com.android.ddms.Main.UncaughtHandler ( ) ) ; com.android.ddms.PrefsDialog.init ( ) ; com.android.ddmlib.Log.d ( "ddms" , "Initializing" ) ; org.eclipse.swt.widgets.Display.setAppName ( UIThread.APP_NAME ) ; org.eclipse.swt.widgets.Shell shell = new org.eclipse.swt.widgets.Shell ( org.eclipse.swt.widgets.Display.getDefault ( ) ) ; com.android.sdkstats.SdkStatsService stats = new com.android.sdkstats.SdkStatsService ( ) ; stats.checkUserPermissionForPing ( shell ) ; if ( ( ( args.length ) >= 3 ) && ( args [ 0 ] . equals ( "ping" ) ) ) { stats.ping ( args [ 1 ] , args [ 2 ] ) ; return ; } else if ( ( args.length ) > 0 ) { com.android.ddmlib.Log.e ( "ddms" , ( "Unknown argument: " + ( args [ 0 ] ) ) ) ; java.lang.System.exit ( 1 ) ; } java.lang.String ddmsParentLocation = java.lang.System.getProperty ( "com.android.ddms.bindir" ) ; if ( ddmsParentLocation == null ) { ddmsParentLocation = java.lang.System.getenv ( "com.android.ddms.bindir" ) ; } com.android.ddms.Main.ping ( stats , ddmsParentLocation ) ; stats = null ; com.android.ddmlib.DebugPortManager.setProvider ( com.android.ddms.DebugPortProvider.getInstance ( ) ) ; com.android.ddms.UIThread ui = com.android.ddms.UIThread.getInstance ( ) ; try { ui.runUI ( ddmsParentLocation ) ; } finally { com.android.ddms.PrefsDialog.save ( ) ; com.android.ddmlib.AndroidDebugBridge.terminate ( ) ; } com.android.ddmlib.Log.d ( "ddms" , "Bye" ) ; java.lang.System.exit ( 0 ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { if ( com.android.ddms.Main.isMac ( ) ) { java.lang.management.RuntimeMXBean rt = java.lang.management.ManagementFactory.getRuntimeMXBean ( ) ; java.lang.System.setProperty ( ( "JAVA_STARTED_ON_FIRST_THREAD_" + ( rt.getName ( ) . split ( "@" ) [ 0 ] ) ) , "1" ) ; } java.lang.Thread.setDefaultUncaughtExceptionHandler ( new com.android.ddms.Main.UncaughtHandler ( ) ) ; com.android.ddms.PrefsDialog.init ( ) ; com.android.ddmlib.Log.d ( "ddms" , "Initializing" ) ; org.eclipse.swt.widgets.Display.setAppName ( UIThread.APP_NAME ) ; org.eclipse.swt.widgets.Shell shell = new org.eclipse.swt.widgets.Shell ( org.eclipse.swt.widgets.Display.getDefault ( ) ) ; com.android.sdkstats.SdkStatsService stats = new com.android.sdkstats.SdkStatsService ( ) ; stats.checkUserPermissionForPing ( shell ) ; if ( ( ( args.length ) >= 3 ) && ( args [ 0 ] . equals ( "ping" ) ) ) { stats.ping ( args ) ; return ; } else if ( ( args.length ) > 0 ) { com.android.ddmlib.Log.e ( "ddms" , ( "Unknown argument: " + ( args [ 0 ] ) ) ) ; java.lang.System.exit ( 1 ) ; } java.lang.String ddmsParentLocation = java.lang.System.getProperty ( "com.android.ddms.bindir" ) ; if ( ddmsParentLocation == null ) { ddmsParentLocation = java.lang.System.getenv ( "com.android.ddms.bindir" ) ; } com.android.ddms.Main.ping ( stats , ddmsParentLocation ) ; stats = null ; com.android.ddmlib.DebugPortManager.setProvider ( com.android.ddms.DebugPortProvider.getInstance ( ) ) ; com.android.ddms.UIThread ui = com.android.ddms.UIThread.getInstance ( ) ; try { ui.runUI ( ddmsParentLocation ) ; } finally { com.android.ddms.PrefsDialog.save ( ) ; com.android.ddmlib.AndroidDebugBridge.terminate ( ) ; } com.android.ddmlib.Log.d ( "ddms" , "Bye" ) ; java.lang.System.exit ( 0 ) ; }