Commit Graph
29 Commits
Author SHA1 Message Date
Mygod ac96e6fc9c Min API 19 -> 21
Fix #1579.
2018-01-18 19:57:30 -08:00
Mygod 0d0c2d59de Add android:allowBackup to suppress warning 2017-12-29 18:32:49 +08:00
Mygod 37c051c30a Fix #1515 2017-12-23 09:32:13 +08:00
Mygod 582a6e441b Revert "Donwload fonts through support library. #1515"
This reverts commit 6c89207eff.
2017-12-23 09:20:19 +08:00
Max Lv 6c89207eff Donwload fonts through support library. #1515 2017-12-22 00:29:31 -08:00
Mygod 0b2c9fbcfd Fix issues on Android 4.4 2017-12-20 10:24:35 -08:00
Mygod 540b1d3710 Add some sweet animation to replace old circular progress 2017-12-19 17:01:11 -08:00
Mygod d7a11eaa3b Implement direct boot awareness
To do direct boot, important files need to be moved to device storage (i.e. not as safe storage). The only thing sensitive is user credentials (server settings in each profile) and the config file passed to libss-*.so. In order to implement direct boot, at least the active profile has to be moved/copied to device storage.

This commit keeps profile information (and temporary data used by ProfileConfigFragment) and Shadowsocks config in credential storage and move everything else to device storage. In order to make direct boot work, active profile is also copied into device storage and Shadowsocks config file is created in device storage during direct boot. Cleanup of those information is also implemented.

Fixes #1457.

NB:

* `android:directBootAware` can't be used on application element. That seems to be used by system apps.
* Works fine with multi-user;
* Old GSM files are not migrated (see App.kt) to device storage.
2017-12-15 15:36:19 -08:00
Mygod 14ac54c2de Add support for Auto Backup for Apps 2017-12-15 12:21:30 -08:00
Mygod 3e8b254118 Initial draft for porting this project to Gradle + Kotlin
This is one of my stupidest idea ever.
2017-12-03 10:20:57 -08:00
Mygod f34770f3fb Fix meta-data not in application 2017-11-18 13:52:35 -08:00
Max Lv b510e0ab58 Fix #1452 2017-11-16 21:56:47 -08:00
Mygod fb2fdd5dea Remove extra spaces
As suggested by @wongsyrone.
2017-11-12 16:10:25 -08:00
Mygod 725fb04f3f Implement proxy mode and transproxy mode
* NAT mode is replaced by transproxy mode;
* BaseService classes are moved into bg package and refactored in order to minimize duplicate code;
* Local port is moved out of per-profile settings, along with hardcoded DNS port and transproxy (redsocks) port;
* Reset is removed since the only possible clean-up needed can be performed by using force stop in app info;
* Comparing version code before extracting assets is replaced with a more robust approach: comparing update time.

NB: the only code that involves su now is for toggling TFO.
2017-11-11 00:06:58 -08:00
Mygod 6678fd9541 Revert "Replace NAT mode with local SOCKS5 mode. #1441"
This reverts commit 7fb19c40af.
2017-11-10 19:31:55 -08:00
Max Lv 7fb19c40af Replace NAT mode with local SOCKS5 mode. #1441 2017-11-09 19:02:38 -08:00
Mygod 6fa1c822ef Update platform target to 8.1 (API level 27) 2017-10-28 00:16:05 -07:00
Mygod ac28b83a0b Opt out of cleartext traffic 2017-07-16 15:52:55 +08:00
Mygod 422924f3f4 Opt-in for safe browsing 2017-07-16 15:36:20 +08:00
Mygod 143afb052d Use startService calls instead of AIDL to start services
Because our data store is process-safe, we can remove the `use` function
entirely and move more components to :bg process.
2017-07-15 01:52:53 +08:00
Mygod 02c8be58e3 Remove obsolete strip in AndroidManifest 2017-07-15 01:01:34 +08:00
Mygod dc439b0802 Update to API 26 2017-07-14 11:05:57 +08:00
Max Lv 49e30e7b09 Add back internal QR scanner. #1273 2017-06-05 09:28:34 +08:00
Mygod 1ec80175ea Update target SDK to O preview 2017-05-18 14:35:29 +08:00
Mygod a5e316999a Update dependencies 2017-03-01 15:30:03 +08:00
Mygod 77296cbd3e Remove obsolete permission 2017-01-22 20:51:59 +08:00
Mygod 70e0b3991d Misc improvements for plugin design 2017-01-17 21:14:10 +08:00
Mygod a03ef5dfe9 Initial commit for plugin-lib 2017-01-13 02:29:49 +08:00
Mygod 0030c29b62 Move app to mobile subproject 2017-01-12 23:31:52 +08:00