Tuesday, August 25, 2009

OBEX in Android

First of all, they are all for Android Dev Phone. You need to have root permission in Android devices. My working machine is Ubuntu 9.04 and I use Android tool chain to compile these applications.

1. Prepare working environment:
Check Android official website and they provide a user guide. It tells me how to download Android source code and how to compile it.

It took me few hours to set up environment, download code, and make the whole building system. Like my friend said, all
OTAKU in Taiwan have android source code in their machine.

If you can run Android emulator from your compiled result, it should mean DONE. :)

2. Build it for DREAM:
The Android emulator in item one doesn't support bluetooth and I cannot play OBEX in it. I choose to play it with my Android Dev Phone. Then I modified my build system and changed some configuration files. Check another document from Android, it tells me how to change my building environment. Also, if you'd like to use the official system images, you can download them from HTC.

3. Download OBEX source codes from android-obex:

a. build openobex

> cd $MYDROID (change folder to mydroid folder)
> cd external (change folder to external directory, it's for native code)
> git clone git://gitorious.org/android-obex/openobex.git (it would download code to openobex folder)
> cd openobex
> . ../../build/envsetup.sh (run android env setup script)
> mm (it would run Android makefile to compile sources)

After running above commands, it would generate related libraries and binary files in android 'out' directory.

one static library: libopenobex (out/target/product/dream/obj/STATIC_LIBRARIES/libopenobex_intermediates/libopenobex.a)
one binary file: obex_test (out/target/product/dream/system/bin/obex_test)

use USB cable to upload binary file to Android Dev Phone.

> adb shell
> mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system (add WRITE permission in system dir)
> adb push $MYDROID/out/target/product/dream/system/bin/obex_test /system/bin

b. build obexpushd

> cd $MYDROID (change folder to mydroid folder)
> cd external (change folder to external directory, it's for native code)
> git clone git clone git://gitorious.org/android-obex/obexpushd.git (it would download code to obexpushd folder)
> cd obexpushd/src
> . ../../build/envsetup.sh (run android env setup script)
> mm (it would run Android makefile to compile sources)

After running above commands, it would generate one binary files in android 'out' directory. The same as openobex, you can use adb push to upload binary file to Android Dev Phone. BTW, you should compile openobex before obexpushd, coz obexpushd need to use openobex libraries.

one binary file: obexpushd (out/target/product/dream/system/xbin/obexpushd)

4. Verify OBEX functions between Ubuntu machine and Android Dev Phone.

Bluetooth On Android

Hurray !!! Wait on we still don't have a proper Bluetooth file transfer app, but yeah there are some apps which can make somewhat somethings possible.....

We have an app called BlueX but this is a paid version, but why not try to google it you might get it through...

Also we have an app Androbex but this also has its own drawbacks......some features are still not up to mark


So the point of writing this blog is that.....you can have a temp app as of now but ya in recent times we can expect a better app thanks to everyone @ xda developers specially garok89 and others who have taken an initiative towards developing an amazing app.......so just wait on and hold on for Android to get perfect....

Thanks to openOBEX this is Possible......
OBEX=OBject EXchange=how protocol used when sending via bluetooth ot infrared
Open=open source=anyone can use the code with no copyright issues
Sit Back n Njoy......!!!!

Monday, August 17, 2009

Steps to Root Airtel HTC Magic and Mytouch 3G( for US users)

As Promised I said i would come up with steps for Rooting....


For Airtel Customers i would assure that this is working 100% because i tried it successfully myself.......

If you have tried to use our How To Root Your Magic procedure on your MyTouch, you probably noticed a huge brick wall that you ran into during the procedure. Well, finally, the good devs over at XDA, have graced us with a solution (albiet a slightly complicated one).

PLEASE PROCEED AT YOUR OWN RISK, THIS IS A COMPLICATED PROCEDURE AND COULD HARM YOUR PHONE!

So with the disclaimer out of the way, let’s begin shall we?

*Thanks to Erlern for the GoldCard procedure!
*Thanks to Amon Ra for the Rooting procedure!

Before Beginning:

Have a SPARE memory card (2GB is perfect and relatively cheap) to use for the Goldcard procedure, do NOT use your normal everyday card as it will ONLY be a goldcard after we are done.

I. Download and Install the Android SDK, Fastboot, and drivers (If you already have this done, skip this section).

1. Download these 2 files:
Android SDK
Fastboot (scroll to Fastboot tool and download the appropriate one for you computer’s OS)

2. Once you download the SDK, extract the SDK files to “C:\AndroidSDK”. Then extract the fastboot program to the C:\AndroidSDK\tools\ folder.

3. Turn off the phone, then turn it back on by holding down the Power and Back button (to enter bootloader mode).

4. Plug the phone into the computer via USB. Make sure that it says FASTBOOT USB instead of FASTBOOT now.

5. Your computer should say installing drivers right now (if this is the first time you have connected the phone in fastboot mode). Hopefully your computer will automatically install them, but if it doesn’t then use this guide from Google to install the drivers.

6. Goto the Start menu type cmd into the run section of the start menu and hit enter to bring up the Command Prompt.

7. Type the following into the command dos prompt on the computer (the black screen with white letters that just opened) while the phone is connected through USB, hitting enter at the end of the line:
cd\
cd androidsdk\tools\
fastboot devices

8. You should see a serial number pop up and the word fastboot to the right of it. This means that your USB drviers are all set up correctly and you can continue. If you do NOT see this, then you need to start over or Google for how to set up the USB drivers correctly (this will help).

9. If it worked, unplug your phone and turn it off and then back on to get to the regular home screen.

*Tip: If your computer says the drivers are installed but it is installing the wrong drivers, I recommend Uninstalling the drivers using this program, USBDeview, then plug the phone in again and choose the correct drivers in the SDK USB Drivers folder

II. Create a “Goldcard”


(USE A SPARE MEMORY CARD FOR THIS, YOU WILL NOT BE USING THIS CARD FOR YOUR NORMAL MEMORY CARD AGAIN, SO HAVE THIS GOLDCARD AS ONE MEMORY CARD AND ANOTHER CARD AS YOUR REAL MEMORY CARD FOR SAVING MUSIC, FILES, ETC. TO)

1. Put the Spare memory card into your phone.

2. With the Spare Memory card in your phone, click on Settings, SD and Phone storage, then click Unmount SD card. Once it unmounts, click Format SD card. (Please keep in mind that some memory cards don’t work)

3. On the Phone, goto Settings, Applications, Development and then make sure USB Debugging is checked.

4. *Make sure you have installed the SDK and Fastboot correctly from Section I!!!
Plug the phone into the computer and then open the Command Prompt (goto the start menu and type in cmd in the search box). Then type the following with hitting enter at the end of each line.

cd\
cd\AndroidSDK\tools\
adb devices

(wait for the it to show a serial number underneath, if it doesn’t then reinstall the drivers from section I). Then type:

adb shell
cat /sys/class/mmc_host/mmc1/mmc1:*/cid

5. A code will display, write the code down (MAKE SURE TO WRITE IT DOWN EXACTLY!)

6. Now, on your computer, goto http://revskills.de/pages/download.html and download QMAT 4.36. Extract the file to your computer somewhere and double click on the qmat.exe to open the program (THIS IS A DEMO VERSION SO IT WILL ONLY STAY OPEN FOR 10 MINUTES, SO TRY AND NOT LINGER WHILE DOING THE NEXT STEPS).

7. Click on Cryptoanalysis Tools then Crypto Toolbox

8. Scroll down till you see a text box with a button titled, “Reverse String”, next to it. Put the CID you wrote down earlier into the text box (DOUBLE CHECK IT!) and then click the Reverse String button. It should reverse the CID you put in, write this down now (AND AGAIN DOUBLE CHECK IT!).

9. Now, on your computer, goto http://revskills.de/pages/goldcard.html and enter your email in the appropriate field and for CID enter the reversed CID you just copied down BUT REPLACE THE FIRST 2 DIGITS WITH 2 ZEROS! (i.e. 12345678910 becomes 00345678910). *Thanks to Viper for providing these Goldcards for FREE!

10. Click continue and then you will receive your goldcard.img via email. Once it arrives save it to your computer.

11. Now, goto http://download.cnet.com/HxD-Hex-Editor/3000-2352-10891068.html?part=dl-HxDHexEdi&subj=uo&tag=button to download the HxD Hex Editor. Save it and install it to your computer.

12. Take your SD card out of your phone and put it into the SD adapter it came with. Then put that into your computer so it shows up on your computer as Removable Disk.

13. Open the Hex Editor and click on the Extra tab, then click on Open Disk. Under Physical Disk select Removable Disk (your SD card you just put into the computer). Make sure to UNcheck “Open as ReadOnly”. Click OK.

14. Goto the Extra tab again and click Open Disk Image. Open up the goldcard.img that you saved from your email. You should now have two tabs, one is the SD card (Removable Disk) and the other is the goldcard.img
Press OK when prompted for Sector Size 512 (Hard Disks/Floppy Disks).

15. Click on the Goldcard.img tab and click on the Edit tab and click Select All. Then click on the Edit tab again and click Copy.

16. Click on the Removable Disk tab (Your SD Card) and select offset 00000000 to 00000170 then click on the Edit tab and click Paste Write.

17. Click on File then click Save.

18. Close the Hex Editor.

19. Test what we’ve done:

Take out the memory card from the computer, then put it back in.
Try to open the memory card on the computer (Removable Disk), if it lets you, you are all set. If it asks/tells you to reformat the card, then try steps 13 – 19 again. If it gives you the same error again, then try a different memory card (Erlern said it didn’t work for him until he finally went and bought a Kingston 2GB card, then it worked on that card only).


III. Root the MyTouch using the Goldcard

1. Save the required file (SappIMG.img) to your computer, then save it to your goldcard (Do NOT rename it to anything, leave it as SappIMG.zip). Then take out your Goldcard from the computer.

ROM v2.53.707.2 (Engineerings SPL v1.33.2010) - MD5 : F9674D19BE5F949D0D9DC99714D210E3

ROM v2.16.707.3 (NON-Perfected stock SPL v1.33.0009) - MD5 : DC391E4A3FC57861D7197C151176ED96

ROM v2.16.151.1 (NON-Perfected stock SPL v1.33.0009) - MD5 : ADA4924293EFF619B05BB397446F862D

———————————————————————————————————————————————–

2.. Take your original memory card (NOT YOUR GOLDCARD) and save whatever is on it to your computer as a backup before beginning.

3. Put the memory card into your phone (AGAIN NOT THE GOLDCARD).

4. With the memory card in your phone, click on Settings, SD and Phone storage, then click Unmount SD card. Once it unmounts, click Format SD card.

5. Plug the phone into the computer and mount the SD card so we can save a file to it.

6. Download the 1.33.2005 HBoot and save it to your newly formatted memory card, and then rename it to update.zip (windows sometimes just needs you to rename it update and if you still see the zip folder symbol next to the file that means that it is still update.zip even though it only shows update).

7. Turn off your phone once the update.zip file is on the memory card.

8. Take out the memory card from the phone and put in the Goldcard (all while the phone is still off).

9. Turn on the phone by hold down the Power and Volume Down button. When the screen comes to the rainbow (or skating android screen), it should automatically pick up the SappIMG.zip file and ask you to update. Go ahead and update (DO NOT INTERRUPT THIS PROCESS).

10. Once the flashing is COMPLETE. Then turn off the phone.

11. While the phone is off, take out the Goldcard and put in the regular SD card (the one with the update.zip file on it).

12. Turn on the phone while holding Back and Power until the Fastboot screen comes up (when the fastboot screen comes up it should read, 1.33.2005 for SPL).

13. Download Amon Ra’s Recovery Image and save it to the AndroidSDK\Tools folder on your computer.

14. Plug the phone into the computer (while still in fastboot mode).

15. Goto the Start menu type cmd into the run section of the start menu and hit enter to bring up the Command Prompt.

16. Type the following into the command dos prompt on the computer (the black screen with white letters that just opened) while the phone is connected through USB, hitting enter at the end of the line:
cd\
cd androidsdk\tools\
fastboot devices

17. You should see a serial number pop up and the word fastboot to the right of it. This means that your USB drviers are all set up correctly and you can continue. If you do NOT see this, then you need to start over or Google for how to set up the USB drivers correctly (this will help).

18. If it worked, type the following into the command prompt (with hitting enter at the end of the line):

fastboot boot recovery-RAv1.2.0H.img *the 0 in 1.2.0H is a Zero not an Oh

19. Once the phone boots into the recovery mode, then click on Apply Update.zip

20. Once it is finished applying the update, hit home and back to reboot the phone. It should boot up into recovery mode, if not hold down the power button until it does. Once it loads the recovery screen, then take out the battery and put it back in.

21. Turn on the phone by holding Back and Power to get into Fastboot mode again. At the top it should read 1.33.2005. If so, turn off the phone. If not retry this section.

22. Take out the SD card (while the phone is off) and put it into your computer via the cardreader it came with.

23. Open the memory card on the computer and delete the update.zip file from the memory card.

24. Download Amon Ra’s 32A based image and save it to the memory card, rename it to update.zip

25. Put the SD card back into your phone and turn the phone on by holding down Back and Power. Once it boots up into fastboot mode, plug the phone into the computer via Usb (the command prompt should still be open on your computer).

26. Type the following into the command prompt (with hitting enter at the end of the line):

fastboot boot recovery-RAv1.2.0H.img *the 0 in 1.2.0H is a Zero not an Oh

27. Once the phone boots up into recovery mode, click the Apply Update.zip

28. Once the update is complete click home and back to reboot.

29. ALL DONE YOU NOW HAVE ROOT! You can use the phone as is now with Root access. If you want to load a new ROM (like a Hero ROM for instance)......


Any Questions welcome.....happy Rooting...njoy.....


NOTE:- Works for MyTouch


Sunday, August 16, 2009

Root Your HTC Magic (Airtel) and MyTouch3g

Amon_RA on the XDA-Developers forum has just blessed the Android community with a comprehensive step-by-step process for gaining root access to the MyTouch 3g. While the necessary items to root the device are mainly software-based, users will need two SD cards. One is used to create a “Goldcard”, while the other will be used to run the edited update file on the device.

The instructions, along with the necessary files, can be found here


Enjoy People......Will post the step by step guide after i successfully Root it.....

Sunday, August 9, 2009

Bharti Airtel HTC Magic Rooting

Hi,

People in India were so excited about the launch of HTC Magic, some of them even started saving their pockets so that they could afford this Magic @29,900 INR. But to the contrary now people are saddened, because Airtel and HTC let them down.

All Hype about the Android platform was in vain, what's the use of having a phone with GPS and no Maps installed in it, having Wifi and no Gmail on it. Other than these no "MARKET"...from where people can download apps and games...but people call it open source platform.....Can someone Explain HOW...????

Paying amount nearly 30k just to have a touch screen i don't think its worth that.....

Well all i can say as of now is please don't try new methods because people on XDA are working on this Perfect SPL (Secondary Program Loader )

Perfect SPL = SPL that gives "fastboot remote: not allow" when trying to fastboot flash or boot.

So far the following Perfect SPL's were spotted :
- 1.33.0006 (Tmobile Mytouch 3G - cid: T-MOB010)
- 1.33.0010 (cid : HTC__038 , cid : HTC__037)****
- 1.33.0004 (HTC Magic JAPAN)

****----> This is what Airtel Magic is loaded with....

Findings so far :
If you have a perfect SPL with S=OFF, you CAN flash your SPL using the following method :

$fastboot oem rebootRUU
$fastboot flash zip

You can find out whether your Security is ON or OFF by powering off and then powering on while holding the back button......

Hope we soon get to root our phones......cheers njoy.....

Saturday, August 1, 2009

What Is BING..???

Did you ever wonder what Bing stands for......

An aside: 'Bing' was the name chosen as it is 'onomotopoeic' -- that it sounds like what it means -- a word that conveys the response by the engine to a surfer who keys in a Search term.



But what I feel is.....


Bing Is Not Google......this is what Bing stands for.....


Njoy...cheers...

Over 150 Web URLs per person on Earth

Bing has put the number of web pages at over 1 trillion, while Google has indexed more than one trillion discreet web addresses

The Internet is growing so fast that there are more addresses than people on Earth, claims the team behind Microsoft’s search engine Bing.

Bing has put the number of web pages at over 1 trillion, while Google has indexed more than one trillion discreet web addresses. This means that there are about 150 web addresses per person in the world.

This means that if a person spent just one minute reading every website in existence, he or she would be kept busy for 31,000 years, without any sleep.

“An average person would need six hundred thousand decades of nonstop reading to read through the information,” News.com.au quoted Bing as saying.


The largest Internet population belongs to China, with 338 million users online. However, InternetWorldStats.com (IWS), a Web site that combines multiple data sources, has claimed that China’s online population is more like 298 million.
According to IWS, the top 5 countries with the most internet users are: China, US, Japan, India, and Brazil.


Wow, isn't it Interesting......