[GUIDE] NativeSD for Windows Mobile (WM6.5) New Users

Search This thread

Learning Never Ends team

Senior Member
Jul 23, 2012
73
520
NativeSD WM #1 Introduction
Posts:
#1 Introduction
#2 Setup Partition
#3 Install Recovery
#4 Install Native SD
#5 Applications (Run Backup Restore Delete)
#6 Updating
#7 FAQ
#8 Links to Other OS
#9 Reserved for Learning Never Ends teams

The HTC HD2 was a Windows Mobile Phone. However it can run different phone operating systems including Android. Originally the choice was to run a single version of Android instead of Windows Mobile (using MAGLDR) or to boot from Windows Mobile to Android running on the SD card (for example using Portadroid) by executing CLRCAD.exe and HaRET.exe (Handheld Reverse Engineering Tool) bootloader. The problem with running both Windows Mobile and Android on the same phone is that EXT4 had to be held as a file on the SD card (using FAT32) which is slower. With NativeSD, your SD card is partitioned, or split, into two with the first partition being the FAT32 and the second partition as EXT4. The advantages are, you can still run Windows Mobile and use the FAT32 partition, Android runs much better (faster, with fewer problems and lower battery consumption), you can have as many different versions of Android as you have space on your card and all the operating systems can use the same data in the FAT32 partition. As you keep your original data and Windows Mobile programs on the existing FAT32 partition it is very easy to try NativeSD, including different Android ROMs, but still keep Windows Mobile always available to run any legacy programs that you must have.

This thread is about installing, running and maintaining NativeSD from Windows Mobile (WM6.5). If you are running a different operating system, please visit the appropriate thread listed in one of the posts below or the main NativeSD Rom Boot Script for HD2 forum:

Forum > HTC Leo: HD2 > HD2 Android > HD2 Android SD Development >
[DEV] NativeSD Rom Boot Script for HD2
http://forum.xda-developers.com/showthread.php?t=1869673

More details can also be found in the XDA Wiki:
http://forum.xda-developers.com/wiki/HTC_HD2/NativeSD

To get started, please see the next post for the first step:
Setup Partition
 

Attachments

  • 128px-HTC_HD2.jpg
    128px-HTC_HD2.jpg
    11.3 KB · Views: 1,755
Last edited:

Learning Never Ends team

Senior Member
Jul 23, 2012
73
520
NativeSD WM #2 Setup Partition

NativeSD WM #2 Setup Partition

Requirements: To get started you need an HTC HD2 phone (either European or T-Mobile US), and SD card – which you presumably have if you are reading this – and ideally a personal computer. You will need to download a “Recovery” program to run on your mobile – 4EXT is recommended. Since you will be changing your SD Card you are strongly advised to back it up first. The next step is to partition or split your SD card into two which can be done using a Windows program Mini Tool Partition Wizard Home Edition. (Apparently the partition can be done with 4EXT Recovery on the phone but the PC is easier). Of course you will also need to choose a NativeSD ROM from the XDA website.

HTC HD2 Windows Mobile 6.5 Requirements
In order to run Android, your HTC HD2 will need to have:
Radio: 2.08 or higher - download from [RADIO] The HTC HD2 Master Radio Thread

The following three somewhat old threads have more information about Android on HD2:
[REF] The Definitve Guide To Android On HTC HD2
[REF] A Brief guide to Installing and Maintaining Android [SD/RAM] on HD2
[HSPL/HSPL2] HowTo flash everything
Bear in mind that they do not refer to NativeSD.


The steps to take on your PC are:

A) Backup your SD Card - for example copy all of it to your PC or use a new SD card. This step is optional but strongly advised.

B) Format your SD Card to make sure it is in good shape and has a primary FAT32 partition. Cards that are larger than 32 GB will not necessarily have a FAT32 format. For example a 64 GB card will usually be formatted to have an "exFat" partition and needs to be reformatted to FAT32. At the same time you can also choose a cluster size but the default should be fine for now. See the thread [GUIDE] [INFO] All about SD CARDS - which one, why and how!. If you format your SD Card, then restore the data from the backup. These steps are optional but strongly advised. Recommended Windows program for formatting your SD Card as it does not format the "Protected Area":
https://www.sdcard.org/downloads/formatter_3/

C) Create an EXT4 partition on your SD card. There are two methods.

i) On your PC using MiniTool Partition Wizard Home Edition (MTPW)
This is a video showing how to use the program but note that we need EXT4 NOT EXT2 shown in the video: http://www.youtube.com/watch?v=Cygl0qZnbaM
Note that you can use other partition managers but Minitool Partition Wizard works and is the method recommended by Xylograph

ii) On your HD2 using the 4EXT Recovery Classic program by madmaxx82 mentioned in the next post #3 Install Recovery. Check in the thread for your chosen NativeSD ROM to see if it supports automatic creation of EXT4 partition using Recovery. If it does, then install 4EXT Recovery, copy the unzipped Android Native SD build to this folder and execute CLRCAD.exe and HaRET.exe from the recovery folder and the card will be partitioned and the Native SD will be installed automatically. Caution though as these ROMs may not install to NativeSD folder and as a result you may not be able to use some of the other items in this guide. Always backup your SD card before trying this.

D) The size of the EXT4 partition is up to you. The minimum is probably 500 kb but 1 GB is advised and it does depend on the size of ROM you are using. If you have a larger SD card then 2 GB is recommended. Larger than 2 GB may be difficult to backup in one go. A rule of thumb is 0.5GB for NativeSD and 0.5 GB for each ROM you want to have available in EXT4. So the minimum advised is 1 GB. Another rule of thumb could be no more than 25% (one quarter) of your SD Card for EXT4. I only use half of the FAT32, leaving half the card free to backup either FAT32 or EXT4. For example I have a 32 GB card with 24 GB for FAT32 and 8 GB for EXT4 with 14 ROMs (14 * 0.5 = 7GB +0.5).

D) Double check that the first FAT32 and second EXT4 partitions are both 'primary' and that FAT32 is first and EXT4 last partition.

More details can also be found in the XDA Wiki:
forum.xda-developers.com/wiki/HTC_HD2/NativeSD#Format_EXT4_Partition

Please see the next post for the next step which is done on the mobile phone. This is a good time to check that Windows Mobile still works properly for you:
Recovery
 

