yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] gilbert32:
Links, stuff

What's not working:

Wifi

Bluetooth

USB mass storage

sd card

Sound

Camera

Camcorder

720p playback

GPS?

many libs

mic

Downloads

​

Old instructions:

How to install:

download base, unzip

download updates, unzip

copy paste updates to zip, from oldest to newest (unless INSTRUCTED NOT to do so)

zip the whole package

copy paste to device and flash

We are not responsible if a cat bit you, or if your HD2 killed you

[U][B]Changelog:[/B][/U]
[B][COLOR="red"]8/27/2013[/COLOR][/B]: Initial release
[B][COLOR="red"]8/27/2013[/COLOR][/B]: Update1:
fixed gsm
[B][COLOR="Red"]8/28/2013[/COLOR][/B]: Update1.5
Magldr Support
increased ion sf size
data works in magldr
[B][COLOR="Red"]Soon?[/COLOR][/B] [STRIKE]Next update:
New desire 500 base
Sound ? :) (partially working)
wifi?[/STRIKE]
[COLOR="red"][B]1/2/2014 update:[/B][/COLOR]
Desire 300 base
sound working
smoother
sd card fixed
minor stuff solved
[HD2 Android NAND Development] gilbert32:
Enjoy while downloading

[YOUTUBE]uDpEn6P5g6s[/YOUTUBE]​
[HD2 Android NAND Development] symbuzzer:
first comment from me. good luck;)
[HD2 Android NAND Development] aazzam16661:
Hope this works

Hello everyone, hope sense 5 can make it to the HD2

My update will be posted in a moment :angel:
[HD2 Android NAND Development] aazzam16661:
Here where i'm at.

Stuck at black/green htc logo

Here's a logcat: Attached

Do you guys know how to fix this? :confused:
[HD2 Android NAND Development] jpg3927:
did you get booting sense 5 rom on hd2?
[HD2 Android NAND Development] aazzam16661:
Stuck on black/green htc logo
[HD2 Android NAND Development] jpg3927:
wow...

good luck! :)
[HD2 Android NAND Development] aazzam16661:
what this
[HD2 Android NAND Development] aazzam16661:
I fix that but there's a new one :(

Also, i'm doing this for you guys, so help
[HD2 Android NAND Development] gilbert32:
ok. from the logcat you attached, libcamera.so and media files are missing. add them

Diag_LSM_Init: Failed to open handle to diag driver, error = 2

error 2 is file not found. i think this is kernel related (source http://www.virtsync.com/c-error-codes-include-errno)

regarding other error, maybe there are libs missing for the hd2? and maybe build.prop is not correctly configured for hd2.
[HD2 Android NAND Development] aazzam16661:
i have add them now.

What is a diag driver?

I will look into build.prop
[HD2 Android NAND Development] gilbert32:
i gave you link to this thread before in pm;

http://xdaforums.com/showthread.php?t=2019535&page=3

see post 22 (read the quote) and go to the thread in the answer. use hd2 proprietary files of course. make sure they are hd2's and be sure of permissions
[HD2 Android NAND Development] quantan:
Hi gilbert32,

I have 2 questions:

1. Which rom do you use to port? I saw there are some Sense 5 roms in XDA, but they are not for armv7. I wonder if it is possible to port them to HD2 :p

2. Do you think Sense 5 can run on HD2 with low spec? :D

And thanks for your hard work :good:
[HD2 Android NAND Development] aazzam16661:
I'm porting trickdroid from a HTC One . HTC One snapdragon 600 is a armv7 too, so maybe.

http://en.wikipedia.org/wiki/Snapdragon_(system_on_chip)#Snapdragon_600

edit, change from HTC One to the Evo 4G LTE
[HD2 Android NAND Development] dongbin210:
I wish good luck for us!Thanks!
[HD2 Android NAND Development] aazzam16661:
Some of bin and lib in the above is missing in HD2, those anybody know a replacement.
[HD2 Android NAND Development] aazzam16661:
Update

Me right now, school holiday (2 weeks), so more time in sense 5 :D .

Gilbert, studying for exams.

theRINSEm from DHD, got it to boot animation.
[HD2 Android NAND Development] Deleted member 5099998:
Jup thats right, fixing little bugs now.
[HD2 Android NAND Development] szezso:
No matter. ;) What ramdisk are you using? For Sense JB a Sense 4+ one would be great (as in my ROM).
[HD2 Android NAND Development] gilbert32:
not sure, i didnt make the rom. [MENTION=2772810]dungphp[/MENTION] cooked it. i think ramdisk needs modification. but without ion, it would reach lockscreen (i can deny /dev/ion permissions) but with good permissions (good permissions=graphics) it would show bootanimation again and again and again...

Edit: need to modify kernel a bit for ion heap size, after a few hours
[HD2 Android NAND Development] kinghunki:
Is a great progress!
[HD2 Android NAND Development] aazzam16661:
yeah

Because build.prop edit, it use JB wallpaper
[HD2 Android NAND Development] gilbert32:
EVERYONE vote this thread as newsworthy thread, so the HD2 can live again on XDA Portal!
[HD2 Android NAND Development] :
OK guys let's get this booting where is your kernel source and the latest zip ;)
[HD2 Android NAND Development] gilbert32:
this kernel is build mainly using your 3.0_pmem branch, with some files and changes (ion) from szezso. i can't upload to github, but i will zip it and upload it after make clean. is that ok?
[HD2 Android NAND Development] kinghunki:
Hd2 can stay young forever! Ha ha! It's a pity that my HD2 is dead!
[HD2 Android NAND Development] :
Yea I can just diff it between my kernel source I can make a branch on TeamNightmare for you guys and you could become contributors if you want. Just to keep everything organized with changes and such
[HD2 Android NAND Development] aazzam16661:
In setup now

Screenshot coming soon
[HD2 Android NAND Development] gilbert32:
uploading kernel source is too much for my bandwidth, so instead i used git checkout and here are the changed files afaik. included ion drivers. and i beleive board_htcleo.c needs some modifications, like memory sizes, also should increase ion sf heap size (0x02000000 right now, maybe double it)

PS: on a side note, i'm still not believing i got sense 5 to boot on HD2! :P

PS 2: you might find my code badly organized, like screwing up pmem (i think, don't remember) in board :D
[HD2 Android NAND Development] aazzam16661:
http://www.youtube.com/watch?v=eGm2-3rBMbo

Booted
[HD2 Android NAND Development] szezso:
Great guys! :) This is a huge breakthough in the HD2's life again!
[HD2 Android NAND Development] gilbert32:
Yeah!!

2 videos are in second post now :) thanks aazzam16661
[HD2 Android NAND Development] :
Congratulations guys! Nice job!
[HD2 Android NAND Development] :
Same kernel as the one above?
[HD2 Android NAND Development] jhakjhuk1853:
this is the news every hd2 owner wanted to hear,,,

congratulations guys love xda

u gave hd2 atleast a year more
[HD2 Android NAND Development] gilbert32:
yeah. forgot to upload kernel, but now here it is, with modules

http://www.mediafire.com/?32jj0x9991kkxn0
[HD2 Android NAND Development] :
OK so I should be able to build that kernel with my source and the changes you uploaded. Just making sure you guys didn't change anything else
[HD2 Android NAND Development] gilbert32:
Yeah, please make sure to upload any missing files

Sure!! Thank you for providing a rom from the beginning! :victory:
[HD2 Android NAND Development] szezso:
I told a solution to aazzam16661, how to fix the touch, I hope, it'll work. :)
[HD2 Android NAND Development] aazzam16661:
It work

But now i'm getting "unfortunately, the process android,process.media has stopped"
[HD2 Android NAND Development] smokin901:
Check framework-res.apk make sure xml file containing storage list is proper for hd2
[HD2 Android NAND Development] aazzam16661:
It not
[HD2 Android NAND Development] smokin901:
Are you saying framework-res is not modified?
[HD2 Android NAND Development] BLOOD_ANGEL:
Great work guys :)

Hope you get it working :)

Which Kernel you use ?
[HD2 Android NAND Development] gilbert32:
as mentionned earlier, it is sportsstar89's kernel, modifyed by me to use ion memory allocator and work with sense 5 (sense JB)
[HD2 Android NAND Development] :
You can find it in the sense 5 branch on team nightmare along with some minor clean up I did
[HD2 Android NAND Development] gilbert32:
yeah i had seen it earlier. Thanks for it :good:

regarding the cleanup, i have a question about it, but later as it's 1:38 AM time to get some sleep:p
[HD2 Android NAND Development] sbryan12144:
Just as a heads up, to fix touch, you need to add the correct touchscreen file in /system/usr/idc :)
[HD2 Android NAND Development] dungphp:
Copy to system folder: http://depositfiles.com/files/xj1t07fcf

Hope thist can remove the ring on touch screen
[HD2 Android NAND Development] gilbert32:
for now, none afaik:D

wifi should be easy (kernel)...
[HD2 Android NAND Development] BLOOD_ANGEL:
Is anything working in Rom ?

Touchscreen yes ^^

GSM Video Etc ? ^^
[HD2 Android NAND Development] aazzam16661:
If i use the Files you gave or use files from cm10, it work, but give me a "android.media.process." has stopped

We dont need to resize, becuase i use apk and framework from Desire x Port

---------- Post added at 10:36 PM ---------- Previous post was at 10:35 PM ----------

Nothing works except It booted, i can go through setup and use the UI, it smooth considering i'm using Native Sd on a Class 4 Sd card
[HD2 Android NAND Development] BLOOD_ANGEL:
Okay ....

What are you all change to got it Boot ?

I have time i would Test it with desire X Port
[HD2 Android NAND Development] -pixelfreak-:
re

this is the framework from desire x? this framework must open in linux kitchen and change the settings to the same settings from other HD2 rom´s. not all frameworks have the same settings for size and other media files...

and i have see the video from the second post. i think must change the touch files for sensitivity and accuracy..

pixelfreak
[HD2 Android NAND Development] :
Do you guys have smem errors in your last_kmsg?
[HD2 Android NAND Development] gilbert32:
like this?

<3>[ 0.000000] smem_find(137, 72): wrong size 56

<3>[ 0.000000] smem_find(137, 64): wrong size 56

<3>[ 42.593841] smem_find(105, 168): wrong size 16

<3>[ 42.593872] [BATT] err:Update SMEM: allocate fail at 42589814150 (2013-08-25 11:35:37.235645678 UTC)
[HD2 Android NAND Development] aazzam16661:
Got Sim detected.

Now can call and SMS

But when call, no mic or sound :(
[HD2 Android NAND Development] BLOOD_ANGEL:
Yeah

Where is the Rom ?

Make it public ans others can help to get thinks working or for Test :)
[HD2 Android NAND Development] gilbert32:
we will. right after we make it a bit more stable. wifi fix maybe today :)
[HD2 Android NAND Development] BLOOD_ANGEL:
Yeah got right :)

In the Video was a NativeSD Version with class 4 Memory Card ?

It Shows that it was smooth ?

Great work :)
[HD2 Android NAND Development] jhakjhuk1853:
too much exicted

1 of my friend has his birthday 2dae and he also owns hd2

it would be gr8 if i can flash it today for him as a gift
[HD2 Android NAND Development] gilbert32:
before fixing process.media errors, rom will be very laggy, a bit more than in the video.
[HD2 Android NAND Development] BLOOD_ANGEL:
Okay ... Is a wonder thats it Boot for the First its okay :P
[HD2 Android NAND Development] :
Yep thanks
[HD2 Android NAND Development] gilbert32:
Links coming soon. Very alpha, not directly flashable:p so noobs, don't try installing asap.

2nd post will be updated with some instruction and what's working/not
[HD2 Android NAND Development] Robbie P:
Maybe you could use a Q&A/Troubleshooting thread for all non-development related posts (including thanks posts). Would you like me to set one up for you with the same template as the others?
[HD2 Android NAND Development] gilbert32:
nah, at least not now. There's still a lot of stuff to do with the rom, it's barely kinda release. If we get it and most functions working, then it'll be a release and we'd need it. Thanks anyway :)

Also, i don't find it bad if people wanna post/ask in the main thread, it will be more vivid and better for development IMO
[HD2 Android NAND Development] aazzam16661:
The rom is public

Here is the link to download

http://www.mediafire.com/folder/so6darticjaou/Sense_5_on_hd2

Download then unrar, And zip it

Here is UPDATE1 (Gilbert and I will do this each time there is a fix)

http://www.mediafire.com/?ja9yzbmlsjwatx9

Unrar, copy and paste to rom and then zip rom and flash

How to Install (I use updater script from tytung rom)

CLK

sboot in clk

NATIVE SD

In Aroma Installer

Select Native SD>Select Full Install>Select PPP>Select Disable Softkeys>Install>flash_sboot v2

After flashing flash_sboot v2, reboot, it will stuck in boot animation(normal) and then charging led appear, And then black screen

When black screen, let the phone rest for 10 MIN, it will softboot a couple of time in the 10 MIN timeline(normal), then go to setup, done.

Working

Phone

SMS

3G (sometime it work)

Not working

Sound

Mic

SD Mount

WIFI

For those people that use NexusHD2 rom, please make a backup, cuz, this rom will override it

Sorry
[HD2 Android NAND Development] gilbert32:
WARNING BEFORE DOWNLOADING​

For tytung jb rom users, please backup your sd-ext, as this rom will replace it. and please choose wipe data/factory reset in installer.

after next update, it should have a new private path on sd-ext.
[HD2 Android NAND Development] Robbie P:
I am having trouble booting it from magldr, nativesd

It just shows white lines across screen and then reboots.

I noticed from dmesg that the kernel is 3.0.84, so i tried adding the 60000hex zeros to initrd.gz, but get the same.

I have a feeling it is that the kernel might not support magldr, i might be wrong though (i often am).

(as an aside, i was trying to port sportsstar89's cm10.2 rom to NSD which has sameish kernel and the same thing happened with 6M zeros. I tried securecrt's magldr_wifi_adb fixed kernel and it got past that bit, but hung on HTC screen. I also tried tytung's r2 jb kernel (normal nsd initrd.gz) but same as last. I have dmesgs if anyone is interested)

Edit; and since it is a 3.x kernel, it won't boot using haret afaik

also my norton firewall did not like haret.exe and deleted it. I don't use it, but that is the first time i've seen this.
[HD2 Android NAND Development] gilbert32:
the fact you mentionned this, i was preparing a magldr kernel while fixing wifi XD

maybe magldr kernel will be released solo without wifi fix(didnt fix it yet, requires me to download many files which i will do at night)

it won't work with any other kernels, as they don't have ion.

wait a bit, i will build, upload one and pm you with it. if it works, it's the next update
[HD2 Android NAND Development] gilbert32:
Weather and BlinkFeed.

Weather: only picture, no video.

Blinkfeed: no pictures. also in news.
[HD2 Android NAND Development] BLOOD_ANGEL:
My Hope is rising :) Ehen Thor Rom for dayli use is then i use my hd2 ans my One has break time ... I love my One ans hd2 hd2 is awesome with Sense 4.1 and 5
[HD2 Android NAND Development] macs18max:
I don't know anything about kernel either but i remembered reading the discussion in kernel developing thread and the solution was to hack the kernel, so apart from adding 6000000hex zero's to initrd,gz we may have to also do this

http://xdaforums.com/showpost.php?p=41755074&postcount=663
[HD2 Android NAND Development] gilbert32:
yeah you're right, i had done this while he was posting it:D i gave him a test kernel, i think something wrong happens with magldr, as there would be no adb (adb fully working with clk) and rom wouldn't boot, only hang after booting. will test after some time tomorrow

should also add support for UHS-1 cards, if they aren't already in this kernel
[HD2 Android NAND Development] BLOOD_ANGEL:
im on CLK 1.5 RC and i gave problems while install sboot.... assert files write_raw image ....

why? i have made the rom with dsixda's kitchen also an zip and flashed it, it works great! (i hope so)

CWM Based Recovery 5.0.2.6 which recovery you use?
[HD2 Android NAND Development] gilbert32:
try TWRP extended 2.6
[HD2 Android NAND Development] BLOOD_ANGEL:
Okay will try this ... Thanks
[HD2 Android NAND Development] gilbert32:
Magldr Support

regarding booting the rom from magldr, it seems those with windows phone in nand won't be able to boot the rom. (that's an assumption) as i was trying to boot it from sd, right after flashing magldr (nothing on nand) and it would get stuck at the initrd image. After partitionning, boot from sd works and the rom booted. it should be something related to sd, so for now, i will upload kernel +initrd.gz for magldr users with android on nand

Magldr support:

http://www.mediafire.com/?0r837emh8d202ez

Also, even for clk users, download and use the kernel only (zImage)as it has increased sf size, could enhance performance

Also good news for magldr users,

u have data now

. didn't test with rmnet in installer, installed with ppp and data works. please try both and report

PS: thanks securecrt for the kernel hack

tytung rom users, beware, this will STILL overwrite your rom data/system. when installer is done, initrd.gz will be adapted for it and you can enjoy showing off sense 5 with tytung's rom in parallel

WHY ISN'T THIS THREAD ON PORTAL YET? Start voting as news worthy thread and bring the hd2 back to life!!!​
[HD2 Android NAND Development] Robbie P:
I just partitioned nand using 390 system and 45 cache using hd2toolkit and magldr, but it is still hanging.

How did you partition yours after coming from wp7?

Edit; and did you install a nand rom? mine is only partitioned ATM.
[HD2 Android NAND Development] gilbert32:
What i did was installing from clk, using twrp 2.6 extended, later flash magldr, copy kernel and initrd.gz used before, add 6mb to initrd.gz and boot sd. like it would be normally done, but i had installed it with clk and twrp.

maybe that might be required prior to trying with magldr. but to have data, magldr is required for now.

also, i haven't installed any rom on nand yet. i think the rom didn't install well with you. try booting twrp from sd with magldr, install, with update1, and use zImage+initrd.gz that i uploaded
[HD2 Android NAND Development] pirlano:
thank you, fixed now :)

kernel source are here, right? https://github.com/TeamNightmare/android_kernel_htc_leo/tree/sense5

(from Sportsstar89 team git)

do you have some problems with git? :) you use your own account, fork sense5 branch (without using bandwidth) and commit using very low bandwdith too, since every commit usually is few bytes only.

So everythink is up-to-date and we all can do some improvements :)
[HD2 Android NAND Development] gilbert32:
yeah. the thing is, i don't know much about using git, besides cloning XD

i will pm you later about that
[HD2 Android NAND Development] Robbie P:
I am on black clk 1.5 and extended twrp 2.6

I tried installing it then immediately installing flash_sboot_v2.zip, but it won't install boot.img to sboot.:confused:

I am using original initrd.gz and zImage and rom_name.

I want to get it booting on clk before trying magldr again.
[HD2 Android NAND Development] gilbert32:
did you set up sboot in clk options?

if yes, and sboot doesnt work, use the twrp advanced native sd manager, update kernel, select boot partition and Nexus-HD2 jellybean and it will upload (depending on the rom name, and assuming you didn't change it). also, use normal initrd.gz, not one with +6mb
[HD2 Android NAND Development] Robbie P:
did the above and now it goes to new white htc screen (blue "booting Android" at bottom). finally i have something in logcat, but not a lot.

Is there an actual bootanimation, or is it just new htc screen?
[HD2 Android NAND Development] gilbert32:
a small bootanimation should appear after that, with htc in green, like screenshots. what do you have in logcat?

Note for all people who want to download

It seems that mediafire doesn't like split zip archives, so once we change rom name and fix a thing or two, we will upload as one archive, possible to dev-host
[HD2 Android NAND Development] Robbie P:
Might explain my booting problems the last couple of days. :)

That and the fact I am a nandroid noob, and until today a clk virgin.

Learning never ends;)

