[Q] Faster File transfers? - Nexus 4 Q&A, Help & Troubleshooting

Hi!
I find that MTP access via Windows, to transfer files to/from my N4 is tedious - because of slower speeds, no queuing, and single access restrictions.
Sometimes Explorer doesn't show files on the N4, which I can clearly see with File Managers on my N4 itself.
( i've tried re-plugging the N4. it starts showing up only when I restart my computer, but I can't keep doing this, obivously... )
What is a better way to transfer files? ADB, SSH, WiFi etc...?
Thanks!

Wifi use airdroid r lazy droid
your's,
ajeteja

arvindch said:
Hi!
I find that MTP access via Windows, to transfer files to/from my N4 is tedious - because of slower speeds, no queuing, and single access restrictions.
Sometimes Explorer doesn't show files on the N4, which I can clearly see with File Managers on my N4 itself.
( i've tried re-plugging the N4. it starts showing up only when I restart my computer, but I can't keep doing this, obivously... )
What is a better way to transfer files? ADB, SSH, WiFi etc...?
Thanks!
Click to expand...
Click to collapse
I've had this issue as well seeing the files using root explorer but there nowhere present, When connecting to a pc looking thru explorer.
Try downloading TricksterMod and running the 'media scanner' then see if your files show up

ajeteja said:
Wifi use airdroid r lazy droid
your's,
ajeteja
Click to expand...
Click to collapse
I've tried airdroid and snappea, but I didn't like them.
I'll try lazy droid.
Any other methods?
Thanks!

tarroyo said:
I've had this issue as well seeing the files using root explorer but there nowhere present, When connecting to a pc looking thru explorer.
Try downloading TricksterMod and running the 'media scanner' then see if your files show up
Click to expand...
Click to collapse
Hmm. That works!
However, copy speeds are still pretty slow...
Do you know how I can use ADB or SSH to transfer files? I believe these are faster methods.
Thanks!

