yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] claimui:
I spent a couple of days learning regular expressions (or at least some of them) and throwing together a simpler set of filters to force certain colors on a webpage. With this set, all backgrounds are black, all text is light grey, and links are green.

EDIT: My filters are now included in the force_colors.zip attached in the OP.
[Android Software/Hacking General [Developers Only]] pzumk:
added to

black energy saving android apps for AMOLED screens

:)
[Android Software/Hacking General [Developers Only]] claimui:
I made several updates to the original posts, including a suggestion on how to get Privoxy to start automatically on boot. After going through this whole process, this is a really effective solution. Privoxy starts automatically and invisibly whenever I start up my phone, and all of my webpages automatically pass through Privoxy and get displayed in my preferred colors.

For future tweaking, it would be nice to have a simple shortcut to enable/disable the filtering. (Although honestly I never want to disable it -- I always like my colors better!) Note that you can't simply kill Privoxy because your browser won't be able to find the proxy to connect to. So you either need a Privoxy command to toggle filtering on and off, or toggle the proxy settings to either use or bypass Privoxy.

In the meantime though, I think this still works really well. Hope others give it a try and can improve on the procedure.
[Android Software/Hacking General [Developers Only]] claimui:
Major update: I have finally consolidated all the steps into a small zip file and some simple instructions. You will need root access and a file manager or some basic knowledge of how to get around your phone. Just follow the instructions in the first post and you should be able to get it working very quickly.
[Android Software/Hacking General [Developers Only]] bgx:
Would like to test this but couldn't things to work...

Privoxy now updates to beta2.

Everything I try I get 404 Page can't loaded...

Have changed to localhost and port 8118 but doesn't work...
[Android Software/Hacking General [Developers Only]] claimui:
No need to install Privoxy from the Market. Just follow the instructions in my first post. After you install the Autostart app and put the files in the /data/opt folder, Privoxy will start at the next reboot.
[Android Software/Hacking General [Developers Only]] bgx:
Thx! Think it was a problem with SiyahKernel! After flashing from 2.0b2 to 2.0b3 now privoxy work!

Thx a lot! Have long time searched for something similar!
[Android Software/Hacking General [Developers Only]] dls5375:
when I try to create the folder /data/opt it says it is created but in doesn't show up. also when I create the same folder and then move it to root folder it automatically renames it opt. I'm using root explorer.
[Android Software/Hacking General [Developers Only]] claimui:
In Root Explorer, first navigate to the /data folder, then click the button to Mount as R/W, then create the opt folder. Does that work?
[Android Software/Hacking General [Developers Only]] claimui:
Updated the OP to include some more suggestions for folks who are having trouble finding proxy settings. The basic options are:

1. See if your firmware comes with proxy settings. Under Wireless and Network Settings, look in Wi-Fi settings -> (menu button) Advanced, or Mobile Networks -> Access Point Names.

2. You can also try an app like Transproxy or AutoProxy.

3. Try a browser that supports proxy settings, such as Firefox Mobile with the Proxy Mobile add-on.
[Android Software/Hacking General [Developers Only]] manhattan212:
Nice.

Have you by any chance conducted a battery test or otherwise made any effort to notice the impact of this modification on battery life?
[Android Software/Hacking General [Developers Only]] claimui:
I haven't personally done any battery experiments (at least not for the browser) but this is a good reference: http://xdaforums.com/showthread.php?t=660853

Basically yes, black backgrounds do save battery power on AMOLED screens. Personally I think the difference between 5% and 3% (or 3% and 2% at lower brightness) is not that big of a deal, probably not even noticeable in normal use. But if you want to squeeze the most milliwatts out of your battery then this will help.

To me the main benefit is that black backgrounds are just much easier to read, especially at night, and especially with the deep blacks / high contrast of the AMOLED screen.
[Android Software/Hacking General [Developers Only]] eitama:
Don't need 10 chars for this replay.

AWESOME!

Edit:

Sadly, from the time that passed since I posted this post, I stumbled upon a few annoying bugs.

1. Proccess locked at 50% cpu, (100% of a single core)

2. Some sites just don't work, and then I have to restart the browser.
[Android Software/Hacking General [Developers Only]] bgx:
Yes google mobile site everytime I would like to search something I get this Error:

This page contains the following errors:

