Posts

Showing posts with the label grails

How to decompile apk from Play Store

This is how you can decompile an application you have installed on your phone. My phone is rooted, uses RootBox 3.5 and has BusyBox installed. You may need to have that too if you want to follow my steps completly. Let's start: 1. Install application from market 2. Download apk to computer First you need to locate the apk on the phone. Connect to the phone: adb shell Find the apk in the folder the apk are downloaded to. It is ussualy in '/data/app/' or '/system/app/'. The apk is called as the id from the Play Store, for example 'com.something.someapp.apk'. You can see this in the url from Play. Next you need to pull it to the computer. Once you have located the apk and know it's name exit adb. On your PC execute: adb pull /data/app/com.something.someapp.apk 3. Transform apk to jar I use dex2jar dex2jar-0.0.9.11/d2j-dex2jar.sh com.something.someapp.apk 4. See the code inside the jar I use Java Decompiler Just open the ...

JSecurity and active directory in grails

This was done as a way to force domain users to log in before using the applications. The old implementation used the jcifs library with jetty, but after upgrading to glashfish, jcifs started to fail randomly, especially when the application was accessed using IE. And, after reading on their web site that the httpfilter is no longer supported, I started looking for free alternatives to Jcifs. On the JSecurity plugin home it said it works with ldap, but the configuration they gave seemed complicated and I didn't really get it. On the other hand I found this nice blog entry of how to use java/jndi and active directory. http://mhimu.wordpress.com/2009/03/18/active-directory-authentication-using-javajndi/ This is how o put them together: 1. install the jsecurity plugin in your grails app grails install-plugin jsecurity 2. generate the ldap realm and the auth controller. This comes default with jsecurity. grails create-ldap-realm grails create-auth-controller 3. Create a filter to redi...