-
-
Notifications
You must be signed in to change notification settings - Fork 94
feat(root): refactor root access #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
researchxxl
wants to merge
58
commits into
main
Choose a base branch
from
refactorRoot
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
802ae36
feat(root): refactor root access
researchxxl 5d03d39
readd imports dropped in e778efb4d6e0fc30f4ff8fabeb8c0567537a66c7
researchxxl 7ab68db
Merge branch 'main' into refactorRoot
researchxxl 68de8d3
Merge branch 'main' into refactorRoot
researchxxl cef2e2f
Merge branch 'main' into refactorRoot
researchxxl 43d3200
Merge branch 'main' into refactorRoot
researchxxl 77f6283
Merge branch 'main' into refactorRoot
researchxxl f5697d0
Merge branch 'main' into refactorRoot
researchxxl 0b804f8
Merge branch 'main' into refactorRoot
researchxxl 5bafb68
Merge branch 'main' into refactorRoot
researchxxl cdbfc52
Merge branch 'main' into refactorRoot
researchxxl 5694aff
Merge branch 'main' into refactorRoot
researchxxl 6b8d6e4
Resolve conflict with main, add use root preference to new settings s…
dbhavsar76 bbdbafc
Merge branch 'main' into refactorRoot
researchxxl a787407
Merge branch 'main' into refactorRoot
researchxxl 59d7dd4
restart syncthing after enabling/disabling root (#173)
dbhavsar76 bfc6b85
Merge branch 'main' into refactorRoot
researchxxl d8014fd
Merge branch 'main' into refactorRoot
researchxxl 6cfd409
Merge branch 'main' into refactorRoot
researchxxl c8a3d7a
Merge branch 'main' into refactorRoot
researchxxl 5583f1c
Merge branch 'main' into refactorRoot
researchxxl 7e80aac
Merge branch 'main' into refactorRoot
researchxxl e4e8dab
Merge branch 'main' into refactorRoot
researchxxl 69f216c
Merge branch 'main' into refactorRoot
researchxxl 8e86422
Merge remote-tracking branch 'origin/main' into refactorRoot
dbhavsar76 b9cad51
Merge branch 'main' into refactorRoot
researchxxl a32e4c6
Merge branch 'main' into refactorRoot
researchxxl 60c557f
abstract all the libsuperuser calls to new RootAccess adapter
dbhavsar76 e715ce5
resolve conflicts
dbhavsar76 79eddd4
Merge branch 'main' into refactorRoot
researchxxl 108ff5c
java.io.DataOutputStream
researchxxl 37cd13e
Merge branch 'main' into refactorRoot
researchxxl a2a0005
Merge branch 'main' into refactorRoot
researchxxl 36f61df
Merge branch 'main' into refactorRoot
researchxxl 025b206
Merge branch 'main' into refactorRoot
researchxxl d2e9cba
Merge branch 'main' into refactorRoot
researchxxl 40d41fa
Merge branch 'main' into refactorRoot
researchxxl c7b2a9a
Update SettingsBehaviorScreen.kt
researchxxl 97cdb0b
Merge branch 'main' into refactorRoot
researchxxl 1be472f
Merge branch 'main' into refactorRoot
researchxxl de323ec
Merge branch 'main' into refactorRoot
researchxxl 4b6dc20
Merge branch 'main' into refactorRoot
researchxxl 4c65155
Merge branch 'main' into refactorRoot
researchxxl 48ddedc
Merge branch 'main' into refactorRoot
researchxxl 95dc859
Merge branch 'main' into refactorRoot
researchxxl fb0b138
Merge branch 'main' into refactorRoot
researchxxl ee19dac
Merge branch 'main' into refactorRoot
researchxxl be5253e
fix bootreceiver
researchxxl db3f0b9
util: add useroot to new funcs
researchxxl 08a7d37
fix restapi
researchxxl 40788a7
add preference.java
researchxxl 8ec299e
fix syncthingservice
researchxxl 18295cb
fix conflict detector not working in root mode
researchxxl 5259afc
Apply suggestions from code review
researchxxl 523228c
preference into appprefs
researchxxl fe3a6f6
simplify util
researchxxl 2089e8f
Merge branch 'main' into refactorRoot
researchxxl 71e424d
Merge branch 'main' into refactorRoot
researchxxl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
app/src/main/java/com/nutomic/syncthingandroid/root/RootAccess.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| package com.nutomic.syncthingandroid.root; | ||
|
|
||
| import eu.chainfire.libsuperuser.Shell; | ||
|
|
||
| public final class RootAccess { | ||
|
|
||
| private RootAccess() { | ||
| } | ||
|
|
||
| public static boolean isRootAvailableBlocking() { | ||
| return Shell.SU.available(); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.