[Xamarin.Android.Build.Tests] Add support for testing on system apps (#5708) #5791
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1288717
Context: https://github.com/xamarin/monodroid/commit/83de4b43c1de819f21c923bc3d6aeb37cc3949cd
Changes: https://github.com/xamarin/monodroid/compare/b2a750a2bd9f25e4f16592168dd919bf36930de4...4163ee94735f4176d2e212041d15c9158316371e
The new fast deployment system (xamarin/monodroid@767f6471) broke
fast deployment for system-installed applications.
This is fixed in xamarin/monodroid@4163ee94.
Adds unit tests to stop this kind of regression in the future.
In order to install a
system
application we need a few things:The emulator MUST be started with the
-system-writable
argumentThe
.apk
needs to be signed with a platform keystore, found at:https://github.com/aosp-mirror/platform_build/tree/master/target/product/security
AndroidManifest.xml
must set/manifest/@android:sharedUserId
toandroid.uid.system
:See also: