Compare commits

...

661 Commits

Author SHA1 Message Date
n8fr8 e822160b00 udpate gradle depend version to 0.3.4.8-2 2018-10-11 23:10:09 -04:00
n8fr8 b0e62e58cc updated torrc defaults 2018-10-11 23:09:32 -04:00
n8fr8 43b10491a1 updated bridges 2018-10-11 23:08:38 -04:00
n8fr8 c4cf800488 update build files 2018-10-11 16:51:11 -04:00
n8fr8 0417acf570 update version string to 0.3.4.8-openssl1.0.2p-1 for 2nd release of 0.3.4.8 2018-10-11 16:50:58 -04:00
n8fr8 ff7ecbdba9 update version for gradle lib 2018-10-11 09:27:52 -04:00
n8fr8 3e8e5ace65 update armeabi-v7a binary for 0.3.4.8 2018-10-07 09:40:12 -04:00
n8fr8 0fda8f7779 update x86 binary for 0.3.4.8 2018-10-07 09:35:31 -04:00
n8fr8 6548d3630b update tor binary to 0.3.4.8 w/o dirauth module 2018-10-07 08:55:14 -04:00
n8fr8 d1ee65a795 fixes #7 disable dirauth support for tor client only mode 2018-10-07 08:53:38 -04:00
n8fr8 a2fba85a5b update tor binary to 0.3.4.8 2018-10-07 08:45:09 -04:00
n8fr8 6ef0a45050 update to 0.3.4.8 2018-10-04 11:31:32 -04:00
n8fr8 b82b6a4cb1 update tor binary to tor-0.3.4.7-rc 2018-09-30 18:34:56 -04:00
n8fr8 de522e2ec8 tor-0.3.4.7-rc 2018-09-30 18:34:33 -04:00
n8fr8 0756d058f7 set to libevent 2.0.10-stable 2018-09-30 18:33:21 -04:00
n8fr8 b98cad65d4 set to master for libevent 2018-09-30 14:31:08 -04:00
n8fr8 cd678980f9 remove amazon meek bridge 2018-09-30 14:26:41 -04:00
n8fr8 8a66040c4f updated resource string to 0.3.4.8-openssl1.0.2p 2018-09-13 06:09:05 -04:00
n8fr8 75bd78b287 update gradle archive versioning 2018-09-12 17:14:07 -04:00
n8fr8 fa1ed5505d update Makefile to add specific NDK versioning for openssl 2018-09-12 17:11:31 -04:00
n8fr8 84ab10731c update tor to 0.3.4.8 2018-09-12 17:11:25 -04:00
n8fr8 63656611dc update binaries 2018-09-12 17:09:35 -04:00
n8fr8 84d7745cde update binary constants to trigger upgrade 2018-09-05 21:35:54 -04:00
n8fr8 b0e2d4e63b update library to version 34700 2018-09-05 21:34:25 -04:00
n8fr8 e97d5a1016 update binaries for tor-0.3.4.7-rc 2018-09-05 21:26:20 -04:00
n8fr8 0ba24f8ca4 update tor to tor-0.3.4.7-rc 2018-09-05 21:07:07 -04:00
n8fr8 93663355fa update to ensure compression libs are included in binary 2018-09-05 21:06:09 -04:00
n8fr8 63723e06ef update to 0.3.3.5-rc-3 2018-05-14 12:29:12 -04:00
n8fr8 ae61770960 update loader to handle zipped entries in a zip file (like tor.so in the APK) 2018-05-14 12:28:39 -04:00
n8fr8 45ecbcb298 update gradle build to 0.3.3.5-rc-2 2018-05-14 11:35:36 -04:00
n8fr8 d2342ed7ec add split APK support to the sample 2018-05-14 11:27:01 -04:00
n8fr8 549fb14077 update native loader code 2018-05-14 11:17:14 -04:00
n8fr8 5366016c86 add armeabi-v7a optimized build 2018-05-14 11:17:06 -04:00
n8fr8 de630b45cb add simple sample app 2018-05-14 10:38:29 -04:00
n8fr8 292dcda8e0 add additional ways to load native binaries from native libs 2018-05-14 10:38:10 -04:00
n8fr8 87efd233e5 update gradle version to force refetch 0.3.3.5-rc-1 2018-05-12 00:10:41 -04:00
n8fr8 ff59b5595f updating display string to 0.3.3.5-openssl1.0.2o 2018-05-12 00:05:36 -04:00
n8fr8 9e428e1e09 update archive build version to 0.3.3.5-rc 2018-05-11 23:56:50 -04:00
n8fr8 a46fd778b5 update gradle 2018-05-11 23:55:42 -04:00
n8fr8 db82e6b889 update tor binaries 2018-05-11 23:55:31 -04:00
n8fr8 7a9cbe8fc7 update gradle to 3.1.2 2018-05-11 23:54:59 -04:00
n8fr8 d364a5493c update tor to 0.3.3.5-rc 2018-05-11 23:54:37 -04:00
n8fr8 988a87c8ef upload maven build to 0.3.2.10-dev 2018-05-09 13:03:56 -04:00
n8fr8 51c7a076a5 update makefile to copy into proper native lib location 2018-05-09 12:53:26 -04:00
n8fr8 1b1f64d376 update to use faux .so shared library method for loading tor binary 2018-05-09 12:47:25 -04:00
n8fr8 9abac285db update deploy gradle for 0.3.2.10 2018-04-21 22:14:52 -04:00
n8fr8 808f9594f5 update tor x86 to 0.3.2.10 2018-04-21 22:09:25 -04:00
n8fr8 810eafd6e5 update tor 0.3.2.10 2018-04-21 22:01:26 -04:00
n8fr8 c0bca9f762 Merge branch 'master' of https://github.com/n8fr8/tor-android 2018-04-21 21:46:17 -04:00
Nathan Freitas 9897c1208e
Merge pull request #4 from Unpublished/remove_polipo
remove polipo
2018-04-20 00:20:08 -04:00
Nathan Freitas d194eb8064
Merge pull request #3 from Unpublished/a_few_updates
A few updates
2018-04-20 00:19:57 -04:00
Unpublished 97990103aa update tor to 0.3.2.10, OpenSSL to 1.0.2o and libevent to latest 2.0.* branch 2018-04-02 18:46:45 +02:00
Unpublished 8383c1abbc remove polipo 2018-03-16 17:56:33 +01:00
Unpublished d43fbf96b9 update geoip files to Tor Browser 7.5.1 2018-03-16 10:27:14 +01:00
Unpublished 99eb75aeaf update gradle to 4.5.1
includes speed and memory usage improvements
2018-03-16 10:24:18 +01:00
Unpublished 5e0169d762 remove useless stuff and update android gradle plugin to 3.0.1
put google() on top (google recommends it that way)
2018-03-16 10:24:08 +01:00
n8fr8 93f5239bea update library build to 0.3.1.9b 2018-01-03 22:55:37 -05:00
n8fr8 57ba718e75 update gradle build to 3191 0.3.1.9b
update geoip files (fixes issue with install on some devices)
ensure tor binaries are updated to 0.3.1.9
2018-01-03 22:51:22 -05:00
n8fr8 b4cdbff06b update installer for new geoip uncompressed format 2018-01-03 22:49:40 -05:00
n8fr8 b9a30b71d0 updated binaries for 0.3.1.9 2018-01-03 22:49:06 -05:00
n8fr8 3d0e9a93a6 delete old geoip copmressed files 2018-01-03 22:30:33 -05:00
n8fr8 1ebf0a5c2c update geoip files to latest from Tor Browser 2018-01-03 22:30:18 -05:00
n8fr8 3403b02dd8 Merge branch 'igortoliveira-tor-droid-build' 2017-12-07 12:37:13 -05:00
n8fr8 13d0bddc8c update script to build for x86 and armeabi 2017-12-07 12:36:38 -05:00
n8fr8 fa5aff40cc update some strings in the script 2017-12-07 10:53:51 -05:00
Igor Oliveira 1b1c0b9537 Add android tor build script
It is used to help the developer to fetch and build the app.
Initially, three commands were add:
1. fetch: It fetches the external dependencies
2. build: Build the project in release or debug mode
2017-12-07 13:25:56 -02:00
n8fr8 d64f15533f update gradle version 2017-12-03 16:05:13 +05:30
n8fr8 3528afd114 update constant for tor to 0.3.1.9 2017-12-03 16:02:49 +05:30
n8fr8 3b766484bf update README for 0.3.1.9 2017-12-03 10:04:16 +05:30
n8fr8 fc10fb1a9e update binaries and version to tor 0.3.1.9 2017-12-01 22:39:45 +05:30
n8fr8 ae5420426d remove auto of date patches 2017-11-17 12:37:08 -05:00
n8fr8 b85e0b32f2 remove appcompat library 2017-11-17 12:35:22 -05:00
n8fr8 c2189d4a2c Merge branch 'master' of github.com:n8fr8/tor-android 2017-11-17 12:34:31 -05:00
n8fr8 f15c153bf0 update to support building of aar archives 2017-11-17 12:34:06 -05:00
n8fr8 9b8d8719b6 remove jniLibs dir 2017-11-17 12:33:45 -05:00
n8fr8 673e45d60f remove all JNI code (since VPN isn't included her) 2017-11-17 12:33:29 -05:00
n8fr8 498364c25d update tor binary assets for x86 and armeabi 2017-11-17 12:33:09 -05:00
n8fr8 ffb8dd0b55 update package id to use the word "binary" not "native" 2017-11-17 12:32:24 -05:00
Nathan Freitas cdf3180291
Update README 2017-11-17 12:21:14 -05:00
n8fr8 3d951b9dd8 update path to new assets 2017-11-17 10:59:53 -05:00
n8fr8 f8dbfacdb3 more cleanup, and update of classes for installation 2017-11-17 10:58:42 -05:00
n8fr8 17f03d1f42 rename module to tor-android-binary 2017-11-17 10:45:47 -05:00
n8fr8 7e98222e47 change gitignore to allow for assets 2017-11-17 10:44:42 -05:00
n8fr8 f9c1af9127 removing pdnsd and obfs4proxy binaries 2017-11-17 10:44:29 -05:00
n8fr8 85aaff7152 adding in binary assets for gradle dependency build 2017-11-17 10:43:56 -05:00
n8fr8 7fbd72b0c8 remove pluto/obfs4proxy from build 2017-11-17 10:42:44 -05:00
n8fr8 a27480a208 more cleanup, removal of unused items from orbotservice 2017-11-17 10:40:46 -05:00
n8fr8 ff1979643c cleanup, and update project properties 2017-11-16 13:55:17 -05:00
n8fr8 dd51960b24 update README, clean up old ant and eclipse junk 2017-11-16 13:54:05 -05:00
n8fr8 a810a5add9 more cleanup, and removal of old orbot work 2017-11-16 13:52:37 -05:00
n8fr8 91b73b1f6b remove code only used for Orbot 2017-11-16 13:41:18 -05:00
n8fr8 fce5bdede8 add autopoint to dependencies 2017-11-11 08:56:15 -05:00
Nathan Freitas 72c7e0445c
Merge pull request #97 from SpotComms/padding
Expose *ConnectionPadding
2017-11-11 08:53:21 -05:00
Nathan Freitas 8cf412ad62
Merge pull request #98 from goapunk/add-lzma-zstd-as-dependency
Add lzma and zstd
2017-11-11 08:52:22 -05:00
goapunk c1dfc29e02 Update BUILD instructions
Signed-off-by: goapunk <noobie@goapunks.net>
2017-11-10 18:43:19 +01:00
goapunk 9ca36e1bff Add lzma and zstd
Signed-off-by: goapunk <noobie@goapunks.net>
2017-11-10 18:35:08 +01:00
Tad 6e4b700803 Expose *ConnectionPadding 2017-11-03 14:18:01 -04:00
Nathan Freitas 71e3464358
Merge pull request #94 from Unpublished/fix88
remove some transproxy left overs
2017-11-01 12:22:32 -04:00
Unpublished cbffc1d6ca remove some transproxy left overs
- fix typo to actually show transproxy warning only once (fixes issue #88)
2017-11-01 16:09:25 +01:00
n8fr8 1b904125f3 update CHANGELOG 2017-11-01 09:57:40 -04:00
n8fr8 61aff8ce82 update to 15.5.1-RC-2-multi- 2017-11-01 09:52:34 -04:00
n8fr8 b2de89b2cb fix issue with select apps 2017-11-01 09:51:34 -04:00
n8fr8 5d218adc14 update changelog fo 15.5.1 2017-10-31 11:58:45 -04:00
n8fr8 2c99e9efa4 update version to 15.5.1-RC-1 (1551000*) 2017-10-31 11:51:12 -04:00
n8fr8 c53204f9c3 only refresh VPN settings if app selection changes 2017-10-31 11:11:46 -04:00
n8fr8 5b9eedba1d update VPN app manager to load async, and sort selected to top 2017-10-31 10:21:13 -04:00
n8fr8 1c7eedd4e4 add "no transproxy" warning strings bac kin 2017-10-31 10:00:50 -04:00
Nathan Freitas 19e927effa
Merge pull request #91 from ahf/simpleperf-work
Add `DEBUG` option to external C dependencies
2017-10-31 09:47:50 -04:00
Nathan Freitas 54688e2806
Merge pull request #87 from Akku05/patch-1
for issue #85
2017-10-31 09:47:24 -04:00
Nathan Freitas 14367e0add
Merge pull request #76 from dixidroid/master
fixed crash when an user tries to add the same hidden service port twice
2017-10-31 09:45:19 -04:00
n8fr8 8bbf0ba799 Merge branch 'isolateDest' of https://github.com/SpotComms/orbot into SpotComms-isolateDest 2017-10-31 09:44:08 -04:00
n8fr8 750a282e20 update to latest build tools and gradle
- add new flavordimension tag
2017-10-31 09:42:01 -04:00
Alexander Færøy d591cdb0df Don't strip binaries when doing a debug build.
This patch allows the developer to build the external binaries with
DEBUG=1 which ensures that the final binaries are not stripped from any
debug symbols.

This makes the binaries useful together with Google's simpleperf
profiler for Android.
2017-10-29 22:56:52 -04:00
Alexander Færøy 87edea9ce6 Disable Zstandard for now.
Because of bug #90 the current build process will be broken for people
who have Zstandard headers available on their host system. For people
who do not have the headers available the build system will silently
ignore the `--enable-zstd` and build Tor without support for it.

See: https://github.com/n8fr8/orbot/issues/90
2017-10-29 22:35:54 -04:00
n8fr8 eff2f765db updating this to 15.5.0-RC-1-multi-SDK16
in lite of the feature enhancements and new version of tor
2017-10-25 11:46:15 -04:00
n8fr8 aa9ed7fbe9 update changelog for v15.4.4 2017-10-25 11:44:54 -04:00
n8fr8 0323216569 update to 15.4.4-BETA-2-multi-SDK16 2017-10-25 11:44:00 -04:00
n8fr8 e1ba02a426 improve the layout! 2017-10-25 11:42:36 -04:00
n8fr8 a685bf1488 remove unsupported preferences 2017-10-25 11:42:26 -04:00
n8fr8 091037427a clean up variables and improve how tor process is launched 2017-10-25 11:41:55 -04:00
n8fr8 d24aab8b47 update to Tor 0.3.1.8-openssl1.0.2k 2017-10-25 10:54:10 -04:00
n8fr8 165e95a880 update layout to present "Apps..." option on the main screen 2017-10-25 10:53:30 -04:00
n8fr8 dc7aee1e8e update tor to 0.3.1.8 2017-10-25 10:32:30 -04:00
n8fr8 440290e9d7 show warning about removal of transproxy support
- also make app selection more streamlining
2017-10-25 00:07:11 -04:00
n8fr8 9140ba6a47 we no longer ship xtables, so don't try to install it 2017-10-25 00:06:58 -04:00
n8fr8 f09508def5 remove unused permission 2017-10-24 22:16:01 -04:00
n8fr8 e6003f670f update tor constants to 0.3.1.7-openssl1.0.2k 2017-10-20 00:21:33 -04:00
n8fr8 d86ace63da update version to 15.4.4-BETA-1
update gradle depends
2017-10-20 00:15:24 -04:00
n8fr8 90975fb18a update Makefile for tor compression options 2017-10-20 00:14:57 -04:00
n8fr8 25425a622e remove xtables and iptables (no more root support) 2017-10-17 10:07:54 -04:00
n8fr8 b0b6b68c84 tor-0.3.1.7 update 2017-10-17 09:59:18 -04:00
n8fr8 dceea11782 update version 15430000 aka 15.4.3-RC-1-multi-SDK16 2017-10-16 23:49:03 -04:00
n8fr8 b98a0ff160 simplify bridge selection screen 2017-10-16 23:48:45 -04:00
n8fr8 1e2074c818 update main activity to clean up intents 2017-10-16 23:37:15 -04:00
n8fr8 a5015dc691 update about layout to show obfs4proxy 2017-10-16 23:36:47 -04:00
n8fr8 b322e530da make sure receiver unregisters when destroyed 2017-10-16 23:36:14 -04:00
n8fr8 2bd5614210 update to latest meek amazon bridge:
https://trac.torproject.org/projects/tor/ticket/21918
2017-10-16 23:35:41 -04:00
n8fr8 01176b1d38 big refactor for multiple reasons
- implement LICENSE display in About dialog
- remove root transproxy features
- general crufty stuff cleanup
2017-10-14 12:19:17 -04:00
n8fr8 70693bfc6a update to 4.9 NDK biuld 2017-10-14 12:18:57 -04:00
n8fr8 c4867ba8d2 update Makefile to target NDK 4.9 2017-10-14 12:18:15 -04:00
n8fr8 6ca89b30ba remove old manifest 2017-10-14 12:18:01 -04:00
n8fr8 cc3c4514e8 update license for better Obfs4proxy display 2017-10-14 12:17:48 -04:00
n8fr8 632824bd5f remove RootCommands library as we don't need it now 2017-10-14 12:17:36 -04:00
n8fr8 d190f3a142 add license asset for display in the app 2017-10-14 12:17:08 -04:00
n8fr8 ebc362c4d7 add copyright notice from Obfs4 in the LICENSE file 2017-10-11 23:24:35 -04:00
Akshat Agrawal d94657d1f4 for issue #85
please add this in Build
2017-09-14 19:27:32 +05:30
Tad 18dd53d419 Expose IsolateDestAddr 2017-08-03 11:22:42 -04:00
Igor Koznin 2922e48730 fixed crash when an user tries to add the same hidden service port twice 2017-07-16 15:55:49 +03:00
n8fr8 5b255df92d update target SDK to 23 so we don't have perm downgrade issues 2017-06-09 10:19:47 -04:00
n8fr8 df29aaad8d update CHANGELOG for v15.4.2 2017-06-09 07:54:02 -04:00
n8fr8 e18a7937d2 update tor version string to 0.3.0.8-openssl1.0.2k-1 2017-06-09 07:46:28 -04:00
n8fr8 c874e70fa6 don't build jni/ndk inside of this project 2017-06-09 06:08:05 -04:00
n8fr8 b1ff4d5271 use this as the base manifest 2017-06-09 06:07:43 -04:00
n8fr8 fb7eea9560 where the full permission manifest is defined 2017-06-09 06:07:27 -04:00
n8fr8 132c00a224 add link for builds 2017-06-09 06:07:13 -04:00
n8fr8 fe491b0ec5 don't need specialized menu for this flavor 2017-06-09 04:20:14 -04:00
n8fr8 34043f9ef4 remove version from manifests 2017-06-09 04:12:51 -04:00
n8fr8 674f8ff4aa add min and full perm build flavors 2017-06-09 04:12:40 -04:00
n8fr8 67cb36ef63 new release for minimal perms SDK up to 23 2017-06-09 04:00:10 -04:00
n8fr8 78984bd344 don't show new features that require new perms on < SDK 23 2017-06-09 03:59:50 -04:00
Nathan Freitas 028f76e62e add "minimal permission" build for SDK 16 to 22 devices
- these platforms don't allow for runtime permissions requests and the new permissions we are asking for can be alarming
- we will disable the advanced hidden service features on these devices
2017-06-09 02:01:42 -04:00
Nathan Freitas ad1bcb8d5d update tor repo to 0.3.0.8 2017-06-09 01:36:58 -04:00
Nathan Freitas 2403e8c333 improve reliability of starting and stopping 2017-06-01 16:32:02 -04:00
Nathan Freitas 62fec5343c update to 15.4.1-RC-1-multi (15410000) 2017-06-01 00:32:53 -04:00
Nathan Freitas 5d966447ce update to latest gradle 2017-06-01 00:20:32 -04:00
Nathan Freitas bb8373bdd6 update tor constants 2017-06-01 00:08:17 -04:00
Nathan Freitas 837d812916 update to 0.3.0.7 2017-06-01 00:08:03 -04:00
Nathan Freitas 6d0d4a3d20 update to 15.4.0-beta-2-multi 2017-03-22 13:26:49 -04:00
Nathan Freitas 5b9a34199e update notification styling 2017-03-22 12:58:34 -04:00
Nathan Freitas 248bcc979d update tor constants value for tor 0.2.9.9 2017-03-22 12:49:18 -04:00
Nathan Freitas 7dbae837de modify notification display 2017-03-22 12:47:54 -04:00
Nathan Freitas c0d082ed78 remove bridge logic from activity (now in service) 2017-03-22 12:47:38 -04:00
Nathan Freitas 4af61b609e update logic for bridge selection 2017-03-22 12:47:05 -04:00
Nathan Freitas 301ef3948e add version display to sidebar 2017-03-22 12:46:48 -04:00
Nathan Freitas 11c6abf59d update default built in bridges 2017-03-22 12:46:14 -04:00
Nathan Freitas ea40bb4510 update gradle build settings 2017-03-22 12:46:01 -04:00
Nathan Freitas 9019ceb898 switch back to 0.2.9.9 tor 2017-03-22 12:45:42 -04:00
Nathan Freitas b8aaa2c7d9 update obfs4 bridges to match latest from tor browser 2017-03-19 23:21:49 -04:00
Nathan Freitas 1d3a99ea6c update constants for Tor 0.3.0 RC 2017-03-19 23:15:51 -04:00
Nathan Freitas 128cfe8394 update to latest gradle 2017-03-19 23:11:12 -04:00
Nathan Freitas 6496cb11d6 Update to briges thanks to David Fifield
https://lists.mayfirst.org/pipermail/guardian-dev/2017-March/005209.html
https://lists.mayfirst.org/pipermail/guardian-dev/2017-March/005211.html
2017-03-19 23:10:09 -04:00
Nathan Freitas 4d4fb82419 update to to 0.3-release 2017-03-19 07:55:35 -04:00
Nathan Freitas 7eb7a76bbe update pluto library 2017-03-06 01:17:25 -05:00
Nathan Freitas e801eaa27a update SDK target to 25 2017-03-01 23:08:48 -05:00
Nathan Freitas 673e6c8af7 improve landscape view on smaller screens 2017-03-01 23:08:31 -05:00
Nathan Freitas fc4b0940d9 update tor binary constants 2017-02-28 23:36:47 -05:00
Nathan Freitas ec2f8290f1 update target SDK to 25 2017-02-28 23:36:40 -05:00
Nathan Freitas 894b5817db add tuned landscape view 2017-02-28 23:36:24 -05:00
Nathan Freitas efde11ffc4 update maxfile for tor 0.2.9.9 2017-02-28 23:21:42 -05:00
Nathan Freitas 7bac212290 update to release-0.2.9 2017-02-28 23:01:30 -05:00
Nathan Freitas 44ab128c29 update to OpenSSL_1_0_2k 2017-02-28 23:01:11 -05:00
Nathan Freitas cb2c5fe661 Merge branch 'fix_bug_63' of https://github.com/arrase/orbot into arrase-fix_bug_63
Conflicts:
	app/src/main/java/org/torproject/android/OrbotMainActivity.java
2017-01-14 06:45:43 -05:00
Nathan Freitas 19539620a9 cache circuits by circId 2017-01-14 06:40:25 -05:00
Nathan Freitas c9fc49a2de we want to only look up iptables once per run 2017-01-14 06:40:10 -05:00
Nathan Freitas 26b9199378 Merge branch 'hidden_services' of https://github.com/arrase/orbot into arrase-hidden_services 2017-01-13 22:19:02 -05:00
Nathan Freitas d937b9b958 Merge branch 'update-ant-build' of https://github.com/eighthave/orbot into eighthave-update-ant-build 2017-01-13 22:16:59 -05:00
Nathan Freitas a5744d7958 small chnage to only check for sys iptables once 2017-01-13 22:14:39 -05:00
Nathan Freitas 970710d03c Merge branch 'fixiptables' of https://github.com/Unpublished/orbot into Unpublished-fixiptables 2017-01-13 22:13:10 -05:00
arrase f1a8fbd6b6 isolate 2016-12-08 16:16:47 +01:00
arrase ad68947dd4 fix for bug 63 2016-12-08 16:12:29 +01:00
arrase 500075454a fix typo 2016-12-08 15:45:16 +01:00
arrase 41ebcc5050 Deal with Doze in the less painful way 2016-12-08 15:22:53 +01:00
arrase 2aa2b4c370 New feature added: HidServAuth manager and QR share 2016-12-06 23:10:36 +01:00
arrase 9961ad0b84 adds padding to the hs switch 2016-12-06 15:03:44 +01:00
arrase f3af9daa55 fix: focusable 2016-12-06 00:52:24 +01:00
arrase 4f7271b76e feature added: temporarily disable a hidden service 2016-12-06 00:27:25 +01:00
arrase 94c68579e0 fix untranslated arrays 2016-12-05 22:29:33 +01:00
arrase ba76f574a9 spanish translation 2016-12-05 22:20:47 +01:00
arrase 070d615183 center port text 2016-12-05 21:28:33 +01:00
arrase 8d5df9c9eb better cookie dialog 2016-12-05 21:14:15 +01:00
arrase 2d0437a834 return auth cookie at intent service 2016-12-04 22:12:41 +01:00
arrase 4d0fe27ea3 adds optional HiddenServiceAuthorizeClient option for each hidden service 2016-12-04 21:10:44 +01:00
arrase 54e2e5e372 fix for:
https://github.com/n8fr8/orbot/issues/63
2016-11-29 21:04:41 +01:00
arrase 07532bb04c a better isolation of my changes 2016-11-29 20:33:34 +01:00
arrase ed5e8aca9c fix 2016-11-29 19:09:10 +01:00
Juan Ezquerro LLanes 7a941edeee fix 2016-11-29 11:16:35 +01:00
Juan Ezquerro LLanes dd99f8f0a3 Merge branch 'master' into hidden_services
# Conflicts:
#	app/src/main/java/org/torproject/android/OrbotMainActivity.java
2016-11-29 11:15:27 +01:00
Juan Ezquerro LLanes 3ba1d395ea Merge branch 'master' into hidden_services
# Conflicts:
#	app/src/main/java/org/torproject/android/OrbotMainActivity.java
2016-11-29 11:09:49 +01:00
arrase f6f4d26645 type selection spinner 2016-11-29 01:41:41 +01:00
arrase bb5f323b71 fix string 2016-11-29 00:11:25 +01:00
arrase 8abfba5fe5 fix indent 2016-11-29 00:06:59 +01:00
arrase 155c18235a feedback 2016-11-28 23:58:55 +01:00
arrase f76f58e2bf delete files from storage 2016-11-28 23:43:43 +01:00
arrase f742b270e3 delete by id 2016-11-28 23:32:35 +01:00
arrase 07044f7748 confirm_service_deletion 2016-11-28 23:25:19 +01:00
arrase a0b3d72fa8 fab icon and color 2016-11-28 22:43:11 +01:00
arrase 0bdcab134c get data from cursor 2016-11-28 22:25:59 +01:00
arrase 7a9ad4720b non perfect but better option to start/stop 2016-11-28 22:06:09 +01:00
arrase 9ffb0b3915 bug fix 2016-11-28 01:04:32 +01:00
arrase 0a6d623cf7 bug fix 2016-11-28 00:38:26 +01:00
arrase 9e0bdcf147 bug fix 2016-11-27 23:52:35 +01:00
arrase 238a695c1b bug fix 2016-11-27 23:01:58 +01:00
arrase 799d18cbdc bug fix 2016-11-27 23:00:25 +01:00
arrase 1060c69623 intent api: restore key 2016-11-27 20:57:47 +01:00
arrase bb7ffd9692 intent api: restore key 2016-11-27 20:07:49 +01:00
arrase 5d3b171e21 refactor 2016-11-27 19:19:44 +01:00
arrase f153600dd1 insert or update 2016-11-27 19:12:16 +01:00
arrase 5f02561f9d backup restore 2016-11-27 18:50:20 +01:00
arrase 130b89d846 Write config.json 2016-11-27 17:15:15 +01:00
arrase fca54cfcdc move hidden services to files directory 2016-11-27 16:03:38 +01:00
arrase a49ac3fcc5 padding 2016-11-24 22:45:37 +01:00
arrase b04d0eb17a actionbar permission request flow 2016-11-24 22:22:04 +01:00
arrase 17efdcafa2 check empty names 2016-11-24 03:06:40 +01:00
arrase d28db41782 big refactor 2016-11-24 02:56:11 +01:00
arrase 6658101dd9 more margin 2016-11-24 02:39:41 +01:00
arrase da601d86ef layout fix 2016-11-24 02:35:00 +01:00
arrase 85de87f0a0 layout fix 2016-11-24 02:30:19 +01:00
arrase 872ec40214 restore backup dialog 2016-11-24 02:22:41 +01:00
arrase f79d2d9005 bug fix and refactor 2016-11-23 21:20:50 +01:00
arrase 0b21dfc46a bug fix 2016-11-23 02:06:38 +01:00
arrase 22c573f70a adds AppDataProvider 2016-11-23 01:37:06 +01:00
arrase 0818b0c963 isolate hidden services configuration dirs 2016-11-23 00:12:06 +01:00
arrase 53e53d6fff clean 2016-11-22 23:19:48 +01:00
arrase f030963c9e refactor 2016-11-22 22:37:34 +01:00
arrase 7600b4c58c menu entry for restore backup 2016-11-22 01:24:23 +01:00
arrase 57a7b0dbc7 remove class 2016-11-22 00:45:07 +01:00
arrase 71d24e832b bugfix 2016-11-22 00:22:22 +01:00
arrase dbc7ff3b7d flag for services created by user 2016-11-22 00:12:38 +01:00
arrase f58265ae9f fab icon 2016-11-21 22:46:37 +01:00
arrase 8c7b897cd8 isolated permission request 2016-11-21 22:43:08 +01:00
arrase 8585466c96 adds toolbar 2016-11-21 21:48:45 +01:00
arrase d1884c3349 refactor 2016-11-21 00:04:48 +01:00
arrase e8a5099518 refactor 2016-11-21 00:00:58 +01:00
arrase 0fd59bc78d restore backup from intent 2016-11-20 23:56:17 +01:00
arrase 11e663be67 feedback 2016-11-20 22:51:36 +01:00
arrase 3e6c627712 action moved 2016-11-20 22:31:12 +01:00
arrase 08fb68dcaa action moved 2016-11-20 21:11:17 +01:00
arrase d048cd6fb2 request permissions 2016-11-20 19:03:45 +01:00
arrase 8e9bc2f840 some actions 2016-11-20 04:39:34 +01:00
arrase 8494cfb633 actions dialog 2016-11-20 03:20:14 +01:00
arrase c232e1c92e switch to listview 2016-11-20 01:52:23 +01:00
arrase fa6151cc99 adds card view 2016-11-18 03:16:31 +01:00
arrase e60e82859b margin 2016-11-18 01:26:10 +01:00
arrase 4155246b88 more ps 2016-11-18 01:00:57 +01:00
arrase 5edfc344dc create zip backup from itent 2016-11-18 00:53:49 +01:00
arrase 9bb3e2a7b3 do not allow updates after creation via intent 2016-11-17 22:55:18 +01:00
arrase 356d7235b4 preference migration 2016-11-17 22:10:46 +01:00
arrase c6054bb256 @NonNull 2016-11-17 20:48:20 +01:00
arrase 67d999b831 bug fix 2016-11-17 20:45:40 +01:00
arrase 6b3fc6183e changes for new securety layer 2016-11-17 19:34:08 +01:00
Juan Ezquerro LLanes 21acd568b1 delete layout 2016-11-17 16:51:39 +01:00
Juan Ezquerro LLanes c3d7743fda save checkbox value 2016-11-17 16:33:07 +01:00
Juan Ezquerro LLanes 4fea84cc5f allow managed backups field 2016-11-17 16:21:28 +01:00
Juan Ezquerro LLanes e152dd3810 update new onions 2016-11-17 15:43:50 +01:00
Juan Ezquerro LLanes 22de2eb269 add a note for later 2016-11-17 15:06:17 +01:00
Juan Ezquerro LLanes 3b63e31c10 no longer needed 2016-11-17 14:02:14 +01:00
Juan Ezquerro LLanes 8b3a26f297 no longer needed 2016-11-17 13:45:31 +01:00
Juan Ezquerro LLanes ff47ccd340 setup config file 2016-11-17 13:42:50 +01:00
Juan Ezquerro LLanes d1c117adb4 revert 2016-11-17 12:04:44 +01:00
Juan Ezquerro LLanes 471c5ac5fb revert 2016-11-17 12:02:40 +01:00
Juan Ezquerro LLanes 3f384c060b wait for hostname 2016-11-17 11:38:23 +01:00
Juan Ezquerro LLanes e776e12492 Update UI for onion port 2016-11-17 10:14:01 +01:00
Juan Ezquerro LLanes b10387bb07 fix 2016-11-17 09:51:33 +01:00
Juan Ezquerro LLanes 1af2fcb91f a better name for that 2016-11-17 09:49:39 +01:00
Juan Ezquerro LLanes ebc736be8d option for map a local port to different onion port number 2016-11-17 09:48:27 +01:00
arrase 94a3b0b107 adds optional boolean to the intent 2016-11-17 04:17:08 +01:00
arrase 0131cf20f0 adds optional string to the intent 2016-11-17 04:09:45 +01:00
arrase 3f7435c90e Hidden Service dialog 2016-11-17 02:57:37 +01:00
arrase 135e6c4ae0 Move layout 2016-11-17 02:35:38 +01:00
arrase 26d938126f New hidden services management screen and database 2016-11-17 02:27:48 +01:00
Nathan Freitas ff61d66bcf make sure tor network is re-enabled when user tries to restart 2016-11-16 07:52:21 -05:00
Nathan Freitas d09c2b59b4 put short status display back on main screen 2016-11-16 07:52:06 -05:00
Nathan Freitas 45105572d9 if there is no status intent yet, then create one, and don't NPE 2016-11-16 07:50:40 -05:00
Nathan Freitas 84d6a767ae update for RC8 multi 2016-11-07 00:27:15 -05:00
Nathan Freitas 34079c7a15 15.2.0-RC-8-multi 2016-11-07 00:26:11 -05:00
Nathan Freitas 540db0f00b revert back to NDK toolchain 4.8 since it is more stable 2016-11-07 00:23:19 -05:00
Nathan Freitas 73e9ac820e just go back to basic arm and x86 builds
other builds and new ndk toolchain is causing crashes
2016-11-07 00:19:43 -05:00
Nathan Freitas fd92359ccd improvements to app selection UI for better layout and error handling 2016-11-07 00:19:06 -05:00
Nathan Freitas 7bbfd4eff8 tune line length here for other locales 2016-11-06 23:59:12 -05:00
Nathan Freitas e7443890c5 improve UI setup here for list to reduce NPE crashes 2016-11-06 23:58:50 -05:00
Nathan Freitas dedf213028 make sure browser intent exists before you open it
for some reason, we see a lot of random crashes here
do people really run devices without browsers on them?
2016-11-06 23:57:37 -05:00
Nathan Freitas 5c4d146f0e update changelog for RC7 2016-11-04 07:51:03 -04:00
Nathan Freitas b147d5d21e update tor binary flag for new SSL 2016-11-04 00:02:15 -04:00
Nathan Freitas eb45d61dc9 update to 15.2.0-RC-7-multi for new OpenSSL 1.0.2j 2016-11-03 22:55:03 -04:00
Nathan Freitas 7dd82aedd8 updated OpenSSL string in about UI to 1.0.2j 2016-11-03 22:54:04 -04:00
Nathan Freitas 693bc9e362 update openssl to OpenSSL_1_0_2j 2016-11-03 21:39:26 -04:00
Nathan Freitas 523b7b0eb7 update for arm-x86 joint build 15.2.0-RC-6-multi 2016-11-03 17:30:33 -04:00
Nathan Freitas 0efbb1729e update for new joint arm+x86 build release 2016-11-03 17:28:01 -04:00
Nathan Freitas 2a0145693d update changelog for RC5 2016-11-03 12:50:45 -04:00
Nathan Freitas 24dee21b96 15.2.0-RC-5 notification fixes! 2016-11-03 12:49:54 -04:00
Nathan Freitas ba212a447c make sure notification is shown immediately while starting up 2016-11-03 12:45:00 -04:00
Nathan Freitas 45f7ae23c6 expanded notifications should be on by default for SDK 16+ 2016-11-03 12:44:41 -04:00
Nathan Freitas 204b3f0441 update changelog for RC4 2016-11-03 12:24:12 -04:00
Nathan Freitas 6b2679cac1 update manifest for 15.2.0-RC-4 2016-11-03 12:23:22 -04:00
Nathan Freitas 89f3fcacf2 make sure the binaries are cleanly installed (bump version number) 2016-11-03 12:21:54 -04:00
Nathan Freitas f5f544c2d3 update to latest badvpn for new torservice package 2016-11-03 12:19:24 -04:00
Nathan Freitas f21f14bf5b make sure tun2socks is loaded properly 2016-11-03 12:18:20 -04:00
Nathan Freitas 460f365b4a make sure Tun2Socks native library gets loaded 2016-11-03 12:17:55 -04:00
Nathan Freitas 5927fb0123 update the build to target all arm types 2016-11-03 12:17:23 -04:00
Nathan Freitas 5ac21be984 use PIEFLAGS 2016-11-03 11:00:12 -04:00
Nathan Freitas 0050bfeb95 update JNI targets 2016-11-03 10:38:10 -04:00
Nathan Freitas 1ae0c71ac7 fixes github #59 for crash on app list UI 2016-11-03 10:36:39 -04:00
Nathan Freitas e9ece471b7 update gitignore to ignore binaries 2016-11-02 15:00:28 -04:00
Nathan Freitas 37cd0241e5 don't need to store this binary in the repo 2016-11-02 15:00:08 -04:00
Nathan Freitas 0d00c06450 update changelog for rc3 2016-11-02 13:48:52 -04:00
Nathan Freitas 354ce24283 update manifest to 15.2.0-RC-3 2016-11-02 13:47:41 -04:00
Nathan Freitas 41c9d2cd5d lock in app item list row height 2016-11-02 12:07:57 -04:00
Nathan Freitas 52e7ad3bf0 add RootCommands library back in for shell and root shell exec 2016-10-31 15:52:03 -04:00
Nathan Freitas af69041811 remove old superuser-commands 2016-10-31 06:54:15 -04:00
Nathan Freitas 5d52f04556 update to 15.2.0-RC-2 2016-10-29 11:42:50 -04:00
Nathan Freitas dacf2ef9f5 cleanup resources and unused drawables 2016-10-29 11:42:27 -04:00
Nathan Freitas d25b3d5de8 tweak root preferences 2016-10-29 11:33:45 -04:00
Nathan Freitas 4d66133894 remove unused files 2016-10-29 11:33:37 -04:00
Nathan Freitas ef57341c6e re-enabled root permission request and shell 2016-10-29 11:33:26 -04:00
Nathan Freitas f4638873f8 quick fixes for app UI and VPN dialog 2016-10-29 11:20:51 -04:00
Nathan Freitas af8a867bfe update changelog for 15.2.0 RC 1 2016-10-28 12:03:00 -04:00
Nathan Freitas 9077bd236d update to 15.2.0-RC-1 and SDK min of 16 2016-10-28 11:45:43 -04:00
Nathan Freitas 085ddb3745 make ndk-build work again 2016-10-24 21:58:30 -04:00
Nathan Freitas 290059dfb9 fix string path in build script 2016-10-24 21:57:07 -04:00
Nathan Freitas dec3d9530d add proguard rules to optimize orbot binary 2016-10-24 21:55:01 -04:00
Nathan Freitas 160383ba6d update for gradle 2016-10-24 21:54:54 -04:00
Nathan Freitas b4906c09fd update CHANGELOG 15.2.0-beta-2 2016-10-24 16:53:06 -04:00
Nathan Freitas 12b1198b4b update to 15.2.0-beta-2 2016-10-24 16:51:52 -04:00
Nathan Freitas 345aea9ad2 move the controls to the left sidebar; improve VPN mode more 2016-10-24 16:50:59 -04:00
Nathan Freitas c76d935cc3 improve bridge dialog display 2016-10-24 15:31:41 -04:00
Nathan Freitas ac037a9dc5 fix browser install request 2016-10-24 15:00:47 -04:00
Nathan Freitas 28f1dbf7dd make the VPN/apps mode have a better UI flow 2016-10-24 14:30:46 -04:00
Nathan Freitas c1ffdbb4e7 put browser button back in 2016-10-24 10:50:14 -04:00
Nathan Freitas 518f70d872 comment out notification actions for now 2016-10-24 10:49:47 -04:00
Nathan Freitas 0bb8e846ad update Tor version to 0.2.8.9 2016-10-24 10:40:38 -04:00
Nathan Freitas 2125db1504 make start and stop of Tor service all hanlded through executor 2016-10-21 14:53:58 -04:00
Nathan Freitas d8648a5864 remove meek-google as an option 2016-10-21 14:41:06 -04:00
Nathan Freitas 2676cd3fc6 update resource to make smaller 2016-10-21 14:39:04 -04:00
Nathan Freitas 3ee6b2a6b5 don't fail on lint for release builds 2016-10-20 10:50:19 -04:00
Nathan Freitas e3d7ca28a0 update tor 0.2.8.9 2016-10-20 10:30:22 -04:00
Nathan Freitas 126c82adc2 update changelog with tag hash 2016-10-17 11:04:54 -04:00
Nathan Freitas bade4fe66d update changelog 2016-10-13 15:36:23 -04:00
Nathan Freitas abaa3f83fc 15.2.0-beta-1 2016-10-13 15:35:23 -04:00
Nathan Freitas 61affce706 Merge pull request #55 from n8fr8/dev_gradle
Dev gradle
2016-10-13 15:33:32 -04:00
Nathan Freitas cd8b549d1a add the compiled tun2socks lib for devs who just want to work on UI 2016-10-13 15:31:59 -04:00
Nathan Freitas 3c181bc6f2 add the proguard rules 2016-10-13 15:31:53 -04:00
Nathan Freitas 9948975d4f we aren't going to show a notification light 2016-10-13 15:31:34 -04:00
Nathan Freitas 50f33c9ca2 make sure we set VPN mode properly before we launch the service 2016-10-13 15:31:12 -04:00
Nathan Freitas 9de4f54e6b using compat builder for notifications 2016-10-12 16:58:56 -04:00
Nathan Freitas 330860216a improve the code for launching the pdnsd daemon 2016-10-12 16:46:53 -04:00
Nathan Freitas da0fb101f3 multiple fixes to re-enable VPN mode and pdnsd daemon 2016-10-12 16:01:09 -04:00
Nathan Freitas ca238c6521 continued re-integration of VPN feature 2016-10-04 23:46:17 -04:00
Nathan Freitas 1614921e34 clean pdnsd binaries from libs in Makefile 2016-10-04 23:45:47 -04:00
Nathan Freitas 1db567698d continue to migrate service and VPN code 2016-09-29 12:00:57 -04:00
Nathan Freitas d5f2c063b5 remove vpn code that is now in the service module 2016-09-29 12:00:40 -04:00
Nathan Freitas 34c7cfd2e1 modify jni build inclusion 2016-09-29 12:00:26 -04:00
Nathan Freitas 268002bc75 fix build scripts for new paths 2016-09-29 12:00:09 -04:00
Hans-Christoph Steiner 1e93ef4606 improved javadoc of start process 2016-09-26 21:06:22 +02:00
Hans-Christoph Steiner 610abf5b79 fix ant builds by using frozen SDK
legacy!  This uses a copy of the Android SDK that is frozen to the last
version that works with ant builds.
2016-09-26 21:06:12 +02:00
Nathan Freitas 6333a45f69 update gitignore to handle orbotservice binary libs 2016-09-26 12:04:16 -04:00
Nathan Freitas d2cf5453e2 move jni code and VPN logic from app module to service 2016-09-26 12:03:30 -04:00
Nathan Freitas 9f61afcdef improve tor service event handling and display 2016-09-26 11:39:07 -04:00
Nathan Freitas ebc046e92d remove littleproxy reference (for now!) 2016-09-25 19:10:38 -04:00
Nathan Freitas 7c3a16f86f we don't need a separate service for the VPN 2016-09-25 19:10:01 -04:00
Nathan Freitas 7950cac801 remove dated information in the BUILD file 2016-09-25 18:53:30 -04:00
Nathan Freitas 9afbb0007f update gradle props and ignore files we don't want in repo 2016-09-25 18:51:22 -04:00
Nathan Freitas 7284a5e1fb make sure Tor start/stop work
- use Process instance instead of processID lookup
- reply on Tor's HALT command
2016-09-25 18:49:32 -04:00
Nathan Freitas 55e08b9de4 tweak homescreen layout and strings 2016-09-25 18:49:20 -04:00
Nathan Freitas d56fdb20aa renable polipo 2016-09-23 11:01:20 -04:00
Nathan Freitas 90d77ce4be modify imports 2016-09-19 16:11:44 -04:00
Nathan Freitas 1ffea580c4 udpate resource paths 2016-09-19 16:11:30 -04:00
Nathan Freitas bab79046b2 target API 14 2016-09-19 16:10:13 -04:00
Nathan Freitas aba7f8e40e update gitignores for gradle 2016-09-19 16:09:58 -04:00
Nathan Freitas 912cb74243 update tor to 0.2.8.7 2016-09-19 16:09:10 -04:00
Nathan Freitas 5a4e00a186 fix paths for new module layout 2016-09-19 16:08:31 -04:00
Nathan Freitas ecf90235af remove old binaries 2016-09-19 16:08:15 -04:00
Nathan Freitas 10f1ade6e4 update makefile and add new patch 2016-09-19 16:06:34 -04:00
Nathan Freitas b52023a502 move assets to service project 2016-06-29 10:49:18 -04:00
Nathan Freitas 549399b82c launch default activity from notification 2016-06-29 10:48:59 -04:00
Nathan Freitas 6d0fdbba10 update gitignore for gradle project 2016-06-29 10:10:14 -04:00
Nathan Freitas 56683a39b3 add pdnsd library in for vpn service DNS! 2016-06-29 10:09:47 -04:00
Nathan Freitas 29fd07ac34 remove patches from here, moved to external 2016-06-29 10:08:44 -04:00
Nathan Freitas 0f00e12cdc move patches to external since that is what it is applied to (external code) 2016-06-29 10:01:42 -04:00
Nathan Freitas 54b3349344 remove redundant code from old ant build format (not in gradle modules) 2016-06-29 09:54:03 -04:00
Nathan Freitas 18682e4b97 big check-in of major gradle refactor; now building and running!
VPN features are disabled for now
2016-06-29 00:20:20 -04:00
Unpublished 639bc3241e fix usage of system iptables 2016-06-24 00:49:34 +02:00
Nathan Freitas bdb58933b2 update translations 2016-04-01 09:23:41 -07:00
Nathan Freitas 40233543d3 Merge branch 'master' of github.com:n8fr8/orbot 2016-03-22 16:20:26 -04:00
Nathan Freitas 6e45c07c7d Merge pull request #32 from ghost/patch-1
Start meek transport whe using custom meek bridges
2016-03-22 16:20:14 -04:00
srvetus 21c5bcc7e7 Remove typo 2016-03-20 03:47:50 +00:00
srvetus 5adcbecf4c Start the meek transport for custom meek bridges 2016-03-20 03:45:11 +00:00
Nathan Freitas 8e7a8111a9 update with commit tag for v15.1.3 beta 1 2016-03-09 15:50:07 -05:00
Nathan Freitas d6eccc3138 update changelog 2016-03-09 15:35:55 -05:00
Nathan Freitas 6452075d46 15.1.3-beta 2016-03-09 14:51:25 -05:00
Nathan Freitas 9097b79a7e Move OrbotVPNService to a Manager and consolidate services
This allows for the VPN service to be set in the foreground with the TorService
and reduce the chance to be killed due to lack of memory
2016-03-09 14:43:01 -05:00
Nathan Freitas 2973eaccd8 change how we look for processes to kill. fixes tor trac #18502 2016-03-08 13:05:35 -05:00
Nathan Freitas cec82ec0de VPN code cleanup and ensure DNS is listening on all interfaces 2016-03-07 14:02:07 -05:00
Nathan Freitas 4892f93531 DNS lookup through pdnsd should loop back into Tor DNS port
While the TCP query to Google DNS before provided more robust DNS services,
it could still leak outside the VPN service based on platform version
and other circumstances. By using PDNSD as a proxy back into Tor's limited DNS
service, we ensure DNS does not leak.
2016-03-07 13:52:52 -05:00
Nathan Freitas beb3bc8a4a update changelog for 15.1.2 2016-02-24 10:01:28 -05:00
Nathan Freitas 204733a245 update to 15.1.2 2016-02-23 23:23:32 -05:00
Nathan Freitas 57855932f4 move to using meek_lite mode from obfs4client and update/improve proxying code 2016-02-23 23:21:02 -05:00
Nathan Freitas 66a5b7ad26 remove meek-client and use obfs4 meek_lite mode instead 2016-02-23 23:20:21 -05:00
Nathan Freitas 3eb70b8b9a switch back to Android-16 as target 2016-02-23 23:19:52 -05:00
Nathan Freitas 44dae6bc1d 15.1.1 PIE Android 16+ 2016-02-22 16:02:56 -05:00
Nathan Freitas f9f33a171c set this to Android 16 SDK for PIE executable
We'll use a different build for non-PIE < Android-16
2016-02-22 15:59:35 -05:00
Nathan Freitas e9d28a4445 handle NPE better for dev.gp.info #6686
in some cases the connection becomes null while you are interacting with it
2016-02-22 15:07:40 -05:00
Nathan Freitas 00f82f0913 update git submodules 2016-02-22 13:19:15 -05:00
Nathan Freitas 9a8e4dd80f update to orbot ant build version 2016-02-22 12:33:12 -05:00
Nathan Freitas 80e8c47e62 peg to last ant compat release 2016-02-22 12:09:37 -05:00
Nathan Freitas 043b151fb1 Merge branch '1984-bridges' of https://github.com/mrphs/orbot into dev_nima_1984_bridges 2016-02-22 11:05:37 -05:00
Nima Fatemi 5eb628b03a bridges dedicated to GeorgeTorwell 2016-02-09 22:16:52 +00:00
Nathan Freitas c8584f6ec9 update superuser commands library 2016-02-02 12:23:58 -05:00
Nathan Freitas bac16a57fc enable backwards compat to Android SDK 10 (Android 2.3.*) 2016-02-02 12:22:24 -05:00
Nathan Freitas e1d46c49b9 reset minSDK to 10 2016-02-02 11:35:02 -05:00
Nathan Freitas 3cc2439b5f update license to include badvpn 2016-01-29 17:05:29 -05:00
Nathan Freitas 9c82aa85d0 fix escaping of apostro 2016-01-29 14:27:14 -05:00
Nathan Freitas eba95b2941 update strings and descs from transifex
(somehow french got left out before!)
2016-01-29 14:05:13 -05:00
Nathan Freitas 8047ec67d0 update the log 2016-01-28 09:27:04 -05:00
Nathan Freitas 91225ab053 15.1.0-RC-7 2016-01-28 09:25:41 -05:00
Nathan Freitas fd45fa38f6 enable TransProxy and DNSPort by default without root
- some users run their own iptables transproxy scripts with AFWall and need Orbot to have these ports open by default. There is no risk to enable them by default, so we'll them on for now, and think about how to better make this a user option in the future.
2016-01-28 09:24:07 -05:00
Nathan Freitas b76a2504bb update for RC-6...final?! 2016-01-27 10:15:24 -05:00
Nathan Freitas a8dbdacbcb 15.1.0-RC-6 2016-01-27 10:14:03 -05:00
Nathan Freitas eea9579ea3 Merge pull request #27 from eighthave/master
make-release-build tweaks
2016-01-27 10:02:08 -05:00
Hans-Christoph Steiner 226d92ebcd make-release-build: env vars need to be first on the command line 2016-01-27 13:31:09 +01:00
Hans-Christoph Steiner 20c16aec68 ignore more files generated by the build 2016-01-27 13:31:09 +01:00
Hans-Christoph Steiner 9883a8931a faketime is only needed when building, not when cleaning
cleaning while running faketime will just slow it down or cause weird
behavior.
2016-01-27 09:43:56 +01:00
Nathan Freitas 1839b8f0b9 add-in missing "break" for Meek Google 2016-01-26 18:31:04 -05:00
Nathan Freitas eaa2dde611 explicitly indicate we are building armeabi 2016-01-26 18:29:37 -05:00
Nathan Freitas 1b76c3636e add make calls for both armeabi and x86 with clean 2016-01-26 18:21:05 -05:00
Nathan Freitas 75eb36edb6 remove lib binaries 2016-01-26 18:20:56 -05:00
Nathan Freitas 3be93a0eaf only build for x86 and armeabi 2016-01-26 18:20:45 -05:00
Nathan Freitas 2ae22ec3e4 update changelog for v15.10 RC-5 2016-01-26 03:43:30 -05:00
Nathan Freitas 33fa19f989 15.1.0-RC-5 2016-01-26 03:42:24 -05:00
Nathan Freitas 9b9bab3a75 Merge branch 'new-bridges' of https://github.com/mrphs/orbot into mrphs-fixes 2016-01-25 23:53:14 -05:00
Nathan Freitas 25150a329c Merge branch 'bug-18148' of https://github.com/mrphs/orbot into mrphs-fixes 2016-01-25 23:52:59 -05:00
Nathan Freitas da7eb961f1 small fixes to VPN service port setup to ensure proper setup 2016-01-25 23:44:44 -05:00
Nima Fatemi ec6083fcd7
add 'Mosaddegh','Azadi','MaBishomarim' & 'JonbesheSabz' to default bridges 2016-01-26 04:31:37 +00:00
Nima Fatemi 8a00ab1f02
remove extra chars from bridge line. fixes #18148 2016-01-26 04:19:44 +00:00
Nathan Freitas d58555a358 one last changelog fix... argh! 2016-01-25 22:46:21 -05:00
Nathan Freitas 1ba37133c5 fix the changelog 2016-01-25 22:45:48 -05:00
Nathan Freitas 65c3fb1b3f update CHANGELOG 2016-01-25 22:44:42 -05:00
Nathan Freitas 80491ea95b 15.1.0-RC-4 2016-01-25 22:13:12 -05:00
Nathan Freitas c235e3ed6b tweak the string about bridges a little bit 2016-01-25 22:12:31 -05:00
Nathan Freitas 2a728140b4 choose up to 2 bridges from default list randomly 2016-01-25 22:09:26 -05:00
Nathan Freitas 1dbe5eac55 make bridge allocation shuffle randomly to distribute load
inspired by this work: https://trac.torproject.org/projects/tor/ticket/18113
we don't want all users to start with the same bridges in the same order
2016-01-25 15:45:36 -05:00
Nathan Freitas ba835599f7 this should be kbps in fact 2016-01-25 15:45:29 -05:00
Nathan Freitas cf1a644c19 add support for loading default bridges from asset file 2016-01-25 12:50:03 -05:00
Nathan Freitas b3a953ba64 15.1.0-RC-3 2016-01-25 12:07:47 -05:00
Nathan Freitas 03222f2d27 update binaries 2016-01-25 11:57:28 -05:00
Nathan Freitas 4913b0ca32 better implementation of stpcpy for pre-Android 21 NDK 2016-01-25 11:57:16 -05:00
Nathan Freitas ab8709dd2e add orfox icon to replace orweb 2016-01-25 11:44:33 -05:00
Nathan Freitas 0669addd49 re-add appcompat, update to latest, move to Android 23 to build
- this is required for latest appcompat, and to address the bug
with the white-on-white spinner popup error
2016-01-25 11:28:33 -05:00
Nathan Freitas c05d8e7b43 remove appcompat, and just support support-v4 2016-01-25 10:43:34 -05:00
Nathan Freitas 0bbe5d5f51 Merge pull request #21 from eighthave/master
work towards a reproducible build
2016-01-22 19:07:28 -05:00
Hans-Christoph Steiner 735b2985f7 make-release-build: remove faketime from `ant release`
It is too problematic and there are other ways to make those final parts of
the APK reproducible.
2016-01-22 23:25:55 +01:00
Hans-Christoph Steiner 461e35dc51 make-release-build: freeze time when running ndk-build
This aides reproducibility.
2016-01-22 23:25:55 +01:00
Hans-Christoph Steiner 5c86b5cc7e make-release-build: make sure ndk-build can be found 2016-01-22 23:25:55 +01:00
Hans-Christoph Steiner 58d53ea347 make-release-build: use strip-nondeterminism to get reproducible build
strip-nondeterminism sets the timestamps in the zip based on the timestamp
of the git commit.
2016-01-22 23:25:54 +01:00
Hans-Christoph Steiner 5ce1f5f91a make-release-build: make sure tag signers exist before verifying tags 2016-01-22 23:25:54 +01:00
Hans-Christoph Steiner 72eab39a95 build jtorctl directly, using a symlink to point to its source code
This builds the jtorctl java with the rest of Orbot's java.  The process of
making a jar breaks when external/Makefile is run with frozen time using
faketime.  That is needed to get reproducible native bits.
2016-01-22 23:25:54 +01:00
Hans-Christoph Steiner a6ac016a84 use symlinks to provide alternate folders for Hebrew and Indonesian
These two languages must be included twice (iw/he and id/in)

For a full discussion of why, see:
https://gitlab.com/fdroid/fdroidclient/issues/139
https://stackoverflow.com/questions/5074769/cyanogenmod-translate-a-project/8470980#8470980
https://stackoverflow.com/questions/8393771/android-not-using-finding-my-hebrew-localization
2016-01-22 23:25:54 +01:00
Nathan Freitas 5fb4e9b80e update ndk-builds to NDK 4.8 toolchain 2016-01-21 14:56:35 -05:00
Nathan Freitas 6eb0a93dd8 improvements to Locale changing in app 2016-01-20 16:52:59 -05:00
Nathan Freitas 9af00fe263 change VPN mode DNS to use Google's 8.8.8.8 2016-01-20 14:11:48 -05:00
Nathan Freitas 3c4864b843 update changelog 2016-01-16 00:10:57 -05:00
Nathan Freitas 9ed17b551c 15.1.0-RC-2 2016-01-15 23:49:59 -05:00
Nathan Freitas 6ffea9e38f add ability to check if configured SOCKS port is available
Samsung devices like to use 9050 (Since their hardware model is i9050!). Tor likes to use port 9050. This new code looks to see if port 9050 is available, and if not, change the setting to 'auto' so Tor can find another port.
2016-01-15 23:43:54 -05:00
Nathan Freitas b4ca30b811 add new feature graphic for google play 2016-01-15 23:43:40 -05:00
Nathan Freitas fd5071feab update CHANGELOG for v15.1.0-RC-1 2016-01-15 15:25:30 -05:00
Nathan Freitas f541e9ffe1 15.1.0-RC-1 2016-01-15 14:25:13 -05:00
Nathan Freitas 324036798b clean shouldn't clean assets, so we can easily builds for multiple platforms 2016-01-15 14:22:47 -05:00
Nathan Freitas 76b21714d8 update pdnsd and tun2socks to Android-16
add stpcpy function not present before Android-21
2016-01-15 12:50:38 -05:00
Nathan Freitas a0b0928561 15.1.0-BETA-2 2016-01-13 09:46:54 -05:00
Nathan Freitas 8f7165ce57 fixes for settings processing and QRCode scanning of bridges
- support new JSON array form bridges.torproject.org
- only enable TransProxy and DNSPort settings if the user enables transproxy
2016-01-12 23:57:37 -05:00
Nathan Freitas 4b31ef849a 15.1.0-BETA-1 2016-01-11 17:13:43 -05:00
Nathan Freitas 64493f73cd update gitignore 2016-01-11 17:12:42 -05:00
Nathan Freitas 39244a613a fix the ability to select per app VPN routing 2016-01-11 17:11:58 -05:00
Nathan Freitas f41d46960c Merge branch 'master' of github.com:n8fr8/orbot 2016-01-07 11:00:56 -05:00
Nathan Freitas 0081d005e6 remove Pluto Go building form this Makefile for now 2016-01-07 10:59:58 -05:00
Nathan Freitas 2288210cc6 update to OpenSSL's github mirror 2016-01-07 10:44:12 -05:00
Nathan Freitas 4af6bb7d3b Merge pull request #17 from PanosSakkos/patch-1
[Trivial] Fixed broken reference to Main Activity in  WALKTHROUGH
2016-01-07 01:41:20 -05:00
Nathan Freitas c687bc934e 15.1.0-ALPHA-3 2016-01-07 01:20:33 -05:00
Nathan Freitas dfc5101d1d update tfx config 2016-01-07 01:09:09 -05:00
Nathan Freitas 52acf68ed4 move "World" string to resource 2016-01-07 01:06:43 -05:00
Nathan Freitas eaf49da89a update store and app translations 2016-01-07 01:02:32 -05:00
Nathan Freitas 3b41365708 allow country exit node select to persist 2016-01-07 00:59:34 -05:00
Nathan Freitas b2081789f5 add initial support for easy exit country selection 2016-01-06 23:42:08 -05:00
Nathan Freitas 66f65d00fe 15.1.0-ALPHA-2 2016-01-06 16:19:36 -05:00
Nathan Freitas 3691ccae3a native binary asset building fixes
move pdnsd exec to assets
2016-01-06 16:14:08 -05:00
Nathan Freitas d839b154a1 fixes for VPN service UI to work on Android6 2016-01-06 16:13:56 -05:00
Nathan Freitas fe9119d66a update jenkins-build script 2016-01-04 02:32:12 -05:00
Nathan Freitas f36965211e add code to kill pdnsd daemon when VPN is stopped 2016-01-04 02:28:31 -05:00
Nathan Freitas f441736cd9 update OpenSSL string to show 1.0.1q 2016-01-04 01:46:55 -05:00
Nathan Freitas 4098e8edf2 update to 15.1.0-ALPHA-1 2016-01-04 01:44:36 -05:00
Nathan Freitas f1fcec3d45 add support for PDNSD DNS Daemon for VPN DNS resolution
Tor's DNS port doesn't work well with the VPN mode, so we
will use PDSND to resolve DNS over Tor using OpenDNS. This is
a hack/solution that we learned from SocksDroid.
2016-01-04 01:38:36 -05:00
Nathan Freitas 8d8fe0ceb4 updates to improve VPN support 2015-12-30 13:21:33 -05:00
Nathan Freitas 699b60db56 add linancillary for badvpn tun2socks update for DNS 2015-12-30 09:52:56 -05:00
Nathan Freitas 9b2cc52f5a update badvpn binaries 2015-12-16 11:22:30 -05:00
Nathan Freitas 6dc8cf6980 update makefile for new pluto builds 2015-12-16 11:22:21 -05:00
Nathan Freitas 02612366ca change this to "browser button" 2015-12-16 10:52:18 -05:00
Nathan Freitas 3462cbd46e small updates to icon and strings 2015-12-16 10:40:48 -05:00
Nathan Freitas bb55557b44 update installer to get PLUTO binaries from assets 2015-12-16 10:27:06 -05:00
Nathan Freitas 7d213e24d4 delete pluggable transport binaries here; build with Makefile
use the external/pluto project
2015-12-16 10:26:41 -05:00
Nathan Freitas 6cf120185f update makefile to support PLUTO builds 2015-12-16 10:26:28 -05:00
Nathan Freitas 871701e9d6 add link for new icon 2015-12-16 10:01:33 -05:00
Nathan Freitas 51205b8222 update for Orfox 2015-12-16 10:01:24 -05:00
Nathan Freitas 6fb4f0c337 update binaries 2015-12-16 10:00:28 -05:00
Nathan Freitas 317405dbb3 update external versions of Tor 0.2.7.6 and OpenSSL 1.0.1q 2015-12-16 10:00:15 -05:00
Nathan Freitas 0a5dd086cd use a browser constant here, with the new constant being Orfox 2015-12-16 10:00:03 -05:00
Nathan Freitas c54ab188b0 deleted these graphics 2015-12-16 09:59:24 -05:00
Nathan Freitas 534c2fb36d update style, icons and graphics 2015-12-16 09:59:00 -05:00
Panos Sakkos cd0bfd3a05 [Trivial] Fixed broken reference to Main Activity in WALKTHROUGH 2015-10-25 22:51:43 +01:00
Nathan Freitas 7dc30f9d18 update to 15.0.1-RC-3 with openssl 1.0.2a
also this build adds x86 back in
2015-07-14 11:04:44 -04:00
Nathan Freitas 865582ec3d move back to 1.0.2a for x86_64 support 2015-07-14 10:28:09 -04:00
Nathan Freitas 0cde639a1c fix translations for common issues 2015-07-13 23:28:44 -04:00
Nathan Freitas 2acdd29634 update localizations for strings and app description 2015-07-13 23:24:07 -04:00
Nathan Freitas 0b6796c951 update changelog 2015-07-13 23:15:02 -04:00
Nathan Freitas 30e37993bb 15.0.1-RC-2-PIE 2015-07-13 23:13:50 -04:00
Nathan Freitas 256ecc4df0 update tor version constant to 0.2.6.10 2015-07-13 23:12:10 -04:00
Nathan Freitas 6aa5ca56b5 update to tor 0.2.6.10 2015-07-13 23:11:45 -04:00
n8fr8 2459aa5151 Merge pull request #15 from aelmahmoudy/openssl_update
Update OpenSSL to v1.0.2a to fix build for x86_64 arch.
2015-07-09 17:37:01 -04:00
n8fr8 b272fcc224 Merge pull request #14 from aelmahmoudy/mipsfix
Define __MIPSEL__ to workaround OpenSSL build failure for mips arch.
2015-07-09 17:36:25 -04:00
أحمد المحمودي (Ahmed El-Mahmoudy) fd4ef77529 Update OpenSSL to v1.0.2a to fix build for x86_64 arch. 2015-07-09 17:19:24 +02:00
أحمد المحمودي (Ahmed El-Mahmoudy) d93017fd30 Define __MIPSEL__ to workaround OpenSSL build failure for mips arch. 2015-07-09 17:02:31 +02:00
Nathan Freitas f13f7c82dc update to 15.0.1-RC-1 (PIE only) 2015-07-08 13:04:13 -04:00
Nathan Freitas e00f830eca update changelog 2015-06-26 09:54:19 -04:00
Nathan Freitas dd2a144f4b update to beta 3 2015-06-26 09:53:16 -04:00
Nathan Freitas dc06eedcfd final fixes for AppsVPN mode on boot and Android 4.x support 2015-06-26 09:52:42 -04:00
Nathan Freitas f98f7b4a33 update changelog for v15.0.1 2015-06-25 10:59:23 -04:00
Nathan Freitas c56e5d635f v15.0.1 beta 2 2015-06-25 10:53:01 -04:00
Nathan Freitas 1b6126e3d0 Enable support for app selection to work with VPN mode on Lollipop+
For now we will re-use/overload the app selection transproxy UI in Settings
2015-06-25 10:48:50 -04:00
Nathan Freitas bf8113cd19 update to sdk 22 2015-06-25 10:37:59 -04:00
Nathan Freitas f558a0a67c don't try to build external folders in eclipse 2015-06-25 10:37:48 -04:00
Nathan Freitas fa427a26f2 update tun2socks binaries 2015-06-25 10:37:29 -04:00
Nathan Freitas 76e424e695 update submodule pin 2015-06-25 10:35:28 -04:00
Nathan Freitas 765bc61ded enable background starts by default only for Service intent calls 2015-06-22 12:57:59 -04:00
Nathan Freitas dc16c98ff7 update manifest for v15.0.1 beta 1 2015-06-22 12:45:39 -04:00
Nathan Freitas e11cae883e Merge branch 'the-big-start-stop-makeover' of https://github.com/eighthave/orbot into eighthave-the-big-start-stop-makeover
Conflicts:
	src/org/torproject/android/OrbotMainActivity.java
	src/org/torproject/android/service/TorService.java
2015-06-22 12:43:42 -04:00
Nathan Freitas a8384bde74 Merge branch 'eighthave-the-big-start-stop-makeover' 2015-06-22 12:39:17 -04:00
Nathan Freitas 225ad9d1ac fix handling of foreground intent starts, and set bg start off by default 2015-06-22 12:37:51 -04:00
Nathan Freitas e132a79a61 improve status request/callback interaction and status UI layout 2015-06-22 12:25:37 -04:00
Nathan Freitas 67d1652e57 update tor to 0.2.6.9 2015-06-22 11:30:56 -04:00
Hans-Christoph Steiner aa87e6712a on start, check for running tor daemon, and if TorService stopped, then start
If Orbot was killed when the tor daemon was running, the tor daemon will
still be running when Orbot starts again.  OrbotMainActivity then checks to
see if tor daemon is running while TorService is stopped.  If so, TorService
is started so that the state of everything is in sync.
2015-06-17 12:08:52 -04:00
Hans-Christoph Steiner a81c0001d6 init file path variables (tor, polipo, etc) when the app starts
These file path variables can be set at the very start, OrbotApp.onCreate()
and they will not change during the lifetime of the app, so represent them
as globally accessible static variables.  This is needed for things like
OrbotMainActivity detecting whether the tor daemon is still running, even
though TorService is not.
2015-06-17 12:06:23 -04:00
Hans-Christoph Steiner 943edf094b "Allow Background Starts" prefs also controls the old START_TOR Intent 2015-06-17 11:45:07 -04:00
Hans-Christoph Steiner adf7c09f0e remove delayed handling of Intents in OrbotMainActivity
This is a leftover bit from the old structure, it should no longer be
needed and it causes the status updates to be noticeably delayed so when
OrbotMainActivity is started after being killed, it flashes OFF then ON.
2015-06-17 11:15:31 -04:00
Hans-Christoph Steiner c9e31020e0 prevent a status request from starting TorService
If some internal bit of Orbot is requesting the status of TorService, it
should not cause it to start.  So only request status from TorService if it
is running, otherwise keep status as OFF.

the big imports change is because of the Android auto-formatter
2015-06-17 11:13:35 -04:00
Hans-Christoph Steiner e5c2e1a040 when OrbotMainActivity starts, query TorService for current status
If OrbotMainActivity gets killed while TorService is running, then when
OrbotMainActivity starts again, it needs to get the current status from
TorService to correctly represent things to the user.
2015-06-17 11:00:48 -04:00
Hans-Christoph Steiner f16394b7db include all status messages with "start" in them in the starting sequence
Before, the startup sequence showed "Orbot is starting..." for a long time,
then quickly showed the final tor percentage messages.  This adds a few
more messages to provide useful feedback.
2015-06-12 14:55:17 -04:00
Hans-Christoph Steiner ddaae1d941 drive main screen UI updated entirely from TorService status updates
Now that STATUS_STARTING is sent in TorService.onCreate(), the response
time is snappy enough that we don't need hacks in OrbotMainActivity to
show that long press happened.
2015-06-12 14:54:04 -04:00
Hans-Christoph Steiner 232098eeaf set STATUS_STARTING in TorService.onCreate(), that's where it begins
The very first place that the whole tor start sequence starts is from
TorService's onCreate(), so that is where STATUS_STARTING should be
announced from.  The open question is whether Intents besides ACTION_START
ever cause TorService to start.  In theory, TorService should already be
running when any Intent is sent besides ACTION_START.
2015-06-12 14:49:19 -04:00
Hans-Christoph Steiner 8f57b42e68 rename TorStarter to IncomingIntentRouter, it handles all Intents
TorStarter does lots of things besides starting Tor
2015-06-12 14:46:47 -04:00
Hans-Christoph Steiner ff04bde300 announce Orbot is ON once the first circuit is complete
Before, it was announcing tor was started when it had completed starting
the daemons.  But that does not guarantee that Tor is actually connected
and working.  So instead, this waits for the first circuit to be built,
then announces Tor is ON.
2015-06-12 14:24:57 -04:00
Hans-Christoph Steiner b620f828a1 include dynamic proxy config info in ACTION_STATUS replies
This includes extras in the Intents that are sent as replies to the two
different requests to start tor (ACTION_START and ACTION_START_TOR).  These
extras give all of the current SOCKS and HTTP proxy settings, so that the
app can dynamically use the correct settings.  Sometimes there are port
conflicts, so apps should dynamically adjust in order to reliably find tor.

closes #3612 https://dev.guardianproject.info/issues/3612
refs #4419 https://dev.guardianproject.info/issues/4419
refs #3690 https://dev.guardianproject.info/issues/3690
refs #3687 https://dev.guardianproject.info/issues/3687
refs #3859 https://dev.guardianproject.info/issues/3859
2015-06-11 17:02:56 -04:00
Hans-Christoph Steiner 0937c8838f use constants for setting default ports, and variables when running 2015-06-11 16:32:31 -04:00
Hans-Christoph Steiner 623084548d standardize network port constant variables
use consistent naming and types for code clarity
2015-06-11 16:31:39 -04:00
Hans-Christoph Steiner 775135d07a let the requesting app know that the user has disabled starting via Intent
If an app is using ACTION_START to start Orbot in the background, but the
user had disabled that using the allowBackgroundStarts pref, then the app
will want to know about that so it can fallback on prompting the user to
bring up Orbot itself for the user to manually start it.

refs #3117 https://dev.guardianproject.info/issues/3117
2015-06-10 18:15:29 -04:00
Hans-Christoph Steiner ac8329c7f2 create a new pref: "Allow Background Starts"
This lets the user disable the new ACTION_START Intent, in case they have
more sensitive needs.
2015-06-10 18:02:43 -04:00
Hans-Christoph Steiner 77b1bdfbc5 on receiving ACTION_START, only send status reply if EXTRA_PACKAGE_NAME set
In order to receive a targeted reply, an app has to send its packageName to
Orbot as an String extra in an ACTION_START Intent.  Also, when Orbot
internally uses ACTION_START, it shouldn't receive replies.
2015-06-10 18:02:43 -04:00
Hans-Christoph Steiner f433a5e655 expose start action via a BroadcastReceiver that any app can send to
This allows any app to broadcast an Intent to Orbot in order to make Orbot
start in the background.

closes #3117 https://dev.guardianproject.info/issues/3117
2015-06-10 18:02:43 -04:00
Hans-Christoph Steiner 13d29878f9 a couple tweaks to make the long press feel more responsive 2015-06-10 18:02:43 -04:00
Hans-Christoph Steiner 25a6bb63b2 force all UI status updates through mStatusUpdateHandler
The Handler is a message queue for the main thread, so it should help keep
the UI working while status updates are coming in.

* This removes the constants in TorServiceConstants because the Handler
  messages are only for OrbotMainActivity

* this uses the handy shortcut msg.obj for the status message
2015-06-10 18:02:43 -04:00
Hans-Christoph Steiner 5c2d4501fa make updateStatus() more closely match the state given from TorService
This aims to make the UI more tighly in sync with the data coming from
TorService.  It is not currently perfect in the UI, but it means that the
UI will represent the status bugs in TorService.  This is important because
that status info is now broadcast to any app that wants it.  So the visible
part of Orbot should show want the apps are seeing to aid debugging.  And
status report bugs should be fixed in TorService so that everyone gets the
correctinfo.
2015-06-09 22:01:53 -04:00
Hans-Christoph Steiner 2f1d52f02d purge unused code from OrbotMainActivity
mItemOnOff no longer exists, there is no more start/stop button on the menu
and this code was trying to update menu.getItem(0), which is currently the
settings button.

onSharedPreferenceChanged() was entirely empty, and the prefs are all
handled in their own Activity
2015-06-09 22:01:53 -04:00
Hans-Christoph Steiner bf3572eb82 use the same action string for local and broadcast status
No need to have separate action strings, using the LocalBroadcastManager
enforces the local-only messaging, and Orbot does not claim the global
broadcasts in any kind of receiver.
2015-06-09 22:01:52 -04:00
Hans-Christoph Steiner 2f7ddc4423 purge unused OrbotLogActivity 2015-06-09 22:01:52 -04:00
Hans-Christoph Steiner 90b731cc8d strictly target local broadcasts
This sets an action for each kind of local broadcast, and uses the action
to choose how to handle it.  Before, it was a mix of the action and which
extras the Intent included.
2015-06-09 22:01:52 -04:00
Hans-Christoph Steiner 65d8801005 rename mMessageReceiver to mLocalBroadcastReceiver 2015-06-09 22:01:52 -04:00
Hans-Christoph Steiner 21c3bfb3c5 use "SIGNAL HUP" to request Tor re-read its config
The tor daemon supports both "SIGNAL HUP" via its control port or the UNIX
signal `kill -HUP` via the terminal as a way to trigger the tor daemon to
reload its config.  This is needed for new bridges and hidden services. It
is not necessary to restart everything to add those.

https://stem.torproject.org/faq.html#how-do-i-reload-my-torrc
2015-06-09 22:01:52 -04:00
Hans-Christoph Steiner 6ac9a2cee6 use context.stopService() to shutdown TorService instead of custom message
Since running stopService() automatically triggers Service.onDestroy(),
there is a nice way to hook in and run the shutdown procedure.  This
provides an obvious point of entry as well as simplifying the shutdown
procedure.
2015-06-09 22:01:52 -04:00
Hans-Christoph Steiner bfb0a80a18 rename mHandler to mStatusUpdateHandler
Hopefully this will make the code a little easier to follow...
2015-06-09 22:01:52 -04:00
Hans-Christoph Steiner 4d8a9dab27 broadcast Tor state to any app that might want to know
In order for apps to follow the current state of Tor, this broadcasts the
state both locally, since global broadcasts are insecure, and globally, for
any app to receive.  The internal workings of Orbot need to use a local
broadcast, otherwise any app could trigger stop, start, etc or DoS in other
ways.
2015-06-09 22:01:52 -04:00
Hans-Christoph Steiner 3580cbe05d only set mCurrentStatus in sendCallbackStatus(), the one stop shop
Make sendCallbackStatus() the one thing that updates the all of the bits
related to running status.
2015-06-09 22:01:52 -04:00
Hans-Christoph Steiner 780abf003e rework start/stop procedure to have clear points for ON, OFF, STARTING, STOPPING
In order to send reliable information to any app using Tor, Orbot itself
needs reliable state broadcasts.  Before, there the ON/OFF/STARTING state
were being set multiple times during the process, and sometimes not even in
a useful order (i.e. STARTING ON STARTING ON ON).

This reworks the start/stop procedure into startTor() and stopTor().
2015-06-09 22:01:52 -04:00
Hans-Christoph Steiner 4470771c0d rename startService() to sendIntentToService() to reflect what it does
Even though this method is a wrapper around startService(), it is really
used to send various Intents to the Service, not only starting it.
2015-06-09 22:01:51 -04:00
Hans-Christoph Steiner 82f82e1c10 mark TorService methods from EventHandler as overridden
This keeps me from getting confused...
2015-06-09 22:01:51 -04:00
Hans-Christoph Steiner 86593df6fb rename status to STARTING and STOPPING since it also starts/stops daemons
The CONNECTING status also is starting up daemons as well as connecting to
the tor daemon.
2015-06-09 22:01:51 -04:00
Hans-Christoph Steiner cf0adc27d6 on start and tor daemon not running, kill all daemons before starting again
To make sure there are not any other daemons still running when trying to
start the whole thing again, kill all daemons before starting tor afresh.
2015-06-09 22:01:51 -04:00
Hans-Christoph Steiner 2bc85a4a3a rework killing all daemons to continue trying after a failure
Before, it would quit the process on the first exception while killing.
This makes it keep on trying each daemon.
2015-06-09 22:01:51 -04:00
Hans-Christoph Steiner 73658ce3cf use Java methods for setting permissions on native executables
As of android-9, java.io.File has native methods for setting permissions,
inherited from Java 1.6.  Using these will help deal with compatibility
across devices, since some devices might not have chmod installed.
2015-06-09 22:01:51 -04:00
Hans-Christoph Steiner a3d37e8b2a make prefs called directly when needed instead of requiring refresh
The code was using global variables that were refreshed from the prefs on
certain occasions.  That means that the global vars could easily get out of
sync with the actual values.  Instead, just read the prefs directly when
the values are needed, and they will always be up-to-date.
2015-06-09 22:01:51 -04:00
Hans-Christoph Steiner 6e13a7e369 purge dead and unused code from TorService 2015-06-09 22:01:51 -04:00
Hans-Christoph Steiner 12d92f48f5 handle logging native process Exceptions closer to the source
Instead of passing Exceptions through many layers only to log them, just
log them where they are thrown.  Keeps things neater.
2015-06-09 22:01:51 -04:00
Hans-Christoph Steiner ae83f011b2 purge CMD_INIT/initialize() from TorService, an IntentService doesn't need it
when switching to an IntentService, a new Intent will always start the
Service, and onCreate() can be used to initialize the Service.
2015-06-09 22:01:51 -04:00
Hans-Christoph Steiner f09379d86c create String constants for Intent actions and extras
Following the Android system naming convention, this uses constants for
the action and extra names for Intents.  This makes it much easier to track
which "log" is which, since there are "log" actions, extras, and messages.
2015-06-09 22:01:51 -04:00
Hans-Christoph Steiner fd23da5237 purge troublesome half-disabled Wizard, rename menu to "Get Apps..."
When clicking on "Wizard" from the menu, then clicking back, it gets stuck
in a strange back stack purgatory, and then randomly changes the language.
So purge the wizard stuff for now, and add back the parts that are still
needed once that is all figured out.

This also simplifies the refactoring of the Intent handling.
2015-06-09 21:48:54 -04:00
Hans-Christoph Steiner a336a294fb convert status variable to String for easy sharing in Intents
Instead of making the apps who receive the broadcasts decipher a number
scheme, send the string of the status.  Then it'll be self-documenting.
2015-06-09 21:48:54 -04:00
Hans-Christoph Steiner 356e79a163 remove unused IntentFilter from TorService 2015-06-09 21:48:54 -04:00
Hans-Christoph Steiner 6352bd4753 convert app description to XLIFF to make translation management easier 2015-06-09 21:48:54 -04:00
n8fr8 9a786d4aca Merge pull request #10 from eighthave/fix-translations
Fix translations
2015-06-08 21:53:30 -04:00
Hans-Christoph Steiner 96b5d90ed1 remove empty translations 2015-06-08 12:24:21 -04:00
Hans-Christoph Steiner aebf3b0760 fixed directory names for Indonesian and Hebrew
https://stackoverflow.com/questions/13291578/how-to-localize-an-android-app-in-indonesian-language

Note that Java uses several deprecated two-letter codes. The Hebrew ("he")
language code is rewritten as "iw", Indonesian ("id") as "in", and Yiddish
("yi") as "ji". This rewriting happens even if you construct your own
Locale object, not just for instances returned by the various lookup
methods.
2015-06-05 17:44:05 -04:00
Hans-Christoph Steiner 5c7171bc87 add config for transifex-client aka tx 2015-06-05 17:37:07 -04:00
Hans-Christoph Steiner a7211999c9 rename zh to zh_CN following convention 2015-06-05 17:15:38 -04:00
Hans-Christoph Steiner fbf9932be3 rework setting locale from pref to have a lighter touch and be dynamic
This leaves the default Locale unchanged, i.e. Locale.setDefault().  This
also will immediately change the language after the user selects it in the
pref.
2015-06-05 17:09:10 -04:00
Hans-Christoph Steiner 807b51fb43 include proxy config info when returning from START_TOR Intent
The recommended way to send a START_TOR Intent is using
startActivityWithResult() so that the sender knows when Tor is actually
started.  The return includes an Intent that can also include the config
info for the proxies that Orbot runs.  Right now, this is based on the
app defaults, but ultimately, it should dynamically get the port numbers
for cases like Samsung devices where there is a port conflict.
2015-06-05 15:24:23 -04:00
Hans-Christoph Steiner d43a6cd2b2 switch language/locale preference to use Languages utility class
The Languages utility class merges the techniques from ChatSecure and
Courier.  It fetches the supported locales from the APK itself, and fetches
the native names of the languages from the system.
2015-06-05 15:19:57 -04:00
Hans-Christoph Steiner fba09263b4 update SettingsActivity to use simpler findPreferences() method 2015-06-05 15:16:08 -04:00
Hans-Christoph Steiner 237366cd27 no need to override methods with nothing 2015-06-05 15:14:40 -04:00
Hans-Christoph Steiner d85a2e87c9 remove global NumberFormat for more flexible Locale handling 2015-06-05 13:11:00 -04:00
n8fr8 541410447d Merge pull request #9 from eighthave/reboot-and-reproducible
Reboot and reproducible
2015-06-05 10:24:13 -04:00
Hans-Christoph Steiner 2372b186c6 add script to compare APKs for the reproducible process 2015-06-04 17:58:53 -04:00
Hans-Christoph Steiner cd48dd2774 ignore build products in the submodules (ignore = dirty) 2015-06-04 17:50:25 -04:00
Hans-Christoph Steiner 6989f9b2b0 add standard ./make-release-build script 2015-06-04 17:50:25 -04:00
Hans-Christoph Steiner 6775f86b65 add custom ant rules for automating the release process 2015-06-04 17:50:25 -04:00
Hans-Christoph Steiner e66b5a039e ignore all build products from submodules 2015-06-04 17:50:25 -04:00
Hans-Christoph Steiner 2f1ad74538 put up error notification if Orbot cannot kill a process
There are a couple of different times when Orbot will be unable to kill the
running processes.  One example is when Orbot is running, then uninstalled,
then installed again.

closes #5254 https://dev.guardianproject.info/issues/5254
2015-06-04 17:50:25 -04:00
Hans-Christoph Steiner 81cf67f955 remove unused icons to save space
These are all reported by `ant debug lint` as unused.
2015-06-04 13:40:24 -04:00
Hans-Christoph Steiner 7787a3f427 run ./fix-translations 2015-06-04 13:40:24 -04:00
Hans-Christoph Steiner d55c7b7eaf ./fix-translations script to fix common problems in the strings.xml 2015-06-04 13:40:24 -04:00
Hans-Christoph Steiner 333343fd3d remove Firefox ProxyMob recommendation, ProxyMob is no longer supported
This removes the translations after the originals were removed in
0e6ba61ac0
2015-06-04 13:40:24 -04:00
Hans-Christoph Steiner e58a15ebd7 Promo Apps: choose "all apps" URL based on which app store is installed
Since most people using devices without Google Play will be in China, where
Google is generally blocked, instead direct people to f-droid.org unless
they have Google Play installed.
2015-06-04 13:40:24 -04:00
Hans-Christoph Steiner 545afe7f6d Promo Apps: use Play or FDroid links, fallback to https://f-droid.org
This automatically detects whether Google Play or FDroid is installed, if
so, clicking the promo app button will take the user straight to the
install page.  If neither is installed, then the user is taken to the page
for that app on https://f-droid.org
2015-06-04 13:32:58 -04:00
Hans-Christoph Steiner 0e6ba61ac0 remove Firefox ProxyMob recommendation, ProxyMob is no longer supported 2015-06-04 13:32:26 -04:00
Hans-Christoph Steiner cf43fa247d switch to standard NDK env var: ANDROID_NDK_HOME
ANDROID_NDK_HOME is hardcoded in gradle as the name of the env var:
https://android.googlesource.com/platform/tools/build/+/master/gradle/src/main/groovy/com/android/build/gradle/internal/Sdk.groovy
2015-06-04 13:32:26 -04:00
Hans-Christoph Steiner 663cade62d ./jenkins-build script for standard Guardian Project Jenkins build 2015-06-04 13:32:26 -04:00
Hans-Christoph Steiner 3c26f67392 update ant setup script to get all settings from their original sources
* target comes from project.properties

*
2015-06-04 13:32:25 -04:00
Nathan Freitas 77d1b82411 adding patch for iptables building on x86 2015-05-13 12:17:54 -04:00
Nathan Freitas 20bf4c7ec6 update Makefile 2015-05-13 11:55:41 -04:00
Nathan Freitas e3244a7f1e update translations 2015-05-13 11:55:34 -04:00
Nathan Freitas 8479a9940c 15.0.1-alpha-1 2015-05-12 02:27:43 -04:00
Nathan Freitas d6ff4131db update Makefile with a few tweaks 2015-05-12 02:27:07 -04:00
Nathan Freitas 2f8c130f02 update to 15.0.1-beta-1 and update openssl to 1.0.2a 2015-05-12 00:38:24 -04:00
Nathan Freitas d6bfed06a9 update for 15.0.1 2015-05-11 22:09:44 -04:00
Nathan Freitas 3a3f701441 Merge branch 'aelmahmoudy-build_system' 2015-05-11 15:46:51 -04:00
Nathan Freitas 4163fc14d7 Merge branch 'build_system' of https://github.com/aelmahmoudy/orbot into aelmahmoudy-build_system 2015-05-11 15:44:29 -04:00
Nathan Freitas fa533e9d52 fix handle intent for hidden service API request 2015-05-11 15:41:43 -04:00
أحمد المحمودي (Ahmed El-Mahmoudy) d5e937d2a0 Fix build for mips* archs.
OpenSSL's 'make depend' fails if _MIPS_SZLONG is not set
2015-04-29 22:57:13 +02:00
أحمد المحمودي (Ahmed El-Mahmoudy) 8d7c32c84b Update OpenSSL to 1.0.2a
Also, disable rc4 cipher for 64-bit archs, to avoid this link error for
tor:
external/lib/libcrypto.a(e_rc4_hmac_md5.o):e_rc4_hmac_md5.c:function rc4_hmac_md5_cipher: error: undefined reference to 'rc4_md5_enc'
2015-04-29 17:48:28 +02:00
أحمد المحمودي (Ahmed El-Mahmoudy) 81a945e632 Patch libevent to compile for 64-bit archs. 2015-04-29 15:29:28 +02:00
أحمد المحمودي (Ahmed El-Mahmoudy) ebe85e55bc Add iptables-clean prerequisite to clean target 2015-04-29 15:25:49 +02:00
أحمد المحمودي (Ahmed El-Mahmoudy) adb9a19367 Add support for variable arch builds to support mips & 64-bit archs 2015-04-29 15:25:49 +02:00
Nathan Freitas 84c6645220 fixing flag typo 2015-04-15 10:15:38 -04:00
Nathan Freitas dbe3024dfc fix PIE_FLAGS variable to allow for override
also, standardize use of STRIP command
2015-04-15 09:58:02 -04:00
Nathan Freitas 1bc427b50e handle NPE on number format instance 2015-04-13 10:25:58 -04:00
Nathan Freitas ec24428915 fix NPE crash if VPN prepare Intent is null on boot 2015-04-13 10:24:03 -04:00
965 changed files with 208542 additions and 36196 deletions

View File

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>

56
.gitignore vendored
View File

@ -1,3 +1,49 @@
# auto-generated files from Android builds
build.xml
ant.properties
default.properties
proguard.cfg
proguard-project.txt
#
releases
docs
doc
.directory
#built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files
*.class
# subdirs for generated files
bin/
gen/
# Local configuration file (sdk path, etc)
local.properties
# Windows thumbnail db
Thumbs.db
# OSX files
.DS_Store
# Android Studio
*.iml
.idea/
.gradle/
build/
#tfx
.transifexrc
/external/appcompat/bin/
/external/appcompat/gen/
/external/bin/
/external/include/
/external/*-build-stamp
@ -9,8 +55,14 @@
bin
gen
native
libs/jtorctl.jar
local.properties
builds
/patches/*
external/patches/*
obj
releases
app/src/main/jniLibs/
app/src/main/libs/
orbotservice/src/main/libs/
orbotservice/src/main/jniLibs/

34
.gitmodules vendored
View File

@ -1,30 +1,20 @@
[submodule "external/tor"]
path = external/tor
url = https://git.torproject.org/git/tor.git
ignore = dirty
[submodule "external/libevent"]
path = external/libevent
url = https://github.com/libevent/libevent.git
[submodule "external/jtorctl"]
path = external/jtorctl
url = https://github.com/guardianproject/jtorctl
ignore = dirty
[submodule "external/openssl"]
path = external/openssl
url = git://git.openssl.org/openssl
[submodule "external/iptables"]
path = external/iptables
url = git://git.netfilter.org/iptables
[submodule "external/superuser-commands"]
path = external/superuser-commands
url = https://github.com/dschuermann/superuser-commands.git
[submodule "external/polipo"]
path = external/polipo
url = https://github.com/jech/polipo.git
[submodule "external/badvpn"]
path = external/badvpn
url = https://github.com/guardianproject/badvpn.git
[submodule "external/pluto"]
path = external/pluto
url = https://github.com/guardianproject/pluto.git
[submodule "external/jsocks"]
path = external/jsocks
url = https://github.com/guardianproject/jsocks.git
url = https://github.com/openssl/openssl.git
ignore = dirty
[submodule "external/zstd"]
path = external/zstd
url = https://github.com/facebook/zstd.git
ignore = dirty
[submodule "external/xz"]
path = external/xz
url = https://git.tukaani.org/xz.git
ignore = dirty

View File

@ -6,9 +6,13 @@
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
<triggers>clean,full,incremental,</triggers>
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
<dictionary>
<key>LaunchConfigHandle</key>
<value>&lt;project&gt;/.externalToolBuilders/org.eclipse.cdt.managedbuilder.core.genmakebuilder.launch</value>
</dictionary>
</arguments>
</buildCommand>
<buildCommand>
@ -52,4 +56,24 @@
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
</natures>
<filteredResources>
<filter>
<id>1451443416388</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-false-false-external</arguments>
</matcher>
</filter>
<filter>
<id>1451443416398</id>
<name></name>
<type>26</type>
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-false-false-jni</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>

View File

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
<attributes>
<attribute name="hide" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="output" path=""/>
</classpath>

View File

@ -1 +0,0 @@
org.eclipse.wst.jsdt.launching.baseBrowserLibrary

View File

@ -1 +0,0 @@
Window

View File

@ -1,129 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.torproject.android"
android:versionName="15.0.0-RC-3"
android:versionCode="150003"
android:installLocation="auto"
>
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="22"/>
<permission android:name="org.torproject.android.MANAGE_TOR"
android:label="@string/permission_manage_tor_label"
android:description="@string/permission_manage_tor_description"
android:protectionLevel="signature"/>
<uses-permission android:name="org.torproject.android.MANAGE_TOR"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application android:name="org.torproject.android.OrbotApp" android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:description="@string/app_description"
android:configChanges="locale|orientation|screenSize"
android:theme="@style/CustomActionBarTheme"
android:allowBackup="false"
android:allowClearUserData="true"
android:persistent="true"
android:stopWithTask="false"
android:largeHeap="false"
>
<activity android:name=".OrbotMainActivity"
android:configChanges="orientation|screenSize"
android:excludeFromRecents="true"
android:launchMode="singleTop"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="bridge" />
</intent-filter>
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
<action android:name="org.torproject.android.REQUEST_HS_PORT" />
</intent-filter>
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
<action android:name="org.torproject.android.START_TOR" />
</intent-filter>
</activity>
<activity android:name=".ui.OrbotLogActivity"
android:configChanges="orientation|screenSize"
android:exported="false"
/>
<!--
This is for ensuring the background service still runs when/if the app is swiped away
-->
<activity
android:name=".service.DummyActivity"
android:theme="@android:style/Theme.NoDisplay"
android:enabled="true"
android:allowTaskReparenting="true"
android:noHistory="true"
android:excludeFromRecents="true"
android:alwaysRetainTaskState="false"
android:stateNotNeeded="true"
android:clearTaskOnLaunch="true"
android:finishOnTaskLaunch="true"
/>
<activity android:name="org.torproject.android.ui.wizard.PromoAppsActivity" android:exported="false"/>
<activity android:name="org.torproject.android.ui.wizard.ChooseLocaleWizardActivity" android:exported="false"/>
<activity android:name=".settings.SettingsPreferences" android:label="@string/app_name"/>
<activity android:name=".settings.AppManager" android:label="@string/app_name"/>
<service android:enabled="true"
android:name=".service.TorService"
android:permission="org.torproject.android.MANAGE_TOR"
android:stopWithTask="false"
>
<intent-filter>
<action android:name="org.torproject.android.service.ITorService" />
<action android:name="org.torproject.android.service.TOR_SERVICE" />
</intent-filter>
</service>
<receiver android:name="org.torproject.android.service.OnBootReceiver"
android:enabled="true" android:exported="true"
>
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.HOME" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
<category android:name="android.intent.category.HOME" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MEDIA_MOUNTED"/>
<category android:name="android.intent.category.HOME" />
</intent-filter>
</receiver>
<service android:name="org.torproject.android.vpn.OrbotVpnService"
android:permission="android.permission.BIND_VPN_SERVICE">
<intent-filter>
<action android:name="android.net.VpnService"/>
</intent-filter>
</service>
</application>
</manifest>

66
BUILD
View File

@ -8,84 +8,38 @@ Orbot includes, in the external directory, git repo submodules of:
- LibEvent
- JTorControl: The Tor Control Library for Java
The Orbot repo also includes the Polipo source code of a recent stable release.
Please install the following prerequisites (instructions for each follows):
ant: http://ant.apache.org/
Android Native Dev Kit or NDK (for C/C++ code):
http://developer.android.com/sdk/ndk/index.html
Android Software Dev Kit or SDK (for Java code):
http://developer.android.com/sdk/index.html
AutoMake and AutoConf tool
sudo apt-get install autotools-dev
sudo apt-get install automake
sudo apt-get install autogen autoconf libtool gettext-base autopoint
You will need to run the 'android' command in the SDK to install the necessary
Android platform supports (ICS 4.x or android-15)
Be sure that you have all of the git submodules up-to-date:
git submodule update --init --recursive
./tor-droid-make.sh fetch
To begin building, from the Orbot root directory, you first need to build all
external C/native dependencies:
To begin building, from the Orbot root directory, it builds all submodules and
the project.
export NDK_BASE={PATH TO YOUR NDK INSTALL}
make -C external
At this point, you'll have Tor and Polipo binaries that can be run on an
Android handset. You can verify the ARM binary was properly built using the
following command:
file external/bin/tor external/bin/polipo
You should see something like:
external/bin/tor: ELF 32-bit LSB executable, ARM, version 1 (SYSV),
dynamically linked (uses shared libs), not stripped
external/bin/polipo: ELF 32-bit LSB executable, ARM, version 1 (SYSV),
dynamically linked (uses shared libs), not stripped
This isn't enough though and we'll now sew up the binary into a small package
that will handle basic Tor controlling features.
android update project --name Orbot --target android-15 --path .
Now you need to split and copy the tor binary into external/bin. We split it
into < 1M chunks because some Android devices don't like resources larger than
1M.
split --bytes=1m ./external/tor/src/or/tor ./external/bin/tor
./tor-droid-make.sh build
Now build the Android app
./update-ant-build
ant release
(gradle / android studio instructions here)
This will produce an unsigned Tor package in ./bin/Orbot-unsigned.apk!
This will produce an unsigned Tor package APK.
To produce a usable package, you'll need to sign the .apk. The basics on
signing can be found on the Android developer site:
http://developer.android.com/guide/publishing/app-signing.html
The three steps are quite simple. First, you'll generate a key. Secondly,
you'll sign the application. Thirdly, you'll verify the the apk.
Generating a signing key:
keytool -genkey -v -keystore my-release-key.keystore \
-alias orbots_key -keyalg RSA -validity 10000
Sign the apk:
jarsigner -verbose -keystore my-release-key.keystore \
bin/Orbot-unsigned.apk orbots_key
Verify the signature for the apk:
jarsigner -verify bin/Orbot-unsigned.apk
mv bin/Orbot-unsigned.apk bin/Orbot-signed-alpha.apk
You can also GPG sign the apk and generate an .asc:
gpg -ab Orbot-signed-alpha.apk
Now you should have a fully signed and production ready alpha release of Orbot!
Give bin/Orbot-signed-alpha.apk an install and send us bug reports!

870
CHANGELOG
View File

@ -1,870 +0,0 @@
NOTE: Specific #s below correspond to Trac tickets logged and maintained at https://trac.torproject.org/projects/tor/
/** 15.0.0 RC 3 / 13-Apr-2015 / b941a1c7d5588db7efd9fab672ec518a69f76f84 **/
b941a1c show warning about bridge limits on Intel x86/ATOM devices
325ca1f only ARM chips can support the new Obfs4, Meek bridges so hide the UI options that promote them, and just request standard bri
3c6f173 make buttons not resize weirdly with long strings
421764b make socksbypass local port random
4ab1854 update resource installer to handle different architecture
e7a7d8c support variable arch builds to support x86 move asset builds to /assets folder
74deb39 support building tun2socks for x86
933b2e9 Small VPN and socket monitoring related fixes
/** 15.0.0 RC 2 / 9-Apr-2015 / 60f19ca **/
d6c51bc Fixes for bridge setup, and root/shell interaction
- If you paste bridge addresses from Gmail, you get some strange characters
c39cdcb improve root access check for transproxy
7d8eea2 switch back to DNS on 10.0.0.1, update after VPN refresh
690a8c3 Improved handling of VPN and Tun2Socks on Network Switch
9974654 fix for setting root and transproxy preferences
/** 15.0.0 RC 1 / 8-Apr-2015 / 280f69dfa10c38d880e98e71954526c68f1b3df5 **/
776b7af use loopback address
e6fe252 auto-restart Tor when config changes
384fe1c fix handling of network connectivity state management
02a42e4 update translated strings
628c9d8 update tor to 0.2.6.7
906ec7f v15-beta-2 small fixes for VPN
d6eb1dc fixes for network switching with VPN enabled
f37b935 modifications to bridge setup strings
/** 15.0.0 Beta 1 / 3-Apr-2015 / 989d43aca7d999c413ba23ae4ebdcac72fb0f9c5 **/
6fd6a5a tune first-time experience (No more wizard!)
b318e6b update tun2socks binaries
cd303bd commit to latest dev head
a2e84b8 fix JNI build info
398ff17 remove browser view handlers in manifest
75426bb Improve VPN service support - fix network switching handling We now refresh the VPN and tun2socks interfaces when the network
d14dabb update tun2socks shared libraries
6d15a46 update jni build documents
ab8f8f1 update build path for tun2socks
7774ca3 remove old embedded badvpn_dns
2724551 tag badvpn to latest
39ce7f1 improved clean-up, shutdown of Tun2Socks and VPN service
b1d46e2 use getbridge email instead of web, as it makes more sense for users in censored/filtered locations to send an email than to a
9d83a5b update app vpn warning
26aeb67 updating string resources / localizations
7dd4949 update jsocks with reduced debug output
8493259 new helper activities for Apps and Bridge setup
150488d fixes for onboot logic and handling
8c5b38e more UI clean-up, removing old wizard code
7b830a0 remove HTTP proxy for VPN - not needed anymore!
6a7c593 a little bit of code re-org and new package for wizard
1a66924 update ant build for new external jsocks
9393928 add jsocks external modules and project
e30c78b remove jsocks from main code and move to external/jsocks
784c1c1 peg external to jsocks commit
/** 15.0.0 Alpha 5 / 19-Mar-2015 / b7aa69c **/
2d5ee42 calling stop() makes tun2socks crash since VPN is still enabled
cae2c7c don't add new task flag - will start on boot automatically
33acf24 use LOLLIPOP constant instead of L
0bf26b2 add PT builds based on external/pluto golang build system this will be added into the Makefile but it isn't there yet and our
3286bb7 add libs and vpn libraries (binaries for now...) .so's can be built form external/badvpn source project, but we haven't integr
5e8272d revert to old logic for opening/showing browser
4918221 remove orweb dependecy for now - don't want to build in webkit yet
7557ad5 update external dependencies, add patch for tor build
84e97e6 update Makefile for building tor 0.2.6.4 with patch for Android
6d05e27 Improve Bridge and VPN support, working in tandem You can use Bridges with VPN "App Mode" proxying On Pre-Lollipop this uses a
3e2b8cf remove proxy prefs, parse bridge URLs, and format strings! - shouldn't set proxy prefs for Orweb as it conflicts with Orbot's
56df927 remove liballium and obfsclient dependencies We are switching to Go-based Meek and Obfs4 PT's
b278b66 switch obfsclient to obfs4 proxy includes supporting SOCKS outbound proxy for VPN mode
/** 15.0.0 Alpha / 23-Feb-2015 / 28d32bc **/
* Better Bridge Support
fb9a6c9 support for sharing/display bridge config as QR code this is needed for sharing of bridge data between people in the same phy
068cd05 more bridge and proxy configuration clean up
31053ad add support for scanning QR codes for bridges
f22978e update pluto
bff6d0f add support for meek PT
266c297 update to latest pluto for meek-client
22e75a3 update pluto to latest
431dff5 remove integrated pluto code
* Full Device VPN Mode
dd09c6b tuning boot code to work with VPN
b2ec768 more work to get bridge VPN mode to work
f2490d9 handle all exceptions in socks proxy
9c77526 move HTTP VPN bypass proxy to 9998
096eae7 implementing http server for meek-client VPN bypass
1e5651e improve VPN clean-up code
a2662c3 improve VPN activation
c220ec9 re-enable DNS settings after you start Tor
6832363 use IP instead of "localhost" name
7f42265 launch the internal or system browser depending upon VPN mode
1852cde enable local DNS listen on 10.0.0.1 for VPN service also add support for stopping VPNBuilder instance
ec4350e update VPN to toggle button
9467d7d clean VPN proxy settings before startup
d63d10d massive cleanup of merged code from Ony fork removal/comment out of LoggerFactory log system
a78e458 Merge branch 'ony-dev' into v15-dev
5c80572 Merge branch 'master' of https://github.com/SuppSandroB/Ony into ony-dev
4c49822 clarify vpnprotect code and add basic debug log
1464901 added badvpn as local folder
72a0173 delete as it should not be as subproject
90db557 clone of badvpn for dns fix
1472b4e some missing files added to git repo
08c220f clean up VPNBuilder setup code
91a72ef add in basic debug output
fb3e27b more clean-up of VPN service code
* Integrated Orweb simple browser
5a8aa88 add new gitmodules for orweb and pluto support
40b8f48 set to lib_orweb branch
* Misc
759966a remove unused activity from old wizard
0fc3805 update new colors
035ab8e add more strings for translation
09fc813 update base torrc
2c3b47e look and feel updates
a624503 remove unneeded wizard classes
70d6203 layout changes for a modern, cleaner (purple!) look
a1ba41c add a bridge toggle button
b1294f6 improve start on boot
70643fc ignore more things
33a5962 add pluto for PT integration
44efced update build files (tmp fix for now)
50519d8 ensure x86_64 case of NDK is supported
a41367c remove unneeded README
9b4ef18 fix NPE for when mHandler is null
17f2a0b remove unused alt manifests
5cb6cb9 add back in log output temporarily in sidebar
8dc2748 remove unneeded alt manifests, fix bug in main manifest
5131c62 add toolbar and drawer handlers back in
ede4128 remove unused
46aa51f make browser and VPN buttons enabed by default
d6d3c5d return app name to Orbot
d6ea648 update permissions
48f40b3 update resources for new design
7c303f1 refactoring into cleaner packages
ee1d548 clean up of manifest for unused functions
c1fe536 add button handle logic
753e21f update makefile for badvpn tun2socks
cf50ec1 more tweaks to new layout
6a83a0d update project and layout for v15 merged browser + VPN
21b75b4 vpn changes
09bdd8f renable the network state receiver code
2f899cb the lead developer appears!
7ee0622 Revert "Deleted unnecessary files."
84d7f49 updating primary manifest for Lollipop
6feb32c re-enable network receiver
/** 14.1.4 / 29-Nov-2014 / b7fcbdc4e85071191cc95c3824e7b5a90d36d1e8 **/
* Stop background service being killed
1e0f640 adding dummyactivity to stop task/broadcast from killing foreground service
ec9204a clean-up of code to make service more long-lived and stable
da4866c update polipo to latest head
* Activity and theme updates
917cfa1 support SDK 16, add custom theme, make Orbot singleTop activity
91f4fa0 cleanup landscape layout
ad7d92f clean-up / remove un-used code
d5823e3 updates to layout to make it cleaner
2d6c26a show exit node info in log
/** 14.1.3 / 24-Nov-2014 / c1f3e64b6b8a34c85a90fb2ee083431b6722ec60 **/
* 87d5ac9 changes to improve longevity of background service/Tor process
* 6115582 onResume() must finish before we call some APIs
* 406d83c add layout tweaks for v21
* cf21809 improves in start/stop logic for background service
/** 14.1.1 / 17-Nov-2014 / ec1c92f51957d4e93f8da35b81b603ace17acb7a **/
* use non-PIE build for up to SDK 20, and PIE build only for Lollipop
* Makefile fixes: make sure polipo is really cleaned; add only PIE flags for polipo
* add support for other onboot events, including external storage mount also version up to ensure install for PIE fix
/** 14.1 / 13-Nov-2014 / 5917e63693141dc08a99f8670ff3e274306a8c05 **/
* Updates to support Android 5.0 Lollipop
5917e63 updates for Android L and PIE binary support
5f49597 updates to appcompat v12 for Android L
7f50f79 update Makefile to support PIE arguments make PIEFLAGS="-fPIE -pie" NDK_PLATFORM_LEVEL="16"
f6ad0ff initial modifications for PIE support
* Stability fixes
f9e340b goodbye AIDL file... no longer using bound services
c9bb1c2 remove bind service and use localbroadcast instead this should fix problems with the service being killed on unbind
* Experimental (not enabled) VPN support for non-root whole device mode
ff86774 let's not build vpn support for now
3ef94e0 more fixes for VPN but not quite ready yet
aeb15e8 add sl4j jar dependecies for socks proxying
97ca6fb set MTU back to 1500 default
284a539 update badvpn commit
1b44dcb remove unused routes
a964bef moves VPN service to background Service so it doesn't die (and other important fixes)
6a53ddb adding in new jni build files
2d98a29 temporarily use udpgw-client to make DNS and UDP tunneling to work
6877aaf update to gp fork of badvpn
e459918 first commit of new OrbotVPN integration into Orbot
/** 14.0.8.1 **/
2bcb1ee removing binaries from source repo
a64e6b1 update Orbot about dialog display to show tor version
93614dd update english versions strings
ef98429 update tor binary constant to force on device upgrade
a3dc39d updating binaries
08317a9 fixes for transproxy/iptables rules - not all rules were not being cleared in flush - per-app transproxy now still transproxie
826b629 update changelog
b35a239 ensure all iptables rules are always wiped and reapply rules settings if modifed after settings menu accessed
313c92f add warning about restarting Orbot after settings changes
8ee5e9e more tuning of Tor service startup and status checking
9c4c349 fix for reconnecting to exiting Tor process after service restart
a0b32ba don't manually call onDestroy, just call finish()
b8912ad improve error handling of tor startup sequence don't use executor thread pool for time critical commands
c98509d remove duplicate service start/bind code in onResume() also disable startup button if service is null
b35a239 ensure all iptables rules are always wiped and reapply rules settings if modifed after settings menu accessed
313c92f add warning about restarting Orbot after settings changes
8ee5e9e more tuning of Tor service startup and status checking
9c4c349 fix for reconnecting to exiting Tor process after service restart
a0b32ba don't manually call onDestroy, just call finish()
/** 14.0.7.2 **/
6e65469 ensure settings are updated and binary paths are on service restart
af433d3 remove unused variables/patterns
b76be6d disable stdout log by default and enable daemon mode
dafd295 simplify process reconnect and transproxy setup - on reconnect to service, don't require call to getInfo before STATUS_ON is s
390b89e remove debug file logging for now until we can improve it
e53e03a tuning Orbot app conflict checker code
eaccf77 don't call handle intents twice!
24a3db8 update to 14.0.7
add04f2 exit menu option should be a menu
186e74b add new transproxy flush pref and strings
c78a822 add transproxy flush option to settings
68495c3 make delete iptables rules process match add for specific behavior no more drop all output tables, etc
25bc4c0 add new flush transproxy interface method
79a32e6 make sure control connection is not null on rebind - also tune app conflict checker code for Samsung Link
b307d51 make default SOCKs port auto, and THEN try to set specified port - also remove exit IP lookup loop bad code
9cc5f98 don't obfuscate class names; we just need to remove unused classes
3698e46 create new thread for connecting to existing process don't rely on executor yet, as we need it to happen fast
ea37b44 create new thread to just for existing process dont' rely on executor there yet
3a82421 no need for asynctask - just grab the status directly
e2f4f5f don't make these final, because the user might change them
7d243af update changelog
56dfff0 bumped to 14.0.6
05dd331 update to latest jtorctl with patches for thread, error handling
73d4297 bump to 14.0.5.4
ade6172 enable transproxy refresh feature, default off
0d42479 make expanded notif off by default; handle exceptions better - some devices seem to not like these new expanded/remoteviews no
11d3f59 reduce the onionoo lookup to just the required fields
3e58ee9 multiple fixes for status check and new transproxy calls - update to the new transproxy selective calls - improve status resum
6955c44 selectively disable/enable transproxy rules
f13269f update to 14.0.5.3
28877b1 new strings for app conflict checker function
ac6cdb7 enable app conflict checker for samsung users
1801ec1 don't stop Tor when service is destroyed()
113b189 update to latest OpenSSL 1.0.1i for important fixes
888b7cd update version to latest OpenSSL 1.0.1i
c517d0f Notification fix and change in finding existing process - Only build expanded notification on supported platforms - If service
387e74e bump to 14.0.5.2
5b014da update changelog
03b39ea make sure to clean up ps process/shell
e3385ab fixes for Tor processs tracking, control port, and start/stop
8481e61 update to 14.0.5.1
8036209 fixes for transparent proxy tethering
0709b0e remove this, as torrc.custom is built at runtime
754139a add new strings
31cf981 Address issues related to onionoo relay/node info lookup -Ensure streams, files are closed -Add timeout values to socket, stre
668ed68 update to 14.0.5-RC1
7ff49ff update Tor binary version number
6626b65 update strings, localisations
543c887 update to latest tor and obfsclient
023ef2d boot receive does not need HOME category
cbf4e99 handle CONNECTING state properly
6ed7ab0 onBoot perm should default to true
8f1b345 update for beta 2
5f52092 update for 14.0.5-beta-2
816d7d7 new icons for martus
6574312 new tips for app download
29a0641 make sure start on boot works properly
54a39f2 only show notifications if we have data
9d541d8 added mobile martus to rec'd apps
4d6c32a support dynamic SOCKS ip in polipo configuration
1cd0dcf fix proguard path for new sdk
8cc8886 update CHANGELOG
d439176 update to 14.0.5-beta
c4cf845 handle NPE in case service disconnects
1e6ff35 updating ant build shell permissions
498f647 remove external storage perm (debug log written internally) need to add ability to share internal file after marking it global
e1ec776 re-arch status callbacks and improve notification
c7409b7 update commit pegs for external
f2f076c fixes for layout and notification data be sure to only get the IP of the last hop (that is the exit)
a6da4bf small cleanup of asynctask and error handling
181b922 make the notification larger for more display room!
a82d2e4 remove unnecessary jar file
3bc8760 Merge branch 'new_notification_expanded' of github.com:amoghbl1/orbot-1 into amoghbl1-new_notification_expanded
41064d8 add persistent flag
b4079f4 update transifex config
8a934c9 don't close socket, and use HALT for shutdown
f9b38e6 if service is null, please start it
a447bbf update strings
522f293 update to 14.0.4.3
70615d6 fixes for status, service, binding and start/stop
fbc1a87 update to 14.0.5-alpha
bfa1d56 remove diag/test menu
10ceafa ensure status is not set to CONNECTING incorrectly
7f8e9b8 remove test/diag option
e13d228 fix bug with wrong apps being transproxied (typo!)
312c6da apps should only show those with internet permission
d56c87e update to 14.0.4.2
0e95dda update translations from transifex
bb0b7e8 unbind the service when the activity is destroyed we don't want leaky services
247e2ed don't kill Tor process and make sure service is sticky
8b6cff0 update CHANGELOG entries
7ec6de7 update to 14.0.4.1
298a01e make sure transproxy is renabled when network returns
2eb79a5 fulfilles the wishes of #12413 by support --default-torrc and -f
b6715b4 fixes #12411 and #12412 enables DNS and transport by default with new Orbot settings to enable user to easily change/disable
fc608d3 update to 14.0.4
0129976 improve ability to do a full clean stop of all services
af51290 add support for updating Polipo config
156ed57 clean up unbind process and service shutdown
8a59cfb use canonical paths to ensure shell commands are correct also cleanup torrc updating
f3d21ee improve resource installer ability to update torrc
c0f7d75 use one prefs instance
2ce9ea9 make default config files have ports off by default (0)
9025fc5 update to 14.0.3.1
dee0d19 improve logic for updating torrc files (not so often)
44648f1 clean up bind/unbind and handleIntent wizard logic
917ec8d update torrc and torrcdiag when you need to
f91a35b update tor binary constants to force upgrade
65eb7ad fix torrc defaults - add back in avoiddiskwrites
c04fc95 update to 14.0.3
42e0698 don't stop tor when service onStartCommand() is called again
fc63929 ensure diag/test mode stop's Tor on activity exit
328c6af tune bind/create service logic
4716696 make transport settings dynamic (remove from torrc)
2fe57e8 pegging tor to 0.2.4.22
00b535e updated to 14.0.2.1
c2be4ac ensure polipo conf is updated; default to 9051 for ctrl port
6ab9a7b reduce memory usage of polipo
b26b9d4 update to 14.0.2
aa8ff95 ensure readers are closed; ensure socks settings are applied
b4fa943 improve process id finding using android 'toolbox'
2d6a7b3 renable large heap request
d7f3f19 more fixes for UI disconnect issue ensure service and status updates occur on new layout updates
7e76162 bumping to 14.0.1
af51a98 allow support for adding custom lines to torrc
22938c9 multiple fixes for tor start including "auto" control port also try to kill hung tor process
0224365 ensure torrc values are overwritten
81bd617 updating to 14.0.0 build 100!
98ea6d5 update changelog
5776a87 update to 14.0.0-RC3
bf6a1da update state when service connects
451cfed keep SOCKS port as default 9050 (instead of 'auto')
f94e27a updated to 14.0.0-RC-1
bedeb71 more fixes for hidden service configuration now multiple ports are properly configured and notification will display correctl
051cce4 don't allow the tor control port socket to timeout
f4baf4d updated to 2.0.21-stable
120da6b more wizard flow fixes
816a6b2 updating to 1.1.1
24773c3 update to OpenSSL 1.0.1h
8b5bb04 Makefile patch for Orbot
ccaec1e update 14.0.0-BETA-2
da3c955 fixes for tor setConf/control port fixes hidden service support manages socks port conflicts
9345186 remove unnecessary line
707bca4 amek sure wizard only is shown once on start (not twice!)
0fddd80 fix for missing libs folder
7abea23 removing binaries from repo
70d7792 updated changelog
2650fda update to 14.0.0-BETA-1
476dc1a update binaries for 0.2.4.22 Tor
b6116b5 switch to 0.2.4.22 version of Tor for release
148e7eb remove deletion of polipo folder
352c23b updated binaries for OpenSSL 1.0.1h
7622d2c update constant for 1.0.1h and latest openssl vuln http://ccsinjection.lepidum.co.jp/blog/2014-06-05/CCS-Injection-en/index.h
d392439 fix bridge append value from qrcode scan
d6f5720 remove synchronized - not needed, and causing blocking
f52c22a Merge branch 'amoghbl1-issue_3014_wizard_workflow'
f6750e1 sometimes text can be null
fd47e70 fix control port connections with socket timeouts
36a6349 status should update whether there is msg or not
63b4304 Merge branch 'issue_3014_wizard_workflow' of https://github.com/amoghbl1/orbot-1 into amoghbl1-issue_3014_wizard_workflow
25f6499 Merge branch 'master' of github.com:n8fr8/orbot
e2e0d26 Merge branch 'hans_feature_desc'
c1f9296 new work on binding and service starting
e2e00cc removed largeheap value
13ef143 add app description to manifest to support p2p distribution
c111030 Merge pull request #1 from amoghbl1/issue_2374_story_maker
4759d9f implemented button click function for the story maker button, also url added in strings, change to liking at review
53e82b1 general cleanup, removed log.d's
6488e6a cleaned Permissions workflow, implemented override for back button
935fa91 cleaned LotsaText workflow, implemented override for back button
f29a494 cleaned ConfigureTransProxy workflow, implemented override for back button
ea384f9 cleaned ChooseLocaleWizardActivity workflow, implemented override for back button and added toast warning message string
ffcfce7 cleaned TipsAndTricks workflow
255623a added the story maker button to the tips wizard page, also added tip string to the strings file.
23c689c added icon for story maker button to be added to the hints and tips page
cfc8a99 updated to 14.0.0-ALPHA-4
278997d simple notification of bridge settings via URL
17934e6 initial support for setting bridge through URL
96c0a54 add large heap and remote process settings back in
726cf0c work to stabilize Tor background service auto-restart tor binary process if killed by Android OS print out debug info related
11c31fa update the changelog
14.0.0 (ALPHA-2)
583c758 updated to 14.0.0-ALPHA-3
90848b0 reduce memory usage of app and make single process
ba90f73 cleanup of notification and process kill code
76ec147 add some more externalized strings
e80c3bf check if installed apps are enabled
60a822a updated to 14.0.0-ALPHA-2b
69614fb updated Tor version to 0.2.5.4-alpha heartbleed blacklists for non-updated tor nodes
53673da fix bridge/PT enable code based on bridge types
9096f8c update 14.0.0-ALPHA-2a for some testers (samsung)
42d8ca1 for some devices, the process-id is listed first
fd51281 make sure the unbind intent is not null
b814019 improvement for network state checking code
648b10c updated changelog for v14
ea919c5 add the basic proguard support
147b57a remove unused preference
0dc50cc add log max size feature
b9f14b3 ensure setConft on control port works consistently
b056e7f remove debug waiter
b2d4bb3 updated to v14-alpha-2
cbbc5e4 improve how we start/stop Tor, Polipo to find process id, do ps of all, then filter (most compat) use async service for Tor st
b31c11f updated icons with dark background
2b6ff4e update manifest for v14-alpha-1
05b6553 add binary stripping to makefile
21c1cad update binaries and torrc for obfs/PT work
144460b fixes for preference handling in multi process context
38700f9 updated to 0.2.5.3 for scramblesuit/obfs support
d3865c0 fix settings handling and add more debug output also make SOCKS a runtime config
d529334 clean up wizard context use
0178d3e add new binaries and configs for polipo and others
40546c9 change from privoxy to polipo for http proxy
a4d8669 fix variable name to obfsclient
2f7a9dd update to new obfsclient repo
000cf57 update jtorctrl jar
f485015 install obfsclient binary
d003826 update binaries
4d3754b remove obfsproxy, update obfsclient
7af85b5 small updates to Makefile for NDK
2c2d094 Integrate obfsclient/liballium into the build process
43c259a Update the obfsclient submodule to include Android fixes
a6af878 liballium/obfsclient should be sourced from tp.o repos
13.0.6
89fc2e6 updated to 13.0.6-RC-3
b9eeb37 ensure Service has foreground priority so it is not killed (and improve onBind() calls to reset state if it is killed)
3824bc5 improving control port connection code adding additional logging for problems with Samsungs
fa6c101 bump version to 13.0.6-RC-2
cc020f5 small tweaks to Tor binary startup code
16799ef add automapresolve to ensure .onion address are handled
06d5a6f improve process lookup code
cd8b7e4 connect to "localhost" instead of 127.0.0.1
4673f04 update UI on rebind of service
c68ce2c fixes for transproxy to fix DNS leaks in some cases latest RC was leaking DNS due to updates iptables/xtables binary and need
915ff8a updated to 13.0.6-RC-1
3413b34 fixes for getting process id of Tor process
e9d0fea updates resources and tx config for tagalog
10938ed update string resources from transifex
5326d2b updated string values for components
8d73be6 bump to 13.0.6-BETA-8
af95098 remove "persistant" flag, as its only for system apps
831a52a improved logging and exit code reporting for transproxy
f853271 fix Service init/bind logic also remove updates for background drawing to save memory
8445f2e ensure appmgr doesn't fail on loading apps also don't load icons to improve memory usage
227253d updates to optimize resource memory usage
ed76f8b update to 13.0.6-BETA-7
60a79a2 more updates to install clean-up process
f885059 fix problem with UI rotation and screen update
efb9a8c update to 13.0.6-BETA-6
bf8a92c use AbsolutePath instead of Canonical; fix kill code
e1b1ca0 add constants for folder names
e8116f4 ensure existing files are deleted before upgrade
25f4ac8 adding new small icon
981123f update to 13.0.6-BETA-5
b6a9b48 ensure existing binaries are removed before install problems may be caused by soft links or old bins
ef14ac5 fix large icon incorrect display in alert dialogs
bab67b7 small fixes for the wizard with new UI
3d1f391 updates for icons, backgrounds and improved drawing code to solve issues related to outofmemory
9d1311c updated to dark icon
b329920 update to BETA-4 for Permission changes
c9bf8d2 fix Shell calls so that we close() shell when done
e78486a update to support specific permissions for Service this is an attempted fix for Samsung S3/Note3 issues
7990644 update version to 13.0.6-BETA-3
917ea6e fix for mikeperry transproxy leak bug find https://lists.torproject.org/pipermail/tor-talk/2014-March/032503.html
fc0554f fix for binary version upgrade support
4ed6ea1 updated pre-built binaries
7229c52 updated to openssl 1.0.1g
6bce7d5 fix ant build script and target
e5b70ba improve shell command, root and permissions handling
b734c6c add new library for superuser/shell commands
dda5633 updated to 13.0.6-BETA-1
298f73c update Tor version code
75d3ecb update language wizard display to be more clear
fe44c29 add binaries (for non NDK developers)
05bf5b7 add/update translations from transifex
344e914 add transifex tx config
8140b32 a little bit of cleanup of new binary installs
e25dc08 fixes the menus for appcompat library
cc8d3e1 update to return to binaries as ZIPd res/raw stop using the libs/armeabi hack method
b59bd1a remove binary apps/libs
445f63f updates ant build for new actionbarcompat
765a3bf updated graphic
8c20759 removed ABS depdency in favor of AppCompat
d0d7880 Signed-off-by: Nathan Freitas <nathan@freitas.net>
75a0d34 Signed-off-by: Nathan Freitas <nathan@freitas.net>
e5fdf28 updated binaries from new build script
57ef1c3 Fix building of openssl on newer systems
b5a043a updated Makefile to not build libevent TESTS
dab37b5 setting to 4.6 for compat
1a346cf updated makefile
02c389c updated obfsclient external
06b46f1 updated to only build tor binary and not tests, etc
d311f71 13.0.6 minor UI updates, Tor version update
a24eacd add hi-res icon for the web
f322f6b add new graphics and icons
806fe40 update external commit tags
27d5945 remove redundant iptables rules for transproxy
4e1357b add new background graphics state change to main UI
714af31 updated icon and main graphics
dc58c40 updated binaries built from "make -C external"
13.0.5 (includes v12 changes as well)
d605b45 add obfsclient build but don't include binary yet
0aa4294 add new obfsclient module
c1cb30d remove issue with service launching via explicit intent
87411be fix code for finding existing processes
16c5426 adding new bg images for next release
c3327d7 13.0.4a fix for Tor link setup
3b9d6c8 make sure Tor path link is cleanly setup and chmod'd
e55f724 bump to 13.0.4
cac2a28 updated TorBinaryInstaller now just handles resources
f538930 fix xtables installation and permission setting more fixes for running from sdcard
43625f8 bump to 13.0.3
c595963 solves problem with binaries being stored on external SDcard
649ca40 enable compiliation for all android not just armv7
591161f updated to 13.0.2
635e307 cleanup imports
db53c19 updated binary versions in strings
62a5da6 updated tor binary that works with armv5 and v7
6927126 updated torrc without automap settings (not needed)
92d19e3 ensures binary permissions are set
14fab24 bump to 13.0.1
39699e6 add new icons showing different status
d3c11be add geoip v6 file and support in TorService
e24ae6c update Makefile - try building with older toolchain
a60c614 change jtorctl path to github updated version
8c4f09e new binaries built with update Makefile
8527929 unregister receive and check for alternate library path
1fa568d peg to new repo and head with fix for empty element bug
8b8e51b remove double entry for jtorctrl
cf5e445 fixes #2848 newnym might call a null conn in service
069a9bf fixes #2847 use class name to start service
2735a59 update to 13.0.0; release candidate 1
096144b adding in binaries for UI/Android devs without NDK All binaries can be built from source using Makefile in /external
f69c1aa updated jtorctrl build
0b024c9 Merge branch 'master' of https://github.com/eighthave/orbot into hans_build_patches
d54cf74 bump to 13.0.0-alpha-1
276e6c3 remove old external openssl-static path
e0a7fbb check for both link and original path in process lookup
b48bbc1 updated AUTHORS for amoghbl1
e9396b7 use new bundled xtables binary appropriately
ca28ade add patches for iptables/xtables building on Android
76b15dd adding new iptables/xtables build from source
8b65332 clean up of error notifications
8722db9 put threading of settings reload into TorService
d2006b2 remove static openssl android and replace with real openssl
0e6bb42 add new openssl
c4d8c97 stop button for notification bar
c80c5d4 improvements on notification code
5891fee service should be unbound when activity is destroyed also some other cleanup of unused code
867ff53 remove simple server source bundle
3069fb5 run Tor from link to keep compatibility with OrbotHelper class some apps use our OrbotHelper.java class and are expecting the
17f7d46 update menu, strings, icons for ChatSecure (from Gibberbot)
198974a update to build openssl latest
468076e set to 1.0.1e release
8666b1b updating tor to 0.2.4.20
95461da adding back in jtorctrl jar file
f3cbb6e updating SDK and removing share intents
6e79596 updating to Android 18 / 4.4
420dd1e adding geoip ipv4 db back in for now
1739473 more updates for moving binaries to libs/armeabi
5870a67 update for 0.2.4.20 constant
6a125a9 more removal of share service from core Orbot moving to a separate app
a0de736 change "network conn" preference to be more clear
c58f009 remove simple jar from project (moving sharing to sep app)
5286421 remove "ShareService" from projet (moving to separate app)
a8ca927 remove simple file sharing server from build process
fbd4fdc updated to android-18
6b0b0fa more changes for executing binaries from libs/jni folder
d40016b move minimum device support to API 9 or 2.3
d6d989a updated jar for jtor control
4d6e0cc update makefile for new install process update tags for libevent and tor
d236708 removing binaries from repo binaries will now be stored in /libs/armeabi as psuedo shared libraries (actually executables) and
ca8197f update native build to include Android NDK build flags
2d34745 include note about git submodules in BUILD instructions
ddd62f2 remove spaces and tabs where 'make' complains about them
f4e73e9 updating version to 12.0.5
abe1788 another shared prefs fix
e632b3b fixes for sharing preferences across processes
9a10cdd updated orbot glow icon
a9b41a8 make orbot another background process
8f44c51 make sure binaries and config files are updated
e84ee71 added GUI support for flinging to a newnym identity
f12e556 added support for NEWNYM signalling
9dacb5b updated transproxy iptables rules to ensure clear/flush
965dab2 updated to 12.0.4
4407257 adding raw design resources
5930964 new green/tor on mode
cea338d add new Root utility for checking if root is possible
82fcea0 fixes for superuser and iptables check code
9d6f3c8 removed unneeded old iptables binaries
38e2f49 12.0.3 0.2.4.16-rc
1bc97c6 change default "disable network" pref to true
a97432c update manifest to 12.0.2
fb49463 update to latest tor 0.2.4.16-rc
5bcb607 update the readme copyright
3d387af add our new icon source CC license link
eb1c6b0 make the "check" button a bit smarter
9a2a989 updates to graphics, layouts and strings
2cfd6af update torctrl jar
79e6eec update tor to tor-0.2.4.16-rc
0a3cc50 add resources for airplane mode/network disable
2c278f3 fix for notifications and debug option for "airplane mode"
cdd75f3 disable share/send feature for this release
cfb0473 remove unneeded view and share intents
adc57ae removed android Debug code
d407f32 update Tor binary version number to ensure upgrade
5b57407 updated classpath for latest eclipse
bebb143 make Orbot just one process
21d1023 fixes for prefs/settings management
303ceb4 updates for building
edd855f new builds of binaries
42b111a updating commit peg for ndk8 fix
179ef6e updated git submodules to public https paths
1bf7bb0 updating version
74fed91 updated jtorctrl built library
515b8ce added new strings resources
bbf8d8a updating string resources from transifex
273e190 updating built binaries
4f9a502 updated Tor repo
86d8c16 updates for new UI and file sharing
8aaa8cb updated process to singletop; rev'd version
700121d add simple external module to ignore path
2ab32fc new preference value updates
b6e2507 UI and flow updates
442216f share service via http hidden service
667fa64 updated for settings return value
3ea016b updates for reading preference settings
c5627f4 cleaned up notification support and added Share service
25a895a updated tor binary version number
c4810d4 added new method for remote server interface for Share service
1576775 closed reader stream
83319c1 added message for when internet is down
63b31cd updated to android 17 target
eb3f95c updated params for tuning, including largeHeap=true
21c2797 support landscape layout and new Share intent
7df2acd cleanup of imports and unclosed streams
ba9b95a new landscape layout for tablets with log view
2b9007e updated to latest libevent and tor repos
fe591d6 updated to latest jar libs
225cd32 tuning of torrc to try to resolve bugs
aaa2ed5 updated built binary to 0.2.4.10-alpha
216a41d adding new HS/onion based file sharing service
1748cb4 added missing path to libevent include
fb0a0fa updated to 0.2.3.25
8023d16 updated locale handling to stop flashing
e2bbe4c proper spelling of Farsi
1.0.11
- Tor updated to 0.2.3.23-RC
- ActionBarSherlock updated to latest release
- libevent2 on 2.2.1-alpha
- added data up/down speed and totals display
- added new "Log" SlideDrawer log display
- added ability to copy logs by touching log (for emailing, debugging)
- fixed iptables Android 4/Jellybean compatible binary detection
- iptables add/delete now on specific rules; no more global FLUSHing
- transproxy ensures that UDP is blocked properly for all or selected apps
- wizard display is centered
- added network connectivity monitor to set Tor's DisableNetwork value
- fixed wizard tips apps recommendations; added DuckGo, Twitter, Firefox Proxymob
- insure that iptables rules are only added once, and that all are cleared
1.0.9
- Tor now updated to 0.2.3.17-beta
- Privoxy updated to 3.0.12
- tweaked layout for smaller screens
- fixed obfsproxy android patch build error
- privoxy: removed lpthread library flag since Android has it built-in
- updated strings; made notify on/off option work again
- added background view; fixed long click;
- removed unneeded landscape custom layout
- updated layout for larger screens
- updated impl of torified apps logic
- improved wizard flow on non-root devices
- removed gcc ssp hardening (not support on Android NDK)
- fixed posix thread option for Privoxy
- added docs folder and readme's
- clarified english strings for hidden srv and proxying
- moved Tor data directory to app_data from cache
- fixed notification persistence handling
- fixed relay/server mode option resolv.conf error
- fixed app list display
1.0.8 (includes 1.0.7.3 and 1.0.7.2)
- new external/Makefile and git submodules
- fixed tor control port cookie file path lookup related to #5305
- updated strings
- adding in manual locale selection
- added obfsproxy binary to res/raw and binary installation process
- added new preferences to support obfsproxy bridge configuration
- upgraded tor binary to 0.2.3.11-alpha
1.0.7
- reduced data folder size by making geoip file only installed on demand
- added options for turning of persistent notification
- enabled access to localhost ports for SOCKS, HTTP, etc even when transproxy is on
- improved handling of tor and privoxy binary upgrades
- updated openssl to 1.0.0f to address recent SSLv3 threat
- check for root mode uses "which su" command and does not look for Superuser.apk
- changed tor binary res/raw storage mechanism to use the "mp3" file ext trick
1.0.6.1
- small fixes to wizard UI
- fixed "exit" problem, after running wizard
1.0.6
- updated tablet layout graphic sizing
- stopped Orweb from being transparent proxied (not needed)
- updated to Tor 0.2.3.7-alpha binary
- geoip database now included for exit/entrace node control
- stopped iptables rule purging if transproxy is not enabled (conflicted with DroidWall and others)
1.0.5.3
- added auto-tor of wireless and usb tethering
- integrated new setup wizard
- moved large tor binary into split multiple 1M segments to fix for devices with 1M resource limit
1.0.5.1/.2
- small updates to layout of main screen to fit smaller screens
- fixed preference setting of EntryNode torrc value
1.0.5
- added exit node and "StrictExitNode" preference
- fixed tor binary installation issue related to max resource size and compression
- updated "start on boot" code to test for proper launch event
- updated to Tor 0.2.2.25-alpha binary
- moved back to single notification bar id to avoid double entries
- cleaned up progress dialog and alert handling to avoid leaky windows
- Merged __sporkbomb's patch for how transproxy all works; now does "everything but Tor"
- Added new toolbar notifications and alerts for displaying notifications and Tor messages
- Removed unused Socks client code from android.net package
- Updated wizard to show link to Gibberbot (formerly OTRchat) chat app
- Bundled iptables 1.4.7 for ARM instead of relying on installed version
- Fixed various issues related to iptables, transproxying for CyanogenMod7/Android 2.3.*
- Changed how settings changed are processed through the control port (batched instead of one by one)
- Stopped app by app flushing of iptables rules, in favor of complete flush of 'nat' and 'filter' type
- removed useless log screen (logs can be viewed/retrieved using 'alogcat' 3rd party app)
1.0.4
- Added Russian, Persian, Arabic and other .po translations (see res/values-* folders)
- Fixed incorrect try to clear iptables rules for non-root devices
- Fixed bug that stopped wizard helper from showing first time
- Added new green notification icon when Tor is connected
- Fixed app selector layout in settings
- Moved minSDK to 4 (Android 1.6); discontinued 1.5 support
- Fixed log screen touch disable tor bug
- Debugged issues around network status change causing FC/crash
- Added "Start on Boot" option
1.0.3
- Fixed spanish language issues with settings screen
- Cleaned up logging, and moved most of it to debug output only
- Small changes to iptables, transproxy settings to handle iptables 1.3 and 1.4 variations
- Added compile time variable/flag for turning on/off detailed control port output to Android stdout
- Hidden services now support through option in settings
- removed double apostrophes from value/strings.xml files
1.0.2
- Added "check" yes/no dialog prompt
- Debugged iptables/transprox settings on Android 1.6 and 2.2
- Added proxy settings help screen and fixed processSettings() NPE
1.0.1
- Found and fixed major bug in per-app trans proxying; list of apps was being cached and iptables rules were not properly updated as the user changed the selection in the list
1.0.0 - 2010-08-10
- Added "Proxy Settings" help screen
- Handle potential null pointers on process settings where service not yet active
0.0.9x - 2010-08-03
- Revised Orbot install wizard
- Integrated Tor 0.2.2.14 and iptables 4.x binary
- Fixed "got root" detection method
- Fixed Per App Torification handling so it updates on exit from Settings screen
0.0.8x - 2010-07-15
- Updated Settings & App configuration screens
- Changed progress dialog display
- Significant application re-arch
- Fixed force stop crash on install
- Integrated Tor 0.2.2.13-alpha-dev binary
- Fixed su shell cmd error handling & root perms issue
- #1570: Added new setup wizard on install to clarify root / non-root capabilities
- #1716: Per-app traffic routing prefs not persisted
- #1509: Help window is too big for the screen on android 1.6
- #1513: Orbot can't be told to exit <-- added 'Exit' menu option
- #1530: Capture sh cmd stout for debugging errors <-- updated debug log screen
- #1531: Don't loop ad infinitum in Orbot fails <-- only retries 3 times now
- #1272: Orbot should store Tor files in the cache
- #1273: Info should mention anonymity problems with ProxySurf
0.0.5x
- #1388: Error parsing PID from output of "ps"
- #1277, #1278: Enabling bridges issues
- #1279: Misleading message when initialization is finished
- #1292: Tor version in About screen is wrong
0.0.3x - 2010-03-15
- Added Start/Stop menu item for non-touch activation
- Improved parsing and validation of settings screen
- UI now compatible with landscape mode (#1276)
- Added relay support for static/publicly accessible IP devices
0.0.3a - 2010-02-07
- Integrated iptables support for transparent proxying of outbound port
80 and DNS
- Privoxy is now used as HTTP Proxy server (cross-compiled to ARM)
- New UI layout and graphics
- Android settings screen for generated torrc file
- Improved performance and error handling
0.0.2a - 2009-11-30
- Update user interface layout and graphics
- Modified service launch, shutdown and handling
- Improved event handler on Tor Control port callbacks
- Added Help page
0.0.2 - 2009-11-27
- Major improvement to the user interface including relative layout for
different screens
- New graphics resources
- Implemented Tor Control Port using official Java library
- Added 'clear' button to the log screen
- Added 'save' and editable textbox for the settings screen
- Moved screen navigation to a pop-up menu
0.0.1-alpha - 2009-10-21
- First code release
- Major Features: Tor binary application is fully operational, UI:
Start/Stop Tor, View Message Log, View Settings (torrc)

40
INSTALL
View File

@ -1,40 +0,0 @@
Orbot: Android Onion Routing Robot
***********************************************
Android is a freely licensed open-source application developed for the
Android platform. It acts as a front-end to the Tor binary application,
and also provides an HTTP Proxy for connecting web browsers and other
HTTP client applications into the Tor SOCKS interface.
*** PreReqs ***
You need the Android Developer SDK to compile and build the APK file:
http://developer.android.com/
The project files including in this distribution are meant to be used
with Eclipse: http://eclipse.org/
*** How to use ***
Currently, Orbot will work with any application that supports using
an HTTP or SOCKS Proxy. Once you start Tor using Orbot, you can then
point your application to HTTP port 8118 or SOCKS port 9050 on localhost
IP 127.0.0.1.
If you have root access, and a version of Android with iptables that
supports the netfilter owner module, then Orbot can setup transparent
proxying for any application.
Finally, Firefox on Android is available, and we have released an
add-on named ProxyMob for configuring SOCKS proxy settings for use
with the local Tor socks proxy.
** A Few Notes **
To ensure you are connected to the Tor network, you should browse to
https://check.torproject.org/
The first time you activate Orbot, it may take a while to connect to
Tor. Check the message log to ensure you are "100% Bootstrapped".
***********************************************
/* Copyright (c) 2009,2010,2011, Nathan Freitas, The Guardian Project
* http://guardianproject.info/ */

64
LICENSE
View File

@ -41,6 +41,41 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*****
===============================================================================
Orbot includes the Obfs4 pluggable transport:
https://gitweb.torproject.org/pluggable-transports/obfs4.git
Copyright (c) 2014, Yawning Angel <yawning at torproject dot org>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
===============================================================================
*****
*****
Orbot contains a binary distribution of Privoxy (http://www.privoxy.org/)
Copyright © 2001-2010 by Privoxy Developers <ijbswa-developers@lists.sourceforge.net>
@ -158,3 +193,32 @@ is explicitely stated in the header of every file.
The GPL also contains some obligations. If you distribute netfilter/iptables code
in binary form, you have to offer the source code, too.
===============================================================================
===============================================================================
Orbot also includes BadVPN tun2socks: https://github.com/ambrop72/badvpn
Copyright (c) 2009, Ambroz Bizjak <ambrop7@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the author nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
===============================================================================

36
README
View File

@ -1,15 +1,28 @@
Orbot: Android Onion Routing Robot
Tor Android
***********************************************
Orbot is a freely licensed open-source application developed for the
Android platform. It acts as a front-end to the Tor binary application,
and also provides an HTTP Proxy for connecting web browsers and other
HTTP client applications into the Tor SOCKS interface.
This is a project forked from Orbot for building the tor binary for Android
How to Build
***********************************************
Orbot is a component of the Guardian Project, an effort to develop
a secure, anonymous smartphone for use by human rights activists, journalists
and others around the world. Learn more: https://guardianproject.info/
Please see: https://raw.githubusercontent.com/n8fr8/tor-android/master/BUILD
How to Use via Gradle
***********************************************
Add the repository your list as shown:
repositories {
maven { url "https://raw.githubusercontent.com/guardianproject/gpmaven/master" }
}
and then add the dependency, setting it to the latest version (or any version) we have made available, as a release:
dependencies {
compile 'org.torproject:tor-android-binary:0.3.1.9'
}
***********************************************
Tor protects your privacy on the internet by hiding the connection
@ -21,10 +34,3 @@ Tor Frequently Asked Questions:
https://wiki.torproject.org/noreply/TheOnionRouter/TorFAQ
https://www.torproject.org/faq.html.en
***********************************************
/* Copyright (c) 2009-2013, Nathan Freitas, The Guardian Project
* https://guardianproject.info/ */
*****

View File

@ -1,46 +0,0 @@
<!-- Proguard Properties -->
<property name="obfuscate.dir" value="obf" />
<property name="obfuscate.absolute.dir" location="${obfuscate.dir}" />
<property name="android-jar-preobfuscate" value="${obfuscate.absolute.dir}/original.jar" />
<property name="android-jar-postobfuscate" value="${obfuscate.absolute.dir}/postobf.jar" />
<property name="out.dex.input.absolute.dir" value="${android-jar-postobfuscate}" />
<!-- replaces the post-compile step from ant_rules_r3 -->
<target name="-post-compile" depends="-dex-obfuscate,-dex-no-obfuscate">
</target>
<target name="-dex-no-obfuscate" unless="build.mode.release">
<mkdir dir="${obfuscate.absolute.dir}" />
<jar basedir="${out.dir}/classes" destfile="${android-jar-postobfuscate}" />
</target>
<!-- Converts this project's .class files into .dex files -->
<target name="-dex-obfuscate" if="build.mode.release">
<property name="proguard-jar" value="${proguard.dir}/proguard.jar" />
<property name="proguard-conf.dir" value="" />
<property name="proguard-conf.absolute.dir" location="${proguard-conf.dir}" />
<property name="proguard-conf" value="${proguard-conf.absolute.dir}/procfg.txt" />
<path id="fullclasspath">
<path refid="android.target.classpath"/>
<pathelement path="${external.libs.dir}"/>
</path>
<property name="libraryjarpath" refid="fullclasspath"/>
<!-- Add Proguard Task -->
<taskdef resource="proguard/ant/task.properties" classpath="${proguard-jar}" />
<mkdir dir="${obfuscate.absolute.dir}" />
<delete file="${android-jar-preobfuscate}"/>
<delete file="${android-jar-postobfuscate}"/>
<jar basedir="${out.classes.dir}" destfile="${android-jar-preobfuscate}" />
<proguard>
@${proguard-conf}
-injars ${android-jar-preobfuscate}
-outjars ${android-jar-postobfuscate}
-libraryjars ${libraryjarpath}
-dump ${obfuscate.absolute.dir}/dump.txt
-printseeds ${obfuscate.absolute.dir}/seeds.txt
-printusage ${obfuscate.absolute.dir}/usage.txt
-printmapping ${obfuscate.absolute.dir}/mapping.txt
</proguard>
</target>

View File

@ -1,3 +0,0 @@
Manifest-Version: 1.0
Sealed: true

17
build.gradle Normal file
View File

@ -0,0 +1,17 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0'
}
}
allprojects {
repositories {
google()
jcenter()
}
}

View File

@ -1,92 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="Orbot" default="help">
<!-- The local.properties file is created and updated by the 'android' tool.
It contains the path to the SDK. It should *NOT* be checked into
Version Control Systems. -->
<property file="local.properties" />
<!-- The ant.properties file can be created by you. It is only edited by the
'android' tool to add properties to it.
This is the place to change some Ant specific build properties.
Here are some properties you may want to change/update:
source.dir
The name of the source directory. Default is 'src'.
out.dir
The name of the output directory. Default is 'bin'.
For other overridable properties, look at the beginning of the rules
files in the SDK, at tools/ant/build.xml
Properties related to the SDK location or the project target should
be updated using the 'android' tool with the 'update' action.
This file is an integral part of the build system for your
application and should be checked into Version Control Systems.
-->
<property file="ant.properties" />
<!-- if sdk.dir was not set from one of the property file, then
get it from the ANDROID_HOME env var.
This must be done before we load project.properties since
the proguard config can use sdk.dir -->
<property environment="env" />
<condition property="sdk.dir" value="${env.ANDROID_HOME}">
<isset property="env.ANDROID_HOME" />
</condition>
<!-- The project.properties file is created and updated by the 'android'
tool, as well as ADT.
This contains project specific properties such as project target, and library
dependencies. Lower level build properties are stored in ant.properties
(or in .classpath for Eclipse projects).
This file is an integral part of the build system for your
application and should be checked into Version Control Systems. -->
<loadproperties srcFile="project.properties" />
<!-- quick check on sdk.dir -->
<fail
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable."
unless="sdk.dir"
/>
<!--
Import per project custom build rules if present at the root of the project.
This is the place to put custom intermediary targets such as:
-pre-build
-pre-compile
-post-compile (This is typically used for code obfuscation.
Compiled code location: ${out.classes.absolute.dir}
If this is not done in place, override ${out.dex.input.absolute.dir})
-post-package
-post-build
-pre-clean
-->
<import file="custom_rules.xml" optional="true" />
<!-- Import the actual build file.
To customize existing targets, there are two options:
- Customize only one target:
- copy/paste the target into this file, *before* the
<import> task.
- customize it to your needs.
- Customize the whole content of build.xml
- copy/paste the content of the rules files (minus the top node)
into this file, replacing the <import> task.
- customize to your needs.
***********************
****** IMPORTANT ******
***********************
In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
in order to avoid having your file be overridden by tools such as "android update project"
-->
<!-- version-tag: 1 -->
<import file="${sdk.dir}/tools/ant/build.xml" />
</project>

View File

@ -1,45 +0,0 @@
GSoC Plan
=========
A tl;dr version
---------------
I will be improving the Orbot UI/UX, and adding several features such as data statistics and also
implementing the TorCheck API. I plan on extending the ORLib library and also creating an ORLib enabled
app as a sort of primer for other third party apps to follow
The full version
----------------
Orbot UI/UX
===========
At the moment, the Orbot UI/UX is clustered and not very intuitive. I plan on improving the existing
elements of the UI and also add a variety of new features such as
* A new Set up Wizard ( which checks for iptables )
* Changes to the preferences ( should be made to follow the Android guidelines)
Orbot Core app work
===================
At the moment, Orbot displays a successful connection without actually checking the connection. This is a
pressing issue, because the user is not notified if the set-up has failed, unless he/she manually checks
the torcheck web service. This should be made automatic by making using of the TorCheck API. Also, Orbot
should be configured to show more information about the data being transmitted such as -
* Amount of data transferred
* Quality of the connection
* Number of circuits connected
ORLib
=====
Currently, ORLib is very minimal at the moment, both in term of features and support/documentation. ORLib
is very critical to the use of Orbot as it provides transparent proxying on non-rooted devices ( A major
chunk of android phones are un-rooted). I intend to -
* Improve the existing library by adding additional features
* Check for existing of Orbot
* Check status of connection to Tor
* Provide option to start Orbot via intent
* Request hidden service by port, and get return hidden service .onion address
* Create an ORLib enabled “Twitter, Status.net or other micro blogging Client” A sort of primer for
third-party apps
* Improve the documentation

View File

@ -1,90 +0,0 @@
.
└── org
└── torproject
└── android
├── AppManager.java
//this is what helps us track the app-by-app torification
//and gets the app name, icon, etc for display - we have some problems here
//in normalizing the icon on the list label
//some of this code came originally from DroidWall project (yay open source)
├── boot
│ └── OnbootBroadcastReceiver.java
//i think this is a dup now and should be removed
├── HiddenServiceManager.java
//empty! but at some point i thought it would be good to aggregate HS functions here
├── OnBootReceiver.java
//this is the class registered in AndroidManifest.xml to handle Onboot events
//to start Orbot/Tor when the device boots if the user has elected to do so - what kind of permissions does this require?
// <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
// BTW, this shows up as a fairly unintrusive type perm request now in Android / in older versions (1.6 and earlier)
// it was reported "as read / monitor phone state" and paranoid Tor-types didn't like the idea of it
// in 1.6+ it has a much better UX in terms of having a more granular permisions around boot since it is a very
// common request - ah , that's awesome, i think i remember seeing sth of this sorts when i was going through the guardianproject mailing list. iirc this is something ioerror wanted
├── Orbot.java
//our wonderful main activity!
├── ProcessSettingsAsyncTask.java
//this was just added in 1.0.5.x, but it was meant to help stop the UI blocking while processing settings and prefs
//it uses the AsyncTask feature of Android, which seems to work pretty well
//for this type of non-time critical function you just want to happen in the background at some point soon-ish
├── SettingsPreferences.java
// Settings activity that loads the res/xml/preferences.xml resource up
// has some custom event handlng, onActivityResult callback result code's as well
// basically meant to tell Orbot activity if critical settings have been modified and whether
// those new settings should be applied (like iptables/transproxy changes)
├── TorConstants.java
// globals! well, constants! but yeah, just a place to put values we use a lot
├── TorifiedApp.java
// object to store a single app's metadata for display in UI and for transproxy process
├── Utils.java
// random methods that can be useful, a.k.a. another place to put stuff
├── WizardActivity.java
// our original attempt at wizard activity that didn't get far
└── WizardHelper.java
// the helper class that manages the dialog based wizard
├── service //okay the Service subpackage!
│ ├── Api.java
//this is more code taken from DroidWall, that needs to be cleaned up and paired down to just what we need it for
//this is related to 1.0.5.x changes with how we bundle and install our C binaries (tor, privoxy and iptables)
│ ├── ITorService.aidl
// the android remote interface definition file;
// this is the remote interface which the Orbot activity gets a reference to
// and that in the TorService is instantiated as the "binder"
│ ├── ITorServiceCallback.aidl
// this is the callback interface that the Orbot activity instantiates, and passes
// to the ITorService; reverse of ITorService in a sense
│ ├── TorBinaryInstaller.java
// this handles installation of binaries; uses Api.java; // tied into Wizard as well
│ ├── TorServiceConstants.java
// reusable constants for just the Service package
│ ├── TorService.java
// the main might powerful service class; Orbot and TorService are the front and backends of this whole app
// should run as a remote service, but the manifest doesn't seem to indicate that at the moment
│ ├── TorServiceUtils.java
//utility methods for the service; specificaly check for root and tools for finding processID of background binaries
│ └── TorTransProxy.java
// all the code for iptables transproxying management

Binary file not shown.

Binary file not shown.

15
external/.tx/config vendored
View File

@ -1,15 +0,0 @@
[main]
host = https://www.transifex.com
lang_map = af_ZA: af-rZA, am_ET: am-rET, ar_AE: ar-rAE, ar_BH: ar-rBH, ar_DZ: ar-rDZ, ar_EG: ar-rEG, ar_IQ: ar-rIQ, ar_JO: ar-rJO, ar_KW: ar-rKW, ar_LB: ar-rLB, ar_LY: ar-rLY, ar_MA: ar-rMA, ar_OM: ar-rOM, ar_QA: ar-rQA, ar_SA: ar-rSA, ar_SY: ar-rSY, ar_TN: ar-rTN, ar_YE: ar-rYE, arn_CL: arn-rCL, as_IN: as-rIN, az_AZ: az-rAZ, ba_RU: ba-rRU, be_BY: be-rBY, bg_BG: bg-rBG, bn_BD: bn-rBD, bn_IN: bn-rIN, bo_CN: bo-rCN, br_FR: br-rFR, bs_BA: bs-rBA, ca_ES: ca-rES, co_FR: co-rFR, cs_CZ: cs-rCZ, cy_GB: cy-rGB, da_DK: da-rDK, de_AT: de-rAT, de_CH: de-rCH, de_DE: de-rDE, de_LI: de-rLI, de_LU: de-rLU, dsb_DE: dsb-rDE, dv_MV: dv-rMV, el_GR: el-rGR, en_AU: en-rAU, en_BZ: en-rBZ, en_CA: en-rCA, en_GB: en-rGB, en_IE: en-rIE, en_IN: en-rIN, en_JM: en-rJM, en_MY: en-rMY, en_NZ: en-rNZ, en_PH: en-rPH, en_SG: en-rSG, en_TT: en-rTT, en_US: en-rUS, en_ZA: en-rZA, en_ZW: en-rZW, es_AR: es-rAR, es_BO: es-rBO, es_CL: es-rCL, es_CO: es-rCO, es_CR: es-rCR, es_DO: es-rDO, es_EC: es-rEC, es_ES: es-rES, es_GT: es-rGT, es_HN: es-rHN, es_MX: es-rMX, es_NI: es-rNI, es_PA: es-rPA, es_PE: es-rPE, es_PR: es-rPR, es_PY: es-rPY, es_SV: es-rSV, es_US: es-rUS, es_UY: es-rUY, es_VE: es-rVE, et_EE: et-rEE, eu_ES: eu-rES, fa_IR: fa-rIR, fi_FI: fi-rFI, fil_PH: tl-rPH, fil: tl, fo_FO: fo-rFO, fr_BE: fr-rBE, fr_CA: fr-rCA, fr_CH: fr-rCH, fr_FR: fr-rFR, fr_LU: fr-rLU, fr_MC: fr-rMC, fy_NL: fy-rNL, ga_IE: ga-rIE, gd_GB: gd-rGB, gl_ES: gl-rES, gsw_FR: gsw-rFR, gu_IN: gu-rIN, ha_NG: ha-rNG, he_IL: he-rIL, hi_IN: hi-rIN, hr_BA: hr-rBA, hr_HR: hr-rHR, hsb_DE: hsb-rDE, hu_HU: hu-rHU, hy_AM: hy-rAM, id_ID: id-rID, ig_NG: ig-rNG, ii_CN: ii-rCN, is_IS: is-rIS, it_CH: it-rCH, it_IT: it-rIT, iu_CA: iu-rCA, ja_JP: ja-rJP, ka_GE: ka-rGE, kk_KZ: kk-rKZ, kl_GL: kl-rGL, km_KH: km-rKH, kn_IN: kn-rIN, ko_KR: ko-rKR, kok_IN: kok-rIN, ky_KG: ky-rKG, lb_LU: lb-rLU, lo_LA: lo-rLA, lt_LT: lt-rLT, lv_LV: lv-rLV, mi_NZ: mi-rNZ, mk_MK: mk-rMK, ml_IN: ml-rIN, mn_CN: mn-rCN, mn_MN: mn-rMN, moh_CA: moh-rCA, mr_IN: mr-rIN, ms_BN: ms-rBN, ms_MY: ms-rMY, mt_MT: mt-rMT, nb_NO: nb-rNO, ne_NP: ne-rNP, nl_BE: nl-rBE, nl_NL: nl-rNL, nn_NO: nn-rNO, nso_ZA: nso-rZA, oc_FR: oc-rFR, or_IN: or-rIN, pa_IN: pa-rIN, pl_PL: pl-rPL, prs_AF: prs-rAF, ps_AF: ps-rAF, pt_BR: pt-rBR, pt_PT: pt-rPT, qut_GT: qut-rGT, quz_BO: quz-rBO, quz_EC: quz-rEC, quz_PE: quz-rPE, rm_CH: rm-rCH, ro_RO: ro-rRO, ru_RU: ru-rRU, rw_RW: rw-rRW, sa_IN: sa-rIN, sah_RU: sah-rRU, se_FI: se-rFI, se_NO: se-rNO, se_SE: se-rSE, si_LK: si-rLK, sk_SK: sk-rSK, sl_SI: sl-rSI, sma_NO: sma-rNO, sma_SE: sma-rSE, smj_NO: smj-rNO, smj_SE: smj-rSE, smn_FI: smn-rFI, sms_FI: sms-rFI, sq_AL: sq-rAL, sr_BA: sr-rBA, sr_CS: sr-rCS, sr_ME: sr-rME, sr_RS: sr-rRS, sv_FI: sv-rFI, sv_SE: sv-rSE, sw_KE: sw-rKE, syr_SY: syr-rSY, ta_IN: ta-rIN, te_IN: te-rIN, tg_TJ: tg-rTJ, th_TH: th-rTH, tk_TM: tk-rTM, tn_ZA: tn-rZA, tr_TR: tr-rTR, tt_RU: tt-rRU, tzm_DZ: tzm-rDZ, ug_CN: ug-rCN, uk_UA: uk-rUA, ur_PK: ur-rPK, uz_UZ: uz-rUZ, vi_VN: vi-rVN, wo_SN: wo-rSN, xh_ZA: xh-rZA, yo_NG: yo-rNG, zh_CN: zh-rCN, zh_HK: zh-rHK, zh_MO: zh-rMO, zh_SG: zh-rSG, zh_TW: zh-rTW, zu_ZA: zu-rZA
[orbot.stringsxml]
file_filter = ../res/values-<lang>/strings.xml
host = https://www.transifex.com
source_file = ../res/values/strings.xml
source_lang = en
[orbot.description]
file_filter = ../releases/assets/<lang>-description.txt
host = https://www.transifex.com
source_file = ../releases/assets/description.txt
source_lang = en

245
external/Makefile vendored
View File

@ -11,6 +11,11 @@ export ac_cv_func_setpgrp_void=yes
EXTERNAL_ROOT := $(shell pwd)
DEBUG ?= 0
# No-op command.
NOOP = true
# Android now has 64-bit and 32-bit versions of the NDK for GNU/Linux. We
# assume that the build platform uses the appropriate version, otherwise the
# user building this will have to manually set NDK_PROCESSOR or NDK_TOOLCHAIN.
@ -22,25 +27,50 @@ else
endif
# Android NDK setup
NDK_BASE ?= /opt/android-ndk
ANDROID_NDK_HOME ?= /opt/android-ndk
ANDROID_NDK ?= $(ANDROID_NDK_HOME)
NDK_PLATFORM_LEVEL ?= 16
NDK_ABI ?= arm
NDK_TOOLCHAIN_VERSION=4.8
NDK_TOOLCHAIN_VERSION=4.9
APP_ABI ?= armeabi
NDK_SYSROOT=$(NDK_BASE)/platforms/android-$(NDK_PLATFORM_LEVEL)/arch-$(NDK_ABI)
NDK_UNAME := $(shell uname -s | tr '[A-Z]' '[a-z]')
ifeq ($(NDK_ABI),x86)
HOST = i686-linux-android
NDK_TOOLCHAIN = $(NDK_ABI)-$(NDK_TOOLCHAIN_VERSION)
else
HOST = $(NDK_ABI)-linux-androideabi
NDK_TOOLCHAIN = $(HOST)-$(NDK_TOOLCHAIN_VERSION)
NDK_ABI ?= $(APP_ABI)
# PIEFLAGS for SDK 16/Android L must be set to -fPIE -pie, but can override for earlier targets
PIEFLAGS ?= -fPIE -pie
ifneq ($(filter arm%, $(APP_ABI)),)
NDK_ABI := arm
endif
NDK_TOOLCHAIN_BASE=$(NDK_BASE)/toolchains/$(NDK_TOOLCHAIN)/prebuilt/$(NDK_UNAME)-$(NDK_PROCESSOR)
ifneq ($(filter arm64%, $(APP_ABI)),)
NDK_ABI := arm64
endif
NDK_SYSROOT=$(ANDROID_NDK_HOME)/platforms/android-$(NDK_PLATFORM_LEVEL)/arch-$(NDK_ABI)
NDK_UNAME := $(shell uname -s | tr '[A-Z]' '[a-z]')
ifneq ($(filter mips%, $(NDK_ABI)),)
HOST := $(NDK_ABI)el-linux-android
endif
ifneq ($(filter arm64, $(NDK_ABI)),)
HOST := aarch64-linux-android
endif
ifneq ($(filter arm, $(NDK_ABI)),)
HOST := arm-linux-androideabi
endif
ifneq ($(filter x86, $(NDK_ABI)),)
HOST := i686-linux-android
endif
ifneq ($(filter x86_64, $(NDK_ABI)),)
HOST := x86_64-linux-android
endif
NDK_TOOLCHAIN := $(HOST)-$(NDK_TOOLCHAIN_VERSION)
ifneq ($(filter x86%, $(NDK_ABI)),)
NDK_TOOLCHAIN := $(NDK_ABI)-$(NDK_TOOLCHAIN_VERSION)
endif
NDK_TOOLCHAIN_BASE=$(ANDROID_NDK_HOME)/toolchains/$(NDK_TOOLCHAIN)/prebuilt/$(NDK_UNAME)-$(NDK_PROCESSOR)
# include Android's build flags
TARGET_ARCH_ABI = $(APP_ABI)
include $(NDK_BASE)/toolchains/$(NDK_TOOLCHAIN)/setup.mk
#include $(ANDROID_NDK_HOME)/toolchains/$(NDK_TOOLCHAIN)/setup.mk
CC := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-gcc --sysroot=$(NDK_SYSROOT)
CXX := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-g++ --sysroot=$(NDK_SYSROOT)
@ -48,11 +78,14 @@ CPP := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-cpp --sysroot=$(NDK_SYSROOT)
LD := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-ld
AR := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-ar
RANLIB := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-ranlib
STRIP := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-strip \
--strip-unneeded -R .note -R .comment
# PIEFLAGS for SDK 16/Android L must be set to -fPIE -pie
PIEFLAGS = -fPIE -pie
ifeq ($(DEBUG), 1)
STRIP := $(NOOP)
else
STRIP := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-strip --strip-unneeded -R .note -R .comment --strip-debug
endif
CFLAGS = -DANDROID $(TARGET_CFLAGS) $(PIEFLAGS)
LDFLAGS = -llog $(TARGET_LDFLAGS) $(PIEFLAGS)
@ -64,29 +97,48 @@ ifeq ($(APP_ABI),armeabi)
CFLAGS += $(TARGET_thumb_release_CFLAGS)
endif
.PHONY = clean showsetup \
assets assets-clean \
openssl-static openssl-static-clean \
libevent libevent-clean \
iptables iptables-clean \
tor tor-clean \
polipo polipo-clean
lzma lzma-clean \
zstd zstd-clean \
tor tor-clean
all: assets
#------------------------------------------------------------------------------#
# openssl
# Disable rc4 cipher for 64-bit archs, to avoid this link error for tor:
# external/lib/libcrypto.a(e_rc4_hmac_md5.o):e_rc4_hmac_md5.c:function rc4_hmac_md5_cipher: error: undefined reference to 'rc4_md5_enc'
OPENSSL_CONF_FLAG=
ifneq ($(findstring 64, $(NDK_ABI)),)
OPENSSL_CONF_FLAG+=no-rc4
endif
# OpenSSL's 'make depend' fails if _MIPS_SZLONG is not set:
ifneq ($(filter mips%, $(NDK_ABI)),)
ifneq ($(findstring 64, $(NDK_ABI)),)
OPENSSL_CONF_FLAG+=-D_MIPS_SZLONG=64
else
OPENSSL_CONF_FLAG+=-D_MIPS_SZLONG=32 -D__MIPSEL__
endif
endif
lib/libcrypto.a:
cd openssl && \
./Configure android -DL_ENDIAN && \
./Configure android -D__ANDROID_API__=$(NDK_PLATFORM_LEVEL) -DL_ENDIAN $(OPENSSL_CONF_FLAG) && \
make CC="$(CC)" ANDROID_DEV=$(NDK_SYSROOT)/usr depend && \
make CC="$(CC)" ANDROID_DEV=$(NDK_SYSROOT)/usr build_libs
lib/libssl.a:
cp config.sub openssl
cp config.guess openssl
cd openssl && \
./Configure android -DL_ENDIAN && \
./Configure android -D__ANDROID_API__=$(NDK_PLATFORM_LEVEL) -DL_ENDIAN $(OPENSSL_CONF_FLAG) && \
make CC="$(CC)" ANDROID_DEV=$(NDK_SYSROOT)/usr depend && \
make CC="$(CC)" ANDROID_DEV=$(NDK_SYSROOT)/usr build_libs
openssl-build-stamp: lib/libcrypto.a lib/libssl.a
@ -112,6 +164,9 @@ openssl-clean:
libevent/Makefile:
sed -i 's@\(SUBDIRS = . include\) sample test@\1@' libevent/Makefile.am
cp libevent-patch-1 libevent
-cd libevent && \
patch -N -p1 --reject-file=- < libevent-patch-1
##sed -i 's@\(AC_OUTPUT(Makefile include/Makefile\) test/Makefile sample/Makefile)@\1)@' libevent/configure.in
cd libevent && ./autogen.sh
cp config.sub libevent
@ -138,40 +193,57 @@ libevent-clean:
-rm -f libevent-build-stamp
-cd libevent && \
git clean -fdx
#------------------------------------------------------------------------------#
# iptables
# lzma
iptables/Makefile:
cp iptables-patch-1 iptables
cp iptables-patch-2 iptables
cp iptables-patch-3 iptables
-cd iptables && \
patch -N -p1 --reject-file=- < iptables-patch-1
-cd iptables && \
patch -N -p1 --reject-file=- < iptables-patch-2
-cd iptables && \
patch -N -p1 --reject-file=- < iptables-patch-3
cd iptables && ./autogen.sh
cp config.sub iptables
cp config.guess iptables
cd iptables && \
CC="$(CC)" AR="$(AR)" RANLIB=$(RANLIB) CFLAGS="$(CFLAGS) -I$(EXTERNAL_ROOT)/include" LDFLAGS="$(LDFLAGS)" \
./configure --host=$(HOST) --disable-shared --enable-static
xz/Makefile:
cd xz && ./autogen.sh
cp config.sub xz
cp config.guess xz
cd xz && \
CC="$(CC)" CXX="$(CXX)" PKG_CONFIG_PATH="$(EXTERNAL_ROOT)/lib/pkgconfig" AR="$(AR)" RANLIB="$(RANLIB)" CFLAGS="$(CFLAGS) -std=c99" LDFLAGS="$(LDFLAGS)" \
./configure --host=$(HOST) --disable-shared --enable-static --disable-doc --disable-xz --disable-xzdec --disable-lzmadec --disable-lzmainfo --disable-lzma-links --disable-scripts --prefix=$(EXTERNAL_ROOT)
iptables-build-stamp: iptables/Makefile
$(MAKE) -C iptables
touch iptables-build-stamp
cp iptables/iptables/xtables-multi bin/xtables
lzma: lzma-build-stamp
$(MAKE) -C xz install
iptables: iptables-build-stamp
lzma-build-stamp: xz/Makefile
touch lzma-build-stamp
iptables-clean:
-rm -f iptables-build-stamp
-rm bin/xtables
-cd iptables && \
lzma-clean:
-rm -rf include/lzma
-rm -f include/lzma.h
-rm -f lib/liblzma.a
-rm -f lib/liblzma.la
-rm -f lzma-build-stamp
-cd xz && \
git clean -fdx
#------------------------------------------------------------------------------#
# zstd
zstd: zstd-build-stamp
$(MAKE) -C zstd/lib CC="$(CC)" CXX="$(CXX)" AR="$(AR)" RANLIB="$(RANLIB)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" PREFIX="$(EXTERNAL_ROOT)" libzstd.a-mt
$(MAKE) -C zstd/lib CC="$(CC)" CXX="$(CXX)" AR="$(AR)" RANLIB="$(RANLIB)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" PREFIX="$(EXTERNAL_ROOT)" libzstd.pc
test -d lib || mkdir lib
test -d lib/pkgconfig || mkdir lib/pkgconfig
test -d include || mkdir include
cp zstd/lib/libzstd.a lib
cp zstd/lib/libzstd.pc lib/pkgconfig
cp zstd/lib/zstd.h include
cp zstd/lib/common/zstd_errors.h include
cp zstd/lib/deprecated/zbuff.h include
cp zstd/lib/dictBuilder/zdict.h include
zstd-build-stamp:
touch zstd-build-stamp
zstd-clean:
-rm -f include/zstd.h include/zstd_errors.h include/zbuff.h include/zdict.h
-rm -f lib/libzstd.a
-rm -f lib/pkgconfig/libzstd.pc
-rm -f zstd-build-stamp
-cd zstd && \
git clean -fdx
#------------------------------------------------------------------------------#
# tor
@ -180,26 +252,23 @@ tor/configure:
./autogen.sh
tor/Makefile: tor/configure
cp fix_android_0.2.6.4rc_build.patch tor
cd tor && \
git apply fix_android_0.2.6.4rc_build.patch
cp config.sub tor
cp config.guess tor
cd tor && \
CC="$(CC)" AR="$(AR)" RANLIB=$(RANLIB) CFLAGS="$(CFLAGS) -D_FORTIFY_SOURCE=2 -fwrapv -fno-strict-aliasing -fno-strict-overflow" LDFLAGS="$(LDFLAGS)" \
CC="$(CC)" AR="$(AR)" RANLIB=$(RANLIB) PKG_CONFIG_PATH="$(EXTERNAL_ROOT)/lib/pkgconfig" CFLAGS="$(CFLAGS) -D_FORTIFY_SOURCE=2 -fwrapv -fno-strict-aliasing -fno-strict-overflow" LDFLAGS="$(LDFLAGS)" \
LIBS="-L$(EXTERNAL_ROOT)/lib" CFLAGS="-I$(EXTERNAL_ROOT)/include -I$(EXTERNAL_ROOT)/include/event2" \
./configure \
--host=$(HOST) \
--disable-asciidoc \
--enable-static-libevent --with-libevent-dir=$(EXTERNAL_ROOT) \
--enable-static-openssl --with-openssl-dir=$(EXTERNAL_ROOT) \
--disable-linker-hardening --disable-gcc-hardening
--disable-linker-hardening --disable-gcc-hardening --disable-tool-name-check --disable-systemd --disable-module-dirauth
tor-build-stamp: tor/Makefile
$(MAKE) -C tor all-am
touch tor-build-stamp
tor: libevent openssl tor-build-stamp
tor: lzma zstd libevent openssl tor-build-stamp
test -d bin || mkdir bin
cp tor/src/or/tor bin
@ -212,70 +281,22 @@ tor-clean:
git reset HEAD --hard
#------------------------------------------------------------------------------#
# polipo
#create and clean assets: FYI - tor is stored as a ZIP file with an so extension
#in the libs directly, so it is handled like a shared library for local installation
polipo-build-stamp:
CC="$(CC)" CFLAGS="$(PIEFLAGS)" LDFLAGS="$(PIEFLAGS)" $(MAKE) -C polipo
touch polipo-build-stamp
polipo: polipo-build-stamp
test -d bin || mkdir bin
cp polipo/polipo bin
polipo-clean:
$(MAKE) -C polipo clean
-rm -f polipo/polipo
-rm -f bin/polipo
-rm -f polipo-build-stamp
#------------------------------------------------------------------------------#
# JTorControl library
jtorctl/bin/jtorctl.jar:
test -d jtorctl/bin || mkdir jtorctl/bin
cd jtorctl && \
javac -source 1.6 -target 1.6 net/freehaven/tor/control/TorControlConnection.java -d bin
cd jtorctl/bin && \
jar cvf jtorctl.jar *
jtorctl-build-stamp: jtorctl/bin/jtorctl.jar
touch jtorctl-build-stamp
jtorctl: jtorctl-build-stamp
test -d bin || mkdir bin
cp jtorctl/bin/jtorctl.jar bin
jtorctl-clean:
-rm -rf jtorctl/bin
-rm jtorctl-build-stamp
#------------------------------------------------------------------------------#
#create and clean assets: FYI - tor is stored as a ZIP file with an mp3 extension
#in order to stop Android OS (older devices) from trying to compress/decompress it
#this is related to a bug in compression of assets and resources > 1MB
assets: tor polipo jtorctl iptables
install -d ../libs
install bin/jtorctl.jar ../libs
install -d ../assets/$(APP_ABI)
-$(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-strip --strip-debug bin/polipo
-zip ../assets/$(APP_ABI)/polipo.mp3 bin/polipo
-$(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-strip --strip-debug bin/tor
-zip ../assets/$(APP_ABI)/tor.mp3 bin/tor
-$(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-strip --strip-debug bin/xtables
-zip ../assets/$(APP_ABI)/xtables.mp3 bin/xtables
assets: tor
install -d ../tor-android-binary/src/main/libs/$(APP_ABI)
-$(STRIP) bin/tor
-zip ../tor-android-binary/src/main/libs/$(APP_ABI)/tor.so bin/tor
assets-clean:
-rm ../assets/$(APP_ABI)/polipo.mp3
-rm ../assets/$(APP_ABI)/tor.mp3
-rm ../assets/$(APP_ABI)/xtables.mp3
-rm ../libs/jtorctl.jar
-rm ../tor-android-binary/src/main/libs/$(APP_ABI)/tor.so
#------------------------------------------------------------------------------#
# cleanup, cleanup, put the toys away
##clean: openssl-clean libevent-clean tor-clean polipo-clean jtorctl-clean assets-clean
clean: openssl-clean libevent-clean tor-clean polipo-clean jtorctl-clean assets-clean
##clean: openssl-clean libevent-clean tor-clean polipo-clean assets-clean
clean: openssl-clean libevent-clean lzma-clean zstd-clean tor-clean
#------------------------------------------------------------------------------#
# debugging stuff

View File

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry exported="true" kind="lib" path="libs/android-support-v4.jar"/>
<classpathentry exported="true" kind="lib" path="libs/android-support-v7-appcompat.jar"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>

View File

@ -1,33 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>android-support-v7-appcompat</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

View File

@ -1,4 +0,0 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.source=1.6

View File

@ -1,20 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2012 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="android.support.v7.appcompat">
<uses-sdk android:minSdkVersion="7"/>
<application />
</manifest>

View File

@ -1,10 +0,0 @@
Library Project including compatibility ActionBar.
This can be used by an Android project to provide
access to ActionBar on applications running on API 7+.
There is technically no source, but the src folder is necessary
to ensure that the build system works. The content is actually
located in libs/android-support-v7-appcompat.jar.
The accompanying resources must also be included in the application.

Binary file not shown.

View File

@ -1,15 +0,0 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
target=android-21
android.library=true

View File

@ -1,20 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2013 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/decelerate_interpolator"
android:fromAlpha="0.0" android:toAlpha="1.0"
android:duration="@android:integer/config_mediumAnimTime" />

View File

@ -1,20 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2013 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/decelerate_interpolator"
android:fromAlpha="1.0" android:toAlpha="0.0"
android:duration="@android:integer/config_mediumAnimTime" />

View File

@ -1,19 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2013 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/decelerate_interpolator"
android:fromYDelta="50%p" android:toYDelta="0"
android:duration="@android:integer/config_mediumAnimTime"/>

View File

@ -1,19 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2013 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/decelerate_interpolator"
android:fromYDelta="-50%p" android:toYDelta="0"
android:duration="@android:integer/config_mediumAnimTime"/>

View File

@ -1,19 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2013 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_interpolator"
android:fromYDelta="0" android:toYDelta="50%p"
android:duration="@android:integer/config_mediumAnimTime"/>

View File

@ -1,19 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2013 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_interpolator"
android:fromYDelta="0" android:toYDelta="-50%p"
android:duration="@android:integer/config_mediumAnimTime"/>

View File

@ -1,20 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_accelerated="false" android:color="@color/background_material_dark" />
<item android:color="@android:color/transparent" />
</selector>

View File

@ -1,20 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_accelerated="false" android:color="@color/background_material_light" />
<item android:color="@android:color/transparent" />
</selector>

View File

@ -1,20 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="@color/bright_foreground_disabled_material_dark"/>
<item android:color="@color/bright_foreground_material_dark"/>
</selector>

View File

@ -1,20 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="@color/bright_foreground_disabled_material_light"/>
<item android:color="@color/bright_foreground_material_light"/>
</selector>

View File

@ -1,20 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2008 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="@color/primary_text_disabled_material_dark"/>
<item android:color="@color/primary_text_default_material_dark"/>
</selector>

View File

@ -1,20 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="@color/primary_text_disabled_material_light"/>
<item android:color="@color/primary_text_default_material_light"/>
</selector>

View File

@ -1,21 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:color="@color/abc_search_url_text_pressed"/>
<item android:state_selected="true" android:color="@color/abc_search_url_text_selected"/>
<item android:color="@color/abc_search_url_text_normal"/>
</selector>

View File

@ -1,21 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2013 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:color="@color/abc_search_url_text_pressed"/>
<item android:state_selected="true" android:color="@color/abc_search_url_text_selected"/>
<item android:color="@color/abc_search_url_text_normal"/> <!-- not selected -->
</selector>

View File

@ -1,20 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="@color/secondary_text_disabled_material_dark"/>
<item android:color="@color/secondary_text_default_material_dark"/>
</selector>

View File

@ -1,20 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="@color/secondary_text_disabled_material_light"/>
<item android:color="@color/secondary_text_default_material_light"/>
</selector>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 135 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 134 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 139 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 602 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 900 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 951 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 149 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 147 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 147 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 602 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 546 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 667 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 713 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 737 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 326 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 597 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 616 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 287 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 500 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 219 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 148 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 312 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 313 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 467 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 505 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 549 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Some files were not shown because too many files have changed in this diff Show More