arvindch said:
Hmm. That works!
However, copy speeds are still pretty slow...
Do you know how I can use ADB or SSH to transfer files? I believe these are faster methods.
Thanks!
Click to expand...
Click to collapse
I usually stick with mtp as its ok but i sometimes use FTP
FTP Via USB Cable
requirements
usb debugging enabled
adb access to device
download this app on Nexus 4
https://play.google.com/store/apps/details?id=com.theolivetree.ftpserver&hl=en
open it up and goto settings > Network interface > Loopback (127.0.0.1)
go back and press the power icon to turn the server on
it will show you its available on 127.0.0.1:2221
however we now need to link the ports to adb so that we can ftp
i use this batch file
Code:
adb forward tcp:2221 tcp:2221
adb forward tcp:2300 tcp:2300
adb forward tcp:2301 tcp:2301
adb forward tcp:2302 tcp:2302
adb forward tcp:2303 tcp:2303
adb forward tcp:2304 tcp:2304
adb forward tcp:2305 tcp:2305
adb forward tcp:2306 tcp:2306
adb forward tcp:2307 tcp:2307
adb forward tcp:2308 tcp:2308
adb forward tcp:2309 tcp:2309
adb forward tcp:2310 tcp:2310
adb forward tcp:2311 tcp:2311
adb forward tcp:2312 tcp:2312
adb forward tcp:2313 tcp:2313
adb forward tcp:2314 tcp:2314
adb forward tcp:2315 tcp:2315
adb forward tcp:2316 tcp:2316
adb forward tcp:2317 tcp:2317
adb forward tcp:2318 tcp:2318
adb forward tcp:2319 tcp:2319
adb forward tcp:2320 tcp:2320
adb forward tcp:2321 tcp:2321
adb forward tcp:2322 tcp:2322
adb forward tcp:2323 tcp:2323
adb forward tcp:2324 tcp:2324
adb forward tcp:2325 tcp:2325
adb forward tcp:2326 tcp:2326
adb forward tcp:2327 tcp:2327
adb forward tcp:2328 tcp:2328
adb forward tcp:2329 tcp:2329
adb forward tcp:2330 tcp:2330
adb forward tcp:2331 tcp:2330
adb forward tcp:2332 tcp:2332
adb forward tcp:2333 tcp:2333
adb forward tcp:2334 tcp:2334
adb forward tcp:2335 tcp:2335
adb forward tcp:2336 tcp:2336
adb forward tcp:2337 tcp:2337
adb forward tcp:2338 tcp:2338
adb forward tcp:2339 tcp:2339
adb forward tcp:2340 tcp:2340
adb forward tcp:2341 tcp:2341
adb forward tcp:2342 tcp:2342
adb forward tcp:2343 tcp:2343
adb forward tcp:2344 tcp:2344
adb forward tcp:2345 tcp:2345
adb forward tcp:2346 tcp:2346
adb forward tcp:2347 tcp:2347
adb forward tcp:2348 tcp:2348
adb forward tcp:2349 tcp:2349
adb forward tcp:2350 tcp:2350
adb forward tcp:2351 tcp:2351
adb forward tcp:2352 tcp:2352
adb forward tcp:2353 tcp:2353
adb forward tcp:2354 tcp:2354
adb forward tcp:2355 tcp:2355
adb forward tcp:2356 tcp:2356
adb forward tcp:2357 tcp:2357
adb forward tcp:2358 tcp:2358
adb forward tcp:2359 tcp:2359
adb forward tcp:2360 tcp:2360
adb forward tcp:2361 tcp:2361
adb forward tcp:2362 tcp:2362
adb forward tcp:2363 tcp:2363
adb forward tcp:2364 tcp:2364
adb forward tcp:2365 tcp:2365
adb forward tcp:2366 tcp:2366
adb forward tcp:2367 tcp:2367
adb forward tcp:2368 tcp:2368
adb forward tcp:2369 tcp:2369
adb forward tcp:2370 tcp:2370
adb forward tcp:2371 tcp:2371
adb forward tcp:2372 tcp:2372
adb forward tcp:2373 tcp:2373
adb forward tcp:2374 tcp:2374
adb forward tcp:2375 tcp:2375
adb forward tcp:2376 tcp:2376
adb forward tcp:2377 tcp:2377
adb forward tcp:2378 tcp:2378
adb forward tcp:2379 tcp:2379
adb forward tcp:2380 tcp:2380
adb forward tcp:2381 tcp:2381
adb forward tcp:2382 tcp:2382
adb forward tcp:2383 tcp:2383
adb forward tcp:2384 tcp:2384
adb forward tcp:2385 tcp:2385
adb forward tcp:2386 tcp:2386
adb forward tcp:2387 tcp:2387
adb forward tcp:2388 tcp:2388
adb forward tcp:2389 tcp:2389
adb forward tcp:2390 tcp:2390
adb forward tcp:2391 tcp:2391
adb forward tcp:2392 tcp:2392
adb forward tcp:2393 tcp:2393
adb forward tcp:2394 tcp:2394
adb forward tcp:2395 tcp:2395
adb forward tcp:2396 tcp:2396
adb forward tcp:2397 tcp:2397
adb forward tcp:2398 tcp:2398
adb forward tcp:2399 tcp:2399
you can copy it into a notepad and save as PhoneFTP.bat or whatever
run it and it will forward all the default ports for the app
now you can connect to your phones internal storage with an ftp client like filezilla with the address ftp://127.0.0.1:2221
once it has been setup once its much easier when you want to come and use it again
plug phone into pc
turn server on - on phone
run bat file - on PC
connect via ftp explorer

I transfer over WiFi using FTPDroid and WinSCP. My speeds are about 5.6 MB/s on my Wireless N router.
Using the default Windows which I believe is CIFS, I get less than 500 KB/s.

Alex240188 said:
I usually stick with mtp as its ok but i sometimes use FTP
FTP Via USB Cable
requirements
usb debugging enabled
adb access to device
download this app on Nexus 4
https://play.google.com/store/apps/details?id=com.theolivetree.ftpserver&hl=en
open it up and goto settings > Network interface > Loopback (127.0.0.1)
go back and press the power icon to turn the server on
it will show you its available on 127.0.0.1:2221
however we now need to link the ports to adb so that we can ftp
i use this batch file
Code:
adb forward tcp:2221 tcp:2221
adb forward tcp:2300 tcp:2300
adb forward tcp:2301 tcp:2301
adb forward tcp:2302 tcp:2302
adb forward tcp:2303 tcp:2303
adb forward tcp:2304 tcp:2304
adb forward tcp:2305 tcp:2305
adb forward tcp:2306 tcp:2306
adb forward tcp:2307 tcp:2307
adb forward tcp:2308 tcp:2308
adb forward tcp:2309 tcp:2309
adb forward tcp:2310 tcp:2310
adb forward tcp:2311 tcp:2311
adb forward tcp:2312 tcp:2312
adb forward tcp:2313 tcp:2313
adb forward tcp:2314 tcp:2314
adb forward tcp:2315 tcp:2315
adb forward tcp:2316 tcp:2316
adb forward tcp:2317 tcp:2317
adb forward tcp:2318 tcp:2318
adb forward tcp:2319 tcp:2319
adb forward tcp:2320 tcp:2320
adb forward tcp:2321 tcp:2321
adb forward tcp:2322 tcp:2322
adb forward tcp:2323 tcp:2323
adb forward tcp:2324 tcp:2324
adb forward tcp:2325 tcp:2325
adb forward tcp:2326 tcp:2326
adb forward tcp:2327 tcp:2327
adb forward tcp:2328 tcp:2328
adb forward tcp:2329 tcp:2329
adb forward tcp:2330 tcp:2330
adb forward tcp:2331 tcp:2330
adb forward tcp:2332 tcp:2332
adb forward tcp:2333 tcp:2333
adb forward tcp:2334 tcp:2334
adb forward tcp:2335 tcp:2335
adb forward tcp:2336 tcp:2336
adb forward tcp:2337 tcp:2337
adb forward tcp:2338 tcp:2338
adb forward tcp:2339 tcp:2339
adb forward tcp:2340 tcp:2340
adb forward tcp:2341 tcp:2341
adb forward tcp:2342 tcp:2342
adb forward tcp:2343 tcp:2343
adb forward tcp:2344 tcp:2344
adb forward tcp:2345 tcp:2345
adb forward tcp:2346 tcp:2346
adb forward tcp:2347 tcp:2347
adb forward tcp:2348 tcp:2348
adb forward tcp:2349 tcp:2349
adb forward tcp:2350 tcp:2350
adb forward tcp:2351 tcp:2351
adb forward tcp:2352 tcp:2352
adb forward tcp:2353 tcp:2353
adb forward tcp:2354 tcp:2354
adb forward tcp:2355 tcp:2355
adb forward tcp:2356 tcp:2356
adb forward tcp:2357 tcp:2357
adb forward tcp:2358 tcp:2358
adb forward tcp:2359 tcp:2359
adb forward tcp:2360 tcp:2360
adb forward tcp:2361 tcp:2361
adb forward tcp:2362 tcp:2362
adb forward tcp:2363 tcp:2363
adb forward tcp:2364 tcp:2364
adb forward tcp:2365 tcp:2365
adb forward tcp:2366 tcp:2366
adb forward tcp:2367 tcp:2367
adb forward tcp:2368 tcp:2368
adb forward tcp:2369 tcp:2369
adb forward tcp:2370 tcp:2370
adb forward tcp:2371 tcp:2371
adb forward tcp:2372 tcp:2372
adb forward tcp:2373 tcp:2373
adb forward tcp:2374 tcp:2374
adb forward tcp:2375 tcp:2375
adb forward tcp:2376 tcp:2376
adb forward tcp:2377 tcp:2377
adb forward tcp:2378 tcp:2378
adb forward tcp:2379 tcp:2379
adb forward tcp:2380 tcp:2380
adb forward tcp:2381 tcp:2381
adb forward tcp:2382 tcp:2382
adb forward tcp:2383 tcp:2383
adb forward tcp:2384 tcp:2384
adb forward tcp:2385 tcp:2385
adb forward tcp:2386 tcp:2386
adb forward tcp:2387 tcp:2387
adb forward tcp:2388 tcp:2388
adb forward tcp:2389 tcp:2389
adb forward tcp:2390 tcp:2390
adb forward tcp:2391 tcp:2391
adb forward tcp:2392 tcp:2392
adb forward tcp:2393 tcp:2393
adb forward tcp:2394 tcp:2394
adb forward tcp:2395 tcp:2395
adb forward tcp:2396 tcp:2396
adb forward tcp:2397 tcp:2397
adb forward tcp:2398 tcp:2398
adb forward tcp:2399 tcp:2399
you can copy it into a notepad and save as PhoneFTP.bat or whatever
run it and it will forward all the default ports for the app
now you can connect to your phones internal storage with an ftp client like filezilla with the address ftp://127.0.0.1:2221
once it has been setup once its much easier when you want to come and use it again
plug phone into pc
turn server on - on phone
run bat file - on PC
connect via ftp explorer
Click to expand...
Click to collapse
Thanks! That looks like a good solution. I'll try it out and get back to you.
Have you tried doing this through ssh instead?
Thanks!

shilent said:
I transfer over WiFi using FTPDroid and WinSCP. My speeds are about 5.6 MB/s on my Wireless N router.
Using the default Windows which I believe is CIFS, I get less than 500 KB/s.
Click to expand...
Click to collapse
How did you set it up? That sounds good...
I think windows is MTP, which might be CIFS - I'm not sure. I think I get more than 500kbps, but still not 5 Mbps.
Thanks!

Because it's using ftp to transfer instead of Mtp. If your getting 5-6 mb/s then you may as well do WiFi ftp rather than cable. As using the method to work over USB I previously posted only got me the same transfer speeds. Meaning that's probably the write speed limit of the phone storage
Sent from my Nexus 4 using xda app-developers app

