PCs access the internet via the Android phone (Broncho A1)

Source: Internet
Author: User

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.

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.