Thursday, January 17, 2008

Set proxy for android web browser

There is no UI for proxy settings for android web browser. But the android web browser will read the proxy settings in its settings database.
Here is the instructions to enable the proxy in the android web browser.
  1. > adb shell
  2. # sqlite3 /data/data/com.google.android.providers.settings/databases/settings.db
  3. sqlite> INSERT INTO system VALUES(99,’http_proxy', 'proxy:port');
  4. sqlite>.exit
You can talk to settings.db for more information.
  1. sqlite> SELECT * FROM system;
  2. sqlite> .tables
  3. sqlite> .databases
  4. sqlite> .schema table_name
  5. sqlite> more SQL expression to talk to the tables
Don't forget the ';' at the end of the SQL expression.

88 comments:

Alessandro said...

This is exactly what i was looking for! Thank you. One question: according to you, is it possible to make sqlite queries from a java application?

rtm said...

I didn't try the sqlite3 in the java application. But you can try in the following two ways: 1. catenate the strings of sqlite3 database_name and sql command, place sql command into "" (quotation), run the command in java, just like invoke a process; 2. java includes the opendatabase(...) and so you will get the database context, with that context you can operate the database.

Alessandro said...

Ok, really kind! I will try it ;) if I will have some problems I will probably write to you back. Thanks again.

Ahmy Yulrizka said...

thanks you this is also what im looking for. but is there any way to disable the proxy without deleting the record. mmm may be another options like use_proxy or something ?

Jagtap said...

I am using following and gives following result
If anybody have answer plz reply me

E:\jagtap\Andriod SDK\android-sdk-windows-0.9_beta\tools>adb shell
# sqlite3 /data/data/com.google.android.providers.settings/databases/settings.db

sqlite3 /data/data/com.google.android.providers.settings/databases/settings.db
sqlite3: not found
#

Unknown said...

jalandar is correct, there doesn't appear to be an sqlite3 binary in the g1's $PATH. I'll attempt to cross-compile it and post back.

Also, there is another way of doing this that actually pulls up a proxy settings gui: The AnyCut app available on marketplace allows you to create a shortcut to "Proxy Settings" on the desktop.

Unknown said...
This comment has been removed by the author.
Chinmay said...

the package is com.android.providers.settings not com.google.android.providers.settings

Qasim Ali Khawaja said...

sqlite> INSERT INTO system VALUES(99,'http_proxy','10.3.20.10:8080');
SQL error: not an error

If received the following error any suggestions ?

Vinod said...

INSERT INTO system VALUES(101,'http_proxy','10.3.20.10:8080');

change 99 to 101 it may works ....

... said...

Is there a way to make EVERYTHING go through a proxy? Through a VPN or otherwise encrypted tunnel for security on public access points?

NatDeFreitas said...

This page has a much simpler, cleaner way to do it using the Settings class:

http://alexmogurenko.com/blog/programming/android-how-to-set-proxy-for-android-browser/

Unknown said...

I would like to know what is a proxy used for. I also would like to know what is Generic Viagra used for too.
There are some very complex topics to understand over the net

kevin jhonson said...

I dont think you have to do all these...here is the simple guide to enable proxy in Android.It works fine for me...

http://android-proxy.blogspot.com/

harunjo said...

just install with a easy way...(note you need root access for that)

http://forum.xda-developers.com/showthread.php?t=766569

transproxy.apk

Fábio Daneluzzzi said...

There are easy ways to use Proxy in Android for WIFI!

http://androidero.blogspot.com/2010/10/acessando-wifi-via-proxy.html

Unknown said...

Guys i am dumb when it comes to this level. Do tell me the steps. Where do i need to open this and modify ? Is the file present in the memory ? Please inform.

рαωάή said...

Hi Scott:

Make sure your AVD is running before you start this.

1. Go to cmd>run
2. navigate to your tools directory of the sdk. mine is here: C:\Users\Pawan\Desktop\android-sdk_r07-windows\android-sdk-windows\tools
3. then follow whatever is given in the blogpost. One correction as pointed out by Chinmay is its com.android.providers and not com.google.android.providers..

If you have any difficulty, just email me at pavirulz@gmail.com.

Viel Glueck!

Pawan

sasha said...

Initially, the Apple Store had the largest number of apps, and iPhone users enjoyed a better selection than those that joined Team Android.
best android apps

best iphone apps

rahul said...

I'm new to android.
To open sqlite, do we have to root the phone first?
Because on every command adb is saying "permission denied".

Thank You

hema said...

online-proxy.org is a free web based anonymous proxy servers and sites and offer complete proxy server list with Online proxy features.
Online proxy

Anonymous said...

Wow! I'm pretty sure that this caught up plenty of people's attention, Thumbs up for your work and Good writing skills!

i am jayne and i am a freelance writer..
see my related post here ------> Man Suits

Mark said...

Organic whole food vitamins are the most convenient way to ensure a healthy, balanced diet with all the nutrients your body needs to operate efficiently.

Natural vitamins supplements
and
Organic vitamins

Arghya Chakraborty said...

Best regards for your most informative blog. I got many unknown information from this post. Regards from Fort Worth Tow Truck Company

Anonymous said...

That an interesting post. I never thought about this before. But, looking back at different situations, this might be right. Keep it up friend!
best online pharmacy

Mark said...

computer repair new york

Nice to be visiting your blog again, it has been months for me. Well this article that I've been waited for so long.

Emma jacob said...

It’s first time for me landing on your blog. I’ve reading your post recently and I’m so enjoying it.

classified ads Pakistan|real estate pakistan|Pakistan classifieds

eshaa said...

Thanks for this read mate. Well, this is my first visit to your blog! But I admire the precious time and effort you put into it, especially into interesting articles you share here!

website design perth

Anonymous said...

Nice information, valuable and excellent design, as share good stuff with good ideas and concepts, lots of great information and inspiration. Thanks for the great information. And thanks for sharing
4d ultrasounds

Raniasgarden said...

Thanks for the steps. i have to set this proxy..


Herbal Pain Relief

Anonymous said...

Oracle sued Google in August of last year, alleging that Google's Android software infringes on patents and copyrights associated with Oracle's Java Buy Arimidex

Maggie Kesch said...

I've gotta tell you, you are spot on. I stumbled on your site from another link and am really interested in this topic. Do you mind if I link to this site from my blog? hosting ireland

saim said...

Nice post. We are impressed by your clear description of your topic. Thanks for the information. Keep on writing.


find doctor list

Anonymous said...

Nice site! I enjoy a couple of from the articles which have been written, and particularly the comments posted! I will definitely be visiting again!
organic supplements
Natural Allergy Relief
Natural Colon Cleanser
Natural Weight Loss
Testosterone Booster

Anonymous said...

This is such a helpful reading material for me; I’ve learned a lot of new things. Thanks for the great post!

best naturals

Anonymous said...

Thanks for creating this interesting blog and i got a good knowledge to read your informational post.

Android app developer

Anonymous said...

Its really an amazing work done by author, its an admirable work done
Keep it up..
india domain registration

Anonymous said...

That is an awfully astounding column that have posted. Thanks a lot for that fantastically amazing post!
Generic Levitra

Website Hosting India said...

Well great knowledge i got through this post and useful information for me.Website Hosting India

Android app development said...

This is one of the best post.I came to know one of the new topic about proxy setting In Android
application.
Android app developers

sowmya said...

This article is really good. I love it and hope to read more from you. Keep the good work. This site is really awesome.
indian seo forum

kenge said...

I see the article quiet critical. Thanks for sharing anyways, nice to hear different opinions on that topic.

buy codeine online

Android developer said...

This looks actually perfect. All these tinny capacity are fabricated with lot of accomplishments knowledge. I like it a lot.

Android developers

domina said...

Thanks for the information on the android web browser and it was very useful for me..
Buy domain names

TM said...

ugh i like android but updating is such a pain in the @S$

Android app development said...

This is one of the knowledgeable post.I got some good tips by read your blog details.Your blog opportunity is really useful.
Android app developers

Nick Kolas said...

This is one awesome post.Thanks Again. Really Cool. Lake Park Air Conditioner Repair

joli said...

Hi, great Blog. The way you explained it is really awesome and makes everyone to read till the end. Keep posting..
locksmith in new york

GIrin said...

Need Some more details about this, How can i get that...


Joomla developers

Unknown said...

Nice It’s really great to post my comments on such a blog. Thanks
advertising | top advertising agencies in Pakistan | Marketing Agency | Advertisement

BiztechCS said...

This article is really good.

gopipatel said...

Wow! amazing post.. Thanks for sharing!
5 Best Web Browser Apps for Android

Golden Eagle It Technologies said...

thanks for sharing. this is informative for us. Hope you add more in future also
Software company in india

Poker Online 88 said...

http://depositcepat.com/
Poker Deposit Pulsa

shwan said...

Always, anywhere and anytime,I feel very comfortable now all to the work of Dr Ebacol,the Herbalist who prepare for me the remedies to my health challenges.i could feel more comfortable when he explained to me how dangerous it's caring Herpes with me getting affected easily with Other sexually transmitted infections. Genital sores increases my risk of transmitting or contracting other sexually transmitted infections, including AIDS.
Newborn infection. ...nd a lover who ran into it and had a shock on me after the checkup and develop stroke.
This has been my earnest prayers for the physician therapist to come in with positive solutions to remedies Herpes and most
Bladder problems. ...
Meningitis. ...
Rectal inflammation (proctitis).
I was so scared when he says that because I fou viral infections. I'm now free and I thank God for leading me to see others getting cured with Herbs. I decided to try and found out that the best way I would have done was to get rid of it and give my testimony. Glory to God I became free after I received his medicine from the DHL and applied as instructed. Till date I had no SYMPTOMS nor virus to detect of me, I called him and thankful for what he did,and ask if he could cure my stroke boyfriend,he said yes and did the same preparation to my boyfriend for his stroke and Recovered from it. Nothing is impossible with Herbs IN CURES, you're the next if you will be willing to apply his medicine and instructions on how to manage.
Sickness has no right to dwell on us,you can reach him at his email address
For your immediate response to health

   drebacolherbalhome1@gmail.com  
Cell number (WhatsApp/calls)
    +2348159042641    

the worthy stars said...

buy shoes
buy best shoes
buy shoes online
buy best shoes online
buy
shoes
quality shoes

wafa said...

computer software repairs burlington

Mark A Howard said...

A MUST READ THE HERBALIST WHO CURE MY DAUGHTER FROM DIABETES

Hello everyone,I am sharing this wonderful testimony with a heart full of joy and happiness about how Dr OGODO uses his herbal medicine to cure my daughter from DIABETES.My daughter has been diagnosed with DIABETES over three {3} years. i try  as much as possible to make sure my only daughter is cured yet to no avail. Last year january 2019 I had to fly my only daughter to INDIAN for treatment yet no possible result after spending a lot of money and [5] months over there.furthermore i keep searching for another location to make sure my daughter is cure yet i never give up because you know what it takes for your only daughter to be diagnosed of DIABETES and seeing her unhappy everytime and i never stop crying day and night because she is the only one left for me not when i lost his Dad in car accident.to cut the story short,it was my best friend who recommended this herbalist for me saying that she have seeing a lot of testimony on the internet on how Dr OGODO have been curing virus diseases such as [1]HERPES [2]CANCER [3] PENIS ENLARGEMENT [4] HEPATITIS [5]HSV/STD [6]HIV/AIDS [7]HIGH BLOOD PRESSURE [8] CLONE CLEANSING [9]COPD [10] KIDNEY DISEASE [11] GENITAL WART E.T.C immediately i contact him through email and told him what am passing through after some times he reply me and ask for my information which i did.A week later i received the medicine through DHL and he also call me on whatsapp number telling me how to use it then after using as he instructed i took my daughter for check up behold my doctor confirm to me that she is totally fine no more DIABETES i started sharing tears of joy.please and please contact this herbalist Dr for any health challenges via email [ogodoherbalhomesolution@gmail.com] OR WHATSAPP [+2349044680467}
https://www.facebook.com/oogoherbalhomesolution/

Unknown said...

gaming computer store burlington

Amelya said...

thank u for share .
events planner marrakech

Unknown said...

iphone 11 pro max lcd

Unknown said...

Iphone glass repair

Sapphire Solutions said...

Java Development Company | Java Web Development Services

Unknown said...

opticien marrakech
salle de sport marrakech

Anonymous said...

This is a fascinating and informative blog, and I believe it is extremely useful and knowledgeable. I'd like to express my gratitude for the time and work you put into creating this site.

Software Development Company
Cross-functional software product development company
Cross-Platform Hybrid mobile app development services
App Development and Maintenance Service
Custom Web App Development Company
Best AR/VR development company
Top AI/ML services
Custom Blockchain Development Services

thesttl said...

In this competitive world offline business are suffering from various problem due to pandemic but due to internet world people are online and they are transferring there business digitally. If you want then you can visit digital transformation services and software development company which is one of the best solution for your business ever

Blogs said...

This one is a good read!!!
​If you are looking for something a little different for your next holiday and you want to
explore the best of Norfolk, Suffolk and beyond with freedom and style, look no further
than Retro Campers Norfolk for Campervan Hire Norfolk

Blogs said...

This one is a good read!!!

If you are looking for something a little different for your next holiday and you want to explore the best of Norfolk, Suffolk and beyond with freedom and style,
look no further than Retro Campers Norfolk for campervan hire Norfolk

Blogs said...

This one is a good read!!!

You may be looking to ship a vehicle and asking yourself exactly how hard it could be.
If you’re contemplating using a Car Shipping UK
then you’ve come to the right place.

Blogs said...

This one is a good read!!!

You may be looking to ship a vehicle and asking yourself exactly how hard it could be.
If you’re contemplating using an International Auto shipping
services then you’ve come to the right place.

Blogs said...

This one is a good read!!!

We continue to work diligently to grow our network and to find and develop ways to be cost effective and ship more efficiently.
If you’re contemplating using a Ship my Pov
then you’ve come to the right place.

Blogs said...

This one is a good read!!!

We are one of the top prince2 training academies in the UK and now you can
have our best offer so that you can be one of the certified PRINCE2 Project Manager.


Dhaval Mehta said...

Google android has changed the world.
software testing company in USA QA testing companies in USA

Golden Eagle It Technologies said...

This is mind blowing, Thanks for sharing this informative content.this help me a lot in my

SEO Services in Lahore (rank your website) said...

The best SEO services in Lahore as he is the one who optimizes websites in order to achieve higher search engine rankings for keywords that are potentially more Traffic and revenue-generating.....Read Move.

jasmeet said...

Visit SIfars.com!
Best Website Designing Company

Blogs said...

If you need to replace your door lock, there are a few essential steps you need to take to ensure the process is quick and easy. Here’s what you need to do:

Read More @ NJM - emergency locksmiths Northampton.

Unknown said...

Bricks and Pixels is a leading AR VR app development company that offers feature-rich AR VR apps development services to deliver immersive user experiences.

tek said...

Technology Write For Us
Technology guest posting

Blogs said...

Outstanding virtual assistant agency UK! Streamlined productivity and top-notch support for businesses. Impressive agency!

Blogs said...

Exceptional work, Digital Marketing Agency UK ! Your expertise shines through. Your insights are invaluable for businesses seeking online success.

Blogs said...

Nice article! Thanks for sharing the post!

Secure your cables with confidence using our Cable Cleats

Blogs said...

This one is a good read!!!

Secure your cables with confidence using our
Shielded cables

Blogs said...

This one is a good read!!!

Create your online booking page and enable customers to book appointments
anytime, anywhere. Customize the page to match your brand, ensuring a
seamless booking experience. Perfect Appointment booking system for small business

Lumaz said...

Thanks for sharing the proxy setup guide! Once your connection is optimized, don't forget to explore Lumaz for smart lighting solutions that can enhance any space.

Blogs said...

Virtual phone number providers are vital for businesses today. Menetalk offers secure, flexible solutions.

Blogs said...

Virtual mobile numbers are a game-changer for startups and small businesses. They offer flexibility, scalability, and professional communication tools without the need for traditional phone systems. If you’re looking for a reliable provider, I highly recommend checking out virtual mobile number. They provide cost-effective features like call forwarding, voicemail-to-email, and call recording, perfect for modern businesses.

Blogs said...

Finding the right virtual phone number provider can be challenging, especially for growing businesses. Menetalk stands out as one of the best virtual phone number providers with their affordable pricing and advanced features like global call routing and analytics. Their solutions can help businesses improve customer communication and streamline team collaboration.