Alex240188 said:
Because it's using ftp to transfer instead of Mtp. If your getting 5-6 mb/s then you may as well do WiFi ftp rather than cable. As using the method to work over USB I previously posted only got me the same transfer speeds. Meaning that's probably the write speed limit of the phone storage
Click to expand...
Click to collapse
Yeah, I'd prefer wireless over usb - then I wouldn't have to plug it in all the time!
How would I set up ftp over wifi?
Thanks!

arvindch said:
How did you set it up? That sounds good...
I think windows is MTP, which might be CIFS - I'm not sure. I think I get more than 500kbps, but still not 5 Mbps.
Thanks!
Click to expand...
Click to collapse
Simple, just Google winSCP, download FTPDroid from Google play, start FTPDroid service, and connect to your phone using winSCP on your computer.
Let me know if you need more details.
Edit: When I said was getting 500 KB/s using CIFS, I meant using basic file sharing over WiFi (using a file explorer to connect to shared drive).
Sent from my Nexus 4 using xda app-developers app

shilent said:
Simple, just Google winSCP, download FTPDroid from Google play, start FTPDroid service, and connect to your phone using winSCP on your computer.
Let me know if you need more details.
Edit: When I said was getting 500 KB/s using CIFS, I meant using basic file sharing over WiFi (using a file explorer to connect to shared drive).
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
That sounds like an easy setup.
Also, would you recommend FTPDroid or SSHDroid?
Which protocol (FTP/SSH) is better, in your opinion?
Thanks!

shilent said:
Simple, just Google winSCP, download FTPDroid from Google play, start FTPDroid service, and connect to your phone using winSCP on your computer.
Let me know if you need more details.
Edit: When I said was getting 500 KB/s using CIFS, I meant using basic file sharing over WiFi (using a file explorer to connect to shared drive).
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Hi!
Have you tried using DropBear SSH Server II? It's free and open-source...
I'm having problems setting it up. Could you try it out and guide me through the process? That would be awesome!
Thanks!

arvindch said:
Hi!
Have you tried using DropBear SSH Server II? It's free and open-source...
I'm having problems setting it up. Could you try it out and guide me through the process? That would be awesome!
Thanks!
Click to expand...
Click to collapse
I couldn't get dropbear to work, though I only tried for 5 minutes.
Why not try FTPDroid?
Sent from my Nexus 4 using xda app-developers app

shilent said:
I couldn't get dropbear to work, though I only tried for 5 minutes.
Why not try FTPDroid?
Click to expand...
Click to collapse
Haha.. No, I just thought I'd give dropbear a chance - since it's free and open source, and has a holo interface(!).
I've installed FTPDroid, and I'm able to copy files to my device. But, I can't delete them, or access root.
I believe this is because I'm logged in as 'anonymous'. How do I set up root access and complete file access/manipulation?
Also, what's the best way to mount FTP drives in Windows 7?
Thanks!

Related

Im sorry

