This is the enhanced but mainly original application Defender by nodevel , see (old, deprecated!): https://openrepos.net/content/nodevel/defender and its repository https://github.com/nodevel/harbour-defender
It was updated for devices with encrypted /home volume, on which it caused boot problems (of course it can also be used on unencrypted devices). And taken care of the new 'defaultuser'.
No more, no less (okay, here and there a bit more now ;)...
New forked repo (github) can now be found here: https://github.com/peterleinchen/harbour-defender
And for discussions (FSO ) see here: https://forum.sailfishos.org/t/defender-app-update-harbour-defender-my-v...
v0.5.7
- fixed handling of exception on resolvings hosts url (leading to 'update loop')
- added functionality (and pulley menu) to show an error log, in case it exists
- added creation of special lxc extra_config file to get the (native file system) /system/etc/hosts file bound into the Android (aliendalvik container) file system
- added funtionality (and pulley menu) to restart Android Support (needed to get the updates written to native hosts file read anew into the aliendalvik container)
- added new sources from oisd.nl (thanks to @dry1)
i486 and aarch64 build brought to you by courtesy of @orangecat
v0.5.6
- fixed the annoyance that sporadically the hosts file was reset to default values (caused by a cyclic update without internet connectivity, e.g. flight mode)
- added new Adware repositories of GoodbyeAds (thanks to @orangecat), be aware that mixing repositories of bigger size may take looong time (even hours) so keep it running...
v0.5.5
- corrected version number and URL in spec file
- added support for i486 (Jolla tablet)
- provision of aarch64 (courtesy of @orangecat / FSO)
v0.5.4
- added version info into DocsPage
- added removal of 'update trigger' file on uninstallation
- added pulley menu for removal of 'update trigger' file
(still a reboot or uninstall/install or `devel-su systemctl restart harbour-defender`might be needed)
v0.5.3
- fix the update loop, e.g. for community ports (where /system is mounted RO); import UnableToWriteHost exception and catch that situation on trying to write updated hosts file(s),
- added some small error logging writing to user space file /home/$USER/.config/harbour-defender
- fix rebuild_hosts to create a new blank default hosts file and save it correctly; NOT reading/copying the default /etc/hosts entries,
v0.5.2
- fix regarding the Disable (all) lists at once pulley menu, now the Disable functionality works and disables all lists
(small typo only which looks like was there from the early beginning ;)
v0.5.1
- take care of changes in SFOS4
- fix reading cookies.sqlite from new file location
- hack for sailjailed browser not taking changed hosts file into account (nsswitch.conf problem)
- more secure method at install time to have systemd not bootloop [ one scenario could still cause it: if you have defender installed on a non-encrypted device, (you upgrade this and) encrypt it, defender will have old systemd WantedBy references and cause your device to bootloop. Resolution: uninstall before encrypting and reinstall ]
v0.4.3
removed not anymore working lists from configuration
v0.4.2
fixing the start issue of path unit which caused the infinite update loop
v0.4.1
take over from nodevel and fixing the boot loop on encrypted devices
as well as taking care of new default user name 'defaultuser' or old 'nemo'
Comments
NettoHikari
Thu, 2024/06/27 - 04:34
Permalink
Just a heads-up for anyone wondering: There's a newer version on Chum (0.6.0). If you disable SailJail by editing the .desktop file, it works fine.
Append to /usr/share/applications/harbour-defender.desktop:
[X-Sailjail]
Sandboxing=Disabled
DrYak
Sun, 2022/07/24 - 23:25
Permalink
For the people struggling with version 0.5.7 and Sailfish OS 4.4.0.6x :
ziellos
Wed, 2021/11/17 - 12:46
Permalink
It seems the latest version 0.5.7 breaks Android support on SFOS 4.3!
peterleinchen
Wed, 2021/11/17 - 19:13
Permalink
Sorry sorry sorry.
Revoked the i486 and aarch64 packages for now until clarified.
peterleinchen
Wed, 2021/11/17 - 19:13
Permalink
New RPMs out (courtesy of orangecat) :)
Seven_of_nine
Wed, 2021/10/20 - 17:50
Permalink
Defender removes successfully annoying overlays from websites.
Thank you so much Peter!
nthn
Thu, 2021/05/13 - 07:59
Permalink
Hello, could you provide a 64-bit version? Thanks!
peterleinchen
Thu, 2021/05/13 - 10:26
Permalink
Most probably not :(
I do the 'programming', package (re-)building on device. I already tried to cross-compile the 64bit elf and the package on device but stumbled about a
BuildRequires: pkgconfig(Qt5Quick)
tried to solve via 'devel-su pkcon install qt5-qtdeclarative-qtquick-devel'
which would pull in a lot of dependencies breaking my device! :(
I stopped here and as I got (almost) no sufficient answer for this question I did not yet ask for above...
adel
Sat, 2021/05/15 - 01:14
Permalink
I just compiled the app for aarch64 with Sailfish IDE, and copied the rpm to X10ii. Installs quite fine.
What problems do you have to compile on the IDE? I had to extract defender.conf from one of your rpms, and copy it to qml/python and rename it to defender_default.conf, for the build to work.
peterleinchen
Sat, 2021/05/15 - 01:31
Permalink
As said above, I do it all on device, no IDE (maybe at some point I really should try the IDE way...)
And struggled with BuildRequires(QtQuick, QtGui). But somehow got it cross-compiled and packaged for aarch64 and was just about to ask for a 'guinea pig' that would like to test my rpm.
So anyone feeling brave enoug enough just PM me on FSO or TMO with his e-mail and I will send it to you.
tkoham
Thu, 2021/05/13 - 01:46
Permalink
Hi, just wanna say, many thanks for getting.this working again. Any word on 4.1 compat yet? I know the changes from 4.0 to 4.1 aren'nt nearly as drastic, just wondering.if anyone's tried it yet
peterleinchen
Thu, 2021/05/13 - 02:57
Permalink
I did not expect any incompabilities and did not not encounter any after just upgrading my X to 4.1.0.23.
Please see also https://forum.sailfishos.org/t/release-notes-kvarken-4-1-0/5942/32
ddobrev
Wed, 2021/04/21 - 19:18
Permalink
Your work is so outstanding that I'd like to make it even better. :) I have some bug reports for you, what's the best way to send them? You seem to have disabled issues at github.
peterleinchen
Sat, 2021/04/24 - 00:13
Permalink
Thanks. TBH I did not really think to take over maintainership, just wanted to get it working again (even I still use an unencrypted device).
I did not think about issues on github, standard forking was done.
Preferably you might report issues via a PR! ;)
But meanwhile you could use FSO for exchange.
mak_rev
Mon, 2021/03/22 - 00:32
Permalink
Hi, thank you for your work.
I have an issue with the sources. The sources don't get updated. The process never stops. Any one has noticed the same issue?
ferlanero
Sat, 2021/03/27 - 03:05
Permalink
Same here on a XA2 with an oficial SailfishOS 4.0.1 installed
peterleinchen
Sat, 2021/03/27 - 03:46
Permalink
Cannot reproduce with XA2 (3.2.1) nor with X nor Tablet (4.0.1).
If you select several sources the update (checking for duplicates) can take quite long. Maybe just give it enough time, could be up to 15 minutes or even longer..
Pldase check your user dir .config/harbour-update/ for any err.log file or start harbour-defender from console and look for any logging...
peterleinchen
Mon, 2021/03/22 - 15:54
Permalink
A 'bit' more info would be nice.
Using latest 0.5.3 version?
Device? SFOS version? Community port, free/paid license? Using Android?
What exactly are the steps you take?
rm ~/.config/harbour-defender/update
or see
from https://forum.sailfishos.org/t/defender-app-update-harbour-defender-my-v... to https://forum.sailfishos.org/t/defender-app-update-harbour-defender-my-v...
mak_rev
Mon, 2021/03/29 - 14:33
Permalink
I have a Xx with SFOS 4.
It was 0.5.3. Now its 0.5.5
I just go on "update now"
Sources: Yoyos; Disconnect.me; MVPS
I have removed rm ~/.config/harbour-defender/update. It didnt help
peterleinchen
Mon, 2021/03/29 - 15:42
Permalink
As said, I cannot reproduce this on XA2 (3.2.1), X (4.0.1), tablet (3.4.0).
Did you modify /etc/hosts manually and possibly screwed permissions?
ls -al /etc/hosts* /system/etc/hosts*
Should be for all: -rw-r--r-- 1 root root
as already was the case in the FSO thread.
Please check also for .config/harbour-defender/err.log or let me know some more details, console output...
ferlanero
Fri, 2021/03/12 - 13:32
Permalink
Could you packge an i486 version for the tablet, please? This program is so useful to navigate without interruptions! Thank you in advance.
peterleinchen
Sat, 2021/03/27 - 03:34
Permalink
And here we go (i486)...
ferlanero
Sat, 2021/03/27 - 17:33
Permalink
Thank you very much for adding the i486 support!!
peterleinchen
Sat, 2021/03/13 - 22:19
Permalink
Let's see...
As there are now also quite a few bug fixes involved I may think about supporting the tablet as well.
But meanwhile all tablet users are safe with using nodevel's original version.
damoleon
Mon, 2021/03/01 - 19:26
Permalink
hello, can I install 0.5.2 directly on sf 4.0.1.48 ? when pressing "install" it says "problem with installing".
thanks
peterleinchen
Mon, 2021/03/01 - 20:32
Permalink
Yes, definitely.
Are you installing via Storeman? Tap fly-in banner and it will rwveal some more details.
Or via cli: devel-su pkcon install harbour-defender
damoleon
Sun, 2021/03/07 - 23:49
Permalink
I've downloaded the rpm from this same page :/
from terminal, if I run devel-su pkcon install harbour-defender, it says : "no packages were found"
peterleinchen
Mon, 2021/03/08 - 00:21
Permalink
Okay, this will not work.
Either use storeman (by osetr) and enable my repository.
Or download from here and use
devel-su pkcon install-local harbour-defender-0.5.2-1.armv7hl.rpm
damoleon
Sat, 2021/03/13 - 11:30
Permalink
Thanks ! I have the message though : fatal error : harbour-defender-0.5.2-1.armv7hl.rpm conflicts with sailfishos-hosts-adblock provided by sailfishos-hosts-adblock-0.4-1noarch
I probably tried a different adblocker previously a long time ago but cannot recall how to remove it. Thanks for yourtime if you have a hint :)
Have a nice day
peterleinchen
Sat, 2021/03/13 - 12:10
Permalink
devel-su pkcon remove sailfishos-hosts-adblocker noadshosts
Pages