├── external └── netcipher │ └── libnetcipher │ ├── settings.gradle │ ├── res │ └── raw │ │ └── debiancacerts.bks │ ├── libs │ └── httpclientandroidlib-1.2.1.jar │ ├── AndroidManifest.xml │ ├── .classpath │ ├── project.properties │ ├── proguard-project.txt │ ├── build.gradle │ ├── .project │ ├── src │ └── info │ │ └── guardianproject │ │ └── netcipher │ │ ├── proxy │ │ ├── ProxySelector.java │ │ ├── ProxyHelper.java │ │ └── PsiphonHelper.java │ │ └── client │ │ ├── StrongConstants.java │ │ └── SocksAwareProxyRoutePlanner.java │ ├── netcipher.pom │ └── custom_rules.xml ├── app ├── .gitignore ├── libs │ ├── jsoup-1.8.3.jar │ ├── universal-image-loader-1.9.4.jar │ └── tbs_sdk_v1.4.1.1085_25433_obfs_20150917_114640.jar ├── src │ └── main │ │ ├── assets │ │ ├── ask.png │ │ ├── baidu.png │ │ ├── bing.png │ │ ├── yahoo.png │ │ ├── google.png │ │ ├── yandex.png │ │ ├── duckduckgo.png │ │ ├── lightning.png │ │ └── startpage.png │ │ ├── res │ │ ├── drawable-xhdpi │ │ │ ├── icon.png │ │ │ ├── logo.png │ │ │ ├── ic_bookmark.png │ │ │ ├── ic_history.png │ │ │ ├── ic_search.png │ │ │ ├── ic_webpage.png │ │ │ ├── welcome_logo.png │ │ │ ├── welcome_text.png │ │ │ ├── common_loading_0.png │ │ │ ├── common_loading_1.png │ │ │ ├── common_loading_2.png │ │ │ ├── common_loading_3.png │ │ │ ├── common_loading_4.png │ │ │ ├── common_loading_5.png │ │ │ ├── common_loading_6.png │ │ │ ├── common_loading_7.png │ │ │ ├── common_loading_8.png │ │ │ ├── common_loading_9.png │ │ │ ├── ic_action_back.png │ │ │ ├── ic_action_copy.png │ │ │ ├── ic_action_delete.png │ │ │ ├── ic_action_expand.png │ │ │ ├── ic_action_plus.png │ │ │ ├── ic_action_star.png │ │ │ ├── ic_bookmark_dark.png │ │ │ ├── ic_history_dark.png │ │ │ ├── ic_search_dark.png │ │ │ ├── ic_webpage_dark.png │ │ │ ├── common_loading_10.png │ │ │ ├── common_loading_11.png │ │ │ ├── ic_action_collapse.png │ │ │ ├── ic_action_forward.png │ │ │ ├── ic_action_refresh.png │ │ │ ├── drawer_left_shadow.9.png │ │ │ ├── drawer_right_shadow.9.png │ │ │ ├── ic_action_back_dark.png │ │ │ ├── ic_action_delete_dark.png │ │ │ ├── ic_action_invert_dark.png │ │ │ ├── ic_action_plus_dark.png │ │ │ ├── ic_action_star_dark.png │ │ │ ├── ic_action_tabs_dark.png │ │ │ ├── ic_action_tabs_light.png │ │ │ ├── ic_action_forward_dark.png │ │ │ ├── ic_action_invert_light.png │ │ │ ├── ic_action_text_size_dark.png │ │ │ └── ic_action_text_size_light.png │ │ ├── drawable-hdpi │ │ │ ├── ic_search.png │ │ │ ├── ic_bookmark.png │ │ │ ├── ic_history.png │ │ │ ├── ic_webpage.png │ │ │ ├── ic_action_back.png │ │ │ ├── ic_action_copy.png │ │ │ ├── ic_action_plus.png │ │ │ ├── ic_action_star.png │ │ │ ├── ic_search_dark.png │ │ │ ├── ic_action_delete.png │ │ │ ├── ic_action_expand.png │ │ │ ├── ic_action_forward.png │ │ │ ├── ic_action_refresh.png │ │ │ ├── ic_bookmark_dark.png │ │ │ ├── ic_history_dark.png │ │ │ ├── ic_webpage_dark.png │ │ │ ├── ic_action_back_dark.png │ │ │ ├── ic_action_collapse.png │ │ │ ├── ic_action_plus_dark.png │ │ │ ├── ic_action_star_dark.png │ │ │ ├── ic_action_tabs_dark.png │ │ │ ├── drawer_left_shadow.9.png │ │ │ ├── drawer_right_shadow.9.png │ │ │ ├── ic_action_delete_dark.png │ │ │ ├── ic_action_forward_dark.png │ │ │ ├── ic_action_invert_dark.png │ │ │ ├── ic_action_invert_light.png │ │ │ ├── ic_action_tabs_light.png │ │ │ ├── ic_action_text_size_dark.png │ │ │ └── ic_action_text_size_light.png │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-xxhdpi │ │ │ ├── ic_history.png │ │ │ ├── ic_search.png │ │ │ ├── ic_webpage.png │ │ │ ├── ic_bookmark.png │ │ │ ├── ic_action_back.png │ │ │ ├── ic_action_copy.png │ │ │ ├── ic_action_plus.png │ │ │ ├── ic_action_star.png │ │ │ ├── ic_history_dark.png │ │ │ ├── ic_search_dark.png │ │ │ ├── ic_webpage_dark.png │ │ │ ├── ic_action_delete.png │ │ │ ├── ic_action_expand.png │ │ │ ├── ic_action_forward.png │ │ │ ├── ic_action_refresh.png │ │ │ ├── ic_bookmark_dark.png │ │ │ ├── ic_action_back_dark.png │ │ │ ├── ic_action_collapse.png │ │ │ ├── ic_action_plus_dark.png │ │ │ ├── ic_action_star_dark.png │ │ │ ├── ic_action_tabs_dark.png │ │ │ ├── ic_action_tabs_light.png │ │ │ ├── ic_action_delete_dark.png │ │ │ ├── ic_action_forward_dark.png │ │ │ ├── ic_action_invert_dark.png │ │ │ ├── ic_action_invert_light.png │ │ │ ├── ic_action_text_size_dark.png │ │ │ └── ic_action_text_size_light.png │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ │ ├── drawer_left_shadow.9.png │ │ │ └── drawer_right_shadow.9.png │ │ ├── drawable │ │ │ ├── list_bg.xml │ │ │ ├── list_bg_dark.xml │ │ │ ├── list_bg_light.xml │ │ │ ├── card_bg.xml │ │ │ ├── toolbar_elevate.xml │ │ │ ├── toolbar_elevate_dark.xml │ │ │ └── card_bg_elevate.xml │ │ ├── layout │ │ │ ├── animated_progress_bar.xml │ │ │ ├── browser_content.xml │ │ │ ├── seek_layout.xml │ │ │ ├── toolbar_settings.xml │ │ │ ├── load_dialog.xml │ │ │ ├── toolbar_content.xml │ │ │ ├── bookmark_list_item.xml │ │ │ ├── toolbar.xml │ │ │ ├── two_line_autocomplete.xml │ │ │ ├── search.xml │ │ │ ├── reading_view.xml │ │ │ ├── picker_manual_proxy.xml │ │ │ ├── activity_welcome.xml │ │ │ ├── video_loading_progress.xml │ │ │ ├── activity_main.xml │ │ │ ├── tab_list_item.xml │ │ │ ├── bookmark_drawer.xml │ │ │ ├── search_interface.xml │ │ │ ├── filechooser_layout.xml │ │ │ ├── bookmark_settings.xml │ │ │ └── tab_drawer.xml │ │ ├── values │ │ │ ├── dimens.xml │ │ │ ├── arrays.xml │ │ │ ├── colors.xml │ │ │ └── attr.xml │ │ ├── anim │ │ │ ├── slide_up.xml │ │ │ ├── slide_down.xml │ │ │ └── load_anim.xml │ │ ├── menu │ │ │ ├── reading.xml │ │ │ ├── incognito.xml │ │ │ └── main.xml │ │ ├── values-iw │ │ │ └── strings.xml │ │ ├── menu-large │ │ │ ├── incognito.xml │ │ │ └── main.xml │ │ ├── menu-xlarge │ │ │ ├── incognito.xml │ │ │ └── main.xml │ │ └── values-fr │ │ │ └── strings.xml │ │ └── java │ │ └── acr │ │ └── browser │ │ └── lightning │ │ ├── app │ │ ├── AppConfig.java │ │ └── BrowserApp.java │ │ ├── broadcastreceiver │ │ ├── NetStateChangeListener.java │ │ └── NetStateBroadcaseReceiver.java │ │ ├── object │ │ └── ClickHandler.java │ │ ├── reading │ │ ├── ImageResult.java │ │ ├── SCache.java │ │ ├── MapEntry.java │ │ └── JResult.java │ │ ├── view │ │ ├── LoadDialog.java │ │ └── x5 │ │ │ └── SecurityJsBridgeBundle.java │ │ ├── activity │ │ ├── ThemableActivity.java │ │ ├── ThemableSettingsActivity.java │ │ ├── WelcomeActivity.java │ │ ├── IncognitoActivity.java │ │ ├── LicenseActivity.java │ │ ├── AboutSettingsActivity.java │ │ ├── MainActivity.java │ │ └── BookmarkActivity.java │ │ ├── controller │ │ └── BrowserController.java │ │ ├── download │ │ ├── LightningDownloadListener.java │ │ ├── FetchUrlMimeType.java │ │ └── WebAddress.java │ │ ├── constant │ │ ├── BookmarkPage.java │ │ ├── StartPage.java │ │ ├── Constants.java │ │ └── HistoryPage.java │ │ ├── utils │ │ ├── AdBlock.java │ │ ├── NetworkUtils.java │ │ └── IntentUtils.java │ │ └── database │ │ └── HistoryItem.java ├── build.gradle └── proguard-project.txt ├── 58_view.png ├── wap&app.doc ├── ic_launcher.png ├── ic_launcher_small.png ├── .gitmodules ├── settings.gradle ├── LICENSE ├── .gitignore ├── gradlew.bat └── README.md /external/netcipher/libnetcipher/settings.gradle: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | app-release.apk 3 | manifest-merger-release-report.txt -------------------------------------------------------------------------------- /58_view.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/58_view.png -------------------------------------------------------------------------------- /wap&app.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/wap&app.doc -------------------------------------------------------------------------------- /ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/ic_launcher.png -------------------------------------------------------------------------------- /ic_launcher_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/ic_launcher_small.png -------------------------------------------------------------------------------- /app/libs/jsoup-1.8.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/libs/jsoup-1.8.3.jar -------------------------------------------------------------------------------- /app/src/main/assets/ask.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/assets/ask.png -------------------------------------------------------------------------------- /app/src/main/assets/baidu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/assets/baidu.png -------------------------------------------------------------------------------- /app/src/main/assets/bing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/assets/bing.png -------------------------------------------------------------------------------- /app/src/main/assets/yahoo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/assets/yahoo.png -------------------------------------------------------------------------------- /app/src/main/assets/google.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/assets/google.png -------------------------------------------------------------------------------- /app/src/main/assets/yandex.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/assets/yandex.png -------------------------------------------------------------------------------- /app/src/main/assets/duckduckgo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/assets/duckduckgo.png -------------------------------------------------------------------------------- /app/src/main/assets/lightning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/assets/lightning.png -------------------------------------------------------------------------------- /app/src/main/assets/startpage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/assets/startpage.png -------------------------------------------------------------------------------- /app/libs/universal-image-loader-1.9.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/libs/universal-image-loader-1.9.4.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/logo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_search.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_bookmark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_bookmark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_history.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_history.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_webpage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_webpage.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_bookmark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_bookmark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_history.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_history.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_search.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_webpage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_webpage.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_history.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_history.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_search.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_webpage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_webpage.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "external/netcipher"] 2 | path = external/netcipher 3 | url = https://github.com/guardianproject/NetCipher.git 4 | branch = master 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_action_back.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_action_copy.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_action_plus.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_action_star.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_search_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_search_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/welcome_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/welcome_logo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/welcome_text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/welcome_text.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_bookmark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_bookmark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_action_delete.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_expand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_action_expand.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_forward.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_action_forward.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_action_refresh.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_bookmark_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_bookmark_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_history_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_history_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_webpage_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_webpage_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/common_loading_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/common_loading_0.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/common_loading_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/common_loading_1.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/common_loading_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/common_loading_2.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/common_loading_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/common_loading_3.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/common_loading_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/common_loading_4.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/common_loading_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/common_loading_5.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/common_loading_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/common_loading_6.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/common_loading_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/common_loading_7.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/common_loading_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/common_loading_8.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/common_loading_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/common_loading_9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_action_back.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_action_copy.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_action_delete.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_expand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_action_expand.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_action_plus.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_action_star.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_bookmark_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_bookmark_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_history_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_history_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_search_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_search_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_webpage_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_webpage_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_back.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_copy.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_plus.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_star.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_history_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_history_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_search_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_search_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_webpage_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_webpage_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_back_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_action_back_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_collapse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_action_collapse.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_plus_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_action_plus_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_star_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_action_star_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_tabs_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_action_tabs_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/common_loading_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/common_loading_10.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/common_loading_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/common_loading_11.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_collapse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_action_collapse.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_forward.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_action_forward.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_action_refresh.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_delete.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_expand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_expand.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_forward.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_forward.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_refresh.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_bookmark_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_bookmark_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/drawer_left_shadow.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/drawer_left_shadow.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/drawer_right_shadow.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/drawer_right_shadow.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_delete_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_action_delete_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_forward_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_action_forward_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_invert_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_action_invert_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_invert_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_action_invert_light.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_tabs_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_action_tabs_light.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/drawer_left_shadow.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-mdpi/drawer_left_shadow.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/drawer_right_shadow.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-mdpi/drawer_right_shadow.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/drawer_left_shadow.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/drawer_left_shadow.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/drawer_right_shadow.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/drawer_right_shadow.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_back_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_action_back_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_delete_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_action_delete_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_invert_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_action_invert_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_plus_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_action_plus_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_star_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_action_star_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_tabs_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_action_tabs_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_tabs_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_action_tabs_light.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_back_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_back_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_collapse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_collapse.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_plus_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_plus_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_star_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_star_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_tabs_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_tabs_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_tabs_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_tabs_light.png -------------------------------------------------------------------------------- /external/netcipher/libnetcipher/res/raw/debiancacerts.bks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/external/netcipher/libnetcipher/res/raw/debiancacerts.bks -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | include ':libnetcipher' 3 | 4 | project(':libnetcipher').projectDir = new File(rootProject.projectDir, 'external/netcipher/libnetcipher') 5 | -------------------------------------------------------------------------------- /app/libs/tbs_sdk_v1.4.1.1085_25433_obfs_20150917_114640.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/libs/tbs_sdk_v1.4.1.1085_25433_obfs_20150917_114640.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_text_size_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_action_text_size_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_forward_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_action_forward_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_invert_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_action_invert_light.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_delete_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_delete_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_forward_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_forward_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_invert_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_invert_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_invert_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_invert_light.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_text_size_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-hdpi/ic_action_text_size_light.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_text_size_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_action_text_size_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_text_size_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xhdpi/ic_action_text_size_light.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_text_size_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_text_size_dark.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_text_size_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_text_size_light.png -------------------------------------------------------------------------------- /external/netcipher/libnetcipher/libs/httpclientandroidlib-1.2.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FangWW/lightning-browser-gsy/HEAD/external/netcipher/libnetcipher/libs/httpclientandroidlib-1.2.1.jar -------------------------------------------------------------------------------- /app/src/main/java/acr/browser/lightning/app/AppConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 深圳市高搜易信息技术有限公司 3 | */ 4 | package acr.browser.lightning.app; 5 | 6 | /** 7 | * @author FangJW 8 | * @Date 15/9/22 9 | */ 10 | public class AppConfig { 11 | public static boolean isNetConnected = false; 12 | } 13 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2014 Anthony Restaino 2 | 3 | Lightning Browser 4 | 5 | This Source Code Form is subject to the terms of the 6 | Mozilla Public License, v. 2.0. If a copy of the MPL 7 | was not distributed with this file, You can obtain one at 8 | 9 | http://mozilla.org/MPL/2.0/ 10 | 11 | -------------------------------------------------------------------------------- /external/netcipher/libnetcipher/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/list_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/list_bg_dark.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/list_bg_light.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/layout/animated_progress_bar.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/layout/browser_content.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | -------------------------------------------------------------------------------- /app/src/main/java/acr/browser/lightning/broadcastreceiver/NetStateChangeListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 深圳市高搜易信息技术有限公司 3 | */ 4 | package acr.browser.lightning.broadcastreceiver; 5 | 6 | /** 7 | * 网络改变通知接口 8 | * 9 | * @author FangJW 10 | * @Date 15/9/22 11 | */ 12 | public interface NetStateChangeListener { 13 | public void onNetStateChange(boolean isNetConnected); 14 | } 15 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/card_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16dp 5 | 16dp 6 | 260dp 7 | 48dp 8 | 9 | 48dp 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/layout/seek_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /external/netcipher/libnetcipher/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/toolbar_elevate.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/layout/toolbar_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/toolbar_elevate_dark.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/anim/slide_up.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 8 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/anim/slide_down.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 8 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/menu/reading.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 11 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/res/layout/load_dialog.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 14 | 15 | -------------------------------------------------------------------------------- /external/netcipher/libnetcipher/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-22 15 | android.library=true 16 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/card_bg_elevate.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/java/acr/browser/lightning/app/BrowserApp.java: -------------------------------------------------------------------------------- 1 | package acr.browser.lightning.app; 2 | 3 | import android.app.Application; 4 | import android.content.Context; 5 | 6 | import acr.browser.lightning.utils.NetworkUtils; 7 | 8 | public class BrowserApp extends Application { 9 | 10 | private static Context context; 11 | 12 | @Override 13 | public void onCreate() { 14 | super.onCreate(); 15 | context = getApplicationContext(); 16 | init(); 17 | } 18 | 19 | private void init() { 20 | AppConfig.isNetConnected = NetworkUtils.isNetworkAvailable(context); 21 | // ImageLoader.getInstance().init(ImageLoaderConfiguration.createDefault(context)); 22 | } 23 | 24 | public static Context getAppContext() { 25 | return context; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/src/main/res/menu/incognito.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 10 | 13 | 16 | 19 | 20 | 23 | 24 | -------------------------------------------------------------------------------- /app/src/main/java/acr/browser/lightning/object/ClickHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 A.C.R. Development 3 | */ 4 | package acr.browser.lightning.object; 5 | 6 | import android.content.Context; 7 | import android.os.Handler; 8 | import android.os.Message; 9 | 10 | import acr.browser.lightning.controller.BrowserController; 11 | 12 | public class ClickHandler extends Handler { 13 | 14 | private BrowserController mBrowserController; 15 | 16 | public ClickHandler(Context context) { 17 | try { 18 | mBrowserController = (BrowserController) context; 19 | } catch (ClassCastException e) { 20 | throw new ClassCastException(context + " must implement BrowserController"); 21 | } 22 | } 23 | 24 | @Override 25 | public void handleMessage(Message msg) { 26 | super.handleMessage(msg); 27 | String url = msg.getData().getString("url"); 28 | mBrowserController.longClickPage(url); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /external/netcipher/libnetcipher/proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /app/src/main/java/acr/browser/lightning/reading/ImageResult.java: -------------------------------------------------------------------------------- 1 | package acr.browser.lightning.reading; 2 | 3 | import org.jsoup.nodes.Element; 4 | 5 | /** 6 | * Class which encapsulates the data from an image found under an element 7 | * 8 | * @author Chris Alexander, chris@chris-alexander.co.uk 9 | */ 10 | public class ImageResult { 11 | 12 | public final String src; 13 | public final Integer weight; 14 | public final String title; 15 | public final int height; 16 | public final int width; 17 | public final String alt; 18 | public final boolean noFollow; 19 | public Element element; 20 | 21 | public ImageResult(String src, Integer weight, String title, int height, int width, String alt, 22 | boolean noFollow) { 23 | this.src = src; 24 | this.weight = weight; 25 | this.title = title; 26 | this.height = height; 27 | this.width = width; 28 | this.alt = alt; 29 | this.noFollow = noFollow; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Android Studio 2 | *.jks 3 | .DS_Store 4 | /local.properties 5 | /.idea/workspace.xml 6 | /build 7 | 8 | # External tool builders 9 | .externalToolBuilders/ 10 | 11 | # CDT-specific 12 | .cproject 13 | 14 | # PDT-specific 15 | .buildpath 16 | 17 | # Windows image file caches 18 | Thumbs.db 19 | ehthumbs.db 20 | 21 | # Local configuration file (sdk path, etc) 22 | local.properties 23 | gradle.properties 24 | .directory 25 | 26 | # Intellij project files 27 | *.ipr 28 | *.iws 29 | .idea/ 30 | 31 | # Gradle 32 | build 33 | .gradle 34 | 35 | # https://gist.github.com/AltNico/c581f370b3f88715876b 36 | *.apk 37 | *.ap_ 38 | *.dex 39 | *.class 40 | build.xml 41 | .DS_Store 42 | gen/ 43 | .gradle/ 44 | proguard/ 45 | out 46 | .settings/ 47 | *.swp 48 | *~ 49 | 50 | # Source: 51 | # https://raw.githubusercontent.com/github/gitignore/master/Android.gitignore 52 | # https://gitlab.com/fdroid/fdroidclient/raw/master/.gitignore 53 | -------------------------------------------------------------------------------- /external/netcipher/libnetcipher/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | mavenCentral() 4 | } 5 | dependencies { 6 | classpath 'com.android.tools.build:gradle:1.3.0' 7 | } 8 | } 9 | 10 | apply plugin: 'com.android.library' 11 | 12 | repositories { 13 | mavenCentral() 14 | } 15 | dependencies { 16 | // If you want to fetch these from Maven, uncomment these lines and change 17 | // the *.jar depend to exclude these libs: 18 | compile fileTree(include: '*.jar', dir: 'libs') 19 | } 20 | 21 | android { 22 | compileSdkVersion 21 23 | buildToolsVersion '23.0.1' 24 | 25 | sourceSets { 26 | main { 27 | manifest.srcFile 'AndroidManifest.xml' 28 | java.srcDirs = ['src'] 29 | resources.srcDirs = ['src'] 30 | aidl.srcDirs = ['src'] 31 | renderscript.srcDirs = ['src'] 32 | res.srcDirs = ['res'] 33 | assets.srcDirs = ['assets'] 34 | } 35 | } 36 | 37 | lintOptions { 38 | abortOnError false 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /app/src/main/java/acr/browser/lightning/reading/SCache.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Peter Karich 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package acr.browser.lightning.reading; 17 | 18 | /** 19 | * 20 | * @author Peter Karich 21 | */ 22 | public interface SCache { 23 | 24 | JResult get(String url); 25 | 26 | void put(String url, JResult res); 27 | 28 | int getSize(); 29 | } 30 | -------------------------------------------------------------------------------- /external/netcipher/libnetcipher/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | libnetcipher 4 | 5 | 6 | 7 | 8 | 9 | com.android.ide.eclipse.adt.ResourceManagerBuilder 10 | 11 | 12 | 13 | 14 | com.android.ide.eclipse.adt.PreCompilerBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | com.android.ide.eclipse.adt.ApkBuilder 25 | 26 | 27 | 28 | 29 | 30 | com.android.ide.eclipse.adt.AndroidNature 31 | org.eclipse.jdt.core.javanature 32 | 33 | 34 | -------------------------------------------------------------------------------- /app/src/main/java/acr/browser/lightning/view/LoadDialog.java: -------------------------------------------------------------------------------- 1 | package acr.browser.lightning.view; 2 | 3 | import android.app.Dialog; 4 | import android.content.Context; 5 | import android.graphics.drawable.AnimationDrawable; 6 | import android.view.Gravity; 7 | import android.widget.ImageView; 8 | 9 | import acr.browser.lightning.R; 10 | 11 | 12 | public class LoadDialog extends Dialog { 13 | 14 | private AnimationDrawable animationDrawable; 15 | 16 | public LoadDialog(Context context) { 17 | super(context, R.style.CustomProgressDialog); 18 | this.setContentView(R.layout.load_dialog); 19 | this.getWindow().getAttributes().gravity = Gravity.CENTER; 20 | // this.setCancelable(false); 21 | ImageView iv_load = (ImageView) this.findViewById(R.id.iv_load); 22 | if (iv_load != null) { 23 | animationDrawable = (AnimationDrawable) iv_load.getBackground(); 24 | animationDrawable.start(); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/src/main/res/values-iw/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Lightning 5 | Google 6 | הגדרות דפדפן 7 | מאפשר לאתרים לגשת למיקומך 8 | שמור את הסיסמאות שלך 9 | סוכן משתמש 10 | מחק הסטוריה ביציאה 11 | שלח לי דוא\"ל 12 | הפעל תכני פלאש (אם מותקן) 13 | הצג כנייד 14 | הצג כמחשב 15 | הצג כסוכן משתמש מותאם אישית 16 | דף הבית 17 | הגדות מוחלות על כרטיסיות חדשות בלבד 18 | הפעל מצב מסך מלא 19 | הפעל JavaScript 20 | 21 | -------------------------------------------------------------------------------- /app/src/main/res/layout/toolbar_content.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 17 | 18 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /app/src/main/res/values/arrays.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | @string/agent_default 5 | @string/agent_desktop 6 | @string/agent_mobile 7 | @string/agent_custom 8 | 9 | 10 | 11 | @string/folder_default 12 | @string/folder_custom 13 | 14 | 15 | 16 | @string/action_homepage 17 | @string/action_blank 18 | @string/action_bookmarks 19 | @string/action_webpage 20 | 21 | 22 | 23 | @string/size_largest 24 | @string/size_large 25 | @string/size_normal 26 | @string/size_small 27 | @string/size_smallest 28 | 29 | 30 | -------------------------------------------------------------------------------- /external/netcipher/libnetcipher/src/info/guardianproject/netcipher/proxy/ProxySelector.java: -------------------------------------------------------------------------------- 1 | package info.guardianproject.netcipher.proxy; 2 | 3 | import java.io.IOException; 4 | import java.net.InetSocketAddress; 5 | import java.net.Proxy; 6 | import java.net.SocketAddress; 7 | import java.net.URI; 8 | import java.util.ArrayList; 9 | import java.util.List; 10 | 11 | import android.util.Log; 12 | 13 | public class ProxySelector extends java.net.ProxySelector { 14 | 15 | private ArrayList listProxies; 16 | 17 | public ProxySelector () 18 | { 19 | super (); 20 | 21 | listProxies = new ArrayList(); 22 | 23 | 24 | } 25 | 26 | public void addProxy (Proxy.Type type,String host, int port) 27 | { 28 | Proxy proxy = new Proxy(type,new InetSocketAddress(host, port)); 29 | listProxies.add(proxy); 30 | } 31 | 32 | @Override 33 | public void connectFailed(URI uri, SocketAddress address, 34 | IOException failure) { 35 | Log.w("ProxySelector","could not connect to " + address.toString() + ": " + failure.getMessage()); 36 | } 37 | 38 | @Override 39 | public List select(URI uri) { 40 | 41 | return listProxies; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /external/netcipher/libnetcipher/src/info/guardianproject/netcipher/client/StrongConstants.java: -------------------------------------------------------------------------------- 1 | package info.guardianproject.netcipher.client; 2 | 3 | public class StrongConstants { 4 | 5 | /** 6 | * Ordered to prefer the stronger cipher suites as noted 7 | * http://op-co.de/blog/posts/android_ssl_downgrade/ 8 | */ 9 | public static final String ENABLED_CIPHERS[] = { 10 | "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", 11 | "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA", 12 | "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA", 13 | "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA", 14 | "TLS_DHE_RSA_WITH_AES_128_CBC_SHA", 15 | "TLS_DHE_RSA_WITH_AES_256_CBC_SHA", 16 | "TLS_DHE_DSS_WITH_AES_128_CBC_SHA", 17 | "TLS_ECDHE_RSA_WITH_RC4_128_SHA", 18 | "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA", "TLS_RSA_WITH_AES_128_CBC_SHA", 19 | "TLS_RSA_WITH_AES_256_CBC_SHA", "SSL_RSA_WITH_3DES_EDE_CBC_SHA", 20 | "SSL_RSA_WITH_RC4_128_SHA", "SSL_RSA_WITH_RC4_128_MD5" }; 21 | 22 | /** 23 | * Ordered to prefer the stronger/newer TLS versions as noted 24 | * http://op-co.de/blog/posts/android_ssl_downgrade/ 25 | */ 26 | public static final String ENABLED_PROTOCOLS[] = { "TLSv1.2", "TLSv1.1", 27 | "TLSv1" }; 28 | 29 | } 30 | -------------------------------------------------------------------------------- /app/src/main/java/acr/browser/lightning/activity/ThemableActivity.java: -------------------------------------------------------------------------------- 1 | package acr.browser.lightning.activity; 2 | 3 | import android.content.Intent; 4 | import android.os.Bundle; 5 | import android.support.v7.app.AppCompatActivity; 6 | 7 | import acr.browser.lightning.R; 8 | import acr.browser.lightning.preference.PreferenceManager; 9 | 10 | public abstract class ThemableActivity extends AppCompatActivity { 11 | 12 | private boolean mDark; 13 | 14 | @Override 15 | protected void onCreate(Bundle savedInstanceState) { 16 | mDark = PreferenceManager.getInstance().getUseDarkTheme(); 17 | 18 | // set the theme 19 | if (mDark) { 20 | setTheme(R.style.Theme_DarkTheme); 21 | } 22 | super.onCreate(savedInstanceState); 23 | } 24 | 25 | @Override 26 | protected void onResume() { 27 | super.onResume(); 28 | if (PreferenceManager.getInstance().getUseDarkTheme() != mDark) { 29 | restart(); 30 | } 31 | } 32 | 33 | protected void restart() { 34 | final Bundle outState = new Bundle(); 35 | onSaveInstanceState(outState); 36 | final Intent intent = new Intent(this, getClass()); 37 | finish(); 38 | overridePendingTransition(0, 0); 39 | startActivity(intent); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /app/src/main/java/acr/browser/lightning/activity/ThemableSettingsActivity.java: -------------------------------------------------------------------------------- 1 | package acr.browser.lightning.activity; 2 | 3 | import android.content.Intent; 4 | import android.os.Bundle; 5 | import android.support.v7.app.AppCompatActivity; 6 | 7 | import acr.browser.lightning.R; 8 | import acr.browser.lightning.preference.PreferenceManager; 9 | 10 | public abstract class ThemableSettingsActivity extends AppCompatActivity { 11 | 12 | private boolean mDark; 13 | 14 | @Override 15 | protected void onCreate(Bundle savedInstanceState) { 16 | mDark = PreferenceManager.getInstance().getUseDarkTheme(); 17 | 18 | // set the theme 19 | if (mDark) { 20 | setTheme(R.style.Theme_SettingsTheme_Dark); 21 | } 22 | super.onCreate(savedInstanceState); 23 | } 24 | 25 | @Override 26 | protected void onResume() { 27 | super.onResume(); 28 | if (PreferenceManager.getInstance().getUseDarkTheme() != mDark) { 29 | restart(); 30 | } 31 | } 32 | 33 | protected void restart() { 34 | final Bundle outState = new Bundle(); 35 | onSaveInstanceState(outState); 36 | final Intent intent = new Intent(this, getClass()); 37 | finish(); 38 | overridePendingTransition(0, 0); 39 | startActivity(intent); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /app/src/main/res/layout/bookmark_list_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 17 | 18 | 19 | 32 | 33 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | #ff000000 5 | #ffa0a0a0 6 | #222222 7 | #dddddd 8 | #cdcdcd 9 | #ffffff 10 | #1b1b1b 11 | #0d000000 12 | #212121 13 | 14 | #E0E0E0 15 | #4D000000 16 | #0073EF 17 | 18 | #ffffff 19 | #424242 20 | 21 | #9C9C9C 22 | #2E2E2E 23 | 24 | #BDBDBD 25 | 26 | #424242 27 | 28 | #1EFFFFFF 29 | #1E000000 30 | 31 | 32 | #0FFFFFFF 33 | #0F000000 34 | 35 | #00000000 36 | 37 | -------------------------------------------------------------------------------- /app/src/main/res/layout/toolbar.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 18 | 19 | 23 | 24 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 21 5 | buildToolsVersion "23.0.1" 6 | 7 | defaultConfig { 8 | applicationId "acr.browser.lightning" 9 | minSdkVersion 14 10 | targetSdkVersion 22 11 | versionCode 78 12 | versionName "4.0.10a" 13 | } 14 | 15 | buildTypes { 16 | release { 17 | // minifyEnabled true 18 | // shrinkResources true 19 | // proguardFiles 'proguard-project.txt' 20 | } 21 | debug { 22 | // minifyEnabled true 23 | // shrinkResources true 24 | // proguardFiles 'proguard-project.txt' 25 | } 26 | } 27 | 28 | lintOptions { 29 | abortOnError false 30 | } 31 | } 32 | 33 | dependencies { 34 | compile(project(':libnetcipher')) { 35 | // Exclude any support-v4 modules because appcompat-v7 will import the latest 36 | exclude module: 'support-v4' 37 | exclude module: 'android-support-v4' 38 | } 39 | compile 'com.android.support:palette-v7:22.1.1' 40 | compile 'com.android.support:appcompat-v7:22.1.1' 41 | // compile 'org.jsoup:jsoup:1.8.3' 42 | compile 'net.i2p.android:client:0.7@aar' 43 | compile files('libs/jsoup-1.8.3.jar') 44 | compile files('libs/universal-image-loader-1.9.4.jar') 45 | compile files('libs/tbs_sdk_v1.4.1.1085_25433_obfs_20150917_114640.jar') 46 | } 47 | -------------------------------------------------------------------------------- /app/src/main/res/menu-large/incognito.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 13 | 21 | 24 | 27 | 30 | 33 | 36 | 39 | 40 | -------------------------------------------------------------------------------- /app/src/main/res/menu-xlarge/incognito.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 13 | 21 | 24 | 27 | 30 | 33 | 36 | 39 | 40 | -------------------------------------------------------------------------------- /app/src/main/res/layout/two_line_autocomplete.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 16 | 17 | 22 | 23 | 31 | 32 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /app/src/main/res/anim/load_anim.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 10 | 13 | 16 | 19 | 22 | 25 | 28 | 31 | 34 | 37 | 40 | 41 | -------------------------------------------------------------------------------- /app/src/main/res/values/attr.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /app/src/main/res/layout/search.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /app/src/main/res/layout/reading_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 12 | 13 | 18 | 19 | 27 | 28 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /app/src/main/res/layout/picker_manual_proxy.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 12 | 13 | 17 | 18 | 24 | 25 | 26 | 29 | 30 | 34 | 35 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_welcome.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 17 | 18 | 24 | 25 | 31 | 32 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /app/src/main/java/acr/browser/lightning/controller/BrowserController.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 A.C.R. Development 3 | */ 4 | package acr.browser.lightning.controller; 5 | 6 | import android.app.Activity; 7 | import android.graphics.Bitmap; 8 | import android.net.Uri; 9 | import android.os.Message; 10 | import android.view.View; 11 | import android.webkit.ValueCallback; 12 | 13 | import com.tencent.smtt.export.external.interfaces.IX5WebChromeClient; 14 | 15 | import acr.browser.lightning.view.x5.X5WebView; 16 | 17 | public interface BrowserController { 18 | 19 | void updateUrl(String title, boolean shortUrl); 20 | 21 | void updateProgress(int n); 22 | 23 | void onProgressChanged(int n); 24 | 25 | void updateHistory(String title, String url); 26 | 27 | void openFileChooser(ValueCallback uploadMsg); 28 | 29 | void update(); 30 | 31 | void onLongPress(); 32 | 33 | void onShowCustomView(View view, int requestedOrientation, IX5WebChromeClient.CustomViewCallback callback); 34 | 35 | void onHideCustomView(); 36 | 37 | Bitmap getDefaultVideoPoster(); 38 | 39 | View getVideoLoadingProgressView(); 40 | 41 | void onCreateWindow(boolean isUserGesture, Message resultMsg); 42 | 43 | Activity getActivity(); 44 | 45 | void hideActionBar(); 46 | 47 | void showActionBar(); 48 | 49 | void toggleActionBar(); 50 | 51 | void longClickPage(String url); 52 | 53 | void openBookmarkPage(X5WebView view); 54 | 55 | void showFileChooser(ValueCallback filePathCallback); 56 | 57 | void closeEmptyTab(); 58 | 59 | boolean isIncognito(); 60 | 61 | boolean isProxyReady(); 62 | 63 | int getMenu(); 64 | 65 | void onPageFinished(); 66 | 67 | void onPageStarted(); 68 | } 69 | -------------------------------------------------------------------------------- /app/src/main/res/layout/video_loading_progress.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 23 | 24 | 29 | 30 | 36 | -------------------------------------------------------------------------------- /external/netcipher/libnetcipher/netcipher.pom: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | info.guardianproject.netcipher 6 | netcipher 7 | 1.2 8 | NetCipher 9 | https://guardianproject.info/code/netcipher 10 | NetCipher is a library for Android that provides multiple means to improve network security in mobile applications. It provides best practices TLS settings using the standard Android HTTP methods, HttpURLConnection and Apache HTTP Client, provides simple Tor integration, makes it easy to configure proxies for HTTP connections and `WebView` instances. 11 | 12 | 13 | Apache-2.0 14 | https://github.com/guardianproject/NetCipher/blob/master/LICENSE.txt 15 | 16 | 17 | 18 | 19 | guardianproject 20 | Guardian Project 21 | support@guardianproject.info 22 | 23 | 24 | 25 | https://dev.guardianproject.info/projects/netcipher/issues 26 | Redmine 27 | 28 | 29 | scm:https://github.com/guardianproject/NetCipher.git 30 | scm:git@github.com:guardianproject/NetCipher.git 31 | scm:https://github.com/guardianproject/NetCipher 32 | 33 | 34 | -------------------------------------------------------------------------------- /app/src/main/java/acr/browser/lightning/broadcastreceiver/NetStateBroadcaseReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 深圳市高搜易信息技术有限公司 3 | */ 4 | package acr.browser.lightning.broadcastreceiver; 5 | 6 | import android.app.Activity; 7 | import android.content.BroadcastReceiver; 8 | import android.content.Context; 9 | import android.content.Intent; 10 | import android.content.IntentFilter; 11 | import android.net.ConnectivityManager; 12 | import android.util.Log; 13 | 14 | import acr.browser.lightning.utils.NetworkUtils; 15 | 16 | /** 17 | * 网络变化监听 18 | * 19 | * @author FangJW 20 | * @Date 15/9/22 21 | */ 22 | public class NetStateBroadcaseReceiver extends BroadcastReceiver { 23 | private static NetStateBroadcaseReceiver mNetStateBroadcaseReceiver; 24 | 25 | @Override 26 | public void onReceive(Context context, Intent intent) { 27 | Log.e("ww", "NetStateBroadcaseReceiver=" + NetworkUtils.isNetworkAvailable(context)); 28 | if (context instanceof NetStateChangeListener) { 29 | ((NetStateChangeListener) context).onNetStateChange(NetworkUtils.isNetworkAvailable(context)); 30 | } 31 | } 32 | 33 | public static NetStateBroadcaseReceiver registerReceiver(Activity act) { 34 | mNetStateBroadcaseReceiver = new NetStateBroadcaseReceiver(); 35 | IntentFilter filter = new IntentFilter(); 36 | filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION); 37 | act.registerReceiver(mNetStateBroadcaseReceiver, filter); 38 | mNetStateBroadcaseReceiver.onReceive(act, null); 39 | return mNetStateBroadcaseReceiver; 40 | } 41 | 42 | public static void unregisterReceiver(Activity act) { 43 | if (mNetStateBroadcaseReceiver != null) { 44 | act.unregisterReceiver(mNetStateBroadcaseReceiver); 45 | } 46 | } 47 | 48 | 49 | } 50 | -------------------------------------------------------------------------------- /app/src/main/java/acr/browser/lightning/activity/WelcomeActivity.java: -------------------------------------------------------------------------------- 1 | package acr.browser.lightning.activity; 2 | 3 | import android.app.Activity; 4 | import android.content.Intent; 5 | import android.os.Bundle; 6 | import android.os.Handler; 7 | 8 | import acr.browser.lightning.R; 9 | import acr.browser.lightning.app.AppConfig; 10 | import acr.browser.lightning.broadcastreceiver.NetStateChangeListener; 11 | 12 | 13 | public class WelcomeActivity extends Activity implements NetStateChangeListener { 14 | public static final long time = 2000; 15 | 16 | public static void gotoHere(Activity act) { 17 | act.startActivity(new Intent(act, WelcomeActivity.class)); 18 | } 19 | 20 | @Override 21 | protected void onCreate(Bundle savedInstanceState) { 22 | super.onCreate(savedInstanceState); 23 | setContentView(R.layout.activity_welcome); 24 | handler.sendEmptyMessageDelayed(0, time); 25 | } 26 | 27 | 28 | Handler handler = new Handler() { 29 | public void handleMessage(android.os.Message msg) { 30 | Intent intent = new Intent(WelcomeActivity.this, 31 | MainActivity.class); 32 | startActivity(intent); 33 | finish(); 34 | } 35 | }; 36 | 37 | @Override 38 | protected void onStart() { 39 | super.onStart(); 40 | // NetStateBroadcaseReceiver.registerReceiver(this); 41 | } 42 | 43 | @Override 44 | protected void onPause() { 45 | super.onPause(); 46 | // NetStateBroadcaseReceiver.unregisterReceiver(this); 47 | } 48 | 49 | 50 | @Override 51 | public void onBackPressed() { 52 | // super.onBackPressed(); 53 | } 54 | 55 | @Override 56 | public void onNetStateChange(boolean isNetConnected) { 57 | AppConfig.isNetConnected = isNetConnected; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /app/src/main/res/menu/main.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 22 | 25 | 28 | 31 | 34 | 37 | 40 | 43 | 46 | 49 | 50 | -------------------------------------------------------------------------------- /app/src/main/java/acr/browser/lightning/download/LightningDownloadListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 A.C.R. Development 3 | */ 4 | package acr.browser.lightning.download; 5 | 6 | import android.app.Activity; 7 | import android.app.AlertDialog; 8 | import android.content.DialogInterface; 9 | import android.util.Log; 10 | import android.webkit.URLUtil; 11 | 12 | import acr.browser.lightning.R; 13 | import acr.browser.lightning.constant.Constants; 14 | 15 | public class LightningDownloadListener implements com.tencent.smtt.sdk.DownloadListener { 16 | 17 | private final Activity mActivity; 18 | 19 | public LightningDownloadListener(Activity activity) { 20 | mActivity = activity; 21 | } 22 | 23 | @Override 24 | public void onDownloadStart(final String url, final String userAgent, 25 | final String contentDisposition, final String mimetype, long contentLength) { 26 | String fileName = URLUtil.guessFileName(url, contentDisposition, mimetype); 27 | DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() { 28 | @Override 29 | public void onClick(DialogInterface dialog, int which) { 30 | switch (which) { 31 | case DialogInterface.BUTTON_POSITIVE: 32 | DownloadHandler.onDownloadStart(mActivity, url, userAgent, 33 | contentDisposition, mimetype, false); 34 | break; 35 | 36 | case DialogInterface.BUTTON_NEGATIVE: 37 | break; 38 | } 39 | } 40 | }; 41 | 42 | AlertDialog.Builder builder = new AlertDialog.Builder(mActivity); // dialog 43 | builder.setTitle(fileName) 44 | .setMessage(mActivity.getResources().getString(R.string.dialog_download)) 45 | .setPositiveButton(mActivity.getResources().getString(R.string.action_download), 46 | dialogClickListener) 47 | .setNegativeButton(mActivity.getResources().getString(R.string.action_cancel), 48 | dialogClickListener).show(); 49 | Log.i(Constants.TAG, "Downloading" + fileName); 50 | 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 15 | 16 | 21 | 22 | 23 | 24 | 31 | 32 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /app/src/main/java/acr/browser/lightning/constant/BookmarkPage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 A.C.R. Development 3 | */ 4 | package acr.browser.lightning.constant; 5 | 6 | import acr.browser.lightning.R; 7 | import acr.browser.lightning.app.BrowserApp; 8 | 9 | public class BookmarkPage { 10 | 11 | public static final String FILENAME = "bookmarks.html"; 12 | 13 | public static final String HEADING = "" 14 | + BrowserApp.getAppContext().getString(R.string.action_bookmarks) 15 | + "
"; 16 | 17 | public static final String PART1 = "