Hello,im sorry for asking all theese questions lately but i am really confused.could someone post how to adb push and adb shell from like the first cmd line.because i do
cd C:\android-sdk-windows\tools
adb remount
Remount failed no such file or directory
extra info. i am rooted i have recovery and su i have samsung driver installed usb debugging checked.thank you everyone i really appreciate all the help.
Can Any1 Help?
II5StarII Swag said:
Can Any1 Help?
Click to expand...
Click to collapse
Adb push is to send something to the phone. You needt to put that file in your tools directory on the computer, then navigate there as you demonstrated properly.
Adb push FILENAME /Location/
To access the shell
Adb shell
$ not root access
# root access
To mount the file system with th adb remount command, you need busybox installed. Otherwise you have to mount it from the shell (sorry don't have the long ass command memorized, but its all over here)
Sent from my SPH-D700 using XDA App

feeling like a serious noob today--ADB linux help

ok well i've been using adb for a while now via windows on our desktop, my laptop however runs ubuntu. but i've run into a problem.....I CAN'T OPEN ADB IN LINUX! using terminal i navigate to the proper location then i initiate adb shell but i get an error saying the command doesn't exist...what am i doing wrong?
tried ./adb ?
if you haven't added ADB to path it won't be recognized as a command, then you'd have to execute it using ./adb
Hi, adb
is located in <android-sdk-folder>/platform-tools folder. You could add it into your $PATH variable in .bashrc . Than it's ready to use from anywhere

[How To] Setup ADB for Windows/ Mac

For Windows
Want to set up ADB or Android Debugging Bridge on your PC, here is a quick guide for you. This tutorial does not need large download or full Android SDK installation. You will just have to download a small compressed file, which is all that you require.
STEP 1: First download this file called ADBUNZIPTOCDRIVE.zip, just click on the link, download will start automatically.
STEP 2: Now download PdaNet for driver installation. It comes with drivers from all major manufacturers, so this is all you need. Install PDAnet after downloading.
STEP 3: Now extract the zip file that we downloaded in the first step to C drive and name the extracted folder ADB.
STEP 4: Now we will go to the desktop and right click to make a new shortcut.
STEP 5: Point the shortcut to ADB folder that we created in step 3, and name the shortcut ADB or whatever you want.
STEP 6: Now right click on that shortcut and go to properties and change START IN field to c:\adb.
STEP 7: Click Apply or OK and you are done. Click on ADB shortcut on the desktop and you are good to go.
Here is list of ADB commands that might be useful for you in the future.
adb devices – list all connected devices
adb push <local> <remote> – copy file/dir to device
adb pull <remote> [<local>] – copy file/dir from device
adb sync [ <directory> ] – copy host->device only if changed
adb shell – run remote shell interactively
adb shell <command> – run remote shell command
adb emu <command> – run emulator console command
adb logcat [ <filter-spec> ] – View device log
adb forward <local> <remote> – forward socket connections forward specs are one of: tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb jdwp – list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] [-s] <file> – push this package file to the device and install it
adb uninstall [-k] <package> – remove this app package from the device (‘-k’ means keep the data and cache directories)
adb bugreport – return all information from the device
that should be included in a bug report.
adb help – show this help message
adb version – show version num
adb wait-for-device – block until device is online
adb start-server – ensure that there is a server running
adb kill-server – kill the server if it is running
adb get-state – prints: offline | bootloader | device
adb get-serialno – prints: <serial-number>
adb status-window – continuously print device status for a specified device
adb remount – remounts the /system partition on the device read-write
adb reboot [bootloader|recovery] – reboots the device, optionally into the bootloader or recovery program
adb reboot-bootloader – reboots the device into the bootloader
adb root – restarts the adbd daemon with root permissions
adb usb – restarts the adbd daemon listening on USB
adb tcpip <port> – restarts the adbd daemon listening on TCP on the specified port
[How To] Setup ADB for Mac
For MAC
Want to setup ADB on a mac, this tutorial should help you. This guide does not require the full Android SDK installation on your mac to use Android Debug Bridge, rather you just have to install the required files and you are good to go.
STEP 1: Download Required ADB files ZIP from here.
STEP 2: Extract the downloaded ZIP to a folder/directory that you can easily locate.
STEP 3: While you can start using ADB right away, but you will have to navigate to the folder that you created by unzipping the ADB files, to use ADB. So, we will make an entry in ~/.bash_profile configuration files to make ADB accessible from terminal normally from anywhere.
STEP 4: Open Terminal on your mac and type the following command
nano ~/.bash_profile
STEP 5: The above command will open a file in a text editor, now add the following line in the end of that file.
export PATH=${PATH}:your_sdk_dir
your_sdk_dir is the path to folder that you created in STEP 2. It will be something like Users/George/platform-tools
Image Credit: tjrocks91
STEP 6: Save the file and type the following command
source ~/.bash_profile
STEP 7: Now, quit Terminal
STEP 8: Optional: You can install PDAnet by downloading from here; it installs the drivers for popular Android device manufacturers or you can individually download and install drivers for your phone/tablet manufacturer by going to their official website.
Before you connect your Android device to mac, make your to turn on USB Debugging by going to Setting>Applications>Development on your tablet/phone.
And you are done. Connect your device and type adb devices in terminal. It should show your device in the list.
[How To] Setup ADB for Windows
<Reserved>
No offense, but there are already loads of threads like this!
Now as you made the thread, make it better
Ask a mod to merger this with your other thread it would be easier to manage
Add a Linux section too
You can find the drivers on Sam firmware, no need to install PDA net for that
Also, adding some pictures would be nice.
From my fingers to your eyez
Thanks, note taken.
Thanks, especially for the functions you given down. Will try them later on.
Sent from my GT-I5800 using xda premium
thanks but the first file is deleted
Thanks I really needed this and i couldn't find a thread for this.
Humpie said:
thanks but the first file is deleted
Click to expand...
Click to collapse
Link working. Please check.
sekhargreen said:
Link working. Please check.
Click to expand...
Click to collapse
Yes it works right now.
This is great! One question...how do you save the file on step 6 for mac?
thanks! It fixed it!
nader2013 said:
This is great! One question...how do you save the file on step 6 for mac?
Click to expand...
Click to collapse
If you use "control (on your keyboard) and E" it allows you to exit the editor but gives you the option to save before you do. Just follow the instructions and it'll save.
sekhargreen said:
For Windows
Want to set up ADB or Android Debugging Bridge on your PC, here is a quick guide for you. This tutorial does not need large download or full Android SDK installation. You will just have to download a small compressed file, which is all that you require.
STEP 1: First download this file called ADBUNZIPTOCDRIVE.zip, just click on the link, download will start automatically.
STEP 2: Now download PdaNet for driver installation. It comes with drivers from all major manufacturers, so this is all you need. Install PDAnet after downloading.
STEP 3: Now extract the zip file that we downloaded in the first step to C drive and name the extracted folder ADB.
STEP 4: Now we will go to the desktop and right click to make a new shortcut.
STEP 5: Point the shortcut to ADB folder that we created in step 3, and name the shortcut ADB or whatever you want.
STEP 6: Now right click on that shortcut and go to properties and change START IN field to c:\adb.
STEP 7: Click Apply or OK and you are done. Click on ADB shortcut on the desktop and you are good to go.
Here is list of ADB commands that might be useful for you in the future.
adb devices – list all connected devices
adb push <local> <remote> – copy file/dir to device
adb pull <remote> [<local>] – copy file/dir from device
adb sync [ <directory> ] – copy host->device only if changed
adb shell – run remote shell interactively
adb shell <command> – run remote shell command
adb emu <command> – run emulator console command
adb logcat [ <filter-spec> ] – View device log
adb forward <local> <remote> – forward socket connections forward specs are one of: tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb jdwp – list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] [-s] <file> – push this package file to the device and install it
adb uninstall [-k] <package> – remove this app package from the device (‘-k’ means keep the data and cache directories)
adb bugreport – return all information from the device
that should be included in a bug report.
adb help – show this help message
adb version – show version num
adb wait-for-device – block until device is online
adb start-server – ensure that there is a server running
adb kill-server – kill the server if it is running
adb get-state – prints: offline | bootloader | device
adb get-serialno – prints: <serial-number>
adb status-window – continuously print device status for a specified device
adb remount – remounts the /system partition on the device read-write
adb reboot [bootloader|recovery] – reboots the device, optionally into the bootloader or recovery program
adb reboot-bootloader – reboots the device into the bootloader
adb root – restarts the adbd daemon with root permissions
adb usb – restarts the adbd daemon listening on USB
adb tcpip <port> – restarts the adbd daemon listening on TCP on the specified port
Click to expand...
Click to collapse
my device does not show up when I type ADB DEVICES ....
?
Here is a link to an automated script I made that installs adb on the Mac for you. For users that don't wanna mess with the command line.
I feel kind of lame, but for some reason whenever I input something such as adb devices, it tells me adb is not recognized as an internal or external command, operable program or batch file.
agregory413 said:
I feel kind of lame, but for some reason whenever I input something such as adb devices, it tells me adb is not recognized as an internal or external command, operable program or batch file.
Click to expand...
Click to collapse
Did u go to the correct directory with adb?
Cheers
Sent from my GT-i9003 powered by MIUI
sekhargreen said:
export PATH=${PATH}:your_sdk_dir
your_sdk_dir is the path to folder that you created in STEP 2. It will be something like Users/George/platform-tools
Click to expand...
Click to collapse
Thanks for this guide. However, I'd like to point out that a forward slash before Users may be needed, like this:
/Users/George/platform-tools
Error
Hey guys I keep getting the error-" adb is not a recognized command......". Can someone plz help me....QUICKLY??!!
abhishek046 said:
Hey guys I keep getting the error-" adb is not a recognized command......". Can someone plz help me....QUICKLY??!!
Click to expand...
Click to collapse
Are you in the right folder that has adb?
Cheers
Sent from my GT-i9003 powered by Stable and Smooth CyanogenMod 9!

[Q] How to Root LG G2 on a Mac

Does anyone here have any tools or guides on how I can achieve root on my Verizon LG G2 on my mac in terminal or via a tool like this one which seems to only be windows based: http://forum.xda-developers.com/showthread.php?t=2448887
I don't have access to a windows machine at home that I can use to get root on my LG G2. I would really appreciate it if someone could make a guide (Text or Youtube even better) or a root tool like the one I linked to above. I'm not trying to be a mac snob which I'm not...I just do a lot of design work and photo editing and have used Mac's since I find that most of the studios I deal with all use them and I need to be able to exchange files that are compatible. I would really appreciate some help with regards to doing this on my MAC. Thanks for listening and I hope someone can point me in the right direction.
Thanks again.
I'm also looking for a Mac solution. I'm a long time Android user but have a Macbook. Hoping someone comes up with Mac version.
I used the method by thecubed in the development section. I unzipped it and followed the adb commands in the .bat file (right click that file, open with text editor). Don't forget the part about unplugging the USB cable and disabling and then enabling debugging.
mjdupuis said:
I used the method by thecubed in the development section. I unzipped it and followed the adb commands in the .bat file (right click that file, open with text editor). Don't forget the part about unplugging the USB cable and disabling and then enabling debugging.
Click to expand...
Click to collapse
But, did you do it on a Mac?
Thank you Devs. From my LG G2.
Yes, all through terminal.
I can post the specifics, but I'm not a developer and most likely could not help you if you or I happen to mess something up.
That would be great if you could post the specifics. Would really love to see how you did it.
WARNING! This is just what worked for me, and it's just the adb commands from thecubed's program. All credit goes to him, I didn't do any of this, just took the info from it.
Here's the thread: http://forum.xda-developers.com/showthread.php?t=2448887
Download it, unzip it, and then take a moment to go back and thank him if you didn't do that.
You are not actually using his program, just the files and commands. Everything is done using Terminal and the Finder. You must have ADB working, look elsewhere for instructions on setting that up.
The files used here are the Verizon versions of the files, which I used for my phone. They are also specific to the OTA'd Verizon software, "11A" so there are different files if you haven't installed the OTA. These commands are correct, but the files being pushed aren't all the same between different carrier models and do not work with any other carrier. All the right stuff for other carriers is contained in thecubed's program.
The bold sections are files you need to send over adb, you can manually enter the file pathway or drag the files from finder into terminal after the adb commands (and before you type the destinations).
One more warning; if this is your first time using adb or terminal, I don't recommend this as your first try. It's super easy to screw something up in terminal.
Your phone must have developer options enabled and usb debugging on. plug in your phone via usb and select "Internet" and then "Ethernet."
adb push ytiruces_1a_vzw /sdcard/ytiruces_1a
Unplug usb, disable USB debugging and then re-enable it. Plug USB back in.
adb shell "mount -o remount,rw /system"
adb push su /system/xbin/su
adb shell "chown 0.0 /system/xbin/su;chmod 06755 /system/xbin/su;sync;mount -o remount,ro /system"
adb install superuser.apk
exit
thanks for this.
I used parallels installed Windows 7 I could have drove home and grabbed my laptop but that would have been to easy lol.
But now my mom is happy to see Windows android and osx lion on a 2009 MacBook pro I was surprised how well it went I thought I was going to have driver issues or something would go wrong but it was like I was using a straight up Windows 7 laptop. If that program was available for ubuntu a lot if people would be happy campers ?
Sent from my LG-D800 using XDA Premium 4 mobile app
I thought it would be a nightmare as obviously lg doesn't provide USB drivers for Mac. Color me surprised Mac doesn't need drivers!
Although I'm still not rooted, but that's phone version related
Sent from my LG-F320L using XDA Premium 4 mobile app
back to stock
I am needing to flash this thing back to stock so I can take it to the Verizon Store for an exchange. All I really have is a Mac.... I'd really like to know how to flash it back to stock, unrooted. I have some experience, but please be very clear as I really don't want to mess up. Thanks in advance for anyone willing to help.
mjdupuis said:
WARNING! This is just what worked for me, and it's just the adb commands from thecubed's program. All credit goes to him, I didn't do any of this, just took the info from it.
Here's the thread: http://forum.xda-developers.com/showthread.php?t=2448887
Download it, unzip it, and then take a moment to go back and thank him if you didn't do that.
You are not actually using his program, just the files and commands. Everything is done using Terminal and the Finder. You must have ADB working, look elsewhere for instructions on setting that up.
The files used here are the Verizon versions of the files, which I used for my phone. They are also specific to the OTA'd Verizon software, "11A" so there are different files if you haven't installed the OTA. These commands are correct, but the files being pushed aren't all the same between different carrier models and do not work with any other carrier. All the right stuff for other carriers is contained in thecubed's program.
The bold sections are files you need to send over adb, you can manually enter the file pathway or drag the files from finder into terminal after the adb commands (and before you type the destinations).
One more warning; if this is your first time using adb or terminal, I don't recommend this as your first try. It's super easy to screw something up in terminal.
Your phone must have developer options enabled and usb debugging on. plug in your phone via usb and select "Internet" and then "Ethernet."
adb push ytiruces_1a_vzw /sdcard/ytiruces_1a
Unplug usb, disable USB debugging and then re-enable it. Plug USB back in.
adb shell "mount -o remount,rw /system"
adb push su /system/xbin/su
adb shell "chown 0.0 /system/xbin/su;chmod 06755 /system/xbin/su;sync;mount -o remount,ro /system"
adb install superuser.apk
exit
Click to expand...
Click to collapse
you wouldnt happen to know which files in there are for the tmobile g2 would you? im also trying to root on mac.
You'll have to look in the .bat file, it will show which file needs to be used for T-Mobile.
mjdupuis said:
WARNING! This is just what worked for me, and it's just the adb commands from thecubed's program. All credit goes to him, I didn't do any of this, just took the info from it.
Here's the thread: http://forum.xda-developers.com/showthread.php?t=2448887
Download it, unzip it, and then take a moment to go back and thank him if you didn't do that.
You are not actually using his program, just the files and commands. Everything is done using Terminal and the Finder. You must have ADB working, look elsewhere for instructions on setting that up.
The files used here are the Verizon versions of the files, which I used for my phone. They are also specific to the OTA'd Verizon software, "11A" so there are different files if you haven't installed the OTA. These commands are correct, but the files being pushed aren't all the same between different carrier models and do not work with any other carrier. All the right stuff for other carriers is contained in thecubed's program.
The bold sections are files you need to send over adb, you can manually enter the file pathway or drag the files from finder into terminal after the adb commands (and before you type the destinations).
One more warning; if this is your first time using adb or terminal, I don't recommend this as your first try. It's super easy to screw something up in terminal.
Your phone must have developer options enabled and usb debugging on. plug in your phone via usb and select "Internet" and then "Ethernet."
adb push ytiruces_1a_vzw /sdcard/ytiruces_1a
Unplug usb, disable USB debugging and then re-enable it. Plug USB back in.
adb shell "mount -o remount,rw /system"
adb push su /system/xbin/su
adb shell "chown 0.0 /system/xbin/su;chmod 06755 /system/xbin/su;sync;mount -o remount,ro /system"
adb install superuser.apk
exit
Click to expand...
Click to collapse
Haven't used adb before, but I'm no noob to rooting /flashing. I got adb installed and working on my computer now (running Ubuntu). After I launch adb in the terminal, then I just type these commands? (copy paste?)
You could only copy and paste if you have a Verizon g2 with the ota update, if it's any other version you'll be using different files than the ones I have used.
Yeah, I have the Verizon g2 and I guess it's got the ota... There are no pending updates right now
Two problems on mac
I'm getting two error messages. The first is a line 2 error on the g2 security. The second is 'operation not permitted' for a mount command. Anyone have any solutions?
elcapitano21 said:
I'm getting two error messages. The first is a line 2 error on the g2 security. The second is 'operation not permitted' for a mount command. Anyone have any solutions?
Click to expand...
Click to collapse
does anyone know how to fix the device offline error whenever i try in input the first command?
Bump
Sent from my VS980 4G using XDA Premium 4 mobile app