I could upload to dev host if you need it, but would need md5sum of pre-split zip to check against my future download, if that makes sense.
[HD2 Android NAND Development] gilbert32:
hahaha no need. if you downloaded the 4 zips, it should've worked. mediafire started now restricting download of the 4 archives. so when we fix something and change installer script to a more working one, we will upload. is there anything specific in logcat? can you post it?
[HD2 Android NAND Development] Robbie P:
here it is, unedited. same thing happened on subsequent try, hangs on htc screen. had to pull and reinsert usb
[HD2 Android NAND Development] gilbert32:
seems like lib problem. probably something like libc or graphic libs. please try the rom without update1
[HD2 Android NAND Development] Robbie P:
here you go.

clk as above

no update 1

sboot didn't work again.

wiped/factory reset on install.

hanging on htc screen
[HD2 Android NAND Development] BLOOD_ANGEL:
use dsixda's kitchen to build the rom (make working folder)

download the files up1 up 1.5 and the rom...

copy files from updates to rom ...

install magldr create primary EXT4 Partition on SD, install rom and use the source Boot AD SD (service-ad sd dir)

setting it, and go to Boot AD SD and wait,

done, runs on my samsung class 10 16 GB card well, more functions, a dialy rom^^

i will make a movie^^

when i get time
[HD2 Android NAND Development] gilbert32:
wow that is way too weird, i mean what happens with you and android every now and then :p are the 4 parts downloaded completely? there must be something wrong... i did download them, zip by pc and install, it worked. also, sboot, it's always better to flash using recovery option (update kernel)
[MENTION=5029447]BLOOD_ANGEL[/MENTION] did this work for you?
[HD2 Android NAND Development] BLOOD_ANGEL:
Yes it work, by the way, its smooth, i make a video and i post it, you can see,

yes this way i got it good working, when awake from sleep all is verry verry laggy^^, its an alpfa its okay^^, i have zipalign all apps, and it is working^^ with dsixdas kitchen...

the way i post it has worked, i use EX TWRP 2.6.0.0^^

Greets video is incoming^^
[HD2 Android NAND Development] seaman2k:
[MENTION=3907492]gilbert32[/MENTION] first thx. for your efforts

i try it with Clk NativeSd booted but with media.process fc like u know , so i try to edit storage.xml in frameworke_res and replace it it into zip and install again ...with that i rid from media fc and phone fc while i was trying to solve mountpoint so here is the framework-res if u need to look into it
[HD2 Android NAND Development] BLOOD_ANGEL:
https://www.youtube.com/watch?v=X5RmL_J_1Zo&feature=youtube_gdata_player

Here gilbert the Video

Sry for quality i has it Made from my One YouTube has screwed down the quality ^^

You can See the Rom is smooth ...

Greets from Germany
[HD2 Android NAND Development] gilbert32:
Great news! also, awesome to see you back!

youtube says the video is private, i think you must set it to public
[HD2 Android NAND Development] BLOOD_ANGEL:
Okay its public now :D

It was a Video with 600 MB and 4 minutes^^ an this is ****ing ... I can tommorow upload my ZIP to dev Host ...
[HD2 Android NAND Development] gilbert32:
wait until we work more on it. more stuff should be fixed, and we will upload with with a better installer.

also, starting from tomorrow, i will be half-online if compared to time i spend now, since i will have my first job :)
[HD2 Android NAND Development] aazzam16661:
Ok
[HD2 Android NAND Development] dungphp:
Test some files for sound: http://depositfiles.com/files/nz8sswm9o

Hope it work
[HD2 Android NAND Development] jhakjhuk1853:
is ther any way to increase system partion more than 445 in T Mobile US nand......since rom is 1gb can we increase the size
[HD2 Android NAND Development] BLOOD_ANGEL:
Its atm native SD
[HD2 Android NAND Development] jhakjhuk1853:
in general

Yes sir im trying this on nsd

but do we have any option for other roms also increase tmous nand above 445mb
[HD2 Android NAND Development] BLOOD_ANGEL:
Yes, Dataonext ...

Framework and other can be move to data to ext
[HD2 Android NAND Development] muftiazan:
[MENTION=3907492]gilbert32[/MENTION]

For WiFi we should fix

libbcc.so

libbcc.so.sha1

and maybe use regulatory.bin