hi, I am changing my mobile and I have downloaded about 700 songs on Spotify. I need to know if there's any way I can move these files to my computer and send it to my new device. is it possible?
Set up adb on a pc. you can download the 15 second installer by XDA member snoop05.
Go to your phone's settings, go to about phone (at the end) tap build number 7 times, you will get a message saying you are now a developer.
there should be new settings called 'developer settings'
go there and enable usb debugging
connect your phone to a pc via usb
tap the 'allow usb degugging from this computer' option on your mobile
open a cmd window
type adb devices
if you get an alphanumberic code, you are successfully connected.
If it says unauthorized in a corner, reconnect and dont touch your phone screen till the 'allow' message pops up
when you're connected successfully, type adb pull /storage/emulated/0. You can be as specific as you want, but you will have to find out where in your phone's storage your songs are saved. NOTE if they are on an sd card, type adb pull /sdcard or /sdext or if those dont work, adb pull /data or adb pull /userdata.
This should pull all your songs to the computer.
---------- Post added at 12:12 PM ---------- Previous post was at 12:03 PM ----------
petelm said:
hi, I am changing my mobile and I have downloaded about 700 songs on Spotify. I need to know if there's any way I can move these files to my computer and send it to my new device. is it possible?
Click to expand...
Click to collapse
if you've pulled extra files to your computer, just delete whatever you don't need.
if you've managed to get your music on your computer, save the songs on your desktop (this is important, it has to be your desktop)
repeat the enabling usb debugging process on your new device
connect it to pc
open a cmd window again
type adb devices to check if you're connected
if you're connected, type adb push then drag and drop the folder with the music into the cmd window and hit enter. if you couldn't do that, type adb push C:\Users\(the name of your user on the PC)\Desktop\(the name of the folder with the songs) /sdcard/
if you want to save the songs to your phone's internal storage and not an sdcard, type
adb push C:\Users\(the name of your user on the PC)\Desktop\(the name of the folder with the songs) /storage/emulated/0
NOTE: this whole process is unecessary if your music is already on an sd card, because then you can just transfer the sd card to your new phone.
good luck!
and you can disable the developer options when you're done if you want.
Related
Simply put is there a way to get an app onto my phone without the market or file manager?
I ask because I want to use Haykuro's G build but I cant download any apps. I do however have all the ones I use regularly backed up onto my SD card but I cant access them without a File Manager (which I cant download to use). Is there a way?
|Spike|
There's always the option of using AppsInstaller/APKInstaller and putting APK's onto your SD Card. Though, to install AppsInstaller, you have to install it through ADB.
Unicornasaurus said:
There's always the option of using AppsInstaller/APKInstaller and putting APK's onto your SD Card. Though, to install AppsInstaller, you have to install it through ADB.
Click to expand...
Click to collapse
How do I install thru ADB?
|Spike|
Get the android usb drivers, adb.exe and adbwinapi.dll from an Android SDK. Plug the Dream in via USB and point to the location of the drivers when it is installed. Then open your command line, navigate to whatever folder adb.exe is in and type adb install <full path to the apk>. If you run Linux hopefully you can figure it out on your own based on the steps above.
Alternately, upload all the apks you want to the internet somewhere. Check the box to enable installation from Non-market sources in the system settings, then type the full URL of the apk into the browser. The package installer will take over from there.
Here's how you do it. Assuming your G1 is rooted
1. Download the attched files, and copy them into your \system32 folder (Start > Run > %systemroot%\system32)
2. Sure your G1 is enabled for USB Debugging (Settings > Applications > Development > USB debugging) and that your G1 has the appropriate drivers installed. If not, download the USB drivers from HERE
3. Plug your G1 into your computer (Make sure you have USB 2.0 - Click here to find out how to check). When your G1 says "USB Connected" DO NOT click "Mount"..don't do anything
4a. Vista users - Follow these steps. For XP Users, skip to step 5
4b. On your computer, browse to the directory where the APK for your file is located
4c. Once located, hold SHIFT and right click on a blank area of the folder
4d. Click on "Open Command Window Here"
4e. Type "adb install nameofyourapkhere.apk" - without the quotes.
4f. It might say something like "daemon service not started" or something, but it will start it and continue. It'll then say something like 626k/1293k bla bla bla
4g. If it was successful, it will just say "Success". You can close the command window and SHAZAM! Your program will now be installed on your G1, and you can access it like any other program on your phone
5. XP Users - Follow these directions:
a) You can either go Start > Run > type CMD and press enter
OR
Windows Key + R > type CMD and press enter
Navigate to your APK file via the command prompt. For easy usage, put your APK file on your desktop. That way all you have to do is type "CD Desktop" into the command prompt
b)Type "adb install nameofyourapkhere.apk"
c)You may get a couple of messages like in the steps for Vista users
d)If all goes well, you too will get the success message
e)Enjoy your application!
Any confusions, let me know. Hope it helps, and Good Luck!
I've been using a local web server and the android browser.
untermensch:
Thats a possibility, but oddly enough, that requires a http-server
AGx-07_162:
With unicornasaurus's method above, you can install all the apk's you want... you can install apkinstaller and use that through that method, but you can just aswell install your apk's directly through it
I ran into the same problem. Here is the easiest ways to get the appinstaller on your G1. Download this file from your g1 browser or Gmail yourself this file, and download.
http://www.mediafire.com/?egy0mop2qqx
I haven't seen a guide on this, so I will make one for you guys. I'm sure many of you have noticed that if you copy a file from your PC to the SD card while in Android, then use the file browser, the file doesn't show up unless you reboot. This is an annoyance when installing apps, so I present to you this guide.
1. Download and extract the Android SDK.
2. In the "android-sdk-windows" open up SDK Setup, and install the USB driver package. [thanks memin1857]
3. Open up the "android-sdk-windows/tools" folder, this is the folder you will be putting your files into, in order to copy them to the SD card.
4. Open a command prompt, and cd into the directory containing the folder in Step 3 (IE: If you extracted the folder to C:\ in step 1, you would do
Code:
cd C:\android-sdk-windows\tools
5. Type ADB Shell
6. Type su to get root access
7. Type mount -o remount rw /sdcard to mount the sdcard
8. Type exit to exit the shell
9. Type adb push nameoffile.apk /sdcard replace nameoffile.apk with the filename of whatever you want to copy
10. Success!
You can also copy folders this way, simply type the folder name instead of the file name, in place of nameoffile.apk. Just tested this with several files, and it works perfectly
YAY!!! Waited for a while allready! Thanks!
good job brother!
wow...this is so complicated...can i suggest another way?which is use an app from market called websharing file/media....this is fastest way for me to transfer files...just connect bot your pc and device to the same connection(wifi).Then you can just transfer files from your pc internet browser...there is no need to install any desktop server client...just direct transfer...speedy too...1 mp3 song just about 5or 6 seconds...if you want download this app in full version and free...i think you can find it on www.4shared.com
Easy version
Droid Explorer works from adb too.
http://de.codeplex.com/
It uses the same mechanism (adb) with Android SDK but has a visual interface.
BTW if you will use android sdk only, you don't need to install all sdk packages (takes huge amount of time), you only need usb drivers.
(Droid Explorer has drivers included)
Or u can jus add the files thru USB connection n use Dev Tools's media scanner.
Sent from my HTC HD2 running DarkStone HD2Froyo v1
Good
Nice, iiNFAMOUS CHRiS
What is the difference between this and Auto Mount which is on the Android Market?
nzxtneo said:
What is the difference between this and Auto Mount which is on the Android Market?
Click to expand...
Click to collapse
When you use Auto Mount, it mounts the USB drive so you can drag/drop files onto the SD card, but if you do that method, when you try to find the file on your phone, Android won't see it unless you restart your phone.
iiNFAMOUS CHRiS said:
When you use Auto Mount, it mounts the USB drive so you can drag/drop files onto the SD card, but if you do that method, when you try to find the file on your phone, Android won't see it unless you restart your phone.
Click to expand...
Click to collapse
Weird, maybe it depends on the build but I have never had to restart the device after I move files over with Auto Mount.
I just remove the usb cable from the HD2 and I got a notification on the top left that says "preparing SD card" and after that I am good to go.
I have learned alot from this site so i figured i'd give something back. these are the the two easiest methods i have found for setting up the android debug bridge. one for windows and one for linux... these instructions should work for any version of windows.
first make sure you download the latest sdk by going to android.com and clicking on developers.
windows:
after you have download the sdk, unzip it to your desktop. rename it to sdk. cut the UNzipped folder on the desktop that you just renamed by right clicking and hitting "cut" then go to start>my computer>c: and paste the folder here. now go into the new "sdk" folder and right click on the "tools" folder and click "send to" then choose "desktop (as shortcut)" you should now have a shortcut on the desktop called "tools-shortcut"
now for the easy part: hold shift and right click on tools-shorcut, holding shift adds the option "open command window here" to the context menu that comes up so click on that. now just make sure your phone is connected to the computer and on ur phone debugging is enabled (menu>applications>development>debugging). on ur command window that came up you should see a black box with white text and the cmd should be c:\sdk\tools> just type "adb devices" and you should see your phone under "list of devices attached" if you do see it you should be able to start running adb commands
adb pull "/location to file or folder on phone" -(the pulled folder or file will be in the tools folder we created earlier which you can still access by clicking on the tools-shortcut on your desktop)
adb push "name of file or folder to be placed on the phone sdcard" -(make sure the file or folder you wish to place on the phone has been placed in the "tools" folder on the computer, again its the same folder the "tools-shortcut" opens up)
hint and examples: i have found a good way to back up and reinstall all ur apps using just adb push and pull. just experimenting and playing around with it i have found you can accomplish installing with just knowing these commands above... if you plan to data wipe and flash a new rom but you don't want to go through the tedious task of reinstalling and you have a rooted android phone then you may use this method to backup/reinstall ALL of your apps. plus this will give you good practice using adb.
backup example:
adb pull /data/app .... let it finish
adb pull /data/app-private ...let it finish
now you should have ALL of ur apps in ur tools folder on ur computer! in the tools folder, create a new folder and name it what u want, i named mine APPS4EVO because i have an evo and and epic and some apps don't work for both so i keep them seperate. cut and paste all of ur apps and put them into your newly made folder. now back to the adb window
restore example:
adb push /APPS4EVO /data/app/
this will push all of your apps in your backed up folder you made earlier to the folder where apps go when they are installed and if you wait 1-10 minutes depending on how many apps you have you should be able to see them on ur phone as if you had installed them one by one. also notice the space between /APPS4EVO and /data/app/ the space seperates the folder from inside ur tools folder you wish to install and the location you wish to put them on ur phone. please be aware that you do not need to type c:\sdk\tools\APPS4EVO because the command window is already being ran in the tools folder, so the location would just be /APPS4EVO in my case.
adb shell -opens up the terminal shell to run commands specifically for the phone, while in the shell you cannot run other "adb xxxxx" commands, you will have to exit the shell by typing "exit"
OPTIONAL: i marked this as optional bc with the above it is not necessary... i have never done this and my adb works great but i have seen it often in other tutorials around the web.... i believe its only necessary on windows 7 and maybe vista. go to start then right click on "my computer" and click on "properties" then in the left pane click on "advanced system settings" then in the window that pops up click on "environment varables" button, in the next window that pops up, under "system variables" scroll down to the "path" variable and double click it. in the "variable value" box do NOT erase anything but add ";c:\sdk\tools" (without quotations). then click ok on all the windows cuz ur done.
thats all for windows.
linux (ubuntu)
extract the sdk to your home/name/ folder and rename it to sdk. now right click on the folder and go to permissions and make sure (run as executable) is checked, now go into the folder and do the same permission change to the tools directory.
now you should be able to run adb commands in the terminal when your phone is connected. same as in windows except your commands will be preceded by your tools folder location....
FOR EXAMPLE:
/home/jay/sdk/tools/adb devices
/home/jay/sdk/tools/adb push xxxx xxx
/home/jay/sdk/tools/adb pull xxxx
EXTRA:
if your having troubles connecting ur phone to ur computer over usb, even after installing drivers, like i sometimes have with my epic, you can download "wireless adb" from the market which i found to be surprisingly easy to use, just like if u were connected by usb, except under adb devices you will show up as your gateway address not ur device name but trust it still works the same.
good luck everyone, i hope this post isn't redundant and i really hope i help someone out there just starting! adb is confusing at first.
This post is to help you set your phones default install path to your phones sd card on any android device.
so here we go..............>>
1. First you have to enable USB debugging on your Android device from Settings > Applications > Development > USB debugging.
Now you need to download and install the Android SDK on your computer from google....please google it.
Once setup is downloaded and installed you click on Available Packages to the left.
should you get any error message at this point, enable “Force (url) in the Settings then from the list of available packages, select “Usb Driver package”, click on the Install Selected button in the bottom right corner and follow the prompts.
2. Connect your phone to your computer with a USB-cable. Your OS will prompt you to install new drivers.
Choose to install them from
C:\Program Files\Android\android-sdk\extras\google\usb_driver folder
when you are asked to install drivers
(If for some reason you are not asked to install drivers as it happens sometimes in windows 7. Go to device manager and look for your phone under the usb device list..............right click and choose update drivers....navigate to C:\Program Files\Android\android-sdk\extras\google\usb_driver folder" to update) If you do not know how to update then google it.
NOTE: You need not mount your device; you only need to plug-in the cable.
3. Next, run a command prompt and navigate to the Android-SDK/platform-tools folder. In Windows, this is done by selecting Run from the Start Menu (or by pressing Win+R) and typing cmd. You change drives in the command prompt by entering the drive letter followed by a colon ), and change folders with the CD command. For example, to enter the Android-SDK folder, simply type C: cd android-sdk.
4. Whiles in the Android-SDK/platform-tools folder, type in
adb devices
you should get a serial number starting with “H” in return. All you have to do next is enter
adb shell pm setInstallLocation 2
You’re done! Android will now install apps to the SD card by default.
To switch back to storing software on the internal memory,
enter
adb shell pm setInstallLocation 0
With everything done correctly you should not have that "annoying memory getting full" message anymore.
If you have a terminal application installed on your phone you can use also that for entering the commands and you should notice, too, that it works only with 2.x roms.
Sent from my Gingerbread on Dream using XDA App
Or you could use a utility:
http://forum.xda-developers.com/showthread.php?t=1765929
But how do you specify a specific directory?
Getting Error
I am getting error "/data/anr/traces.txt: Permission denied" when I give Command "adb shell pm setInstallLocation 2"
Please Help.....
On some updated SDK version its "set-install-location"
Hi,
I've done this and it worked. however I changed my sd card from 2Gb to 4Gb and now it will not work anymore.
I've redone the steps above and, got confirmation that [external] memory is being used, however when I want to install a new app I get the same error message "not enough space"
Android GT-S5830i
ver 2.3.6
Any suggestions
Thanks
i'd like to be able to read/write/copy files to/from /sdcard while my phone is connected through USB to my Linux workstation running Ubuntu 12.04, but am experiencing some weird issues. i have USB debugging enabled and have authorized the computer to access the phone when i connected it the first time. when the phone connects as a Camera (PTP), i can see a SAMSUNG_Android partition show up on my workstation, but when i try to open it nothing happens... kind of just hangs there trying to load the files. if i connect the phone as a Media Device (MTP) then i again see a SAMSUNG_Android partition show up. when i open it, it will load the directory /sdcard but all of the subdirectories are empty, e.g. DCIM shows 0 items, Pictures shows 0 items, etc... all of the subfolders are empty and so i can't read anything from /sdcard except the root directory structure itself. i can copy a file from my workstation to the phone e.g. to /sdcard/Documents and it will show up in the dir listing on the workstation as well as the phone, but as soon as i reconnect the phone, the Documents directory is empty again showing 0 items, but the file i just copied to the phone is still on the phone. if i turn on private mode and reconnect the phone, then i can see the private files listed on my workstation on a second SAMSUNG_Android partition and i can read/write to that partition fine (note that i have Wanam Xposed installed and have disabled secure storage).
so basically i can't read from /sdcard through USB connection... if i want to get files off the device i have to use "adb pull" for each one
i have the /etc/udev/rules.d/51-android.rules file created with the following content:
Code:
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666", GROUP="plugdev"
i found this: https://askubuntu.com/a/284571
after installing the updated gvfs, i can see the listing of the directories at least, and i can copy files from the device now... but i can't open files directly still. e.g. when i try to open a picture with Image Viewer, i get an error "Failed to open input stream for file"... if i try to use gnome-open from the command line i get this error:
Error showing url: Operation not supported
however, there is a PDF file i have in ./Documents/ that i CAN open directly
i have some 3GP Audio recordings in ./Recordedcalls/ that i can't open either with mplayer or totem e.g.
seems like these applications that can't open the files are just not updated enough to understand the updated MTP protocol in gvfs? evince (the PDF viewer) must have the updated MTP support, is all i can think of...
any ideas?