Hey sorry, really busy these days.
The command only works if you have root.
adb shell
su
content query --uri content://telephony/carriers/preferapn
Note: content also has create, delete, and update.
example for changes: (xxxx is the id number from your previous command)
content update --uri...