This is a blog dedicated to all those problems I faced while making some things work, I might have struggled a lot to get the information from the net, this is to make my life easy whenever next time I want to do the same, or for someone who is in need of help, this may make their life easy too. Thanks for visiting my blog, feel free to mail me in case you have any questions.
Tuesday, December 2, 2014
Sunday, April 13, 2014
Change Default Data File Location in Outlook
Here is how to do it.
Start - Regedit
Navigate To: Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook
Right-Click Outlook Select New then String Value
Type “ForceOSTPath” without the quotes for the variable name and press Enter then Double-Click ForceOSTPath to Edit the string
Type the location you want your data files to use. In my case it was
C:\Users\pshetty1\Documents\Outlook Files
Click OK. You will need to close Outlook in order for Outlook to use this new setting. Now when you create a new OST data file Outlook will put it in the new location.
Remember that, after this you need to create a new profile, and make outlook to use this profile by default, and you can delete the old profile.
Friday, November 22, 2013
Android: How to Launch Another App from Your App
As you know in android everything has an Intent, so to launch another App from your app, you can create an Intent within your app saying that you want to launch the other App and then using that Intent start the activity as shown below.
Intent i = new Intent();
i.setComponent(new ComponentName ( "com.shetty.test","com.shetty.test.MainActivity"));
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(i);
Here what you need to notice is that the FLAG_ACTIVITY_NEW_TASK needs to be set, so that this is launched as a new task, else would result in Force Close.
Virtuous Ten Studio IDE for Reverse Engineering the Apks and Mods
Here is a screen shot of how it looks,
- The best part of this is
- The smali sytax highlight and the Java code generation with so much ease,
- The tools that are integrated into
- Easy navigation from the project source path to the binary path etc.
- Also best thing is after you have built the binary, you can directly push into the device, no need to copy and install on device, just a click.
- And You can get the apks directly from the phone without having use another shell prompt or adb to pull them from the /data/app folder.
Thursday, November 14, 2013
Android Application Hacking
- You can install some ad blocking apps which would actually modify your host file in Linux to block all the ad sites, which would not allow the app to fetch ad and show.
- But some ads would show local ad banners when network connections are not available.
- Some apps would need internet connection for their working, so we can't disable internet connection in first place.
- Some would leave a blank space in the screen which is reserved for the ads, which eat up lot of screen real estate.
- Having said all this blocking the network connection for this app may not be so convenient, but it would be easy to do this for most of the apps, and most apps don’t leave space when network connection is not available, and hence this should be considered as the first preferred option. :)
- You can find some very good apps for firewall, which can do this for you. I personally use Droid Wall to do handle the firewall.
- You can remove the ad content from the XML layout and recompile the app.
- You need to search for the string @id/ad in all the xml files in resource folder, then use some common sense to change the height and width to zero. (0.0dip). Sometimes, you can remove this lines completely.
- If the app crashes after removing these lines, then it could be that these resources are accessed with in the code, by index and not by name, in that case, we may not be able to remove them, we can hide them by setting and android: visibility="invisible" or "gone". Gone would completely remove it, and invisible would make it transparent, but the screen real estate will not be recovered for other elements.
Monday, August 26, 2013
Connect to a Wifi Network with WEP Encryption (Wifi Router) on Windows 7
Did some Google and found that the issue was that the Wifi Router is using the WEP encyption, which is bit old and less secure, and hence windows 7 does not allow such connections, and you need to setup the connection manually. You need to follow below procedure to connect to such a Wifi Network.
Right Click on Wifi Symbol in Windows 7 Task bar, and select Open Network and Sharing Center.
Monday, June 17, 2013
Persistent Mapping of Windows Folder to a Drive
So here is how you do it. You need to a Registry Entry for the new Drive. Open Regedit and make an entry as below.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Dos Devices]
Value - \??\C:\Users\pshetty1\2560P
You can go ahead and hide this folder in C Drive, so that you don't want to see here :). You need to restart the PC to see the changes.
Monday, March 11, 2013
Hacking android apps
Offlate I got some time to write a blog post to explain how to hack an android app. I always thought that hacking is very difficult. But later i realised that it is not that difficult.
There are few tools you need to start with android hacking. You would need to decompile the apk, and modify the smalli code,and then recompile the same. Zipalign and sign,. you are ready to go.
There are few things to keep in mind when hacking, first you need to study the application to find places where we see the checks, for example may be the screen where the password is asked etc. Then you can search the String resources with the Strings on those screens to find the logic related to F password cheek etc,you can then either change the logic or skip the code, os may be make that function return true inspte of the failed cheek. You are done, then recompile and see if it is working. If it does not don't be disappointed. You need to try again untilyou get the right hack.
Remember one thing most of the times the changes needed are not more than one line of code change. You would be surprised to see such week apps, But whatever they make to protect the app it is easy to hack.
Enough for now. This is kind of Introduction to hacking, you may need to google to find out how to decompile, recompile, sign, zip align etc, but at the end of the day it is fun
Sunday, February 17, 2013
Refreshed Galaxy SL (S3+)
Here the some UI update i did to my Galaxy SL to make it look more refreshed. Galaxy S3 icon, all new launcher, and keypad.
Screen Capture In Galaxy SL
I was always assumed that this phone does not come with the default screen capture option. i accidentally got a screen capture when some call screen got captured by a combination of key press.
Then I searched a while and found that holding back key pressed and then pressing the home key will capture the screen shot.
I always used the root utility shoot me to capture the screen. I think this is a great deal.
Sunday, January 6, 2013
Adding more wallpapers to TwWallpaperChooser.apk
so here it goes, the basic procedure remains same, as decompile the apk and then recompile the apk.
First de-compile the apk into a folder with the below commands
apktool TwWallpaperChooser.apk TwWallpaperChooser
You would see a folder created with the files as shown below.
The contents of the folder is as shown below.

