Android: disable SD card/ do not allow mounting of the SD card - android

I need to prevent a phone from having its firmware/ ROM updated. I already disabled lots of stuff like USB debugging, but people can still go to the recovery mode by pressing Vol+ and rebooting the device and then flash a new firmware from the SD card.
Can I somehow disable the SD card slot completely without physical changes to the device or writing my own firmware?

Can I somehow disable the SD card slot completely without physical changes to the device or writing my own firmware?
Fortunately, no.

Related

Activate OTG on non-otg Android phone

I have an old LG K120 that by default doesn't have OTG. So I did what was needed (root the phone and installed a software that now tells me OTG is active) however when I try to plug a usb pen or card reader, it doesn't detect it. I hope I don't have to install a custom rom or whatever it's called risking to ruin everything. I just need to read a microSD without having to open the cover all the time.
For running SD cards on the mobile you can use some of the pocket Wi-Fis which support SD card inside them,like some of the JioFis (check before you purchase any,if you). Then connect it to your mobile using Wi-Fi(Password protected or open) and run it.
And for running pendrives(only) you can use the SanDisk Wireless Stick pendrives, which run on Wi-Fi.
Edit: USB can also be used for radiation free transfer with laptop computers.(Credit goes to blackapps).

Enable the SD Card while USB Debugging?

I am developing a phone app and I'm testing it with my Droid RAZR with OS version 4.1.2
I need the phone to be able to use its SD card, and prevent the computer from using the USB connection as a "mass storage" connection, which causes it to take over the SD card (it can only be mounted to either my phone or the computer, not both).
You used to be able to connect to the computer in "Charge Only" mode, which would keep the SD card active with the phone, but that no longer seems to be an option. There is only Mass Storage (computer uses SD card), Media Device (same story), and Camera (same there too).
Is there another option? Perhaps some way to disable the mass storage from the PC's side but still retain the USB Debugging?
Take a look at this thread here. As stated there:
Next, enable USB debugging by checking the “USB Debugging” item.
Finally – and this is the most oddball – you need to go back a screen,
to Settings, and click on the Storage item. Up in the upper right of
the screen are three tiny squares which represent the Jelly Bean way
of doing a context menu. Click that, and a small “USB Computer
Connection” item will appear. Click that. You’re taken to a new
screen with two “Connect As” options.
Check “Camera”. Yes, because USB debugging requires the use of a
camera (no, not really). It’s just a requirement. Something about
the communication protocol or file transfer encoding or something. I
don’t make this stuff up.

Temple Run on Android stores data in different place dependent on USB connection

When I play Temple Run on Android, the app stores data somewhere. If I enable a USB connection and then try playing the game, the app now stores this information somewhere completely new, so that my previous information is not visible any more. Only when I disable the USB connection does the previous data get used.
In other words, I start off as a completely new user if the SD card is mounted and am only able to resume my old state when the SD card is unmounted.
What kind of storage is this? Why is it not visible when I mount the SD card? Can I keep data when switching phones and keeping the SD card?
Sounds Like it must be storing it on the SD Card, when you plug your phone into a USB port it mounts the SD Card to your computer not allowing access to it from your game... so the game will fallback onto internal storage (on phone).
When you plug your phone in it will be defaulting to mounting SD Card, Change this to "Just Charge" and try playing the game.
They probably check if an SD-card is available, and if not use the internal storage.
When you mount the SD-card, the applications cannot access it, so it switches to internal storage, where you do not have any saved games.

Terminology for SD Card Status

We've developed an Android program that relies on access to a particular directory on the SD card. Our program detects whether the SD card is available to the phone, and displays an error message to the user if it's not. The most common use case that will trigger this error is having the device plugged into a computer and having the SD card mounted to the computer.
We're working on the error message, which will instruct the user to make sure the SD card is available to the phone.
Unfortunately, it appears that each phone manufacturer has their own terminology for whether the SD card is available to the phone and how to mount/unmount it. For example, (some?) Samsung devices display a screen with a Mount/Unmount button. The HTC Thunderbolt has a menu one of whose options is "Charge Only". Motorola devices seem split between the Samsung-like behavior and the HTC Thunderbolt-like behavior. The XOOM is it's whole own contraption.
So, two questions:
Is there a common correct terminology that will communicate to the user that they should make the SD card available to the device instead of available to the computer?
If there's not a good common terminology, is there a way to determine what sort of device we're running on and tailor our error message to the particular device's terminology?
"Please remove all usb peripherals (exc chargers) for this app to work"?
NB. (when its mounted but they think its just a charger they will eventually remove it to see if it works anyway!)
Otherwise:
http://developer.android.com/reference/android/os/Build.html
Check out BRAND or MANUFACTURER or a combination of them plus others (MODEL == 'XOOM' maybe?)
if("Motorola".equals(android.os.Build.MANUFACTURER)){ // or .contains or .starts with etc
// Do stuff
}
You may want to do some testing as it may return "Mtrla" or "MotorolaChina" etc..

Motorola flipout cannot access SD card while USB connected

I have a Motorola flipout with Android 2.1. and the USB my driver is the following:
http://developer.motorola.com/docstools/USB_Drivers/Handset_USB_Driver_64/
Whenever I connect the USB cord to the cellphone I can access the SD card from the computer and I no longer can access it from the cellphone. That means that any software on the phone that needs to access the SD card can't do so, therefore I can't debug anything that needs file access. Is there any way to connect the USB cord yet at the same time not mount the SD card file system onto the computer filesystem?
The SD card can only be mounted by one device at a time. It sounds like the default setting upon USB connection is to basically mount the SD card to your computer so it can browse/edit the files. Use blindstuff's method to disable USB storage mode. your phone will still be connected via USB allowing you to use adb to debug applications.
Blindstuff called it. The reason you cannot is because the SD card is in use by the computer (depending on how you've connected of course). While the SD card is in use by the computer, it's not available to the device.
I strongly suspect that's an artifact of SD cards, not Android (or iPhone, or anything else).

Categories

Resources