I release a new java based Game Maker Studio extension having spent many days putting it together.
Few downloads later someone decides it nice, they get your extension and the code and make their own copy/version and sell it on marketplace for much lower price. As I beleive the java code in the extensions is easily exposed.
So whats stopping people from copying and undercutting you?
I suppose you can obfuscate your code, java etc..
But thats not really hard to still copy and alter.
What else is there. I was thinking of wrapping the class into a jar file (mind you I know nothing about this) and then importing those and just referencing the functions/methods in the extensions .java file. Is this possible if so id like to know how.
Related
So I am working(actually still planning) on a GUI project, and I need control over every single pixel on the window. I have done a lot of Java and I know how to do that, the problem is that I want to do all the logic on C++(because I just love how it works) and I don't even know how to setup a GUI in C++(I already took a small look at Qt, but I haven't done anything great).
So I had this idea of writing all the GUI related things in Java and somehow compile java source files to object files that can be linked with the rest of C++ code. This is just a personal project I am working on so I don't care if I lose the cross-compatibility of Java.
Thanks to anyone who took time to read this.
Look into JNI. Years ago, when doing the game of life in programming class, I chose to have a C function do the pixel work, just like you are thinking of, because it, ahem, back then, made the graphics work run many times faster. Noticeably, back then anyway.
Write the Java Program and Compile
Generate header file from java class
Write the C Program
Generate Shared Library File
Run Java Program
Here's one of probably many resources to show you.
Is it possible to set the java decompiler to return everything it finds during the process? I have a game I have been working on for a little over a year, I am still pretty new to java and have been beating my head against the keyboard and api documentation to produce this game. I come home from a business trip and find that my house has been broken into and my workstation is gone. I still have my keystore because I keep it on a flashdrive for safety. I also keep my project files on a flashdrive, which I did not remove from my workstation before leaving on my trip. I have tried to use every .apk decompiler I can find to recover my source code. They all return some code but of course because of proguard almost all of it is unusable. I have a copy of my signed .apk on my phone for testing purposes and it is debuggable, is there anyway to recover all of my project files from this? Like setting the java decompiler to very verbose, or a different setting that will produce a 1:1 copy of each file reguardless of if the decompiler thinks it is relavent?
Edit: I have used dj java decompiler, androchef decompiler and the decompiler # www.decompileandroid.com which is just a script that is run on their server to use the standard tools included in eclipse adt package for developing android applications.
I used to deobfuscate Java applications for a hobby and have worked on several decompilers, so if you send it to me, I might be able to help.
That being said, there are some things that are simply impossible to fix. You're never going to get back anything that isn't present in the compiled apk because it's impossible to recover information that isn't there. Among other things, this includes comments, original source code formatting, and compile time annotations. The obfuscation step will also strip out class names, variable names, unused methods, etc.
One other thing to try is to see if there's any possible way that a non obfuscated version of apk survived. Did you ever upload your files anywhere else?
I'm trying to learn new android methods.Before I develop new android application, I'm searching published applications.
If I decompile my application's apk, class names and objects names remains same
But If I decompile application that is in market, class and object names contains letter. That is why I don't understand what programmer did in code.
Do they encrypt the code?
any way to decrypt it?
The apks were probably obfuscated with proguard. If it's your app, disable obfuscation.
As for why apps on the market do it, it's so you can't do what you're doing now and decompile to (coherent) source. As far as I know there is no way around it, and it would be unethical to try do so. We're software developers here, so we won't help you take another developers work from them.
They obfuscated the code. Obfuscation is an automatic process which renames all classes/methods/fields with short sequential names, removes unused classes/methods/fields, and sometimes encrypts strings.
There is no easy way to deobfuscate the code.
PRODUCT_PACKAGE_OVERLAYS is good. But it's used for some kind of resource. We maintain many Android projects. In reality, not only resources but also java code varies from device to device. Java is not C, it doesn't support MACRO. So it's hard to keep all modifications in just one code copy. I need something like PRODUCT_PACKAGE_OVERLAYS which can override the java code in the main tree by a file with the same name from somewhere else. Is that possible? Or can you guys share the ideas about how you manage multi android projects source code?
Ok, Please be gentle and kind. I am taking an Android Programming class in college and its our teachers first semester so he is learning as we are... Nothing against him, he's a good teacher, just doesn't know the answer.
I don't know how to put this in Android/java language so here goes...
Is there a way to use something similar to Includes, in web design, in Android. I am looking to add similar java code from one activity to the next, can i make a file that if i change this one file it will change in all the files its included it.
I know it can be done with the XML files but i couldn't find anything to show that it can be done in the actually coding... but then again i don't know the correct terminology. Please any help would be great. And thank you for taking the time to read and answer me. I apologize if this was somewhere else, I just couldn't find it.. Thanks again
Put anything you wish to "include" in Java classes, then import them. http://leepoint.net/notes-java/language/10basics/import.html
Android Programming class! I would've loved that in University...
Regardless, if you're using Eclipse for your IDE, it should pickup any changes from your java imports automatically. If you choose to refactor other java classes within your project, a rename for example (with "Update All References"), will update all references to that class across your project.
You could also use Maven (dependency management) to pull the latest third-party (or other) .jars at build time, if that's applicable to what your needs are.
:)