Firefox as default browser

Your rating: None Average: 2.2 (16 votes)

If you love Firefox as I do, this app is just for you. Please read the description carefully.

This app must (and will) run as root to do some things, which are:

  • Enabling adb
  • Moving default url handler to backup folder
  • Moving new handler to right folder
  • Creating new script that starts adb after restart
  • Updating database

You can easily restore the default url handler from this app, but you MUST NOT remove this app before disabling the Firefox url handler. Believe me, don't remove the app before disabling.

If the app does not respond while enabling or disabling, don't quit it, just wait a few seconds.

Contains English and Czech localization.

And you need Firefox for Android installed on your device (surprisingly).

If you like this app, you can leave me a five star rating or "thank you" in the comments :)

Updated in 1.0.2

- App now supports Firefox Beta

Updated in 1.0.1

- Cover now shows whether Firefox is default or not

You can view (and improve) source code here:

Application versions: 
File firefox-default-handler-1.0.2-1.armv7hl.rpm17.32 KB01/12/2015 - 19:47
File firefox-default-handler-1.0-1.armv7hl.rpm19.42 KB24/11/2015 - 00:00
File firefox-default-handler-1.0.1-1.armv7hl.rpm18.9 KB25/11/2015 - 19:00



tobru's picture

Thanks a lot for this app! Would be great to have an i486 build for the Jolla Tablet...

Rikudou_Sennin's picture

Well, here it is :)

Will you please let me know if it works?

I don't have a tablet so I cannot test it.

tobru's picture

I've installed the package on my Jolla Tablet:

  • Installation works
  • App starts
  • I can chose to set Firefox as the default browser and it then says that Firefox now is the default browser
  • But: When I tab on a link which should open Firefox: Just nothing happens, not even the Jolla browser is started

This is probably because of a different behaviour on the tablet, who knows =(

Rikudou_Sennin's picture

Do you have developer mode enabled?

If so, can you try opening terminal and running:


and write me the result?

It can be any address that starts with http or https.

tobru's picture

The message:

invoker: Invoking execution: '/opt/alien/system/bin/adb'
error: device not found

tobru's picture

Ok, got ADB working with 'systemctl start adbd'. But now:

invoker: Invoking execution: '/opt/alien/system/bin/adb'
/system/bin/sh: am: not found

Rikudou_Sennin's picture

It looks like the tablet does not have the ActivityManager... I'm not sure if I can do anything about it.

tobru's picture

I searched through the filesystem and it looks like it's there: '/opt/alien/system/bin/am'. But somehow not in the path?

mvuori's picture

For a user, the ability to perhaps sometimes modify something has no value. What counts is that someone _has_ _done_ the functionality. Big thanks - this is a long-waited utility for us Firefox lovers.

Some people may have favorites saved as "desktop" icons that for some reason need to be opened with Sailfish browser (for GPS for example). The .desktop files for those seem to be in /home/nemo/.local/share/applications and can be fixed by changing the type (currrently "URL") to "Application" and changing "URL" parameter to "Exec" with the value: "sailfish-browser <URL>"


coderus's picture

I can modify my to create and assign handlers to intents. It will do same job in more correct way :)

DameCENO's picture

That would be nice Coderus, am trying to set UC browser min android as my default url handler but am no coding expert

Rikudou_Sennin's picture

Well, you can :) But my way doesn't seem really incorrect to me neither :)

coderus's picture

Yes it is. Your way is very dangerous kludges.

Nice way here:

Rikudou_Sennin's picture

Well, dangerous does not mean incorrect. Also it's very BFU friendly.

coderus's picture

Having adb running via wlan is very cool indeed, so everyone can connect to your phone and steal data :D

Modifying system files and restarting aliendalvik is also so awesome idea, i can't express how much it is awesome :D

Also with aliendalvik-control user can easy set any android application to any action using Mimer ;)

So please remove your toy from openrepos and we're just forget you did it at all.

Rikudou_Sennin's picture

What about this solution: I won't remove it and you will forget I did it at all?