Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Applications
Tor Browser
Commits
2cd07f69
Commit
2cd07f69
authored
Jun 27, 2024
by
Pier Angelo Vendrame
Browse files
Options
Downloads
Patches
Plain Diff
fixup! Bug 42247: Android helpers for the TorProvider
Documentation improvements.
parent
b9ad83f9
No related branches found
No related tags found
1 merge request
!1049
Bug 42616 (part 2): Rebased onto Firefox 128.0esr release
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mobile/android/geckoview/src/main/java/org/mozilla/geckoview/TorIntegrationAndroid.java
+9
-6
9 additions, 6 deletions
...ain/java/org/mozilla/geckoview/TorIntegrationAndroid.java
with
9 additions
and
6 deletions
mobile/android/geckoview/src/main/java/org/mozilla/geckoview/TorIntegrationAndroid.java
+
9
−
6
View file @
2cd07f69
...
...
@@ -83,10 +83,11 @@ public class TorIntegrationAndroid implements BundleEventListener {
private
final
HashMap
<
Integer
,
MeekTransport
>
mMeeks
=
new
HashMap
<>();
private
int
mMeekCounter
;
// mSettings is a java side copy of the authoritative settings in the JS code.
// it's useful to maintain as the ui may be fetching these options often and
// we don't watch each fetch to be a passthrough to JS with JSON serialization and
// deserialization each time
/**
* mSettings is a Java-side copy of the authoritative settings in the JS code.
* It's useful to maintain as the UI may be fetching these options often and we don't watch each
* fetch to be a passthrough to JS with marshalling/unmarshalling each time.
*/
private
TorSettings
mSettings
=
null
;
/* package */
TorIntegrationAndroid
(
Context
context
)
{
...
...
@@ -342,11 +343,13 @@ public class TorIntegrationAndroid implements BundleEventListener {
return
;
}
try
{
// First remove the permissions for everybody...
directory
.
setReadable
(
false
,
false
);
directory
.
setReadable
(
true
,
true
);
directory
.
setWritable
(
false
,
false
);
directory
.
setWritable
(
true
,
true
);
directory
.
setExecutable
(
false
,
false
);
// ... then add them back, but only for the owner.
directory
.
setReadable
(
true
,
true
);
directory
.
setWritable
(
true
,
true
);
directory
.
setExecutable
(
true
,
true
);
}
catch
(
SecurityException
e
)
{
Log
.
e
(
TAG
,
"Could not set the permissions to the IPC directory."
,
e
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment