I have a rooted android motorola atrix (MB860) with gingerbread that I'm trying to have start up with the usb settings I would like.
Currently I have an app sitting in the /system/app folder that will enable usb debugging and stay awake on boot, but the phone still comes up with the usb setting in motorola phone portal, where I would like it shifted to none.
I tried
Settings.Secure.putInt(context.getContentResolver(),Settings.Secure.USB_MASS_STORAGE_ENABLED, 0);
and while that ran without an error the phone was still in MPP mode.
Is there a way from either java or shell space to default the USB to none?