Related
*****To all newebies(as quite a few new people are at this forum because they got their first device! (TFP)) any anyone who wants to learn, let’s get educated about our devices!*****
ADB (Android Debug Bridge) is an extremely useful tool that WILL help you in all of your customizing needs! You may see the need to use ADB commands to help root your device, change ROMS, or send your device a fix. Without the knowledge here, you could easily be left in the dark.
ADB is a necessity for developers and general consumers alike. Knowing this tool is a great advantage to you to help your device at the best quality possible.
Installation
Download Google SDK
Choose the correct operating system and install!
The installation REQUIRES Java JDK which can be downloaded from Here
If during installation it asks for JDK (and you have installed it) Press the back button and next again, sometimes that will fix the error.
**Note** The SDK installs to C:\Program Files (x86)\Android\android-sdk standard, chose any directory for you
Start the SDK and immediately, you will notice a few checkboxes. For the standard user, just make sure Android SDK Platform-tools (under Tools) and Google USB Driver package (under Extras) – the drivers are always good to have, latest ADB drviers.
Click install 2 packages and wait. Once installed go to your installation directory and find the platform-tools folder. This directory is your ADB and will be your lifeline!
**Do you want ADB accessible through any command prompt directory?**
You are in luck. (For Windows 7)
Right click on My Computer > Properties > Advanced System Settings >Advanced (Tab) > Environment Variables > Under System Variables scroll and dbl click on Path
TO THE END of the Variable value line add
Code:
;C:\Program Files (x86)\Android\android-sdk\platform-tools
Or whatever the directory you installed to + platform-tools
Open CMD and type ADB, if you did it right, you will see proper ADB jargon regardless if you are in the correct directory or not!
Congratulations! ADB is installed!
**Make sure your device is using the latest drivers (that you just downloaded) or other ADB drivers provided by ASUS to access ADB. When connected in Debugging mode, device manager will have: ASUS Android Composite ADB Interface**
ADB Usage
**I will be talking mainly about commands/arguments that the general end-user may use or come across**
**Make sure your tablet is in USB Debugging Mode to be able to connect to ADB (Settings > Applications)**
ADB Devices : This command shows all connected android devices that will respond to an ADB command. It is useful for making sure your device is connected.
ADB Connect [IPORT] : This command will connect to your device over personal WIFI connection if your device is setup for ADB over WIFI (Requires root and NOT recommended)
ADB Push [local_file] [remote_file] : This command will push any local file to the device (only if the device is Read/Writable. Stock /system/ folders are only Readable.
ADB Pull [Remote_file or Directory] [Save file or Directory] : This command take files or an entire directory and save it to your desired location. This command only works when directory is read/Writable.
ADB Shell [command] : This command will perform most UNIX commands on the device. Without a command, you can enter several shell commands before you ‘exit’. Most will not work unless SU is applied (# instead of $). Must be rooted for SU. Only play with these commands if they are known by you or exactly copied from instructions.
ADB Logcat [ > file.txt ] : This command will display (or save per > file.txt) a log of what’s happening on the device. If you are receiving errors, turn on logcat, reproduce error, turn off, and send logcat to the developer.
ADB Install [-r][-s] [local_apk] : This command force installs (or reinstalls –r or –s installs on SD-Card) any APK provided.
ADB Uninstall [-k] [APK_Name] : This command uninstalls any APK Name provided (app.apk) and will even keep cache and other data with the –k tag.
ADB start-server : This command will start the server if the server is off or killed. (Normally server will auto-start when ADB command is used)
ADB kill-server : This command will close ADB server. Useful if ADB server is acting up or not connecting to any devices.
ADB remount : This command will mounts the /system/ partition Read/Writable pending the device is allow to. Stock TFP will NOT.
ADB root : This command will restart ADB with root permissions if the build allows for it. Stock TFP will NOT.
ADB usb : This command will restart ADB on device to use USB connection for ADB communication.
ADB tcpip [port] : This command will restart ADB on device to use TCPIP connection for ADB. Standard port is 5555. Again, this connect not recommended for file transfers.
ADB reboot [recovery/bootloader] : This command will restart your device. If either of the two options are given, the device will boot into that mode (sadly TFP does not support the two options.. yet)
ADB Tips/Tricks
When following ADB instructions, follow them WORD-BY-WORD in the EXACT ORDER GIVEN. If copy and pasting their commands (one line at a time) makes it easier, then do so.
If you have root access, do not mess around in ADB shell unless you know what you are doing
Connecting over IP can be beneficial for you for quick ADB access, but for file transfers, speed is slow and you ALWAYS risk corruption (check the md5!) One bad file and you have boot-loops!
ADB Logcat is an amazing command. If anything is wrong with your device, 9/10 you can see it in logcat. If you can find the exact problem, fixes can happen much easier. USE LOGCAT TO YOUR ADVANTAGE!
ADB reboot can be a quick reboot, sometimes you don’t feel like waiting!
Use the environmental variables! It helps exponentially, and keeps from having multiple instances of ADB running.
When multiple instances of ADB are running (different directories) ADB can get messed up! (ADB not up-to-date restarts, and connect problems). ASUS Sync service has and ADB setup. Turn it off if you are not using it. Try to stick to only ONE instance of ADB
Eventually, we may have root access in our recovery kernel. Then and only then can our devices be truly customizable!
The GUIDE is not finite. Please post anything you feel should be added/corrected to the guide. Please take notice from this, as the understanding of these simple commands could help save your device(s)!
Thanks and 5 star would make me feel good inside too!
Wow... Nice post. Lots of time went into this lol. Thanks can't give the five stars in the app though:-(
Sent from my Transformer Prime TF201 using xda premium
The link in step #1 is whack - I think you want tis? http://developer.android.com/sdk/index.html
Lock-N-Load said:
The link in step #1 is whack - I think you want tis? http://developer.android.com/sdk/index.html
Click to expand...
Click to collapse
hmm thats what was in there, i re-saved and it works now ... maybe xda error
thanks tho!
biggem001 said:
hmm thats what was in there, i re-saved and it works now ... maybe xda error
thanks tho!
Click to expand...
Click to collapse
before you fixed it, it was trying to use this http://http://developer.android.com/sdk/index.html"
note the extra parens at the end and the double http call
i noticed that too, all i did was re-save and it worked. how weird.
Thanks! I've seen a few tutorials on this but this one was by far the easiest to follow and best organized. Short and sweet. Worked on my desktop great, I've never managed to install it right D:
Re posting to give 5 stars. Thanks again OP
Quick question: Is it normal for PTP mode to be required for adb to work? Because as soon as I switch to MTP I can no longer use adb.
cmat1120 said:
Quick question: Is it normal for PTP mode to be required for adb to work? Because as soon as I switch to MTP I can no longer use adb.
Click to expand...
Click to collapse
i can do either at once.. thats weird
GPS, Wifi and BT Testing
Could someone write some basic tutorials on how to verify/test GPS, wifi and BT funtions? For those of us who are new to Android it would helpful in verifying which problems are truly present. Also perhaps show how to find the serial number - for example: some don't know you have to click status - because there are a some erroneous posts out there. There may be users who assume something works or doesn't work, based on limited knowledge and these inaccurate findings only serve to muddy up the works.
There's a lot of animosity about the influx of newbies (and trust me, as a newbie it doesn't feel good). I think the first step is to educate. If some of these troubleshooting steps are laid out, more people can contribute in an intelligent way.
I thought this would be a good thread for the Guides thread, but it is closed and I cannot send PMs.
Thanks - Great Info
One thing you can add for all us amateurs is how to use ADB to install off market apps, stuff like that. Things the non-power user can benefit from. Some simple command line structure would be great.
theandies said:
One thing you can add for all us amateurs is how to use ADB to install off market apps, stuff like that. Things the non-power user can benefit from. Some simple command line structure would be great.
Click to expand...
Click to collapse
i wont add it to the guide, because adb install is pretty self explanatory but this
make sure you can install non-market apps
Code:
adb install app.apk
jonalisa said:
Could someone write some basic tutorials on how to verify/test GPS, wifi and BT funtions? For those of us who are new to Android it would helpful in verifying which problems are truly present. Also perhaps show how to find the serial number - for example: some don't know you have to click status - because there are a some erroneous posts out there. There may be users who assume something works or doesn't work, based on limited knowledge and these inaccurate findings only serve to muddy up the works.
There's a lot of animosity about the influx of newbies (and trust me, as a newbie it doesn't feel good). I think the first step is to educate. If some of these troubleshooting steps are laid out, more people can contribute in an intelligent way.
I thought this would be a good thread for the Guides thread, but it is closed and I cannot send PMs.
Click to expand...
Click to collapse
for GPS, use GPS Test app on the market
for BT and wifi testing, i'll just connect my device via BT or adhoc wifi and do the testing on my PC itself, more accurate and better programs
Excellent howto, thanks
I have trouble connecting to my prime with adb. In the Win7 Device Manager the correct device shows up, no exclamation mark at all, but adb just won't see the Prime.
USB debugging mode is on, no Asus Sync software on the PC. I have no clue why ADB won't see my device.
Now many of us can really shoot ourself in the foot.
by far the best and quickest adb install/setup ever. thanks OP!
neo1738 said:
by far the best and quickest adb install/setup ever. thanks OP!
Click to expand...
Click to collapse
aw shucks!
THANKS!
biggem001 said:
ADB Devices : This command shows all connected android devices that will respond to an ADB command. It is useful for making sure your device is connected.
ADB Connect [IPORT] : This command will connect to your device over personal WIFI connection if your device is setup for ADB over WIFI (Requires root and NOT recommended)
ADB Push [local_file] [remote_file] : This command will push any local file to the device (only if the device is Read/Writable. Stock /system/ folders are only Readable.
ADB Pull [Remote_file or Directory] [Save file or Directory] : This command take files or an entire directory and save it to your desired location. This command only works when directory is read/Writable.
ADB Shell [command] : This command will perform most UNIX commands on the device. Without a command, you can enter several shell commands before you ‘exit’. Most will not work unless SU is applied (# instead of $). Must be rooted for SU. Only play with these commands if they are known by you or exactly copied from instructions.
ADB Logcat [ > file.txt ] : This command will display (or save per > file.txt) a log of what’s happening on the device. If you are receiving errors, turn on logcat, reproduce error, turn off, and send logcat to the developer.
ADB Install [-r][-s] [local_apk] : This command force installs (or reinstalls –r or –s installs on SD-Card) any APK provided.
ADB Uninstall [-k] [APK_Name] : This command uninstalls any APK Name provided (app.apk) and will even keep cache and other data with the –k tag.
Click to expand...
Click to collapse
Just a small suggestion, adb won't accept commands if they are capitalized.
For example "ADB devices" will work perfectly, but "ADB Devices" won't.
So, in order to help the newest of newbies, you might want to put the commands in lowercase in the first post.
All,
Based on some work I was already doing on another app of mine (Juice for Roku), I threw together an basic web server to run on the Nexus Q that can be used to launch packages and intents. You can download it here: http://greggreno.com/test/JuiceReceiver.apk
Steps to install:
Make sure the Nexus Q is recognized by ADB using the ADB DEVICES command. If not, look at the Running Apps thread that shows how to get the USB driver to recognize the Q.
Download the apk file (above)
Use this command to install it: "adb install JuiceReceiver.apk"
Use this command to run it: "adb shell am start -a android.intent.action.MAIN -n com.jigawattlabs.juicereceiver/.MainActivity"
The background web server service SHOULD auto start when the Q boots, so you shouldn't have to manually start the service again, unless it crashes.
When the app launches, it will show the URL of the web server running on the Q. Just go to that link and it will show you the list of currently supported commands. Since I don't have a keyboard or mouse hooked up, I auto close the front end app after 30 seconds to get it out of the way.
The /showimage and /playvideo commands don't seem to work yet because there doesn't seem to be any default player for them. The /playmusic command seems to work (you see an activity playing it), but I can't hear anything.
Please share any suggestions for how I can get the media playback working and any other commands you need. Consider this a buggy alpha release.
works for me
Nice! Didn't try too many things, but was able to launch a couple of the built in apps (settings, downloads).
greno1 said:
Please share any suggestions for how I can get the media playback working and any other commands you need. Consider this a buggy alpha release.
Click to expand...
Click to collapse
How do you uninstall if necessary???
treaklet said:
How do you uninstall if necessary???
Click to expand...
Click to collapse
Code:
adb shell pm uninstall com.jigawattlabs.juicereceiver
Juice Receiver is the way I call the Launcher on my Nexus Q, since I could not assign any key, or combination key to open the launcher I use the browser to do it. Thank you very much, other wise I'll be stucked at the adb commands for that!
Hi everyone, I got my watch 2 days ago and rooted it in the first two hours and since then keept trying different android apps on the watch and since then I managed to find a way to sideload apps without a computer and I am sharing it with you.
Note: This guide assumes you have your watch connected to your phone, your phone connected to the internet, a computer around and adb installed on the computer and some abilities of using adb commands to pull files and installing apk's and some basic linux commands like "cd".
Note 2: Links to the apps are in the 2nd post.
Note 3: List of working apps and tips in 2nd post.
Note 4: Guide to using adb from the phone and connecting the watch to a new device without a format in the 3rd post.
Here are the steps:
Install ASTRO Bluetooth Module on the phone.
Install Bluetooth file transfer on the phone.
Connect the phone to the computer and pull the ASTRO Bluetooth Module apk file from data/app.
Connect the watch to the computer (adb over bluetooth or over USB) and sideload the ASTRO Bluetooth Module you just pulled from your phone.
Open the ASTRO Bluetooth Module app on your watch and tic the OBEX FTP SERVER option.
Open the Bluetooth file transfer app on your phone and switch to the Bloueooth tab (the one with the blue Bluetooth sign).
You will see your G Watch in the Cache list, click on it.
On the list that will open click on "File Transfer Profile (FTP)" and wait for it to connect.
Now the contents of the /sdcard folder of the watch should be shown on the Bluetooth tab.
To send a file switch back to your other tab and long-press on the file you want to send and click upload.
To receive a file from your watch go to the Bluetooth tab and long-press the file you want and click Download.
In the bluetooth tab you can also fully manage your sdcard folder from your watch so you can delete, move and copy any file or folder on your watch,
Enjoy.
Also in case you want to sideload apps to your watch you first need to send them using the method above and then do this:
Install terminal Emulator on your phone and sideload it to your watch the same way you did with ASTRO Bluetooth Module above.
Sideload Minuun keyboard for wear or an other keyboard if you think you can use it.
Optional, usefull only if you have root: Install ES File Explorer on your phone and sideload it to your watch.
To install apps open Terminal Emulator on your watch and go to the folder your apk file is in using the "cd" command and then do: "pm install <appname>.apk" changing <appname> to the name of your apk file.
If you choose to install ES File Explorer you can do that much easyer by enabling root acces in it and the option to automatically install and uninstall apps.
And if you want to uninstall apps directly from your watch do this:
Open Terminal Emulator.
Issue the command: "pm list packages -3" and find the package name of the app you want to uninstall
Issue the command: "pm uninstall <packagenamehere>" replacing <packagenamehere> with the package name of the app you want to uninstall.
NOTE: Uninstalling apps using ES File Explorer does unfortunately not work because it asks if you want to uninstall the app and the buttons are not on the screen so you can't click on the "Yes" option.
Done.
Here you go guys, have fun, hope this helps someone else as much as it does help me, will also try to find a way to connect the watch to the adb daemon on the phone via bluetooth and if I manage to do that I will surely post a guide.
Resources:
Astro Bluetooth Module: https://play.google.com/store/apps/details?id=com.metago.astro.network.bluetooth
Bluetooth File Transfer: https://play.google.com/store/apps/details?id=it.medieval.blueftp
Terminal Emulator: https://play.google.com/store/apps/details?id=jackpal.androidterm
ES File Explorer: https://play.google.com/store/apps/details?id=com.estrongs.android.pop
List of working apps:
-All the ones that the above post tells you to sideload to the watch
-The apps in this thread: http://forum.xda-developers.com/android-wear/general/list-sideloaded-android-wear-apps-t2908106
-MiXplorer-better as a file explorer in my opinion because of the list view, does not have music player and text editor so you still need ES File Explorer for that, also crashes when you exit-link: http://forum.xda-developers.com/showthread.php?t=1523691
Tips:
-If an app you want to sideload uses holo theme it will most probably not work, I think wear has holo removed
Thanks to:
@EpicLPer for creating that thread of sideloaded working apps.
Someone managed to execute adb commands from the phone to the watch, look here:
http://forum.xda-developers.com/android-wear/development/adb-smartphone-to-android-wear-t2987568
Also on this thread someone managed to connect the watch to a different phone without a factory reset on an older android wear version:
http://forum.xda-developers.com/and.../app-reset-wear-client-switch-phones-t3058962
But it's not that easy anymore, that you now need to do is:
First execute the (adb shell "pm clear com.google.android.gms && reboot") command
And then after the reboot execute the (adb shell am start -a android.bluetooth.adapter.action.REQUEST_DISCOVERABLE) command to be able to connect your phone
I have also made shell scripts to do that directly on the watch using terminal emulator and will upload them soon.
Great stuff sir!
crazyeats said:
Great stuff sir!
Click to expand...
Click to collapse
Glad you enjoy it, have now added a list of working apps and tips in the 2nd post, if you test other apps and they work please post them and I will add them.
Solid! Thanks
Great any update then?
johnvuong1999 said:
Great any update then?
Click to expand...
Click to collapse
Sorry I was without a PC for a week and didn't see your message, updates on what are you asking about?
If you are asking about more apps I didn't really get more apps working (android wear is just missing too many things), only some video players but they break the app "Wear Mini Launcher" for some reason, and if you are asking about using adb via bluetooth to debug the watch from the phone that's also something I didn't get working and I did try all the ideas I had.
Root required?
owais113 said:
Root required?
Click to expand...
Click to collapse
If you would have read the whole post you would have seen that it only needs root to install apps using ES File Explorer but unfortunately after the 5.1 update the "pm install" command doesn't seem to work anymore (with or without root) it just gives a "FAILED_INVALID_URI" error.
Other news is that someone on the wear general forum actually managed to run adb over bluetooth so you can now install apps from your phone directly using adb instead (but it does require root on your phone) I will post the link in the 3rd post soon.
Ranomez said:
If you would have read the whole post you would have seen that it only needs root to install apps using ES File Explorer but unfortunately after the 5.1 update the "pm install" command doesn't seem to work anymore (with or without root) it just gives a "FAILED_INVALID_URI" error.
Other news is that someone on the wear general forum actually managed to run adb over bluetooth so you can now install apps from your phone directly using adb instead (but it does require root on your phone) I will post the link in the 3rd post soon.
Click to expand...
Click to collapse
But does the watch need to be rooted or you only need a rooted phone.
owais113 said:
But does the watch need to be rooted or you only need a rooted phone.
Click to expand...
Click to collapse
Do you need root on your watch to execute the "adb install" command command from the PC?
I have been looking how to do this for a day now with no luck. All the other applications seem to be for early Android wear versions less than 2.0 or Android 5.1.1 or less.
Option 1 (Faster)
1: Install ADB on your computer. https://www.xda-developers.com/install-adb-windows-macos-linux/
2: Enable Developer Options on your wear watch. https://forum.xda-developers.com/android-wear/development/guide-how-to-connect-adb-wifi-t3368602
3: Make sure bluetooth is off, wifi on and connected to same network as laptop.
4: Turn on debug over wifi option in developer options and wait for it to show your IP.
5: On windows, make sure platform tools are on the main drive. Ex (C
6: Copy your APK files into the same folder.
7: Inside the folder, press shift and right click. Then press "open with CMD here or powershell"
8:Type .\adb connect 192.168.0.5:5555 (use your own IP, not the ex)
9: Once connected type .\adb install facebook.apk (type in your own APK name, not the ex)
10: Wait for success, and app should be on watch
FYI some computers do not need the .\adb, just type adb
Option 2 (Slower)
* Prerequisites:
1: Computer
2: Cord to connect your phone.
Tested and works with Lineage OS Android Nougat 7.1 and Android wear 2.7 on Verizon Wear24 watch
All the credit goes to the youtuber that created the video, I'm just passing along the information.
https://www.youtube.com/watch?v=1g77uIGxvcs
http://www.mediafire.com/file/8936ojtv5axl73g/Android+Wear+Sideloader.zip
https://www.apkmirror.com/
Follow the steps listed in the Start.bat, do not run as Admin.
The APK must be loaded into the main folder, not the app folder.
Currently installed Facebook Lite, tested and works.
Opera Mini opens but force closes after a few seconds.
You may need to open the start.bat twice if it doesnt load the localhost (watch) the first time.
Just a heads up the installation transfers APKS at 51 KB/s, slow! Takes about 2 minutes for a 5mb apk.
Can this be done without the need for an Android Phone? I use an odd couple (iPhone 7 Plus with a Ticwatch E). I have access to Android via a tablet only...
agonzalez1010 said:
Can this be done without the need for an Android Phone? I use an odd couple (iPhone 7 Plus with a Ticwatch E). I have access to Android via a tablet only...
Click to expand...
Click to collapse
The first option requires a computer and the watch only!
shawndak said:
I have been looking how to do this for a day now with no luck. All the other applications seem to be for early Android wear versions less than 2.0 or Android 5.1.1 or less.
Option 1 (Faster)
1: Install ADB on your computer. https://www.xda-developers.com/install-adb-windows-macos-linux/
2: Enable Developer Options on your wear watch. https://forum.xda-developers.com/android-wear/development/guide-how-to-connect-adb-wifi-t3368602
3: Make sure bluetooth is off, wifi on and connected to same network as laptop.
4: Turn on debug over wifi option in developer options and wait for it to show your IP.
5: On windows, make sure platform tools are on the main drive. Ex (C
6: Copy your APK files into the same folder.
7: Inside the folder, press shift and right click. Then press "open with CMD here or powershell"
8:Type .\adb connect 192.168.0.5:5555 (use your own IP, not the ex)
9: Once connected type .\adb install facebook.apk (type in your own APK name, not the ex)
10: Wait for success, and app should be on watch
FYI some computers do not need the .\adb, just type adb
Option 2 (Slower)
* Prerequisites:
1: Computer
2: Cord to connect your phone.
Tested and works with Lineage OS Android Nougat 7.1 and Android wear 2.7 on Verizon Wear24 watch
All the credit goes to the youtuber that created the video, I'm just passing along the information.
https://www.youtube.com/watch?v=1g77uIGxvcs
http://www.mediafire.com/file/8936ojtv5axl73g/Android+Wear+Sideloader.zip
https://www.apkmirror.com/
Follow the steps listed in the Start.bat, do not run as Admin.
The APK must be loaded into the main folder, not the app folder.
Currently installed Facebook Lite, tested and works.
Opera Mini opens but force closes after a few seconds.
Click to expand...
Click to collapse
Thx for explanation. Any clue how i can also sideload the setting of an app to wear?
nagelo said:
Thx for explanation. Any clue how i can also sideload the setting of an app to wear?
Click to expand...
Click to collapse
No clue!
shawndak said:
You may need to open the start.bat twice if it doesnt load the localhost (watch) the first time.
Just a heads up the installation transfers APKS at 51 KB/s, slow! Takes about 2 minutes for a 5mb apk.
Click to expand...
Click to collapse
really late, but mine transferred at 555KB/s, (so close to being 6s) but yeah, pretty slow
I came across this error when following the first option. Any advice?
error: more than one device/emulator
adb: error: failed to get feature set: more than one device/emulator
- waiting for device -
error: more than one device/emulator
Another method
Hey first of all I want to say thanks for your tutorial.
I found another method for sideloading your apps to your Wear OS watch.
It's my preferred method because you need no PC.
There is this apps called Apps2Fire it's made for sideloading apps to an Amazon fire TV, but if you enter the IP address of your watch and enable ADB over Wi-Fi you can sideload all apps installed on your phone or any .apk stored at your phone directly to your watch.
For me, this is the easiest way for sideloading, and it would be cool if you can add it to your tutorial.
Tutorial:
1. Install Apps2Fire on your Phone
2. Open the app and go to Setup,
3. Enter the IP of your watch/ or tap on network and let it search for your watch
4. Tap in the upper right corner on the Upload Symbol and chose your .apk and tap on it and then on install.
5. Enjoy
How can I extract an application installed on the watch?
hotplex said:
I came across this error when following the first option. Any advice?
error: more than one device/emulator
adb: error: failed to get feature set: more than one device/emulator
- waiting for device -
error: more than one device/emulator
Click to expand...
Click to collapse
I had the same problem - it was because my AVD was still running from Android Studio. Once I closed that and ran the command again, it worked fine.
would thet be wrong adb. most don't set a path in variables on Windows they will have issues for Windows would this be better fastboot too thanks great work glad people are working on wear
---------- Post added at 02:12 PM ---------- Previous post was at 02:11 PM ----------
would thet be wrong adb. most don't set a path in variables on Windows they will have issues for Windows would this be better fastboot too thanks great work glad people are working on wear https://forum.xda-developers.com/showthread.php?t=2588979
please help! error
i tried sideloading with adb. i got the watch to connect but when i tried to install the apk i got this error:
adb: failed to install gv.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]
what am i doing wrong? please help!!! thank you
lindsay
shawndak said:
I have been looking how to do this for a day now with no luck. All the other applications seem to be for early Android wear versions less than 2.0 or Android 5.1.1 or less.
Option 1 (Faster)
1: Install ADB on your computer. https://www.xda-developers.com/install-adb-windows-macos-linux/
2: Enable Developer Options on your wear watch. https://forum.xda-developers.com/android-wear/development/guide-how-to-connect-adb-wifi-t3368602
3: Make sure bluetooth is off, wifi on and connected to same network as laptop.
4: Turn on debug over wifi option in developer options and wait for it to show your IP.
5: On windows, make sure platform tools are on the main drive. Ex (C
6: Copy your APK files into the same folder.
7: Inside the folder, press shift and right click. Then press "open with CMD here or powershell"
8:Type .\adb connect 192.168.0.5:5555 (use your own IP, not the ex)
9: Once connected type .\adb install facebook.apk (type in your own APK name, not the ex)
10: Wait for success, and app should be on watch
FYI some computers do not need the .\adb, just type adb
Option 2 (Slower)
* Prerequisites:
1: Computer
2: Cord to connect your phone.
Tested and works with Lineage OS Android Nougat 7.1 and Android wear 2.7 on Verizon Wear24 watch
All the credit goes to the youtuber that created the video, I'm just passing along the information.
https://www.youtube.com/watch?v=1g77uIGxvcs
http://www.mediafire.com/file/8936ojtv5axl73g/Android+Wear+Sideloader.zip
https://www.apkmirror.com/
Follow the steps listed in the Start.bat, do not run as Admin.
The APK must be loaded into the main folder, not the app folder.
Currently installed Facebook Lite, tested and works.
Opera Mini opens but force closes after a few seconds.
Click to expand...
Click to collapse
lindser112 said:
i tried sideloading with adb. i got the watch to connect but when i tried to install the apk i got this error:
adb: failed to install gv.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]
what am i doing wrong? please help!!! thank you
lindsay
Click to expand...
Click to collapse
Looks like you're trying to load an app with the wrong CPU architecture! Try to download a different arch cpu type of that app.
My Fossil Carlyle doesn't showing Wifi debugging in the dev. options. Any way to get sideload without cable working?
schuetzi13 said:
Hey first of all I want to say thanks for your tutorial.
I found another method for sideloading your apps to your Wear OS watch.
It's my preferred method because you need no PC.
There is this apps called Apps2Fire it's made for sideloading apps to an Amazon fire TV, but if you enter the IP address of your watch and enable ADB over Wi-Fi you can sideload all apps installed on your phone or any .apk stored at your phone directly to your watch.
For me, this is the easiest way for sideloading, and it would be cool if you can add it to your tutorial.
Tutorial:
1. Install Apps2Fire on your Phone
2. Open the app and go to Setup,
3. Enter the IP of your watch/ or tap on network and let it search for your watch
4. Tap in the upper right corner on the Upload Symbol and chose your .apk and tap on it and then on install.
5. Enjoy
Click to expand...
Click to collapse
awesome thanks, this seems to work...it says connected on the apps2fire app...i haven't tried to upload apk yet to watch..i have fossil gen4 sport..now to find some good apks to sideload lol
I've followed everything but when i do /adb devices it doesn't show anything and when i do /adb connect with the wifi ip address... it says unable to connect to the ip address i wrote
Thanks heaps. The first method worked for me on TicWatch Pro 3 Woohooo...
Does anyone know a tutorial on how to make an apk compatible to install on a watch please?
Smeeksmiley said:
I've followed everything but when i do /adb devices it doesn't show anything and when i do /adb connect with the wifi ip address... it says unable to connect to the ip address i wrote
Click to expand...
Click to collapse
no one has explained it properly on XDA it kind of sucks for newbies tbh
Step1: go to settings - system - about - tap build # 7 times
Step2: go to settings - developer settings - adb debug -adb wifi debug on
step3: download apk on computer
step4: go to the folder with the APK in it "Shift + right click" open powershell
step5: go to the wifi on your watch click on it - get the ip address (should be 192.168.x.xx)
Step6: powershell type: "adb connect 192.168.x.xx:5555" (your watch ip address + the port 5555)
step7: powershell type: "adb -e install appname.apk" (type in the app name where i wrote the app name)
Example:
C:\Users\Bob\Downloads> adb -e install Spotify.apk
Has anyone been able to get a gcam port working on their WearOS device?
I want to control my android device loaded with lineageos 8.1 remotely from my laptop from the browser. I have tried airdroid, but i am not able to use the remote control feature when i am offline, it only works over the internet, is there any fix for this? also please suggest any alternatives. I have root access using magisk.
motolora 1656565 said:
I want to control my android device loaded with lineageos 8.1 remotely from my laptop from the browser. I have tried airdroid, but i am not able to use the remote control feature when i am offline, it only works over the internet, is there any fix for this? also please suggest any alternatives. I have root access using magisk.
Click to expand...
Click to collapse
Definitely want to be using scrcpy. It uses adb as it's connection method. So if you can wifi adb to your devices you can remote control it.
If you need sound, it gets slightly more cumbersome. But sndcpy works well in tangent.
Astoras said:
So if you can wifi adb to your devices you can remote control it.
Click to expand...
Click to collapse
Please guide me how can I do this. I have enabled TCP/ip mode in developer menu.
motolora 1656565 said:
Please guide me how can I do this. I have enabled TCP/ip mode in developer menu.
Click to expand...
Click to collapse
Some phones have an option in Developer settings. It normally explicitly says wifi adb. If you don't have the option, you'll need a root app or elevated terminal to activate it.
The app is faster to use if in a normal context.
Find on on the playstore. Just search wifi adb.
Then on your computers terminal, which has adb installed properly, type "adb connect {your phone's ip address}"
Once it successfully prompts and you accept the connection on your phone you are ready to use scrcpy.
You can find tutorials on how to install both adb and scrcpy.
But the most user friendly, if on widows, is to first install a repository called Choco. Again, look up how to do so.
Then, simply type these commends in an administrative PowerShell:
choco install adb -y
choco install scrcpy -y
If all of this seems overly complicated. It is a one time setup. And all of these tools are excellent to have in the future if you are into Android and software.
After these steps are completed, rember you first have to establish an adb connection and then type scrcpy into your terminal.
Ok, Thanks a lot!!!!
motolora 1656565 said:
Ok, Thanks a lot!!!!
Click to expand...
Click to collapse
- Download scrcpy.zip
- Unzip to the dir of your choice
- On your phone: Developer settings --> Enable USB Debugging
- Connect with a cable
- Run scrcpy-noconsole.vbs
Should work (also for android 12)
If you want to use this over IP, let us know
biontx said:
- Download scrcpy.zip
- Unzip to the dir of your choice
- On your phone: Developer settings --> Enable USB Debugging
- Connect with a cable
- Run scrcpy-noconsole.vbs
Should work (also for android 12)
If you want to use this over IP, let us know
Click to expand...
Click to collapse
Oeps, the previous scrcpy.zip contains convctctytdl.exe ... you won't need this:
This is used to convert all youtube files (movie, list, etc...) to mp3
You can delete this file
This is the windows x64 version
You don't need internet as your phone is connected with a cable
Thank you everyone for your help!!!
Scrcpy is successfully installed and is working fine!!!
I took help from this forum and the official GitHub repo https://github.com/Genymobile/scrcpy
Thanks everyone
i have another request, please help!
capture mobile display as a "live video file"