[Q] ADB Push / Pull in Terminal Emulator? - Samsung Galaxy Gio GT-S5660

Anyone know how to ADB Push / Pull in Terminal Emulator?
And any extra knowledge with terminal emulator? Like mounting sdcard because I am really frustrated with trying to mount my SDCARD! lol

You can't use ADB in a terminal emulator on the phone. It's meant to be run from a computer with either Windows, Linux or Mac OS X.
An unsecure boot.img will provide you with the possibility of using the adb remount command.
The SD card can be in three different modes (the expressions used here aren't the official ones): "phone mounted", "USB mass storage mounted" or unmounted.
"Phone mounted": accessible from the phone's ROM, or through adb push and pull, as /sdcard/
"USB Mass Storage mounted": the SD card behaves like any other mass storage device, accessible solely from the OS that has mounted it. The Android OS can't access it in that mode. You need to properly unmount the card from the computer first to avoid possible corruption, then toggle mass storage off so that the phone can remount the card for itself.
Unmounted is only used to remove the card while the phone is on, again, to avoid errors and corruption. Not a good idea if you're using /sd-ext hacks like Darktremor apps2sd or s2e.

Related

Mobile Transfer Protocol (MTP) v.s. USB Mass Storage (UMS)

Hi,
i wonder why they dropped mass storage device mode on the Gen9 devices.
No problem in the Windows world though, but i'm frequently using linux on my host computers and i'm little annoyed about the new MTP mode.
What do you think, could this be reverted easily?
Did anyone checked this out by tweaking some code or using a custom kernel?
Any information would be nice!
EDIT: O.K. i did some research... there's a lot discussion about it already.
Anyway would be nice to read your opinion.
Regards,
scholbert
I still see the mass storage option in my 4GB 80 G9, though I prefer MTP mode because it allows access to internal storage as well as SD card.
Yeah sure...
AFAIK, if you got a MicroSD in the slot it is accessed as USB mass storage.
I related to the device itself...
Anyway this will clear things up a bit.
I'll install libmtd and stuff on my laptop running Debian and see if it works out like expected.
Thanks for your reply!
scholbert
Well, internal storage is "media" directory of /data partition and it would be too dangerous for Archos to export whole /data as mass storage.
The benefit of this is to get rid of the limit of installed apps versus storage, the downside is that they can't export it as a drive. Google is pushing for this model too afaik.
Don't forget that storage for both SD and HDD models is formatted as ext4- unreadable for Windoze (it's the only reasonable option- fat32 supports max 32GB partitions, NTFS is not linux-frielndly IMO)
BTW it seems to me that MTP is becomming more popular- Xperia Arc S offers both MTP and UMS (MTP is factory default)
I don't know how to use it under Ubuntu or Linux mint, any recommendations?
thanks in advance.
get things rollin' on linux
Hi,
i started to do some research how to activate/implement the MTP on my laptop running Linux Mint (in partitular LMDE). Process would be the same for Debian and similar for Ubuntu.
To fully support the Gen 9 series libmtd version 1.1.2 should be installed on your machine.
See the logs at http://sourceforge.net/tracker/?group_id=158745&atid=809061
To start you need some essential packages first.
Afterwards you'll be able to see the device. I'm still in the process of sorting out how to make it work pleasantly.
Right now it'S not working the way it should. Anyway here are some requirements...
If you're on Debian Wheezy, simply install libmtp and stuff using your package manager.
Older versions only support older versions, not matching for the Archos G9 series.
If you're on Linux Mint it is possible to install version 1.1.2 manually from console (to force a partial upgrade).
Unfortunately some tools are little behind in this distro (at least LMDE)
Grab at least four packages from Debian Wheezy repo (e.g. 64bit machine):
- libmtp-common_1.1.2-2_all.deb
- libmtp9_1.1.2-2_amd64.deb
- libmtp-runtime_1.1.2-2_amd64.deb
- mtp-tools_1.1.2-2_amd64.deb
Remark: Install these in the right order. See the command below.
I found it to be safe to upgrade these packages partially, no depends are broken afterwards.
Please do not update your repository sources to point at the wheezy tree.
This might definitely confuse your package manager.
Additionally needed for handling virtual drives (better use package manager for install):
- fuse
- mtpfs
On Linux Mint (LMDE) you might then simply enter a root console to force upgrade of native libmtp:
Code:
dpkg -i libmtp-common_1.1.2-2_all.deb libmtp9_1.1.2-2_amd64.deb libmtp-runtime_1.1.2-2_amd64.deb mtp-tools_1.1.2-2_amd64.deb
I am not using Ubuntu, but i found out that 1.1.2 has found its way in 12.04 (precise), which is yet to be released.
Remark for Ubuntu 11.10 (oneiric):
In this distro libmtp 1.1.0 is used, unfortunately no Archos G9 support natively.
You could try to force a partial update though.
Please check dependencies first!
After installing you should add your username to the group audio:
Code:
adduser your_username audio
This is because the Gen 9 devices enumerate as audio device in the USB device-tree.
If you leave this out, only root will have access to this device.
Though this might be considered as optional.
Now you'll be able to use the mtp-tools (as a user) to discover your device and do lowlevel stuff.
As already stated things are not done automatically.
I will investigate, maybe some things are missing... (e.g. install package mtpfs).
Maybe this is the reason, why i got no virtual drive.
After installing mtpfs you may mount the internal storage of your Archos device (as root):
Code:
# mkdir ~/g9-storage
# mtpfs -o allow_other ~/g9-storage
The internal storage is now accessable...
To unmount:
Code:
# fusermount -u ~/g9-storage
Even with some scripting this is far from automount (like known from USB mass storage devices), but it works.
I'll try to find an even more convenient way...
Stay tuned!
scholbert
Any way to enable USB Mass Storage mode?
On 4.0.28 (stock), I only have MTP and PTP. I would like it to work as a "Normal" USB mass storage device, like most Android devices.
If all I can see is the SD Card, that's fine. It's much more convenient that carrying around a USB Card reader, and having to remove the card.
--
AW: Mobile Transfer Protocol (MTP) v.s. USB Mass Storage (UMS)
Hi, you can use FTP over Wi-Fi. With root access you can export every file you like.
Sent from my ARCHOS 101G9 using xda app-developers app
AW: Mobile Transfer Protocol (MTP) v.s. USB Mass Storage (UMS)
Hi, you can use FTP over Wi-Fi. With root access you can export every file you like.
Click to expand...
Click to collapse
Several other options:
1. SD card reader - Some Micro SD cards come with a tiny USB reader.
2. SD card adapter - Some Micro SD cards come with an adapter that lets them be used in a full size SD slot.
3. ADB via command line. adb push and adb pull.
Best I have found:
4. Use the file manager in DDMS. DDMS includes a simple file manager. It's basically a GUI for adb push and adb pull. DDMS is part of the Android SDK.

