yashsingh1/xdaforums huggingface dataset:
[EVO 4G Themes and Apps] davidlightle:
Hmmm, alright, can you send me a LogCat when the error occurs? (If you're familiar with ADB enough, you can pull it that way, or there's an app called aLogCat that is supposed to be able to pull it and allow you to send it)

I tried it on Fresh 3.1.0.2 with a stock kernel and WT 1.4 last night and it worked for me when I removed the second libnativetask.so, so I wonder if there's not something else still lingering on your system.

If you're proficient with ADB/Linux, I could also have you see if you can find all instances of that .so file: find /system -name libnativetask.so) But if not, that's okay.
[EVO 4G Themes and Apps] mikevillarroel:
Yes i'm on Fresh, flashing fix right now.................

EDIT: nothing, no error, no FC but pc won't connect!!!
[EVO 4G Themes and Apps] scottspa74:
forgive my lack of tech-savvy knowledge....

Just curious, because I hate doin irreversible stuff , if I flash this and it causes any problems anywhere, is there a way to 'uninstall' this, or 'undo' it?

I suppose if its just driver definition, as stated above, there's not gonna be any issues. I'm just wondering, it doesn't DELETE libnativetask.so, does it? I'm on netarchy stock 2.2. Sounds like it doesn't delete any files, does it? Just adds definition?

Sorry for stupid question? My own ignorance.

Thanks though.

And mass thanks to Davidlightle and the guy who found fresh issues.
[EVO 4G Themes and Apps] davidlightle:
I haven't checked the update script for Josh's but it might delete the file. However its not irreversible, because we can get it back on your phone in a similar fashion. In fact, if you do it and run into trouble, just shoot me a PM or email and I'll work with you on it.
[EVO 4G Themes and Apps] scottspa74:
You f&*?in rock man, thanks. And I'm not using josh_H update script, as I'm on a netarchy stock 2.2 root. I don't need to use josh_Hs, right? That's just for fresh and DC and certain custom ROMs, right?
[EVO 4G Themes and Apps] davidlightle:
Correct. So yeah, with my patch it does delete a file, but since it symlinks, it's actually better, but if you ever have problems, it's not hard to get you back to the original. Let me know if you have any issues, though!
[EVO 4G Themes and Apps] Josh H.:
My script DOES delete the libnativetask.so. It still appears that there is no consequence to doing this (the only potential problem David and I could think of is that it would break Wireless Tether, but it doesn't... Wireless Tether still works perfectly).

That said, if you would rather not delete it, just do an adb pull or whatever first, so you can restore it later. If you like, I could make another update.zip to put the libnativetask.so back where it belongs (but it would break wired tether too).
[EVO 4G Themes and Apps] v_lestat:
Dave just figured i would chime in with an update.

SteelH's stock DeOdexed 2.2 RevE.2 works perfect with 1.4 + update

so i decided to go back to Freak E Froyo becuase it is OC'd "out of the box" (but oddly enough setCPU wont OC it) and here is what i found.

1,4 FC's no matter what (i forgot to delete/rename the libnativetask.so)

flashed 1.3... BAM! up and running (i did NOT delete the libnativetask.so in the /system/lib folder)

so not sure why 1.4 wont work when 1.3 will, even though i never touched the libnativetask.so for either one.

here is a screen shot of my software version.

here is my Sprint Tether

Here is my Tether when using Wifi (usb tether wifi enabled on the phone)

this is just to show that there are NO speed issues with the USB tether.

in fact, this is faster than speedtest.net will do when i do not tether. ie; wifi on the phone using the speedtest.net app on the phone.
[EVO 4G Themes and Apps] v_lestat:
you dont even have to do that guys, just use root explorer (way better than estrongs anyways) and just long press on the file and RENAME it.. sheesh guys.. just rename it to libnativetask.so.bak
[EVO 4G Themes and Apps] Josh H.:
Very true, no difference between either method. Thanks v_lestat.
[EVO 4G Themes and Apps] davidlightle:
I believe Harald did some work around the libnativetask.so between 1.3 and 1.4, but I don't know the reasoning personally, so I can't really speak on it in any depth myself.

So long as it works for you, that's what I'm here for.

Yes, you're very correct. I, personally, and I believe Josh may be the same way, was just trying to simplify the process for those that don't want to pay for an app like root explorer, for those who aren't technical to do ADB/Terminal/SSH commands, and to save on trouble due to idiosyncracies. Just trying to cater to the largest audience this way.
[EVO 4G Themes and Apps] v_lestat:
i never delete anything unless i am specifically trying to save a lot of space.

this way i can just rename it back if something goes screwy on me.
[EVO 4G Themes and Apps] scottspa74:
Awesome, thank you soooo much. worked on netarchy stock root ROM and net 4.1.8 kernel. 4G doesn't work, though I don't know if that is something that can be reso;ved (I mean doesn't work with tether to clarify, otherwise working fine)

I feel same as some others, though. I have root explorer, I would prefer to just rename the files .bak. If either of you could make a zip to reinstall info, and just tell me what to rename, that would be great. If not, I can deal. ;) but would prefer that route (hate DELETING stuff, too permanent).

Anyhow, working on stock rooted rom with custom net 4.1.8 kernel using XP. No additional drivers or anything were needed, just plug and play. Thank you guys for all your work, youve made my phone perfect

scott
[EVO 4G Themes and Apps] davidlightle:
Totally understandable. I hang on to a lot of the ROMs, RUUs, and zips and such so I have backups of many varieties this way.

Here are the two files (one deleted from my update.zip, one deleted from Josh's update.zip) in a zip for anyone that needs them to revert back. Extract them and then do the following:

For anyone reading this, read this next section carefully :)

For those who used my update.zip:

For the IP.bak, put ip.bak in your PC's directory where adb is and then navigate there in a commandline:

adb push ip.bak /system/bin/ip.bak

For those who used Josh's update.zip:

For the libnativetask.so.bak, put libnativetask.so.bak in your PC's directory where adb is and then navigate there in a commandline:

adb push libnativetask.so.bak /system/lib/libnativetask.so.bak

If you ever need them then, you can rename them around. If you didn't follow closely, you may be confused why things don't work or where things are, or you may re-break wired tethering (or wireless tethering, small possibility). None of this is too big of a deal, other than it gets a little harder to know just what needs done in your specific case to get you working again.

If you have questions or problems, as usual, just send me a message here, PM, email, or whatever. ;)
[EVO 4G Themes and Apps] azrickster:
ROM: Fresh 3.1.02

