[Q] access MTP from command line - Nexus 5 Q&A, Help & Troubleshooting

I have been looking around for this, but couldn't find a solution.
When connecting my Nexus 5 to my computer, it shows up as Portable Device. I can access data via explorer.
How can I access the data via Command Line when not in recovery? I want to make a batchfile to copy certain files.
thanks.

wim69 said:
I have been looking around for this, but couldn't find a solution.
When connecting my Nexus 5 to my computer, it shows up as Portable Device. I can access data via explorer.
How can I access the data via Command Line when not in recovery? I want to make a batchfile to copy certain files.
thanks.
Click to expand...
Click to collapse
You can use adb but it is more complicated when Android is booted. It would be simpler to use a bash shell script from android than a batch file from windows
Although my assumption is you want to create a task in windows that detects when your nexus is connected and copy certain files over as a backup. In which case, can I recommend FolderySync instead? It can be used to automatically backup files to cloud or local networked computers automatically. For example, whilst I sleep, my /sdcard backs up over wifi to my NAS

It should be pretty simple to use ADB for this... Make sure that adb is in your path and then run "adb pull" for each file you want to pull to your computer.

Related

is my understanding of how adbwireless is supposed to work correct?

is it supposed to connect my SD card to the computer over wifi so i can access it as if it was connected by USB? by access i mean opening it up like a drive in "My Computer"
because once i'm connected nothing shows up in "My Computer"...
i think u got it wrong..
run the app on your android mobile.
it will show you the port you have to connect to
then on your computer, navigate to your android/tools/ folder (via cmd)
type adb bla bla exactly written on your mobile
hope if helps
lagu805 said:
i think u got it wrong..
run the app on your android mobile.
it will show you the port you have to connect to
then on your computer, navigate to your android/tools/ folder (via cmd)
type adb bla bla exactly written on your mobile
hope if helps
Click to expand...
Click to collapse
i did all that. that's how i connected to my phone.
so with adbwireless, i can only transfer files through adb commands and not drag and drop?
tracerit said:
i did all that. that's how i connected to my phone.
so with adbwireless, i can only transfer files through adb commands and not drag and drop?
Click to expand...
Click to collapse
Exactly.
Sent from my HTC Desire using XDA App
I have android commander installed on my computer and it will let you drag and drop.. Used with adbwireless it's pretty handy. using a simple batch file makes it a two-click operation. one on the phone, and one click on the batch file, on my desktop.

[Q] Sideloading apps - Just a quick question....sort of

Been trying all day to get ADB working with no chance, just my laptop is just too screwed up i guess. Wont go into details too much, but I did everything by the book from three different sources and everytime i tried to check it with cmd under the right tools directory, after hitting adb or adb kill-server or adb devices i always get the error that adb is that excutable in that directory so im at a lost.
But off of that matter, i found a great program called Sideload Wonder Machine, that automatally sideloads app with out the sdk or rooting (which ive already done anyways) and works find.
But my question is, why bother? Becuase i have download apk's to my computer, connect and monuted my g with debbuging on and just transfered the file to download and then opened it with any file opener and it easily installed no problem.
So my question is, does sideloading thru the computer which installs it on the device its self do a little trick or something that makes it better to do it that way, or is just moving the file myself to the download folder on my g tab and installing it through the g tab the same?
Thanks for your time.
P.S. sorry for being a windbag.
o and if your intersted in the sideloading program im talking about heres the link:
forum.androidcentral.com/android-sideload-wonder-machine/40770-ac-sideload-wonder-machine-windows.html
sorry about the old school copy n paste method, dont think i can post links yet.
Same idea i usually just use dropbox or bluetooth transfer ive only used adb a handful of times, if you get rootexplorer its even easier, no mounting /system the hard way
KushyMansbridge said:
Been trying all day to get ADB working with no chance, just my laptop is just too screwed up i guess. Wont go into details too much, but I did everything by the book from three different sources and everytime i tried to check it with cmd under the right tools directory, after hitting adb or adb kill-server or adb devices i always get the error that adb is that excutable in that directory so im at a lost.
But off of that matter, i found a great program called Sideload Wonder Machine, that automatally sideloads app with out the sdk or rooting (which ive already done anyways) and works find.
But my question is, why bother? Becuase i have download apk's to my computer, connect and monuted my g with debbuging on and just transfered the file to download and then opened it with any file opener and it easily installed no problem.
So my question is, does sideloading thru the computer which installs it on the device its self do a little trick or something that makes it better to do it that way, or is just moving the file myself to the download folder on my g tab and installing it through the g tab the same?
Thanks for your time.
P.S. sorry for being a windbag.
o and if your intersted in the sideloading program im talking about heres the link:
forum.androidcentral.com/android-sideload-wonder-machine/40770-ac-sideload-wonder-machine-windows.html
sorry about the old school copy n paste method, dont think i can post links yet.
Click to expand...
Click to collapse
Hi. I don't see a download folder on my gtab. Is that a folder you created, or am I just missing something?
Bob
BobK58 said:
Hi. I don't see a download folder on my gtab. Is that a folder you created, or am I just missing something?
Bob
Click to expand...
Click to collapse
If you don't have it yet, the Download folder will create itself when you download something via the web browser.

[Q] Using Terminal Command To Push File To PC VIA USB?

So I Am Working On Some Project And I got stuck...... Problem is i can't PUSH my files From My Device To PC (Note: I am not using PC to PUSH/PULL). So is there any Terminal/Busybox Command ? Really need some help
I hope not as this would pose a major security threat to the pc.
If you had a service running on the pc for this purpose yes.
Well, The PC Side Isn't Much Of The Problem, Thing Is I Want To Record recived Message In File And than Copy This File To PC or let PC Know that it is time to pull that file, I managed to write sms recording software with ease, however i'm stuck there

