[G1 Android Development] eViL D::
Need some help here. I want to get rid of the 2 icons the app creates. I see the 2 in the manifest. What do I need to do to remove them and have apktool build successfully? Obviously if I rebuild w/o any changes to the manifest, it works fine.

Error:

I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Windows\apktool\out\AndroidManifest.xml:39: error: Error parsing XML: mismatched tag
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\dz\AppData\Local\Tem
p\APKTOOL5622685855992215700.tmp, -I, C:\Users\dz\AppData\Local\Temp\brut_util_Jar_1266775744754072968.tmp, -I, C:\Users\dz\AppData\Local\Temp\brut_util_J
ar_8741934788135969914.tmp, -S, C:\Windows\apktool\out\res, -M, C:\Windows\apktool\out\AndroidManifest.xml, C:\Windows\apktool\out\9patch]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\dz\AppData\Local\Temp\APKTOOL5622685855992215700.tmp, -I, C:\Users\dz
\AppData\Local\Temp\brut_util_Jar_1266775744754072968.tmp, -I, C:\Users\dz\AppData\Local\Temp\brut_util_Jar_8741934788135969914.tmp, -S, C:\Windows\apktoo
l\out\res, -M, C:\Windows\apktool\out\AndroidManifest.xml, C:\Windows\apktool\out\9patch]
at brut.util.OS.exec(Unknown Source)
... 7 more

N/m, figured that out. Build successful, but still did not work. I tried removing (android:icon="@drawable/htc_setup_wizard") & (android:icon="@drawable/learn_more"). Also removed the offending icons from res.

Here is the manifest:

<?xml version="1.0" encoding="UTF-8"?>
<manifest android:sharedUserId="android.uid.system" android:versionCode="7" android:versionName="1.00" package="com.htc.android.htcsetupwizard"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="7" />
<uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="com.android.providers.htccdma.Specific" />
<uses-permission android:name="com.htc.VzWBackupAssistantClient.PROVISION" />
<uses-permission android:name="android.permission.BACKUP" />
<application android:label="@string/stupwizard_app_name" android:icon="@drawable/htc_setup_wizard" android:taskAffinity="" android:description="@string/htc_company_name">
<activity android:theme="@android:style/Theme.NoTitleBar" android:label="@string/stupwizard_app_name" android:name=".MainActivity" android:taskAffinity="android.task.htcsetupwizard" android:screenOrientation="nosensor" android:configChanges="mcc|mnc|locale|keyboardHidden|orientation">
<intent-filter android:priority="20">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.DEVELOPMENT_PREFERENCE" />
</intent-filter>
</activity>
<activity android:theme="@android:style/Theme.NoTitleBar" android:label="@string/stupwizard_app_name" android:name=".PostSetup" android:taskAffinity="android.task.htcsetupwizard" android:screenOrientation="portrait" android:configChanges="locale">
<intent-filter android:priority="2">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:theme="@android:style/Theme.NoTitleBar" android:name=".activity.InsertSIMCardActivity" android:screenOrientation="portrait" />
<activity android:theme="@android:style/Theme.NoTitleBar" android:name=".activity.GoogleLoginActivity" android:screenOrientation="portrait" />
<activity android:theme="@android:style/Theme.NoTitleBar" android:label="@string/tutorial_icon_title" android:icon="@drawable/learn_more" android:name=".activity.TutorialActivity" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" android:name=".activity.TutorialPlayerActivity" android:configChanges="keyboardHidden|orientation" />
<service android:name=".WIFIScanAPService" />
<activity android:theme="@android:style/Theme.NoTitleBar" android:name=".activity.SlideKeypadActivity" />
<activity android:theme="@android:style/Theme.NoTitleBar" android:name=".activity.SIPIntroActivity" android:screenOrientation="portrait" />
<activity android:theme="@android:style/Theme.NoTitleBar" android:name=".activity.SocialNetworkSetupActivity" android:screenOrientation="portrait" />
<activity android:theme="@android:style/Theme.NoTitleBar" android:name=".activity.AccountSetupActivity" android:screenOrientation="portrait" />
<activity android:theme="@android:style/Theme.NoTitleBar" android:name=".activity.DataSyncActivity" android:screenOrientation="portrait" />
<activity android:theme="@android:style/Theme.NoTitleBar" android:name=".SetupWizardActivity" android:screenOrientation="portrait" android:configChanges="locale">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:theme="@android:style/Theme.NoTitleBar" android:name=".activity.TimezoneActivity" android:screenOrientation="portrait" />
<activity android:theme="@android:style/Theme.NoTitleBar" android:name=".activity.LocationConsentActivity" android:screenOrientation="portrait" />
<activity android:theme="@android:style/Theme.NoTitleBar" android:name=".activity.SyncDataActivity" android:screenOrientation="portrait" />
<activity android:theme="@android:style/Theme.NoTitleBar" android:name=".activity.InternetConnectionActivity" android:screenOrientation="portrait" />
<activity android:theme="@android:style/Theme.NoTitleBar" android:name=".activity.WiFiNetworksDetectedActivity" android:screenOrientation="portrait" />
<activity android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" android:name=".activity.CustomizationActivity" android:screenOrientation="nosensor" android:configChanges="mcc|mnc|locale|keyboardHidden|orientation" />
<activity android:theme="@android:style/Theme.NoTitleBar" android:name=".activity.OtaActivity" android:screenOrientation="portrait" />
<activity android:theme="@android:style/Theme.NoTitleBar" android:name=".activity.BackUpActivity" android:screenOrientation="portrait" />
</application>
</manifest>

BTW, this is for HtcSettingsWizard. Without it, you need mountusb app.