Commit graph

158 commits

Author SHA1 Message Date
Claudia
b1c88db1ce
Feature: install self-signed cacert to trust store
For analysis and reverse engineering, it can be helpful to insert a
custom CA certificate into Waydroid’s system-wide trust store.
Users used to be able to do that via Android’s settings but not anymore.

The `install mitm` command accepts a path to a file that contains a
– typically self-signed – CA certificate in PEM format.
It then renames [1] and copies the file into the overlay file system,
placing it into Waydroid’s trust store.

As a usage example, the following command lines enable your host to use
mitmproxy [2] to act as a proxy and to intercept [3] HTTP(S) connections
that come from the Waydroid container:

```sh
$ timeout --preserve-status 2 mitmdump -n                           # creates a CA cert in ~/.mitmproxy
$ sudo venv/bin/python3 main.py install mitm --ca-cert ~/.mitmproxy/mitmproxy-ca-cert.pem
INFO: Creating directory: /system/etc/security/cacerts
INFO: Copying /home/yourname/.mitmproxy/mitmproxy-ca-cert.pem to system trust store
INFO: Target file: /system/etc/security/cacerts/6320a7db.0
INFO: mitm installation finished
$ sudo waydroid shell -- ls -l /system/etc/security/cacerts         # double-check that it worked
[…]
-rw-r--r-- 1 root root 1191 2024-01-01 00:00 6320a7db.0
[…]
$ adb shell settings put global http_proxy ${YOUR_IP_HERE?}:3128    # tell Waydroid to use the proxy
                                                                    #     for all connections
$ mitmproxy -p 3128                                                 # start proxy and display a TUI
                                                                    #     with HTTP(S) connections
                                                                    #     coming from Waydroid
```

[1]: https://docs.mitmproxy.org/stable/howto-install-system-trusted-ca-android/#2-rename-certificate

[2]: https://mitmproxy.org/

[3]: https://docs.mitmproxy.org/stable/mitmproxytutorial-interceptrequests/
2023-09-23 18:34:14 +02:00
Casu Al Snek
688c84fd58
Merge pull request #124 from Benjamin-Loison/main
Add `bash` syntax highlighting to `README.md`
2023-09-23 20:54:44 +05:45
Benjamin Loison
367697d59e
Add bash syntax highlighting to README.md 2023-09-17 02:26:48 +02:00
Casu Al Snek
77e222fb16
Merge pull request #118 from ayasa520/main
Fix some issues that prevented scripts from working properly
2023-08-25 14:47:59 +05:45
Rikka
821c7c0bc2
Update prompt 2023-08-24 23:33:10 +08:00
Rikka
854b4b0a6c
Use venv to avoid breaking Python installation or OS 2023-08-24 23:33:04 +08:00
Rikka
6d5af57ebc
fix: Fix simlink path issue
https://github.com/casualsnek/waydroid_script/issues/101
Relative path fails when using symlink. Replace it with absolute path.
2023-08-24 23:22:20 +08:00
Rikka
a80ff8e855
update hidestatusbar link 2023-08-24 23:22:16 +08:00
Rikka
3e51f7f56e
update smartdock link 2023-08-24 23:22:05 +08:00
Rikka
e1ee7f0b0c
Fix capitalization of MicroG and update nodataperm 2023-08-24 23:21:53 +08:00
ayasa520
337d066eeb
fix(microg): typos 2023-08-24 23:17:14 +08:00
Casu Al Snek
4db9bb3cba
Merge pull request #110 from axolotlek/main
fix cli commands mistakes in readme
2023-08-19 00:13:01 +05:45
Casu Al Snek
489159c5f9
Merge pull request #111 from SUFandom/patch-1
[URGENT] Update nodataperm.py by changing MD5SUM hash to updated state
2023-07-25 23:48:31 +05:45
SUFandom
9c2d8fcd83
[URGENT] Update nodataperm.py
Change the MD5Sum Because trying it spams error because its invalid

