mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-23 10:05:23 +00:00
Fix #5377
This commit is contained in:
parent
920d059837
commit
1a1b346c05
@ -204,8 +204,12 @@ fun genStubManifest(srcDir: File, outDir: File): String {
|
||||
names.addAll(c3.subList(0, 10))
|
||||
names.shuffle(RANDOM)
|
||||
|
||||
// Distinct by lower case to support case insensitive file systems
|
||||
val pkgNames = names.distinctBy { it.toLowerCase(Locale.ROOT) }
|
||||
val pkgNames = names.subList(0, 50)
|
||||
// Distinct by lower case to support case insensitive file systems
|
||||
.distinctBy { it.toLowerCase(Locale.ROOT) }
|
||||
// Old Android does not support capitalized package names
|
||||
// Check Android 7.0.0 PackageParser#buildClassName
|
||||
.map { it.decapitalize(Locale.ROOT) }
|
||||
|
||||
var idx = 0
|
||||
fun isJavaKeyword(name: String) = when (name) {
|
||||
|
Loading…
Reference in New Issue
Block a user