[Q] Disable USB mode? - Nook Touch General

Is there a way to disable USB mode on the NST? It's annoying to have the eject the drives every time I connect the Nook to the computer to use ADB. Is there a way to disable USB mode so that only ADB connects and not the internal drive and SD card? It would be great if it could be toggled so I can still access the drives if I need to.

sega dude said:
Is there a way to disable USB mode on the NST? It's annoying to have the eject the drives every time I connect the Nook to the computer to use ADB. Is there a way to disable USB mode so that only ADB connects and not the internal drive and SD card? It would be great if it could be toggled so I can still access the drives if I need to.
Click to expand...
Click to collapse
in the adb shell, try this:
Code:
am start -n com.android.settings/.DevelopmentSettings
I found it at this post by Renate

Personally, I disable UMS (USB Mass Storage) entirely.
I do all transfers with ADB.
There are two places that deal with UMS enabling.
I haven't checked if one has priority and sets the other.
Using ADB:
Code:
setprop persist.service.mount.umsauto 0
Using sqlite3 on /data/data/com.android.providers.settings/databases/settings.db settings.db
Code:
update secure set value=0 where name='usb_mass_storage_enabled';

Related

Galaxy S III in Ubuntu as a drive?

Hello I have a T-mobile Galaxy S III. My question is how can I get it to show up as a drive in Ubuntu? In Windows 7 it has no issues. Shows both the SD card and phone as two separate disk drives. In Ubuntu nada. Are there Ubuntu drivers to work with a GS3 as a media drive?
Thanks
tauntt said:
Hello I have a T-mobile Galaxy S III. My question is how can I get it to show up as a drive in Ubuntu? In Windows 7 it has no issues. Shows both the SD card and phone as two separate disk drives. In Ubuntu nada. Are there Ubuntu drivers to work with a GS3 as a media drive?
Thanks
Click to expand...
Click to collapse
Sorry, but support for MTP still sucks under linux. While there is a hack to get regular USB Mass Storage mode working temporarily, it'll eventually be easy-baked into ROMs.
You'll need to install mtpfs and mtp-tools. Mine mounts as a media device via gphoto2/fuse/gvfs. It's not as reliable as mass storage mode but it works. Google is your friend....
I don't have the device yet, but can you check whether you can switch from MTP to MSC?
Go to Settings → Storage. Hit the Menu key, then USB computer connection. There you can select what kind of device the phone will expose itself as.
Otherwise… yeah, MTP is sort of a headache under Linux. I'm a CLI junkie, and via the command line you want to do something like…
Code:
sudo aptitude install mtpfs
mkdir -p ~/Phone
mtpfs ~/Phone
This will mount your phone in a directory called "Phone" in your home directory.
No MTP so no more USB settings in storage. Just has my phone and SD card info.
tamasrepus said:
I don't have the device yet, but can you check whether you can switch from MTP to MSC?
Go to Settings → Storage. Hit the Menu key, then USB computer connection. There you can select what kind of device the phone will expose itself as.
Otherwise… yeah, MTP is sort of a headache under Linux. I'm a CLI junkie, and via the command line you want to do something like…
Code:
sudo aptitude install mtpfs
mkdir -p ~/Phone
mtpfs ~/Phone
This will mount your phone in a directory called "Phone" in your home directory.
Click to expand...
Click to collapse
OK got it going, but no sd card. Is iy because it's locked? If so is there an app to unlock it?
Thanks

[Q] Nexus 4 Mass Storage

Is there any possible way to get this to work on this device?
The MTP just isnt the optimal way of moving files fron/to my phone for me.
Samba
This is the only way I've found to do it: samba sharing over wifi.
https://play.google.com/store/apps/details?id=com.funkyfresh.samba
It lets you mount the phone as a drive letter in Windows, only way I've been able to do that.
Allright trying it out
Thanks!
Alternatively, you can take a look at Bluetooth File Transfer. They have a PC version so you can use an explorer-style UI to manage/send files to your phone. I found it's pretty handy, but don't know if the bluetooth transfer rate is good enough for your needs.
U need root & terminal emulator for this...
in emulator give following command..
su
setprop persist.sys.usb.config mass_storage
reboot
press enter after each line !
after reboot when you plug in your phone usb mass storage should work !
Do this on ur own risk !!

[Q] USB mounting after rooting

I can't get my Nook to mount on my computer after rooting with NookManager. Is this normal? I looked for a setting to re-enable this feature but couldn't find it. Any ideas? thanks
I forget where that is on settings, but if you have ADB working you can fix that.
You need sqlite3 installed on either host or Nook.
Code:
/data/data/com.android.providers.settings/databases/settings.db
update secure set value=1 where name='usb_mass_storage_enabled';
OTOH, if you have ADB, why would you want UMS?
Renate NST said:
I forget where that is on settings, but if you have ADB working you can fix that.
You need sqlite3 installed on either host or Nook.
Code:
/data/data/com.android.providers.settings/databases/settings.db
update secure set value=1 where name='usb_mass_storage_enabled';
OTOH, if you have ADB, why would you want UMS?
Click to expand...
Click to collapse
Thanks. I'm hoping I can find the setting. I don't really know much about ADB. I just want to be able to side load books easily.
Renate NST said:
I forget where that is on settings, but if you have ADB working you can fix that.
You need sqlite3 installed on either host or Nook.
Code:
/data/data/com.android.providers.settings/databases/settings.db
update secure set value=1 where name='usb_mass_storage_enabled';
OTOH, if you have ADB, why would you want UMS?
Click to expand...
Click to collapse
Shouldn't need to change the setting for a root with NookManager. USB mounting works but I have noticed sometimes that after connecting to the PC then disconnecting it looses its ability to be connected again as a USB drive until you reboot your Nook. Haven't spent the time to track down why the Nook looses its brain sometimes and won't connect.
straygecko said:
Shouldn't need to change the setting for a root with NookManager. USB mounting works but I have noticed sometimes that after connecting to the PC then disconnecting it looses its ability to be connected again as a USB drive until you reboot your Nook. Haven't spent the time to track down why the Nook looses its brain sometimes and won't connect.
Click to expand...
Click to collapse
I've rebooted. I've used sqlite to read and verify that 'usb_mass_storage_enabled' is set to 1. I've verified getprop reports that persist.service.mount.umsauto is 1. Still no usb automount.
Rooting isn't worth not being able to use Calibre
Is the host machine Windows?
if you loaded the ADB driver things can get out of whack and the UMS interfaces are driverless.
Normally when you connect a Nook to a host two new (UMS) disks will appear.
Whether those disks have backing (data behind them) is another question.
Are you missing the disks or the data?
Renate NST said:
Is the host machine Windows?
if you loaded the ADB driver things can get out of whack and the UMS interfaces are driverless.
Normally when you connect a Nook to a host two new (UMS) disks will appear.
Whether those disks have backing (data behind them) is another question.
Are you missing the disks or the data?
Click to expand...
Click to collapse
I am running Windows and have tried two different host machines that both worked with the Nook before the root.
The Nook does NOT show up whatsoever in "My Computer". Thanks for your help, I may just reset the firmware and give up on rooting it.
Classic773 said:
I am running Windows and have tried two different host machines that both worked with the Nook before the root.
The Nook does NOT show up whatsoever in "My Computer". Thanks for your help, I may just reset the firmware and give up on rooting it.
Click to expand...
Click to collapse
Sometimes Windows won't show a removable disk if another disk it has seen has been assigned the same drive letter. Plug your Nook into your PC and go into Administrative Tools | Computer Management | Disk management and see if the disks show up there. If they do
right click on them and select Change Drive Letter and Paths and assign them drive letters. It should stick after that unless you assign the same drive letter to another removable disk.
straygecko said:
Sometimes Windows won't show a removable disk if another disk it has seen has been assigned the same drive letter. Plug your Nook into your PC and go into Administrative Tools | Computer Management | Disk management and see if the disks show up there. If they do
right click on them and select Change Drive Letter and Paths and assign them drive letters. It should stick after that unless you assign the same drive letter to another removable disk.
Click to expand...
Click to collapse
Nope. I don't here the normal USB device connected sound that I here with other things, also the Nook doesn't show the normal popup that indicates its in USB mode.
I typically don't have an SD card in it, that shouldn't matter right. I've tried it with an SD card but most of the time I don't have one in.
You have ADB working on WiFi or USB?
If it's working on USB then you obviously do have it showing in Device Manager.
A somewhat tangental comment:
There seems to be lots of people who say, "I tried to root using Mega-Super-Giga-Updater" and it didn't work so I'm going back to stock 1.1.5".
Nook firmware is old and getting older with no update in sight.
I would strongly recommend standardizing on 1.2.1
Remember, the essence of "rooting" on the Nook is just enabling ADB.
All the other stuff is just the trimmings.
I have no knowledge/experience/insight of any of these "Super-Duper-Nooters".
Renate NST said:
You have ADB working on WiFi or USB?
If it's working on USB then you obviously do have it showing in Device Manager.
A somewhat tangental comment:
There seems to be lots of people who say, "I tried to root using Mega-Super-Giga-Updater" and it didn't work so I'm going back to stock 1.1.5".
Nook firmware is old and getting older with no update in sight.
I would strongly recommend standardizing on 1.2.1
Remember, the essence of "rooting" on the Nook is just enabling ADB.
All the other stuff is just the trimmings.
I have no knowledge/experience/insight of any of these "Super-Duper-Nooters".
Click to expand...
Click to collapse
The problem was the USB cable, which straygecko mentioned in different thread. Never thought of trying a different one since this one worked fine for charging. Thanks to both of you
Oh, you probably had a "charging" cable.
I ran into one of those once.
They only have 2 conductors in the cable.
It probably saved them a whole $0.02.
It's a cruel trick to play on somebody.
Renate NST said:
Oh, you probably had a "charging" cable.
I ran into one of those once.
They only have 2 conductors in the cable.
It probably saved them a whole $0.02.
It's a cruel trick to play on somebody.
Click to expand...
Click to collapse
Don't chuck them!
I find them invaluable if you want to charge a phone or nook without using it pop up as mass storage or MTP. They are also ALOT longer.
Great for car charging or grabbing power from public usb sources.
If booting from nookmanager to PC to copy backup across (something you should do asap before you forget) then trying to connect NST to computer after rooting you will find it won't appear in windows explorer.
This is windows getting confused. If you click on the safetly remove device icon you will see two drive letters are assigned its just explorer that can't access them. Easy fix is to reboot. If your like me and dozens of web browsing windows open and regard rebooting as something the power company forces on me few times a year you can do this to access.
Start->settings->Control Panel->Administration Tools->Computer Management->Disk Manager.
You will see the drive letters for your nook there. Right click (don't click format or delete!) and chose open. Explorer will now happily open a window with your drive contents.

How To Disable Some Functions Of USB Port

I am wondering around the internet to learn any method to disable MTP/PTP/all usb stuff except charging.
So, why i want this?
Because i want my device to be secure.
I don't anyone to sneak around and try to go into bootloader or recovery/connection to a pc etc to set my device to make a fresh start/copying data and end my privacy up.
So is there a way to disable those functions?
And if it is possible then what? Will it be secured?
And the big question is that can i enable it through recovery (from adb or moving mobile files) as you know if one has a messed up rom then he/she should have those functions workable.
.
@LGaljo?
@nik60?
@MAXSIMUS96?
@adityaupreti?
@Ciro?
@Renix63?
@sev3n1985?
delete mtpApplication.apk in syste/priv-app and in dev options..deflag debug usb
anyway ...not tried because i don't use pin in LS--but in S6 when phone is locked with pin is not recognized with PC
So will it disable the mobile to connect to a pc through bootloader?
I found this on a web:
.
The most device-compatible way to disable everything is to run this command at startup or set this in your build.prop:
Code:
setprop persist.sys.usb.config none
which is equivalent to charge-only on all Android devices.
That also disables adb. If you use adb regularly, then:
Code:
setprop persist.sys.usb.config adb
will allow adb when developer options are turned on/checked. If you don't use ADB often, I would not recommend it, because setting adb causes my S5 to still recognize in device manager, even when it is locked.
To restore original functionality,
Code:
setprop persist.sys.usb.config mtp,ptp,adb
allows all USB protocols.

HD8 7th Gen Unable to Connect to PC

I am not able to connect to my HD8 2017 even after turning on adb in developer Options. I hear the chime on the fire when connecting the USB cable, but no detection on the pc. I tried changing to PTP for USB connection as well and got nowhere.
I have reset it to factory settings
Tried changing the driver to the one provided by Amazon
Used different cables including some really short ones
it is simply not recognized by the computer even as a mass storage device / MTP / or PTP
My HD8 2018 has a USB debugging option and connects right away as soon as I connect it to the PC.
The OS is 5.6.7.0, Is there something else I need to?
Thanks in advance
adahm said:
I am not able to connect to my HD8 2017 even after turning on adb in developer Options. I hear the chime on the fire when connecting the USB cable, but no detection on the pc. I tried changing to PTP for USB connection as well and got nowhere.
I have reset it to factory settings
Tried changing the driver to the one provided by Amazon
Used different cables including some really short ones
it is simply not recognized by the computer even as a mass storage device / MTP / or PTP
My HD8 2018 has a USB debugging option and connects right away as soon as I connect it to the PC.
The OS is 5.6.7.0, Is there something else I need to?
Thanks in advance
Click to expand...
Click to collapse
You can use to transfer your contents using ADB
Code:
//Transfer your files from PC to Android
adb push <from PC> <to Android>
//Example
adb push C:\Users\%username%\Desktop\foo.txt /storage/emulated/0/
//Transfer your files from Android to PC
adb pull <from Android> <to PC>
//Example
adb pull /storage/emulated/0/foo.txt C:\Users\%username%\Desktop\
AmznUser444 Dev said:
You can use to transfer your contents using ADB
Code:
//Transfer your files from PC to Android
adb push <from PC> <to Android>
//Example
adb push C:\Users\%username%\Desktop\foo.txt /storage/emulated/0/
//Transfer your files from Android to PC
adb pull <from Android> <to PC>
//Example
adb pull /storage/emulated/0/foo.txt C:\Users\%username%\Desktop\
Click to expand...
Click to collapse
the commands cannot be executed as the HD8 is not recognized on the PC side. adb devices does not show anything connected.
adahm said:
You can use to transfer your contents using ADB
the commands cannot be executed as the HD8 is not recognized on the PC side. adb devices does not show anything connected.
Click to expand...
Click to collapse
You can use another USB ports on your PC.
AmznUser444 Dev said:
You can use another USB ports on your PC.
Click to expand...
Click to collapse
Thanks for the suggestion, I have tried multiple ports over 3 different pcs. The same PCs detect my other 2018 version HD8.
It could be that the USB port on the 2017 HD8 is bad and losing/lot data connection.
Is there any way to connect adb over wifi?

Categories

Resources