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

Python For Android Obfuscation #328

Closed
ghost opened this issue Sep 11, 2020 · 8 comments
Closed

Python For Android Obfuscation #328

ghost opened this issue Sep 11, 2020 · 8 comments

Comments

@ghost
Copy link

ghost commented Sep 11, 2020

I'm trying to obfuscate a project that already runs well with PyArmor on Windows and Linux, it's cross platform and i'm trying to obfuscate the Android version, but without success, i checked other issues like #207 , but i always get this error when i run the app:

Screenshot_20200911_163401

OS Version: Arch Linux
Python Version: 3.8
PyArmor Version: 6.2.9 (Premium)
Android Version: 10
Build Tool: Buildozer

@jondy
Copy link
Contributor

jondy commented Sep 12, 2020

What's exact arch in this platform? For example, X86_64 or ARMv7. And Which libc is it built with? glibc, musl or static libc

@ghost
Copy link
Author

ghost commented Sep 12, 2020

It's a ARMv7 build running on Android.

@jondy
Copy link
Contributor

jondy commented Sep 12, 2020

There are 3 platforms for armv7, android.armv7 for staic libc, linux.armv7 for glibc and uclibc.armv7 for uclibc. Which one is used? How about obfuscating the scripts with others? For example,

pyarmor obfuscate --platfrom uclibc.armv7 foo.py

@ghost
Copy link
Author

ghost commented Sep 12, 2020

Can linux.armv7 and uclibc.armv7 work on Android?

@jondy
Copy link
Contributor

jondy commented Sep 12, 2020

These dynamic libraries work in any linux platform, but linked to different libc. For example, linux.armv7 is built with dynamic library libc-6.so, I don't know which libc used in your Android platform, so just try it.

@ghost
Copy link
Author

ghost commented Sep 12, 2020

Okay, i'll test it, in a few hours i will return with the result.

@jondy jondy closed this as completed Oct 7, 2020
@47hxl-53r
Copy link

I created a python script, Trying to Obfuscate it for android platforms like Termux. How can i Obfuscate My script from Kali linux machine for android platforms

@jondy
Copy link
Contributor

jondy commented Apr 15, 2022 via email

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

No branches or pull requests

2 participants