yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Player 4.0, 5.0] OguzhanVarsak:
I try this, but my SGP5 not opening.
[Barnes & Noble Nook Tablet] bigbug2428:
missing 1st (top) line when choose black background and white font

but it's OK when choose white background and black font

I thought the problem is the menu (content book title, info...) show up then autohide but didn't return the top line.

Does anyone can fix that?

Thanks all for help!

my english was bad, sorry.
[Motorola Droid RAZR] bahathir:
Problem:

Tethering problem with my RAZR XT910,PSHAsiaRetail.en

Findings:

Not NAT rule enabled in netfilter.

Solution: This is my simple solution.

0)

adb shell

1) Get root access.

$ su

2) Enable NAT in netfilter using iptables, by inserting the rule.

# iptables -t nat -F
# iptables -t nat -A POSTROUTING -o qmi0 -j MASQUERADE

3) Check with # iptables -t nat -nvL

Example

# iptables -t nat -nvL
0 0 MASQUERADE all -- * qmi0 0.0.0.0/0 0.0.0.0/0

Conclusion:

Very bad/immature tethering implementation by Motorola.

Updates: 2012--07-13

For ICS 4.0.4 Motorola had changed the FORWAD chain to DROP, and we need change it back to ACCPET to make successful tethering.

adb shell 'su -c "iptables -F; iptables -P FORWARD ACCEPT; iptables -t nat -A POSTROUTING -o qmi0 -j MASQUERADE"'

Update 2 2012-07-13

Finally ... the CORRECT way to set up tethering... goto post #21

http://xdaforums.com/showpost.php?p=28698646&postcount=21

Thank you.
[Motorola Droid RAZR] EVEALEX62:
Thanks for this! Works well.
[Motorola Droid RAZR] ichi go:
Hello to both of you,

this tip is very interesting! :)

Is there a way to make the same thing under Windows?

Thanks for your help!
[Motorola Droid RAZR] bahathir:
Windows? You even can run the commands without connecting to PC/Laptop. :)

If you want to use Windows, get adb and related driver for windows.

1) Connect your RAZR and let windows 'see' and install driver

2) Start-> Run -> cmd

3) cd \to\path\where\you\put\the\adb.exe

4) adb.exe shell

Now you should get command prompt $ and ready to run commands.

5) $ su

The prompt will change to #, which mean you are going to run commands using 'root' or supervisor power/authority.

6) Type or copy the commands in my previous post.

You also can use Andriod terminal emulator, such as Connectbot in local mode, and continue from step 5)

Good luck.

Thank you.
[Motorola Droid RAZR] ichi go:
Hello Bahathir,

I didn't remember the very useful android terminal emulator! ;)

Your tip worked great! Thanks a lot man!

I wonder how Motorola can forget something like that...
[Motorola Droid RAZR] armin61us:
the problem turns back by restarting

Hi,

Thanks for your tip, it works very well but after I restart the phone same problem and I need to reenter the codes!

any comments?

Cheers,

Ardal
[Motorola Droid RAZR] bahathir:
Yes, I forgot to mention that, this method is temporary. You need to run the commands after reboot. But, it's still better than nothing. :)
[Motorola Droid RAZR] armin61us:
unbelievable bug it this motorola :((( hey, I have an idea but dont know how to make it (working on it):

to put these two line commands somewhere like autoexec.bat (I don't know what is equivalent in android)

So you guys know better than me about android, what do you think?

Cheers,

Ardal
[Motorola Droid RAZR] bahathir:
Yes ,and it's called init.d or rc.d.
[Motorola Droid RAZR] armin61us:
Already done, by help of script manager. Set your commands as a script in etc/init.d/ with SU permission, boot.

I have also sent an email to Motorola Australia and asked them to release an update to solve this problem.
[Motorola Droid RAZR] bahathir:
Thank you for the follow up with Motorola. Please update and share us their responses. :)

Actually, the commands should be invoke when we start tethering ,and should be removed when we stop tethering for enhanced security.
[Motorola Droid RAZR] Ronis_BR:
Hi fellow!

Thanks for the tip! It really helped!

I don't know if Motorola "forgot" it, I think it was a way to block Tethering...

Anyway, I managed to permanently apply these modifications without need permanent root. BUT I'M NOT RESPONSIBLE FOR ANY DAMAGE YOUR DEVICE SHOULD HAVE! YOU MUST HAVE A MINIMUM LINUX KNOWLEDGE TO SAFELY EXECUTE THESE STEPS!

1) You will need adb working and the zip file with the scripts necessary to root Droid Razr on Linux / MAC (you can easily find it...)

2) From that zip, take zergRush and extract to a folder.

3) Plug the phone with USB debugging enable and execute:

adb shell 'cd /data/local/tmp/; rm *'

adb push zergRush /data/local/tmp/

adb shell './data/local/tmp/zergRush'

At this point, zergRush will try to obtain root.

After the execution, enter in shell (adb shell), you will see that you will be logged as root! The good point is that it is temporary, if you reboot your device and delete everything on /data/local/tmp/ your device will be exactly the same as it was before root.

4) So, with root access, get rc.local:

adb pull /etc/rc.local

REMEMBER TO BACKUP THIS FILE!

5) Be careful now: edit rc.local and add the following lines:

# Enable Tethering

# http://xdaforums.com/showthread.php?t=1435619

iptables -t nat -F

iptables -t nat -A POSTROUTING -s 192.168.42.0/24 -o qmi0 -j MASQUERADE

at the end of file, just before:

exit 0

OBS.: look that I have modified the original rule and added '-s 192.168.42.0/24'. Here, all devices connected to my RAZR in tethering mode has an ip from LAN 192.168.42.0/24. So, the masquerading will only work when package is coming from this LAN. I think it should increase security and avoid some problems. But remember, if you set up wifi router to assign an IP from another LAN you will have to add another rule!

6) Save and push it back:

adb push rc.local /etc/

7) Enter in shell and gives rc.local permission to be executed:

adb shell

cd /etc

chmod 755 rc.local

exit

8) After it, reboot and the change should be persistent.

I have tested it and, even after a factory reset, the changes are persistent!

Now I can successfully use Wifi and USB tethering.

Thanks one more time for these great information!

Also, I want to thanks tophyr from freenode #android-dev, myn from EFnet #android, and rob0 from freenode #Netfilter.

Ronan
[Motorola Droid RAZR] Ronis_BR:
Hi fellows,

EDITED: the problem was gone after I repositioned my router :D

I'm having a big trouble.

When I enable this, my Wifi connection becomes very unstable. It keeps disconnecting if I heavily use it. Any ideas?
[Motorola Droid RAZR] tekahuna:
Android Wifi Tether 3.1-beta11, now available for download... http://android-wifi-tether.googlecode.com

Requires root, though... Don't you need root to run iptables anyway? Definitely needed to edit the rc file.
[Motorola Droid RAZR] Ronis_BR:
Yes, you need root to edit rc.local, but, after pushing it back, you don't need it anymore.
[Motorola Droid RAZR] bahathir:
FYI, my RAZR XT910 is contract free and not from VZW. It also has Hotspot and tethering features. That why I said, the it is the bad implementation at the first place.

Yes, but, to be sure the FORWARDING is enabled, add this line

echo 1 > /proc/sys/net/ipv4/ip_forward
# Enable IP Forwarding in kernel

The ip_forward is 1, when you enabled the Hotspot/tethering, but just in case, if Motorola also disable the IP Forwarding in kernel. Yes, the netfilter's rules NEEDs the ip_froward value to be 1, to make the NATting to works.

BTW, I did not add the '-s 192.168.2.0/24' because, the NATting will not work if user change the hotspot default IP to other than 192.168.2.xxx.

Thank you and great job. I think this is not only for RAZR, but also for most Android smartphones which has 'iptables' command.

Good luck.
[Motorola Droid RAZR] Nelsinh0:
Great

Working great on 2.3.6 Stock, thank you!!!!!
[Motorola Droid RAZR] mnajem:
you can save to a shell script, let say mytether and execute ./mytether.sh later on...

but the init file is much convenient.
[Motorola Droid RAZR] stylez:
Any idea why doesn't work on Asia.03 ICS was what fixed issue in Asia.03 GB.
[Motorola Droid RAZR] bahathir:
Yes. :)

It is because Motorla had changed the default FORWARD chain policy to DROP, and all packets which going out from other IPs going through it will be dropped and ignored. So no connections for client's. :)

Here is the default rules.

$ adb shell 'su -c "iptables -nvL"'
Chain INPUT (policy ACCEPT 460 packets, 282K bytes)
pkts bytes target prot opt in out source destination
0 0 all -- !lo+ * 0.0.0.0/0 0.0.0.0/0 ! quota globalAlert: 2097152 bytes
145 8251 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
343 270K all -- * * 0.0.0.0/0 0.0.0.0/0 owner socket exists

Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 325 packets, 34323 bytes)
pkts bytes target prot opt in out source destination
0 0 all -- * !lo+ 0.0.0.0/0 0.0.0.0/0 ! quota globalAlert: 2097152 bytes
145 8251 ACCEPT all -- * lo 0.0.0.0/0 0.0.0.0/0
319 34011 all -- * * 0.0.0.0/0 0.0.0.0/0 owner socket exists

Chain costly_shared (0 references)
pkts bytes target prot opt in out source destination
0 0 penalty_box all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 all -- * * 0.0.0.0/0 0.0.0.0/0 owner socket exists
0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0

Chain penalty_box (1 references)
pkts bytes target prot opt in out source destination

Look at the FORWARD chain and other bizarre rules. :) We can change it to a more cleaner rules. :)

adb shell 'su -c "iptables -F; iptables -P FORWARD ACCEPT; iptables -t nat -A POSTROUTING -o qmi0 -j MASQUERADE"'

1) iptables -F : Flush/remove all rules

2) iptables -P FORWARD ACCEPT : Change the default FORWARD chain policy to ACCEPT, which allow all traffic goes through

3) iptables -t nat -A POSTROUTING -o qmi0 -j MASQUERADE : Enable the NAT rule.

Enjoy the tethering and good luck.

Thank you.
[Motorola Droid RAZR] bahathir:
I read a thread which suggesting to change APN type to dun...

http://xdaforums.com/showthread.php?t=1767463

So, I changed the APN type to default,dun,mms (no space), and... yup... it's tethering works like charm... So, Finally the correct way to setup the thethering.

But, anyone who has root, still can utilized my previous findings if the default tethering is going nuts. :)

Note: I add mms, because, I can use single APN for MMS and Internet.

Here is how the rules looks like...

$ adb shell 'su -c "iptables -nvL; iptables -t nat -nvL"'
Chain INPUT (policy ACCEPT 515 packets, 58661 bytes)
pkts bytes target prot opt in out source destination
0 0 all -- !lo+ * 0.0.0.0/0 0.0.0.0/0 ! quota globalAlert: 2097152 bytes
272 21734 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
500 56251 all -- * * 0.0.0.0/0 0.0.0.0/0 owner socket exists

Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
7 4761 all -- !lo+ * 0.0.0.0/0 0.0.0.0/0 ! quota globalAlert: 2097152 bytes
3109 1552K ACCEPT all -- qmi0 rndis0 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
32 1280 DROP all -- rndis0 qmi0 0.0.0.0/0 0.0.0.0/0 state INVALID
3881 1019K ACCEPT all -- rndis0 qmi0 0.0.0.0/0 0.0.0.0/0
0 0 DROP all -- rndis0 qmi0 0.0.0.0/0 0.0.0.0/0 TTL match TTL < 2

Chain OUTPUT (policy ACCEPT 532 packets, 60725 bytes)
pkts bytes target prot opt in out source destination
0 0 all -- * !lo+ 0.0.0.0/0 0.0.0.0/0 ! quota globalAlert: 2097152 bytes
272 21734 ACCEPT all -- * lo 0.0.0.0/0 0.0.0.0/0
533 60783 all -- * * 0.0.0.0/0 0.0.0.0/0 owner socket exists

Chain costly_shared (0 references)
pkts bytes target prot opt in out source destination
0 0 penalty_box all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 all -- * * 0.0.0.0/0 0.0.0.0/0 owner socket exists
0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0

Chain penalty_box (1 references)
pkts bytes target prot opt in out source destination
Chain PREROUTING (policy ACCEPT 815 packets, 55425 bytes)
pkts bytes target prot opt in out source destination

Chain INPUT (policy ACCEPT 249 packets, 18276 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 274 packets, 20178 bytes)
pkts bytes target prot opt in out source destination

Chain POSTROUTING (policy ACCEPT 10 packets, 920 bytes)
pkts bytes target prot opt in out source destination
830 56407 MASQUERADE all -- * qmi0 0.0.0.0/0 0.0.0.0/0

Thank you
[Motorola Droid RAZR] stylez:
Nice one as was only thing racking ball over on ICS.

Sent via XT910 Tethered :D
[Motorola Droid RAZR] Toliandar:
So I am having trouble tethering my Razr Droid and am noob in this concern. I am trying to figure out how to go about putting in this in. Am I supposed to make a new APN just for this or do I edit the two I already have (one internet and one MMS)?

Meaning for the default APN (internet) I simply write the APN type as default,dun

For the MMS APN the APN type becomes MMS,dun

Is it as simple as that?
[Motorola Droid RAZR] bahathir:
Sorry the screenshot need to be changed. Edit your current APN type to default,dun,mms if you have same mms APN aetup.
[Motorola Droid RAZR] Toliandar:
The first is for the internet and the second is for mms. The only other information is that the first has at the top

Name = Optus Yes Internet

APN = default

The second is name = Optus MMS

APN = mms

What should I be changing in these screenshots to get tethering to work?
[Motorola Droid RAZR] bahathir:
Here is how the APN Type should be.

default,mms,dun (Note: no space)

if you want to combine both Internet browsing and MMS into a single APN, when your MMS and Internet APN settings are similar.

If you want the seperate APNs, you can use use APN type: default,dun for Internet connectivity APN setting

Thank you. :)
[Motorola Droid RAZR] Toliandar:
Hooray!

I tried default,dun before but I was only going by the network properties to see if a net connection was running. Seems even though it says there is no internet I can still use Firefox.

Thank you for the assistance. I was starting to consider getting a new phone.
[Motorola Droid RAZR] mvp256:
This doesn't work on my Razr with ICS 4.0.4

It shows "error: device not found"

My Razr version is 673.94.328.XT910.AsiaRetail.en.03

And tethering works but very unstable after updated from GB to ICS.

What can I do?

thanks a lot.
[Motorola Droid RAZR] bahathir:
If you able to use the tether/hotspot, not need to process with this iptables' hack. If you have intermittent connection, most probably, you have congested network or interference. So, even you able to use this hack, you still get intermittent connection.

BTW, did you enabled 'USB debugging, in Settings -> Developer options ?

Thank you.
[Motorola Droid RAZR] vash_h:
Saw on Engadget, Verizon sued for not allowing 3rd party tethering applications to be installed.. Kudos..

Sent from my ICS Moto Razr XT910
[Motorola Droid RAZR] SoonerLater:
I have been running ICS 4.0.4 for over a month. For several weeks I was able to use successfully the built-in Hotspot app that allows tethering by wifi or bluetooth. I was using only bluetooth tethering and it worked great for several weeks. Starting a few weeks ago, I can connect my Nexus-7 to my Razr Maxx by bluetooth, but the N7 has no internet connectivity. Something has changed and I don't know what it is. Maybe I need to implement the fix that you guys have?

I found this thread when searching Google for "razr netfilter iptable" because there's an app (Wireless Tethering for Root Users) which is supposed to be able to tether by wifi or bluetooth without any problems. However, on my Razr + N7, it connects, but is no internet connectivity. The app maker warns that you "must have a kernel which supports netfilter / iptables." Thus, searching for that, I found this thread.

My Razr reports:

System Version: 6.16.211.XT912.Verizon.en.US

Android Version: 4.0.4

Baseband: CDMA_N_05.11.01PLTEDC_U_09.11.00

Webtop: wt-3.0.0

Kernel: 3.0.8-g29cf5e7, hudsoncm@il93lnxdroid54 #1, SMP Preempt Thu Jun 14 15:22:48 CDT 2012

Build: 6.7.2-180_DHD-16_M4-31

Build Date: Thu Jun 14:57:16 CDT 2012

Can anyone comment on whether editing the APN on my phone is likely to fix my problem as it fixed yours?
[Motorola Droid RAZR] bahathir:
1) APN editing is very easy to be done. Try it. Make sure you remember the original setting.

2) Make sure you have DISABLED WiFi on BOTH devices, before you starts the Bluetooth tethering and connection .

Bluetooth tethering is my preferred choice of Internet connectivity for my N7 :)

Good luck.
[Motorola Droid RAZR] SoonerLater:
SOLVED - No change in APN Required (for me)

I think that I've finally found why my Droid Razr Maxx and my Nexus 7 would connect by Bluetooth, but would not share internet

reliably

. It would work for days or weeks, then not work for no apparent reason. I think that there is a bug/limitation in the default built-in Mobile Hotspot app that I use (plus Bluetooth Auto-Tether on my phone and Bluetooth Auto-Connect on my tablet). It seems that after a while, the Mobile Hotspot app

stops giving out IP addresses

. I solved this problem by re-booting my phone. Next time this happens, I'm going to see if merely doing a Force Stop on Mobile Hotspot will do just as well as a reboot.
[Motorola Droid RAZR] jcjames:
It works wonders :D

Problem solved! :) thanks a lot :)
[Motorola Droid RAZR] bahathir:
It has been a while, and I glad this thread still gives the benefit to others.

My RAZR XT910 already broken, and now using other smartphone.

the netfilter/iptables technique is useful when the APN trck/method is not working. So please try the APN method first before use this technique.

Thank you.
[Motorola Droid RAZR] hrrhacker:
I have droid razr m connected to pc with usb cable tether internet notification icon is blinking on taskbar but having no internet access ..please help me sir
[AT&T Samsung Galaxy S II SGH-I777] dream5hift:
This recently happened. I don't know if it's the lens or rom issue. I only see the black dot on screen and on pictures when shooting camera. But when I switch to video and leave camera app the black dot is gone. Anyone know what might be the problem?
[AT&T Samsung Galaxy S II SGH-I777] polobreaka:
take a screen shot and post a pic you took. if there is something on the lens, you will also see it in video mode.
[T-Mobile Samsung Galaxy S II SGH-T989] phreshjoker:
Okay I'm going to be honest my fellow Gs2 family. I have been using the iphone for a couple of weeks now just because I wanted to try something new. Well I still love the galaxy s 2... but I see the only reason why I use the iphone is because it has iMessage... aka group messaging and IM with other iphones. so my question is does anyone know an app or amy app devs that could have us group chat with other phones?
[T-Mobile Samsung Galaxy S II SGH-T989] avarize:
I believe WhatsApp is cross platform that supports group chat
[T-Mobile Samsung Galaxy S II SGH-T989] Rekzer:
It does, i just checked!
[T-Mobile Samsung Galaxy S II SGH-T989] AllGamer:
Go SMS PRO (free) supports group messaging, been using it forever
[T-Mobile Samsung Galaxy S II SGH-T989] yeahson:
Is there a solution that doesn't require the person(s) on the other end to download an app?

So when you send a group text and people reply, everyone's reply is in the same thread and not individual messages? Because I've been using Go SMS Pro, too, and group messaging doesn't work like that for me.
[T-Mobile Samsung Galaxy S II SGH-T989] phreshjoker:
Okay all gamer will it be with other people without gosmspro also or only people wwith gosmspro
[T-Mobile Samsung Galaxy S II SGH-T989] media_11:
Why not try CHATON by Sammy?
[T-Mobile Samsung Galaxy S II SGH-T989] Killbynature:
Google plus? Chat-on ,Whats app messenger I believe. I just use google plus with all my iphone friends.
[T-Mobile Samsung Galaxy S II SGH-T989] avarize:
Android does not support group messaging without the assistance of a third party application, so people on the other end will also need to download the app
[T-Mobile Samsung Galaxy S II SGH-T989] phreshjoker:
do other people need chaton cause it says they won't... idk
[T-Mobile Samsung Galaxy S II SGH-T989] avarize:
Try it and let us know.
[T-Mobile Samsung Galaxy S II SGH-T989] phreshjoker:
I did but it wint let me add a convo at all
[T-Mobile Samsung Galaxy S II SGH-T989] drzplaya1121:
Groupme
[Nexus S Q&A, Help & Troubleshooting] LGIQEXPO:
Why do people reserve on here?
[Nexus S Q&A, Help & Troubleshooting] kooskoos1814:
It think it's kinda normal. The iPhone is not multi-task at all, when you do something, everything is paused and the processor is only working on what you're doing.

It's designed so.

Interesting though, thanks for the share.
[Nexus S Q&A, Help & Troubleshooting] Shark_On_Land:
So its a bfs kernel?
[Nexus S Q&A, Help & Troubleshooting] Shark_On_Land:
If this Knowledge is key.
[Nexus S Q&A, Help & Troubleshooting] madd0g:
That's basically the TLDR.

Now, what will Google do? Probably nothing, quad cores are around the corner and rumors of today are, they'll start with their own HW.

They need to focus really fast, if they don't want to become the next Microsoft. Android has a large user base by now, but in this year, WP will come closer and closer. More and more larger apps from iOS & Android are now ported on this platform, which doesn't have UI framework issues and is quite well polished to run on older HW (comparison: HTC Desire vs HTC Trophy).

I was saddened to realize that Apple did the multitasking right. Why ?

Well, multitasking on the PC is not the same as on the phone. You don't have apps side by side.

So when I'm interacting with an app, I want full UI response and don't care what's running in the background or what system is doing. It should listen to ME and STOP anything else. That's why the iOS is so fluid.

Androids Intent system is brilliant, also the notification stuff. But as in UX, Apple (and MS - they went more Apple style here) knows what they're doing.
[Nexus S Q&A, Help & Troubleshooting] Harbb:
The older Androids suffered from the effects of a true multitasking system, though even the now dating single core Nexus S can easily and happily runs the latest and greatest practically lag free. The biggest factor in all of this is the kernel - the only one which i find noticeable lag in is the stock kernel. This should be the first place google looks at in upcoming devices, even though such enhancements aren't even needed anymore (all SGS2s i've used are comparable to the iphones fluidity).

In the coming years apple will likely fall behind. Phones are becoming like computers, and hell so many people are using phone OSs as a computer replacement (i'm looking at you, tablets).

A couple of rough years with weaker-than-preferred hardware are, in my opinion, worth it for getting a several year headstart. I'm normally not for an OS requiring lots of hardware to keep up, but the damn thing has more pretty effects than my windows desktop. Try running windows xp with 512mb of ram and a 1.4ghz celeron processor and let us remember what progress requires.
[Nexus S Q&A, Help & Troubleshooting] madd0g:
Sorry, but anyone saying any Android is lag free, compared to 60fps iOS fluidity - needs to get an eye surgery.
[Nexus S Q&A, Help & Troubleshooting] shockem:
Lags in certain apps. Like twitter. However general UI is lag free. Lag comes here and there however.
[Nexus S Q&A, Help & Troubleshooting] Harbb:
In general comparisons to an iphone 4 it really is not far off. Browsing around home screens and app menu and working with them is on par. Switching back and forth in the settings menu takes its time in comparison, which is definitely a pain, as well as lag when doing something that hasn't been done in a while. Some apps tend to fail with scrolling lists for reasons i do not know; not caching images maybe?

The iPhone definitely is better with the UI, there are no doubts here. But in a couple of days of switching back and forth it is starting to seem more fluid because of how iOS reacts with scrolling and the likes - it's very sensitive and flings around for a long time. I noticed this when playing with a 3gs and 4 next to each other, the 3gs was lagging but still felt very fluid - somehow.