Attachments

  • SDHC-16GB-EXT4.JPG
    SDHC-16GB-EXT4.JPG
    17 KB · Views: 2,213
Last edited:

Learning Never Ends team

Senior Member
Jul 23, 2012
73
520
Native SD #3 Install Recovery

Native SD #3 Install Recovery

In order to install a NativeSD on your Windows Mobile (WM 6.5) you will need to put a "Recovery" program onto the SD card of your phone. For Windows Mobile the recommended Recovery programme is 4EXT Recovery Classic. This can be downloaded from the link provided by Xylograph on the NativeSD thread
[http://goo.im/devs/Xylograph/Various/Recoveries Download 4EXT Recovery from here]
Although Xylograph provides several different recoveries, the one you want for Windows Mobile is in home » devs » Xylograph » Various » Recoveries » SD >> recovery_4EXT2.2.7_leo_sd.zip
Size: 5.53 MB
MD5: 142c324022b7ea77c3a7ca8d2fcabb70
Link: http://goo.im/devs/Xylograph/Various/Recoveries/SD/recovery_4EXT2.2.7_leo_sd.zip

Download this to either your mobile phone or computer. Create a folder on the SD card of your mobile phone called "4EXTRecovery". (Although you can name the folder anything you want, it is useful to use the same name as the win android program listed below). The 4EXTR.zip file contains five files which should be unzipped into the 4EXT recovery folder. These files include CLRCAD.exe and HaRET.exe. In order to run recovery, from Windows Mobile, you open the recovery folder using a file manager and then press HaRET.exe. (Note to load a ROM you would normally press CLRCAD.exe first but this is not required for and does not impact Recovery). The recovery programme will launch.

As this is a text based recovery programme (in other words, you do not touch the screen), there are a few keys that you need to know in order to navigate around the screen.
  • Volume up + to move cursor up
  • Volume down - (or Windows key) to move cursor down
  • Left call phone button to select
  • Back button to go back
  • Windows menu key to move cursor down or quit AROMA Installer


Edit; The above text in Magenta, and a bit below refer to 4ext_recovery_SD which is no longer available on Xylograph's Goo repository. There are other SD recoveries there, give them a go. The instructions given above should be similar.
Note also that if you rename the folder which the files (HaRET etc) are in, you also need to edit the startup.txt file (rel_path="Whatever_you_renamed_it_to"), so probably best to keep the original folder name and put it to the root of your SDcard.​


The first action is to format the EXT4 partition (created by Minitool Partition Wizard) using the recovery tool. Even though Minitool Partition Wizard creates the 4EXT partition, some people have experienced problems until they reformat EXT4.

a) Scroll down to ext3-4ext-ext4
b) Scroll to wipe / format
c) Format sd-ext
d) Exit recovery and then restart it to be safe.


More details can also be found in the XDA Wiki:
http://forum.xda-developers.com/wiki/HTC_HD2/NativeSD#Format_EXT4_Partition

Please see the next post for the next step which is also done on the mobile phone, using Recovery. This is a good time to check that Windows Mobile still works properly for you:
Install Native SD
 

Attachments

  • Recovery.jpg
    Recovery.jpg
    253.2 KB · Views: 3,318
Last edited:

Learning Never Ends team

Senior Member
Jul 23, 2012
73
520
Native SD WM #4 Install Native SD

Native SD WM #4 Install Native SD

Requirements: Your Windows Mobile (WM6.5) phone should now have an SD card that has been partitioned into two with the FAT32 partition first followed by EXT4 with both set as primary. The FAT32 partition should have been formatted as FAT32 and the EXT4 partition reformatted as EXT4 using recovery. You should be running Windows Mobile and be able to run recovery. This is covered in the preceding posts.