"; 22 | 23 | public static final String PART4 = "

"; 24 | 25 | public static final String END = "
"; 26 | 27 | } 28 | -------------------------------------------------------------------------------- /app/src/main/res/layout/tab_list_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 19 | 20 | 21 | 37 | 38 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /app/src/main/java/acr/browser/lightning/activity/IncognitoActivity.java: -------------------------------------------------------------------------------- 1 | package acr.browser.lightning.activity; 2 | 3 | import android.content.Intent; 4 | import android.os.Build; 5 | import android.os.Bundle; 6 | import android.view.Menu; 7 | import android.webkit.CookieManager; 8 | import android.webkit.CookieSyncManager; 9 | 10 | import acr.browser.lightning.preference.PreferenceManager; 11 | import acr.browser.lightning.R; 12 | 13 | @SuppressWarnings("deprecation") 14 | public class IncognitoActivity extends BrowserActivity { 15 | 16 | CookieManager mCookieManager; 17 | 18 | @Override 19 | protected void onCreate(Bundle savedInstanceState) { 20 | super.onCreate(savedInstanceState); 21 | } 22 | 23 | @Override 24 | public void updateCookiePreference() { 25 | mCookieManager = CookieManager.getInstance(); 26 | if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) { 27 | CookieSyncManager.createInstance(this); 28 | } 29 | mCookieManager 30 | .setAcceptCookie(PreferenceManager.getInstance().getIncognitoCookiesEnabled()); 31 | super.updateCookiePreference(); 32 | } 33 | 34 | @Override 35 | public synchronized void initializeTabs() { 36 | super.initializeTabs(); 37 | // restoreOrNewTab(); 38 | newTab(null, true); 39 | // if incognito mode use newTab(null, true); instead 40 | } 41 | 42 | @Override 43 | public boolean onCreateOptionsMenu(Menu menu) { 44 | getMenuInflater().inflate(R.menu.incognito, menu); 45 | return super.onCreateOptionsMenu(menu); 46 | } 47 | 48 | @Override 49 | protected void onNewIntent(Intent intent) { 50 | // handleNewIntent(intent); 51 | super.onNewIntent(intent); 52 | } 53 | 54 | @Override 55 | protected void onPause() { 56 | super.onPause(); 57 | // saveOpenTabs(); 58 | } 59 | 60 | @Override 61 | public void updateHistory(String title, String url) { 62 | super.updateHistory(title, url); 63 | // addItemToHistory(title, url); 64 | } 65 | 66 | @Override 67 | public boolean isIncognito() { 68 | return true; 69 | } 70 | 71 | @Override 72 | public void closeActivity() { 73 | closeDrawers(); 74 | finish(); 75 | } 76 | 77 | @Override 78 | public int getMenu() { 79 | return R.menu.incognito; 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /app/src/main/java/acr/browser/lightning/reading/MapEntry.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2010 Peter Karich <> 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not 5 | * use this file except in compliance with the License. You may obtain a copy of 6 | * the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations under 14 | * the License. 15 | */ 16 | package acr.browser.lightning.reading; 17 | 18 | import java.io.Serializable; 19 | import java.util.Map; 20 | 21 | /** 22 | * Simple impl of Map.Entry. So that we can have ordered maps. 23 | * 24 | * @author Peter Karich, peat_hal ‘at’ users ‘dot’ sourceforge ‘dot’ 25 | * net 26 | */ 27 | public class MapEntry implements Map.Entry, Serializable { 28 | 29 | private static final long serialVersionUID = 1L; 30 | private K key; 31 | private V value; 32 | 33 | public MapEntry(K key, V value) { 34 | this.key = key; 35 | this.value = value; 36 | } 37 | 38 | @Override 39 | public K getKey() { 40 | return key; 41 | } 42 | 43 | @Override 44 | public V getValue() { 45 | return value; 46 | } 47 | 48 | @Override 49 | public V setValue(V value) { 50 | this.value = value; 51 | return value; 52 | } 53 | 54 | @Override 55 | public String toString() { 56 | return getKey() + ", " + getValue(); 57 | } 58 | 59 | @Override 60 | public boolean equals(Object obj) { 61 | if (obj == null) 62 | return false; 63 | if (getClass() != obj.getClass()) 64 | return false; 65 | final MapEntry other = (MapEntry) obj; 66 | if (this.key != other.key && (this.key == null || !this.key.equals(other.key))) 67 | return false; 68 | return !(this.value != other.value && (this.value == null || !this.value 69 | .equals(other.value))); 70 | } 71 | 72 | @Override 73 | public int hashCode() { 74 | int hash = 7; 75 | hash = 19 * hash + (this.key != null ? this.key.hashCode() : 0); 76 | hash = 19 * hash + (this.value != null ? this.value.hashCode() : 0); 77 | return hash; 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /app/src/main/java/acr/browser/lightning/view/x5/SecurityJsBridgeBundle.java: -------------------------------------------------------------------------------- 1 | package acr.browser.lightning.view.x5; 2 | 3 | import android.content.Context; 4 | 5 | public abstract class SecurityJsBridgeBundle { 6 | 7 | 8 | /////////////////////////////////////////////////////////////////////////////// 9 | //add js 10 | private final static String DEFAULT_JS_BRIDGE ="JsBridge"; 11 | public static final String METHOD = "method"; 12 | public static final String BLOCK = "block"; 13 | public static final String CALLBACK = "callback"; 14 | 15 | public static final String PROMPT_START_OFFSET = "local_js_bridge::"; 16 | 17 | private Context mContext; 18 | private String mJsBlockName ; 19 | private String mMethodName; 20 | 21 | 22 | public abstract void onCallMethod(); 23 | 24 | public SecurityJsBridgeBundle(String JsBlockName, String methodName) throws Exception { 25 | if(methodName == null){ 26 | throw new Exception("methodName can not be null!"); 27 | } 28 | 29 | if(JsBlockName!=null){ 30 | this.mJsBlockName=JsBlockName; 31 | }else{ 32 | this.mJsBlockName = DEFAULT_JS_BRIDGE; 33 | } 34 | 35 | 36 | } 37 | 38 | 39 | public String getMethodName(){ 40 | return this.mMethodName; 41 | } 42 | 43 | public String getJsBlockName(){ 44 | return this.mJsBlockName; 45 | } 46 | 47 | 48 | private void injectJsMsgPipecode(){ 49 | String injectCode = "javascript:(function JsAddJavascriptInterface_(){ "+ 50 | "if (typeof(window.jsInterface)!='undefined') {"+ 51 | "console.log('window.jsInterface_js_interface_name is exist!!');} "+ 52 | "else {"+ 53 | "window.jsBridge = {"+ 54 | "onButtonClick:function(arg0) {"+ 55 | "return prompt('MyApp:'+JSON.stringify({obj:'jsInterface',func:'onButtonClick',args:[arg0]}));"+ 56 | "},"+ 57 | 58 | "onImageClick:function(arg0,arg1,arg2) {"+ 59 | "prompt('MyApp:'+JSON.stringify({obj:'jsInterface',func:'onImageClick',args:[arg0,arg1,arg2]}));"+ 60 | "},"+ 61 | "};"+ 62 | "}"+ 63 | "}"+ 64 | ")()"; 65 | } 66 | 67 | 68 | private static String getStandardMethodSignature(){ 69 | return null; 70 | } 71 | 72 | 73 | } 74 | -------------------------------------------------------------------------------- /app/src/main/res/layout/bookmark_drawer.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 19 | 20 | 31 | 32 | 33 | 45 | 46 | 47 | 51 | 52 | 59 | 60 | -------------------------------------------------------------------------------- /external/netcipher/libnetcipher/src/info/guardianproject/netcipher/client/SocksAwareProxyRoutePlanner.java: -------------------------------------------------------------------------------- 1 | package info.guardianproject.netcipher.client; 2 | 3 | import ch.boye.httpclientandroidlib.HttpException; 4 | import ch.boye.httpclientandroidlib.HttpHost; 5 | import ch.boye.httpclientandroidlib.HttpRequest; 6 | import ch.boye.httpclientandroidlib.conn.SchemePortResolver; 7 | import ch.boye.httpclientandroidlib.impl.conn.DefaultRoutePlanner; 8 | import ch.boye.httpclientandroidlib.protocol.HttpContext; 9 | 10 | public abstract class SocksAwareProxyRoutePlanner extends DefaultRoutePlanner { 11 | public SocksAwareProxyRoutePlanner(SchemePortResolver schemePortResolver) { 12 | super(schemePortResolver); 13 | } 14 | 15 | @Override 16 | protected HttpHost determineProxy( 17 | HttpHost target, 18 | HttpRequest request, 19 | HttpContext context) throws HttpException { 20 | HttpHost proxy = determineRequiredProxy(target, request, context); 21 | if (isSocksProxy(proxy)) 22 | proxy = null; 23 | return proxy; 24 | } 25 | 26 | /** 27 | * Determine the proxy required for the provided target. 28 | * 29 | * @param target see {@link #determineProxy(HttpHost, HttpRequest, HttpContext) determineProxy()} 30 | * @param request see {@link #determineProxy(HttpHost, HttpRequest, HttpContext) determineProxy()}. 31 | * Will be null when called from {@link SocksAwareClientConnOperator} to 32 | * determine if target requires a SOCKS proxy, so don't rely on it in this case. 33 | * @param context see {@link #determineProxy(HttpHost, HttpRequest, HttpContext) determineProxy()} 34 | * @return the proxy required for this target, or null if should connect directly. 35 | */ 36 | protected abstract HttpHost determineRequiredProxy( 37 | HttpHost target, 38 | HttpRequest request, 39 | HttpContext context); 40 | 41 | /** 42 | * Checks if the provided target is a proxy we define. 43 | * 44 | * @param target to check 45 | * @return true if this is a proxy, false otherwise 46 | */ 47 | protected abstract boolean isProxy(HttpHost target); 48 | 49 | /** 50 | * Checks if the provided target is a SOCKS proxy we define. 51 | * 52 | * @param target to check 53 | * @return true if this target is a SOCKS proxy, false otherwise. 54 | */ 55 | protected abstract boolean isSocksProxy(HttpHost target); 56 | } 57 | -------------------------------------------------------------------------------- /external/netcipher/libnetcipher/src/info/guardianproject/netcipher/proxy/ProxyHelper.java: -------------------------------------------------------------------------------- 1 | package info.guardianproject.netcipher.proxy; 2 | 3 | import android.content.Context; 4 | import android.content.Intent; 5 | 6 | public interface ProxyHelper { 7 | 8 | public boolean isInstalled (Context context); 9 | public void requestStatus (Context context); 10 | public boolean requestStart (Context context); 11 | public Intent getInstallIntent (Context context); 12 | public Intent getStartIntent (Context context); 13 | public String getName (); 14 | 15 | public final static String FDROID_PACKAGE_NAME = "org.fdroid.fdroid"; 16 | public final static String PLAY_PACKAGE_NAME = "com.android.vending"; 17 | 18 | /** 19 | * A request to Orbot to transparently start Tor services 20 | */ 21 | public final static String ACTION_START = "android.intent.action.PROXY_START"; 22 | /** 23 | * {@link Intent} send by Orbot with {@code ON/OFF/STARTING/STOPPING} status 24 | */ 25 | public final static String ACTION_STATUS = "android.intent.action.PROXY_STATUS"; 26 | /** 27 | * {@code String} that contains a status constant: {@link #STATUS_ON}, 28 | * {@link #STATUS_OFF}, {@link #STATUS_STARTING}, or 29 | * {@link #STATUS_STOPPING} 30 | */ 31 | public final static String EXTRA_STATUS = "android.intent.extra.PROXY_STATUS"; 32 | 33 | public final static String EXTRA_PROXY_PORT_HTTP = "android.intent.extra.PROXY_PORT_HTTP"; 34 | public final static String EXTRA_PROXY_PORT_SOCKS = "android.intent.extra.PROXY_PORT_SOCKS"; 35 | 36 | /** 37 | * A {@link String} {@code packageName} for Orbot to direct its status reply 38 | * to, used in {@link #ACTION_START} {@link Intent}s sent to Orbot 39 | */ 40 | public final static String EXTRA_PACKAGE_NAME = "android.intent.extra.PROXY_PACKAGE_NAME"; 41 | 42 | /** 43 | * All tor-related services and daemons are stopped 44 | */ 45 | public final static String STATUS_OFF = "OFF"; 46 | /** 47 | * All tor-related services and daemons have completed starting 48 | */ 49 | public final static String STATUS_ON = "ON"; 50 | public final static String STATUS_STARTING = "STARTING"; 51 | public final static String STATUS_STOPPING = "STOPPING"; 52 | /** 53 | * The user has disabled the ability for background starts triggered by 54 | * apps. Fallback to the old Intent that brings up Orbot. 55 | */ 56 | public final static String STATUS_STARTS_DISABLED = "STARTS_DISABLED"; 57 | } 58 | 59 | -------------------------------------------------------------------------------- /app/src/main/java/acr/browser/lightning/activity/LicenseActivity.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 A.C.R. Development 3 | */ 4 | package acr.browser.lightning.activity; 5 | 6 | import android.content.Intent; 7 | import android.net.Uri; 8 | import android.os.Bundle; 9 | import android.support.v7.widget.Toolbar; 10 | import android.view.MenuItem; 11 | import android.view.View; 12 | 13 | import acr.browser.lightning.R; 14 | 15 | /* 16 | *NOTE: This activity must not be removed in order to comply with the Mozilla Public License v. 2.0 17 | *under which this code is licensed. Unless you plan on providing other attribution in the app to 18 | *the original source in another visible way, it is advised against the removal of this Activity. 19 | */ 20 | public class LicenseActivity extends ThemableSettingsActivity implements View.OnClickListener { 21 | 22 | @Override 23 | protected void onCreate(Bundle savedInstanceState) { 24 | super.onCreate(savedInstanceState); 25 | setContentView(R.layout.license_activity); 26 | Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); 27 | setSupportActionBar(toolbar); 28 | 29 | getSupportActionBar().setDisplayHomeAsUpEnabled(true); 30 | findViewById(R.id.browserLicense).setOnClickListener(this); 31 | findViewById(R.id.licenseAOSP).setOnClickListener(this); 32 | findViewById(R.id.licenseHosts).setOnClickListener(this); 33 | findViewById(R.id.licenseOrbot).setOnClickListener(this); 34 | findViewById(R.id.licenseSnactory).setOnClickListener(this); 35 | findViewById(R.id.licenseJsoup).setOnClickListener(this); 36 | } 37 | 38 | @Override 39 | public void onClick(View v) { 40 | switch (v.getId()) { 41 | case R.id.browserLicense: 42 | actionView("http://www.mozilla.org/MPL/2.0/"); 43 | break; 44 | case R.id.licenseAOSP: 45 | actionView("http://www.apache.org/licenses/LICENSE-2.0"); 46 | break; 47 | case R.id.licenseHosts: 48 | actionView("http://hosts-file.net/"); 49 | break; 50 | case R.id.licenseOrbot: 51 | actionView("http://www.gnu.org/licenses/lgpl.html"); 52 | break; 53 | case R.id.licenseSnactory: 54 | actionView("http://www.apache.org/licenses/LICENSE-2.0"); 55 | break; 56 | case R.id.licenseJsoup: 57 | actionView("http://jsoup.org/license"); 58 | break; 59 | } 60 | } 61 | 62 | private void actionView(String url) { 63 | startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url), this, MainActivity.class)); 64 | finish(); 65 | } 66 | 67 | @Override 68 | public boolean onOptionsItemSelected(MenuItem item) { 69 | finish(); 70 | return super.onOptionsItemSelected(item); 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /app/src/main/res/menu-large/main.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 19 | 20 | 28 | 36 | 39 | 42 | 45 | 48 | 51 | 54 | 57 | 60 | 63 | 66 | 67 | -------------------------------------------------------------------------------- /app/src/main/res/menu-xlarge/main.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 19 | 20 | 28 | 36 | 39 | 42 | 45 | 48 | 51 | 54 | 57 | 60 | 63 | 66 | 67 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /app/src/main/res/values-fr/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Lightning 3 | Google 4 | Onglets 5 | Paramètres 6 | Accéder à ma position 7 | Enregistrer les mots de passe 8 | User Agent 9 | Effacer l\'historique 10 | Effacer les cookies en quittant 11 | Effacer l\'historique en quittant 12 | Contactez moi 13 | Activer Adobe Flash Player 14 | Bloquer les publicités 15 | Bloquer les images 16 | Bloquer les cookies tiers 17 | Voir la version mobile 18 | Voir la version ordinateur 19 | Utiliser un User Agent personnalisé 20 | Au démarrage 21 | Les paramètres ne s\'appliqueront qu\'aux nouveaux onglets 22 | Activer le mode plein écran 23 | Activer JavaScript 24 | Inverser les couleurs 25 | Utiliser le thème sombre 26 | Historique 27 | Favoris 28 | Ajouter aux favoris 29 | Copier l\'URL 30 | Partager 31 | Paramètres 32 | Onglet incognito 33 | Nouvel onglet 34 | Rechercher dans la page 35 | Passer en mode lecture 36 | Texte copié 37 | URL copiée 38 | Général 39 | Favoris 40 | Affichage 41 | Vie privée 42 | A propos 43 | Tout savoir sur la version, l\'auteur et la licence. 44 | 45 | -------------------------------------------------------------------------------- /app/src/main/res/layout/search_interface.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 14 | 15 | 25 | 26 | 31 | 32 | 39 | 40 | 45 | 46 | 53 | 54 | 59 | 60 | 67 | 68 | -------------------------------------------------------------------------------- /app/src/main/res/layout/filechooser_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 10 | 11 | 17 | 18 | 22 | 23 |