Indicate the source and author's contact information during reprinting.
Article Source: http://www.limodev.cn/blog
Author contact: Li xianjing <xianjimli@gmail.com>
Broncho A1 is the same as an ordinary Android mobile phone. It cannot be used directly as a modem, but can be used as a gateway or proxy, so that the PC can access the Internet through A1. Today with Privoxy (http://www.privoxy.org/) Try, work properly, the specific steps are as follows:
1. Download privoxy-3.0.15-beta-src.tar.gz
2. decompress the package to 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 an android. mk
# <Br/> # copyright: Written by and copyright (c) 2010 Li xianjing <xianjimli@hotmail.com> <br/> # <br/> local_path: = $ (call my-DIR) </P> <p> include $ (clear_vars) </P> <p> local_c_cflags =-dandroid <br/> local_c_includes + = external/Privoxy/PCRE external/Privoxy external/zlib <br/> local_src_files: = actions. c CGI. c cgiedit. c cgisimple. c deanimate. c/<br/> encode. c errlog. c filters. c gateway. c jbsockets. c JCC. c list. c/<br/> loadcfg. c loaders. c miscutil. c parsers. c ssplit. c urlmatch. c/<br/> PCRs. c PCRE/get. c PCRE/maketables. c PCRE/study. c PCRE/PCRE. c/<br/> PCRE/pcreposix. c </P> <p> local_module: = Privoxy </P> <p> local_shared_libraries: = libc <br/> local_static_libraries: = libz <br/> include $ (build_executable)
5. Modify 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 (first set the android environment)
Mm
7. Upload the following files to broncho A1
Default. Filter
User. Action
Default. Action
Match-all.action
Config
Privoxy
8. Run the proxy on broncho A1.
./Privoxy &
9. Set TCP forwarding on the PC end
ADB forward TCP: 8118 TCP: 8118
10. Set the browser proxy to localhost 8118
Now, PC can access the Internet through broncho A1.
You can also download the compiled version (including the source code): 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 broncho A1, refer to the last few steps of this article to access the Internet with A1.