Moto 360 (2nd Gen) Cant install Apps through ADB. - Android Q&A, Help & Troubleshooting

I have been attempting to find compatible apps that are intended only to work on Android Phones and Install them on the android wear device. I recently Have came across a Moto 360 2nd Gen. and a Samsung Galaxy S4. With this setup I am not able to install any apps. What I Do is I forward ADB to the watch with
Code:
adb forward tcp:4444 localabstract:/adb-hub
and then I connect to it with
Code:
adb connect localhost:4444
. Now to run a command I usually use
Code:
adb -e <command>
. Now with my setup when I run the command (for example)
Code:
adb -e install myapp.apk
it just hangs on an empty line, I cant type and the only way to stop it is to Ctrl+C . I let it sit for about 2 hours (the app I was trying at the time was 12.81MB) and Nothing changed. I read somewhere that it took them about 10 minutes to install an app to the watch through Bluetooth, but they claimed (Did not work for me) that if you install and app called "Task Manager" and pressed "Close all apps" it would almost instantly install the apps. If more info is need I can provide it.

Related

[Q]Major issues with rooting my prime

So i have been trying to root my tprime for about a couple days now and i really need some help. Im trying to use Vipers tool (option 1), however every time i try to use it it just gets stuck on "daemon started successfully". Every now and then the script will flip out and tell me that it isnt connected, but that is pretty rare. I'm on 9.4.2.15, have debugging checked, no lockscreen (saw it helps somewhere), device manager recognizes it as "asus transformer prime ADB interface". I have tried 2 different scripts and restarted both my tablet and computer (windows 7 x64) several times. I am at a total loss about what to do next. Any help would be great =).
Also i have deleted splashtop from my computer and made sure that and asussync are not running on my tablet
lotsofllamas said:
So i have been trying to root my tprime for about a couple days now and i really need some help. Im trying to use Vipers tool (option 1), however every time i try to use it it just gets stuck on "daemon started successfully". Every now and then the script will flip out and tell me that it isnt connected, but that is pretty rare. I'm on 9.4.2.15, have debugging checked, no lockscreen (saw it helps somewhere), device manager recognizes it as "asus transformer prime ADB interface". I have tried 2 different scripts and restarted both my tablet and computer (windows 7 x64) several times. I am at a total loss about what to do next. Any help would be great =).
Also i have deleted splashtop from my computer and made sure that and asussync are not running on my tablet
Click to expand...
Click to collapse
Update your ADB drivers in device manager with the following
http://forum.xda-developers.com/showthread.php?t=1426502
Make sure USB Debugging is enabled within your TFP's settings (Developer options)
If that does not work then you have done something wrong.
Have a nice day
that didnt work >< but i have no idea where i couldve done something wrong...especially since i have had to re-do most steps anyway
lotsofllamas said:
that didnt work >< but i have no idea where i couldve done something wrong...especially since i have had to re-do most steps anyway
Click to expand...
Click to collapse
Well if you really want this, I would suggest the following:
We want to verify that your devices is correctly connect with ADB,(assuming you dont have adb set up) so lets set up Android SDK (which is good to do anyway).
http://developer.android.com/sdk/index.html
Download the .exe. Run it. It should create a folder in a location of your choosing, named something like "android-sdk". Browse to that folder, then to the 'tools' sub folder and run the SDK manager, install packages.
Next open the Command Prompt.
For example sake, lets say the location of your AndroidSDK is in the path
Code:
C://users/mike/android-sdk-win/
(Not sure what the sdk folder is actually called)
In the command prompt, enter
Code:
cd /users/mike/android-sdk-win/tools
(again replacing the location and name with the correct ones)
This will change the cmd location to the tools folder.
Then enter
Code:
adb devices
It will then list a device if one exists, if not then your adb drivers are probably not installed correctly.
If you need me to clear anything up, let me know
you were right i wasnt connected, im not quite sure how im doing anything wrong
installed the drives said to
unzipped
went into device manager -update driver software -browse -lemme pick -have disk-android_winusb -ok -comes up as ADB interface -next -finishes installing
try to run viperMOD PrimeTime v4.5 (option 1)
stalls on daemon started successfully
i figure if i go into as much detail as possible maybe this can get solved =(
lotsofllamas said:
you were right i wasnt connected, im not quite sure how im doing anything wrong
installed the drives said to
unzipped
went into device manager -update driver software -browse -lemme pick -have disk-android_winusb -ok -comes up as ADB interface -next -finishes installing
try to run viperMOD PrimeTime v4.5 (option 1)
stalls on daemon started successfully
i figure if i go into as much detail as possible maybe this can get solved =(
Click to expand...
Click to collapse
Hmm, I am really not sure. Sounds like you have done everything right.
adb devices is showing no devices which means viperMOD will not work.
When you plug the prime into your computer, on your prime,go to the notification bar and hit on the usb notification (not pc sync, the usb one), and when the settings menu opens up, which box is checked? MTP or PTP? if ones not working, try the other
if all else fails,
try it on another computer maybe?
lotsofllamas said:
you were right i wasnt connected, im not quite sure how im doing anything wrong
installed the drives said to
unzipped
went into device manager -update driver software -browse -lemme pick -have disk-android_winusb -ok -comes up as ADB interface -next -finishes installing
try to run viperMOD PrimeTime v4.5 (option 1)
stalls on daemon started successfully
i figure if i go into as much detail as possible maybe this can get solved =(
Click to expand...
Click to collapse
I rooted last night on latest version of primetime. I used a very old computer to do it. I had it stall on daemon started successfully at first also. I just unplugged the prime connection to PC and plugged it in again. then restarted the primetime program. worked for me. seems like everything you did is right. I guess sometimes the program acts funny. try to run and if it stalls just unplug connection to PC. close out app. then plug back up. open program and try again. it'll catch. I notice it'll stall if you keep trying to root after repeated ffailed attempts. close out the exe. then try again.
demandarin said:
I rooted last night on latest version of primetime. I used a very old computer to do it. I had it stall on daemon started successfully at first also. I just unplugged the prime connection to PC and plugged it in again. then restarted the primetime program. worked for me. seems like everything you did is right. I guess sometimes the program acts funny. try to run and if it stalls just unplug connection to PC. close out app. then plug back up. open program and try again. it'll catch. I notice it'll stall if you keep trying to root after repeated ffailed attempts. close out the exe. then try again.
Click to expand...
Click to collapse
It has nothing to do with the Prime time. As he has said, he got the android sdk setup and confirmed that "adb devices" shows no device, which lends itself to his device or drivers not being installed correctly.
Again, nothing to do with vipermod
everything to do with how he is connected (and i think he tried 'unplugging and replugging')
-------------------------------------
Lets Try this. The following may look intimidating but its very straight forward and after its done you will be more adept at adb and everything else (and hopefully be rooted)
1) Start=> Right Click "My Computer" => Properties => Advance System Settings => Advanced Tab=> Environmental Variables
---In the top box, there should be a "PATH" variable, if so hit edit and go to the end of whatever is there (make sure there is a ';' after whatever is there) and type the path to your android SDK tools folder (same folder you browsed to before in cmd)
My PATH Field looks like this
Code:
C:\Users\Mike\Downloads\android-sdk_r16-windows\android-sdk-windows\platform-tools\; C:\Program Files\Java\jre7\bin
(I also have java linked, this is okay if you do not)
If there is no PATH, just hit 'new'
The above allows you to, from command prompt, type "adb" from anywhere (ie, you dont have to be in the sdk folder which is nice)
EDIT: FLAW: the following app required root womp. I guess keep trying with the USB{
-Go to Device Manager, Uninstall Your TFP, before hitting refresh go to add new devices and select the drivers and what not.
-I will continue to try to think of an alternate method.
}
2)Download and Install this on your prime (NOTE THIS STEP REQUIRES BOTH PRIME AND PC TO BE ON SAME NETWORK)
-This method is ADB over wireless, so you dont need USB to be connected (infact just unplug it for this)
https://market.android.com/details?...251bGwsMSwyLDEsInNpaXIuZXMuYWRiV2lyZWxlc3MiXQ..
Open the app and enable it. Note the "IP: port"
type in your command prompt (again if you did step 1, you can do this from anywhere)
Code:
adb connect <yourip:port>
your ip and port should be listed in that app
=> after that, try
Code:
adb devices
It should be there! this allowed you to bypass usb issues. I dont think you can use vipermod, but there is a more manual method we can use
3) Memphroid Root
(information taken from link below)
http://forum.xda-developers.com/showthread.php?t=1461736
memphroid binary
su binary
save both those files somewhere.. for example sake, make it your desktop in a folder called 'memphroid'
Open command prompt and change to the folder memphroid on your desktop
Code:
cd Desktop/memphroid
(the above assumes command prompt defaults at c:\Users\<yourname>\. if not just type in "dir" to get a list of directories that you can cd to)
you are now in the memphroid folder
assuming you did step 2 correct, you should have already connected with "adb connect"
now enter the following in cmd
Code:
adb push mempodroid /data/local
adb push su /data/local
adb shell
One line at a time, the first 2 push the files to the correct locations, the third one puts you into the 'shell' (basically terminal) of your prime (you should see a # now before where you type)
Then enter
Code:
chmod 777 /data/local/mempodroid
/data/local/mempodroid 0xd9ec 0xaf47 sh
Copy all of that and just paste it at once (i think its both at once, not one line at a time)
then type
Code:
mount -o remount,rw -t ext4 /dev/block/mmcblk0p1 /system
And then here is the rest from that thread. I would just do all of the following except the first two lines starting with 'rm' because you havent rooted before
** IF you have previously rooted your Prime, run the following two commands. They may throw an error that the file a file was not found.
rm /system/bin/su
rm /system/xbin/su
cat /data/local/su > /system/xbin/su
chown 0.0 /system/xbin/su
chmod 06755 /system/xbin/su
rm /data/local/mempodroid
rm /data/local/su
exit
exit
adb reboot
After your Transformer Prime comes up, install Superuser from android market.
Click to expand...
Click to collapse
look to that thread linked for reference. if you neeed anything clarified or help, just post here. Please read my post carefully, following the step. I tried to be as clear as possible. I have never done the memphroid root before but it looks easy enough
Please hit 'Thanks' button, as I have taken the time to help
Still not able to get root...just tried Debugfs automated root tool and it stalled at "daemon started successfully" im seriously stumped here...

Juice Receiver

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!

How to grab URL ota update of any android device??

Sent from my AO5510 using XDA Free mobile app
Okay, I know this is a thread with zero responses and I'm resurrecting it, but when searching for how to grab OTA files/URLs on XDA this is one of the first threads to pop-up and so that's why I'm replying here.
Prequisites:
Phone that has not finished downloading the update (pause it now if it's downloading already!)
Computer with ADB installed
USB Cable that works with your computer and phone
Text editor with a find function
On Linux-based OSes: (for Windows, the command I use should be enough of a hint)
Enable USB Debugging on your phone
Connect your phone to your computer via the USB cable
Check for System updates and let the phone start downloading the update... pause it as soon as it starts downloading
Make sure you phone is on AND unlocked if it has a PIN/Pattern/Thumbprint Lock
Now we're going to run a command that continues to run until you stop it
Open a terminal and run
Code:
run sudo adb shell logcat -b all > logcat.txt
Note: sudo may not be required... depending on your Linux Distro... for Fedora it is required
Now, the logcat.txt file will continue to get larger while the command runs as more logs are dumped to it, so inside the terminal window, press Ctrl + C to kill the command
Open logcat.txt in your favorite text editor and Ctrl + F for .zip files. When you find one... it should be fairly obvious if it's the system update or not
Here's an example of what mine looks like (I've bolded clues & underlined the OTA URL):
Code:
02-27 22:20:44.270 3807 19571 I [B]system_update[/B]: [-533462485,0,0,[U][url]https://android.googleapis.com/packages/ota-api/razer_aura_cheryl2/e2152a2c966d6c0950ae58c5360bdf0d49f949a0[/url][B].zip[/U][/B]]
As always, any feedback is welcome!

[GUIDE] Uninstall any application with single ADB command ROOTLESS

I've had a Motorola G4 Amazon Prime edition for sometime now and I was easily able to hide the package that displayed the lock screen ads (com.amazon.phoenix) soon after purchase. Unfortunately, when the Nougat update came rolling around, that hack no longer did the trick. So I spent a couple of hours searching through docs and trying different commands, in doing so I found a way to completely disable any and all packages installed on any Android device, system or carrier/manufacturer bloatware.
**Step by Step**
1. Install USB drivers for your Device
2. Download and Install ADB tools
3. Enable[ Developer Options](http://wccftech.com/enable-developer-options-android-nougat/) and [USB Debugging](https://technosamigos.com/enable-usb-debugging-on-android-nougat-phones/)
4. Find a good USB cable, plug it into your computer and then to your device. When the pop-up appears asking you to authorize the device, allow it.
5. Open a command prompt (cmd in windows) and type:
adb devices
6. This should return the ID of your device. If not, please go back and retrace your steps.
7. Now type:
adb shell
8. Use the following commands to find the apps you want to disable (replace 'amazon' with the manufacturer, i.e. 'samsung')
adb shell cmd package list packages | grep 'amazon
9. This should give you a new prompt, something to the effect of (device-model):/ - here type the following:
pm uninstall -k --user 0 <name of package>
This should return 'Success' at which point the package has been removed!
This has been tried on about half a dozen devices and it works on every single one, including the LG G6, Samsung S8, Google Pixel (Removed System Applications!)
Hope this helps folks out there that are looking to get as clean of an Android experience as possible, good luck!
And how to revert a single package removed with this method?
Please don't say factory reset. I mean, the package is there in the system partition. How I make it available to the user again?
Replying to my self and to the history. Xda user Vordx, found a proper way.
"adb shell cmd package install-existing <package name>"

Apps doesn't sync to my moto360

It just makes me crazy.i install apps on phone but most of them doesn't sync to my watch.I used reset factory at the beginning it syncs all of my apps but they aren't in the menu just half of them or less
Please help me.
Hack - Sideload latest google play services
Hello ,
First question...this subforum is for moto 360 second generation (that supports wear os 2.1, and shouldn't have this issue). If you have the first gen, then move the thread to the correct subforum( maybe an admin can do it).
I had the same issue with my LG G Watch (Android wear 1.5 version). The problem is the old play services.
Firstly, you need to enable developer options on the watch(As any device with android , you will need to go into Settings > About -> and tap Build number for 7 times. After that you will see in settings Developer options. In there enable adb debugging and Debug over Bluetooth.
Secondly, enable from Wear OS app on your phone click Advanced Settings(Scroll at the bottom of the page) and again at the bottom enable Debugging over Bluetooth.
Now connect the phone to the PC , and make sure you have ADB on it, for the next commands.
I've used PowerShell on Windows:
Code:
.\adb.exe forward tcp:4444 localabstract:/adb-hub
.\adb.exe connect 127.0.0.1:4444
Next download the latest apk for Play services (via apkmirror..or a trusty web page)
Google Play services (Wear OS) 17.4.55 for example, and add it in the same folder with adb.exe. Rename it in something short...like googleplayservices.apk.
Push the file to watch, with the command:
Code:
.\adb.exe -s 127.0.0.1:4444 push googleplayservices.apk /sdcard
After it is finished ( It will take 5-10 Minutes). Install procedure, it will take ~10 minutes.
Code:
.\adb.exe -s 127.0.0.1:4444 shell
pm install -r -d -l /sdcard/googleplayservices.apk
The watch it will get disconnected after the install is finished. Go in the Wear os app...and try to see if the phone will connect with the watch. If not, restart the watch(warning !!!to not be mistaken with wipe and reset). And wait with the wear os app open. After connection has been made, Hit resync apps from wear os app, and be patient.
Ali_bakhtiari said:
It just makes me crazy.i install apps on phone but most of them doesn't sync to my watch.I used reset factory at the beginning it syncs all of my apps but they aren't in the menu just half of them or less
Please help me.
Click to expand...
Click to collapse

Categories

Resources