yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] gilbert32:
a simpler way:

at 1st boot:

adb shell
mkdir /sd-ext
mkdir /system/framework
sh /system/etc/init.d/40a2sd
cp -s /sd-ext/sys-parts/framework/* /system/framework

if it doesn't start to boot after few seconds, redo the sh /system/etc/init.d/40a2sd

after first boot:

adb shell
cd /system/etc/init.d
mkdir /sd-ext
sh 40a2sd

this way you will save much space as you symlink framework from sd-ext to system :)

Edit: 270mb system partition is enough for me, leaves me with ~160 mb data to use :D
[HD2 Android NAND Development] Nitro_123:
Guys can't we change the installer script to reflect these changes ?

And thanks a lot for all the work upto now :D
[HD2 Android NAND Development] gilbert32:
i wish i could've done that. i will try to see it today and test it.

---------- Post added at 11:00 AM ---------- Previous post was at 10:45 AM ----------

Try replacing the files in the attached archive with the rom's setup files, and try flashing it.
you should no longer symlink framework files. just make the sd-ext dir and execute the a2sd script

Edit:add the files from the second archive. the first one didn't work the second should.This fixes copying or symlinking framework files to system, but not booting and mounting issue

Now working sorry.
testing another one...

Tested and working after fresh install:

Final fix for framework linking. replace the original installer's files with the ones in the archive.

For those who don't know how to use adb:second archive (bootrom) extract it to some folder, and after turning the device on, open boot.bat. it should boot the rom :)
[HD2 Android NAND Development] dalfshiro:
My wish too..:D

Thanks man..:thumbup::thumbup::thumbup:
[HD2 Android NAND Development] kane159:
eu fix, replace these file in the rom pack, dont need computer anymore
[HD2 Android NAND Development] werty100:
Where are the downlaod links:confused::confused::confused::confused:
[HD2 Android NAND Development] ya5:
For now no links avilable for new build @ 3.0.101 kernel . its still WIP. Stay tuned :)
[HD2 Android NAND Development] werty100:
And teh other builds old ones is stable?
[HD2 Android NAND Development] ya5:
They are stable but after "long use" tests not fast enough to use it in terms of mutltimedia device like hd2.
[HD2 Android NAND Development] ya5:
Some Screenshots
[HD2 Android NAND Development] ya5:
ROM desire_HD2_sense4_Test8 @ kernel 3.0.101

New link in download section. :)

2017-09-12

Update:

Now rom using max18macs kernel

Working:

Calling

SMS

Data

Audio

Beats

Display

Mass Storage

Camera -laggy but can tak a shot.

Gps

Compass

Rotation

Wi-Fi

Bluetooth - turns on...

Tethering

Not working

Video REC

Voice REC

FM App

Installation

CLK

boot - 10 mb

system - 100 mb

data - the rest of it.

cache - 5mb

sd-ext - at least 1 gb

LINKS

ROM desire_HD2_sense4_Test8 @ kernel 3.0.101

Google Drive

Credits,

After few minutes thinking of who i should place in credits, the list of people is 1 mile long. So i decided to place 4 in front and give credits globally for all involved in hd2 development

Wky - built the rom

Kane159 - opened the thread and gave the rom

macs18max - kernel

Pho3n!x - data on ext

Everyone involved in hd2 development, as it wouldnt be as its is now without you guys.
[HD2 Android NAND Development] ya5:
added new download link - read post#386
[HD2 Android NAND Development] 4004:
Anyone has a NativeSD version of this?
[HD2 Android NAND Development] Hyter:
Please give new link.
[HD2 Android NAND Development] philipped346:
i have these . you can test.
[HD2 Android NAND Development] Hyter:
Big thanks, only "desire_HD2_sense4_wky" works for me.

My mistake, after installing cLK other ROMs started working.
[HD2 Android NAND Development] Marvlesz:
Lol, I guess I was too lazy to do all that stuff, although I DID want to try the ROM as soon as possible.

Will test now and report.

Edit:

Nope, it did not boot for me. The log shows many files that "could not be found". Mostly in the lib directory.
[HD2 Android NAND Development] dalfshiro:
Finally.you did it:thumbup:
[HD2 Android NAND Development] aazzam16661:
FYI, CLK works. The permission fix works. The bootrom works.

Apps that crash:

Clock. Open and hangs then crash.

Camcorder.

Weather. Same as clock

I use EU version with 370mb partition.

Thanks to kane159, gilbert32 and most thanks is to _why
[HD2 Android NAND Development] gilbert32:
Does data work with clk?
[HD2 Android NAND Development] Nitro_123:
Can someone please test for MAGLDR ?

And can someone please confirm how much space this takes in /system ? (not the size of the partition as that might be misleading)
[HD2 Android NAND Development] gilbert32:
Yes, i does boot for magldr. use files from this post: http://xdaforums.com/showpost.php?p=40495541&postcount=38

my system partition size: 270mb. after boot, around 140 mb are free for data (with a2sd).

Titanium backup says i have a system partition of 283mb, with 44mb free. so i guess that's around 240 mb. with QtADB, system size 263mb, used 222mb. i think it's safe to flash with 240mb system partition

---------- Post added at 09:44 AM ---------- Previous post was at 09:28 AM ----------

How did you install? eu or tmous? what partition size?
[HD2 Android NAND Development] aazzam16661:
Yes it does.

sequense

:Turn on and then off turn on again then off and on again and stayed on with data.

does any one want This rom with all the fixs put in it. i could post one. only with OP permission

also the fix_boot from kane159 works.
[HD2 Android NAND Development] dalfshiro:
at first boot is oke. but i cant reboot the phone.when phone reboot stuck on DHD.how about you?
[HD2 Android NAND Development] gilbert32:
Apparently after the boot_fix (i didn't reflash, only replace a2sd), the rom booted fine, and sound is no longer extremely low (not sure if i was the only one to experience it)
[HD2 Android NAND Development] aazzam16661:
Mine boot right back. Didn't stuck on DHD but after finish booting everything FC until screen goes black reboot again still didn't stuck on DHD but only contacts storage fc, no HTC sense clock, no apps on home screen and no widgets reboot again still the same, boot to recovery, wipe data and dalvic plus fix permision then stuck on DHD. Logcat saying framework problem.
[HD2 Android NAND Development] gilbert32:
doesn't wipe data wipe sd-ext too? framework, system apps and data are present on the sd-ext
[HD2 Android NAND Development] aazzam16661:
Well that didnt pop in my head. Thanks, going to reflash and test again

Also i use tytung kernel for testing, for me more fluid
[HD2 Android NAND Development] dalfshiro:
hi,will you upload the fix with reboot ok?
[HD2 Android NAND Development] gilbert32:
i wish i can upload anything but my traffic is too limited. tomorrow or in some days i WILL be offline until another week or two. so i cant :(

Try the fix_boot.rar a posted by kane159 in post #40. Follow his instructions.

---------- Post added at 11:45 AM ---------- Previous post was at 11:42 AM ----------

Can anyone try downloading marc1706's ics kernel sources from here https://github.com/marc1706/desire_kernel_35/tree/ics_bcmdhd and compile them for leo and try it with the rom? maybe it would help with wifi.:fingers-crossed:
[HD2 Android NAND Development] aazzam16661:
Do you mean by with all the fixs put in to the rom. I could upload it.
[HD2 Android NAND Development] aazzam16661:
If anyone compile that please upload and share it.
[HD2 Android NAND Development] jpg3927:
need just zimage? or cwm flashable zip?

and,.. branch is ics... right?
[HD2 Android NAND Development] gilbert32:
need zImage and it's modules. the branch is ics_bcmdhd.
[HD2 Android NAND Development] jpg3927:
i will do that.. thanks
[HD2 Android NAND Development] aazzam16661:
Low sound (Maybe fixed)

I discovered that if you fix the framework and app2ext using the zip file provided, the sound will be low. IF you do the fix manually using ADB, sound will be loader. This is base on early testing, not sure if if this is correct.

Please test.
[HD2 Android NAND Development] -pixelfreak-:
re

i have insert this rom in my Kitchen and have insert the multilingual files.

- wifi not work with the files inside and my files

- mobile network not work for me

- camera works perfect and camcorder have Fc

- bluetooth not work

- clock menu have a problem

- weather have a problem

will work with this rom and make better. i will search the problem with networks

pixelfreak
[HD2 Android NAND Development] gilbert32:
For me, i copied the a2sd script in fix_boot (via adb)and device boots now without pc, and sound is normal (loud).

I'm pretty sure that low sound problem is related to a2sd, as it's said here:http://xdaforums.com/showthread.php?t=1843062

data don't work on clk (the dev who ported this rom originally didn't include ppp connection as i understood), but rmnet works fine with me on magldr.
[HD2 Android NAND Development] Robbie P:
Thanks -pixelfreak-

I have been trying to get it to boot on nativeSD, no luck so far.

Noticed from dmesg

msm_rmnet: version magic '2.6.32-ics_tytung_HWA_r2 preempt mod_unload ARMv7 ' should be '2.6.35.14-marc1706s_ics_0.1.4+ preempt mod_unload ARMv7 '
tun: version magic '2.6.38.8-joker_sense_v4 preempt mod_unload ARMv7 ' should be '2.6.35.14-marc1706s_ics_0.1.4+ preempt mod_unload ARMv7 '
fuse: version magic '2.6.32-ics_tytung_HWA_r2 preempt mod_unload ARMv7 ' should be '2.6.35.14-marc1706s_ics_0.1.4+ preempt mod_unload ARMv7 '

Might cause data problems.

will play around a bit more
[HD2 Android NAND Development] aazzam16661:
It worked for me on CLK
[HD2 Android NAND Development] dalfshiro:
thanks.maybe you can make nativeSD version PF.
[HD2 Android NAND Development] gilbert32:
I flashed tytung's ics_r36 kernel. but data worked with the original stuff with eu installation on magldr
[HD2 Android NAND Development] -pixelfreak-:
re

i think the network problem is from Kernel. the modules in the rom have i think no problem. i have insert my modules and the self problem no wifi and no mobile network

change the customize folder and the rom is multilingual i think so i have test only with german language and works perfect

pixelfreak
[HD2 Android NAND Development] gilbert32:
Regarding wifi

I was messing around with the roms i have and trying different bcm4329.ko files i had. one of them worked, it was able to initialize. wifi would turn on and show scanning, but doesn't find any AP. hope that helps...
[HD2 Android NAND Development] -pixelfreak-:
re

send me your files from tytung and i will test with QtADB what say me

pixelfreak
[HD2 Android NAND Development] aazzam16661:
Note to people if you combine the fix-boot.zip to the rom zip file and then flash it. Result is low sound. If you push it using adb it will be normal according to gilbert32.
[HD2 Android NAND Development] -pixelfreak-:
re

okay i have found the problem for mobile network. my mobile network works good will search later the wifi problem.

pixelfreak
[HD2 Android NAND Development] gilbert32:
Wifi is fixed :D

F*** YEAH!!!!

flash tytung's kernel from here: https://code.google.com/p/nexus-hd2/downloads/list?q=label:ICS+label:Kernel+label:HWA

push the file included in this archive to /system/etc/firmware: http://xdaforums.com/attachment.php?attachmentid=841847&d=1325675485

push the file included in this archive to /system/lib/modules: http://xdaforums.com/attachment.php?attachmentid=1899838&d=1366545251

if it doesn't work, try this in adb shell:

chmod 644 /system/lib/modules/bcm4329.ko

chmod 644 /system/etc/firmware/fw_bcm4329.bin

reboot

if it still doesn't work, this should start wifi:

insmod /system/lib/modules/bcm4329.ko iface_name=wlan0 firmware_path=/system/etc/firmware/fw_bcm4329.bin nvram_path=/proc/calibration

-pixelfreak-: sorry, i got wifi covered before you :D
[HD2 Android NAND Development] jpg3927:
i compiled https://github.com/marc1706/desire_kernel_35 - branch : ics_bcmdhd

.. now this is unused?;;

[sorry for poor english]
[HD2 Android NAND Development] dalfshiro:
wow..amazing..thanks man

waiting for bluetooth now..:D
[HD2 Android NAND Development] gilbert32:
Not sure. Maybe will be usable later. can you upload it?

Thanks. i reached my thanks limit long time ago today :D
[HD2 Android NAND Development] aazzam16661:
Which rom did you get this?
[HD2 Android NAND Development] gilbert32:
don't know. i just opened every rom i found and extracted this file and tried. after too many tries, this one worked
[HD2 Android NAND Development] thelonewolf_pav:
guys,

can anyone upload the resulting version? I'd like to work on it as well...

what's not working yet?
[HD2 Android NAND Development] jpg3927:
here you are..

zimage and some modules..

if some modules not include in this file,

please send me a pm
[HD2 Android NAND Development] gilbert32:
Thanks. i will check them out later
[HD2 Android NAND Development] Nitro_123:
Hello again everyone !

Thanks a lot to all the people who have worked on this ROM :D

And just out of curiosity, to the people who got the room working can someone please upload a video of it ?

Is it better/faster/smoother than Android 4.1 or 4.2 ?

Thanks again :)
[HD2 Android NAND Development] gilbert32:
i can't upload a video, but i can upload a picture to show you that wifi is working :)
[HD2 Android NAND Development] aazzam16661:
I will upload after i test it out.

What not working is Clock:FC

Camcorder:JC Just close

Just asking, does this rom have play store
[HD2 Android NAND Development] thelonewolf_pav:
thanks! will wait for your upload and try to smali-edit the apps that FC.

How is this ROM compared to sense 3.5? I mean general speed / lags
[HD2 Android NAND Development] gilbert32:
This rom, for me, after trying many sense 3.5 builds, many 4.1 and 4.2 build, is VERY fast AND smooth.

you can read the whole thread to see how to boot it up, fix sound, add languages and fix wifi until someone releases a more working version
[HD2 Android NAND Development] thelonewolf_pav:
thanks, this is exactly what I'm doing ATM :)
[HD2 Android NAND Development] aazzam16661:
Well WIFI works. Going to upload ROM with all the fix put into.
[HD2 Android NAND Development] gilbert32:
Make sure to test it before, and that everything works good. for me, i have to insmod wifi module after each reboot
[HD2 Android NAND Development] Robbie P:
Perhaps a workaround could be an init.d script to do this

BTW still not able to boot nativeSD:o
[HD2 Android NAND Development] aazzam16661:
Me too, but i have a very funny problem. I can't find my home Access point but can find my neighbour's access point'S accecpt me. F***,S**T

Maybe i upload after a workaround for the insmod wifi module problem
[HD2 Android NAND Development] Zaheem:
can you also clear if bluetooth, cam & camcoder works too :fingers-crossed:

upload in same threat or new one! Thanks alot to all for hard work:good:

Cheerz
[HD2 Android NAND Development] gilbert32:
I had thought about that too. Added the insmod to the bottom of 99CompleteBoot, reboot and voila connected to wireless just when lock screen appeared :D Thanks
[HD2 Android NAND Development] -pixelfreak-:
re

okay bluetooth works. if i come home i will test connect to other devices. i have no computer for testing this rom on my work

pixelfreak
[HD2 Android NAND Development] gilbert32:
Awesome. That leaves us with clock and weather apps FC, video cam's closing and the sound recorder problems. Mainly all hardware problems are fixed right?
[HD2 Android NAND Development] aazzam16661:
Can anyone tell me is this how to solved this problem.

I cant found my home access point but i can found my neighbour's access points i found 2 or 3 of them but not mine. I have the same router as my neighbours. Using the same ISP but can found my AP. IS this a phone related problem or something else or i just need to reset back to default(router) Thanks
[HD2 Android NAND Development] -pixelfreak-:
re

yes. i will test on my computer if i come home. i think the codecks not work 100% for camcorder. i can not found weater clips in this rom. i think the cook have this forget i dont now

pixelfreak
[HD2 Android NAND Development] Zaheem:
May you need to change access point settings for your one. HD2 doesn't always support check settings on your neighbour's access point
[HD2 Android NAND Development] gilbert32:
Try to change your router's broadcasting channel. In windows phone, i couldn't connect to my neighbors' wifi because of it. when i changed their BC, from 11 to 6 i guess, it worked.

on the other hand, is this a bug?
[HD2 Android NAND Development] Zaheem:
YEAH THATS ? I MEANT:highfive:
[HD2 Android NAND Development] aazzam16661:
Maybe its because when the router is installed by an ISP contracter, i change a little in the router setting, and maybe my neighbour didn't. i just going to reset it to default.

Edit:Finally the phone the AP after i reset the router. Well is there any workaroung for the wifi. If there is please share and i can put it in the rom and then i could upload the rom
[HD2 Android NAND Development] gujiangjiang:
Hello，I have do some work on NativeSD，and I succeed！（Forgive my Poor English）

this is the rom！

http://pan.baidu.com/share/link?shareid=414695&uk=1544010681

BUG Not Repair ，like WIFI

I'm very happy to see lot‘s of people doing this！

Good luck！

---------- Post added at 03:38 PM ---------- Previous post was at 03:34 PM ----------

NativeSD Version：http://pan.baidu.com/share/link?shareid=414695&uk=1544010681
[HD2 Android NAND Development] xzakly:
have you tried changing the buid.prop

so the device will be identified has a sensation xl instead of hd2?

ro.build.description

ro.build.fingerprint

etc...
[HD2 Android NAND Development] dalfshiro:
can you upload it on dev host please???
[HD2 Android NAND Development] aazzam16661:
Does anyone want to see a video of this amazing ROM?
[HD2 Android NAND Development] gilbert32:
That shouldn't help him with his router AFAIK
[HD2 Android NAND Development] aazzam16661:
I have fixed it it just reset the router to default
[HD2 Android NAND Development] xzakly:
that was for your question on the compass problem..
[HD2 Android NAND Development] gilbert32:
Ahh oka thanks. its says there's a problem but i think it works fine so it's a program bug (maybe i'm wrong).
[HD2 Android NAND Development] gujiangjiang:
Dev Host is too slow in china，Especally in my University。。:crying:
[HD2 Android NAND Development] gilbert32:
http://xdaforums.com/showpost.php?p=40538221&postcount=92
[HD2 Android NAND Development] jpg3927:
i will upload it on dev-host

thanks
[HD2 Android NAND Development] gujiangjiang:
Thank You For Your Upload!

:good::good::good:

You can also repair WIFI first....
[HD2 Android NAND Development] jpg3927:
i think i can do that too..

first.. i will upload non-fix rom on dev-host

fixing is next..
[HD2 Android NAND Development] Robbie P:
Thanks gujiangjiang, I am downloading from baidu site, it looks like it will take 10 hours to download. At that rate, the people on this thread will have a working sense5 by then;):D

can you edit your post to delete the quote from first post, to avoid a bit of clutter. Thanks.
[HD2 Android NAND Development] aazzam16661:
Is this a bug?

I think i reboot my phone to much. After like 5 reboots no app at lock screen and no apps and widget at home screen but there is apps at the app drawer.

---------- Post added at 11:03 PM ---------- Previous post was at 11:01 PM ----------

I dont understand how to.
[HD2 Android NAND Development] gilbert32:
That's weird. maybe it's some problem with your sd card? i rebooted wayy too much, but this never occured to me :confused:

about wifi, i opened /system/etc/init.d/99CompleteBoot, and added

insmod /system/lib/modules/bcm4329.ko iface_name=wlan0 firmware_path=/system/etc/firmware/fw_bcm4329.bin nvram_path=/proc/calibration

to the line before last, so after this line init is complete (the line next to this one is wlog $version .....)
[HD2 Android NAND Development] kane159:
dont worried, I'll upliad it later ;)
[HD2 Android NAND Development] jpg3927:
oh...uploading to dev-host in korea is too slow...

so.. i will upload to korean server too.. please wait
[HD2 Android NAND Development] gilbert32:
Okay then. Let's grab a copy of htc one's RUU :D
[HD2 Android NAND Development] aazzam16661:
Anyway i tried using notepad++ make work i took a snapshot asking you if i did this right.
[HD2 Android NAND Development] gilbert32:
That's right. save it and replace the original file.
[HD2 Android NAND Development] aazzam16661:
I just use yours. Also i finished up thanks for today and mostly all for your post.

But i still don't understand how you make sound load. Today i flash this same rom with the fix and without the fix. some have load sound some have low sound. WHY is it just luck?
[HD2 Android NAND Development] gilbert32:
BUG(high risk of false positive)

LOL i finished them up long time ago today :D

ATM, i installed play store (play store 4.something, the one with the new design that looks like google now) and it FC once i started downloading an app. but i only installed the play store, not GAPPS so i think it would work on the other way(flashing gapps)

edit: after reboot, play store crashed around 20 times without opening it so i uninstalled it.

EDIT2: i mentionned how it worked for me earlier. if you use my files and my method (mentionned somewhere a few posts before fix_boot.rar), you shouldn't get low sound bug.
[HD2 Android NAND Development] jpg3927:
i'm fixing wifi on nativesd rom

and here is wifi not fixed rom on korean server

http://inclu.net:82/HTC/HD2/sense 4.0/#upload

download HD2 Sense 4.0 NSD.zip

and i can't do adb debugging on native sd rom... :(

my pc doesn't recognize my phone

--------------------------------added

sorry... i don't know how to fix wifi for nativesd

and i am veeeery sleepy... :(

i think someone well than me will fix wifi and etc for everyone's hd2..
[HD2 Android NAND Development] gilbert32:
get some rest:good:. Today most of the rom got working. maybe tomorrow it will be done and uploaded. maybe in a week. maybe forever.

I'm no dev, have minimal android dev experience, But i was excited about this rom, which is why i think i was able to help with.

Thanks to everyone too:good: Thanks to myself too :D
[HD2 Android NAND Development] jpg3927:
thanks for your work!
[HD2 Android NAND Development] gilbert32:
Here's the summary until today:

Wifi fixed. thanks to gilbert32

Bluetooth fixed(waiting for test). thanks to -pixelfreak-

More languages added to installation. thanks to -pixelfreak-

mobile network work for pixelfreak. thanks to -pixelfreak-

Boot fixed. thanks to kane159 and gilbert32

Low sound probably fixed. mixed reports. i posted a method that should work fine Here. thanks to gilbert32

NativeSD version is ready, very buggy as reported. thanks to gujiangjiang

Still to do:

Fix camera FC

Fix Weather FC

Include missing files

Update drivers

Fix sound recorder app

Fully fix nativeSD and make it ready

Find all evil bugs and exterminate them

start working on sense 5 :D
[HD2 Android NAND Development] Stensfie:
+1 , i'm very excited...thanks for all your work guys
[HD2 Android NAND Development] marcimix:
Bad luck day. Thank you everyone! :silly:
[HD2 Android NAND Development] gujiangjiang:
How to delete my quote

---------- Post added at 07:57 AM ---------- Previous post was at 07:46 AM ----------

Hello,Can you try to port a new sense4 from a desire rom,because i think this rom was lack of something important or uninportant,so i think port a new rom is easyer than repair this rom
[HD2 Android NAND Development] aazzam16661:
Well for me this rom is all most a complete super rom just some bug and app crash. ME i'am just going to wait for the sense 5 port from gilbert32