Source:
private void setupToolsXml1 ( com.android.sdkuilib.internal.repository.MockDownloadCache cache ) throws java.lang.Exception { java.lang.String repoXml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "<sdk:sdk-repository xmlns:sdk=\"http://schemas.android.com/sdk/android/repository/7\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n" + "<sdk:license id=\"android-sdk-license\" type=\"text\">Blah blah blah.</sdk:license>\n" ) + "\n" ) + "<sdk:platform-tool>\n" ) + " <sdk:revision>\n" ) + " <sdk:major>14</sdk:major>\n" ) + " </sdk:revision>\n" ) + " <sdk:archives>\n" ) + " <sdk:archive arch=\"any\" os=\"windows\">\n" ) + " <sdk:size>11159472</sdk:size>\n" ) + " <sdk:checksum type=\"sha1\">6028258d8f2fba14d8b40c3cf507afa0289aaa13</sdk:checksum>\n" ) + " <sdk:url>platform-tools_r14-windows.zip</sdk:url>\n" ) + " </sdk:archive>\n" ) + " <sdk:archive arch=\"any\" os=\"linux\">\n" ) + " <sdk:size>10985068</sdk:size>\n" ) + " <sdk:checksum type=\"sha1\">6e2bc329c9485eb383172cbc2cde8b0c0cd1843f</sdk:checksum>\n" ) + " <sdk:url>platform-tools_r14-linux.zip</sdk:url>\n" ) + " </sdk:archive>\n" ) + " <sdk:archive arch=\"any\" os=\"macosx\">\n" ) + " <sdk:size>11342461</sdk:size>\n" ) + " <sdk:checksum type=\"sha1\">4a015090c6a209fc33972acdbc65745e0b3c08b9</sdk:checksum>\n" ) + " <sdk:url>platform-tools_r14-macosx.zip</sdk:url>\n" ) + " </sdk:archive>\n" ) + " </sdk:archives>\n" ) + "</sdk:platform-tool>\n" ) + "\n" ) + "<sdk:tool>\n" ) + " <sdk:revision>\n" ) + " <sdk:major>20</sdk:major>\n" ) + " <sdk:minor>0</sdk:minor>\n" ) + " <sdk:micro>3</sdk:micro>\n" ) + " </sdk:revision>\n" ) + " <sdk:min-platform-tools-rev>\n" ) + " <sdk:major>12</sdk:major>\n" ) + " </sdk:min-platform-tools-rev>\n" ) + " <sdk:archives>\n" ) + " <sdk:archive arch=\"any\" os=\"windows\">\n" ) + " <sdk:size>90272048</sdk:size>\n" ) + " <sdk:checksum type=\"sha1\">54fb94168e631e211910f88aa40c532205730dd4</sdk:checksum>\n" ) + " <sdk:url>tools_r20.0.3-windows.zip</sdk:url>\n" ) + " </sdk:archive>\n" ) + " <sdk:archive arch=\"any\" os=\"linux\">\n" ) + " <sdk:size>82723559</sdk:size>\n" ) + " <sdk:checksum type=\"sha1\">09bc633b406ae81981e3a0db19426acbb01ef219</sdk:checksum>\n" ) + " <sdk:url>tools_r20.0.3-linux.zip</sdk:url>\n" ) + " </sdk:archive>\n" ) + " <sdk:archive arch=\"any\" os=\"macosx\">\n" ) + " <sdk:size>58197071</sdk:size>\n" ) + " <sdk:checksum type=\"sha1\">09cee5ff3226277a6f0c07dcd29cba4ffc2e1da4</sdk:checksum>\n" ) + " <sdk:url>tools_r20.0.3-macosx.zip</sdk:url>\n" ) + " </sdk:archive>\n" ) + " </sdk:archives>\n" ) + "</sdk:tool>\n" ) + "\n" ) + "</sdk:sdk-repository>\n" ) ; java.lang.String url = ( com.android.sdklib.repository.SdkRepoConstants.URL_GOOGLE_SDK_SITE ) + ( java.lang.String.format ( SdkRepoConstants.URL_DEFAULT_FILENAME , SdkRepoConstants.NS_LATEST_VERSION ) ) ; cache.registerCachedPayload ( url , repoXml.getBytes ( "UTF-8" ) ) ; }

