How to Disable "Allow access to your data" dialog in Ubuntu

When the Android phone is connected to Ubuntu, the dialog “Allow access to your data” keeps poping up no matter you select “ALLOW” or “DENY”.

This is because Ubuntu is trying to mount the Android phone. To disable the dialog, just disable the automount feature for Ubuntu.

1
gsettings set org.gnome.desktop.media-handling automount false