Is it legal to decompile an apk and use part of it's code? (more specifically: a URL connector (I haven't learned that yet)).
The rest of the app (layouts and such) is made by me. Can I publish this app without being concerned on the legal front?
Higher-level reverse engineering such as decompilation is illegal as it is a threat to the ideas and intellectual property of the software creators via recreating the source code, which is the protected element.
Use apktool to get the resource files out of the apk. Use dex2jar to get a jar file that contains the classes in a format that Eclipse will like. Create an Eclipse project point it at the resource files and the new jar file. Open the jar file with a zip utility and delete the existing resources.
However, decompiling a program to circumvent a system that controls access to copyrighted work is considered illegal.
Not all uses of decompilers are Illegal. Companies have tried to sue to stop it, but; that's only civil, not criminal, and therefore not illegal; and they've only won when the content was given to an outside party from whom the companies did not receive payment, that the person has been shown to break the law.
Decompiling is absolutely LEGAL, regardless of what the shills say. At most, you can be sued for unauthorized activity relating to software unless you're redistributing it. Courts in the U.S. have always upheld the right of users to know exactly what code is being installed on their systems by programs they have legitimately obtained.
People REALLY need to quit saying "ILLEGAL" unless they know what they're talking about. There is absolutely NO law in the U.S. that states you cannot copy for private purposes or decompile software. Companies have tried to sue to stop it, but; a) that's only civil, not criminal, and therefore not ILLEGAL; and b) they've only won when the content was given to an outside party from whom the companies did not receive payment. IE the person has been shown to break the law.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With