yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] philipped346:
No.

---------- Post added at 06:00 AM ---------- Previous post was at 05:58 AM ----------

I use initrd f2fs of cm13.
[HD2 Android NAND Development] thinhx2:
Booted or no?
[HD2 Android NAND Development] thinhx2:
Send me
[HD2 Android NAND Development] Robbie P:
it should be this one, I have stripped the zeros from it.
[HD2 Android NAND Development] Robbie P:
I have extracted the zImage from this boot.img, added .img (so as to upload) and attached below, just delete the .img and put in NativeSD folder (DirectSD folder if using CM13 aroma script), I will test it later.
[HD2 Android NAND Development] thinhx2:
Waiting work
[HD2 Android NAND Development] philipped346:
yes it boot in f2fs and directsd :good:

initrd f2fs

https://mega.nz/#!CkY2kSjK!Cqw678JnOOZdodFRyU-vg_Z31c19MQ4xZKnI49knS5M
[HD2 Android NAND Development] Robbie P:
I still can't get this to boot from f2fs, tried another sdcard. Any chance of you uploading your rom.zip?
[HD2 Android NAND Development] thinhx2:
Bro test kernel only f2fs and kernel ext4-f2fs?
[HD2 Android NAND Development] Robbie P:
Cancel that, I know what I did wrong. I changed rom-name in the zip, but did not change it in initrd.gz. Doh!

Will install to CM13 folder now, then will test new kernel. Sorry guys.
[HD2 Android NAND Development] thinhx2:
Oke bro,waiting feedback from you
[HD2 Android NAND Development] philipped346:
boot also with initrdext4 of cm13 and directsd.
[HD2 Android NAND Development] thinhx2:
Thank bro,now i try port beanstalk 6 from htc desire
[HD2 Android NAND Development] Robbie P:
Ok, tried new kernel on f2fs

data nok

wifi ok

Bluetooth nok

calls ok

messages ok

camera nok

mtp ok

adb from windows nok

So same as original kernel.

Attached a dmesg
[HD2 Android NAND Development] thinhx2:
Kernel only f2fs or kernel ext4&f2fs?
[HD2 Android NAND Development] Robbie P:
I thought @philipped346 booted the new kernel from ext4?

I haven't tried it with ext4 yet.

I am thinking of editing both ramdisks in the CM13 boot folder and changing the rom-name to "RR-CM13" so that the rom installs to, and boots from, a unique folder in both sd-ext partitions. This way we can have RR, original CM13 and possibly Beanstalk on the phone at the same time, without overwriting any. Will upload the ROM when done.

Edit; new kernel works the same as above on two ext4 partitions. Having trouble uploading the rom, failed at 100% after 1.5 hours. Trying dropbox for now.
[HD2 Android NAND Development] thinhx2:
Good idea :) i try port beanstalk next day,if stuck logo rom,i will build rom. Now i need sleep ?
[HD2 Android NAND Development] Robbie P:
I edited my last post.

I got my swap partition working manually from terminal, but camera still not working.

Good luck.

Edit; finally got it uploaded https://www.dropbox.com/s/gti6iy8moztxlhl/RR_cm13_v1.zip?dl=0 md5sum 21b6ea3aecf73a7d1ec085473edc43e6

Thanks to @tytung @chautruongthinh and @macs18max for the aroma scripts.

It installs to folder RR_CM13 on partitions, either both f2fs or both ext4, and boots from folder DirectSD on sdcard via AD SD.
[HD2 Android NAND Development] thinhx2:
Bro can upload to google drive-android file host- dev host?

Now i re build r.r 5.6.8,no update source, thank [MENTION=4894994]chautruongthinh[/MENTION] help me fix bug screenshot (need test)
[HD2 Android NAND Development] thinhx2:
new:

fix dont take screenshot(need test)

thank [MENTION=4894994]chautruongthinh[/MENTION] help me

link: https://drive.google.com/file/d/0B-TpiHEnTdWrS3M5WmhOYmw3cVU/view?usp=sharing (only ext4,will make kernel f2fs or use kernel f2fs old)

to night i wil upload fix cam,data (need test)

thank all
[HD2 Android NAND Development] Robbie P:
I tried this using ext4, cm13 ramdisk and the second zImage you posted and on first boot the camera icon showed up in shortcut bar and app drawer. on pressing it I got a popup saying "app not installed" then the icon disappeared from both locations.

Anyway, tried screenshot (vol dn + power buttons) and it seems to take the screenshot but it still isn't being stored anywhere I can find. internal memory pictures and dcim are empty and not on FAT32 dcim or pictures.

Do we need to use the zImage (in the boot.img) included with the latest rom?
[HD2 Android NAND Development] thinhx2:
Yes bro. Bro try go to picture/screenshot on sdcard?

This is file zip lib camera,ril. Bro coppy to new rom and try test.

Link: http://upnhanh.mobi/f/NTTqt

Thank bro
[HD2 Android NAND Development] Robbie P:
Sorry, I am having to put those files in zip and re-flash. This testing does take time doesn't it. :D

I did check the sdcard for screenshots but not there. Sometimes though it takes a reboot to show up. If it is on the FAT32 sdcard (not the emulated internal one) then it should still be there after booting and optimising, will check again.
[HD2 Android NAND Development] thinhx2:
Oke bro,i can wait :) good luck
[HD2 Android NAND Development] Robbie P:
It doesn't boot with these libs. I first tried putting the files into /system with recovery copy and paste, not booting. Then put the files in the rom.zip and re-flashed, not booting. Then changed kernel to original, still not booting. It hangs after htc screen and before boot anim. Have attached dmesg
[HD2 Android NAND Development] thinhx2:
Only test camera,ril.so or only test camera.so

Lib camera: lib*camera*.so and folder hw

Lib ril: lib*ril*.so and lib*radio*.so

thank bro. Good night. I need sleep
[HD2 Android NAND Development] Robbie P:
I thought you were going to say that. Ok, re-flashing latest rom, then will add libs using recovery until camera works or phone fails to boot.
[HD2 Android NAND Development] thinhx2:
Yes bro and i hope work
[HD2 Android NAND Development] Robbie P:
ooh, I just found settings/configurations/button-controller/power-menu where you can add screenshot option, this works and saves to emulated sdcard/pictures/screenshots. not sure how I missed that before.
[HD2 Android NAND Development] thinhx2:
Hehe,amazing and camera work?
[HD2 Android NAND Development] Robbie P:
not yet, having to use rom toolbox to install libs, since there are permissions issues using recovery
[HD2 Android NAND Development] thinhx2:
Bro try unpack rom and only move lib camera to rom?
[HD2 Android NAND Development] Robbie P:
tried that and it didn't boot

trying 1 lib at a time now

found 2 libs which each make the rom not boot, libcamera_metadata.so and libcamera_client.so

libcamera.so is exactly the same file in both.

looking at checking md5sums of each file to see if different before installing as it might save a bit of time.

get some sleep.
[HD2 Android NAND Development] thinhx2:
In my rom i dont see 3 file in system/libs,tomorow bro can test? Good night
[HD2 Android NAND Development] Robbie P:
no there is only 1 file which is not in latest rom, libshim_skia.so and trying this now
[HD2 Android NAND Development] thinhx2:
Good luck. I need sleep ???
[HD2 Android NAND Development] -pixelfreak-:
you must test snap camera support for old caf device....

https://plus.google.com/+ArnabChaudhuriArnY/posts/A4qFi4VKWbp

pixelfreak
[HD2 Android NAND Development] philipped346:
you are right , i have puting all lib in the rom except the two libcamera metadata and client so and now boot :good:

but stuck on bootanimation , weird !
[HD2 Android NAND Development] Robbie P:
libshim_skia.so makes it stick on bootanimation, remove that and try again. go into recovery, mount sd-ext2, delete system/lib/libshim.. reboot and boot it.
[HD2 Android NAND Development] philipped346:
stuck on bootanimation !:crying:
[HD2 Android NAND Development] Robbie P:
I think you need to start deleting libs from the bottom of the list, and I will add libs from the top. to find out which one is hanging on boot anim. Fancy it?

---------- Post added at 09:18 PM ---------- Previous post was at 09:07 PM ----------

libcameraservice.so hangs on animation, try deleting it.

---------- Post added at 09:40 PM ---------- Previous post was at 09:18 PM ----------

l

libs that don't work;

libshim_skia.so

libcamera_metadata.so

libcamera_client.so

libhwui.so

libradio_metadata.so

libcameraservice.so

libs that work ok;

libhardware.so

libhardware_legacy.so

libqdutils.so

libradio.so

libradio_service.so

libreference_ril.so

libril.so

librilutils.so

libshim_camera.so

libsigchain.so

libskia.so

or are same (same md5) in both

libcamera.so

libacoustic.so

htcril.so

liboemcamera.so

libs not tested yet, with different md5sums;

Actually, thinking about it, the more libs you delete, the less chance it will boot anyway. you might have to re-flash. unless you can copy original ones back (perms 0644)
[HD2 Android NAND Development] philipped346:
réinstal to proper and go to sleep and see tomorow .
[HD2 Android NAND Development] thinhx2:
Oke
[HD2 Android NAND Development] philipped346:
without the five libs , libshim_skia.so

libcamera_metadata.so

libcamera_client.so

libhwui.so

libradio_metadata.so

libcameraservice.so

the rom boot and optimizing apps .......waiting :p
[HD2 Android NAND Development] philipped346:
stuck on starting apps :crying:
[HD2 Android NAND Development] thinhx2:
Oke,i thing only marc18max and spezi77 can help me fix this bug ?
[HD2 Android NAND Development] moliva_85:
Thanks to all who are trying to return to life our favorite smatfon. Some of us do not write and did not participate at this time due to lack of skills to work with this type of software but regularly monitor progress of the project! Thank you for your labor and time you put into this venture.
[HD2 Android NAND Development] thinhx2:
thank :)
[HD2 Android NAND Development] thinhx2:
maybe i will stop this project?
[HD2 Android NAND Development] Robbie P:
I had same as philipped346, stuck on starting apps. If I reboot it gets stuck on bootanimation.

When I added the libs, if it worked, I left it in and went on to the next, so the rom had pretty much all the libs before I re-flashed. Camera still didn't connect and data was not working.
[HD2 Android NAND Development] Robbie P:
That is, as always, your choice. But as you say, with a little help, we are close to having data and camera working. Macs18max already had both working, although camcorder FCed after four seconds (perhaps this could be fixed with the commits -Pixelfreak- mentioned?). So we are quite close I think to a working ROM.

I think we all understand though that real life is more important than modding our phones. And that HD2 has had a fantastic run. Not my decision really, although I will continue to help, where I can, in any future developments.
[HD2 Android NAND Development] thinhx2:
Yes,HD2 is king of phone. I can build rom for HD2. But i think new rom data,camera not work. Need help from Marc18max and Spezi77. Marc18max no have Ubuntu hard disk and i go to github of Spezi77,i can see many commit to fix camera for htc desire,can work for hd2. But i no have idea to fix. I dont see file qsd8k.mk (this file fix camera fir htc desire) on github device of Marc18mac. We need device tree have work with this file. And all commit Marc18mac and Spezi77 send me. I worked and only call and messenger work,i no have idea to fix data. And later, bro try set apn network to connect internet or no?
[HD2 Android NAND Development] Robbie P:
yes, I set to Vodafone contract internet, although I did not set individual apn as they were pre-set.
[HD2 Android NAND Development] thinhx2:
Marc18mac tell me detele file libril.so. bro can test?
[HD2 Android NAND Development] Robbie P:
Still hangs on boot animation, attached dmesg

will try with original libril.so

Edit; same, bootanimation for ages, attached 2dmesg
[HD2 Android NAND Development] thinhx2:
Sorry bro,he say detele 2 file libhtcacoutic and lib ril. Sorru. Bro can see this commit: https://github.com/maniacx/android_device_htc_leo/commit/97305286bf0aa167ec33e5c8abfa9bb78f6244d6

Red is detele,green is add. Sorry and i hope data work
[HD2 Android NAND Development] Robbie P:
I am just installing v2 fresh, optimizing apps, will try those two deletions without adding the new libs first.

I also had another thought about data. We could try the old "rmnet to ppp" trick, worked for me countless times before with sd builds. A ril wrapper for ppp on magldr. might work, will see.

---------- Post added at 02:44 PM ---------- Previous post was at 02:15 PM ----------

I am a bit confused by that link, it seems to say remove libhtc_ril.so (and libril.so) then add libhtc_ril.so. I found before that the old and new libhtc_ril.so have the same md5sum, so the net result would be the same as just deleting libril.so, which is what I did earlier today.
[HD2 Android NAND Development] thinhx2:
Detele 2 file i tick v bro. Marc18mac say detele 2 file. Bro can try your tip and feed back me. Good luck
[HD2 Android NAND Development] Robbie P:
deleting those files breaks calls and messenging, see icon in screenie attached.

This is from second version of rom without the new libs added

I deleted libril.so first then booted and the icon was greyed as in screenie, then I deleted libhtcacoustic.so and booted and the icon was the same.

Does it need the new libs in it?

Edit; I tried the rmnet to ppp update from tytung and the icon was still grey, so I put back those two libs, I have calls working again, but still no data.

Need to go out now, to watch the footie, come on you Palace! (am an Arsenal fan really ;))
[HD2 Android NAND Development] thinhx2:
Now i waiting marc18mac send me commit fox data for htc hd2
[HD2 Android NAND Development] macs18max:
It is very hard to tell what is wrong as you dont have the source on github.

And the zip that you sent , i could not extract it... I could view some files which were extracted before the process stopped. Anyways.

I was asking to delete libril.so from source and not from the ROM. But after looking at your sources I see that you have already deleted it.

first try using kernel from my ROM. May be the kernel is the issue? (should be easy to test, just replace zImage)

You need to use android_frameworks_opt_telephony from ressurection remix... And patch the following if not patched already..

https://github.com/spezi77/android_...mmit/0552ffd9a47572d86dcf3019b00a3f1d3c91cf0f

https://github.com/spezi77/android_...mmit/5e2f8e99486caea255d218f6ef8acd24b5712bdf

https://github.com/spezi77/android_...mmit/30f31e85f7ee653971e0e792a113b0f79db5a1cd

For camera. You need the following patch

https://github.com/spezi77/android_...1_bionic-linker-restore-prelink-support.patch

https://github.com/spezi77/android_...eenable-support-for-non-PIE-executables.patch

https://github.com/spezi77/android_...3_bionic-Dont-stop-on-compiler-warnings.patch

https://github.com/spezi77/android_...-PIE-for-dynamically-linked-executables.patch

https://github.com/spezi77/android_device_htc_bravo/commit/426c89756fe818d2ba029ba9e331daecfd3ab053

https://github.com/spezi77/android_...mmit/b3a8f99b1c2bebc76e3450bd0d78fcd2e0e99ab5

Problem is my harddrive crashed. I lost all my sources as I didnt have time to update on github.. Luckily spezi77 keeps his source updated.

All the best.

Dont forget to "make clobber" before you recompile your ROM.

Any doubt. reply on xda forum. It is better to explain here so that other can correct me if i am wrong or can refer to this for future post.

If I dont reply within a day, just buzz me on hangouts and i will reply to the post on xda.
[HD2 Android NAND Development] thinhx2:
Thank bro help me. I will rebuild in next week. Now and future i no have connect internet. Will no have 5.6.9,5.6.10. Only 5.6.8 for all
[HD2 Android NAND Development] thinhx2:
complete

link: https://drive.google.com/file/d/0B-TpiHEnTdWrVGdJUnVwcDVYaVU/view?usp=sharing
[HD2 Android NAND Development] thinhx2:
[MENTION=3629322]Robbie P[/MENTION] and [MENTION=2690854]philipped346[/MENTION] can test?
[HD2 Android NAND Development] Robbie P:
I have data working now using mac's initrd.gz and the previous zImage

Still can't connect to camera though, will try the latest zImage from zip
[HD2 Android NAND Development] thinhx2:
Yeah :) :)
[HD2 Android NAND Development] Robbie P:
Tried the new kernel, same data working and still can't connect to camera.