You will also need to choose a NativeSD ROM from the XDA website. Gingerbread (GB - CM7), Ice Cream Sandwich (ICS - CM9) and JellyBean (JB - CM10) ROMs are supported. GB tends to be more stable and JB is more cutting edge (possibly not as stable). ROMs will state NativeSD in the thread title or in the first post - try searching HD2 Android for "NativeSD". They can be found in either:
HD2 Android NAND Development [http://forum.xda-developers.com/forumdisplay.php?f=928]
HD2 Android SD Development [http://forum.xda-developers.com/forumdisplay.php?f=735]

The Native ROMs are downloaded and saved to your SD Card in zip format. Usually the file name will include "NativeSD". Recommend that you save them in a folder on your SD Card called "Download" as that is where most Android programs will save them. Do not unzip the file.

In order to run recovery, from Windows Mobile, you open the recovery folder using a file manager and then press HaRET.exe. (Note to load a ROM you would normally press CLRCAD.exe first but this is not required for and does not impact Recovery). The recovery programme will launch. Some people refer to the following steps as "flashing" a ROM.

Using 4EXT Recovery:
Select install from SD card.
Select choose zip from SD card.
Choose a zip to apply for example a NativeSD.zip from your Download folder.
Continue install? THIS CAN NOT BE UNDONE. Yes.
Press next to Continue the installation...
Choose Install to SD-EXT.
Select Default Connection - leave this unchecked for PPP connection (default).
Depending on the ROM's AROMA script there may be other choices.
Click next to start the installation
Installing ROM please wait...
Installation complete... please reboot...

Windows Mobile will boot.
Open the NativeSD folder in your SD Card.
Press CLRCAD.exe then HaRET.exe in the NativeSD folder to load Android NativeSD ROM.

More details can also be found in the XDA Wiki:
http://forum.xda-developers.com/wiki/HTC_HD2/NativeSD#Install_NativeSD_using_Recovery

When you reboot from Android, you phone will load Windows Mobile. To run your NativeSD at any time, open the NativeSD folder in your SD Card. Press CLRCAD.exe then HaRET.exe in the NativeSD folder to load Android NativeSD ROM.

Please see the next post for applications that can make it easier to run NativeSD:
Applications
 

Attachments

  • 1-install_from_sd_card.jpg
    1-install_from_sd_card.jpg
    255.1 KB · Views: 3,195
  • 2-choose_zip_from_SD_card.jpg
    2-choose_zip_from_SD_card.jpg
    252.4 KB · Views: 2,618
  • 3-choose_a_zip_folder.jpg
    3-choose_a_zip_folder.jpg
    250.1 KB · Views: 2,402
  • 4-choose_a_zip_to_apply.jpg
    4-choose_a_zip_to_apply.jpg
    261.1 KB · Views: 2,331
  • 5-continue_install.jpg
    5-continue_install.jpg
    254.1 KB · Views: 2,152
  • 6-AROMA-Installer.jpg
    6-AROMA-Installer.jpg
    257.2 KB · Views: 2,280
  • 7-install_to_SD-EXT.jpg
    7-install_to_SD-EXT.jpg
    257.6 KB · Views: 2,197
  • 8-default_connection.jpg
    8-default_connection.jpg
    256.4 KB · Views: 2,108
  • 9-ready_to_install.jpg
    9-ready_to_install.jpg
    257.9 KB · Views: 1,931
  • 10-installing.jpg
    10-installing.jpg
    256.3 KB · Views: 1,913
  • 11-complete.jpg
    11-complete.jpg
    255.5 KB · Views: 1,914
  • 12-reboot.jpg
    12-reboot.jpg
    256.6 KB · Views: 1,991
Last edited:

Learning Never Ends team

Senior Member
Jul 23, 2012
73
520
NativeSD WM #5 Applications (Run Backup Restore Delete)

NativeSD WM #5 Applications (Run Backup Restore Delete)

Windows Mobile 6 programs

CLRCAD and HaRet
CLRCAD.exe needs to be run in Windows Mobile to enable sound for HD2 Android. See post by DarkStone1337 who comments "Don't worry if nothing happens, this is normal." HaRET (Handhelds Reverse Engineering Tool) is used to boot Linux from within Windows Mobile. More information is available in this thread Linux and Android on the HD2. Both executables are provided in the above link #3 Install Recovery

There are a number of Windows Mobile 6 programs that will automate the task of running CLRCAD.exe and then HaRET.exe from the correct folder in order to load Android on your HTC HD2 Leo. A list can be found in the XDA Wiki:
http://forum.xda-developers.com/wiki/HTC_HD2/Android_Loader
Notable is the WM .exe file created by o82239 called "Multiple Android-Starter (WinMo 6.5 + NativeSD-Android)" that allows you to select which NativeSD Rom you want to run from WM (assuming you have more than one ROM stored in a sub-directory of "NativeSD") or to run any one of 4 different Recovery programs (assuming you put them in the directory "4EXTRecovery", "twrp2", "twrp2.3.3.0.ex" or "recoverytytungbackup").
http://forum.xda-developers.com/showthread.php?t=1951897


Recovery scripts

Tytung has written a "NativeSD Touch Recovery" [http://forum.xda-developers.com/showthread.php?p=33668198#post33668198] tool that runs in Recovery to allow you to Backup, Restore or Delete a NativeSD ROM. It saves the backup to your SD Card in /sdcard/NativeSD/Backup/
https://sites.google.com/site/nativesdtouchrecovery/
It works perfectly for Windows Mobile WM6.5 users who boot 4EXT Recovery from SD using the 4EXT Recovery. To use it, from Recovery, flash NativeSD_Touch_Recovery_v1.0.zip. More details can also be found in the XDA Wiki:
http://forum.xda-developers.com/wiki/HTC_HD2/NativeSD#NativeSD_Touch_Recovery

Tytung Softkeys_Switcher_for_NAND_and_NativeSD works for all kinds of ICS/JB NAND/NativeSD ROMs. Use Recovery to Flash Softkeys_Switcher_for_NAND_and_NativeSD.zip to enable/disable the virtual softkeys after installation. See his post #11593.

TWRP Team Win Recovery Project 2.3, or twrp2 for short, is a custom recovery that now has Extended Features including Built-in NativeSD manager. See [RECOVERY] Team Win Recovery Project (TWRP) | Extended

kokotas Extended TWRP is touchscreen and supports NativeSD. See Extended TWRP

Android Apps

datagr has created an Android app for "nativeSDMultiBoot" that allows you to choose which NativeSD ROM you will boot next. He has expanded it to include backup and restore running from within Android. Search for his posts on the main NativeSD thread:
http://forum.xda-developers.com/showpost.php?p=31110691&postcount=1

c1cl0n has written an Android app "CM9 NIGHTLY Port Manager" for his [NIGHTLY] CyanogenMod 9 [tytung HWA R3.5] [SD/NativeSD] thread. Using this manager you can change your system values of DPI & make Softkeys visible. It works on most NativeSD ROMS, not just CM9. After making the changes, you have to reboot.


Titanium Backup root is one of the most popular Android Apps (free or paid) as it allows you to backup apps and data from one NativeSD ROM and restore them to another NativeSD ROM. Unfortunately it is not easy to restore the icons on your Android Desktop and care should be taken when restoring Apps from one version of Android to another. This wiki may be helpful:
http://forum.xda-developers.com/wiki/Android_ROM_Update

One of the main reasons for running Android on your Windows Mobile HTC HD2 is the apps that are available from the Google Play Store https://play.google.com/store/apps - to get you started, a few favourites include:
XDA-Developers https://play.google.com/store/apps/details?id=com.quoord.tapatalkxda.activity
gReader (Google Reader | RSS) https://play.google.com/store/apps/details?id=com.noinnion.android.greader.reader
Opera Mobile web browser https://play.google.com/store/apps/details?id=com.opera.browser amongst others such as Dolphin and FireFox
Navigation apps (paid including TomTom and Sygic https://play.google.com/store/search?q=tomtom&c=apps) including free programs such as Google Maps and Waze
Google Apps https://play.google.com/store/apps/developer?id=Google+Inc
Games include the ubiquitous Angry Birds https://play.google.com/store/search?q=angry+birds&c=apps
Social Apps include the inevitable Facebook, WhatsApp Messenger, & Twitter https://play.google.com/store/search?q=social+apps&c=apps&sort=0
but watch out for battery eating synchronization.
BetterBatteryStats will help to identify and guide you how to stop applications that eat your battery when your phone should be sleeping. http://forum.xda-developers.com/showthread.php?t=1179809
Most of these have free and paid versions.

Please see the next post for information on NativeSD:
Updating
 
Last edited:

Learning Never Ends team

Senior Member
Jul 23, 2012
73
520
NativeSD WM #6 Updating

NativeSD WM #6 Updating

One of the great advantages of the new technique of NativeSD on the HTC HD2 is that all users can benefit from ROM development. So a ROM developed for NAND, implemented using NativeSD, can usually be used by CLK, Windows Phone and Windows Mobile users. Basically the Loader runs an AROMA Installer script http://forum.xda-developers.com/showthread.php?t=1461712 that allows you to choose which version of the ROM you wish to install. The basic components are the same but individual parts are required for different operating systems. You choose which options you wish to install. As AROMA is a Touch and Customizable ROM Installer, it does not matter if you use a Text based loader. Once AROMA is launched, you select options by touching the screen. Recommendation is to accept the defaults the first time.

Files are extracted from the NativeSD.zip file and copied to both the FAT32 partition and the EXT4 partition on your SD card. They are stored in folder with the same name as the ROM (for example NativeSD\CM10). The FAT32 partition, which you can read in Windows Mobile, has only two files: initrd.gz and zImage for each ROM. initrd.gz is a Linux initial ramdisk that has been compressed using Gzip and zImage is similarly a compressed kernel image file. The way you chose which NativeSD to run is by copying initrd.gz and zImage from the ROM sub-folder into the NativeSD folder. This can be done using file manager (overwriting the ones in the NativeSD folder) or more easily using one of the applications shown in the post above. From Android use "nativeSDMultiBoot" and from Windows Mobile use "Multiple Android-Starter" - both of these copy the files for you. In the NativeSD folder, you run the common set of files CLRCAD.exe and then HaRET.exe to boot the NativeSD using the parameters specified in startup.txt. (These are the first tiny letters you see when the ROM starts booting). This can be automated using some of the above applications. In the EXT4 partition the subfolders of NativeSD for each ROM contain data and system files. With all these files being unzipped and copied during the flash and boot, occasionally things go wrong.

Fixing problems

First thing to check is that the NativeSD.zip ROM file was downloaded correctly by checking the Hash checksum. A good Dev will provide this, for example Xylograph recovery_4EXT2.2.7_leo_sd.zip has an MD5: 142c324022b7ea77c3a7ca8d2fcabb70

If your ROM does not boot correctly the first time (after say 15 minutes), you should try and reboot it again. Alternatively you can simply try to flash the ROM again using Recovery. This will keep your data and settings and may correct any problems that have occurred. Search the thread for the ROM to see if other users are experiencing the same problems. Recommend that you look for a post by one of the Learning Never Ends team to say they have flashed the ROM using Windows Mobile successfully.

Updating to new version

When updating to a new version of the same ROM, you can often simply flash the new version on top of the old using Recovery. Conversely, if the new ROM does not suit, you can usually flash the older version again using Recovery. As the different versions of the same ROM are stored in folders with the name of the ROM, this flashing simply overwrites the previous System files, hopefully leaving the data. In some case, the Op will advise a new or fresh install. In that case you should backup the ROM (see above post), delete the existing old ROM (see above post) and flash the new version as if it was a new ROM. You may be able to restore data using either Titanium Backup (or similar app) or data.ext4.tar from Tytung backup.

OTA Update
Over The Air (OTA) Update is supported by some ROMs and allows you to receive push notification of new updates so that you can easily download the updated version of a ROM. This is saved to a folder on your SD card called sdcard/OTA-Updater/download. Using OTA is the same as downloading from the home page but possibly more convenient as it is automated amd you do not have to visit the thread. You do have to use Recovery to Choose a zip to apply - for example the one saved in sdcard/OTA-Updater/download.


Resize EXT4 Partition

Resizing your EXT4 partition can be done in Linux using GParted or from Windows. First recommendation is to Backup all of your NativeSD ROMS to FAT32 using either one of the methods detailed in the above post and then back up your FAT32 Partition to your PC. From Windows, you can then use MiniTool Partition Wizard Home Edition 7.6 to
a) Delete EXT4 Partition
b) Extend/shrink FAT32 to free up the new EXT4 size you want
c) Create a new EXT4 partition with the size you want
d) Format EXT4 Partition again using 4EXT recovery
e) Restore your NativeSD ROMS to EXT4 (following whichever method above that you used to backup)

