yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] abo hani:
That's my thought, But not adding it, Marshmallow users gonna have problem in Auto Connect mod.

For your trouble, that's because you're not using any lockscreen, the enable when unlocked, detects the unlock event, So no lockscreen = No Unlock event detect .

Sleep period for what ? Auto Connect? because Basic & Low Strength don't turn on WiFi, they disable it in certain conditions, but Auto Connect enable it, Lock Mods, Timers .

If you suggest " don't turn on wifi if Airplane mod is on" feature, that's will be a bit complex if i make it for all mods, please explain more.

Glad to hear that mate!

Yes you can translate it, the Strings available in the Attachments .
[Android Apps and Games] Darkapolo:
Hi, I am talking about Auto connect, if you set it on and you put airplane mode at night, automatically WiFi connects and if we have a sound profile the notifications came and can awake us.

Enviado desde mi Aquaris M5 mediante Tapatalk
[Android Apps and Games] abo hani:
That's a good idea, gonna work on it.
[Android Apps and Games] abo hani:
Yo Guys, the new update is here, And here's the changelog :

New Languages supported : Arabic, German, Romanian, Brazilian Portuguese, Spanish .

Fixed the following bugs :

Basic Saver, Low Strength Saver, Auto Connect not working when "Lock" option isn't enabled .

Enable when Unlocked not working .

Disable when Locked not working .

Random Auto Connect Timer not working .

Basic Saver sometimes disconnect randomly .

Saver & Auto connect drain battery, -reduced the drain- .

Crash in Auto Connect method in some devices, networks list returning "null", fixed .

Crash in some devices on marshmallow version .

Added new features :

Ability to set up to 3 Network Names .

Airplane Option in Auto Connect - Explain : Sometimes the user don't want to enable WiFi / Connect to any network, when airplane mod is enabled, So here's the option to rescue !, it will disable the Auto Connect option, and will automatically re-enable when the user disable Airplane Mod . [MENTION=5084111]Darkapolo[/MENTION]

What was requested :

ON/OFF Status notification ( will reduce battery more, sorry! ) .

Ditch the "re-enable" when device is rebooted (I've made it, and caused a problem in alarms and mods, So it's better to re-enable them again after rebooting ) .

Note :

Marshmallow powered devices are crashing when Auto Connect method is launched, why ? because it needs LOCATION permission to fetch networks list, which i believe will consume more rather than reduce battery saving .

Thanks to :

[MENTION=713592]phonexpert_alex[/MENTION] for Romanian Translation .

[MENTION=6126659]PDesire[/MENTION] for German Translation .

[MENTION=5058498]Porpet[/MENTION] for Brazilian Portuguese Translation .

[MENTION=7181926]juanmixto[/MENTION] for Spanish Translation .

Please, test and report back, So i can make this version live on Google Play.
[Android Apps and Games] barisatay:
Screenshots?
[Android Apps and Games] abo hani:
Google Play link.

If you mean for the new version, nothing changed in the UI expect for Airplane mod, and Network Names .
[Android Apps and Games] Porpet:
[MENTION=5097981]abo hani[/MENTION], you forgot to update the strings. Anyway, there's the missing pt-br translations.

<string name="airplane_mod">Modificação Para Modo Avião</string>
<string name="airplane_mod_summary">Ligado/Desabilita \"Conexão Automática\" se modo avião estiver ativo. Desligado/Ignora o estado do modo avião.</string>
<string name="network_names">Nomes de Rede</string>
<string name="first_network">Primeira Rede</string>
<string name="second_network">Segunda Rede</string>
<string name="third_network">Terceira Rede</string>

By the way, how would rather receive the translated strings? I assume you can go crazy if each and everyone decides to send the files in different ways.
[Android Apps and Games] The Bankshooter:
Hey friend im working with the spanish transation :D

---------- Post added 20th January 2016 at 12:05 AM ---------- Previous post was 19th January 2016 at 11:19 PM ----------

