Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
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
Magisk
Commits
34ff7645
Commit
34ff7645
authored
Oct 15, 2019
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stabilize resource IDs
parent
1b3a009d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
9 deletions
+42
-9
.gitignore
.gitignore
+3
-2
resources.xml
app/src/main/res/values/resources.xml
+12
-0
build.gradle
build.gradle
+7
-7
stable-ids.txt
stable-ids.txt
+20
-0
No files found.
.gitignore
View file @
34ff7645
...
@@ -2,8 +2,9 @@ out
...
@@ -2,8 +2,9 @@ out
*.zip
*.zip
*.jks
*.jks
*.apk
*.apk
config.prop
/config.prop
update.sh
/update.sh
/stub-ids.txt
# Built binaries
# Built binaries
native/out
native/out
...
...
app/src/main/res/values/resources.xml
View file @
34ff7645
...
@@ -8,4 +8,16 @@
...
@@ -8,4 +8,16 @@
<string
name=
"magiskhide"
translatable=
"false"
>
Magisk Hide
</string>
<string
name=
"magiskhide"
translatable=
"false"
>
Magisk Hide
</string>
<string
name=
"empty"
translatable=
"false"
/>
<string
name=
"empty"
translatable=
"false"
/>
<!-- Preserve 10 string slots for stub -->
<string
name=
"preserve_0"
translatable=
"false"
/>
<string
name=
"preserve_1"
translatable=
"false"
/>
<string
name=
"preserve_2"
translatable=
"false"
/>
<string
name=
"preserve_3"
translatable=
"false"
/>
<string
name=
"preserve_4"
translatable=
"false"
/>
<string
name=
"preserve_5"
translatable=
"false"
/>
<string
name=
"preserve_6"
translatable=
"false"
/>
<string
name=
"preserve_7"
translatable=
"false"
/>
<string
name=
"preserve_8"
translatable=
"false"
/>
<string
name=
"preserve_9"
translatable=
"false"
/>
</resources>
</resources>
build.gradle
View file @
34ff7645
...
@@ -85,13 +85,13 @@ subprojects {
...
@@ -85,13 +85,13 @@ subprojects {
}
}
aaptOptions
{
aaptOptions
{
//
Preserve stub
resource IDs
//
Handle
resource IDs
File
publicTxt
=
rootProject
.
file
(
'stub-public
.txt'
)
File
resIds
=
rootProject
.
file
(
'stable-ids
.txt'
)
if
(
publicTxt
.
exists
())
{
File
stubIds
=
rootProject
.
file
(
'stub-ids.txt'
)
additionalParameters
"--stable-ids"
,
"${publicTxt.absolutePath}"
if
(
module
.
name
==
'app'
&&
resIds
.
exists
())
}
else
if
(
module
.
name
==
'stub'
)
{
additionalParameters
"--stable-ids"
,
"${resIds.absolutePath}"
additionalParameters
"--emit-ids"
,
"${publicTxt.absolutePath}"
else
if
(
module
.
name
==
'stub'
)
}
additionalParameters
"--emit-ids"
,
"${stubIds.absolutePath}"
}
}
}
}
}
}
...
...
stable-ids.txt
0 → 100644
View file @
34ff7645
com.topjohnwu.magisk:color/ic_launcher_background = 0x7f010000
com.topjohnwu.magisk:drawable/ic_launcher = 0x7f020000
com.topjohnwu.magisk:drawable/ic_logo = 0x7f020001
com.topjohnwu.magisk:drawable/ic_magisk = 0x7f020002
com.topjohnwu.magisk:drawable/ic_splash_activity = 0x7f020003
com.topjohnwu.magisk:style/SplashTheme = 0x7f040000
com.topjohnwu.magisk:style/SplashThemeBase = 0x7f040001
com.topjohnwu.magisk:style/SplashThemeBase.V19 = 0x7f040002
com.topjohnwu.magisk:xml/file_paths = 0x7f050000
com.topjohnwu.magisk:string/preserve_0 = 0x7f030000
com.topjohnwu.magisk:string/preserve_1 = 0x7f030001
com.topjohnwu.magisk:string/preserve_2 = 0x7f030002
com.topjohnwu.magisk:string/preserve_3 = 0x7f030003
com.topjohnwu.magisk:string/preserve_4 = 0x7f030004
com.topjohnwu.magisk:string/preserve_5 = 0x7f030005
com.topjohnwu.magisk:string/preserve_6 = 0x7f030006
com.topjohnwu.magisk:string/preserve_7 = 0x7f030007
com.topjohnwu.magisk:string/preserve_8 = 0x7f030008
com.topjohnwu.magisk:string/preserve_9 = 0x7f030009
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