Unable to locate db files with adb

Background
I recently installed the CyanogenMod12 on my Nexus 5 Lollipop and made sure to perform a full backup first. But I did not realize the difficulty I would be experiencing in attempting to use the backup file's contents to restore my previous SMS messages to my new install. Long story short, I've located the files I need to restore onto my hard drive from the backup and found a thread detailing the commands I would need to execute: http://forum.xda-developers.com/galaxy-nexus/help/restoring-sms-db-via-adb-push-t2146640
My problem
I cannot find the path of these two files on my new phone. I've confirmed that they in fact do exist by backing up my phone's current contents with adb then extracting the backup and searching for the files but the path provided in the backup file do not help me. I started off using airdroid to locate these files but eventually resorted to running a command to dump the outputs of ls via adb shell to my computer and searching for the file name... They were not listed there. Can anybody explain to me why a backup would contain the files yet adb shell isn't printing them out?
Files I'm attempting to find on my hard drive: messaging.db and messaging.db-journal
Path of these files within my extracted backups, both old and new: \apps\com.textra\db
Command I ran to dump adb shell listing: adb shell ls -lR > C:\file_output.txt
Unfortunately all of the sms backup/restore utilities don't actually use the db file format utilized by Android. I am aware I can use SQL Lite to view the db's contents, but I'm interested in restoring these messages to my new operating system install.... Any insight or assistance would be most appreciated.
I did not have root access enabled on my device... Now that I can find and access these files I plan on using Titanium to create a backup, modifying the Titanium backup by inserting my older files, and restoring the Titanium backup. I'll update my post and edit the Title to reflect the resolved state momentarily.
Edit: This did the trick... (just found out I can't update the title too).
I did the following in case anybody stumbles upon this post with this issue in the future: After turning on root access I performed an app data backup of Textra using Titanium backup. I transferred over the backup tar.gz to my computer using Airdroid, inserted the older SMS files using 7zip, force stopped Titanium and Textra just because and then replaced the original Textra Titanium backup file with my modified one. Once I restored the backup all my SMS texts from my previous install were loaded into Textra.... Phew
dentonid said:
Background
I recently installed the CyanogenMod12 on my Nexus 5 Lollipop and made sure to perform a full backup first. But I did not realize the difficulty I would be experiencing in attempting to use the backup file's contents to restore my previous SMS messages to my new install. Long story short, I've located the files I need to restore onto my hard drive from the backup and found a thread detailing the commands I would need to execute: http://forum.xda-developers.com/galaxy-nexus/help/restoring-sms-db-via-adb-push-t2146640
My problem
I cannot find the path of these two files on my new phone. I've confirmed that they in fact do exist by backing up my phone's current contents with adb then extracting the backup and searching for the files but the path provided in the backup file do not help me. I started off using airdroid to locate these files but eventually resorted to running a command to dump the outputs of ls via adb shell to my computer and searching for the file name... They were not listed there. Can anybody explain to me why a backup would contain the files yet adb shell isn't printing them out?
Files I'm attempting to find on my hard drive: messaging.db and messaging.db-journal
Path of these files within my extracted backups, both old and new: \apps\com.textra\db
Command I ran to dump adb shell listing: adb shell ls -lR > C:\file_output.txt
Unfortunately all of the sms backup/restore utilities don't actually use the db file format utilized by Android. I am aware I can use SQL Lite to view the db's contents, but I'm interested in restoring these messages to my new operating system install.... Any insight or assistance would be most appreciated.
Click to expand...
Click to collapse

EX FILE EXPLORER MP4 files decrypted they disappear !!

i need help with files disappear in my android after encrypting them with ES FILE EXPLORER app (
mostly are files with.mp4' after making a decrypted with the app ( es file explorer ) they simlpy VANISH from the android and cant find them
i am terribly need them back/
please help
Wondering what sense does it make to encrypt videos unless they are porn-videos?
keep Wondering, add some extra for that. but it's not the case this time....
..
can you help instead of wondering ?
Try this:
Look inside the folder where the videos should be and look there for a file named .nomedia. If this file is present delete it.
Didnt work :
i dont know where the .eslock files disappear ( which are the file being decrypted by this program ) i tried seach also with other applications.. but nothing :S
An .ESLOCK file is an encrypted file created by ES File Explorer app.
When you encrypt ( read: lock ) a file with the ES File Exploer app, then file is renamed to a set of numbers and letters and given the "eslock" file extension, which appears similar to asd496gfr04.eslock.
These .ESLOCK files should be found in the folder where the original files where housed. You can search Android for such files using ADB
Code:
adb devices
adb shell "cd /; ls -R * ^| grep 'eslock'"
thanks.
i am not familiar with the ADB thing actualy, i googled a lot and found whats called
"cmdline-tools" inside it there's is a "bin" and then " sdkmanager.bat" but it doesnt run a command shell line to type the codes :S
i dont know how to use that adb..
neuros131 said:
thanks.
i am not familiar with the ADB thing actualy, i googled a lot and found whats called
"cmdline-tools" inside it there's is a "bin" and then " sdkmanager.bat" but it doesnt run a command shell line to type the codes :S
i dont know how to use that adb..
Click to expand...
Click to collapse
Use the ADB installer what is in my signature below linked to. Once installed connect Android device with PC via USB-cable and enable in Android's Settings -> Developer options "USB Debug". When having done so open a Windows command prompt and run the ADB commands.
hi again,
I couldn't find anything with the search.
I tried to make another file being encrypted.
but after a day it vanished as well after the encryption.
i dont know whats happening, and if there's another way to resotre those files being vanished :?
also i got most of the search " access denied as in the picture "

Categories

Resources