Issues with busybox wget - Thunderbolt General

This is somewhat related to development, since wget is used in writing CLI scripts, but has anyone encountered the issue of wget not working with domains on the thunderbolt? I can use ip adddresses (wget http://xxx.xxx.xxx.xxx). I've googled around and there's been past issues with it not working if you don't have nameservers in your /etc/resolve.conf file, but I do have those, so I'm not sure why it's not resolving the domain. Busybox obviously has execute perms and resolve.conf is +r, so I'm at a loss. Commands like ping and traceroute will resolve domains, but not wget.
I could write a small wrapper to add a header with each wget execution, but I was more interested in solving the issue if it's possible.
The thunderbolt is my first android phone, so I don't know if it's a tb problem or android/busybox problem.
Thanks!

Works on das BAMF

adrynalyne said:
Works on das BAMF
Click to expand...
Click to collapse
This is kind of funny, since I was using das BAMF (1.2.1) already haha but no clue why it doesn't work for me. I would be open to any suggestions though and I can provide screen shots if needed.
Busybox version is:
BusyBox v1.19.0.git.adrynalyne (2010-12-21 22:03:30 MST) multi-call binary.
Basically the steps I take are (with nothing in shell profile or other config changes):
open android terminal emulator http://www.appbrain.com/app/android-terminal-emulator/jackpal.androidterm
or ssh via putty remotely with sshdroid (doesn't work in either so not an application problem I dont believe).
$ su -
# ash
# wget http://google.com
wget: bad address 'google.com'
# wget http://74.125.225.20 (google.com)
Connecting to 74.125.225.20....(works)

Known issue with most (if not all) Android BusyBox binaries. Take it up with whoever compiled the one you are using.
Edit: blame adrynalyne, all his fault! He broke it on all devices.
yareally said:
This is somewhat related to development, since wget is used in writing CLI scripts, but has anyone encountered the issue of wget not working with domains on the thunderbolt? I can use ip adddresses (wget http://xxx.xxx.xxx.xxx). I've googled around and there's been past issues with it not working if you don't have nameservers in your /etc/resolve.conf file, but I do have those, so I'm not sure why it's not resolving the domain. Busybox obviously has execute perms and resolve.conf is +r, so I'm at a loss. Commands like ping and traceroute will resolve domains, but not wget.
I could write a small wrapper to add a header with each wget execution, but I was more interested in solving the issue if it's possible.
The thunderbolt is my first android phone, so I don't know if it's a tb problem or android/busybox problem.
Thanks!
Click to expand...
Click to collapse

You can install your own busybox binary that works with wget (along with working /etc/resolv.conf).

jcase said:
Known issue with most (if not all) Android BusyBox binaries. Take it up with whoever compiled the one you are using.
Edit: blame adrynalyne, all his fault! He broke it on all devices.
Click to expand...
Click to collapse
Story of my life. Bamf 1.2 and up work for wget.
Sent from my ADR6400L using XDA App

Related

AdFree Hosts file

Since we currently can't write to /system while Android is running, the AdFree app is unfortunately unusable. However, here is the hosts file that the app supplies you with, so you can still put it into your phone manually.
Download the attached file, unzip it and place the hosts file on your sdcard. Then, open up a command prompt, load up your recovery menu (using the instructions in toastcfh's guide) and type:
Code:
adb shell
mount /system
mount /sdcard
cp /sdcard/hosts /system/etc/hosts
exit
Now you're AdFree
As in AD free while on the web only? Or does this block the ADs that are displayed within certain programs? Like Spare Parts for example.
VoXHTC said:
As in AD free while on the web only? Or does this block the ADs that are displayed within certain programs? Like Spare Parts for example.
Click to expand...
Click to collapse
Everytime the phone goes to download an ad, it gets blocked. So in both the browser and inside apps.
a) not development
b) i already did this thread
http://forum.xda-developers.com/showthread.php?t=695196&highlight=adfree
I'm guessing this requires root?
Also, those commands can't work AFAIK, because mount needs two arguments.
Or am I missing something here? I'm new.
I have actually had 0 problems running adfree right out of the box. Installed, ran and bam no ads. Didn't have to modify nothing through ADB.
superevilllama said:
I have actually had 0 problems running adfree right out of the box. Installed, ran and bam no ads. Didn't have to modify nothing through ADB.
Click to expand...
Click to collapse
U running 2.2? BC I see lots more adds since 2.2, it blocks some but not most.
Sent from my PC36100 using XDA App
You know, to my embarassing discovery, I never noticed (as I found this thread from google) but this is the forum specifically for EVO.
I'm running a DX (so 2.1), so that may be the problem. But still, I wouldn't think such things would be different in the OS. Guess the package it differently. Oh well. Not gonna bother rooting my toy just yet, hehe. Sorry bout the confusion.
AdFree is working perfect on CM7 nightly 23 & 25 & MikFroyo 4.5 but it does not work if you have BusyBox 1.18.3 but works perfect with BusyBox 1.17.1. I did not test other versions but I think the problem is related to BusyBox 1.18.3 by today 03/19/11.
Still there are ads running on some apps
like moneycontrol, and more.
Gregalous said:
Since we currently can't write to /system while Android is running, the AdFree app is unfortunately unusable. However, here is the hosts file that the app supplies you with, so you can still put it into your phone manually.
Download the attached file, unzip it and place the hosts file on your sdcard. Then, open up a command prompt, load up your recovery menu (using the instructions in toastcfh's guide) and type:
Code:
adb shell
mount /system
mount /sdcard
cp /sdcard/hosts /system/etc/hosts
exit
Now you're AdFree
Click to expand...
Click to collapse
earth08 said:
Still there are ads running on some apps
like moneycontrol, and more.
Click to expand...
Click to collapse
Its not updated, try absolute system tools from the Android Market. It downloads an updated script
If anyone is interested I created an app (Warning: requires ROOT) that allows you to enter one or more URLs and/or file paths and merges them and installs them as hosts. You may find the source-code here: https://code.google.com/p/android-ad-blocker/
I'll try to fix bugs for it but I can't promise I'll have time.
Edit: I made a new version because the old one had some issues transferring large files. You may find it here: http://dl.dropbox.com/u/8443626/android-ad-blocker.apk
Adfree works fine, Am I missing something? I just ran it, it updated my host file. I checked again and it said it's the latest version
Sent from my PC36100
karilofyore said:
If anyone is interested I created an app (Warning: requires ROOT) that allows you to enter one or more URLs and/or file paths and merges them and installs them as hosts. You may find the source-code here: https://code.google.com/p/android-ad-blocker/
I'll try to fix bugs for it but I can't promise I'll have time.
Click to expand...
Click to collapse
Can u help me... on how to use ur app
Sent from my °•EvO HD•°
Can u explain this process... where is the guide from toast...
Sent from my °•EvO HD•°
acme64 said:
Adfree works fine, Am I missing something? I just ran it, it updated my host file. I checked again and it said it's the latest version
Sent from my PC36100
Click to expand...
Click to collapse
x2 im confused
@ acme64 : Some people in market comments complained that it doesn't work fine anymore and it's a root app with closed source. Since it was simple to write a similar tool I did it for myself mainly.
@ Don74y3 : The way to use the application is to put a URL to a hosts file. You may use for example the one in the screenshot (I can't put the link here because of forum rules but use Google to search for "hosts file winhelp2002" and from the first link, take the address from "To view the HOSTS file in plain text form") and then click "Apply". What the program does is get that file and put it in your (rooted) Android phone. That file in turn lets the phone avoid domains that serve ads or malware. The app can take more URLs and merge them, but that's not necessary. After clicking "Apply" it is recommended to reboot the phone to make sure the changes go into effect. You will see that the pages load faster and without ads.
P.S. I'm not affiliated with the guys that make that hosts file, though I'm grateful for their work.
Unable to figure out system mount point.
Can you please help with this?
MattSkeet said:
Unable to figure out system mount point.
Can you please help with this?
Click to expand...
Click to collapse
Hi, the programs tries to figure out where the /system partition is mounted on your phone (this is because it has to switch it to read-write, put the hosts file and switch it back to read-only). I wrote the program to parse the output of the "mount" command.
Unfortunately it seems that on your phone the output is far different than what I expected. I don't know how to fix this unless you can send me the output of that command on your phone - by PM for example. To do this use adb (try to Google for how to get Android Debug Bridge) with your phone connected: run "adb shell" from a command prompt and at the shell prompt type "mount" without quotes and send me the output - at least the line that contains "/system".
Hi,
I have a different question.
I used adFree but then decided that I actually wanted see the ads on my apps.
I removed AdFree but the ads are still gone.
Is there a way to bring them back?

[DEV] Native Ubuntu !!

Please go to Lilsteffy's threat !!! ,DEV here has stopt !!!
Admin close threat please
Working
Touchscreen
USB Host
Audio Out (Speakers not working)
Wifi - Requires Terminal / Script
Code:
For WPA2 edit /etc/wpa_supplicant/wpa_supplicant.conf
then run
sudo chmod +x /etc/init.d/start-networking
sudo update-rc.d start-networking defaults 99 05
Known Issues
Wifi GUI not working
Bluetooth not working
Speakers not working(Output Works)
Touchpad not working
Standby issues with Lid CLosed - Investigating
Resize Loop File <--
Keep in mind 4G fat32 limit for FAT32 !!
To Do
Boot To android -> looking into kexec.
trying to mod touchpad driver.
Sources
Kernal Source
Mega Source
Tweakers and Testers
HTC Linux
Change log.
0.2 Added WPA2 script , user just have to edit and enable it.
0.1 Added boot from loop or second partition.
0.0b first release
There is already a thread for this...
Here is what I would do:
1)Rebuild your kernel without virtual terminal,
2)use/boot this kernel with android.
3) use es file explorer to find the write /dev/block/mmcblkXXX???
use this in the init script of the initrd
4) use terminal emulator and ls -la to find out the MAJOR and MINOR number
of the right /dev/block/mmcblkXXX
use/change this in the bin/MKNODE script in the initrd
-> Done
bergfex said:
Here is what I would do:
1)Rebuild your kernel without virtual terminal,
2)use/boot this kernel with android.
3) use es file explorer to find the write /dev/block/mmcblkXXX???
use this in the init script of the initrd
4) use terminal emulator and ls -la to find out the MAJOR and MINOR number
of the right /dev/block/mmcblkXXX
use/change this in the bin/MKNODE script in the initrd
-> Done
Click to expand...
Click to collapse
always a great help bergfex thnx
You can try step 3 and 4 also with the default android system. It is likley that it shows the same behavior.
Yea, but where is my motivation to buy a transformer, when you already have done the fun part.
bergfex said:
You can try step 3 and 4 also with the default android system. It is likley that it shows the same behavior.
Yea, but where is my motivation to buy a transformer, when you already have done the fun part.
Click to expand...
Click to collapse
i thing makedev is not even running as i dont even see the intro .( make is after intro )
think i have to dd the image to sdcard and that the kernels calls directly to init on root dev
you remember that sdcard is not mounted because of makedev , here its already working i think
Gary13579 said:
There is already a thread for this...
Click to expand...
Click to collapse
and have you seen any progress at the thread? cmon the thread title says: coming soon (i assume)
dd the image to sdcard (or even better to the internal nand sometime in the future) should end up in an better performance anyway.
If the intro doesn't show up there may be a problem with the arguments of mkbootimg.
It was the following if someone else want to give it a try:
./mkbootimg --cmdline 'init=/init rw consoleblank=0 fbcon=rotate:1' --kernel zImage --ramdisk ramdisk-new.gz -o boot-new.img
Maybe you can add a the link to your zImage and to your ramdisk in the first post if someone else want to try/help.
Otherwise the link can be found in the coming soon (i assume) thread.
jazux said:
and have you seen any progress at the thread? cmon the thread title says: coming soon (i assume)
Click to expand...
Click to collapse
it was meant for people to brainstorm for solutions, pretty much like this thread, and yes there has been progress in that thread.
jazux said:
and have you seen any progress at the thread? cmon the thread title says: coming soon (i assume)
Click to expand...
Click to collapse
And needlessly fragmenting information/work across numerous threads does nothing but exactly that: segment information and clutter the forum.
almost there
Wow!
Thats really good news!
But tell us more! Whats left to crack before you are ready to release something?
Thanks for making this happen!
Sent from my Transformer TF101 using XDA Premium App
Jhinta said:
almost there
Click to expand...
Click to collapse
If you can pull this off, you sir, will be my hero
Jhinta said:
almost there
Click to expand...
Click to collapse
Getting my paypal account ready for some donating
yes ? yes ? yes ??
Will this help?
http://www.nvnews.net/vbulletin/showthread.php?t=163916
Sent from my Transformer TF101 using XDA Premium App
Little tip, Add root=/dev/ram0 to get it to load the initrd and drop you to a shell
david279 said:
Will this help?
http://www.nvnews.net/vbulletin/showthread.php?t=163916
Sent from my Transformer TF101 using XDA Premium App
Click to expand...
Click to collapse
very limited amounts of that are useful, probably the sound stuff, GPU acceleration isn't going to work from that package as it is for the harmony SOC only, and we have the ventana SOC

