Commit Graph

267 Commits

Author SHA1 Message Date
Mygod
8e09e8cd8a Replace strict mode with fallback upstream interface
Fixes #40. Apparently we can no longer take advantage of default network rules set by Android system since Android 9.0 thanks to this commit: 758627c4d9
2018-10-03 13:02:28 +08:00
Mygod
8e3567954e Remove unused imports 2018-10-02 23:49:46 +08:00
Mygod
4de93c5c02 Move monitors to a separate package 2018-10-02 23:44:06 +08:00
Mygod
9c6183d662 Add dumped stats to debug information 2018-10-02 23:33:57 +08:00
dwuku
d131d5d46b Make compatible with F-Droid (#42)
* Make compatible with F-Droid
* Fix title bar empty
2018-10-02 23:13:12 +08:00
Mygod
5f5bb063c0 Record stats before exit 2018-10-02 22:41:43 +08:00
Mygod
8419734df8 Ignore extra records coming later
This can happen when the application is terminated incorrectly. Due to how we add routing rules, new client-wise rules are always added to the top. Therefore, we should always assume that the input at the top is the correct one.
2018-10-02 22:36:47 +08:00
Mygod
38f95a382e VPN Hotspot 2.0: Client+ (#39)
Fix #13, #38. I don't have a lot of confidence that this would work very well for every device.

Also here's an SQL command that hopefully somebody could make into the app for me: `SELECT TrafficRecord.mac, SUM(TrafficRecord.sentPackets), SUM(TrafficRecord.sentBytes), SUM(TrafficRecord.receivedPackets), SUM(TrafficRecord.receivedBytes) FROM TrafficRecord LEFT JOIN TrafficRecord AS Next ON TrafficRecord.id = Next.previousId WHERE Next.id IS NULL GROUP BY TrafficRecord.mac;`
2018-10-02 21:12:19 +08:00
Mygod
dbbc27485c Fix exit code 143 not handled 2018-09-18 17:15:38 +08:00
Mygod
268376a7d5 Use DialogFragments everywhere 2018-09-18 17:09:50 +08:00
Mygod
204145ef4f Move edit configuration logic out of WifiP2pDialogFragment 2018-09-17 23:35:59 +08:00
Mygod
f27fdb5ce7 Catch BLUETOOTH permission missing exception 2018-09-17 22:08:31 +08:00
Mygod
d21193ba17 Fix monitor not set 2018-09-15 15:45:37 +08:00
Mygod
c772d82145 Remove duplicated sanity check 2018-09-13 19:10:33 +08:00
Mygod
ce286ccd01 Update dependencies 2018-09-11 18:17:39 +08:00
Mygod
c7faa24be9 Use monospace for password 2018-09-08 17:08:20 +08:00
Mygod
1db6d6e9ad Fix crashes on root missing 2018-09-07 11:35:09 +08:00
Mygod
22b4dd6438 Kill RootSession on low memory 2018-09-07 10:43:40 +08:00
Mygod
9bc59ac270 Add 60 seconds timeout to RootSession 2018-09-07 10:36:01 +08:00
Mygod
f72a3272cc Check if routings is empty after update 2018-09-06 15:48:46 +08:00
Mygod
823ae9633b Migrate from NoisySu to RootSession
Fix #24. Note that just like before, IpMonitor doesn't use RootSession.
2018-09-06 15:39:00 +08:00
Mygod
e3f1abbb22 Fully support strict mode for system tethering 2018-09-04 17:49:59 +08:00
Mygod
4ea235b52b Fix p2p_supplicant.conf path on Android 9 2018-09-04 08:15:56 +08:00
Mygod
89c26fe384 Support strict mode for system tethering
TODO: Set up rules when upstream interface not found.
2018-09-03 16:37:54 +08:00
Mygod
0342d97fb0 Fix ConcurrentModificationException 2018-09-03 14:21:29 +08:00
Mygod
7a8412407b Use exec whenever possible 2018-08-26 19:24:45 +08:00
Mygod
1c5d7c1109 Ask to disable tethering hardware acceleration on Android 8.1+ 2018-08-26 15:22:27 +08:00
Mygod
2dbfc1804b Add dumpsys connectivity tethering to debug info
I might do some more stuff about this later.
2018-08-24 23:55:56 +08:00
Mygod
698c781cc6 Finalize TV support 2018-08-21 21:41:26 +08:00
Mygod
cd778589c3 Fix bad token 2018-08-20 23:31:34 +08:00
Mygod
a5fe896d31 Fix crash 2018-08-20 23:31:34 +08:00
Mygod
94945c880f Fix IllegalStateException 2018-08-16 11:14:38 +08:00
Mygod
14ccd9e9eb Add night mode support 2018-08-16 11:12:43 +08:00
Mygod
eeff67f47c Fix InvocationTargetException
I'm dumb
2018-08-14 22:06:59 +08:00
Mygod
84bbb32d65 Fix KotlinNullPointerException 2018-08-14 11:18:01 +08:00
Mygod
f160189663 Catch IOException 2018-08-13 02:13:36 +08:00
Mygod
a9e483f3ff Add DHCP workaround
Thanks to petergunn666 for debugging this with me.
2018-08-13 01:41:45 +08:00
Mygod
164d5f0868 Fix DeadObjectException 2018-08-08 17:05:12 +08:00
Mygod
15d838893c SmartSnackbars 2018-08-08 16:03:30 +08:00
Mygod
7ad1a51832 Don't use Snackbar for failed tethering 2018-08-08 15:20:30 +08:00
Mygod
b0d2db2d2d Update dependencies 2018-08-08 15:12:48 +08:00
Mygod
399c97c103 Fix BadToken 2018-08-03 13:33:01 +08:00
Mygod
6939efed0d Refine styling 2018-07-29 01:42:06 +08:00
Mygod
d38d201212 Revert "Disable editing repeater credentials on Android 5"
This reverts commit df304fe674.

This kind of addresses #31. Apparently we can't predict which wpa_supplicant is bundled into the system by inspecting Android version, especially now that it is put into /vendor/bin/hw (see also Project Treble: https://source.android.com/devices/architecture/vndk/).

It might be cool if someone makes a Magisk module that replaces wpa_supplicant to the latest version.
2018-07-28 23:11:41 +08:00
Mygod
df03665816 Refinements 2018-07-28 20:12:04 +08:00
Mygod
4e127bfcb7 Fix crash 2018-07-28 19:43:56 +08:00
Mygod
973fede540 Catch SecurityExceptions 2018-07-28 19:25:40 +08:00
Mygod
e5f54504ca Fix out of bounds 2018-07-24 12:52:41 +08:00
Mygod
a0f8012e5b Add option to start repeater on boot
Fix #9.
2018-07-22 00:53:00 +08:00
Mygod
2578c1c6ec Fix direct boot 2018-07-22 00:25:42 +08:00