Skip to content

Commit 34f59f6

Browse files
committed
Just use pm uninstall
1 parent 03cebe9 commit 34f59f6

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2988,21 +2988,9 @@ because xbuild doesn't support framework reference assemblies.
29882988
<Target Name="_DeployAppBundle"
29892989
Condition=" '$(AndroidPackageFormat)' == 'aab' "
29902990
DependsOnTargets="_BuildApkSet">
2991-
<!-- Try to uninstall but save the cache -->
2992-
<AndroidAdb
2993-
Condition=" '$(EmbedAssembliesIntoApk)' == 'true' "
2994-
ContinueOnError="True"
2995-
ToolExe="$(AdbToolExe)"
2996-
ToolPath="$(AdbToolPath)"
2997-
AdbTarget="$(AdbTarget)"
2998-
Command="uninstall"
2999-
Arguments="-k $(_AndroidPackage)"
3000-
>
3001-
<Output TaskParameter="Result" PropertyName="_UninstallResult" />
3002-
</AndroidAdb>
30032991
<!-- The previous attempt failed. So yry to uninstall but save the cache using cmd package uninstall -k -->
30042992
<AndroidAdb
3005-
Condition=" '$(EmbedAssembliesIntoApk)' == 'true' And '$(_UninstallResult)' == 'false' "
2993+
Condition=" '$(EmbedAssembliesIntoApk)' == 'true' "
30062994
ContinueOnError="True"
30072995
ToolExe="$(AdbToolExe)"
30082996
ToolPath="$(AdbToolPath)"

0 commit comments

Comments
 (0)