The important folder, and file you need to know in this case are /res/drawable-hdpi/ this folder contains all the images and their thumbnails, thumbnails are with _small in the name, and are of size 170x142, and main wallpaper images are of size 960x800. You can add more pictures and their thumbnails with the same size.
Saturday, January 5, 2013
Decompiling Android APK to view the JAVA code
1. Obtaining the “apk” file:
There are many ways that you can obtain the apk file. You can probably find it on the Internet. Or the best way is to get it from your phone. In this example, we will tear apart facebook android app
The apk file of the application that is purchased from the android market is stored in ‘/data/app’ folder on your phone. To access this directory, you need super-user access. If your phone is rooted, follow the steps below to obtain the apk file if not, you might be able to get one from the Internet.
Copy over the apk file on to your computer from the sdcard.
2. Obtaining the “.dex” file:
Open the downloaded apk file as a zip file. You can use “Archive Manger” on linux or “WinZip” on windows. You can also change the file extension to “.zip” and have the OS automatically open it as a zip file.
In there, you should see “classes.dex” file. This is the byte code of the complied application. Extract the file on to your computer.
3. Dex2Jar tool:
You need dex2jar tool to decode the dex file to a jar file. The dex file is the Dalvik executable file. You can get the latest and greatest version at
http://code.google.com/p/dex2jar/downloads/list.
Download and install the application in your computer. I extracted it out on my android installation folder.
Once you have it run the “dex2jar” command to decompile the “.dex” file extracted in step 2.
You can run the following command on linux, on windows you can run the “dex2jar.bat” instead of “dex2jar.sh”
1 $ ./dex2jar.sh classes.dex
You should see an output as follows.
4. Decompiling the jar:
You can now open the decoded “.jar” file from step 3 on a java decompiler of your choice.
There are few out there. I choose JD-GUI. You can download one from their site at:http://java.decompiler.free.fr/?q=jdgui
Install the tool and open the jar extracted on step 3. Boom now you can see the application code!
Friday, January 4, 2013
Decompile/Recompile apk's with ApkTool
- apktool / aapt, which can be downloaded from code.google.com (Click this link !)
- Java Runtime Environment(JRE), normally you would have it in your PC. It should be atleast 1.6, make sure to add this in your windows path variables. If you don't have it, then Google !
- Follow the instructions on the code.google.com to install the apktool and aapt, and unzip them to windows folder. On a windows system it is done like this (copied from the site, you can as well look there for other OS)
- Download apktool-install-windows-* file
- Download apktool-* file
- Unpack both to your Windows directory
- Now your apktool is ready to use.
Thursday, December 27, 2012
How to root Galaxy SL (i9003) Gingerbread 2.3.6 XXKPU
Lastly I was seeing too many places mentioning about the CF-Root and was wondering what is this. I happen to see a video which shows the PDA to be replaced with the CF-Root corresponding to the XXKPU binary, which can be downloaded form the links in the post here.
Here you can download the CF root for many of the i9003 firmwares. Infact, what ever is your phone (Samsung) you can almost follow the same procedure, and you need to find the right CF-root file. Then the flashing procedure can be found on this you tube video here. Hope this helps everyone.
Thursday, May 31, 2012
Some C Interview Questions
Some recent set of questions I found from web, found them unique and interesting.
Sunday, February 5, 2012
Sony Vaio Battery Replacement (VGN-CR-313H)
Saturday, December 10, 2011
Configuring CSipSimple SIP client on Galaxy SL for Nymgo
- Account Name: Nymgo
- User: Nymgo User Name
- Server: ata.nymgo.com (no need to give port number even though we knows its 80, it would be taken care by wizard, and if you give, it seems to be not working for me)
- Password: Nymgo Password.
Saturday, November 12, 2011
Some of the useful info when working with ADB on phone
- Samsung Apps [They are meant for Bada, and of no use in Android! wonder why its added here!]
- BuddiesNow.apk/odex
- thinkdroid.apk/odex [ThinkFree Office - I have installed Polaris Office instead of this, which is much better]
- Day.apk/odex
- DualClock.apk/odex
- SamsungWidget_Calenderclock.apk/odex
- SamsungWidget_Feedandupdate.apk/odex
- SamsungWidget_stockclock.apk/odex
- SamsungWidget_Weatherclock.apk/odex
Some useful tips and tricks about galaxy S/SL can be found here, its quite long, but when free go through.


