Use adb, no PC or root required!

Hey guys i stumbled on this today and thought I would share. I always found having adb installed on my rooted phone to be handy when it came to installing things on my FireCube. Turns out a rooted phone is not required. I was able to connect to my FireCube wirelessly using "adb connect". You only need to install Termux from the app store and copy and paste this if you can, then hit enter. Or click the link then copy it there.
apt update && apt install wget && wget https://github.com/MasterDevX/Termux-ADB/raw/master/InstallTools.sh && bash InstallTools.sh
This may be old news but I find it impressive we can have adb on our phones. It most likely works with most phones I have a Pixel 3a.
Pretty great
vquennehen said:
Pretty great
Click to expand...
Click to collapse
I thought this was amazing because I thought you needed root to get adb on your phone.
I found out that if install this then connect to a PC with a USB cable, open adb on the pc, type 'tcpip 5555'. You can then disconnect it, open Termux, type adb connect "your phone ip" From there you can use adb on your phone with your phone!...........Mind Blown. Android 10 no root
No one cares but I thought I'd share. It will always work until you restart your phone. Then you need to do the pc again if you want to use it again. Why not just use the pc for adb while you have it connected, you ask?.......I don't know, lol. I guess I like to do things that were not intended. I miss Root
Good stuff here. I have always just used osm0sis's adb fastboot enabler/magisk module. I've unlocked several bootloaders using that and terminal emulator and a otg cable. $5 on eBay is what I paid for mine.. (edit)
Does it still allow you to sudo -or- su and run command as root or no? I tried a while back to install fastboot and adb from termux using their directions from the app and I couldn't get it to work but that's been a while. If you ever need a quick fix and can't get to your laptop or whatever a quick search in magisk manager will bring up the adb fastboot module created by Surge and Osm0sis. Take like 2 secs to install reboot and you have adb and fastboot. Just do "su" for root though and not sudo. su (enter) then fastboot boot recovery.img or whatever you want to do. Works like a charm. I'm going to go venture in to this now here and tinker a bit. Thanks for sharing your find.
For some reason it won't load.

Categories

Resources