I cannot access data on my tablet by USB, because when I plug it in, it keeps popping a dialog to allow access, when I pick allow, the dialog pops up again, and so on endlessly.
This is a Samsung Galaxy Tab A, my PC is on Ubuntu.
Update: After some more tests, I determined that if when I plug the tablet to the PC by USB, the tablet screen is turned on, it works fine. However if I plug the tablet with the screen off, the issue described above occurs.