this post was submitted on 10 Aug 2023
1295 points (96.2% liked)

Android

27956 readers
410 users here now

DROID DOES

Welcome to the droidymcdroidface-iest, Lemmyest (Lemmiest), test, bestest, phoniest, pluckiest, snarkiest, and spiciest Android community on Lemmy (Do not respond)! Here you can participate in amazing discussions and events relating to all things Android.

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules


1. All posts must be relevant to Android devices/operating system.


2. Posts cannot be illegal or NSFW material.


3. No spam, self promotion, or upvote farming. Sources engaging in these behavior will be added to the Blacklist.


4. Non-whitelisted bots will be banned.


5. Engage respectfully: Harassment, flamebaiting, bad faith engagement, or agenda posting will result in your posts being removed. Excessive violations will result in temporary or permanent ban, depending on severity.


6. Memes are not allowed to be posts, but are allowed in the comments.


7. Posts from clickbait sources are heavily discouraged. Please de-clickbait titles if it needs to be submitted.


8. Submission statements of any length composed of your own thoughts inside the post text field are mandatory for any microblog posts, and are optional but recommended for article/image/video posts.


Community Resources:


We are Android girls*,

In our Lemmy.world.

The back is plastic,

It's fantastic.

*Well, not just girls: people of all gender identities are welcomed here.


Our Partner Communities:

[email protected]


founded 1 year ago
MODERATORS
 

It's my goddamn motherfucking mobile data and MY PHONE. I should be able to use it however I want. My wifi went down because the greedy, cunt-faced shitbags at Comcast stole taxpayer subsidies to enrich themselves instead of actually providing the service we're paying for. I tried to switch to a mobile hotspot and my phone refuses to open one. Everyone responsible for this shit should be ~~fed to alligators~~ locked away in a fucking gulag. We have no rights and live in a corporate plutocracy.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 11 points 1 year ago (3 children)

This is the reason I was forced to use android and root my phone. I used a custom ROM to bring back the tethering option then connect to a VPN and used the rooted terminal to mess with the iptables and routing to mask the fact I was tethering. Uuuugh, I don't miss those days. Luckily the market changed in my country and went the other direction so I don't have to deal with this anymore.. Still have the old shell scripts saved tho ;)

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

I have a different idea that wouldn't require root nor any special setup. Unfortunately, or rather fortunately in this case, I have no way to test it.

My idea:

  1. Install Android proxy server from (unfortunately) Play Store
  2. Start hotspot on the other device
  3. Connect your phone to the hotspot
  4. Find your IP address on the network you just connected to (the hotspot on other device) - it should be in WiFi settings, when you click on more details on the connection. Alternatively you could find it in output of ip a in Termux.
  5. Open Android Proxy Server app and optionally adjust settings to your liking. (IP address to bind to - should be your phone's on the hotspot, port, authentication)
  6. Enable the proxy server that you want to use. If you're connected through VPN, it will go through it. I use HTTP/HTTPS proxy.
  7. Connect to the proxy server on your other device using your phone's IP and the appropriate port. In Firefox go to settings, scroll down, click on network setup.

I use this to circumvent the 1 device limit of free ProtonVPN. Also on school network (with authentication enabled) to go through VPN and use NextDNS.

[–] [email protected] 1 points 1 year ago

Good solution but some network providers look for Windows / Mac exclusive traffic, headers or some-such shutting down your connection immediately. I had some success tethering Linux machines tho :P Modern Windows likes to phone-home imminently upon establishing an internet connection, not to mention windows updates and a whole host of windowsness. The anti-tether developers were no doubt spoilt for choice with the amount of flags windows sends!

[–] [email protected] 1 points 1 year ago (1 children)

Is there a guide on how to do this? I have a rooted phone with custom rom and unlocked bootloader.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

Okay, so note that this script is over 8 years old now but if you google some of the lines or ask in a Linux / Android board they may be able to help you get this working if it doesn't as-is:

So, connect to your vpn on your phone and activate hotspot. Before connecting to it simply type these lines into the terminal (Think I used to use the Terminal Emulator app). You'll have to run the "su" command first to get root access:

iptables --flush iptables -t filter -F FORWARD iptables -t nat -F POSTROUTING iptables -t filter -A FORWARD -j ACCEPT iptables -t nat -A POSTROUTING -j MASQUERADE

That should be all you need.. Unless something's changed in later android versions. I saved the above as a .sh script so I didn't have to copy-paste every line every time

[–] [email protected] 1 points 1 year ago

Gooogle webkit api may soon kill rooted phones altogether