https://drive.google.com/file/d/0BzEhfqDLhS0abmJxNmlQZG1vajg/view
[Android Apps and Games] abo hani:
Hello, thanks for translating but it's already available, I've uploaded the Spanish strings, you can give them a look and correct the wrong ones, and post the corrected ones ( Attachments ) .

Thanks .. but Wait, what ? I've added them and translated the extra strings using "Google Translate" :3, Here's the translated ones :

<string name="firstnetwork">Prsimeira Rede</string>
<string name="secondnetwork">Segunda rede</string>
<string name="thirdnetwork">Rede do Terceiro</string>
<string name="networknamescat">Rede Nomes</string>
<string name="airplane">Avião Mod</string>
<string name="airplane_summary">ON / Disable Auto Connect Se o Modo Avião é activado, OFF / Ignorar Avião Estado</string>
[Android Apps and Games] abo hani:
Yeah, it's better, i will just post the new strings when i add any.

For the app, i'm gonna give it 2 days testing, and then i'm gonna release it on the store, getting a lot of bad reports of non-working list, and wanna make them happy :highfive:

As always, any suggest, report .. don't be shy and post them.
[Android Apps and Games] Jostian:
great app, one small bug, I have selected option for wifi to be turned off on lockscreen but the wifi does not turn off, just stays on, Moto X 2014 running Nexus Experience ROM, just wanted to let you know
[Android Apps and Games] abo hani:
It will turn it off after 5 minutes delay, I'm gonna add an option to modify the delay after i release this update.
[Android Apps and Games] Luke Kynix Sahre:
Wow this help me a lot with the bugs of drain battery with WiFi on in cm 13
[Android Apps and Games] abo hani:
Just added the documentation in the #2, Google Play release date is tomorrow.
[Android Apps and Games] garva1:
But the can be improved....
[Android Apps and Games] Fir3lordZuk0:
The new version is giving me some problems..WiFi disconnects automatically after around 10 seconds even with the screen ON. Now the weird part is that it works fine at my home buy does not work at my office. I thought it might be happening because of low strength mode but that's not the case, I checked with every mode and it is happening with all modes..

Can u tell me how can I capture logs so that u can analyze the problem?
[Android Apps and Games] abo hani:
What mods did you try ?

As the documentation said, Basic Saver, and Auto Connect check for 2 conditions, So it might be a slow internet connection that returned "false" for isOnline method.

You can do the following, open the app, connect the device and take a logcat and then start the mods, wait about 20 seconds and stop the logcat .

Filter the logcat by looking for " com.abohani.wifisaver " package using Notepad++ and upload it as an attachment.
[Android Apps and Games] abo hani:
Update released!

Changelog as posted 2 days ago, You can download the update from Attachments, or wait about 2-3 hours for the update on Google Play .

Also, the new strings are provided .
[Android Apps and Games] ||BeTo||:
Great ;)
[Android Apps and Games] ratbags:
Should auto populate network names so we don't have to manually type them in.
[Android Apps and Games] Fir3lordZuk0:
I used lock mods & main mods.

Anyways i will test it again and attach logs on Monday.
[Android Apps and Games] cyaclone:
I'm on 5.1.1 and the clock is a 12 hour setting and I can not find any way to change the AM to PM?
[Android Apps and Games] abo hani:
Please provide a screenshot .

A "test" update in the upcoming days, some of the users experienced draining in the battery, even though the app doesn't contain any background services, only alarms, So because of that I'm going to see what's going on, will notify you soon .
[Android Apps and Games] abo hani:
Hello everyone!

I've made a big enhancements on Basic Saver code, and on Lock option, And before doing the same for the rest, i'd like some testers on Battery Draining .

I've got a lot of reports about it.

Anyone want to test, please PM me or just leave a replay, test version will be only for selected people, Also testing means feedback about the battery usage and testing the basic saver mod with and without Lock option .

Regards.
[Android Apps and Games] abo hani:
Thanks to all testers, I've managed to reduce the draining a lot.

The app is now updated, Will be available in the store in 2 days, So basically this is a test version, I've done the following :

- Solved Alarms looping after being cancelled .

- Solved Battery Draining .

- Solved Sometimes Locked/Unlocked Lock Mods being disable after a period of time .

- Added a custom delay for every Mod .

- Solved FC in some devices .

- Fixed FC in Random Auto Connect Mod .

- Fixed FC in Marshmallow devices when using Auto Connect mods .

- Fixed crash in Samsung 4.2 Devices .

Test version is in the attachments, Feedback is appreciated .
[Android Apps and Games] Darkapolo:
I can't see The name of the app in the app drawer, only the icon. The Spanish translation has some minor errors too.

Enviado desde mi Aquaris M5 mediante Tapatalk
[Android Apps and Games] abo hani:
I'll update the translations , And may add more .
[Android Apps and Games] abo hani:
Thanks again for the reports, I got positive reports Vs the previous version, Just published it on the market, It's available via Attachments .

The app needs some translation enhancements on German and other languages, If you can help in correcting, Please download the strings .

The changelog is the same as the previous one.
[Android Apps and Games] ratbags:
Thanks for the updates! But please auto populate the auto connect network names as most people including me won't bother keying them in or even know how to find them.
[Android Apps and Games] pirasalbe:
Is it still necessary to re-enable the options when my device is rebooted???
[Android Apps and Games] abo hani:
Unfortunately Yes, Gonna work on it in the next update .

Specific Auto Connect with Specific name is better, "Populating" the recent / most connected networks is bad thing to do, As it might not be the network you want, Or the network password is changed, Plus you won't have a networks list of "try to connect", You will only have one, So Manual adding is better.
[Android Apps and Games] ratbags:
Ok, not auto populate as such but I recommend you list the networks and maybe have a check box next to them for user to select from.
[Android Software/Hacking General [Developers Only]] Paget96:
* Your warranty is now void.

* I am not responsible for bricked devices, dead SD cards, nuclear disasters

* Please do some research before using this mod!

* YOU are choosing to make these modifications,

* If you point the finger at me for messing up your device, I will laugh at you.
​

An ad blocker that uses the hosts file. The hosts file contains a list of mappings between hostnames and IP addresses. When an app requests an ad, that request is directed to 127.0.0.1 which does nothing. There are options to run a web server to respond to blocked hostnames and to direct requests to the IP address of your choosing. You can download hosts files from the app but it is possible to use your own and to add certain sites to the white- and black-lists.
​

========= Advantages =========​

No background processes

Using less space than app (file size: ~7kb)

========= Requirements =========​

Busybox v1.24.1(Recommended stericsons busybox HERE)

Minimal ~5MB free space on system partition for hosts file

How to use

1. Download adblocker.pdf from Android File Host

2. Remove .pdf extension

3. Copy adblocker file to /system/bin

4. Set permissions to 755

5. Open terminal and type

su
adblocker

PAYPAL users can donate me using this link

http://xdaforums.com/donatetome.php?u=5514152

If you have issues, download paypal app from playstore, that will work :)

For US users:

"I could not use your paypal donation link or url as you already know as it's not possible to send a donation from USA. I logged into my paypal account and used the option to pay for goods or services to send you the funds."

Thanks a lot, guys

XDA:DevDB Information

AdBlocker, Tool/Utility for all devices (see above for details)

Contributors

Paget96

Source Code: https://github.com/Paget96/AdBlocker

Version Information

Status: Stable

Current Stable Version: v1.0

Stable Release Date: 2016-01-01

Created 2016-01-01

Last Updated 2016-01-01
[Android Software/Hacking General [Developers Only]] Paget96:
ANDROID FILE HOST

​
[Android Software/Hacking General [Developers Only]] Paget96:
​

v1.0 - initial version
[Android Software/Hacking General [Developers Only]] core7x:
Nice. Thanks for your work
[Android Software/Hacking General [Developers Only]] Paget96:
Thank you too :)
[Android Software/Hacking General [Developers Only]] xenreon:
Another to the list of your great creations XD
[Android Software/Hacking General [Developers Only]] Caio99BR:
Wow, simple and efficient!

Thanks for this :D.
[Android Software/Hacking General [Developers Only]] Paget96:
Thanks guys ;)

I hope that this will be useful :D
[Android Software/Hacking General [Developers Only]] xenreon:
Maybe I'll include in my rom after exams
[Android Software/Hacking General [Developers Only]] Paget96:
Nice :D

Thank you :D
[Android Software/Hacking General [Developers Only]] LordArcadius:
That's something cool again! Once again you rocked that man. Keep your good work up always. Btw wishing you and whole XDA family a very happy new year and also congratulations for getting 14K+ Thanks. [MENTION=5514152]Paget96[/MENTION] bro don't you think that its the time for your RD title too? xD
[Android Software/Hacking General [Developers Only]] newintage:
not useless but bugged
[Android Software/Hacking General [Developers Only]] Paget96:
Thanks mate :D

I wanna wish you all the best too :D

For RD i need to work much more :)

What bugs ?? :)
[Android Software/Hacking General [Developers Only]] pavlepiramida:
Keep getting wget error :(
[Android Software/Hacking General [Developers Only]] Paget96:
Download busybox from the OP :D

That is main thing ;)
[Android Software/Hacking General [Developers Only]] pavlepiramida:
Yup did it and still getting wget error,I'll clean flash rom all over again,maybe it'll resolve the problem.

Update

Did clean flash,reinstalled BB and now it works flawless (I might have been tampering wit xbin too much and MIGHT have broken some BB links)

Srecna nova godina da si ziv zdrav i prav hahahh prav kontas hahhah!!! <3
[Android Software/Hacking General [Developers Only]] newintage:
You're modifying hosts file right ?

There are 4 sources you used. All of them having same adresses to block. (They are not 100% same but they are having same sites to block.)

So there are double even triple entries on hosts file which causes slow downs & lags.
[Android Software/Hacking General [Developers Only]] Paget96:
It could be ;)

Hvala, takodje :D sve najbolje :D

Yes, modifying hosts for sure.

If you check source code on GitHub you will see that script by it self remove double lines, also remove empty lines and add one empty at the end of a file ;)
[Android Software/Hacking General [Developers Only]] newintage:
Impressed
[Android Software/Hacking General [Developers Only]] toole:
Anyone tell me where to set permissions to 755
[Android Software/Hacking General [Developers Only]] Paget96:
You can do that from terminal emulator ;D

su
busybox chmod 755 /system/bin/adblocker

or you can use any root file manager, go to file properties of adblocker and you will see permissions, 755 must to look like this

xxx
x-x
x-x
[Android Software/Hacking General [Developers Only]] aleem77:
[MENTION=5514152]Paget96[/MENTION]

Do i must disable adblock in L Speed?
[Android Software/Hacking General [Developers Only]] Paget96:
L Speed users doesn't need to use this adblocker because it's the same :D I just made standalone adblocker for users who need only adblocker :)
[Android Software/Hacking General [Developers Only]] aleem77:
Ok, thank u Paget96:)
[Android Software/Hacking General [Developers Only]] Paget96:
No problem :D
[Android Software/Hacking General [Developers Only]] toole:
[MENTION=5514152]Paget96[/MENTION] thank you for this beautiful stuff! THANKS!!
[Android Software/Hacking General [Developers Only]] Paget96:
Thank you too for using this "beautiful stuff" ;)
[Android Software/Hacking General [Developers Only]] Corduroysack:
Did away with adblock app and used this [MENTION=5514152]Paget96[/MENTION] it does exactly what its meant to mate cheers :D
[Android Software/Hacking General [Developers Only]] Paget96:
Yea, it's the same thing inside the script ;)
[Android Software/Hacking General [Developers Only]] kecskesajt:
Using root browser, tick the boxes like an upside down U

√ √ √

√ x √

√ x √

So you have to left unticked the middle-bottom two.

---------- Post added at 07:55 PM ---------- Previous post was at 07:53 PM ----------

Great job, removed ads, except one app: 9GAG

It show ads.

Whatever, thank you!
[Android Software/Hacking General [Developers Only]] Paget96:
Good :D

Sources get updates every few days :)
[Android Software/Hacking General [Developers Only]] Ohhdayumm:
The ads work on my browser but not in youtube. Any ideas how to fix it?
[Android Software/Hacking General [Developers Only]] Paget96:
Please make a screenshot. :)
[Android Software/Hacking General [Developers Only]] andynroid:
You mean the ads played before the selected video ?
[Android Software/Hacking General [Developers Only]] Ohhdayumm:
Yea the ads bwfore the vid starts playing and ill post acreenshot asap
[Android Software/Hacking General [Developers Only]] Ohhdayumm:
Here is the picture

Its after setring the right permissions in file explorer and starting the adbloxk and rebooting phone after.
[Android Software/Hacking General [Developers Only]] nijawang:
When I enable adblocker script, I got errors as attachment.

Any suggestion to fix these errors?

I have set adblocker to 755, update BB to last version as OP.

Thank you.
[Android Software/Hacking General [Developers Only]] kecskesajt:
When this problem appeared for me, I granted SU permission then it worked for me.
[Android Software/Hacking General [Developers Only]] nijawang:
I have already updated to BusyBox v1.24.1-Stericson, but still the same errors.

How to grant SU permission when execute adblocker script?

Thank you.
[Android Software/Hacking General [Developers Only]] kecskesajt:
1. Enter in terminal

2. Enter: su

3. Enter: adblocker
[Android Software/Hacking General [Developers Only]] Phuclun510:
Just install and workwell

I'm using your Wifikey - L Speed App - AdBlocker !

Paget fanboy :D :D :D
[Android Software/Hacking General [Developers Only]] nijawang:
Thanks.

I just forgot to su...:p
[Android Software/Hacking General [Developers Only]] patalao:
There should be an option to whitelist an address.

If you implement this on your LS app consider to have a whitelist option
[Android Software/Hacking General [Developers Only]] kato7youknow:
great work👍😃

Thank you for this info.

127.0.0.1. s0.2mdn.net

127.0.0.1. googleads.g.doubleclick.net

127.0.0.1. ad.doubleclick.net

127.0.0.1. files.adform.net

127.0.0.1. secure-ds.serving-sys.com

Add this to your host file

This will block ads in YouTube and google ads. Hope this helps you.
[Android Software/Hacking General [Developers Only]] stanguay:
Does not work for me, I still had the 5s ads in youtube app.

Any idea how to remove ads in youtube app ?

Thanks
[Android Software/Hacking General [Developers Only]] kato7youknow:
do not know about that.

Sorry I don't know.
[Android Software/Hacking General [Developers Only]] harsh.:
+1

sent from sprout4?
[Android Software/Hacking General [Developers Only]] 19oktay98:
Theres an module in xposed for YouTube and it works very fine.

Inviato dal mio LG-D722 utilizzando Tapatalk
[Android Software/Hacking General [Developers Only]] LoverBoy2415:
Its working like a charm... [MENTION=5514152]Paget96[/MENTION] bro ..any future updates regarding Adblocker ? ...
[Android Software/Hacking General [Developers Only]] andynroid:
[MENTION=5514152]Paget96[/MENTION] any updates to this as I not able to get connected to the hosts anymore
[Android Software/Hacking General [Developers Only]] toole:
It's working fine. Just updated now
[Android Software/Hacking General [Developers Only]] andynroid:
My bad....thanks dude it could have been my ISP [emoji28]
[Android Software/Hacking General [Developers Only]] Asiier:
Hey guys,

I'm getting this error

How do I fix it?

Thanks :)
[Android Software/Hacking General [Developers Only]] Paget96:
Check free memory on /system partition, you need to have 10mb at least :)
[Android Software/Hacking General [Developers Only]] Asiier:
I have like 1.10Gb free
[Android Software/Hacking General [Developers Only]] Paget96:
Hmm, are you using busybox by stericson?
[Android Software/Hacking General [Developers Only]] LoverBoy2415:
Have You Installed Busybox ? - Stericson or Other Busybox ..I've Had This Same Issue When I Installed A Busybox(1.24.2) Zip Via Recovery ..

After I Removed That Busybox Zip & Installed Busybox by Stericson(1.24.1)..Now All Solved..This Happened a month before..

Now Using Busybox by Stericson (1.24.2) ..No Problems here..
[Android Software/Hacking General [Developers Only]] Asiier:
Oh dammit the Busybox

As far as I know my Kernel needs to use Dorimanx Busybox (v1.25.0), will ask the developer If I could install Stericson

Although, Is there a way to use Dorimanx Busybox (Like changing command or something)? Because I'm not sure If my kernel would work with other one
[Android Software/Hacking General [Developers Only]] toole:
Try using whatever busybox you got. Then make sure you install busybox to /system /bin
[Android Software/Hacking General [Developers Only]] Asiier:
Okay, I actually got it done

Now is working perfectly fine :D
[Android Software/Hacking General [Developers Only]] Paget96:
Awesome ^^
[Android Software/Hacking General [Developers Only]] LoverBoy2415:
;) :D ..
[Android Software/Hacking General [Developers Only]] ViTAMiNCHEG:
nice, simple and cool app.
[Android Software/Hacking General [Developers Only]] TecknoFreak:
It doesn't work, one I still get adds, 2. Settings will not stick
[Android Software/Hacking General [Developers Only]] toole:
How did you install it?
[Android Software/Hacking General [Developers Only]] TecknoFreak:
Ops instructions
[Android Software/Hacking General [Developers Only]] toole:
Maybe you didn't give the adblocker the necessary permissions.
[Android Software/Hacking General [Developers Only]] memooffon:
Work fine for my OPPO find 7 with CM13 based ROM

Thank you.
[Android Software/Hacking General [Developers Only]] duck'man:
Woah nice, will give it a try to my phone :D (y)
[Android Software/Hacking General [Developers Only]] Paget96:
Thanks ^^
[Android Software/Hacking General [Developers Only]] Paget96:
This script will be moved soon as a L Speed app plugin.

Thanks
[Android Software/Hacking General [Developers Only]] duck'man:
Thank sir, its work :D

Sorry for my f*ckin english XD
[Android Software/Hacking General [Developers Only]] harsh.:
:o yo thank you [MENTION=5514152]Paget96[/MENTION]

:D beauty and beast together :laugh:
[Android Software/Hacking General [Developers Only]] dnesh.sharma:
I am using CM 12.1 rom on my phone. I installed busybox of stericsons on system / bin. I copied adblocker file to system/bin and gave permission to 755. But I got wget error (can't execute SSL_helper) while updating the adblocker via terminal app. Screenshot has been attached. Hope to get positive response to find what is the reason behind it.
[Android Software/Hacking General [Developers Only]] Paget96:
Huh, i didn't update it for a while, planing to move it into an app :D
[Android Software/Hacking General [Developers Only]] harsh.:
Please please add it to Lspeed :laugh: :D

^~^
[Android Software/Hacking General [Developers Only]] rony raj:
very nice that is
[Android Software/Hacking General [Developers Only]] toole:
Please do not move it into an app. You can create an app version and also continue the support for the terminal installation version. IMO it's better off as it is now because of simplicity. Just update it. Thanks for your work