Reprint, please indicate the source and author contact information
Article Source: Http://www.limodev.cn/blog
Author Contact: Li Xianjing <xianjimli@gmail.com>
Broncho A1, like a regular Android phone, cannot be used directly as a modem, but it can be treated as a gateway or proxy so that the PC can access the Internet via A1. Today with Privoxy (http://www.privoxy.org/) tried, the work is normal, the specific steps are as follows:
1. Download privoxy-3.0.15-beta-src.tar.gz
2. Extract into the Android/extern directory.
3. Compile a normal Linux version first.
CD External/privoxy-3.0.15-beta;
Autoheader && autoconf &&/configure--disable-acl-files;
Make
4. Create a Android.mk
# Copyright:written by and Copyright (C)-Li xianjing <xianjimli@hotmail.com> # local_path:= $ (call My-dir) Include $ (clear_vars) local_c_cflags=-dandroid local_c_includes = External/privoxy/pcre external/privoxy external/ Zlib local_src_files:= actions.c cgi.c cgiedit.c cgisimple.c deanimate.c/encode.c errlog.c filters.c gateway.c jbsockets . C jcc.c list.c/loadcfg.c loaders.c miscutil.c parsers.c ssplit.c urlmatch.c/pcrs.c pcre/get.c pcre/maketables.c pcre/ Study.c pcre/pcre.c/pcre/pcreposix.c Local_module: = privoxy local_shared_libraries: = libc local_static_libraries: = Li BZ include $ (build_executable)
5. Modify the MISCUTIL.C
#if!defined (HAVE_TIMEGM) && defined (have_tzset) && defined (have_putenv)
-->
#if!defined (HAVE_TIMEGM) && defined (have_tzset) && defined (have_putenv) | | Defined (ANDROID)
6. Compile (set up the Android environment first)
Mm
7. Upload the following files to Broncho A1
Default.filter
User.action
Default.action
Match-all.action
Config
Privoxy
8. Run the agent on the Broncho A1.
./privoxy &
9. Set up TCP forwarding on the PC side
ADB forward tcp:8118 tcp:8118
10. Set the browser's proxy to localhost 8118
Well, the PC will be able to access the Internet via Broncho A1.
You can also download the compiled version (including source code) here: http://www.limodev.cn/download/privoxy-broncho-a1.tar.gz
After decompression, upload the files in the privoxy-3.0.15-beta/for-broncho-a1/directory to the Broncho A1, and refer to the last few steps of this article to access the Internet with A1.