[Q] Ported CLI utilities question

I was just wondering if anyone has looked in to (or has already done/found) a port of any of things like bash, htop. modprobe, etc. Now that I have a massive screen I really miss bash from my CM ROMS on my phones lol ... and htop was just handy
Just curious, I've looked around but haven't found anything other than a couple Terminal apps that might have bash with them.
SpEnTBoY said:
I was just wondering if anyone has looked in to (or has already done/found) a port of any of things like bash, htop. modprobe, etc. Now that I have a massive screen I really miss bash from my CM ROMS on my phones lol ... and htop was just handy
Just curious, I've looked around but haven't found anything other than a couple Terminal apps that might have bash with them.
Click to expand...
Click to collapse
Terminal Emulator is about as bash as it gets. As far as commands like modprobe, if it isn't built into the kernel/os, just do a search for Armel ported stuff in debian repositories, you can usually find what you need, or just cross-compile with an arm-eabi compiler. Add it to /usr/bin and it will work in Terminal Emulator just like bash or any other terminal.
SpEnTBoY said:
Just curious, I've looked around but haven't found anything other than a couple Terminal apps that might have bash with them.
Click to expand...
Click to collapse
Terminal Emulator, and perhaps BusyBox (search Market) should get you a whole lot of stuff to play with.
I grabbed better terminal emulator pro which has busybox and bash but needed to install busybox from market anyway. I just copied a statically linked htop from my CM7 rom and it's happy too
SpEnTBoY said:
I grabbed better terminal emulator pro which has busybox and bash but needed to install busybox from market anyway. I just copied a statically linked htop from my CM7 rom and it's happy too
Click to expand...
Click to collapse
I am using it also, and really like it.
Sent from my Transformer TF101 using Tapatalk

Easy root method (Triumph is Factory rooted)

Found this over at SDX Developers
It's so easy a caveman can do it.
http://forum.sdx-developers.com/index.php?topic=17172.0
Be aware that if you do this you have no control over what has root and what doesn't. The "gingerbreak" way, along with the Android SU, does.
couldn't a person just install superuser?
Intercepter said:
couldn't a person just install superuser?
Click to expand...
Click to collapse
yes you can.... ive tested all of the ways of rooting this phone and this one is the easiest! after you do it just install superuser from the market and your all good.
Hey that's my post lol! Yeah well the thing about malware and root access that no one hardly knows is that all these apps that use root exploits to cause harm, they never request su permissions because they use there own exploit to gain root. So superuser wouldn't prompt you on an exploit root being ran. Superuser just prompts when some app requests /system/bin/su or /system/xbin/su. If you want to keep your phone safe its a mater of knowing what you install on your phone. Even with superuser your not safe from root exploit attacks!
Me personally I like nit having to allow everytime I install a new root app. And I know what I install so I never worry about malware.
Sent from my MOTWX435KT using Tapatalk
I noticed that his fix is to basically link su to sudo, which allows "root" programs to run the included superuser applet.
So does this mean someone could just install the SuperUser app without going through the usual rooting process? Is Gingerbreaking unnecessary then?
what concerns me is that if these phones ship with sudo enabled and no root password, then any app can get root without any special effort. That means the Triump is VERY insecure. I'm wondering if we can safely remove sudo and solve that particular problem.
Maybe they did that to make fixing them easier, for when a phone got sent in they could gain root and do whatever they need in it, then turn it back off real quick. This is kinda like the tether menu being hidden but not removed on the OV. How stupid do they think people are?
I don't think it's a question of stupidity - it's more one of knowledge. They don't anticipate the run-of-the-mill user to be digging through the file structure of the phone for something they have no idea of what it does or how it works.
And I'd have to agree - the non-technical people have no desire to start digging through the phone, but rather, to use it as is.
Therefore......
So if this could be made a script. Then we could un-root just as easily for protection. I only need it for barnacle.
root
--------
sudo
ln -s /system/xbin/sudo /system/xbin/su
ln -s /system/xbin/sudo /system/bin/su
unroot
-------
sudo
rm /system/xbin/su
rm /system/bin/su
RIGHT?
Edit: the "shebang" line needs to be changed. Not sure to what. You may be better off just typing in the commands yourself.
Not tested, but this should work.
The root script:
Code:
#!/bin/sh
#filename: rootme
echo "Rooting Device"
sudo
ln -s /system/xbin/sudo /system/xbin/su
ln -s /system/xbin/sudo /system/bin/su
echo 'Root has been achieved'
The unroot script:
Code:
#!/bin/sh
#filename: unrootme
echo "Un-rooting Device"
sudo
rm /system/xbin/sudo /system/xbin/su
rm /system/xbin/sudo /system/bin/su
echo 'Un-root has been achieved'
Make these files somewhere and *cd* to that directory. Type either
Code:
./rootme
or
Code:
./unrootme
Hope this helps someone.
TomXP411 said:
I noticed that his fix is to basically link su to sudo, which allows "root" programs to run the included superuser applet.
So does this mean someone could just install the SuperUser app without going through the usual rooting process? Is Gingerbreaking unnecessary then?
what concerns me is that if these phones ship with sudo enabled and no root password, then any app can get root without any special effort. That means the Triump is VERY insecure. I'm wondering if we can safely remove sudo and solve that particular problem.
Click to expand...
Click to collapse
Yes, that is true that an app could very easily gain root access on the triumph. HOWEVER, as pointed out by b_randon14 above, practically all malware apps use a root exploit to gain root priveliges. This means that even an unrooted device is susceptible. As an example, take a stock samsung captivate. It has no root, and no way to gain root, without flashing a custom rom/kernel. However, if an app used the psneuter exploit, it could still gain root access. (Btw, that is how I originally rooted my captivate, using super one click with the psneauter exploit)
So really, the triumph is no less secure than any other android device. Plus, the triumph is the only android device, aside from dev phones such as the nexus one/nexus s that come pre-rooted. So a triumph specific malware app would have to be written.
Personaly, I like the su+superuser.apk method of rooting, but that is because it is the only method I have ever used. And remember, if you prefer to have su+superuser.apk, you either use gingerbreak, or just use this trick and then install superuser.apk.
Sent from my SAMSUNG-SGH-I897
Yeah and plus an app has to be designed to gain root its not like any old app can just up and decide to request root and start destroying! And stock without any root(I.e. my method or gingerbreak) an app doesn't call /system/xbin/sudo it would call /system/bin/su or /system/xbin/su. Plus I mean if you used gingerbreak you should realize that an app can get root without going through superusrr or calling on su. I mean how else do you think gingrrbreak app gets root in the first place to copy su and superuser? Through the gingerbreak root exploit!!
Sent from my OC'ed Triumph!
The concept of an app being able to gain root makes it just as dangerous as a malignant virus for Android. The only difference is, it's not a virus. It's a nice, helpful, and otherwise very good program. Lucky for us.
I'm working on a batch script that does the same thing as these instructions, anybody vaguely interested in using it (should it be put out)?
primetechv2 said:
The concept of an app being able to gain root makes it just as dangerous as a malignant virus for Android. The only difference is, it's not a virus. It's a nice, helpful, and otherwise very good program. Lucky for us.
I'm working on a batch script that does the same thing as these instructions, anybody vaguely interested in using it (should it be put out)?
Click to expand...
Click to collapse
I wrote one and posted on xda, I think, but the shebang line needs some adjustment to find sh. Hope that helps.
Sent from my rooted Moto Triumph
Why is this not working for me? I downloaded terminal emulator from the market, typed: "sudo" and get:
sudo: permission denied
$
tsac said:
Why is this not working for me? I downloaded terminal emulator from the market, typed: "sudo" and get:
sudo: permission denied
$
Click to expand...
Click to collapse
Did they patch it? These two lines of code run from ADB should "root" the device... and sudo is just there.
adb -d shell sudo ln ln -s /system/xbin/sudo /system/xbin/su
adb -d shell sudo ln ln -s /system/xbin/sudo /system/bin/su
Now you may not be able to run "sudo" alone, you may need to specify a command with it too? Unfortunately I can't try it again, because all of my phones are rooted now
In the event this didn't work, GingerBreak should work regardless.
I'll give it a try when my phone finishes charging.....Thank you
tsac said:
I'll give it a try when my phone finishes charging.....Thank you
Click to expand...
Click to collapse
Sure. although I would still recommend Gingerbreak instead...it's more complete and contains Superuser as an extra security measure.
Sent from my MOTWX435KT using Tapatalk
Never got to try anything....Phones screen is dead. You know how people describe the flashing screen when turned on and off? Well mine flashed once and it has not worked since... Hopefully virgin mobile will honor the 1 year factory warranty. I did absolutely nothing to this phone. It just took a crap. Removal of battery does nothing. Phone will receive calls but there is nothing but a backlight. Tried several different methods. Horrible phone....Should be recalled
Thanks for your trying to help me.
Sent from my reliable homebuilt gaming rig using FireFox
rooted my dad's triumph...question though...couldn't I flash clockworkmod via rom manager or do I have to go the long way?
edit: nvm, i see rom manager doesn't support the triumph

WIFI TETHERING (WORKAROUND) FOR (CM 10, AOKP, SOURCE BASED Roms) ~ UPDATED

this is to people having issues with wifi tethering for source based rom...i'll list what is needed & what needs to be done in order to have a working wifi tethering & ive tested it 150% with i9100 & other devices to ensure this trick works.
What is needed is:
Gscript lite from play market.
What needs to be done is quite simple if you follow it step by step..
Once gscript is downloaded you'll have to open the app up once and just close it there-after and reboot your phone right after that. Once you download the file below you'll need to move that to folder that'll be created after reboot which is called gscript. Move the .sh file there and then unplug device from computer. Open up gscript and press the menu button on our phone. You'll see an option to add script click that. Once done that then it'll give you option for adding a script click on load file and when you press that you'll see tetherfix.sh file in the list click that.that should bring you back to screen with file loaded and all you do is press save once done it'll show up in gscript lite list. All set and done then what you do is create a desktop shortcut to your tethering setting and this script via w/e launcher and adding shortcut to these files. So anytime you need to start up wifi tethering just run that and you're good to go and im gonna thank this to the guys in s3. Since i was there i guess i learned alot from them too. Thanks guys. And if this method works out for you all you have to do is press thanks.
I just updated my ROM last night to AOKP 4.2.2 [2.19.13]
I'm having this exact problem with Wifi Tether, it will not work for the life of me!
I've been messing around with it for the last 2 hours and cannot get it to connect to my Macbook Pro. I previously had an AOKP 2.1 ROM that I've been using for close to a year now. Wifi tether worked fine on this ROM and I used it all the time.
I was hesitant to update my ROM for this very reason. It always seems Wifi Tether has a problem no matter what ROM I update to.
Your instructions seem a little complicated to me, I'm a novice in the ROM world and I'm just trying to fix this problem.
Any idea as to what is causing Wifi Tether not to work with my laptop?
I cannot figure out why this always happens.
Any help would be appreciated.
Thanks-
MVLJR said:
I just updated my ROM last night to AOKP 4.2.2 [2.19.13]
I'm having this exact problem with Wifi Tether, it will not work for the life of me!
I've been messing around with it for the last 2 hours and cannot get it to connect to my Macbook Pro. I previously had an AOKP 2.1 ROM that I've been using for close to a year now. Wifi tether worked fine on this ROM and I used it all the time.
I was hesitant to update my ROM for this very reason. It always seems Wifi Tether has a problem no matter what ROM I update to.
Your instructions seem a little complicated to me, I'm a novice in the ROM world and I'm just trying to fix this problem.
Any idea as to what is causing Wifi Tether not to work with my laptop?
I cannot figure out why this always happens.
Any help would be appreciated.
Thanks-
Click to expand...
Click to collapse
I flashed this is as well. But it wasn't working at first. And by this I mean creating a new connection to said WIFIHS. Wasn't working. So I just instead edited an already set WIFI option I had and it worked.
doodjay said:
I flashed this is as well. But it wasn't working at first. And by this I mean creating a new connection to said WIFIHS. Wasn't working. So I just instead edited an already set WIFI option I had and it worked.
Click to expand...
Click to collapse
I can't get it to work at all.
I'm going to wait until later and see if the OP updates the ROM, he said he was going to after my post earlier.
wali01x said:
this is to people having issues with wifi tethering for source based rom...i'll list what is needed & what needs to be done in order to have a working wifi tethering & ive tested it 150% with i9100 & other devices to ensure this trick works.
What is needed is:
Gscript lite from play market.
What needs to be done is quite simple if you follow it step by step..
Once gscript is downloaded you'll have to open the app up once and just close it there-after and reboot your phone right after that. Once you download the file below you'll need to move that to folder that'll be created after reboot which is called gscript. Move the .sh file there and then unplug device from computer. Open up gscript and press the menu button on our phone. You'll see an option to add script click that. Once done that then it'll give you option for adding a script click on load file and when you press that you'll see tetherfix.sh file in the list click that.that should bring you back to screen with file loaded and all you do is press save once done it'll show up in gscript lite list. All set and done then what you do is create a desktop shortcut to your tethering setting and this script via w/e launcher and adding shortcut to these files. So anytime you need to start up wifi tethering just run that and you're good to go and im gonna thank this to the guys in s3. Since i was there i guess i learned alot from them too. Thanks guys. And if this method works out for you all you have to do is press thanks.
Click to expand...
Click to collapse
Can you please elaborate on this part?
I've gotten to here, but now I'm stuck. I don't know how to create a shortcut
your trick solved my tethering problems
Hello,
your script solved my problems of wifi tethering with my i9100 and cm10.1 nightlies after 2013-02-16 til 2013-03-14.
In this post of cm10.1 i9100 official thread i've descirbed my problems.
Running in terminal emulator your script before activating the wifi tethering solve the problem.
I've also followed the gscript way without any problem and now i'm just to click the scipt icon on my desktop in order to make tethering work.
Is there any way in order to run the script during the boot process?
Thank you again.
Andy
I think what he's saying is to run this script with GScript just before you start up tethering.
Here's the contents of the script if anyone is interested:
Code:
iptables -A bw_FORWARD -i !lo+
iptables -A natctrl_FORWARD -j RETURN -i rmnet+ -o wlan0 -m state --state RELATED,ESTABLISHED
iptables -A natctrl_FORWARD -j DROP -i wlan0 -o rmnet+ -m state --state INVALID
iptables -A natctrl_FORWARD -j RETURN -i wlan0 -o rmnet+
iptables -A natctrl_FORWARD -j DROP
iptables -A natctrl_nat_POSTROUTING -t nat -o rmnet+ -j MASQUERADE
traketto said:
Hello,
your script solved my problems of wifi tethering with my i9100 and cm10.1 nightlies after 2013-02-16 til 2013-03-14.
In this post of cm10.1 i9100 official thread i've descirbed my problems.
Running in terminal emulator your script before activating the wifi tethering solve the problem.
I've also followed the gscript way without any problem and now i'm just to click the scipt icon on my desktop in order to make tethering work.
Is there any way in order to run the script during the boot process?
Thank you again.
Andy
Click to expand...
Click to collapse
Probably just need to add that to an init.d script.
car vs driver said:
I think what he's saying is to run this script with GScript just before you start up tethering.
Here's the contents of the script if anyone is interested:
Code:
iptables -A bw_FORWARD -i !lo+
iptables -A natctrl_FORWARD -j RETURN -i rmnet+ -o wlan0 -m state --state RELATED,ESTABLISHED
iptables -A natctrl_FORWARD -j DROP -i wlan0 -o rmnet+ -m state --state INVALID
iptables -A natctrl_FORWARD -j RETURN -i wlan0 -o rmnet+
iptables -A natctrl_FORWARD -j DROP
iptables -A natctrl_nat_POSTROUTING -t nat -o rmnet+ -j MASQUERADE
Probably just need to add that to an init.d script.
Click to expand...
Click to collapse
CvD for the win. Just copied the script text and added it to init.d as 85wifi tether. I'm tehtered to my phone as I'm sending this. Toyes AOKP 3-14 with your 1.07c+ kernel. If you add it to the init.d for your kernel I bet people will be stoked.
So...I just copied the text in a file and added it to system/etc/init.d. I've used this on CM 10.1 and other 4.2.2 ROMs and have had no problems.
However, this is supposed to work on 4.1.2 ROMs such as Embryo...but for some reason it isn['t working for me. I must be missing something...anyone have any ideas?
THanks
Hi.
I'm running CM10.1 20130420 on a SGS II GT-I9100.
I have copy this text in a file named 85wifitether and stored it on system/etc/init.d
I have gave the same rights (owner : root, group : shell, permission rwxr-xr-x)
I have reboot my phone but I can get tethering work with my Asus TF300T as client
When I run 85wifitether script in console after being root (su root), I have this messages :
iptables -v give me : v1.4.11.1
Is there something wrong with my phone ?
Thanks.
mikebzh44 said:
Hi.
I'm running CM10.1 20130420 on a SGS II GT-I9100.
Is there something wrong with my phone ?
Thanks.
Click to expand...
Click to collapse
Wrong forum dude
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
Sorry but as Traketo was running CM 10.1 on GT-I9100 :
http://forum.xda-developers.com/showpost.php?p=39132404&postcount=6
As well as xxboarderxx :
http://forum.xda-developers.com/showpost.php?p=39865491&postcount=9
I was expecting some help from them
I will ask in CM10.1 forum
Thanks.
This does not work on P.A.C rom 22.1.0 built by me on 4/24
wali01x said:
this is to people having issues with wifi tethering for source based rom...i'll list what is needed & what needs to be done in order to have a working wifi tethering & ive tested it 150% with i9100 & other devices to ensure this trick works.
What is needed is:
Gscript lite from play market.
What needs to be done is quite simple if you follow it step by step..
Once gscript is downloaded you'll have to open the app up once and just close it there-after and reboot your phone right after that. Once you download the file below you'll need to move that to folder that'll be created after reboot which is called gscript. Move the .sh file there and then unplug device from computer. Open up gscript and press the menu button on our phone. You'll see an option to add script click that. Once done that then it'll give you option for adding a script click on load file and when you press that you'll see tetherfix.sh file in the list click that.that should bring you back to screen with file loaded and all you do is press save once done it'll show up in gscript lite list. All set and done then what you do is create a desktop shortcut to your tethering setting and this script via w/e launcher and adding shortcut to these files. So anytime you need to start up wifi tethering just run that and you're good to go and im gonna thank this to the guys in s3. Since i was there i guess i learned alot from them too. Thanks guys. And if this method works out for you all you have to do is press thanks.
Click to expand...
Click to collapse
It's work fine thanks but I have a problem with GScript that keeps crashing.
I have already tried cache and dalvik wipes, do you have any suggestion?
Inviato dal mio GT-I9100 con Tapatalk 2
J. Silver said:
It's work fine thanks but I have a problem with GScript that keeps crashing.
I have already tried cache and dalvik wipes, do you have any suggestion?
Inviato dal mio GT-I9100 con Tapatalk 2
Click to expand...
Click to collapse
I have installed this apps :
http://www.thisiscolossal.com/2013/05/manon-wethlys-instagram-photos-of-airborne-beverages/
And it's work with my tablet and my laptop
mikebzh44 said:
I have installed this apps :
And it's work with my tablet and my laptop
Click to expand...
Click to collapse
???
Inviato dal mio GT-I9100 con Tapatalk 2
mikebzh44 said:
Hi.
I'm running CM10.1 20130420 on a SGS II GT-I9100.
I have copy this text in a file named 85wifitether and stored it on system/etc/init.d
I have gave the same rights (owner : root, group : shell, permission rwxr-xr-x)
I have reboot my phone but I can get tethering work with my Asus TF300T as client
When I run 85wifitether script in console after being root (su root), I have this messages :
iptables -v give me : v1.4.11.1
Is there something wrong with my phone ?
Thanks.
Click to expand...
Click to collapse
All you have to do is load the script directly from the gscript folder (/sdcard/gscript), and then run the script before run the tethering.
I think that the error is cause by an error in copy/paste the script in gscript in wrong way.
J. Silver said:
???
Inviato dal mio GT-I9100 con Tapatalk 2
Click to expand...
Click to collapse
Sorry, wrong link.
I have installed this app :
https://code.google.com/p/android-wifi-tether/issues/detail?id=1661#c109
massimilianonball said:
All you have to do is load the script directly from the gscript folder (/sdcard/gscript), and then run the script before run the tethering.
I think that the error is cause by an error in copy/paste the script in gscript in wrong way.
Click to expand...
Click to collapse
As GScript app need to geolocalize me and need network access, I don't installed it. So I thought that running the script by placing it in init.rd folder could work, as other users in this thread.
But now, I'm using this app above and everything is OK.
mikebzh44 said:
Sorry, wrong link.
I have installed this app :
....
As GScript app need to geolocalize me and need network access, I don't installed it. So I thought that running the script by placing it in init.rd folder could work, as other users in this thread.
But now, I'm using this app above and everything is OK.
Click to expand...
Click to collapse
Do you have another link, this one doesn't work.
Inviato dal mio GT-I9100 con Tapatalk 2
No but I will upload the apk this evening.
Envoyé depuis mon GT-I9100 avec Tapatalk

Categories

Resources