[Q] Can I partition out a seperate /sdcard?

One of the things I really miss about my old phone is that because it had an SD card I could just mount the phone as mass storage and I had full access to /sdcard as if I plugged the card straight into the laptop. However because I can no longer do this on my Galaxy Nexus getting files off of the phone has become a real hassle. I'm running Linux, for which there are no good MTP implementations (either they don't work at all, or are very very slow). Also because I no longer have direct access things like filesystem metadata (timestamps, etc) are lost when copying files over from the phone to the laptop. Add to this that there are far more host devices that will read mass storage than MTP. I've also tried things like FTP servers and other ways of pulling data, but none of them are as good for my needs as the old mass storage method.
Is there any way I can make a separate /sdcard partiton, mount it with Android's fstab (or whatever Android is using for an fstab), format it how I please, and have Android just let me umount the partiton from the phone and mount it on the host device when plugged in? How would I go about doing this? is it possible to make the stock AOSP allow mass storage again or would I need a custom ROM?

[TUT] Ace 2x install apps to sdcard by default

Since I have an ace 2x (gt-s7560m), I have only 2GB of internal storage (technically 1.78GB). I was planning on installing games like grand theft auto, or other 2GB games. The only problem is that my internal storage is too low, and I can't do much with such a low internal storage capacity. So this tutorial will hopefully allow you ace 2x/trend users (or any other phone) to use the external sdcard as the default install path.
Prerequisites:
A phone (duh)
ADB installed on your computer
USB debugging enabled
An external sd
Your OEM cable (or any cable that works)
1. Enable usb debugging by going into SETTINGS > DEVELOPER OPTIONS and enable usb debugging (if you don't have usb debugging, go to about phone and constantly click the build number 7 times or more until it says developer options are enabled)
2. Plug in to your computer and make sure that you have the proper drivers installed, if you don't then search up samsung usb driver on google
3. Press windows key + r and type cmd, then press enter and you're in cmd
4. Navigate to your android sdk folder (usually C:\Program Files (x86)\Android\android-sdk\platform-tools or C:\Program Files\Android\android-sdk\platform-tools) (the command is cd [directory])
5. Type adb devices
6. Then type adb shell pm set-install-location 2 or adb shell pm setInstallLocation 2 if the previous didn't work
7. There we go. You now can install games to sdcard without worrying about that horrible 1.78GB storage.
8. To revert back to internal storage, just type adb shell pm set-install-location 0 or adb shell pm setInstallLocation 0
EDIT: Easiest way of doing this (no computer or cable) (REQUIRES ROOT PERMISSIONS)
1. Download terminal emulator from app store
2. Type SU (if it prompts for superuser access, press grant or if on cyanogenmod, allow)
3. Type pm set-install-location 2
4. Close the terminal session
5. To revert back, type su and then pm set-install-location 2
6. There you go!
EDIT #2: Now I am able to play games like GTA 3 and San Andreas on my phone without having to worry about space, the only problem is that since my phone has adreno 200, it's really slow even with the lowest graphics settings.
Some apps will not work if they are a service or have a widget, so you need to manually move back to internal storage by getting app2sd or link2sd and just move it back manually
Leave a thanks if I have helped in any way!
Please post any questions or concerns here if you have any
s7560m said:
Since I have an ace 2x (gt-s7560m), I have only 2GB of internal storage (technically 1.78GB). I was planning on installing games like grand theft auto, or other 2GB games. The only problem is that my internal storage is too low, and I can't do much with such a low internal storage capacity. So this tutorial will hopefully allow you ace 2x/trend users (or any other phone) to use the external sdcard as the default install path.
Prerequisites:
A phone (duh)
ADB installed on your computer
USB debugging enabled
An external sd
Your OEM cable (or any cable that works)
1. Enable usb debugging by going into SETTINGS > DEVELOPER OPTIONS and enable usb debugging (if you don't have usb debugging, go to about phone and constantly click the build number 7 times or more until it says developer options are enabled)
2. Plug in to your computer and make sure that you have the proper drivers installed, if you don't then search up samsung usb driver on google
3. Press windows key + r and type cmd, then press enter and you're in cmd
4. Navigate to your android sdk folder (usually C:\Program Files (x86)\Android\android-sdk\platform-tools or C:\Program Files\Android\android-sdk\platform-tools) (the command is cd [directory])
5. Type adb devices
6. Then type adb shell pm set-install-location 2 or adb shell pm setInstallLocation 2 if the previous didn't work
7. There we go. You now can install games to sdcard without worrying about that horrible 1.78GB storage.
8. To revert back to internal storage, just type adb shell pm set-install-location 0 or adb shell pm setInstallLocation 0
Some apps will not work if they are a service or have a widget, so you need to manually move back to internal storage by getting app2sd or link2sd and just move it back manually
Leave a thanks if I have helped in any way!
Please post any questions or concerns here if you have any
Click to expand...
Click to collapse
Does this work for kitkat?
thelous said:
Does this work for kitkat?
Click to expand...
Click to collapse
yup, and you can also do it from the Link2SD settings page
ur ace 2x model is gt-s7560'm' or without the 'M' . mine are without the M and it seem doesn't work for me :/
divinoMod said:
ur ace 2x model is gt-s7560'm' or without the 'M' . mine are without the M and it seem doesn't work for me :/
Click to expand...
Click to collapse
Shouldn't matter... can you manually move apps by using just the feature in system settings?
Ryccardo said:
Shouldn't matter... can you manually move apps by using just the feature in system settings?
Click to expand...
Click to collapse
there are no 'Move To SD' option shown in my apps manager -.-
divinoMod said:
there are no 'Move To SD' option shown in my apps manager -.-
Click to expand...
Click to collapse
I don't know that phone, but it depends on how the primary storage is made...
·Primary media partition is emulated from /data/media -- no apps2sd possible
·Primary media partition is internal SD -- will work
·Primary media partition is external SD (phones with no internal storage at all like Optimus P500, with internal storage disabled in custom ROM, with properly swapped storages) -- will work and actually make sense
Ryccardo said:
I don't know that phone, but it depends on how the primary storage is made...
·Primary media partition is emulated from /data/media -- no apps2sd possible
·Primary media partition is internal SD -- will work
·Primary media partition is external SD (phones with no internal storage at all like Optimus P500, with internal storage disabled in custom ROM, with properly swapped storages) -- will work and actually make sense
Click to expand...
Click to collapse
i think my GT-S7560 primary media partition is internal SD . maybe
market app not instaling
Sorry for not responding; I was a bit busy lately. Anyways, this should work for any rom, any version.
s7560m said:
Sorry for not responding; I was a bit busy lately. Anyways, this should work for any rom, any version.
Click to expand...
Click to collapse
could u take a screenshot of ur apps manager on ur S7560M ?
divinoMod said:
could u take a screenshot of ur apps manager on ur S7560M ?
Click to expand...
Click to collapse
I can't take a screenshot at the moment. But on jellybean it said that my external sd card was internal storage; kitkat still says that it is external sd card. Just try and download any app on your phone, and then just see where it installed.
Hey , I've tries using the 2nd method (terminal) . but when i download an apps on play store ive got this error "Insufficient Storage Available"

[Q] Filesystem for external SD card

Can anybody tell me how to find out the file system in use for an external SD card.
When I connect my phone to the pc the only thing I get is Generic Hierarchical for the file system whereas a windows disk will show the info NTFS, Fat32 and so on.
I already tried with the mount command in a terminal window, this gives a lot of info but I could not detect the filesystem.
Is there a tool or a command that can be used in the terminal to show the formatting info of an external sd card?
Connect it to computer bypassing phone.
Either Windows or linux should tell you something.
You may put here output of 'mount' command you ran.
For you it tells nothing but for someone it does.
Logically thinking:
1. Phones are expected to be connected to computers in either media transfer or storage only mode.
2. Most of people use Windows
- conclusion is that external SD card is not formatted under Linux. Such ones would not be visible under Windows (in most cases).
There are other reasons, like files/dirs permissions, Android is completely not designed to manage Linux filesystems dependencies.

Anyone know the /dev/block location for the external sd on the AT&T H810?

and if it is accessible in download mode? trying to recover data on a bootlooped G4 but I can get into DL mode. Another user (naglun) has been helping me through some of the commands but I can't seem to find and/or mount the external SD card in while in DL mode via Send_Command "#" prompt. It may not be accessible I suppose, or the bootloop issue may have rendered the external microSD card unusuable.

Categories

Resources