This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: libziprs, new zipalign, manifest patching
- Loading branch information
1 parent
e0d380e
commit e76e132
Showing
11 changed files
with
76 additions
and
94 deletions.
There are no files selected for viewing
This file contains 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 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 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
24 changes: 24 additions & 0 deletions
24
app/src/main/java/com/github/redditvanced/installer/ReplaceAttrsVisitor.kt
This file contains 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,24 @@ | ||
/* | ||
* Copyright (c) 2021 Juby210 | ||
* Licensed under the Open Software License version 3.0 | ||
*/ | ||
package com.github.redditvanced.installer | ||
|
||
import pxb.android.axml.NodeVisitor | ||
|
||
open class ReplaceAttrsVisitor( | ||
nv: NodeVisitor, | ||
private val attrs: Map<String, Any> | ||
) : NodeVisitor(nv) { | ||
override fun attr(ns: String?, name: String, resourceId: Int, type: Int, value: Any?) { | ||
val replace = attrs.containsKey(name) | ||
val newValue = attrs[name] | ||
super.attr( | ||
ns, | ||
name, | ||
resourceId, | ||
if (newValue is String) TYPE_STRING else type, | ||
if (replace) newValue else value | ||
) | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains 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