Bug P3
Status Update
Comments
ae...@google.com <ae...@google.com> #2
Do you have a repro project that you could share with us?
There should be no need to excluding any dependencies: we automatically remove them from the test APK if they are in the main APK.
There should be no need to excluding any dependencies: we automatically remove them from the test APK if they are in the main APK.
Description
Please use github issue tracker instead, unless this is an internal google specific issuehttps://github.com/android/android-test/issues
TestStorage.openOutputFile() subsequent writes to a file with "w" mode do not clear content properly
The testservices contentprovider does not handle write requests correctly.
echo "This is a line\n" > testfile adb shell content write --user 10 --uri content://androidx.test.services.storage.outputfiles/neatfile < testfile adb shell content write --user 10 --uri content://androidx.test.services.storage.outputfiles/neatfile < testfile adb shell content write --user 10 --uri content://androidx.test.services.storage.outputfiles/neatfile < testfile adb shell content read --user 10 --uri content://androidx.test.services.storage.outputfiles/neatfile
The output is This is a line This is a line This is a line
This is concerning because multiple writes to the same uri do not clear the old file contents.