I found this thread earlier http://xdaforums.com/android/software/fix-extsd-fix-v1-0b-2016-01-18-t3296266

it is a script to change app permissions to allow them to access the external sdcard. So Music, photos etc are stored/accessed on the fat32 partition. But I can't get the zip to flash to our /system on the sd-ext2. It is a script in the update-binary, I think we need to mount /dev/block/mmcblk0p3/RR-cm13/system to /system but it won't flash. keep getting "mount: mounting /sd-ext2/RR-CM13/system on /system failed: No such file or directory" in recovery.log.
[HD2 Android NAND Development] thinhx2:
I thing folder RR-CM13 on fat32 partition,not on ext2 partition
[HD2 Android NAND Development] Robbie P:
The way I booted the rom was by using the aroma installer from macs18max cm13, and changing updater-script to install to a folder on sd-ext and sd-ext2. So that it doesn't interfere with other roms there.

Still trying this, would be great if it actually worked.
[HD2 Android NAND Development] philipped346:
Hello, i'cant test now, i'm in croatia for seven days ?
[HD2 Android NAND Development] Robbie P:
Here is a link to the last updated rom for those wanting to test. Working data.

https://www.androidfilehost.com/?fid=24572330218881181

It is again for 2 ext4 partitions, installs to folder RR_CM13.

It has aroma installer, don't bother with softkeys, they are in the rom under settings. You can try installing gapps, but philipped346 said the rom was slow with them, there are open source alternatives to playstore, which I haven't tried yet. I didn't edit aroma config, so it still says version 1.

Can't get that external sd script to work, I posted in that thread. might just try manually to change certain app perms as in http://xdaforums.com/showpost.php?p=66554730&postcount=27
[HD2 Android NAND Development] thinhx2:
Google installer apk is old,i send bro new google installer apk,i like this app,no need flash to system

http://upnhanh.mobi/f/YGyBjG
[HD2 Android NAND Development] thinhx2:
New job,no have free time to build rom for htc hd2 and all,i will comeback after 2 month
[HD2 Android NAND Development] ilovemeow:
while hd2 can upgrade to marshmallow

native android , evo3d and note 2 has no update since kitkat lmfao
[HD2 Android NAND Development] thinhx2:
Officall or unoffical bro? Htc hd2 use win mo 6.5,htc evo 3d and ss note 2 run android native, for htc evo 3d i thing only need run stock rom (on xda,i can see htc evo 3d can run cm12.1 and camera not work),i like camera 3d. Htc hd2 have a dev is marc18max support from 4.4 to 6.0
[HD2 Android NAND Development] ilovemeow:
i like 3d camera too, but no further dev support after sense 4
[HD2 Android NAND Development] thinhx2:
Hehe,stock rom,no need new version android
[HD2 Android NAND Development] ilovemeow:
damn right, 4.0.4 stock rom is good enough for evo3d!
[HD2 Android NAND Development] thinhx2:
No need 5.,6. And batery of htc evo 3d good or bad?
[HD2 Android NAND Development] ilovemeow:
i was using extented battery, can last 24 hours for light use
[HD2 Android NAND Development] Snow000man:
Thanx dev for this work. Just installed the rom on my HD2 EU.

[I repartitioned the sdcard with two 1024 mb ext4 and 128 mb swap. In aroma it showed both, ext and ext2 partition sizes as 977 mb?

It went to install in DirectSD instead of nativesd. Installs to folder DirectSD. Booted in exactly 21 minutes! The rom runs too slow (my sd card is 4gb class 4). Takes a while to respond after click is registered.

Force closes in some system settings.

My battery is also almost dead so it says four hours bat time.

The phone gets warm at the bottom half while using it. Didnt haapen with the earlier rom (I had slimkar 4.4.2).

The screen does look very crisp.

Calling works. Sms works.

Overall, I am happy to see MM on my HD2.
[HD2 Android NAND Development] thinhx2:
Bro need sdcard 10. Thank bro report. Bro can make video review? Bro can run miui 2.3 on nand and run r.r 5.6.8 on sdcard
[HD2 Android NAND Development] werty100:
Optimizing apps 77 out of 85....

F2FS both partitions , 128mb swap, sandisk 8GB class 10....

No gapps

Use TWRP Native SD Recovery for all the process
[HD2 Android NAND Development] thinhx2:
Hehe,good. Bro can make a video review rom?.
[HD2 Android NAND Development] werty100:
Ok i will try to do my best
[HD2 Android NAND Development] thinhx2:
Thank bro
[HD2 Android NAND Development] werty100:
Here you have the review

[YOUTUBE]FpZ1HeC9pm8[/YOUTUBE]
[HD2 Android NAND Development] Robbie P:
vid link not working, says it is a duplicate

I have popcorn, comfy chair, slippers on, but no vid;):D
[HD2 Android NAND Development] werty100:
Yes sorry fuk... youtube a cop and the video that saiys it is a copy is lumia 920 win10 build puajajja ...

I am reediting in with linux openshot , i made it before with Sony Vegas...:confused:
[HD2 Android NAND Development] Snow000man:
Sorry didnt mean to ignore your request for video review, but cant do it right now. :( I will however try to add more indepth review as I use it further.

Dont have class 10 card but I noticed after rebooting two-three times it runs slightly faster.

I also installed miui 2.3 on nand as you suggested.

Again thank you for this working version of RR MM on our HD2. Maybe in the future I could do some reviews.
[HD2 Android NAND Development] thinhx2:
Because my htc hd2 is die touch screen,i no have money to buy new touch screen. I love this device. I miss some time up rom from 2.2 to 5.1 ago htc hd2 die touch screen

Yes miui 2.3 is fast smooth stable

Thank you and all the people who believed in me
[HD2 Android NAND Development] werty100:
Finally here you have sorry for taking so mcuh tiem youtube is very anoying
[HD2 Android NAND Development] thinhx2:
Name track bro?
[HD2 Android NAND Development] werty100:
I dont know exactly but here you have it:

https://drive.google.com/open?id=0ByPIXbJ_ZVFMR2lCYnFTLVpIV1E
[HD2 Android NAND Development] thinhx2:
Thank bro :) :) :)
[HD2 Android NAND Development] voland:
Hello Devs.

Maybe you can make an suggestion. I had stuck on very first steps - my HD2 EU cannot load recovery from first post: it freeze on "Go! Go! Go!" message.

Well, I have found the way to format two ext4 partition as f2fs on Ubuntu, but no luck - Aroma installer, started from TWRP Extended 2.6.3.4 (which is load from SD) probably do not understand f2fs, and tell me that no usable partitions found.

Well, I am able to install TWRP on NAND, but HD2 is not supported by TWRP anymore, and last .img on their site is 2.2.0 (last official is 3.0.2.0).

So... no luck? On first video attached recovery working...

Ok, I try installation with ext4. It finished ok, but OS never started - with the same problem: stuck on "Go! Go! Go!" message!

So it looks like my aMAGLDR v1.13 do not able to load any DirectSD, only NativeSD.

Well. I tried to start recovery and OS as NativeSD, but without knowing right parameters the result is the same - freeze on "Go! Go! Go!" message.

Any suggestions please?
[HD2 Android NAND Development] philipped346:
hello , for recovery on nand you can take this is 2.8.7.0.

https://mega.nz/#!GpATlSRb!Er3M_dtLJS5WvafgvQOPu65WpUOR8YjZIiDtzEdmif8

for instal put hd2 in magldr and usb flasher and execute daf img .

also i think you have a video on cm13 of macs post 2.
[HD2 Android NAND Development] voland:
Thank you. I flashed recovery you supplied successfully, with flash.cfg you suggests, although I use another partitioning scheme. Nevertheless, result after trying to start "8. AD Recovery" is the same - freeze on "Go Go Go!" message :(
[HD2 Android NAND Development] moliva_85:
In the next few days will test all versions of Android that I have not tested until now. Two days ago I bought Samsung S7 Edge'' and now I can play with my old HD2 anytime.
[HD2 Android NAND Development] philipped346:
have you two partitions of 1 go or more ?
[HD2 Android NAND Development] Robbie P:
You mean NAND partitioning? please post your flash.cfg, recovery should be 13mb iirc