Target:
private void setupToolsXml1 ( com.android.sdklib.internal.repository.MockDownloadCache cache ) throws java.lang.Exception { java.lang.String repoXml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "<sdk:sdk-repository xmlns:sdk=\"http://schemas.android.com/sdk/android/repository/7\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n" + "<sdk:license id=\"android-sdk-license\" type=\"text\">Blah blah blah.</sdk:license>\n" ) + "\n" ) + "<sdk:platform-tool>\n" ) + " <sdk:revision>\n" ) + " <sdk:major>14</sdk:major>\n" ) + " </sdk:revision>\n" ) + " <sdk:archives>\n" ) + " <sdk:archive arch=\"any\" os=\"windows\">\n" ) + " <sdk:size>11159472</sdk:size>\n" ) + " <sdk:checksum type=\"sha1\">6028258d8f2fba14d8b40c3cf507afa0289aaa13</sdk:checksum>\n" ) + " <sdk:url>platform-tools_r14-windows.zip</sdk:url>\n" ) + " </sdk:archive>\n" ) + " <sdk:archive arch=\"any\" os=\"linux\">\n" ) + " <sdk:size>10985068</sdk:size>\n" ) + " <sdk:checksum type=\"sha1\">6e2bc329c9485eb383172cbc2cde8b0c0cd1843f</sdk:checksum>\n" ) + " <sdk:url>platform-tools_r14-linux.zip</sdk:url>\n" ) + " </sdk:archive>\n" ) + " <sdk:archive arch=\"any\" os=\"macosx\">\n" ) + " <sdk:size>11342461</sdk:size>\n" ) + " <sdk:checksum type=\"sha1\">4a015090c6a209fc33972acdbc65745e0b3c08b9</sdk:checksum>\n" ) + " <sdk:url>platform-tools_r14-macosx.zip</sdk:url>\n" ) + " </sdk:archive>\n" ) + " </sdk:archives>\n" ) + "</sdk:platform-tool>\n" ) + "\n" ) + "<sdk:tool>\n" ) + " <sdk:revision>\n" ) + " <sdk:major>20</sdk:major>\n" ) + " <sdk:minor>0</sdk:minor>\n" ) + " <sdk:micro>3</sdk:micro>\n" ) + " </sdk:revision>\n" ) + " <sdk:min-platform-tools-rev>\n" ) + " <sdk:major>12</sdk:major>\n" ) + " </sdk:min-platform-tools-rev>\n" ) + " <sdk:archives>\n" ) + " <sdk:archive arch=\"any\" os=\"windows\">\n" ) + " <sdk:size>90272048</sdk:size>\n" ) + " <sdk:checksum type=\"sha1\">54fb94168e631e211910f88aa40c532205730dd4</sdk:checksum>\n" ) + " <sdk:url>tools_r20.0.3-windows.zip</sdk:url>\n" ) + " </sdk:archive>\n" ) + " <sdk:archive arch=\"any\" os=\"linux\">\n" ) + " <sdk:size>82723559</sdk:size>\n" ) + " <sdk:checksum type=\"sha1\">09bc633b406ae81981e3a0db19426acbb01ef219</sdk:checksum>\n" ) + " <sdk:url>tools_r20.0.3-linux.zip</sdk:url>\n" ) + " </sdk:archive>\n" ) + " <sdk:archive arch=\"any\" os=\"macosx\">\n" ) + " <sdk:size>58197071</sdk:size>\n" ) + " <sdk:checksum type=\"sha1\">09cee5ff3226277a6f0c07dcd29cba4ffc2e1da4</sdk:checksum>\n" ) + " <sdk:url>tools_r20.0.3-macosx.zip</sdk:url>\n" ) + " </sdk:archive>\n" ) + " </sdk:archives>\n" ) + "</sdk:tool>\n" ) + "\n" ) + "</sdk:sdk-repository>\n" ) ; java.lang.String url = ( com.android.sdklib.repository.SdkRepoConstants.URL_GOOGLE_SDK_SITE ) + ( java.lang.String.format ( SdkRepoConstants.URL_DEFAULT_FILENAME , SdkRepoConstants.NS_LATEST_VERSION ) ) ; cache.registerCachedPayload ( url , repoXml.getBytes ( "UTF-8" ) ) ; }