Suggestion: Just add the main.zip to the Releases tag and let The script grab the 'stable' version there an just change it alongside with the python script library for update to not add issues
2023-07-25 20:09:05 +08:00
axolotlek
098036cca9 fixed mistakes in readme 2023-07-25 14:46:43 +03:00
axolotlek
212135d3c8 fixed mistakes in readme 2023-07-25 13:59:51 +03:00
Casu Al Snek
59547e7743
Merge pull request #70 from ayasa520/main
Uninstall function, microG installation and some hacks
2023-05-28 12:39:02 +05:45
ayasa520
ddcc581a9c
Update README.md 2023-05-27 17:43:07 +08:00
Rikka
6db853e8d1
Update README.md 2023-05-27 17:35:47 +08:00
Rikka
cb206cc8c0
libndk: fix libndk parameter 2023-05-27 16:55:31 +08:00
Rikka
910291ceb9
libndk: match the correct version of libndk 2023-05-27 16:55:31 +08:00
Alessandro Astone
2e693d03db
Switch to a good verison of libndk_translation
The previous version targeted Android 12 if 64 bit, so native arm64 apks
are very likely to not work. Switch to a version targeting Android 11.
2023-05-27 16:55:31 +08:00
Rikka
4777296b34
smartdock: download from fdroid 2023-05-27 16:55:31 +08:00
Rikka
cb9d2b4726
update: README.md 2023-05-27 16:55:30 +08:00
Rikka
6c6e651d79
rename _resetprop to resetprop 2023-05-27 16:55:30 +08:00
Rikka
4fce5db93e
add x86 and arm resetprop 2023-05-27 16:55:30 +08:00
Rikka
0ab4b1c0f7
fix: ndk translation prop 2023-05-27 16:55:30 +08:00
Rikka
ab334ebfc3
Remove unused imports 2023-05-27 16:55:30 +08:00
Rikka
4070ab8eb9
fix(SmartDock): update md5 2023-05-27 16:55:30 +08:00
Rikka
86aabfb2e2
refactor: set permission 2023-05-27 16:55:29 +08:00
Rikka
7fcfe62e66
Fix typing errors 2023-05-27 16:55:29 +08:00
Rikka
3900328b83
Add interactive command line interface 2023-05-27 16:55:29 +08:00
Rikka
48ea54fc3e
refactor 2023-05-27 16:55:29 +08:00
Rikka
6922bdba0d
microg: use MinMicroG 2023-05-27 16:55:29 +08:00
ayasa520
00714a5c0e
Update README.md 2023-05-27 16:55:28 +08:00
Rikka
ee8b9ef213
resetprop: Avoid conflict with magisk 2023-05-27 16:55:28 +08:00
Rikka
c48b1df5cd
support a13 image 2023-05-27 16:55:28 +08:00
Rikka
0b2afba187
change rc permission to 644 2023-05-27 16:55:28 +08:00
Rikka
43d8cfb18d
prop: use waydroid upgrade -o to regenerate base prop 2023-05-27 16:55:28 +08:00
Rikka
e305dd1dc4
Write prop to /var/lib/waydroid/waydroid.cfg 2023-05-27 16:55:28 +08:00
Rikka
556f277fec
fix broken ndk link 2023-05-27 16:55:27 +08:00
ayasa520
7c31b838f6
Update requirements.txt 2023-05-27 16:55:27 +08:00
Rikka
8c66e7cf34
Update README 2023-05-27 16:55:27 +08:00
Rikka
5f6fc21c38
Use configparser to read waydroid config 2023-05-27 16:55:27 +08:00
Rikka
d72bf018d1
Execute commands on waydroid shell with pipes 2023-05-27 16:55:27 +08:00
Rikka
0feb86ceef
Fix incorrect keyword arguments 2023-05-27 16:55:27 +08:00
Rikka
553f48fa27
arm widevine
arm widevine
2023-05-27 16:55:26 +08:00
Rikka
53a4bad536
Add: hide status bar 2023-05-27 16:55:26 +08:00
Rikka
ca932b90e1
fix: get google certified
c49dfd272d
2023-05-27 16:55:26 +08:00
Rikka
0d7681bccb
add uninstall function 2023-05-27 16:55:24 +08:00