yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] zach.antre:
had the same issue when i deleted cache / dalvik cache...

I just reflashed rom and copy with terminal the file to /system/lib/ after i made a backup and is working perfect.

So if you deleted cache... Reflash and this time don't.
[HD2 Android NAND Development] ryohazuki:
So just reflash the rom, and use terminal to copy the file to the directory? dont delete cache or anything?

Edit: did what you told me, and now its working fine. Gotta test throughout the day for any data drops. Can't wait! :)
[HD2 Android NAND Development] D4rk50ul:
Testing this ASAP. Will report back findings in an appropriate amount of time. Good work.

Notice device is switching down to 3G then back up to H as soon as data activity is initiated. Never saw 3G before on my device but speeds haven't been effected at all :)
[HD2 Android NAND Development] HierOS:
works perfectly on imilka's hd 2.0
[HD2 Android NAND Development] zach.antre:
So... it is confirmed... it is working fine...

But why doesn't work when someone clears cache/dalvik cache?

Does this mean it cannot be cooked in a ROM?
[HD2 Android NAND Development] ridikolous:
Had my first stuck data with the new lilwrapper.
[HD2 Android NAND Development] fa2k:
i have copied the file in the zip file before flashing and it worked..
[HD2 Android NAND Development] zach.antre:
did u do a clean install or just flashed the ROM leaving data and caches as is?
[HD2 Android NAND Development] 2000impreza:
Can anyone confirm the correct permission for the libhtc_ril_wrapper library? I set it 755 and seems to work. When I pushed the ril wrapper with the permission untouched, ril wrapper wouldn't start until I changed the permission to 755.
[HD2 Android NAND Development] dabigchina:
The new wrapper is working flawlessly in the san francisco bay area with tyweens cm7 rom. Used to get drops all the time.
[HD2 Android NAND Development] polo735:
I just matched the permissions to the other .so files in the lib folder. It is working well on charn's rom.
[HD2 Android NAND Development] fa2k:
It was a fresh install with the changed lib file in the zip.

the fresh install because i came back from magldr. :-)

You can try to flash the hole (changed) zip over your existin data, like n update. That should help..
[HD2 Android NAND Development] idcom:
Just did clean install of hyperdroid cm7 pre loading the library into the cwm zip. Seems to work. But I am out and about today so will check it out.

I too am coming back from magldr as ppp stability wasn't there for me. If this does the job then I am a permanent convert.
[HD2 Android NAND Development] stirkac:
lib doens't work on MIUI, i get no data at all. i tried fresh install, pushing it after on used rom with older lib and with fix premissions.

on CM7 works flawlessly but i changed back because stock android looks ugly to me :)
[HD2 Android NAND Development] ~~Tito~~:
I pushed the file, and I am getting more or less the same results as last time, just with less signal fluctuations.

Although, I did notice that even when it said it had edge signal, or HSPA/3G signal, it wouldn't connect to data services at times. I would either have to reboot, or turn data on then off. Not sure if its just me. It happens more frequently than before I replaced the file.
[HD2 Android NAND Development] Beretta93:
Thanks a lot for this new wrapper cede.

Could anyone remind me the way to push it to?

Thanks.

Edit : ok./system/lib found it
[HD2 Android NAND Development] fa2k:
so, tested it on several roms and it dont working on non cm7 builds.

But on cm7 roms it seems to be working very well.
[HD2 Android NAND Development] arif-ali:
thanks a lot for the ril wrapper, works great with CM7, I have been testing charn's rom since yesterday, and great work, that was the main thing missing there.

Any chance of getting another one compiled against AOSP, in your own time obviously, no hurry. Even this was a great gift, which was unexpected.

thanks again.

Note, permissions I have set is 644, which works great
[HD2 Android NAND Development] DimICE:
connection drop after call...

Nobody have this issue in 2G network with new ril wrapper, except me??
[HD2 Android NAND Development] icsulescu:
I'm on tytung 2.6 rom and it is working just great (clean installed together with the rom)

+ppp file in system folder (prietenii stiu de ce :p )

Regards,

Me
[HD2 Android NAND Development] D4rk50ul:
New wrapper produced zero drops first day of testing.. so far its excellent. Running HyperDroid GBX.
[HD2 Android NAND Development] Stephen:
Tried on tytung's rom cant get any data at all
[HD2 Android NAND Development] icsulescu:
check if the ppp file is in system folder, cause I doubt, if it is not create it.

regards,

Me

P.S. just in case find the file attached, unzipp it and put it in your system folder
[HD2 Android NAND Development] justj:
+1 have signal but won't connect unless turn airplane mode on and off for several times.
[HD2 Android NAND Development] MontAlbert:
Same here for me except I can't get data working again without a reboot. I am on tyween 3.0.5. Permissions fixed on the file using root explorer.
[HD2 Android NAND Development] MrT69:
I already posted this within the MagLDR Thread and I hope this would be also interesting within this Thread.

FYI!

http://xdaforums.com/showpost.php?p=12972786&postcount=1

O2 Service Team installed the latest Windows Mobile on my device after I have shipped it for repair. The device was not longer able to charge the battery.

After I get it back they installed the latest WinMo software on it with a 3.03 boot loader.

Now I have a strange situation with both boot loader MagLDR and cLK.

When I install Android with MagLDR 1.13 Android will run without any problems. When I'm using the cLK Loader I'm able to install Android, I will have Phone and SMS on the device but I'm not able to connect to the Internet or get Weather Update or anything like that. Before they installed this Image on my device it was possible to run Android with both boot loaders.

Currently I'm using imilka's "ramhd2eu.zip" Image. I have had downloaded and tested nearly every Sense Image since January and I always have the same result.

Can someone explain this to me???
[HD2 Android NAND Development] D.O.C:
Im sorry but has to be asked...u did flash 2.08 hspl before flashing anythin else right?
[HD2 Android NAND Development] :
Results of new ril wrapper..

I'm at work now at my data connection still work!

I go by train to work and my singnal drops everytime when the train meets a tunnel...with the old wrapper my data connection way always dead after getting my signal back.

But the wrapper seems to have a problem with the wifi connection, I'm not able to get my data connection back after using wifi for a while, without restarting my phone...the old method: airplane mode on/off on't work anymore here.
[HD2 Android NAND Development] DB99:
So how did you guys add this? I'm using Typhoon 3.05 cLK. Just switched from Magldr to test this fix. I did....

adb remount

adb push libhtc_ril_wrapper.so /system/lib

It says that it copied over, but I'm having some intermittent issues with the connection so far.
[HD2 Android NAND Development] MrT69:
Sure...

HSPL 2.08 is working for both. I have had also tested HSPL 3.03 with cLK and this will also work. MagLDR will not run on 3.03.

The strange thing is that the same device with same Image and same procedure will give different results.

HSPL 2.08 + cLK + Recovery 3.0.14 + 150M system = Not working

Same as above with MagLDR will work.

On both installation Android will boot and run. No probs.

But I'm not able to connect to Internet, 3G, Weather Update, store APN settings, etc.

That's the strange thing :(

In the meantime I have also done a longer test with WinMobile on this device. When I downgrade to 3.14.405.x and the device will run ca. 15 or 20 minutes than I will get error Messages that I nerver saw on any other devices.

i.e. suddenly a black screen appears with the information that the security on the device is broken or the Windows installation is corrupt. Or windows will boot and before Sense is starting I will get an error message that some applications are not valid on this device.

???

Unfortunately it seems that I'll be alone with this problem. Never heard about the same problem within any other Thread or Board.

Damn!!!!!!!! :(
[HD2 Android NAND Development] arif-ali:
CWM for ROM Manager

for anyone using cLK, CWM recovery 3.0.2.5 is now available in ROM Manager, the device is now listed as "HTC HD2"

Note: Please don't use 3.0.2.4 in ROM Manager, as that has a bug

enjoy :D :D
[HD2 Android NAND Development] Petulinek:
Only via ROM Manager? Cannot flash via cLK fastboot when flashing cLK?
[HD2 Android NAND Development] arif-ali:
OK, attached is the one for fastboot. This will be identical to the one that is available on ROM manager, so does not have the yes/no patch as per seadersn's thread.

If you find anything that needs updating in terms of FS support, then let me know, and I will try to get that added in future releases
[HD2 Android NAND Development] j45p41:
Hi cedsmith/Unconn,

was there a solution in there somewhere? Sorry not sure how libhtc_ril_wrapper will allow flashing of recovery, after clk using windows.... Did I miss something?
[HD2 Android NAND Development] stirkac:
seems like HW faliure to me... probably.

a) do task 29 and try all again, just in case

b) try downgrading whole device to 2.08 with radio and all included(SPL) - with first flashing hspl2.08 and then old official rom from htc website

c) send for repair with official winmo installed and errors showing
[HD2 Android NAND Development] hehuichao:
Can you upload it？
[HD2 Android NAND Development] seadersn:
what should be uploaded in your opinion...? everything what was talked about the last two to three pages is already uploaded and available :)
[HD2 Android NAND Development] mezcal9:
Very nice.

Rom Manager prompted me to update as soon as I launched it.
[HD2 Android NAND Development] seadersn:
...and did new yes / no version with new offmode charging fix :)
[HD2 Android NAND Development] cedesmith:
libhtc_ril_wrapper 0.8 beta 2

Hi.

Here is a new beta of my ril wrapper. So far seams almost perfect for me.

Please test it and tell me how it works.

Steps to install it:

- push libhtc_ril_wrapper.so to /system/lib

- push ip-up to /system/etc/ppp/

- push pap-secrets to /system/etc/ppp

- push chap-secrets to /system/etc/ppp

- touch /system/ppp

- chmod 0555 /system/ppp/ip-up

- chmod 0666 /system/ppp/pap-secrets

- chmod 0666 /system/ppp/chap-secrets

if you have problems please attack with report result of adb logcat -b radio > radio.log
[HD2 Android NAND Development] seadersn:
nicenice; pushed and will be tested during this weekend @ vacation; thx :)
[HD2 Android NAND Development] lippa:
Is it possible to make the new wrapper in a flashable cmw zip?
[HD2 Android NAND Development] seadersn:
quick test: connection available instant after reboot (with previous version it took a while, like 1-2 minutes) and ppp connection is available and working after switching wlan on for ~ 1 minute and switched off again; which wasn't the case with previous one, needed reboot. looks promising :)
[HD2 Android NAND Development] arif-ali:
+1

wow, nearly instant re-connection after disabling wireless. very impressed
[HD2 Android NAND Development] tyween:
Tonight I am going to backup and switch from MAGLDR to cLK once again for testing.. I am hoping to not switch back to MAGLDR... my fingers are crossed! :D
[HD2 Android NAND Development] seadersn:
... and here's update.zip, containing your files :)

untested, but should work just fine.
[HD2 Android NAND Development] Derek0228:
Testing this, I'm excited, i was having some problems with the last one. Good job cedesmith :)
[HD2 Android NAND Development] Blubster:
Tried the update.zip from seadersn, checked the file were pushed, they are without any apparent issues.

I have an apparent lock after playing a bit with wifi on/off. It seems i am connected fine (data bars appear green), though i can't use my connection now.

It seems DNS is unreachable, i tried just now to ping google and it said unknown host.

Attached is radio.log, i hope it is not polluted too much and can be useful.

I am in my appartment, with very poor connection (only edge). Connection usually drops very often, even with winmo or rmnet...

EDIT : i can confirm i have a DNS issue, pinging known ip address works fine here.

EDIT 2 : i see the following two lines in logcat :

D/RIL_WRAP( 65): DNS1: 192.168.10.110
D/RIL_WRAP( 65): DNS2: 0.0.0.0 wrong setting to 8.8.4.4

DNS1 looks a lot wrong here, where is this from?
[HD2 Android NAND Development] arif-ali:
Hey cedesmith,

I am having similar issue as before, the connection somehow goes down, but the ppp0 still has an IP address

$ adb shell netcfg
lo UP 127.0.0.1 255.0.0.0 0x00000049
dummy0 DOWN 0.0.0.0 0.0.0.0 0x00000082
ifb0 DOWN 0.0.0.0 0.0.0.0 0x00000082
ifb1 DOWN 0.0.0.0 0.0.0.0 0x00000082
usb0 DOWN 0.0.0.0 0.0.0.0 0x00001002
sit0 DOWN 0.0.0.0 0.0.0.0 0x00000080
ip6tnl0 DOWN 0.0.0.0 0.0.0.0 0x00000080
rmnet0 DOWN 0.0.0.0 0.0.0.0 0x00001002
rmnet1 DOWN 0.0.0.0 0.0.0.0 0x00001002
rmnet2 DOWN 0.0.0.0 0.0.0.0 0x00001002
ppp0 UP 178.102.64.24 255.255.255.255 0x000010d1

have attached 2 logcats

radio.txt when I have no data

radio2.txt, after enabling wireless, and disabling, and getting a data connection back, this wasn't working in the previous wrapper.
[HD2 Android NAND Development] cedesmith:
small bug with dns, should be fixed now, damn copy/paste for dns2 from dns1 :)

only need to push libhtc_ril_wrapper.so, the rest included so new user don't download twice.

edit: dns records come from ppp and received from you isp. if your operator serving you crap non working dns records just delete ip-up script. it will use default 8.8.8.8 and 8.8.4.4 dns servers
[HD2 Android NAND Development] cedesmith:
this is a bit strange as pppd process ends properly and ppp0 interface should be removed completely.

