[HOSTS][ADBLOCK][ROOT][SCRIPT] DiamondJohn Host Builder Script - Android Software/Hacking General [Developers Only]

This script creates a host file based on multiple host sources, with 2 levels of fallback. ie Mirrors, and last known good download
Code:
Your warranty is now void
I take no responsibility for any adverse effects to your phone or you love life
Do not apply / use this mod if you don;t understand it, or there is any risk for damage top your device or well being
YOU are responsible for what YOU do with YOUR own device, the personal information you share, and the processes you follow in regards to any suggestions, mods, or shortcuts offered here on Xda. Please be aware of the potential security and loss of privacy issues sharing information like this can produce.
Remember, each user is solely responsible for everything YOU do with YOUR device, and for the safe keeping of YOUR private information.
Requirements (for running on android)
root​busybox (I have only tested with stericsons busybox)​​How to use.
NB: This script can be used on the device OR on Linux​To run from Android​Flash the install ZIP (or for Advanced users, extract the containing zip to your desired location, and change the config in "shared_constants.inc")​Open a terminal and type​
Code:
su;[/INDENT][/INDENT]
[INDENT][INDENT]sh /data/local/DiamondJohnHostManager/download_hosts.sh;
copy the /data/local/DiamondJohnHostManager/hosts file to /system/etc/hosts​​alternatively, I personally have actually symlinked the hosts file so I do not need to flip my system partition between r/w and r/o every time I wish to update my hosts file. (yes, I understand the risks of having a system file on a write-able partition)​​
Code:
FINAL_DEST=/data/local/DiamondJohnHostManager/hosts;
LINK=$(ls -l /system/etc/hosts | grep "-> $FINAL_DEST");
if [ "$LINK" == "" ]; then
$bb mount -o rw,remount /system;
if [ ! -f $FINAL_DEST ]; then
$bb echo "127.0.0.1 localhost" > $FINAL_DEST;
fi;
$bb ln -sf $FINAL_DEST /system/etc/hosts;
$bb mount -o ro,remount /system;
fi;
If you run the above successfully, every time you update the script, your live host file will be updated. On my phone it means I don't have to reboot after each update.
To run on Linux
Create the directory​mkdir -p ~/android/DiamondJohnHostManager;​expand the containing zip into the folder​open a terminal​run:
Code:
bash ~/android/DiamondJohnHostManager/download_hosts.sh;
​Some of the features:
1. combines multiple hosts files. see/edit the contents of the file: /data/local/DiamondJohnHostManager/hosts-sources.txt​2. You can edit which (see point 1)​3. On linux, I had 110 host sources, and it generated a 98MB hosts file with over 3.4M lines/domains, in <8min​4. It allows "fallback" host sources. ie mirrors in case the original source fails. Separate each mirror with a "|". NB: They don't actually have to be a "mirror", but can simply be an "alternative" if the previous one fails.​5. You can have multiple mirrors/fallbacks​6. If all the mirrors fail for a line item, it will then fallback to the last known successful downloaded host for that line​7. handles multiple formats. Some of which:​
Code:
[/INDENT][/INDENT]
[INDENT][INDENT]0.0.0.0 www.domainname1.com[/INDENT][/INDENT]
[INDENT][INDENT]127.0.0.1 www.domainname2.com[/INDENT][/INDENT]
[INDENT][INDENT]www.domainname3.com[/INDENT][/INDENT]
[INDENT][INDENT]
8. You can modify the whitelist and blacklist. NB: They are explicit hosts, not regex patterns ie no "*" in the domains.. Multiple files for each are supported; so you can logically group them.​9. if a host is "wrongfully" blocked, you can check which source is the culprit. see the "previous" directory, and note the numbers relate to the host_sources.tct file, and start as the first line being 0 (commented lines are not counted)​10. A log is provided in previous/DiamondJohnHostDownload_log.txt the top section is comma seperated and can be pasted into excel and converted to columns, The following section provides details on each individual download / source​11. If you make ANY changes to the host_sources.txt file, all the previous become invalidated.​​Some FYI:
I Run with the default 5 hosts sources in the install zip, and it takes 100-120 seconds to update​​To monitor the end results/output, you can also use my other app TeMeFI https://forum.xda-developers.com/android/apps-games/app-temefi-comprehensive-documentation-t3806260​you can find the method under: Various Ungrouped Extras>Hosts File Check​​
The following script is flashed from within recovery. You could also simply manually expand the zip contents to your desired location and edit the "shared_constants.inc" file appropriately
Download: 201901251428 DiamondJohn host download script installer.zip
XDA:DevDB Information
DiamondJohn Host Builder Script, Tool/Utility for all devices (see above for details)
Contributors
DiamondJohn
Version Information
Status: Stable
Current Stable Version: 201811281200
Stable Release Date: 2018-11-28
Created 2018-11-27
Last Updated 2020-05-14

Reserved

Reserved

New build!
New version. Reasonably minor changes. I test with 100+ hosts (on a Unix server), and one of the new ones wasn't downloading correctly in the previous version.
No need to uninstall previous version, simply7 flash the new one in TWRP. HOWEVER, if you are using a custom "host_source.txt", make a backup of your file first, as it will be overwritten. The file format will remain the same. It would possibly be prudent to also make backups of your blacklist and whitelist files as well, if you have modified them.:good:
See OP for download:

My personal host sources
This is an FYI, NOT a recommendation.
I have been using the following list of host sources probably since the last release. I have not noticed any ads, even when I forget to do it for a week or more. I have been holding off to see how long it would last, and its now been since 17 Jun 2019 of my last re-fresh/re-build. The following list creates a file of about 2.4MB with 72K lines, and takes < 2 minutes on my phone to build (quad core 2.3GHz 2GB Ram, 2013 S4, ie not a powerhouse by today's standards) I built the list way back based on the smaller file sizes which appeared to have a higher change of hosts; ie they seem to catch the latest/newer bad hosts. By using smaller file sizes, it also takes a short time to rebuild the hosts file.
I do not do any social media, so I also block sites like facebook and twitter in my black lists.
In the attached list, apart from "host_sources.txt", if it does not have "whitelist" in the title, I use it as a blacklist.
NB: The one labeled "stop_youtube_ads.txt" is not really to stop ads in youtube, but its one I found on line that does contain a list of advertising hosts.

Whoops....
Sorry, I must of accidentally deleted the install zip file from my DropBox account.
Sorry.
Its now updated and available for download in the OP :good:
https://forum.xda-developers.com/an...osts-diamondjohn-host-builder-script-t3872728

A way to run the script using a UI
It just occurred to me. I have another app that:
1. Makes it easy with a UI to execute the script.using a menu
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
2. Reports on details of your host file, including how old it is
3. Move common features into a quick and handy location
(see the first image)
The app is called TeMeFI:
https://forum.xda-developers.com/android/apps-games/app-temefi-comprehensive-documentation-t3806260
To set up the above, you need to:
1. Tell it where to find the script
This is done using a shell command (or you could manually edit it with a text file editor)
echo "/sdcard/TeMeFI/scripts,/data/local/DiamondJohnHostManager" > /sdcard/TeMeFI/.config/USER_SCRIPT_LOCATION;
Its basically a text file with a comma separated list of paths of where script files are placed.
But more on that later...
2. To view extra details regarding your host file, you can find that under the menu:
Various Ungrouped Extras>Host file check
3. Now, to place the lkast run script under the Favourites menu (which is straight ioff root, so you do not need to hunt and peck down the menbu, which will be more cumbersome for the running of the host building)
After you have run a method, if you click the menu button (hamburber on the far left), that opens the fly out menu, with the last icon on the far right being a pencil. If you LONG press the pencil, it will ask if you wish to save it as a favourite. Click Yes.
It will now appear under Favourites menu, however, it will be poorly named. Got to home (the home image in the fly-out menu) and then go into TeMeFI Configuration>Manage Favourites>Definition Details (Re-name)
Once in there, the method should appear at the top of the list (the only one if you just installed). Now, if you long press and select rename, you can Enter something like "Host File Check"
Next, we will take advantage of we did for number 2 above.
Go into Dynamic Lists>Run User Scripts
For me, I have a lot of scripts and paths that are searched, so my list os long. To filer it down, LONG CLICK the X icon on the far left (yes, the close button, but you long click it). This enables you to filter done the list (if yours is also long). Type in "download_host". This should get you down top a single menu item. Now, click on that, and it will rebuild your host file.
After running the script we will save this off as a favourite also, as above (long press the pencil icon)
Now go back into renaming as explained above, and call it something like "Rebuild host file"
So it could look something like the following. Note that my favourite list is pretty long, so you would only have the two items.
Two more settings but just for visual sake for my preference:
1. Set the toolbar to be at the bottom
TeMeFI Configuration>Default Startup Config>Toolbar at Bottom
2.Go to a dark green CRT screen
TeMeFI Configuration>Default Startup Config>Results Screen Colours>Green CRT Results Screen

updated the expired link in the OP for download. oops. sorry.
Why didn't anyone tell me?!

*delete*
ooops... realised the same info was one post up...

FYI:not that i have any "special" knowledge you don't, but my current hosts list is attached.

To take a closer look at this has been on my to do list since you mentioned it to me months ago. Thanks for the reminder on the other thread...
 

Related

SU File Manager & Terminal (SUFBS) **Update**

New App on market
Market Name: SU File Browser & Terminal
Developer: Protocol - X
Search for SU, Root, or pub:"Protocol-x"
Or click and or Scan this image if u have the reader installed on your Android Device.
Currently supports normal file browser commands: cut, copy, paste, rename, new directory, open ect.
ability to chmod a file or directory from the file browser with one click.
File search functionality whole partial any non case sensitive.
open, edit, save, save as, preview text,xml, css, html basically any readable format.
built in terminal emulator with soft keyboard support for devices without a hard keyboard.
This is still a beta so there are a few bugs as well as some soon to come UI changes.
keep in mind this is not ugly but it is not meant to be a "pretty" file browser. There are enough of those out there. This was designed for functionality.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
***Fixed*** Known bugs:
Enter Key on soft keyboard does not work in terminal client. need to use the trackball >>if anyone knows this fix id love to hear it.<<
soft keyboard in landscape mode needs to be toggled on 2x the first time you open it.
Post any Bugs, issues, or ideas here please
Updates:
Changed Search UI so that it is no longer its own activity. This will allow the user to back out of the search box and still use the switcher on the bottom to switch between search, browse, and terminal.
Replaced pop up in search box with Search hint.
Corrected the trackball from defaulting to control key when changing Terminal prefs. Basically it will allow it to work as the enter key again after changing preferences.
Current users will have to change the preferences the first time they update in order to correct the issue if you previously had it.
menu> preferences> command key: select something other than jog ball
Updates 1.5:
Fixed Search UI bug
added preferences for List color, Text Size, and Selector Color
New:
Added ability to create sym links
Updates 1.6:
Email Support
Better thread processing to prevent system hangs and crashes.
Random amusement?
Updates 1.7:
Multiple Viewer and editor support Support
Issue with 1.7:
It appears that something was miscodded causing crashing whenever a dialog attempts to appear this will be fixed tonight I appologize in advance.
The app is currently unpublished for now. until i can fix this
1.7 Re-Published as 1.7.1:
Delete / Paste Crash Fixed
Update 1.7.5:
Search Fixed for Newer Hero Build
Current Directory/Browse To bar implemented
Partition RW/RO Status added
Update 1.7.8:
Filter set up for "Browse To" bar to prevent typos.
Bugs: Symlinks Broke?
Not sure if symlink in the code is broken or maybe if its this new hero build 2.3.3 I tried to manually create a link and that fails as well.
Any Feedback on this one would be appreciated.
Update 1.9:
Cleaned up a lot of code
added some additional menu icons
Better Alert descriptions
file support to the Browse to bar for manual entries
Update 1.9.5:
Recursive Zip Support Added for Extraction
Compressions support in the works.
view, extract all or single targets to the directory of your choice.
Remember u must Mount as RW if you would like to extract to anywhere other than in your SD card.
More terminal colors added per request:
Amber on Black
Green on Black
Red on Black
More code clean up
Update 1.9.9:
System/Data RW/RO replaced with S & D buttons as well as option to remount on click or from menu still
Optional Expandable tool bar added with:
Settable Home Button
Bookmarks
Quick Exit
Update 2.0:
Browser Download Helper Added per requests
Update 2.1:
Multi Select support added. no buttons needed, just click the icon next to the file. You can also select across multiple directories so be careful
Zip File Creation Added. You can Zip ALL files unlike other zip apps out there. Zipping files on other partitions than the sdcard may be slower though due to the special means needed for the files to be zippable.
Unzip/install apk option added for those that wanted to be able to view the apk contents
Download helper change. Hopefully this will fix the issue that arose with android 1.5 and email crashing with txt html and pdf files if u had astro, download crutch or any download helper
Update 2.1.6:
Viewable Hidden files
Update 2.5:
Added button to toggle View hidden Files
Tool bar will now save your last selected instance when you re-open the app.
random bug fixes.
Added lots more Bugs just for fun & everyone's aggravation
Added ability to connect to your PC via wifi over a shared network setup (Should work in all OS but only tested in windows)
If you are having issues with this make sure you fully set up shared networking on your pc.
PC browser has all of the same abilities as device. you can copy back and forth between the 2 cut paste delete ect.
Update 3.25:
grep free remount code
Syntax Highlighting
APK XML Binary viewer
It's very cool.
I've bought it.
But:
Can you manage it, that the keyboard doesn't pop on every start?
And:
I can't find my folders with a "." at the beginning.
If you help this could be better than root explorer.
Formel-LMS said:
It's very cool.
I've bought it.
But:
Can you manage it, that the keyboard doesn't pop on every start?
And:
I can't find my folders with a "." at the beginning.
If you help this could be better than root explorer.
Click to expand...
Click to collapse
I was just about to post .. that it's too bad I already purchased Root Explorer, lol. If this is even better, I may have to give it a shot as well.
You know it's funny, I never once paid for apps when I had my iPhone (I know, I know), but I LOVE to support our devs here!
Formel-LMS said:
It's very cool.
I've bought it.
But:
Can you manage it, that the keyboard doesn't pop on every start?
And:
I can't find my folders with a "." at the beginning.
If you help this could be better than root explorer.
Click to expand...
Click to collapse
Press the button that has a circle with a line through it that toggles hidden Files
Special 1 week 1$ sale
Everybody should check this out. This is my favorite file browser. Definately get it on sale. I had this since it first came out and I was on my G1.
My request, Can you make the ability to select multiple files for cut, copy, paste? Or if the ability is already there, can you tell me how to do it?
Its already in there:
Tap on the front od the line you would like to mark. Theres a checkbox.
Then you have it marked.
Do it with all files you want. Then press one of this marked files for more then two seconds and choose "delete all marked files"
If you wanna mark all files in one folder, than open the folder, press the menu key and choose select all.
Then press on one of these files and choose again "delete all marked files"
I hope you understand this. for me it was easier to write this in german. Sorry!
Had to support for the price!!
whats up with sufbs? since last update it looks not how it should!
using CM5.0.6, Helix-Launcher2, kmob kernel, HTC-IME
maybe a incompatibility?
^ mine does not look like that.
This is the best file manager for sure, and one of my favorite apps. I love being able to delete unwanted apps from system without having to use adb.
not compatible with HelixLauncher2, please correct this. ui is distorted like in the image i already posted. THANKS!
I have it together with HelixLauncher2. Everything is fine here.

[APP] RaspManager - Remote control for Raspberry

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Introduction:
Hi guys, first all, sorry my English. My name is Jesus and I have a Raspberry for several months. It has passed for many stages (multimedia center, retro games center, etc.). Now, it's my experiments center .
I would like to present you an Android application that took weeks to develop (and many months in my mind to develop ). I called it RaspControl and, simply, connects your phone to your Pi, via SSH, for remote control.
Features:
RaspControl sets connection with your Raspberry, via SSH, anywhere. If you Raspberry has external conection, you can control it outside (obviously :laugh
RaspControl has three sections: Status, Explorer and Terminal
Status
Get your Raspberry's information, for example, running processes, available memory, network status, temperature, etc.
Allows restart and shutdown your Raspberry remotely.
Allows mount and dismount drives and filesystems remotely.
Explorer
RaspControl includes a simple file explorer, in order to send and receive files local and remotely.
Allows copy, cut, paste and delete folders and files from your smartphone.
Allows send folders and files from your smartphone to your Raspberry.
Allows copy, cut, paste and delete folders and files from your Raspberry remotely.
Allows receive folders and files from your Raspberry to your smartphone.
Allows download files to your Raspberry, setting the download link.
Terminal
RaspControl includes a simple console terminal, where you can have a full control for your Raspberry anywhere.
It has a commands used history (up to 100 commands).
To navigate through the command history, you can use volume keys, from your smartphone.
NEW!: Now, you can clear your command history
NEW!: Now, you can create custom commands and use it in Terminal!
Supported languages:
English (by default)
Spanish
Nothing more at this moment, but, I would like add more sections/functions in future to improve the app. I have some ideas (for example, a XBMC remote control) but I have to think it well; first, if can be do it; second, if I can do it and, finally, if it's useful.
Click to expand...
Click to collapse
Requirementsto work correctly:
RaspControl needs the following to work correctly:
A SSH server: Most Raspberry's distributions has a SSH server installed. Otherwise, you can install the openssh package.
To show bandwith correctly, it's neccesary have installed the ifstat package.
Screenshots:
A last point:
This app was designed to use on Raspberrys, but, "accidentally", you can use it on any Linux distribution, provided you have a SSH server installed (is the app's core to work ). I've tested with a pair of VM, a Arch distro and a Mint distro, and works without problems.
And, well, surely the app could have some errors to fix (many people have not tried), so, any comment is appreciated (assume ). For example, at this moment, I can say that connection sometimes is slow, all depends the network quality and smartphone, but, additionally, it has an extra time to SSH connection (compression data, validation, etc.). So, if you change section, while RaspControl is connecting to Raspberry, sometimes app could FC (force close). I've improved and optimized some code and I tought that I fixed it... but sometimes could FC . So I'm trying to fix this to make it more stable, also, I would like to improve it for tablets. It is not ugly, but not pretty
I hope you find it useful and you like it. Please, be not cruel , it's my second "formal" Android app and I'm still in the learning stage . I am currently looking for a job and I'm doing this to improve professionally (and improve my resume too ).
Link:
Finally, here you are!:
Google Play download link
Kind regards!
XDA:DevDB Information
RaspManager, App for all devices (see above for details)
Contributors
ercea
Version Information
Status: Stable
Current Stable Version: 1.5
Stable Release Date: 2014-06-25
Created 2014-06-28
Last Updated 2015-06-01
Changelog:
Version 1.5:
Main:
Changed main icon due to trademark violation
App renamed to RaspManager due to suspended application
Add compatibility with Lollipop styles
New toolbar
State:
Added controls to show/hide sections
Shows error messages when no connections
New Connection:
Avaible SSH certificate connections
Version 1.2.1:
Main Window:
Changed "About" dialog
Terminal -> Custom Commands:
Added a confirm dialog before delete a custom command
Added custom commands help demo screen
Version 1.2:
Main Window:
Deleted connection dialog removed (now, using a simple better way).
State:
Fixed OFF state when is connected
Added a confirm dialog before mount/dismount filesystems
Explorer:
Fixed continuous "Go-Back" when Back button pressed
Terminal:
Added "Refresh" button to reconnect with remote PC
Added "Clear history" command in context menu
Added "Custom Commands" section, to create/edit/delete custom commands and use it in Terminal.
Improved terminal output, using a handler.
Version 1.0:
First version of RaspControl
Hey guys, recently, I've updated to 1.2.1 version, please, check Changelog to see the changes and improvements I hope you like the application ^^
Regards!
Hey guys, recently my application was suspended due to trademark logo violation, I've contacted with the Raspberry Foundation and I can upload a new application without the official logo... but I can't modify the original app because it will be suspended always .
So, I had to rename the application and here is the new version with some changes (you can see them in the Changelog) and the new logo.
Sorry the inconveniences :S I hope to upload more versions with new feautures
Regards!
When you click on upload to remote where does the file go?
Sent from my SM-N920C
@ercea pretty awesome app. The only caveat I'm having is that it doesn't work if you have two factor authentication setup in the raspberry. After you enter the ssh password, it asks for a verification code, but since the app doesn't show the message and a text input to type it, is impossible to log in. Could you check if it's possible to add a type input for this case? I can help you check things if you need
skyleth said:
@ercea pretty awesome app. The only caveat I'm having is that it doesn't work if you have two factor authentication setup in the raspberry. After you enter the ssh password, it asks for a verification code, but since the app doesn't show the message and a text input to type it, is impossible to log in. Could you check if it's possible to add a type input for this case? I can help you check things if you need
Click to expand...
Click to collapse
@skyleth, please, I apologize for the delay in my response, I was out of my home during these days for my work. Thanks for your words about RaspManager, about two factor authentication, sorry the inconveniences, I will try to add this feature in the next update. Please, could you tell me how I can replicate your setup? (how did you put a verification code on your Raspberry?) Lately, due to my work, I only use my Raspberry for watching series and movies (for relaxing ) and, the truth is, I'm spending little time testing other things
Regards and sorry again for the delay :S
ercea said:
@skyleth, please, I apologize for the delay in my response, I was out of my home during these days for my work. Thanks for your words about RaspManager, about two factor authentication, sorry the inconveniences, I will try to add this feature in the next update. Please, could you tell me how I can replicate your setup? (how did you put a verification code on your Raspberry?) Lately, due to my work, I only use my Raspberry for watching series and movies (for relaxing ) and, the truth is, I'm spending little time testing other things
Regards and sorry again for the delay :S
Click to expand...
Click to collapse
Hi ercea, don't worry I set up the two factor authentication following this guide: https://www.sbprojects.net/projects/raspberrypi/ga.php
Anyway, if you need any help let me know, I'm currently at home because of an injury so I have time to check

[SCRIPT]Load Adblock filterlists to NoRoot Firewall

Introduction
Adblock Plus hides ads for wireless and even mobile data (see http://forum.xda-developers.com/showthread.php?t=2726443), but it does not always prevent connections to the servers.
I decided to also block the servers by using NoRoot Firewall, but manual insertion of thousands of records would be needed.
Therefore, I put together a small shell script which allows to convert Adblock and also Microsoft filterlists to a blacklist and then import this blacklist as primary filter into NoRoot Firewall.
Requirements
Linux/OS X
adb
pax
Android Backup Extractor
sqlite3
shell script norootfirewallAdsFilterConverter.sh
They can be installed as mentioned in http://forum.xda-developers.com/showthread.php?t=2011811
abe.jar must be in the script directory.
adb must be in path variable.
sqlite3 can be installed via macports for OS X and should be available for linux too.
Download Link
>> View attachment norootfirewallAdsFilterConverter.sh.zip <<
Instructions
1. Install the required tools and create a working directory. Unzip norootfirewallAdsFilterConverter.sh.zip. Start a terminal/shell from this directory and run norootfirewallAdsFilterConverter.sh.
Code:
#
# Description:
#
# This bash script converts ads filter lists and imports them
# to noRoot Firewall. Supported are ms filter lists and adblock
# lists.
#
# The script will backup the device filters, add ms/adblock
# filter lists, and restore the modified backup to the device.
# NoRoot Firewall has three types of filters: apps, primary
# and postpositioned. Only apps and postpositioned filters will
# be restored. The primary filters consist of custom defined
# filter in the file list_primary_custom_in.txt and the
# ms/adblock filter lists. The lists are separated because
# you don't want to maintain a few custom filters within
# thousands of ms/adblock filters.
#
# Usage:
#
# Run option 1 to define an example primary custom filter. Modify
# this file as required.
#
# Run option 2 to define an example filter url file. Not all
# given files have to be used later.
#
# Run option 3 to download filters given in filter url file.
#
# Run option 4 to run adb backup.
#
# Run option 5 to extract apps and postpositioned filters
# with Android Backup Extractor.
#
# Run option 6 to create the filter rules from:
# -apps and postpositioned filters (list_apps_and_post_in.txt)
# -custom primary filters (list_primary_custom_in.txt)
# -downloaded filters (all other *.txt)
#
# Run option 7 to pack backup with Android Backup Extractor.
#
# Run option 8 to restore modified backup with adb to device.
In input file list_primary_custom_in.txt, type in any existing primary rules. If no file exits, a new file containing some urls will be created. The allowed format is the same as in NoRootFirewall, i.e.
11.22.33.*
*.ad-website.de
Click to expand...
Click to collapse
Notes
I recommend to create two post filter rules allowing any connection to port 80 or 443. Thus, no interaction with NoRootFirewall is needed when surfing as only the blacklist is considered. The creation should be done prior step 1.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If you don't want to connect to google site when surfing, you should add the google ip ranges to your filterlist of the browser.
For firefox for example, you can add this to the file list_apps_and_post_in.txt after step 5.
Code:
173.194.*.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.128.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.129.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.130.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.131.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.132.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.133.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.134.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.135.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.136.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.137.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.138.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.139.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.140.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.141.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.142.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.143.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.144.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.145.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.146.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.147.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.148.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.149.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.150.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.151.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.152.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.153.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.154.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.155.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.156.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.157.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.158.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.159.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.160.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.161.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.162.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.163.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.164.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.165.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.166.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.167.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.168.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.169.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.170.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.171.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.172.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.173.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.174.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.175.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.176.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.177.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.178.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.179.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.180.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.181.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.182.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.183.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.184.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.185.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.186.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.187.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.188.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.189.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.190.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.191.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.192.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.193.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.194.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.195.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.196.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.197.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.198.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.199.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.200.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.201.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.202.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.203.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.204.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.205.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.206.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.207.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.208.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.209.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.210.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.211.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.212.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.213.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.214.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.215.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.216.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.217.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.218.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.219.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.220.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.221.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.222.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.223.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.224.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.225.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.226.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.227.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.228.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.229.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.230.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.231.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.232.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.233.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.234.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.235.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.236.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.237.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.238.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.239.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.240.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.241.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.242.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.243.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.244.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.245.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.246.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.247.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.248.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.249.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.250.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.251.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.252.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.253.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.254.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
209.85.255.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.32.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.33.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.34.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.35.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.36.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.37.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.38.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.39.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.40.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.41.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.42.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.43.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.44.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.45.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.46.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.47.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.48.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.49.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.50.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.51.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.52.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.53.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.54.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.55.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.56.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.57.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.58.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.59.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.60.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.61.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.62.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
216.239.63.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.160.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.161.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.162.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.163.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.164.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.165.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.166.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.167.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.168.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.169.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.170.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.171.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.172.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.173.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.174.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.175.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.176.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.177.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.178.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.179.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.180.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.181.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.182.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.183.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.184.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.185.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.186.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.187.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.188.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.189.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.190.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
64.233.191.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.102.0.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.102.1.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.102.10.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.102.11.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.102.12.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.102.13.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.102.14.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.102.15.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.102.2.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.102.3.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.102.4.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.102.5.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.102.6.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.102.7.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.102.8.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.102.9.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.64.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.65.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.66.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.67.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.68.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.69.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.70.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.71.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.72.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.73.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.74.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.75.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.76.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.77.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.78.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.79.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.80.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.81.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.82.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.83.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.84.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.85.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.86.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.87.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.88.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.89.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.90.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.91.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.92.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.93.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.94.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
66.249.95.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.192.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.193.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.194.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.195.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.196.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.197.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.198.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.199.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.200.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.201.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.202.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.203.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.204.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.205.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.206.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.207.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.208.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.209.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.210.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.211.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.212.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.213.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.214.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.215.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.216.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.217.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.218.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.219.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.220.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.221.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.222.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.223.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.224.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.225.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.226.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.227.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.228.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.229.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.230.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.231.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.232.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.233.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.234.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.235.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.236.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.237.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.238.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.239.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.240.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.241.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.242.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.243.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.244.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.245.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.246.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.247.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.248.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.249.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.250.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.251.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.252.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.253.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.254.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
72.14.255.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
74.125.*.*,0,-1,0,"",1413580702741,2,2,Firefox,org.mozilla.firefox,"","",0,10280,0
Testing
The script has been tested on HTC One M7, android 4.4.3
NoRoot Firewall version was 2.2.5
Hopefully some of you will find this useful.
I like your implementation here! Is there a way I might aid in developing a Windows-friendly version, for us mere mortals?
Don't get me wrong; in my book, you Linux users, on a scale from one to ten in computer-usage ingenuity and smarts, are an eleven!
Far out. This is brilliant. I've been hunting around for an alternative, where I can block MVPS, AdServers, Disconnect, etc etc etc, without root.
So much traffic is wasted on adverts, scripting, analytics scripts, and remote files and resources.
I will give it a try. But I don't want to permit all 443 and 80. That makes no sense.
What about OTHER PORT RANGES???
I have several global roles, that would not trigger, if I permitted global 80, 443, (e.g. The dozens of Facebook servers, that every app wants to violate and report to Facebook!)
So my understanding for pre and post filters was PRE filters are processed before each application, and POST filters are processed after PRE, App-Specific Rules...?
So if I have an App Rule 1234 to ALLOW connection
Then POST Rule 1234 to BLOCK connection.
So that means App rules take precedence? I.e. Match Rule for App 1234: Pre, App, Post.
Is that correct? I cannot find any simple answer to how it works.
Thank you for such good work creating the batch file conversion process script!!
REQUEST: ALLOW EXPORT AND IMPORT OF RULES VIA GUI IN "NO ROOT FIREWALL"!
---------- Post added at 04:19 AM ---------- Previous post was at 04:02 AM ----------
Result - Blocks Connections by Other Apps (Textra SMS App)
List of Pre & Post Custom Rules
Works well. If I added Global 80/443 then I could not detect what "naughty" connections applications are making and therefore not block future unknown servers...
Also, what about port 1234, 8777, etc? Add as global post filter too??
Thanks
I need help, guys, please. I got this working, I mean I succesfully put IP addresses into globals filters. I used this site:
h t t p s://pgl.yoyo.org/as/iplist.p h p (remove spaces please)
I put all addresses into global filters, but I still can see adverts averywhere. I tried to put it in pre-filters, then to post-filters, then even to both filters at once. no luck at all. still ads everywhere I used port like *, that means all ports at all.
anybody can help me please?
mikbeHD said:
Introduction
Adblock Plus hides ads for wireless and even mobile data (see http://forum.xda-developers.com/showthread.php?t=2726443), but it does not always prevent connections to the servers.
I decided to also block the servers by using NoRoot Firewall, but manual insertion of thousands of records would be needed.
Hopefully some of you will find this useful.
Click to expand...
Click to collapse
This is beyond brilliant, two of my favourite apps working together like this! The power of XDA .
---------- Post added at 09:02 PM ---------- Previous post was at 08:50 PM ----------
flipmode_11 said:
Far out. This is brilliant. I've been hunting around for an alternative, where I can block MVPS, AdServers, Disconnect, etc etc etc, without root.
Click to expand...
Click to collapse
Can you hide these images within
tags?

[APP][5.0+] Power File Explorer v1.0.x Pre-Released (fully-featured file manager)

# Power File Manager
An extreme powerful file explorer, two custom panels, built-in images/document preview, media player, pdf/image viewer, text editor, apps, processes, traffic manager, compress/descompress zip, 7z, zpaq, gz, xz, bz2, tgz, txz, tbz2...
Github repository: github.com/PowerExplorer/PowerFileExplorer/
Download
github.com/PowerExplorer/PowerFileExplorer/releases/download/V1.0.11/PowerFileExplorer.apk.zip
Overview
---
- Open Source
- Basic features like cut, copy, delete, compress, extract etc. easily accessible
- Work on multiple tabs at same time
- Navigation drawer for quick navigation
- Browse, preview, extract items in compressed files easily
- Text Editor with multi tabs
- Media Player
- Pdf, epub, html viewer, previewer (click on the icon)
- App Manager to open, backup, or directly uninstall any app
- Quickly access history, access bookmarks or search for any file
- All features freely available without any ads
- lots more...
Top Features
============
★ **Full Featured File Manager (File Explorer)** It is a Super File Manager which provides all features of file management including cut, copy, delete, rename, compress, extract. You can check the file file details, full integrated search within the file system. New file and New folders can be created in a second.
★ **Smart Library File Explorer (File Manager)** Categorize all files into Downloads from internet, Images, Pictures, Camera Photos, Videos, Movies, Audio , Music, Documents (pdf, xls, ppt etc), Archives (zip, 7z, zpaq, rar etc) and APK. Easily navigate the library with a single tap. You can also bookmark all your favourite folders so you can have quick access at any point of time
★ **Storage File Manager (File Explorer)** Access all files and folder from different types of storages like EMMC, MMC cars, SD Cards, Internal Storage, External Storage , Phone Memory, USB Storage with support for FAT file system
★ **App Manager and Process Manager** Free memory by killing tasks and speed up your phone instantly. Quickly and easily uninstall multiple unwanted applications and free up phone storage space which is very valuable. App Manager helps you save your favorite apps on to memory and install them back again when needed
★ **Network Manager** Transfer files with FTP Server from phone to PC. All you have to do is open the IP address in browser and all your files on the phone are easily accessible. You can also share files from your phone using bluetooth etc
★ **Document Editor** you can easily edit files on the go. Support for every type of text files such as HTML, XHTML, TXT etc. It is very simple and handy.
Other Features
==============
* Completely Open source project on github
* Acts as a Standalone File Picker from other applications such as attaching document files from gmail
* Has high quality thumbnail support in list / gridview for all types of file like images, videos, album art for music files and applications
###License:
This file is part of Power File Manager.
Power File Manager is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
The author is not responsible for any kind of damages or loss
while using or misusing this software, which is distributed
"AS IS". No warranty of any kind is expressed or implied.
You use AT YOUR OWN RISK.
You should have received a copy of the GNU General Public License
along with this program.
Update new version github.com/PowerExplorer/PowerFileExplorer/releases/download/V1.0.11/PowerFileExplorer.apk.zip
powerexplorer said:
Update new version github.com/PowerExplorer/PowerFileExplorer/releases/download/V1.0.11/PowerFileExplorer.apk.zip
Click to expand...
Click to collapse
Why are releases in zip and not just apk format?
https://github.com/PowerExplorer/PowerFileExplorer/releases
Also,
For screenshots,
You can include them in readme or have a separate screenshpts.md file and link to that in readme; i.e. https://github.com/scoute-dich/browser/blob/master/SCREENSHOTS.md
---------- Post added at 01:54 AM ---------- Previous post was at 01:31 AM ----------
powerexplorer said:
# Prepare for build
Copy attached android.jar onto %your-android-sdk%/platforms/android-23/ (needs overwrite)
(You should backup original android.jar)
.
Click to expand...
Click to collapse
?
powerexplorer said:
Warning
---
Basic r/w operations might not work on external memory on Kitkat devices. Don't use cut/paste from or to external SD Card. You might lose your files.
.
Click to expand...
Click to collapse
For cut/paste or move why not implement basic security guard:
Copy files from a to b
check if files exist properly on b
if exists - delete files on a | else error message/toast/dialog
I don't know the reason why github doesn't accept me to upload that apk, but smaller texteditor.apk is ok. Therefore I have to zip it.
Ok, thanks, I will do the screenshots.
I've used many open sources to develop this app. For the cut, paste files, I've used and modified codes from Amaze File Manager. And I only test on 2 devices android 5 and 7. Therefore, the app only support from Android 5, but I copied pasted the warning from Amaze File Manager. So I've better remove that warning.
Actually, only after cut/paste successfully, the source is deleted. If they're in the same partition, only rename without copying. If b exist, there is a dialog to confirm overwrite or not.
Some screenshots at https://github.com/PowerExplorer/PowerFileExplorer/
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Update version, recompile zpaq, download https://www.dropbox.com/s/vfhye23v549bz6y/PowerFileExplorer_1.0.13.apk?dl=0
Why is the apk hosted on dropbox & not as an asset in gh releases?
Furthermore the app could use a UI makeover/follow material guidelines. We're in 2019.
The idea is a bold one - a file browser with integrated previews for most popular file types, yet will not fully trust the app to test yet.

Software Development FYT DVR video files speed up and merge program

Hi People,
I wanted to merge the DVR footage from long trips and get a video file that is significantly sped up, and here's the crude result. Works for my T'eyes CC3, but should work for most FYT units.
Youtube video of resultant file
DashCam_Stitcher.zip <- Contains all executable and the Python script.
FFMPEG & FFPROBE need to be in your PATH for this to work
The program is a command line program, used in the format-> DashCam_Stitcher F 50
Where the source drive from the DVR is at F (in my case)
And the number of times the video footage is sped up is 50 (You can use 1, 2, 10, 100, or whatever)
Only for windows, and only for MP4. Hack my source if you want to change this.
That's the short version if you want to avoid my waffle below.
I driven my wife nuts trying to get this working, and so even though you might think you should thank me, if you do use this please comment with "Thank You Benja"
NOTE: This program will not automatically erase or fix any of your files. If that is needed, the program will prompt you with some helpful hints to fix yourself. I used someone’s demo program and was lucky I had a backup as it wiped my tf card.
Summary
I’ve used Python to script, FFPROBE to find all the corrupt files using a two-pass system, and you will be prompted to use FFMPEG to fix a few of those corrupt files (Or delete). And then automated FFMPEG creating sped up versions of each file in date time stamp order and FFMPEG merged them all into one big video file.
Waffle
If they don’t exist this program will create the following directories
C:\Users\[currentuser]\Videos\DashCam – Where the final merged file appear.
C:\Users\[currentuser]\Videos\DashCam\SpedUp – Where all the individually sped up versions of each file on your TF card will appear.
A sorted list of only the MP4 files is created
A first quick corrupt file check is done on each file using FFPROBE -hide_banner -v error eachfile.mp4. If bad MP4’s are found the program will stop, and ask you to fix them using FFMPEG -i xxxxx.mp4 -c copy xxxxxa.mp4 (or any method you can think of, including deleting the file).
Run dashcam_stitcher again to continue. If no bad files are found, a second much more thorough CPU intensive check is done. The second pass is because I have found files that slip though the first pass, and then kill the merge process at the end.
This second pass uses FFPROBE -show_entries stream=r_frame_rate,nb_read_frames,duration -select_streams v -count_frames -of compact=p=1:nk=1 -threads 3 -v 0 video.mp4
Which on a good file will show stream|25/1|299.000000|7475, but I have found some that cannot be repaired that read as stream|12000/1|131.160000|N/A or similar. If so, program stops again asking you to resolve as before.
Run dashcam_stitcher again to continue. If the video files get through both these checks, each file is then processed and put into the SpedUp folder. Then the program concatenates all the files together in order, and places a uniquely named (based on date and time) video file in the Dashcam folder.
Checking, encoding, and stitching the files together using this program will take a while, but much quicker than doing it by hand.
Again, if you can please comment with "Thank You Benja"
Very nice script.
However, I would use "-movflags faststart" to enable streaming (relocate the moov atom from the end of the file to the beginning of the file).
like
Code:
cmd = "ffmpeg -f concat -i "+concattextfile+" -movflags faststart -c copy "+outputmoviefilename
Of course: Youtube will do this automatically for you, but on your computer or from a server it will start streaming without the player first having to load the entire file
Edit: Sorry.
"Thank You Benja"
surfer63 said:
Very nice script.
However, I would use "-movflags faststart" to enable streaming (relocate the moov atom from the end of the file to the beginning of the file).
like
Code:
cmd = "ffmpeg -f concat -i "+concattextfile+" -movflags faststart -c copy "+outputmoviefilename
Of course: Youtube will do this automatically for you, but on your computer or from a server it will start streaming without the player first having to load the entire file
Edit: Sorry.
"Thank You Benja"
Click to expand...
Click to collapse
Thanks mate.
Links above have been updated to version 0.2. Your suggestion, and a minor change to file extension filtering.
If you can't get to the files. Big oops on my part.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Your file violates Google Drive's Terms of Service​‘DashCam_Stitcher.zip’ contains content that violates Google Drive's Malware and Similar Malicious Content policy. Some features related to this file may have been restricted. If you think this is an error and would like the Trust & Safety team to review this file, request a review below.
Restricted file
Google claims it found a virus. But my system seems clean. Windows defender is not having problems??
mjcummins said:
View attachment 5718109 Google claims it found a virus. But my system seems clean. Windows defender is not having problems??
Click to expand...
Click to collapse
I don't find viruses in your files. However, you use portable executables (pe32+). They are a known source of malware. That is also why ffprobe.exe and ffmpeg.exe are both 117MB. Maybe you get false positives on these exe files as they do contain all libs and necessary files inside and Google can't access them.
Well, I did put in the "Review Request" to almighty Google.
Are the files currently accessible? I own them, so my testing access doesn't really count I think.
mjcummins said:
Well, I did put in the "Review Request" to almighty Google.
Are the files currently accessible? I own them, so my testing access doesn't really count I think.
Click to expand...
Click to collapse
I use Linux laptops and Chromebooks. I can download them on my systems. Of course I can't use the windows exes and I need to modify your python script to make it linux compatible (or more universal).
surfer63 said:
I use Linux laptops and Chromebooks. I can download them on my systems. Of course I can't use the windows exes and I need to modify your python script to make it linux compatible (or more universal).
Click to expand...
Click to collapse
More universal would be good. Bit more code required to be able to use multiple systems. I have seen some examples, but not a good example yet. I've still got a lot of relearning and learning to get back up to speed.
If your process uses Python & FFMpeg, etc. than simply create scripts for Windoze, Linux, etc. making sure any folders created are relative to the users starting location.
Then people can simply install the official ffmpeg for their OS, and use your scripts. No need to create non-portable executables.
pwood999 said:
If your process uses Python & FFMpeg, etc. than simply create scripts for Windoze, Linux, etc. making sure any folders created are relative to the users starting location.
Then people can simply install the official ffmpeg for their OS, and use your scripts. No need to create non-portable executables.
Click to expand...
Click to collapse
In line 37 to 40 you could use:
Code:
userDir = os.path.expanduser("~")
userVideoDir = os.path.join(userDir, r"Videos")
dashcamdir = os.path.join(userVideoDir, r"DashCam")
spedupdir = os.path.join(dashcamdir, r"SpedUp")
This would immediately make it compatible on every by python supported platform, no issues with forward/backward path separators: python will do it for you. (And I like the fact that you do use raw strings, but in this case it is all ansi characters and nothing weird in there)
The source dir (sys.argv[1]), and thereby source_folder, would be an issue as Windows is the only system in the world using drive letters.
But in that case source-dir should be omitted and "source_path" should be used which could be "D:\DCIM" or "<sdcard name>/DCIM" Or something else if some exotic dashcam breaks all ISO-standards and uses something else than DCIM.
Code:
if platform.system() == 'Windows':
do something windows
else
do something all other OSes
surfer63 said:
Code:
userDir = os.path.expanduser("~")
userVideoDir = os.path.join(userDir, r"Videos")
dashcamdir = os.path.join(userVideoDir, r"DashCam")
spedupdir = os.path.join(dashcamdir, r"SpedUp")
This would immediately make it compatible on every by python supported platform, no issues with forward/backward path separators: python will do it for you. (And I like the fact that you do use raw strings, but in this case it is all ansi characters and nothing weird in there)
Click to expand...
Click to collapse
Or slightly different to show the "automatic power" of python.
Code:
userDir = os.path.expanduser("~")
userVideoDir = os.path.join(userDir, r"Videos")
dashcamdir = os.path.join(userDir, r"Videos", r"DashCam")
spedupdir = os.path.join(userDir, r"Videos", r"DashCam", r"SpedUp")
But maybe the first code block is probably more clear to any reader what is mentioned.
And then finally:
Code:
spedupdir = os.path.join(os.path.expanduser("~"), r"Videos", r"DashCam", r"SpedUp")
But this makes it really untransparent for the unexperienced reader/programmer "where we came from".
I prefer the extra steps, also for myself not to get lost and make errors.

Categories

Resources