Please see the next post for:
FAQ
 

Attachments

  • NativeSD_folder.jpg
    NativeSD_folder.jpg
    262.7 KB · Views: 1,072
  • ROM_sub-folder_CM10.jpg
    ROM_sub-folder_CM10.jpg
    252.4 KB · Views: 1,021
Last edited:

Learning Never Ends team

Senior Member
Jul 23, 2012
73
520
NativeSD WM #7 FAQ

NativeSD WM #7 FAQ

Please see xda Wiki for
http://forum.xda-developers.com/wiki/HTC_HD2/NativeSD

XDA University has A New User’s Guide to Android and an Android Dictionary.

Several ROMs now have separate Question and Troubleshooting [Q&T] Threads that should be used to post general questions instead of the development related forums. They are located in the forum > HTC Leo: HD2 > HD2 Android > HD2 Android Q&A, Help & Troubleshooting and General and include threads for:
You should also read the above posts and search this thread before posting. Please see HD2 Forum Rules. You may will find it helpful to read this [GUIDE] - XDA New User Guide - Getting started on XDA. Questions about NativeSD for Windows Mobile are welcome here but only users with 10 posts (or more) will be allowed to post to any development-related forum. Before you try Android NativeSD we would expect you to have used your HD2 and made 10 posts, for example, by helping answer questions in the HD2 Windows Mobile 6.5 Q&A and General forum.

Please see the next post for:
Links to Other OS
 
Last edited:

Learning Never Ends team

Senior Member
Jul 23, 2012
73
520
NativeSD WM #8 Links to Other OS

NativeSD WM #8 Links to Other OS

This thread is a GUIDE to NativeSD for Windows Mobile (WM6.5) New Users

If you use another Operating System, although much of the information here is relevant, you should read and post in the appropriate one of these threads:

MAGLDR NativeSD Installation
http://forum.xda-developers.com/wiki/HTC_HD2/NativeSD#MAGLDR_NativeSD_Installation
Forum > HTC Leo: HD2 > HD2 Android > HD2 Android Q&A and General >
NativeSD Rom+EXT4 for New Users with peechurs
http://forum.xda-developers.com/showthread.php?t=1881205
The first post has pictures ("peechurs") showing how to partition SD Card and "flash" ROM using 4EXT Recovery.

Windows Phone (WP7) Installation
http://forum.xda-developers.com/wiki/HTC_HD2/NativeSD#Windows_Phone_.28WP7.29_Installation
Forum > HTC Leo: HD2 > HD2 General >
Step by Step:: How To Set up WP7 and Android with NATIVESD
http://forum.xda-developers.com/showthread.php?t=1880905

There is useful information for Windows Mobile Users in the above threads and in the main NativeSD Rom Boot Script for HD2 thread.
Forum > HTC Leo: HD2 > HD2 Android > HD2 Android SD Development >
[DEV]NativeSD Rom Boot Script for HD2
http://forum.xda-developers.com/showthread.php?t=1869673

Please post questions specifically about NativeSD for Windows Mobile (WM6.5) in this thread here.
http://forum.xda-developers.com/showthread.php?t=1986437

1. Introduction
2. Setup Partition
3. Install Recovery
4. Install Native SD
5. Applications (Run Backup Restore Delete)
6. Updating
7. FAQ
8. Links to Other OS
9. Reserved for Learning Never Ends teams
 
Last edited:

Szczepanik

Senior Member
Dec 31, 2007
853
586
Reseved for Learning Never Ends team

If you find this thread helpful then do not forget to
Rate: *****
Submit thread as News Tip

If you find a particular post is helpful, please click on the :good: Thanks button.
If you are using XDA App or Tapatalk, long press on the post and select :good: Thanks

The Learning Never Ends team is a very small group of a few HTC HD2 Android enthusiasts who have been inspired by our dear friend and LNE team member Kuzibri to remember that Learning Never Ends and share our learning with you. I suggest that you do not send PM to the team as they may take a long time to be answered (if at all - particularly those that start with the subject "I want"!) Remember that all of us volunteer our free time.

Cheers
Tom
 
Last edited:

kuzibri

Recognized Contributor
Oct 25, 2008
7,553
2,068
If you find this thread helpful then do not forget to
Rate: *****
Submit thread as News Tip

If you find a particular post is helpful, please click on the :good: Thanks button.
If you are using XDA App or Tapatalk, long press on the post and select :good: Thanks

The Learning Never Ends team is a very small group of a few HTC HD2 Android enthusiasts who have been inspired by our dear friend Kuzibri to remember that Learning Never Ends and share our learning with you. I suggest that you do not send PM to the team as they may take a long time to be answered (if at all - particularly those that start with the subject "I want"!) Remember that all of us volunteer our free time.

Cheers
Tom

Hi Tom,

thanks my very dear friend for the credits :highfive:. I will try my utter best to be of help on this thread too. Members can ask me all kind of questions related to WinMo 6.5.5 and/or Android Native SD. Regarding the Native Android SD, your posts are as clear as possible and can IMO hardly lead to a lot of questions, so I will focus on the software side of it. , i.e. which ROM to use, how to solve problems with Android, etc, etc. I would like to suggest that it's, in my personal case, allowed for members to send me a PM if necessary, cause, for well known reasons, I have the time to answer and I'm used to always answer my PM's ASAP.

very best regards and good luck with this new thread, Kuzibri
 
Last edited:

kuzibri

Recognized Contributor
Oct 25, 2008
7,553
2,068
I would like to say a BIG HELLO to the latest member of the LNE TEAM, kuzibri:):thumbup:

Its an honour to have you on board:)

Sent from my GT-I9100 using Tapatalk 2

Thanks very much my very dear friend, highly appreciated and much honoured to be part of your team now!!!!!!

very best regards, Kuzibri

P.S. Edit your signature!!!!I I changed mine, so you can change it too, the learning never ends is back!!:victory:
 
Last edited:
  • Like
Reactions: Robbie P

kuzibri

Recognized Contributor
Oct 25, 2008
7,553
2,068
700

Wow, 700 Thanks for a non-porter or developer, but just somebody who likes to help people when they have problems!! Many, many thanks to all of you who pushed the thanks button for me!!!! Taking into account that the thanks button was introduced when I already had 2500 posts, this means that 1 of 4 of my posts is rewarded with a thanks!!!!! This is great and very encouraging! Many, many thanks.

very best regards, Kuzibri
 
Last edited:
  • Like
Reactions: wis1152

Wuehli

New member
Dec 17, 2007
2
0
First: Thank you VERY much for this Guide, i just startet to "learn" about Android NativeSD with WM 6.5 and it was hard to get information together for absolute beginners.

Second: Questions!
Requirements, i have a HD2 (Europe version) with the lastest original WM 6.5 ROM from my Provider,
do i have to flash a Hard SPL or upgrade the Radio to later version to use Android NativeSD?
 

kuzibri

Recognized Contributor
Oct 25, 2008
7,553
2,068
First: Thank you VERY much for this Guide, i just startet to "learn" about Android NativeSD with WM 6.5 and it was hard to get information together for absolute beginners.

Second: Questions!
Requirements, i have a HD2 (Europe version) with the lastest original WM 6.5 ROM from my Provider,
do i have to flash a Hard SPL or upgrade the Radio to later version to use Android NativeSD?

Hi,

First of all: welcome to this thread!!!

if you have the latest ROM version from your provider, which is HTC's 3.14 ROM, you already have SPL 3.03 and Radio 2.15. The SPL version you can check on your tricolor bootscreen and the radio version in settings-software. If you have these versions, there is no need to flash a Hard SPL,

best regards, Kuzibri
 
Last edited:

Wuehli

New member
Dec 17, 2007
2
0
Now there is a guide i just had to try it out. Everything worked fine till i tried to start Android after flashing by first executing clrcad.exe.
I received the Message: Application not signed,..blablabla.
From this point, a lot of other applications from WM6.5 wont work any longer to :crying:

But i found a solution here:
http://forum.xda-developers.com/showthread.php?t=858348

maybe you can add this to the guide, or make it a step to change settings befor starting to flash because its very hard for a normal beginner to
change Regkeys when most apps wont work any longer.

After changing the RegKeys Android starts and iam very happy to use it and can always switch back to WM6.5!

Thanks again!!

(sorry 4 bad english :laugh:)
 

kuzibri

Recognized Contributor
Oct 25, 2008
7,553
2,068
Now there is a guide i just had to try it out. Everything worked fine till i tried to start Android after flashing by first executing clrcad.exe.
I received the Message: Application not signed,..blablabla.
From this point, a lot of other applications from WM6.5 wont work any longer to :crying:

But i found a solution here:
http://forum.xda-developers.com/showthread.php?t=858348