i don't know if it is because you have rmnet module in kernel or not but you should not insmod msm_rmnet.ko if /system/ppp file is present.

also i suggest pushing ip up scrit and chmod 0555 on it ( to be executable ) so dns records are set and wrapper detects it ( also it will cut 2 sec of your connect time).

from the logs it appears that ip-up script did not run as your dns are 0.0.0.0
[HD2 Android NAND Development] icsulescu:
and the update with the new beta :D (is just seadersn update with the new files in, hope that he will not mind) please let me know if it is working

Regards,

Me
[HD2 Android NAND Development] seadersn:
are you crazy?? using my update.zip as yours?!? :eek: :D no problem!
[HD2 Android NAND Development] mattfmartin:
Are we supposeed to choose install update in cwm, or install zip from sd card? Because I did the install zip from sd card and it installed it, but after I rebooted and went into /system/lib, the date of the wrapper was the same as before.So it looks like it wasnt installed properly
[HD2 Android NAND Development] 2000impreza:
I noticed the same regarding the date. I believe the recent CWM recovery sets the date to 08/01/08.
[HD2 Android NAND Development] icsulescu:
I was wanted to press thanks but it seams that I have finished the 5 i've got for today for cede :P.

All that remain to do is to actually say thank you.

Regards,

Me
[HD2 Android NAND Development] seadersn:
no need :) glad i could serve sth; gn8 *yawn*
[HD2 Android NAND Development] lippa:
Update 2 zip just a flashable cwm zip?
[HD2 Android NAND Development] :
yes, just flash it via cwm
[HD2 Android NAND Development] Blubster:
Another lock, this time no ping was possible.

Disabling/enabling data did not bring it back, reboot on the way...

Radio logcat attached... Did not find anything related to DNS inside this time.

For the DNS, rofl @ orange for trying to setup a DNS with 192.168.10.XX address...

If it happens again, i will surely rely on google dns over crappy orange setup one! :D
[HD2 Android NAND Development] letama:
Well, yes, at some point Cotulla loaded a desire radio in the hd2. And yes, the main problem he faced is how to do it easily. At the end, he did some black magic to load part of the desire radio in current magldr to make rmnet works, but I think we won't have more than this.
[HD2 Android NAND Development] dungphp:
Thank you very much !
[HD2 Android NAND Development] letama:
Well, I refrained so far to comment on that, but let's do a bit of history here (this is directed to g.lewarn, not you s14tam).

First, what took time at the beginning was not bootloader by itself, what took time is nand driver in both kernel and bootloader. Without this, Cedesmith would have probably spent a lot more time to implement lk nand driver.

After this part done, the first private alpha/beta of magldr was out in september if my memory deserves me well, basically doing what lk bootloader is doing now with some bonus (like the ability to boot kernel from sdcard and access sdcard from PC which is incredibly useful for development, plus the ability to partition nand the way you want from bootloader and/or flasher, something that native android phones don't have).

So why release in december ?

Well, first, since the beginning we had corruption issues and cause was found mid-november only. Cotulla couldn't release magldr without knowing why because if corruption happens in bootloader, you end up with instant brick. Now that we know the reason, we know that it wouldn't have happened, but as at that time we didn't, it was not safe to release it.

While we were struggling with the nand corruption, Cotulla added radio magic to push parts of desire radio to fix buggy rmnet in hd2 radio. It took time, but this is why rmnet data works with magldr and why it's another step towards a nearly native android device.

So let's wrap up:

- Unnecessary features ? well, except Tetris (took Cotulla what, 4 hours to code at best ?), everything is useful, not maybe for you personally, but it is.

- Took time: retrospectively, I must say no. Remember that a year ago the HD2 couldn't start a kernel, and now we have almost native android. Cotulla did an incredible work.

Now back on main topic, I finally found time to test it, great job Cedesmith!

LeTama
[HD2 Android NAND Development] g30rg10u:
i know this is going to be off-topic, but i must say it.

ive been watching the whole project since day 0, i havent contributed, due to lack of time etc, but honestly, few people credited you (LeTama) or cedesmith.

Especially you, that you have been seriously contributing since the early beginning. Remember you and dcordes struggling to find the problem with the kernel, contacting Qualcomm ppl etc. Anyhow.

cedesmith brought an innovative solution that really changed the total experience of using android on HD2, it made it feel native.

Its your call now, to make the cLK the opensource solution of our HD2, or even other devices.

The whole project is supposed to be OpenSource. Why not the bootloader?

This is what makes me feel wrong about MAGLDR.

I really appreciate all devs contribution and especially Cotulla's. Or DFT team. Which i believe contributed in the name of Cotulla. Personal Opinion.
[HD2 Android NAND Development] letama:
Hi g30rg10u,

Thanks!

I would have preferred open source too, but it was Cotulla decision since the beginning. Main reason for this is the radio hack that uses knowledge that he doesn't want to go public because of the effect it could have if put in wrong hands.

I'm very glad that Cedesmith took this initiative and that he did it so successfully. It's very good to have an open source alternative, and I'm sure it will improve in the future.

LeTama
[HD2 Android NAND Development] arif-ali:
RMNET support

Hi,

I tried this bootloader, I really like it, as I think this is better than MAGLDR, and it really feels like an android phone this way. it would be really useful to have RMNET support if that is possible.

i tried this with the current ROM I am using, and all worked until I tried to configure the WIFI, and then rebooted automatically.

On another note,

Does the clockworkmod not allow to add the boot partition. or is the only way to do it is through fastboot. i.e. with my current rom, I had to extract the /boot and then create the boot.img, and then flash the CWM image, and then it booted up.

thanks in advance
[HD2 Android NAND Development] cedesmith:
well that is exactly the point, i don't like black magic.

gsm radio is under strict regulations that is why phones need FCC approval.

messing with radio software may be illegal not to mention that depending on your contract you may be held liable for network jams/problems caused by unauthorized radio software.

if someone knows for sure magldr patches radio in memory drop me a PM so i will go back to wimo/haret.

that is another point :).

android nand driver probably would be just fine probably just add chip signatures.

a lot of work has been made to make it work with magldr with uses a winmo like nand layout witch is different from android layout.

i spent a lot of time making lk driver work with current kernel nand driver and implicitly with magldr written data.

as for cLK is not as good as i would like it to be. it still needs some work witch for now i don't have time to do.

main problems are:

- without nand atag it does not reboot properly and needs reset button push

- with nand atag i get random reboots witch is a serious problem

i hope other devs have time to look into it if not i will when i will some time.
[HD2 Android NAND Development] letama:
Well, I don't know for sure, better ask Cotulla for this.

It was necessary, no ? If not, it would have required trashing hspl ?

Thanks for your work and for publishing it,

LeTama
[HD2 Android NAND Development] jpyper:
Hehe. Not so fast buddy. I flashed my radio up to the version in my sign by putting it on my SD card named as LEOIMG.nbh. Power cycled my phone and held VolDn to enter HSPL and it saw it and asked if I wanted to update. Sure enough, I did, and it went to work. Radio update without Windows. ;)
[HD2 Android NAND Development] cedesmith:
no, hspl loads bootloader thinking is windows xip. as long bootloader is in proper nbh format hspl will flash it instead of windows.

once bootloader is loaded it should not touch nand blocks that are used for radio and spl other blocks it can use as you want.

when you write/read a nand block you can specify nand cfg1 and cfg2 witch specify block layout.

for example original lk nand driver in codeaurora uses one nand layout for radio and 1 for android.

i think cotulla went for that windows nand layout for magldr compatibility with windows phone 7 or initially wanted hspl to flash android rom.

i advise anyone not to flash from sdcard using leoimg.nbh. when updating from sdcard hspl allows overwrite of hspl and you can brick you phone.

i always flash by holding down vol down while reseting/power and then use customruu to flash.
[HD2 Android NAND Development] letama:
Yes, of course, you can still flash radio from wince bootloader with RUU. What I meant is we won't have the ability to flash radio from fastboot.
[HD2 Android NAND Development] letama:
Hi Cedesmith,

Intersesting! I didn't know we could mix block layout.

Regarding magldr, first version I had was running along with a 6.5 wince rom, so I guess your assumption is right.

LeTama
[HD2 Android NAND Development] hamdir:
thats too bad, i was going with clk as i couldn't stand the usb charging bug in magldr(im stupid i keep doing this mistake) and its not solved in v1.12

now i have to wait :(
[HD2 Android NAND Development] cedesmith:
news

i fixed some of the problems:

- added dmesg dump suport

- now boots properly on powerup ( no reboot needed )

- boot reason detected ( it will reboot only on offline charging )

- off charging supported but it requires kernel support

only remaining issue is it reboots after power collapse if nand atag is sent ( witch it is ). i need some help from (a) kernel developer(s) so if interested drop me a PM

another issue is rmnet not working. i don't know what cotulla did but if it contributes source or compiled function i will be more then happy to add it else maybe someone is handy with disassembler.