It happens when an Android emulator has been launched, it seems to lock some files. Restarting VS will fix this and the emulator can still be kept opened while VS restarts.
Apply this command while the device is running
adb shell
For security purposes all the app files are found within the app own folder behind some permission.
Not doing this will result in a "permission denied" message.
run-as GSCFieldApp.GSCFieldApp
This is how we can see if the geopackage have been written properly within the app folder.
cd files
ls
adb pull /storage/self/primary/download/asd_DSA.gpkg W:\Transit\Gab
adb push "C:\Users\ghuotvez\AppData\Local\Xamarin\Mono for Android\Archives\GSCFieldApp.GSCFieldApp.apk" /storage/self/primary/download
App needs to be deployed and build first.
In debug mode, app package has around 150Mb. In release with coding trimming and code shrinker it goes down to 42Mb. In release mode with ahead of time enabled to goes up to 56Mb, but the code should be faster.
Password is gscfieldapp for current key
Usually class names should use CamelCasing, but for some reasons the model class in which CamalCasing is used, do not work well with the observableProperty inside the viewmodels. EM is a good example, passing the whole class to refill the form wasn't working until I removed the capital case M in the class name.