Kernel: Kings #4 BFS

OS: Windows 7 Enterprise

Ok, so I installed WT 1.4 and renamed the /data/data/android.tether.usb/libnativetask.so to add .bak to the end. All I get is FC's.

So I renamed back and then renamed the one in /system/lib/libnativetask.so to add .bak to the end. Now I don't get FC's but when I click on "Press to start Tethering" it just gives me the message "Unable to start tethering. Please try again."

Any ideas? Maybe 1.3 will work, but it is no longer available on the website. Can anyone post it?
[EVO 4G Themes and Apps] mgriffin13:
The same situation for me. I had 1.3 from my previous attempts and I am able to tether with that (1.3) using Fresh 3.1.0.2, although it doesn't work if I go 4g.
[EVO 4G Themes and Apps] davidlightle:
Hmm, it looks like that message appears when it can't execute the tethering command as root. Do you use the Superuser application or do you just have the su binary?

The version 1.3 became available as a beta/testing version, so it was marked as deprecated, which requires a little digging to find it on the downloads page. But to make it easier for you, here it is. I would still prefer to get 1.4 even more fixed then or at least find out what is causing the failure (in case of an unsupported ROM deviation).

Can you provide us with a LogCat when the application force closes? (An easy way is the aLogCat application on the market I believe, if you aren't familiar with ADB/LogCat, in which case that may be easier)

So are you only using 1.3? How is 1.4 for you? I'm not sure what happens with 4G and it's hard for me to test as nowhere nearby has it at all (about 3 hours away minimum). Are you enabling 4G prior to tethering, or while tethering is going? I'm not sure currently how well the tethering handles changes in the data connection (between Wifi, 2G, 3G, and 4G, from one to any other).
[EVO 4G Themes and Apps] mgriffin13:
I was trying to say that my behavior was similar to azrickster. If I install 1.4 and then delete /data/.../libnativetask.so, I get FC's. If I delete /system/lib/libnativetask.so I get the "cannot start" error.

To reference the second question about 4g. When I used version 1.2 with the 2.1 Android, I was able to freely switch between 3g and 4g prior to and during the actual tethering with no issues.

Now, if I have 3g enabled, then start tethering, it works. If I then enable 4g while still tethering, my connection breaks. If I then disable 4g, the connection magically comes back up.

If I start 4g, then enable tethering, I get no connection until I disable 4g.
[EVO 4G Themes and Apps] Josh H.:
Not sure if you've already tried it, but I had to uninstall and reinstall wired tether (and reboot in between) to get that "Unable to start" trash to stop.
[EVO 4G Themes and Apps] azrickster:
Thanks Josh, strange but that worked. So apparently Wired Tether needs to NOT see the /system/lib/libnativetask.so file when you install it?
[EVO 4G Themes and Apps] Josh H.:
Something like that. The whole thing about libnativetask.so doesn't seem to make any logical sense, but that's just the way it is. If I took a peek at the source for wired tether I might be able to say why that is, but I trust the devs will sort it all out eventually.

Regardless, I take it everything is working now?
[EVO 4G Themes and Apps] mgriffin13:
Strange, the uninstall/reboot/install/reboot trick worked for me using 1.4. Although, if I still have 4G enabled, I get no external connections. As soon as I disable 4G, it works (I can ping google). Enabling 4G again breaks the connection.
[EVO 4G Themes and Apps] Josh H.:
I'm in Arizona for the summer so I can't test the 4G myself until I get back to Seattle next month, but a few users reported it was working, right? What if you enable the 4G before you start the tethering? The only thing I can think of is that turning radios on/off WHILE you are tethering could mess things up. It's only a guess but worth a shot.
[EVO 4G Themes and Apps] mgriffin13:
I've tried both ways, no joy.

When I have 4G enabled and set up a persistent ping to google, I get a "destination net unreachable" error and as soon as I turn 4G off and 3G back on, I get successful pings.
[EVO 4G Themes and Apps] scottspa74:
Yup, doesn't work with 4g, no matter how you approach it. That's cool. Oh well. It works great on xp using your zip on froyo stock and netarchy 4.1.8

My question is (without adb, just copy/paste), how can I get the file back, and what I would need to name .bak to have all good.

Thanks for all

Big edit: 4G MAY work on this. It turns out my 4G doesn't work even just normal, without tether. I thought it did because after scanning, it says obtaining IP, then says connected. Well, I trusted that. Just now though, I actually tried to browse 4g on my phone, and it won't load any page. Just says 'check your connection'. So, my 4g musta hgot mussed up somewhere along the way , and it has nothing to do with wired tether, to be clear.

Again, thanks all
[EVO 4G Themes and Apps] davidlightle:
You can take the files from the zip and just put them in the folder, if that makes sense. I haven't used root explorer to know exactly how it works to know if is a good way to explain it or not.

If you want instead, I can also whip up an update.zip to get it back if you need.

Since the ip one is a symlink, I'd probably remove it and recreate it later if need be; for the libnativetask, I'd just shuffle the names around.

Remove ip <-- Version for tethering
Rename ip.bak to ip <-- Version originally
(To get back to tethering, either rerun the .zip, or just create a symlink again, using "ln -s /system/bin/toolbox /system/bin/ip" in a shell)

and

Rename libnativetask.so to libnativetask.so.bak2 <-- Keeps the tethering version as a backup
Rename libnativetask.so.bak to libnativetask.so <-- Restores the original
Rename libnativetask.so.bak2 to libnativetask.bak <-- Makes this process more "cyclical"

This could be a little confusing I know as I probably didn't explain it that well. I'm not sure what you or anyone else would want best here, an update.zip to restore original and one to use tethering; an update.zip with a script to toggle between the two; just general commands/directions on how to do it; or what?

However I can help, let me know.

Note: on the 4G not working, I'm not sure why that is, because Rene on the issue tracker said it was working. Hmmm.
[EVO 4G Themes and Apps] azrickster:
I was under the impression that the native usb tethering was supposed to work on 4G for free. Is this not true? I'm in Arizona, so can't confirm.
[EVO 4G Themes and Apps] davidlightle:
I don't believe so. I believe what you're thinking is the "glitch" that Sprint had in the first month or two that using 4G tethering wasn't checking to make sure you had the $30 hotspot add-on. So until FroYo came, you could tether 4G for "free."

Now the internals of what needs done to tether is fairly minor, hence how this app works (hooking up normal Linux networking pieces). So it mostly just looks like traffic to the phone, which then hops to another computer.
[EVO 4G Themes and Apps] azrickster:
Thanks for the clarification. Might not matter for us in Arizona anyway from what I have been reading looks like Clearwire is going LTE here and a buddy of mine that is an engineer for a competitive carrier told me that it was not going to be a combination LTE/WIMAX network. Until it's announced, who knows after all my buddy does work for the competition - friend or not.
[EVO 4G Themes and Apps] mgriffin13:
Ugh. My wireless tether broke when I renamed the /system/lib/libnativetask.so to the .bak version. If I move it back to .so, wireless tether works but wired tether breaks.
[EVO 4G Themes and Apps] BrianBusby2038:
Which version of wireless tether are you using?I have 1.4 wired and pre8 wireless both working with Netarchy's 4.1.8 bfs kernel on Fresh.
[EVO 4G Themes and Apps] mgriffin13:
The uninstall/reinstall of both wired and wireless tether fixed the problem. Both run now.
[EVO 4G Themes and Apps] gtkansan:
Not working here. No matter what kernel I use :(. Damn froyo!
[EVO 4G Themes and Apps] davidlightle:
Can you give us some of the details of what you're experiencing? Force closes? Message about being unable to tether? Limited connectivity? No internet despite showing connected?

What ROM and kernel(s) are you using? What steps have you gone through?
[EVO 4G Themes and Apps] jester95:
Working great with Fresh 3.1.0.2 w/ stock kernel.
[EVO 4G Themes and Apps] gtkansan:
It shows as running, and then windows 7 takes like 3-4 minutes to even register that it is seeing the RNDIS connection (verified as a HTC rndis device in device manager). It then says no internet connection no matter how long it is connected (tested with it running for 15 total minutes). Any ideas? I have full adb.
[EVO 4G Themes and Apps] davidlightle:
Did you do the ip update.zip fix?

If so, I'll have to dig deeper to find out why that's happening.
[EVO 4G Themes and Apps] rjmjr69:
Exact same issues. Can not get a working internet connection tried all fixes
[EVO 4G Themes and Apps] davidlightle:
Can you give us a little information to "debug" with? I'm trying to figure out what the handful of non-working cases have in common as most people are having success now I think.

What ROM and kernel are you using? What OS? What have you done to alter your setup (removing applications, etc.)?

And to confirm, it gets to the point where it says the RNDIS connection is connected, but no internet traffic flows across it, correct? (Some got to a point where it would say "Limited connectivity", and sometimes that would resolve to "Connected" after a short time even)
[EVO 4G Themes and Apps] ricoishere2:
Does this app work for non-rooted evos with 2.2?
[EVO 4G Themes and Apps] jester95:
No...you need to be rooted.
[EVO 4G Themes and Apps] v_lestat:
i did NOT specifically hit every reply to see if someone answered this but do NOT delete the libnativetask.so in the /data/data/android.tether.usb/ folder, the tether app will crash every time - it did for me

you only delete or rename the one in the /system/lib folder.

it has been working for me on every rom i try, which admittedly is not alot, maybe 3. but its a toss up between 1.3 and 1.4+update & deleting nativetask.so or not.

i basically install it, if it doesnt work i uninstall, rename nativetask.so then reinstall and try.

if it doesnt work i try 1.4+update, and back to regular nativetask.so

its hard and frankly i dont understand why its doing this when the program should be able to be programmed to only use the one in the usb tether folder, but for some reason its all over the place depending on the rom.

frankly i dont care, its a very very easy fix if it doesnt work, it just takes a bit of tinkering.

what you can do is create a .bat file in your adb tools folder and have it rename the libnativetask.so to libnativetask.so.bak and use the install command to install the 1.3 or 1.4 tether app you need.

make it work, and then make the .bat file to do exactly what you did, that way if you need to wipe your phone and reflash you can just run the .bat file.

better yet, just do a nand backup after you got it working and restore from there if you need to.
[EVO 4G Themes and Apps] v_lestat:
hey Dave i just thought of something and i am not sure its even possible since i am not a programmer, i am a hardware guy.

is it possible to merge the wired and wireless tether apps so that when you start it up you can choose which one you want and it does it.

seems silly to have two apps especially when both are doing similar things, one uses eth1 the other uses usb1. but if it isnt possible then so be it.
[EVO 4G Themes and Apps] davidlightle:
I've definitely thought about this, but I haven't looked too deeply into Wireless Tether's code, though I suspect it's very similar. Currently I can't get Wired Tether to build the native code (working on it), so I'm having to get help from Harald (the actual project owner) when I need to push out changes.

I have some ideas and plans in mind, though. Just have to find some time. ;)
[EVO 4G Themes and Apps] mgriffin13:
Just wanted to report back. It appears that the 4G was actually broken for the whole phone and not just tethering. I stupidly assumed that when the phone said "connected to sprint" that it was, in fact, connected and passing traffic. That was obviously not the case.

I've been working the last couple days to figure out how to fix 4G for the phone itself, and once that's complete, I'm confident that the tethering will work as well.
[EVO 4G Themes and Apps] scottspa74:
wired tether working great for me, BUT...

OK, I'm on netarchy stock rooted ROM, using 4.1.8 kernel. Did the libnativetask.so update, and it worked.

My question: does the libnativetask.so fix affect the dropdown menu that's supposed to drop when you plug into usb?

Cuz I just plugged into tether, and no window popped up. It automatically went to 'charge only' so tether could work , but I could not change it to 'disk drive' mode. Couldn't get the window to dropdown no matter what. Even tried to drag down notification bar. USB debug showed selected. I even unplugged, went to settings / connect to PC, and changed default to disk drive (and yes, 'ask every time' is selected). Plugged back in, still went automatically to 'charge only'. Again didn't ask me with a dropdown. Checked My Computer (using XP 32bit), and couldn't find it connected as a drive.

(Wired tether was not on, or active when I was trying to get drive mounted)

I even rebooted Evo, same thing happened.

Any ideas? I don't know if this behavior is related to libnativetask , but I definitely need to be able to mount disk drive.

Thanks for everything. (I hope this IS the culprit so it can be sorted out. It's all I've changed recently)

Scott
[EVO 4G Themes and Apps] davidlightle:
The libnativetask.so shouldn't affect the USB selection drop-down at all; it was to fix the Force Close issue is about all.

In a quick nutshell, when you enable USB tethering, it has to disable the Disk Drive and ADB functionality; in theory it should re-enable it when you stop tethering, but if that fails for some reason, it may leave it without either, but a simple reboot would fix that.

So immediately after rebooting, you can't get it to work as a Disk Drive either?
[EVO 4G Themes and Apps] scottspa74:
Right. Immediately after rebooting can't get it to display dropdown and options either. Im at work now and will give it a shot on their computer in a minute (never been plugged in to them before), may also try a battery pull.

I have named a few sprint apps and HTC widgets/apps .bak in system/app thru root explorer to get disable bloat. I only did that to things that were obvious what they were. But I wonder if any could have interdepency on that usb menu? Do you know what the file name of that dropdown would be?

BTW, thanks mass for your quick response, that was great, much appreciated.

Scott
[EVO 4G Themes and Apps] v_lestat:
Oddly enough the same thing happened to me.... with evio 2 rom.

All i did was fo into settings, set it to usb drive as default unchecked ask me... then went back into settings and rechecked "ask me" and now it works fine
[EVO 4G Themes and Apps] scottspa74:
V_lestat

Thanks. I did kinda try that, but I didn't go out of settings before re-checking the check box. Will try. Thank you.
[EVO 4G Themes and Apps] davidlightle:
I believe the app for that was the PCSCII.apk one if that helps at all. That was my first thought when you said it but since you said libnativetask.so was the main change I was trying to think of other things.
[EVO 4G Themes and Apps] scottspa74:
Did as V_lestat said, seems to be working now. Hopefully repeatably. I feel like kind of an idiot for getting everyone on board such a non-problem. But thanks mass, XDA is the best.
[EVO 4G Themes and Apps] LAYGO:
My 4G isn't routing anymore. Would it have something to do with the symlink update to the ip stack?

3G works fine. WiFi is slow. Wired/Wireless Tether work, but pings are really high.

I tried connecting to 4G in 2 different areas I know I get good connections (see sig) & neither place routed. This is just using the phone, not even tethering during this time.

Any ideas?
[EVO 4G Themes and Apps] davidlightle:
It could have something to do with the alternate ip binary (the symlink version), but I don't think that's it (I think others have it working with 4G still). My WiFi and 3G are the same as before -- when wired Tethering my WiFi connection, I get the same speeds as my desktop normally does.

However, I'm using a symlink to busybox and not toolbox (toolbox being more prevalent is why I chose to symlink it in the fix). You can try going back to the old binary, or symlinking to busybox and see if either helps? If not, let me know.
[EVO 4G Themes and Apps] akastixx:
this is why i got my evo. sweetest app ever.
[EVO 4G Themes and Apps] InstantKarma:
Oh, thank you thank you thank you! :D I read about the libnativetask.so fix last week, but didn't actually read this post until I searched for it, and was just more confused since I didn't have a libnativetask.so file in the location mentioned.

It's working now, though. I

really

didn't like using EasyTether.