Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various changes to support automatically pulling sets of paths to use… #30

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

zphensley42
Copy link

… with the enigma tasks instead of a single 'app' task

Primarily: The original tasks would only function on a single 'app' task. This patch allows multiple dependencies to be 'enigmatized' while just including in the the base application, allowing it to be used with library modules.

Duplicate sources are handled via separate package names.

… with the enigma tasks instead of a single 'app' task
@zphensley42
Copy link
Author

The .idea files could stand to be git ignored, it seems.

@@ -385,6 +385,9 @@ public void injectFakeKeys() {
int sizeValue = Utils.getRandomNumberInRange(10, 30);
String randomValue = TextUtils.getRandomString(sizeValue, TextUtils.KEY_CHARACTERS);

System.out.println("Injecting fake param: " + fakeParamName);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debugging stuff, to be removed.

@@ -398,8 +401,13 @@ public void injectFakeKeys(String fakeParamName, String randomValue) {
ArrayList<CodeBlock> classBlocks = getBlocksByType(CodeBlock.BlockType.Class);
ArrayList<CodeBlock> functions = getFunctions();

System.out.println("classBlocks size: " + classBlocks.size());
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

if (Utils.arrayNotEmpty(classBlocks) && Utils.arrayNotEmpty(functions)) {

System.out.println("Utils.arrayNotEmpty(classBlocks) && Utils.arrayNotEmpty(functions) PASSED");
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

code.encryptStrings(hash, InjectCodeTask.FUNCTION_NAME);

if (injectFakeKeys) code.injectFakeKeys();
if (injectFakeKeys) {
System.out.println("INJECTING FAKE KEYS");
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

@zphensley42
Copy link
Author

Probably goes a long way towards addressing:

#27
#28
#12

and maybe others.

@Michaelhun741
Copy link

Is this already done?
I tried it, and indeed the module does encryption when compiling, but the original text is still maintained when de-compiling the apk file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants