-
Decompiling/Reverse Engineering Android Apps
For a few months, I have been working on Android development. I knew how easy is to get an app’s apk on the internet. That’s why I researched ways of decompiling apk file and protection for reverse engineering I was surprised by results because it was too easy to decompile...
-
handlestuffandwritetofile() is a total mistake, and more...
Everyone can write code which works and do what it is supposed to do. Every programmer creates routines(functions or methods or procedures) to reduce complexity, improve performance, readability and importantly to avoid duplicate code. Every programmer accepts that this is is the greatest invention in computer science. However not all...
-
Greatest Common Divisor in ARM Assembly
ARM(specifically ARM7) doesn’t have a division instruction (UDIV or SDIV), at least I’ve never seen any. That’s why we do it like the above (higher level understandable code) int divide(int input, int divisor) { int result = 0; while(input >= divisor) { input = input - divisor; result++; } return...
-
Blinking Apple Logo
I was bored and I realized that my macbook’s apple logo looks amazing in dark, first I wondered how I can make it brighter. Answer was simple, changing macbook’s display brightness changes apple logo brightness too. Then I wondered how I can make a show with it(on-off-on-off). It was hardly...
-
Swapping Without Using A Temp
If you have never heard of swapping variable1 to variable2, variable2 to variable1 without using a third variable temporarily, you might find it interesting. When I read about it first, I thought it was impossible but it wasn’t. There is an algorithm which uses XOR operation. Background 0 XOR 0...
-
Running C in Java with JNA
It is very easy to run your native library in Java by using JNA(Java Native Access). Some terminal commands then it is done. I will show you how to print pointer which java doesn’t have. Do all these, in the same folder. Source First we need to write c code...