error on line 3 at colum 31: AttValue: " or ' expected

Reparse document as HTML
[Android Software/Hacking General [Developers Only]] eitama:
I know regexp pretty well, but Privoxy syntax is a little bit confusing.

I'm trying to figure out the filters supplied by the OP, and they are just too confusing :)

To OP : How do you set the delimiter for the filters in Privoxy?

I know / and | are possible, are you using + for some reason?

All your filters start with s+, what is the + ?
[Android Software/Hacking General [Developers Only]] tamarian:
Great work. Autostart didn't work on my Galaxy Note for some reason.

But maybe changing CSS is easier. This method works on Opera Mobile:

http://xdaforums.com/showthread.php?t=1326434
[Android Software/Hacking General [Developers Only]] claimui:
Hm, I haven't encountered these bugs. I am using the same files that I uploaded in the zip. Does it only happen with certain sites? Maybe I just need to tweak the filters. My regexp is poor so they are very crude, and could easily screw up some sites.

Can you tell me the specific URL? I notice you're on T-Mobile so maybe you have a carrier-specific browser/search settings.

Privoxy syntax is supposed to be like Perl -- well I don't know Perl so I'm just copying what I read. The basic reference is here: http://www.privoxy.org/user-manual/filter-file.html

In my filters, I'm using + as the delimiter. In Privoxy you can use whatever delimiter you want, and it doesn't make a difference (I think). I just copied the + from another filter set -- probably because it's easier to read than / when working with HTML.

The first couple of filters should not be too hard to figure out. For example:

# Set default colors
s+<body+<body bgcolor=black text=LightGray link=LimeGreen vlink=Green+isUg

This just makes sure every <body> tag starts with "<body bgcolor=black text=LightGray link=LimeGreen vlink=Green" (very crude, I know). The isUg at the end are the modifiers:

i = case insensitive matching

s = allow string to span multiple lines

U = ungreedy matching

g = global matching

Two filters substitute a tag with "JED-C-Anchor-color". This is not a valid tag; the browser will just skip it so the effect is basically the same as deleting the tag. Substituting instead of deleting just makes debugging easier. I used "JED-C" because I modified these filters from http://members.cox.net/pu61ic.1inux.dunc4n/software/privoxy.jed

Thanks for the tip! Yeah I know about changing CSS and that would be a better solution. But I don't think there is a way to change the CSS with the stock browser, and some people still like using the stock Samsung browser for hardware acceleration or whatever other reason. But maybe somebody could make a Privoxy filter that adds the same CSS code into all webpages?
[Android Software/Hacking General [Developers Only]] bgx:
Here:

http://www.google.com/m?hl=de-DE&ie=UTF-8&source=android-browser&q=ich+suche
[Android Software/Hacking General [Developers Only]] dhrv:
thanks claimui for your research and efforts! :)

i've tried it and it worked flawlessly (with Opera you have to set the proxy settings in Opera itself -> oper:config).

but then again with Opera it's easier to use a modified User CSS file that allows easy on/off toggling.

nevertheless your solution is working with all other browsers, so great job!
[Android Software/Hacking General [Developers Only]] claimui:
I have updated the Privoxy filters in the original post. Instead of all the HTML/CSS replacement rules, it now has a simple filter as follows:

s@</head>@\n<style type="text/css">\n\
* { background: black ! important; color: LightGray !important } \n\
:link, :link * { color: LimeGreen !important } \n\
:visited, :visited * { color: Green !important } \n\
</style></head>@Uig

Basically this just inserts a small stylesheet at the end of the header of every webpage and forces the designated background/text colors.

This is a lot cleaner and it also fixes some random issues like not being able to see the text in form fields (e.g. Google search box). Some pictures/icons are still being hidden because they use some kind of background image tag. I may look into that if I have more time.

By the way, this change was inspired by dhrv's comment about using a custom User CSS in Opera. I did try Opera and the User CSS is a nice solution (I use something similar on my desktop browsers). However I still prefer the stock browser on my SGS2, so until other browsers support User CSS, I still need to use the Privoxy filters.

Thanks to everybody's input and I hope the new filter is helpful.
[Android Software/Hacking General [Developers Only]] eitama:
Thanks for the update!

By the way, You do know that in Android 4, You can invert the colors in the browser? It's very cool until you get to a black website which is inverted into white ;)
[Android Software/Hacking General [Developers Only]] bgx:
Thank you! I doesn't know that i can invert in ICS. Now i know! It's really cool!

Gesendet von meinem GT-I9100 mit Tapatalk
[Android Software/Hacking General [Developers Only]] claimui:
Thanks to this post from lj_1102, I figured out why the stylesheet was overriding the icons and made a small tweak in the filter. Now icons should show up (as well as other random background images).

eitama, I haven't used ICS yet. Thanks for the tip!
[Android Software/Hacking General [Developers Only]] eitama:
Inverted rendering as I said :)

Downside though, black becomes white... Doh!

And it looks funky.
[Android Software/Hacking General [Developers Only]] claimui:
Thanks! It's great to see that Google added those new accessibility options in ICS. Inverted rendering has been an option in CyanogenMod for a long time so I don't know why it took this long to make it into the stock browser.

But as you mentioned, inverted colors makes webpages look kind of funny, and it has the wrong effect on websites that are already black. So I prefer the proxy filter / User CSS method because that way you can force background and text colors and leave everything else alone.
[Android Software/Hacking General [Developers Only]] jago25_98:
thanks for stock browser invert trick plus opera mobile opera:config trick. a lot can be done with privoxy though. I wonder how much battery privoxy takes and whether that negates use for battle saving purpose. it could auto started on browser start by tasker and then auto stop by exit task if its worth it... if not then it would use more battle starting and stopping.

forcing market to use privoxy could be handy to block images.... images are annoying on gprs slow connections
[Android Software/Hacking General [Developers Only]] Zorigo:
It's not working for me, and i think the problem is at the proxy part. i'm setting my proxy host as localhost and port as 8118 using the Transparent Proxy app, but when i try to turn the proxy on by clicking the on/off button, it says;

Failed to start proxy.sh (sh:applet not found)

Any help please?

BTW, I followed all the other instructions, and set permissions to executable using root explorer, but autostart never ran the autostart.sh script as i never got a prompt after restart asking for superuser permissions
[Android Software/Hacking General [Developers Only]] Infy_AsiX:
Does this work on opera mini?
[Android Software/Hacking General [Developers Only]] dmoses1969:
Set appropriate permissions. (Privoxy and autostart.sh need to be executable.)

What are the appropriate permissions? What should the settings look like. I can get it to work but I must not have the permissions correct. It will execute with root explorer and work but wont work after reboot.

Thanks
[Android Software/Hacking General [Developers Only]] claimui:
Here is a quick guide (not written by me) to setting permissions: http://xdaforums.com/showthread.php?t=1857648

For the executable files, the permissions should look like Fig 2 (all the boxes under the "Execute" column are checked)
[Android Software/Hacking General [Developers Only]] claimui:
I didn't check thoroughly, but I don't think it would work. Opera Mini is specifically based around Opera's own proxy servers. I don't think it allows you to set an alternative/additional proxy.
[Android Software/Hacking General [Developers Only]] Indium Indeed:
This seems like excellent idea, I don't like the way inverted rendering has been implemented in Cyanogenmod and Slim Bean. It is better not to invert the color of images.

Should this work with Slim Bean 4.2.2 build 8 on Samsung Galaxy S I9000 in stock browser (not Chrome)? I follow the guide in the first post and set proxy for mobile APN. I keep getting error "Connection problem. Authentication via proxy server was unsuccessful." I don't know how to confirm, whether autorun was successful.
[Android Software/Hacking General [Developers Only]] Indium Indeed:
I was able to make this work. My problem was related to the Autostart (Root) not running for some reason. Instead I used SManager (https://play.google.com/store/apps/details?id=os.tools.scriptmanager) with create success :laugh:

Edit:

Even better solution is to rename the autostart.sh to "91blackfilter" move it to system/etc/init.d/. The set its permissions to 0755. Set Owner to "0:root and Group to "2000: shell" (maybe unnecessary step).

I attached to this message alternative "force_colors.zip", which uses red color for links for saving battery and night vision.

Thank you so much
[Android Software/Hacking General [Developers Only]] dk34997:
Can you give the steps for creating the folder. I don't understand why I'm having a problem with that simple step.
[Android Software/Hacking General [Developers Only]] M.WeWe:
How to make this effect in tubemate and vidmate
[XPERIA X10 Q&A, Help & Troubleshooting] katak.bali:
hy,

is that possible to put latest MiUI camera to miui 1.8.26 version ???

thank's before :)
[T-Mobile LG G2x] FatalityBoyZahy:
Has anybody else noticed that the CRT OFF animation on CM7 is much faster on the G2x than it is on other phones we've seen with it, such as the MyTouch 4G, Nexus S, and the Nexus One?

Would there be a way to slow it down?
[T-Mobile LG G2x] Deleted member 2747343:
the g2x is faster duh.. lol seriously though idk im thinking it really is because its faster
[T-Mobile LG G2x] mstrk242:
While the g2x is faster, that's not the reason. LG wanted it to appear snappier, so they sped up all the system animations. (Very similar to what you'd do with the spare parts program if you set the transition animations to fast.) This is why there were problems on some of the earlier 2.3.3 leaks with the crt animation effect not working at all. If you speed up the system animations and transition animations in spare parts, it will break the crt screen on and off animations. (With the exception of cm7 based roms. I forget exactly when but a while back they made it so the crt animation was no longer part of the system framework, so adjusting the animation speed no longer breaks it.) I know cm7 re-wrote a lot of the lg stuff, but it's probably remnants from that.
[T-Mobile LG G2x] FatalityBoyZahy:
Now I get it! Thanks for the response, where'd you figure this out? haha
[Samsung Epic 4G Touch] InkPouchMan:
Hey everyone... this phone has gotten excellent reviews, and I was psyched to replace my tired Diamond with it until I saw all the problems people have been having with it (LOS, battery drain, gaming, etc.), especially considering it's Samsung. Thinking of getting a photon or 3vo instead, or just waiting it out for something better (yeah, i know it's always around the corner). But of course the people who have issues are more likely to post than those who don't. So how many of you actually haven't had major problems? Is this thing worth the risk? And does anyone know if TEP would cover this if the problems laid low until after the 14 day trial period?
[Samsung Epic 4G Touch] blahzace:
No issues here. I came from the 3vo and photon, do yourself a favor and get the epic.
[Samsung Epic 4G Touch] cds0699:
I have had it since launch day, no problems, in fact this phone is the only one that I have had that I haven't insta rooted... because it's just bad ass, I'm in no rush :)
[Samsung Epic 4G Touch] skyward01:
I had no problems for 6 days till I rooted, then I had LOS 4 times the first day. Went back to stock kernel and now 2 days in no problems.
[Samsung Epic 4G Touch] Success100:
+1 same here. Well said. Treat yourself to the best mobile experience available

sent from my DAMN phone!
[Samsung Epic 4G Touch] alnova1:
No problems yet either. haven't rooted yet but thinking about it...
[Samsung Epic 4G Touch] craigbailey1986:
No problem here...loving it..
[Samsung Epic 4G Touch] arionfrost:
I have LOS issue at least once a day, but mine can be fixed by going into airplane mode and coming out of it. Don't believe all the hype, this phone DOES have issues, but it's still a great phone.

Also, I would mention check out sprint's forums and android central to get a good overall view of the connection issues on this phone. It seems Samsung has once again released a phone with buggy modem software. It will get ironed out, its just a matter of when, be it 1 month from now or 6 months from now.

Just as a personal example, I get 300-400kbps less on 3g than my girlfriend gets on her evo 4g in the same exact spot, using speedtest.net app at the same exact time. I have repeated this test multiple times at various spots in my city just to confirm.

I hate to be a naysayer, I love the phone and don't intend on returning it. But keep that in mind, you will be getting a phone that is less than perfect on day one. Once we get an actual update and ruu from Samsung, then the real Roms and Kernels will start rolling out. For now, we are just playing a waiting game it seems.
[Samsung Epic 4G Touch] geekaren:
My experience as well.... may just be coincidence, but no problems while unrooted.
[Samsung Epic 4G Touch] LouieGrandie:
I love it when people post " I was fine until I rooted and then all these problems, what's wrong with the phone." Well duh have you ever thought it was your rooting.

Have had it since day one. No real problems to speak of. Some people are just way too picky. Talk with a non-geek about the phone and there is nothing wrong, talk with a geek and there are all sorts of nit pick. Honestly some of these people are so anal it makes me wonder. The Epic 4G Touch is a great phone with a lot going for it. Had a Photon and that phone had a lot of issues that prevented it from fulfilling it's most basic purpose, to send and receive phone calls. *ugh*
[Samsung Epic 4G Touch] _MetalHead_:
Ive had this phone since day one, haven't had a single issue with it. No LOS, no gaming bugs, no force closes, nothing. Battery life is nothing short of stellar, and overall performace is pretty much without parallel in the mobile world. This is easily the best phone in the us market right now and you'll be extremely happy with it should you decide to get it. I had an EVO 3D for a month and absolutely HATED it. Get the ET4G, you won't be sorry.
[Samsung Epic 4G Touch] Econ212:
I have had the phone for 8 days now, I am impressed with the battery life, I leave it on wifi all day long at work and the phone roams with 1 bar of signal. This building is terrible as far as cell service goes. Even so, I leave work and my battery is ~ 40-50%. I usually unplug it around 4:00am and leave work at 5:30pm. I did get the no smoking circle yesterday but I was in the basement of our library, I'm pretty sure that wsa legit and my signal came back when I walked outside. This phone is running phenominal for me, it is by far the best phone I have ever owned or played with.

I went from: POS Crackberry (Curve 8320), MyTouch 3g, Samsung Moment, Evo Shift, E4GT
[Samsung Epic 4G Touch] ericizzy1:
have the phone since day one, no problems at all. first smartphone that has no issues for me. and its fast.
[Samsung Epic 4G Touch] Khilbron:
Same for me. Unrooted zero issues great battery life super fast.
[Samsung Epic 4G Touch] Dchibro:
No issues here since purchase on launch day. Not one single LOS, good signal strength in the areas I frequent here in San Diego, respectable 3G data speeds by Sprint standards, excellent battery life, no unexpected heat, nothing.

14 days is tomorrow, so I'm expecting the thing to completely friggin explode on Saturday. I've never had a smartphone run this well out of the box. I'm a bit floored to be honest.
[Samsung Epic 4G Touch] lopezpm:
Get it. I'm coming from Evo3D (Evo and NS4G before that). It it well worth it. I haven't had an issue with it at all. It is the only phone I have had that I have not felt the need to root....yet.
[Samsung Epic 4G Touch] MoMatt:
No issues here save for a WiFi connection that dies every now and then, but I think it's an issue with my router.

Otherwise it's by far the best phone I've ever used. It just works.

Still stock, haven't found an overwhelming reason to root.
[Samsung Epic 4G Touch] dkotoric:
I have to agree with everyone, i have had like 20 different phones this year and all have been rooted the day i got them except this one, its just so damn fast, but i expect that will change omce cm7 is out for it
[Samsung Epic 4G Touch] Sean1208:
I've yet to encounter a single problem with this phone. First time I haven't been rooted within days of buying one too. It really amazes me that I'm satisfied with a smart phone right out of the box.
[Samsung Epic 4G Touch] walord:
This phone has worked perfectly out of the box. So well that there's almost no point in rooting or modding it. Battery, GPS, connectivity, everything...

In fact, I didn't have any issues until I rooted it and installed a modded ROM. After that random LOS after resuming from sleep. Guess what? Returning to stock eliminated that problem. So the issues people are facing are from messing around and modding things not from the hardware or the stock software.

Anyway, now I'm on the stock kernel with root access without issues and I'll probably stay this way for a while until a nice stable rom comes along
[Samsung Epic 4G Touch] wase4711:
me too!!:eek::eek:
[Samsung Epic 4G Touch] mrpickem:
No problems here, rooted with stock (bubby) rom.
[Samsung Epic 4G Touch] RayLancer:
I have a dodgy power/sleep button on mine. I may just be paranoid. But its a great phone. I wish Verizon had this so I would've stayed with them.
[Samsung Epic 4G Touch] interhawk1:
No problem at all even after root, never experienced Los yet and its nice and fast battery is increased slightly with new kernel as well. I'm a happy camper
[Samsung Epic 4G Touch] DarkPhoenix:
Had mine since launch day and haven't had any problems. I'm not rooted.
[Samsung Epic 4G Touch] dtr145r:
i have a problem with my external sd card unmounting by itself sometimes