[APP][ROOT] WearToolbox V1.54 (16-04-2016)

Diechel

Senior Member
Feb 10, 2009
1,252
2,232
143
Somewhere
DISCLAIMER:
I'm not responsible for damage to your phone or watch.
You are using this app at your own responsibility


WearToolbox was just an idea to make life easier.
With WearToolbox you can connect from your phone to your watch through adb, with this it's possible to send commands or sideload apps etc. (see features).
For now design doesn't matter for me, functionality does. Design will be better when app is in a further stage.
When enough people have tested it and provided me feedback, it will be released in the Play Store for easier updating.

The app is in DEVELOPMENT and TEST stage and can have BUGS.

Tested on LG Watch R with Android Wear 5.1.1 and LG G2 5.0.2

Have fun with it and let me know if it works or not!

FEATURES
- Automatic installation of necessary binaries (adb -> /system/bin/)
- Automatic connection
- Reboot (system, recovery, bootloader)
- Sideload apps (/sdcard/WearToolbox/sideload/)
- Uninstall apps
- Push files to /sdcard/
- Send adb commands (adb command)
- Send shell commands (adb shell command)
- ADB and shell command history
- Script parser for own created scripts

TODO:
- Make a nicer UI

IDEAS:
- Pull files
- ADB filebrowser

REQUIREMENTS
- Enabled debug and bluetooth debug on android watch, developer options (youtube)
- Enabled debug on phone, developer options
- Enabled debug in Android Wear app, under settings
- Rooted phone

FAQ:
Q: How to use root with shell:
A:
Code:
"su -c '[COMMAND]'"
Snippets:
Code:
"su -c 'echo 85 > /sys/class/timed_output/vibrator/amp'"
Code:
"su -c 'echo 120 > /sys/class/timed_output/vibrator/driving_ms'"
Code:
wm density 200
Q: How to sideload apps:
A: Place apk in the folder /sdcard/WearToolbox/sideload/, restart WearToolbox, choose right apk, click sideload, wait a long time :)

Q: How to use scripts:
A: Make for example a dummy.txt file in /sdcard/WearToolbox/scripts/ with shell commands in it. Each command on a newline. Save it, restart WearToolbox, test it.

Example (vibrate.txt):
Code:
cat /sys/class/timed_output/vibrator/amp
cat /sys/class/timed_output/vibrator/driving_ms
"su -c 'echo 85 > /sys/class/timed_output/vibrator/amp'"
"su -c 'echo 120 > /sys/class/timed_output/vibrator/driving_ms'"
cat /sys/class/timed_output/vibrator/amp
cat /sys/class/timed_output/vibrator/driving_ms
DOWNLOAD
https://play.google.com/apps/testing/com.diechel.xda.weartoolbox
 
Last edited:

Rennat

Senior Member
Oct 18, 2008
123
9
0
I might go ahead and try this. Having something like this would be very very useful. (fyi, I believe you initial change log date has the wrong month. Unless it is June 31st already)
 
  • Like
Reactions: Diechel

Diechel

Senior Member
Feb 10, 2009
1,252
2,232
143
Somewhere
I might go ahead and try this. Having something like this would be very very useful. (fyi, I believe you initial change log date has the wrong month. Unless it is June 31st already)
Haha yes youre right about the changelog :p Will change.

Let me know if it works and what you think about it.
What features would you like etc etc.
 

kashortiexda

Senior Member
Jan 12, 2011
1,367
875
143
stuck on "Checking Connection" for me Sammy 5.1.1 S6 Edge (arm64) and LGWR 5.1.1

EDIT - seems to download binaries every time I open the app, still won't connect - perhaps something to do with arm64 architechture ???

EDIT2 - in Android Wear Manager bluetooth debugging ON, it says HOST disconnected, TARGET connected
 
Last edited:
  • Like
Reactions: Diechel

Diechel

Senior Member
Feb 10, 2009
1,252
2,232
143
Somewhere
stuck on "Checking Connection" for me Sammy 5.1.1 S6 Edge (arm64) and LGWR 5.1.1

EDIT - seems to download binaries every time I open the app, still won't connect - perhaps something to do with arm64 architechture ???

EDIT2 - in Android Wear Manager bluetooth debugging ON, it says HOST disconnected, TARGET connected
- Can you check if the files 'adb' and 'fastboot' are present in /system/bin/
- What is there permission? should be 755
- Are the files 'adb' and 'fastboot' on your root of your /sdcard/
- Can you type 'adb' and 'fastboot' in terminal and post output
- Can you type 'mount -o remount, rw /system' in terminal and post output

For me HOST and TARGET are connected in Android Wear App
 
Last edited:

Diechel

Senior Member
Feb 10, 2009
1,252
2,232
143
Somewhere
Okay copied adb and fastbook to /system/bin and 755'd them.View attachment 3343013
i see something weird

Code:
localhost:4444:4444
should be

Code:
localhost:4444
Will look if i can find something.
Also wondering why copying didnt work, was searching all over the internet how to correctly remount /system


My output is as follows, see attachment. Of course a newer version but nothing changed to adb init
 

Attachments

Last edited:

Diechel

Senior Member
Feb 10, 2009
1,252
2,232
143
Somewhere
Yip got all that but no adb devices and the localhost:4444:4444 is clearly wrong
Would a logcat help
I dont know if logcat helps, what you can try is manually connect with terminal on your phone.

Code:
su
adb kill-server
setprop service.adb.tcp.port 5555
stop adbd
start adbd
adb forward tcp:4444 localabstract:/adb-hub
adb connect localhost:4444
adb devices
Each line need to be filled in, not all together.

And try build 21 :)
 

Diechel

Senior Member
Feb 10, 2009
1,252
2,232
143
Somewhere
@Diechel I tried sideloading es file explorer apk ...it says done but nothing on watch.
Have you successfully sideloaded any apks ?
Yes i had, will try again.
It takes some time for the watch to install, will try now and report back!

Edit:
From what i see now is that the message done comes too fast.
Bluetooth is slow and is still transferring after the done message, can see that in my top bar.

Seems not working indeed, will check :) thanks

EDIT:
It got installed after a while :)


Good that it is working! Will see how i can report in log
 
Last edited: