Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Waydroid Tor Friendly #1007

Open
TNTBOMBOM opened this issue Jul 18, 2023 · 4 comments
Open

Make Waydroid Tor Friendly #1007

TNTBOMBOM opened this issue Jul 18, 2023 · 4 comments

Comments

@TNTBOMBOM
Copy link

TNTBOMBOM commented Jul 18, 2023

Is your feature request related to a problem? Please describe.
The issue is that Waydroid images are only being downloaded from SourceForge, which is an unreliable source to choose when downloading files over Tor sadly because it consistently blocks Tor connections.

Sourceforge blocked the attempt:

[workstation user ~]% sudo waydroid init -f                   
[sudo] password for user:         
[19:10:34] Downloading https://sourceforge.net/projects/waydroid/files/images/system/lineage/waydroid_x86_64/lineage-18.1-20230422-VANILLA-waydroid_x86_64-system.zip/download
[19:10:38] ERROR: HTTP Error 403: Forbidden
[19:10:38] See also: <https://github.com/waydroid>
Run 'waydroid log' for details.
zsh: exit 1     sudo waydroid init -f

Changed Tor circuits and sourceforge accepted!, but not completely :( (success on VANILLA-waydroid_x86_64-system but not MAINLINE-waydroid_x86_64-vendor)

[workstation user ~]% sudo waydroid init -f
[19:12:14] Downloading https://sourceforge.net/projects/waydroid/files/images/system/lineage/waydroid_x86_64/lineage-18.1-20230422-VANILLA-waydroid_x86_64-system.zip/download
[Downloading] 769.85 MB/769.85 MB     153.07 kbps(approx.)[19:56:07] Validating system image
[19:56:14] Extracting to /var/lib/waydroid/images
[19:56:45] Downloading https://sourceforge.net/projects/waydroid/files/images/vendor/waydroid_x86_64/lineage-18.1-20230422-MAINLINE-waydroid_x86_64-vendor.zip/download
[19:56:46] ERROR: HTTP Error 403: Forbidden
[19:56:46] See also: <https://github.com/waydroid>
 Run 'waydroid log' for details.
zsh: exit 1     sudo waydroid init -f

Stuck on having MAINLINE-waydroid_x86_64-vendor (no matter how many times i tried to change Tor circuits)

[workstation user ~]% sudo waydroid init -f
[sudo] password for user:         
[20:00:01] Downloading https://sourceforge.net/projects/waydroid/files/images/vendor/waydroid_x86_64/lineage-18.1-20230422-MAINLINE-waydroid_x86_64-vendor.zip/download
[20:00:02] ERROR: HTTP Error 403: Forbidden
[20:00:02] See also: <https://github.com/waydroid>
Run 'waydroid log' for details.
zsh: exit 1     sudo waydroid init -f
[workstation user ~]%

Describe the solution you'd like
Add the ability to obtain Waydroid images from different websites that are more Tor-friendly. One option could be to incorporate the use of --xyz.com to download waydroid image from alternative mirrors. And, if feasible, downloading waydroid via Tor hidden services using --onion.

Additional context
Im contributor to Whonix Anonymous OS which is debian based, we also encourage users if they want to have android apps [1] [2] working on gnu/linux and torified system to consider Whonix as their preferable option.

@Quackdoc
Copy link
Contributor

waydroid can actually use other upstreams we just dont have anyone to mirror it, you can see the OTA system here https://github.com/waydroid/OTA/tree/master and you can use custom waydroid OTA servers using -c (fpr system) and -v (for vendor).

as for making it via tor onions I'm not sure how that works with python, but considering we do use python, I dont think that would be hard to do. however as far as making a tor friendly mirror goes, that is for sure possible

@TriMoon
Copy link

TriMoon commented Aug 3, 2023

@TNTBOMBOM did you try to use torsocks 🤔

torsocks — Shell wrapper to simplify the use of the torsocks(8) library to transparently torify an application.

@TNTBOMBOM
Copy link
Author

@TNTBOMBOM did you try to use torsocks 🤔

It's not something related to Tor itself; it's about blocking Tor exit nodes from SourceForge. Whether you use torsocks or not, you have to have a Tor exit node.

So yeah, keep thinking...

@TriMoon
Copy link

TriMoon commented Aug 3, 2023

Oh ok then i misunderstood the error in combination with topic title...
I thought you were getting that error due to censoring by government filtering, which tor could help with...

Anyhow 👍
I doubt waydroid evelopers have any power to change configs for sourceforge which is a totally independent entity from them....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants