PC accesses the Internet through the Android phone (broncho A1)

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.