maybe you can add this to the guide, or make it a step to change settings befor starting to flash because its very hard for a normal beginner to
change Regkeys when most apps wont work any longer.

After changing the RegKeys Android starts and iam very happy to use it and can always switch back to WM6.5!

Thanks again!!

(sorry 4 bad english :laugh:)

Hi my friend,

First of all: after pressing clrcad, you have to press haret.exe!!

maybe something went wrong with the partitioning of your SD card for the .EXT4 partition, therefore I would like to advise you to use another program for partitioning your SD card. Have very good experiences with that one. See attached file. Backup your SD card to PC, unzip this file and copy it to the root of your SD Card . Then download the Native SD Android build of your choice and put it unzipped in this recovery folder and press clrcad and thereafter haret.exe and your Native SD Android will be installed without ruining the WinMo apps and/or changing reg keys because they are at this moment not on your SD Card. .After installing the Native Andoid build, copy your WinMo progs back to the SD Card and they will be copied in the FAT32 partition of your SD Card.

very best regards, Kuzibri
 

Attachments

  • recovery.7z
    5.6 MB · Views: 27
Last edited:

kuzibri

Recognized Contributor
Oct 25, 2008
7,553
2,068
NativeSD WM #2 Setup Partition

C) Create an EXT4 partition on your SD card using Minitool Partition Wizard Home Edition.
This is a video showing how to use the program but note that we need EXT4 NOT EXT2 shown in the video: http://www.youtube.com/watch?v=Cygl0qZnbaM

/QUOTE]

Hi my dear fellow LNE friends,

maybe you can add this program to the C guide to make an EXT4 partition on the SD card: Recovery - see attached file. Format SD Card, unzip this file to the root of your SD .card and copy the unzipped Android Native SD build to this folder and execute clrcad and haret from the recovery folder and the Native SD will be installed automatically. It works perfectly for me and is very fast !!!!! IMO it's the simplest/easiest way for beginners. It's really only called Recovery.7z. Do not know exactly where I "grabbed" it anymore , but it works fabulously!!

very best regards, Kuzibri
 

Attachments

  • recovery.7z
    5.6 MB · Views: 18
Last edited:

musti35

Senior Member
Apr 7, 2009
195
19
izmir
Thank you very much for your post.

Class 10 or Class 4 micro Sd better for Native SD Android roms.?

Before i used Class 10 micro sd for Sd Android roms.
But it is very slow and with a lot of problems when SD rom starting.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 48
    NativeSD WM #1 Introduction
    Posts:
    #1 Introduction
    #2 Setup Partition
    #3 Install Recovery
    #4 Install Native SD
    #5 Applications (Run Backup Restore Delete)
    #6 Updating
    #7 FAQ
    #8 Links to Other OS
    #9 Reserved for Learning Never Ends teams

    The HTC HD2 was a Windows Mobile Phone. However it can run different phone operating systems including Android. Originally the choice was to run a single version of Android instead of Windows Mobile (using MAGLDR) or to boot from Windows Mobile to Android running on the SD card (for example using Portadroid) by executing CLRCAD.exe and HaRET.exe (Handheld Reverse Engineering Tool) bootloader. The problem with running both Windows Mobile and Android on the same phone is that EXT4 had to be held as a file on the SD card (using FAT32) which is slower. With NativeSD, your SD card is partitioned, or split, into two with the first partition being the FAT32 and the second partition as EXT4. The advantages are, you can still run Windows Mobile and use the FAT32 partition, Android runs much better (faster, with fewer problems and lower battery consumption), you can have as many different versions of Android as you have space on your card and all the operating systems can use the same data in the FAT32 partition. As you keep your original data and Windows Mobile programs on the existing FAT32 partition it is very easy to try NativeSD, including different Android ROMs, but still keep Windows Mobile always available to run any legacy programs that you must have.

    This thread is about installing, running and maintaining NativeSD from Windows Mobile (WM6.5). If you are running a different operating system, please visit the appropriate thread listed in one of the posts below or the main NativeSD Rom Boot Script for HD2 forum:

    Forum > HTC Leo: HD2 > HD2 Android > HD2 Android SD Development >
    [DEV] NativeSD Rom Boot Script for HD2
    http://forum.xda-developers.com/showthread.php?t=1869673

    More details can also be found in the XDA Wiki:
    http://forum.xda-developers.com/wiki/HTC_HD2/NativeSD

    To get started, please see the next post for the first step:
    Setup Partition
    23
    Native SD WM #4 Install Native SD

    Native SD WM #4 Install Native SD

    Requirements: Your Windows Mobile (WM6.5) phone should now have an SD card that has been partitioned into two with the FAT32 partition first followed by EXT4 with both set as primary. The FAT32 partition should have been formatted as FAT32 and the EXT4 partition reformatted as EXT4 using recovery. You should be running Windows Mobile and be able to run recovery. This is covered in the preceding posts.

    You will also need to choose a NativeSD ROM from the XDA website. Gingerbread (GB - CM7), Ice Cream Sandwich (ICS - CM9) and JellyBean (JB - CM10) ROMs are supported. GB tends to be more stable and JB is more cutting edge (possibly not as stable). ROMs will state NativeSD in the thread title or in the first post - try searching HD2 Android for "NativeSD". They can be found in either:
    HD2 Android NAND Development [http://forum.xda-developers.com/forumdisplay.php?f=928]
    HD2 Android SD Development [http://forum.xda-developers.com/forumdisplay.php?f=735]

    The Native ROMs are downloaded and saved to your SD Card in zip format. Usually the file name will include "NativeSD". Recommend that you save them in a folder on your SD Card called "Download" as that is where most Android programs will save them. Do not unzip the file.

    In order to run recovery, from Windows Mobile, you open the recovery folder using a file manager and then press HaRET.exe. (Note to load a ROM you would normally press CLRCAD.exe first but this is not required for and does not impact Recovery). The recovery programme will launch. Some people refer to the following steps as "flashing" a ROM.

    Using 4EXT Recovery:
    Select install from SD card.
    Select choose zip from SD card.
    Choose a zip to apply for example a NativeSD.zip from your Download folder.
    Continue install? THIS CAN NOT BE UNDONE. Yes.
    Press next to Continue the installation...
    Choose Install to SD-EXT.
    Select Default Connection - leave this unchecked for PPP connection (default).
    Depending on the ROM's AROMA script there may be other choices.
    Click next to start the installation
    Installing ROM please wait...
    Installation complete... please reboot...

    Windows Mobile will boot.
    Open the NativeSD folder in your SD Card.
    Press CLRCAD.exe then HaRET.exe in the NativeSD folder to load Android NativeSD ROM.

    More details can also be found in the XDA Wiki:
    http://forum.xda-developers.com/wiki/HTC_HD2/NativeSD#Install_NativeSD_using_Recovery

    When you reboot from Android, you phone will load Windows Mobile. To run your NativeSD at any time, open the NativeSD folder in your SD Card. Press CLRCAD.exe then HaRET.exe in the NativeSD folder to load Android NativeSD ROM.

    Please see the next post for applications that can make it easier to run NativeSD:
    Applications
    22
    NativeSD WM #2 Setup Partition

    NativeSD WM #2 Setup Partition

    Requirements: To get started you need an HTC HD2 phone (either European or T-Mobile US), and SD card – which you presumably have if you are reading this – and ideally a personal computer. You will need to download a “Recovery” program to run on your mobile – 4EXT is recommended. Since you will be changing your SD Card you are strongly advised to back it up first. The next step is to partition or split your SD card into two which can be done using a Windows program Mini Tool Partition Wizard Home Edition. (Apparently the partition can be done with 4EXT Recovery on the phone but the PC is easier). Of course you will also need to choose a NativeSD ROM from the XDA website.

    HTC HD2 Windows Mobile 6.5 Requirements
    In order to run Android, your HTC HD2 will need to have:
    Radio: 2.08 or higher - download from [RADIO] The HTC HD2 Master Radio Thread

    The following three somewhat old threads have more information about Android on HD2:
    [REF] The Definitve Guide To Android On HTC HD2
    [REF] A Brief guide to Installing and Maintaining Android [SD/RAM] on HD2
    [HSPL/HSPL2] HowTo flash everything
    Bear in mind that they do not refer to NativeSD.


    The steps to take on your PC are:

    A) Backup your SD Card - for example copy all of it to your PC or use a new SD card. This step is optional but strongly advised.

    B) Format your SD Card to make sure it is in good shape and has a primary FAT32 partition. Cards that are larger than 32 GB will not necessarily have a FAT32 format. For example a 64 GB card will usually be formatted to have an "exFat" partition and needs to be reformatted to FAT32. At the same time you can also choose a cluster size but the default should be fine for now. See the thread [GUIDE] [INFO] All about SD CARDS - which one, why and how!. If you format your SD Card, then restore the data from the backup. These steps are optional but strongly advised. Recommended Windows program for formatting your SD Card as it does not format the "Protected Area":
    https://www.sdcard.org/downloads/formatter_3/

    C) Create an EXT4 partition on your SD card. There are two methods.

    i) On your PC using MiniTool Partition Wizard Home Edition (MTPW)
    This is a video showing how to use the program but note that we need EXT4 NOT EXT2 shown in the video: http://www.youtube.com/watch?v=Cygl0qZnbaM
    Note that you can use other partition managers but Minitool Partition Wizard works and is the method recommended by Xylograph

    ii) On your HD2 using the 4EXT Recovery Classic program by madmaxx82 mentioned in the next post #3 Install Recovery. Check in the thread for your chosen NativeSD ROM to see if it supports automatic creation of EXT4 partition using Recovery. If it does, then install 4EXT Recovery, copy the unzipped Android Native SD build to this folder and execute CLRCAD.exe and HaRET.exe from the recovery folder and the card will be partitioned and the Native SD will be installed automatically. Caution though as these ROMs may not install to NativeSD folder and as a result you may not be able to use some of the other items in this guide. Always backup your SD card before trying this.

    D) The size of the EXT4 partition is up to you. The minimum is probably 500 kb but 1 GB is advised and it does depend on the size of ROM you are using. If you have a larger SD card then 2 GB is recommended. Larger than 2 GB may be difficult to backup in one go. A rule of thumb is 0.5GB for NativeSD and 0.5 GB for each ROM you want to have available in EXT4. So the minimum advised is 1 GB. Another rule of thumb could be no more than 25% (one quarter) of your SD Card for EXT4. I only use half of the FAT32, leaving half the card free to backup either FAT32 or EXT4. For example I have a 32 GB card with 24 GB for FAT32 and 8 GB for EXT4 with 14 ROMs (14 * 0.5 = 7GB +0.5).

    D) Double check that the first FAT32 and second EXT4 partitions are both 'primary' and that FAT32 is first and EXT4 last partition.

    More details can also be found in the XDA Wiki:
    forum.xda-developers.com/wiki/HTC_HD2/NativeSD#Format_EXT4_Partition

    Please see the next post for the next step which is done on the mobile phone. This is a good time to check that Windows Mobile still works properly for you:
    Recovery
    22
    Native SD #3 Install Recovery

    Native SD #3 Install Recovery

    In order to install a NativeSD on your Windows Mobile (WM 6.5) you will need to put a "Recovery" program onto the SD card of your phone. For Windows Mobile the recommended Recovery programme is 4EXT Recovery Classic. This can be downloaded from the link provided by Xylograph on the NativeSD thread
    [http://goo.im/devs/Xylograph/Various/Recoveries Download 4EXT Recovery from here]
    Although Xylograph provides several different recoveries, the one you want for Windows Mobile is in home » devs » Xylograph » Various » Recoveries » SD >> recovery_4EXT2.2.7_leo_sd.zip
    Size: 5.53 MB
    MD5: 142c324022b7ea77c3a7ca8d2fcabb70
    Link: http://goo.im/devs/Xylograph/Various/Recoveries/SD/recovery_4EXT2.2.7_leo_sd.zip

    Download this to either your mobile phone or computer. Create a folder on the SD card of your mobile phone called "4EXTRecovery". (Although you can name the folder anything you want, it is useful to use the same name as the win android program listed below). The 4EXTR.zip file contains five files which should be unzipped into the 4EXT recovery folder. These files include CLRCAD.exe and HaRET.exe. In order to run recovery, from Windows Mobile, you open the recovery folder using a file manager and then press HaRET.exe. (Note to load a ROM you would normally press CLRCAD.exe first but this is not required for and does not impact Recovery). The recovery programme will launch.

    As this is a text based recovery programme (in other words, you do not touch the screen), there are a few keys that you need to know in order to navigate around the screen.
    • Volume up + to move cursor up
    • Volume down - (or Windows key) to move cursor down
    • Left call phone button to select
    • Back button to go back
    • Windows menu key to move cursor down or quit AROMA Installer


    Edit; The above text in Magenta, and a bit below refer to 4ext_recovery_SD which is no longer available on Xylograph's Goo repository. There are other SD recoveries there, give them a go. The instructions given above should be similar.
    Note also that if you rename the folder which the files (HaRET etc) are in, you also need to edit the startup.txt file (rel_path="Whatever_you_renamed_it_to"), so probably best to keep the original folder name and put it to the root of your SDcard.​


    The first action is to format the EXT4 partition (created by Minitool Partition Wizard) using the recovery tool. Even though Minitool Partition Wizard creates the 4EXT partition, some people have experienced problems until they reformat EXT4.

    a) Scroll down to ext3-4ext-ext4
    b) Scroll to wipe / format
    c) Format sd-ext
    d) Exit recovery and then restart it to be safe.


    More details can also be found in the XDA Wiki:
    http://forum.xda-developers.com/wiki/HTC_HD2/NativeSD#Format_EXT4_Partition

    Please see the next post for the next step which is also done on the mobile phone, using Recovery. This is a good time to check that Windows Mobile still works properly for you:
    Install Native SD
    19
    NativeSD WM #5 Applications (Run Backup Restore Delete)

    NativeSD WM #5 Applications (Run Backup Restore Delete)

    Windows Mobile 6 programs

    CLRCAD and HaRet
    CLRCAD.exe needs to be run in Windows Mobile to enable sound for HD2 Android. See post by DarkStone1337 who comments "Don't worry if nothing happens, this is normal." HaRET (Handhelds Reverse Engineering Tool) is used to boot Linux from within Windows Mobile. More information is available in this thread Linux and Android on the HD2. Both executables are provided in the above link #3 Install Recovery

    There are a number of Windows Mobile 6 programs that will automate the task of running CLRCAD.exe and then HaRET.exe from the correct folder in order to load Android on your HTC HD2 Leo. A list can be found in the XDA Wiki:
    http://forum.xda-developers.com/wiki/HTC_HD2/Android_Loader
    Notable is the WM .exe file created by o82239 called "Multiple Android-Starter (WinMo 6.5 + NativeSD-Android)" that allows you to select which NativeSD Rom you want to run from WM (assuming you have more than one ROM stored in a sub-directory of "NativeSD") or to run any one of 4 different Recovery programs (assuming you put them in the directory "4EXTRecovery", "twrp2", "twrp2.3.3.0.ex" or "recoverytytungbackup").
    http://forum.xda-developers.com/showthread.php?t=1951897


    Recovery scripts

    Tytung has written a "NativeSD Touch Recovery" [http://forum.xda-developers.com/showthread.php?p=33668198#post33668198] tool that runs in Recovery to allow you to Backup, Restore or Delete a NativeSD ROM. It saves the backup to your SD Card in /sdcard/NativeSD/Backup/
    https://sites.google.com/site/nativesdtouchrecovery/
    It works perfectly for Windows Mobile WM6.5 users who boot 4EXT Recovery from SD using the 4EXT Recovery. To use it, from Recovery, flash NativeSD_Touch_Recovery_v1.0.zip. More details can also be found in the XDA Wiki:
    http://forum.xda-developers.com/wiki/HTC_HD2/NativeSD#NativeSD_Touch_Recovery

    Tytung Softkeys_Switcher_for_NAND_and_NativeSD works for all kinds of ICS/JB NAND/NativeSD ROMs. Use Recovery to Flash Softkeys_Switcher_for_NAND_and_NativeSD.zip to enable/disable the virtual softkeys after installation. See his post #11593.

    TWRP Team Win Recovery Project 2.3, or twrp2 for short, is a custom recovery that now has Extended Features including Built-in NativeSD manager. See [RECOVERY] Team Win Recovery Project (TWRP) | Extended

    kokotas Extended TWRP is touchscreen and supports NativeSD. See Extended TWRP

    Android Apps

    datagr has created an Android app for "nativeSDMultiBoot" that allows you to choose which NativeSD ROM you will boot next. He has expanded it to include backup and restore running from within Android. Search for his posts on the main NativeSD thread:
    http://forum.xda-developers.com/showpost.php?p=31110691&postcount=1

    c1cl0n has written an Android app "CM9 NIGHTLY Port Manager" for his [NIGHTLY] CyanogenMod 9 [tytung HWA R3.5] [SD/NativeSD] thread. Using this manager you can change your system values of DPI & make Softkeys visible. It works on most NativeSD ROMS, not just CM9. After making the changes, you have to reboot.


    Titanium Backup root is one of the most popular Android Apps (free or paid) as it allows you to backup apps and data from one NativeSD ROM and restore them to another NativeSD ROM. Unfortunately it is not easy to restore the icons on your Android Desktop and care should be taken when restoring Apps from one version of Android to another. This wiki may be helpful:
    http://forum.xda-developers.com/wiki/Android_ROM_Update

    One of the main reasons for running Android on your Windows Mobile HTC HD2 is the apps that are available from the Google Play Store https://play.google.com/store/apps - to get you started, a few favourites include:
    XDA-Developers https://play.google.com/store/apps/details?id=com.quoord.tapatalkxda.activity
    gReader (Google Reader | RSS) https://play.google.com/store/apps/details?id=com.noinnion.android.greader.reader
    Opera Mobile web browser https://play.google.com/store/apps/details?id=com.opera.browser amongst others such as Dolphin and FireFox
    Navigation apps (paid including TomTom and Sygic https://play.google.com/store/search?q=tomtom&c=apps) including free programs such as Google Maps and Waze
    Google Apps https://play.google.com/store/apps/developer?id=Google+Inc
    Games include the ubiquitous Angry Birds https://play.google.com/store/search?q=angry+birds&c=apps
    Social Apps include the inevitable Facebook, WhatsApp Messenger, & Twitter https://play.google.com/store/search?q=social+apps&c=apps&sort=0
    but watch out for battery eating synchronization.
    BetterBatteryStats will help to identify and guide you how to stop applications that eat your battery when your phone should be sleeping. http://forum.xda-developers.com/showthread.php?t=1179809
    Most of these have free and paid versions.

    Please see the next post for information on NativeSD:
    Updating
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone