Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
SandHook
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
SandHook
Commits
fc571b2c
Commit
fc571b2c
authored
Apr 10, 2019
by
swift_gan
Committed by
swift_gan
Apr 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix XSharePreference
parent
6f69e00a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
30 deletions
+5
-30
build.gradle
build.gradle
+1
-1
XmlUtils.java
...pat/src/main/java/com/android/internal/util/XmlUtils.java
+2
-2
SELinuxHelper.java
...t/src/main/java/de/robv/android/xposed/SELinuxHelper.java
+2
-27
No files found.
build.gradle
View file @
fc571b2c
...
...
@@ -30,7 +30,7 @@ ext {
userOrg
=
'ganyao114'
groupId
=
'com.swift.sandhook'
repoName
=
'SandHook'
publishVersion
=
'3.
2.0
'
publishVersion
=
'3.
4.6
'
desc
=
'android art hook'
website
=
'https://github.com/ganyao114/SandHook'
licences
=
[
'Apache-2.0'
]
...
...
xposedcompat/src/main/java/com/android/internal/util/XmlUtils.java
View file @
fc571b2c
...
...
@@ -3,11 +3,11 @@ package com.android.internal.util;
import
org.xmlpull.v1.XmlPullParserException
;
import
java.io.InputStream
;
import
java.util.Map
;
import
java.util.
Hash
Map
;
public
class
XmlUtils
{
public
static
Map
readMapXml
(
InputStream
inputStream
)
throws
XmlPullParser
Exception
{
public
static
final
HashMap
<
String
,
?>
readMapXml
(
InputStream
in
)
throws
XmlPullParserException
,
java
.
io
.
IO
Exception
{
return
null
;
}
...
...
xposedcompat/src/main/java/de/robv/android/xposed/SELinuxHelper.java
View file @
fc571b2c
package
de
.
robv
.
android
.
xposed
;
import
com.swift.sandhook.xposedcompat.XposedCompat
;
import
de.robv.android.xposed.services.BaseService
;
import
de.robv.android.xposed.services.DirectAccessService
;
...
...
@@ -10,10 +8,6 @@ import de.robv.android.xposed.services.DirectAccessService;
*/
public
final
class
SELinuxHelper
{
static
{
initForProcess
(
XposedCompat
.
processName
);
}
private
SELinuxHelper
()
{}
/**
...
...
@@ -54,31 +48,12 @@ public final class SELinuxHelper {
public
static
BaseService
getAppDataFileService
()
{
if
(
sServiceAppDataFile
!=
null
)
return
sServiceAppDataFile
;
throw
new
UnsupportedOperationException
();
return
new
DirectAccessService
();
}
// ----------------------------------------------------------------------------
private
static
boolean
sIsSELinuxEnabled
=
false
;
private
static
BaseService
sServiceAppDataFile
=
n
ull
;
private
static
BaseService
sServiceAppDataFile
=
n
ew
DirectAccessService
()
;
/*package*/
static
void
initOnce
()
{
try
{
//sIsSELinuxEnabled = SELinux.isSELinuxEnabled();
}
catch
(
NoClassDefFoundError
ignored
)
{}
}
/*package*/
static
void
initForProcess
(
String
packageName
)
{
if
(
sIsSELinuxEnabled
)
{
if
(
packageName
==
null
)
{
// Zygote
//sServiceAppDataFile = new ZygoteService();
}
else
if
(
packageName
.
equals
(
"android"
))
{
//system_server
//sServiceAppDataFile = BinderService.getService(BinderService.TARGET_APP);
}
else
{
// app
sServiceAppDataFile
=
new
DirectAccessService
();
}
}
else
{
sServiceAppDataFile
=
new
DirectAccessService
();
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment