Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Conversation

@relan
Copy link

@relan relan commented Oct 31, 2017

Replace binary component with source code. This time compatible with API 15.

Fixes #386

relan added 5 commits October 31, 2017 17:47
Exact copy of android.os.FileUtils functions (from AOSP 7.1.2), only Slog
is replaced with Log.
Those functions can set different permissions for owner and everyone else.
For example FileUtils.setPermissions(path, 7, 1) will mean Unix mode 0711:
read, write, execute for owner; only execute for group and others.

There is no need to set group permissions specifically. When a new app is
being installed, Android creates a new Unix user and group for it. Since
groups aren't shared, they don't actually participate in access rights
checking: when we access our file, "owner" permissions are in effect; when
another app accesses our file, "other" permissions are used.
Not needed anymore.
@Bubu
Copy link

Bubu commented Apr 4, 2018

After testing this for a while I'll add this patch directly to fdroid for now, hope this is okay.

@rovo89 Please still consider merging this. :-)

hubot pushed a commit to f-droid/fdroiddata that referenced this pull request Apr 4, 2018
Pull @relan's patch from rovo89/XposedInstaller#402
into fdroid for now.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants