Showing posts with label ADB.. Show all posts
Showing posts with label ADB.. Show all posts

Tuesday, 12 July 2016

Can't get file onto HTC One M9 because I don't have adb. How?



I have an answer to this. I had the problem, then I found the solution and now I'm sharing it:

Problem: I tried to put SuperSU on my M9 with CM-13 because I thought I needed root (you don't, under developer options there is the ability to turn on root essentially). So I flashed SuperSU from an apk and then it auto-updated itself then rebooted and got in a start up loop! Now I couldn't access the phone via adb, I'm not sure why. I think USB Debugging was off, but I'm not sure. AND I had not installed SuperSU from a zip so I didn't have that file laying around! So I went and got the latest SuperSU which I heard would work (it did) here: http://download.chainfire.eu/969/SuperSU/ THEN....how do I get it on my phone? I mean, who has a micro-SD reader laying around...not me today.

I DID have fastboot working but not adb. SO....I went into my phone and launched recovery mode then I chose this new thing called "adb sideload." That turns ON MTP so your phone comes up technically on your PC via USB but it doesn't show under my computer. But then I was able to go to my command prompt and type "adb-killserver" then "adb sideload NewSuperSU.zip" and it loaded!!! And I could then boot in!

Now I'm sure I shouldn't have SuperSU running but at least now I can put all the needed binarys (like CM and gApps to get started if I needed to from scratch) on !!!

So it works now.



Sunday, 3 July 2016

Moto 360 (2nd Gen) Cant install Apps through ADB.



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

Code:


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.