fix crash when obfuscation disabled (#1863)
This commit is contained in:
parent
a1a9cb4d1b
commit
0fb6931ef1
|
|
@ -92,11 +92,13 @@ public class LSPApplicationService extends ILSPApplicationService.Stub {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
case OBFUSCATION_MAP_TRANSACTION_CODE: {
|
case OBFUSCATION_MAP_TRANSACTION_CODE: {
|
||||||
|
var obfuscation = ConfigManager.getInstance().dexObfuscate();
|
||||||
var signatures = ObfuscationManager.getSignatures();
|
var signatures = ObfuscationManager.getSignatures();
|
||||||
reply.writeInt(signatures.size() * 2);
|
reply.writeInt(signatures.size() * 2);
|
||||||
for(Map.Entry<String,String> entry : signatures.entrySet()){
|
for(Map.Entry<String,String> entry : signatures.entrySet()){
|
||||||
reply.writeString(entry.getKey());
|
reply.writeString(entry.getKey());
|
||||||
reply.writeString(entry.getValue());
|
// return val = key if obfuscation disabled
|
||||||
|
reply.writeString(obfuscation ? entry.getValue() : entry.getKey());
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue