Root Mode for File Browser v2+

Rating: 
5
Your rating: None Average: 5 (9 votes)

Run File Browser with super user privileges. (For version 2.0.0+.)

A setuid helper binary is used to start the app. The source file is included in the package at `/usr/share/harbour-file-browser-root/start-root-helper.c`.

Warning

USE AT YOUR OWN RISK. This app can be used to corrupt files on the phone and make the phone unusable. The author of File Browser does not take any responsibility if that happens. So, be careful.

 

Just as File Browser, this is released under the terms of the GNU GPL v3+. See the main repository for more information. Sources can be found on Github (directory 'root').

Screenshots: 
Application versions: 
AttachmentSizeDate
File harbour-file-browser-root-1.3.0-1.i486.rpm24.36 KB27/06/2024 - 15:29
File harbour-file-browser-root-1.3.0-1.aarch64.rpm24.44 KB27/06/2024 - 15:29
File harbour-file-browser-root-1.3.0-1.armv7hl.rpm24.42 KB27/06/2024 - 15:29
Changelog: 

1.3.0-1 (2024-01-06):
- Fixed root mode for SFOS 4.x
- known possible bug: there might be problems with dconf after running File Browser as root. Please observe and report any issues you encounter!

1.2.1-1 (2022-04-03):
- Added a Sailjail profile so root mode can be used on SFOS 4.x
- Updated the build process

1.2.0-1 (2021-01-07):
- Renamed to harbour-file-browser-root (dropped beta suffix)
- Marked as conflicting with legacy root app/patch
- Switched versioning scheme to use three digits

1.1-1 (2020-05-10):
- Fixed starting from the terminal

1.0-1 (2020-05-02):
- Fixed building
- Added and improved documentation
- Included in harbour-file-browser's main repository

0.4-1 (2019-12-30):
- Made compatible with released version 2.0.0+ (beta) of File Browser
- Renamed and rebuilt package
- Added re-build instructions to RPM description

0.3-1 (2019-06-04): [continued by ichthyosaurus]
- Forked version 0.2-5 of filebrowserroot by Schturman
- Refactored using correct icons and fixed launcher entry
- Renamed to be more similar to File Browser

0.2-5 (2019-02-06): [by Schturman]
- Changes in SPEC file. Obsoletes changed to Conflicts.

 

Comments

objectifnul's picture

Still no root access after 4.4.0.58. Any work in progress on that?

eson's picture

No root access for SFOS 4

ichthyosaurus's picture

That's probably an issue with the new permissions system... Unfortunately I can't test it because there's no emulator available, and I can't update my phone yet.

eson's picture

Yes, the same problem emerges in all the "as root" apps.

ichthyosaurus's picture

Version 1.2.0 is the first non-beta release.

You will have to manually remove the old package harbour-file-browser-root-beta (via the launcher or using the package manager) and install the updated package named harbour-file-browser-root.

danfin's picture

why does Root Mode for File Browser v2+ not five me access to

HOME/.local/share/system/privileged/?

says no permission to read. But If ia am root I am supposed to have, or not? Also changing permissions ain't permitted, of course.

ichthyosaurus's picture

I don't know. Can you access it in the console when using devel-su? Maybe it is a problem with groups?

peterleinchen's picture

Many thanks for this complete and now my favourite file browser on SFOS.

Normally I use console when doing stuff as root but I see the need for some other.

What I do not like is to provide root acccess without authenticating (I know device lock but root is root).

So I modified your helper.c to start a console and ask for devel-su password and only then start file browser as root. I used karin_zhao's MeeGo terminal karinconsole.  If you are interested let me know (maybe you could integrate it into startup of your application?).

 

And please uncomment the 'mkdir -p /run/user/0/dconf'. Without this you cannot start file-browser-as-root as root from terminal (or need to create oneself before).

ichthyosaurus's picture

Thanks, glad you like it :).

I fixed the dconf-thing with v1.1.

Your point is absolutely valid, I just didn't find an "aesthetically pleasing" way to prompt for authentication. I'd be happy if you would send me your modified helper.c! I'll see what I can do...

peterleinchen's picture

Done.

TIA

Bobsikus's picture

hello, thank you for it and for newer file browser too of course :) about this root, how is handled the cover of the "rooted" app?

ichthyosaurus's picture

It's part of File Browser, this app works only as a wrapper to start the normal app as root.

In engine.cpp there's a check if the app is currently running as root. It is handled in FileBrowserCover.qml...

 

bool Engine::runningAsRoot()
{
    if (geteuid() == 0) return true;
    return false;
}

 

ferlanero's picture

Great adittion for File Browser Beta. Thanks! Could you add i486 support for tablets, please? Really needed on "big" Sailfish devices too.

ichthyosaurus's picture

Added :). I don't know why it was built for i586 when I compiled it with the i486 target yesterday...

ferlanero's picture

Thank you very much for your quick response!

carmenfdezb's picture

Thank you for adding root mode =)

ichthyosaurus's picture

You're welcome :)