Hi, I've googled and searched the forum for this and can't find anything that works for the Desire HD.
The phone comes with an option to use the PC's internet connection through the usb interface. When I enable this on the phone the usb0 interface pops up on the computer. I've tried various bridging and natting alternatives, but everything ends up with the phone complaining that htc sync isn't set up right. I've tried askimng HTC what the phone expects but they just say that they don't support Linux. Grrr!
Anybody succeeded in getting this working or can say exactly what the phone expects to see on the pc side?
I thought it was the other way around (PC using the phone's connection) ?
Edit: Link.
Both are possible. PC using phone's connection is called "Tethering" and Phone using PC's connection is called "Internet passthrough".
There are recipes for foolong a "Nexus One" into reversing the tethering solution so that it connects to the internet through the PC, but the HD seems to have blocked this.
We have a Wifi-Free home, so this really is the only way of connecting the phone to the internet without using valuable 3G data traffic.
Apologies, I didn't know.
I took a look around, maybe you've tried this already but here it is (scroll down to post #53). Good luck!
Thanks. Looks promising. From Post #53 it looks as if I should be able to do this from adb, although earlier posts in the thread mention busybox and root, neither of which I have on the phone. Have in any case not used adb to connect before so may ask for help here if I can't find out how to do it.
Thanks very much for the suggestion.
For root you can search for the app "Visionary" in the market, I'm not sure if it installs busybox too though (but you can find that in the market as well).
Also make sure you have USB Debugging enabled in the settings.
You're most probably going to need the ADB drivers as well, but i think they're shipped with HTC Sync. Anyone correct me if I'm wrong.
Thanks, now have adb access (with root . Next problem is that my linux box always assigns an APIPA (zeroconf) address to the usb interface. Can't remove it or specify a static IP for the next connection.
Unfortunately I can't help you or suggest anything else for the time being. I'll be switching to Archlinux tonight (for the 150th time) and will hopefully have my device within this week. So if you don't figure it out by then, I'll give it a shot.
I think it can be done quite easily using the Firestarter application. Too busy playing Black Ops to confirm that the method I have in mind works but I will try it out later and if I'm right I will post a how to.
I'd be very interested to hear how you get on phunkycow. The APIPA problem seems to be debian sid related. On my wife's Ubuntu laptop I can configure both interfaces and ping between the phone and the pc. Didn't have time to figure out routing and dns.
I now have this working on Ubuntu. Debian still gives me a zeroconf address on the pc's usb interface.
Next problem is that to script this as suggested in post #53 I think I need a different su or sudo on the phone as sudo and su -c both give me permission denied.
Any other ways of running remote commands as root using adb?
Working perfectly on Ubuntu when I run through the commands interactively. Next job is to script it. The only possible caveat is that I seem to have to run the adb commands as root, however a quick test indicates that this is probably doable just by piping each adb shell command to su.
Will post back with the findings and the script (when I'm happy with it).
Piping to su doesn't work unfortunately, so I need to think again.
Any tips on scripting adb shell commands to run as root?
Another problem (after setting this up interactively) is that only some apps even attempt to connect to the internet this way.
Web browser shows error about not being able to connect first time, but then connects anyway. Ditto Google earth.
Phone update refuses to connect and asks for wifi or mobile network to be turned on.
Skype can't sign in.
I'm wondering whether some apps look for a particular property to be set and refuse to connect if it's not there??
A hot candidate might be [init.svc.netsharing_pass]???
Any comments?
Hi,
I installed bash and su from su-2.3.2.1-ef-signed.zip, which I moved to /system/bin
which su shows that that's what's being used.
I was hoping that this would give me the possibility to run su with switches (ie su -c "command"), and only use adb to invoke a script on the phone with the rest of the commands. Unfortunately fails on both counts :-(
Does anyone know of other su utilities out there that are more like the Linux version?
Cheers!
The answer seems to be gscript.
Phone side commands can be scripted to run on the phone, requires manually finding and running the script from the phone's UI.
Now if there were a way to invoke it through adb ... !
hi Learnincurve,
can you please briefly post, what you did to use the internet-passthrough? i cant figure it out with my desire z...
thanks!
m1l4droid, you are using the internet passthrough with ubuntu just like that? what am I doing wrong...?
Hello everyone.. I can see that the thread hasn't been updated for some time.. but still, has anyone founded an easy way to use "internet pass-through" option on linux? I have read the thread, but I am not very familiar with the terms "adb" etc. I am using Desire HD rom (InsertCoin HD Port 1.8f), on an "small" Desire... And the linux edition is Ubuntu 10.10... Thanx in advance..
wouldnt you be able to access an ad-hoc wifi network with your custom rom? so the only thing for you to do was to setup the ad-hoc wifi at the pc and connect with your phone...
for the usb-passthrough I still dont have a solution, neither.
Hi Everyone!
I have been given a Defy MB525 with Froyo installed
Apparently O2 and Motoblur don't like each other 'cos I can't locate the phone or do anything else using "My Motoblur" as Motoblur wants Microsoft Explorer and I have Linux on my computer.
I want to manipulate files and basically get full access to my phone using a nice friendly Linux GUI, but apparently I need to root the bloody thing.
I know this question has been asked before. The thread below is an example.
http://http://forum.xda-developers.com/showthread.php?p=9456771
The thread mentions Z4root as an answer.. It doesn't exist anymore.
It then talks about adb and pushing files into the phone.
In the most part this worked
The bit that didn't was "adb push exploit.bin /data/local/tmp/exploit.bin"
It doesn't exist on the zip file attached..
It did however have "rageagainsthecage-arm5.bin" instead
I changed the name to exploit bin in the vain hope that it might be the one and continued the instructions.
It obviously wasn't the one as :
a) it wouldn't come out of the program and
b) I got the $ sign instead of the # sign, which meant I was not root.
This was confirmed when I did the next step in the instructions and got permission denied.
After a switch off and on again (the phone) I cannot even get get back into the phone using adb. It just comes up "error: device not found" even though Linux is showing it as a directory.
So! What next?
Yours in anticipation
Fitchie
I use this http://forum.xda-developers.com/showthread.php?t=1044765 and work very fine with froyo
You can look at the stickies at the top of the forum before posting, see "Defy all-in-one beginner's guide", understand that it probably refers to you and most likely contains the answers to any beginner questions you'd want to ask, open it, read it in case you're serious or just look for "rooting" word if you're not.
Well, you already missed the first part and posted the thread, but you could still do the rest.
Given that you're running Linux on your PC, I'm a bit puzzled - I'd think that the described above is expected from someone with unorthodox OS that is likely used to searching for various guides.
Using "SuperOneClick" is the best way to do Root on your Defy MB525.
I've done this. .. hope it'll help
http://forum.xda-developers.com/showthread.php?t=1551472
Hey guys
I specialy registered to this forum for my next question/problem.
First of all, I'm using Wildfire s, 2.3.7, CyanogenMod-7.2.0-RC1-marvel.KANG + i'm using Windows 8 Consumer Preview.
I was trying to install
"[Tool] Android Screencast 0.4 (open-source)"
http://forum.xda-developers.com/showthread.php?t=557717
But when i connect my htc to pc with usb debugging it fails to install the driver. I've downloaded many usb_drivers from all over internet and tried to install them manually using device manager but it doesn't seem to work.
Finly i found the "HTCDriver3.0.0.007.exe and it worked on other computer (Win7). when i tried to install it in win 8 it gives an error telling that Driver installer in not supported for this OS. tried to run in capatibility mod but no luck.
Also tried to modify the usb_driver files "android_winusb" my adding lines in end etc.. still didn't work.
usually i don't ask help from any forum rather i google things and read other ppl posts. which worked.... until now So now i'm asking for help at this topic, i've been through almost every post in xda telling about Device not found, without any luck there eith.
If needed it's possible to remote controll my pc with teamviewer.
Help is really appreciated.
ps. device manager shows that yellow attention mark.
TEMP FILES / Extract .msi~
I got it work myself after all.
If you need help to install the device, mail me.
[email protected]
why not just post the answer?
had trouble getting drivers for windows 8 64 to work when trying to flash ruu update. could not find drivers online or a thread on xda, eventually downloaded the google drivers from sdk, and they worked perfectly after manually installing them for the android phone and then again for the android 1.0 device when it boots to hboot.
I'd like to put together a guide outlining how to root/S-OFF an Android Incredible 2 with Mac OS X, and perhaps develop a tool to assist. I've just done it with Parallels and Windows 7 via Revolutionary, but it seems to me there *must* be a way to do it directly. I know I can get ADB working, and issue commands via the terminal. The recoveries and ROMs are platform independent. Can someone tell me what a tool like Revolutionary actually *does* on a Linux system? Is it simply a matter of scripting a series of commands to perform some actions on some files? I don't seem to be able to find much reference on the nuts and bolts of the process, but it seems like duplicating it in Unix should be fairly simple. Any info or directions to further documentation would be much appreciated!
Edit: All I really need is link to some directions for manually rooting an Android Phone (and achieving S-OFF). Maybe something older, from before the days of packages like Revolutionary? Anyone?
Edit 2: OK, how about just very rough list of what ADB does during a Revolution-like session (send commands, push files)? If I can figure this out perhaps I'll have something to offer the thousands of Mac users who want to root their Android phones.
Is it possible to dual boot kit Kat and android? Does our device support linux?
Sent from my SM-N900A using Tapatalk
kitkat is android 4.4. the latest firmware is 4.4.2. android is a variant of linux.
dual boot kitkat and linux - i'm not sure.
linux in parallel - https://play.google.com/store/apps/details?id=com.zpwebsites.linuxonandroid
There are projects to install linux on android in various ways or to install software similar to linux desktops.
In principle, they should work on our device. But, I have tried a few, with no luck. I guess it is
because the Samsung firmware is modified. It seems to be a question of permissions.
I tried debian kit http://forum.xda-developers.com/showthread.php?t=2737935. I have
made a bit of progress since then, but it still does not work.
I tried both botbrew and botbrew basil. Neither of these worked. Always 'permission denied'.
As I said in the thread above, sometimes 'shell' can do things that 'root' cannot. Someone with
a different Samsung device was unable to install debian kit, but could do it after flashing cyanogenmod.
I want to retain S pen capabilities, so I don't want to do this. But if all these problems are really
due to the Samsung ROM....
There are some methods that don't require root. I have not tried these yet. You can look on the play store.
One difference is if you install linux in a chroot environment, or if it has access to the android files.
debian kit requires root and is not dual boot and not chroot. The
linux software is visible along with android binaries while debian kit is switched on.
I am also looking for flexible ways to transfer files over USB. No luck yet. E.g. I want to maintain a mirror of
a directory from a linux desktop to the device. Wifi is slower and not always available. There is an
app Ftp Server that allows you to ftp over USB using port forwarding with adb. Together with lftp,
this should provide a solution. But, this also fails for me. I can't be sure it is a Samsung problem.
I'd like to see an explanation of the relevant differences between Samsung and plain android.
See these threads on installing linux on Note 10.1 2014
http://forum.xda-developers.com/showthread.php?t=2590311
http://forum.xda-developers.com/showthread.php?t=2587915
http://forum.xda-developers.com/showthread.php?t=2737935