yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] Elijah Lynn:
It is possible because GPS isn't working correctly.
[Hero CDMA Android Development] comintern:
Works for MMS send for me too. I'm curious about the MMS receive though. The same thread that the apns-xml.conf fix was in mentions how they got MMS to receive in 1.6:

2 things I noticed in my logcats for MMS, first that the hostname is resolving correctly and is attempting to connect. I even popped open the mmssms.db to get the full URL it is trying to connect to and was able to DL the an MMS attachment in my browser with the DB link. 2nd thing I noticed was that each time I tried to retrieve, I got these errors:

E/RetrieveTransaction( 3095): java.lang.RuntimeException: Value length > LENGTH_QUOTE!
E/RetrieveTransaction( 3095): at com.google.android.mms.pdu.PduParser.parseValueLength(PduParser.java:906)
E/RetrieveTransaction( 3095): at com.google.android.mms.pdu.PduParser.parsePartHeaders(PduParser.java:1551)
E/RetrieveTransaction( 3095): at com.google.android.mms.pdu.PduParser.parseParts(PduParser.java:769)
E/RetrieveTransaction( 3095): at com.google.android.mms.pdu.PduParser.parse(PduParser.java:128)
E/RetrieveTransaction( 3095): at com.android.mms.transaction.RetrieveTransaction.run(RetrieveTransaction.java:123)
E/RetrieveTransaction( 3095): at java.lang.Thread.run(Thread.java:1096)
E/RetrieveTransaction( 3095): Retrieval failed.

The first one is really interesting given the 1.6 AOSP fix, because it looks like there is a buffer that is being sized too small. I may look a bit deeper into it, unfortunately I have no idea what changes were made to fix it in the 1.6 ROM.
[Hero CDMA Android Development] Elijah Lynn:
I am assuming that this must be somebody else now that you said that.

Menu > ADWSettings > scroll down to donate
[Hero CDMA Android Development] whiteonline:
That is to donate to the ADW.Launcher developer, not the ROM dev. I wouldn't say your money is wasted however; ADW is definitely a kick ass launcher.
[Hero CDMA Android Development] Elijah Lynn:
For everyone having GPS problems. Can you download the app "GPS Status" and report the time of your "last fix"?

Edit: My last fix is around 20:46:45 (hours:min:sec) and that includes power cycling the GPS radio.
[Hero CDMA Android Development] comintern:
Fix seems to be updating about once a minute in the GPS Status app.
[Hero CDMA Android Development] jakejm79:
Can you explain exactly what you did? I delete the file but MMS send doesnt work and after a reboot the telephony.db is back.
[Hero CDMA Android Development] comintern:
./adb shell
cd /data/data/com.*.telephony/databases
rm telephony.db
exit
./adb push apns-conf.xml /system/etc/apns-conf.xml
./adb reboot

The .xml I pushed is attached (obviously you'll want to remove the .txt extension). After I compare the 2 DBs, I can post some SQL to patch the database manually if people would like it. This method is probably easier though..
[Hero CDMA Android Development] daryelv:
Very interesting indeed. Usual programming practices would say that "LENGTH_QUOTE" is a constant (final or static) variable somewhere in the code. If we could get this increased in a compile, we might have different results.

Also, what about receiving a very small MMS message? Do you get the same error?

-Daryel
[Hero CDMA Android Development] jakejm79:
Excellent, I was missing the file to push. Worked great other than needing "adb remount"

Thanks.

Wow this ROM is getting real close to perfect.
[Hero CDMA Android Development] comintern:
Same error with a 5.8k jpg.
[Hero CDMA Android Development] feld:
if quietcblongs has already tackled this MMS receive issue before, why don't we contact him directly and find out what he did?
[Hero CDMA Android Development] duffkitty:
I thought this would work but not sure, I work tomorrow so will get to test it on the road (I drive for work).

It's just really weird it works in 2.6.4 but not 2.6.5, it didn't work in 2.6.2 with the batteryfix either... Besides the library and the conf is there absolutely nothing else that determines GPS refresh or lock?
[Hero CDMA Android Development] Tipharet:
Oh snap! I smell working MMS receive in the air soon. When this happens I am moving to the ROM and never looking the **** back.

Thanks guys
[Hero CDMA Android Development] josenuts1:
[Rom] Darchdroid v2.6.5 "Wait, This isn't a Nexus One?" | OC'd,Camera,Lights,EXT4,BFS

Is there any way that you have the sprint tv apk...

-------------------------------------

Sent via the XDA Tapatalk App
[Hero CDMA Android Development] jakejm79:
I posted it a few pages back, Sprint TV
[Hero CDMA Android Development] sdotcarlisle:
i searched and saw the same problem but no resolution.

When i plug into my pc i get a popup of unknown usb hardware and it wont recognize my phone, cant do adb commands, and the drop down that asks charge only, internet sharing, usb drive etc isnt there as an option. If i boot into recovery and use the usb/ms toggle it works fine but would like to be able to connect to my pc with the phone on.

ok so i had the usb/ms toggle on pushed some files rebooted with phone still connected now i get options in dropdown and works. weird.

AGH! ok so i rebooted and now its broke again wtf.
[Hero CDMA Android Development] vastateofmind:
On DarchDroid, I've never seen the pop-up screen that asks if you want to mount as disk, just charge, etc., and didn't think we ever would b/c (at least according to page 101, post 1001 on this thread) only Sense-based ROMs have that option by way of HTC Sync and not AOSP-based ROMs...
[Hero CDMA Android Development] sdotcarlisle:
yea when it worked it wasnt the pop up i had to drag the bar down and click usb connected then choose mount or dont mount. once i unplug though it wont work again unless i boot into recovery turn on usb/ms toggle then boot up, but like i said once i disconnect it wont work once i plug it in again, weird.
[Hero CDMA Android Development] szainmehdi:
Make sure USB debugging is turned on. If its on and

OK. You have to uninstall your drivers and make sure there is nothing in [Start Menu > Devices and Printers] that says ADB or something.

After you remove it, do not plug your phone in until you complete these steps:

1) Flash over Damagecontrol 2.09.01 or Fresshh!

2) Intall HTC Sync to your computer.

3) Once it is done installing, reboot.

Connect your phone now. It should recognize it as 'Android Phone'.

To make sure it is connected, to this:

Launch cmd.exe and type in:

cd\
cd (directory-of-androidsdk)\tools
adb devices

You should see:

adb server is out of date. killing...
* daemon started successfully *
List of devices attached
HT02ZHF98840 device
[Hero CDMA Android Development] sdotcarlisle:
so install damage or fresh then flash darh over? i do have usb debugging enabled and when i was on aloysius it worked fine, sorry to sound dumb just want to make sure.
[Hero CDMA Android Development] CarbonKang:
Is anyone else noticing significant battery loss? I loose about 10% of my battery every 30 minutes or so. I have never encountered anything this bad with Darchdroid before.
[Hero CDMA Android Development] szainmehdi:
Yes, after you flash damage, follow the steps, and then, once ADB commands work, flash darch.

This happened to me to, and now it works perfectly.=)
[Hero CDMA Android Development] mrcharlesiv:
Yeah I was having the same problem. I went back to 2.6.4 and I'm using the new boot.img. Seems to be a little better...
[Hero CDMA Android Development] CarbonKang:
Okay thanks. Also did anyone get Sprint GPS to work with 2.6.5? I have problems with it connecting to GPS.
[Hero CDMA Android Development] daryelv:
There's been a few fixes posted in the past 2 pages... Have you tried them at all? It sounds like GPS has been hit and miss for some people. I don't have any issues myself, but YMMV.
[Hero CDMA Android Development] ItsDon:
I tried both of the patches that were posted for the GPS and neither worked. Still lose signal after about a minute. I don't need my GPS often and when I do I nandroid back to a rom that has a working version and then come back to 2.6.5. I love this rom way too much to let a nonfunctional GPS keep me away. Be great if someone got it going though!
[Hero CDMA Android Development] theRG:
I'm having this problem with the music player randomly starting to play. I listen to podcasts and have them paused in the music player to keep my place. It has randomly started playing on a few occasions even without even touching it.

I really like this ROM overall so I just want to completely remove the music player and find an alternative.
[Hero CDMA Android Development] jakejm79:
I am using 2.6.4 with the MMS send fix and lights fix and everything works fine. GPS works perfectly never looses a lock and have taken several 100+ mile trips and it has worked flawlessly. I can send MMS fine, battery life is good not great but I get about 24 hours with limited use. I have only noticed 4 problems:

1. Sending a SMS of over 160 chars causes it to fail and all subsequent ones to fail until you delete that message and reboot (not a big deal)

2. MMS receive doesn't work - obviously we all know that

3. when I leave GPS turned on it sometimes causes a wakelock issue, tho I feel that might be due to beautiful widgets trying to update my location and not the fault of the ROM

4. Auto brightness doesn't seem to work properly, but I think this is an issue with AOSP and not specifically this ROM, it was mentioned has a bug fix in a recent update to AOSP so I assume future versions should work fine.

Anyway all in all everything works like advertised and any bugs are already known or so minor they barely matter.
[Hero CDMA Android Development] PRGUY85:
Doubletwist is free on the Market right now, for music player.

As for podcasts, use Listen.
[Hero CDMA Android Development] comintern:
This was a known issue in the Cyanogen source tree and was recently patched. Happens to me whenever my BT disconnects. Cyanogen calls it "party in your pocket". :D
[Hero CDMA Android Development] thedro:
random music play

Well, the random music play happens on regular headset disconnects as well :)

Let the friendly nyc subway public enjoy my free Philip Glass from Amazon :) It does scare my wife though.
[Hero CDMA Android Development] stacktrace:
Hey all... so I dug around and incorporated the 1.6 AOSP MMS fix into a darchdroid 2.6.5 framework.jar (Basically just copied the PduParser from 1.6 AOSP into darchdroid 2.6.5, not sure exactly what was changed as I'm not used to looking at dalvik bytecode and I don't have the source).

So far this in combination with the apns-conf.xml you posted seems to have both MMS Send AND Receive working for me!!!

I have only been able to test it by sending images to myphonenumber@pm.sprint.com. I don't have another phone to send mms right now.

So, to install the attached framework.jar first unzip the framework.zip file I uploaded and extracted the jar.

adb remount
adb push framework.jar /system/framework/framework.jar
adb reboot

You may want to do a nandroid backup first just to be safe or backup the original framework.jar so that you can restore it in case of any problems.

Let me know if it works for you guys.
[Hero CDMA Android Development] hostileenviroment:
ahhhhhhh please make an update.zip!!! im on my phone and wont be around my pc for a while
[Hero CDMA Android Development] stacktrace:
Never made an update.zip before but I'll see if I can figure it out. In the mean time maybe someone w/ more experience would be willing to. :)
[Hero CDMA Android Development] hostileenviroment:
i understand, i pwomise it isnt hard though :) avabox makes it really easy. thats just an fyi, ill root explore that **** once its confirmed.

contemplating pm'ing you my number so we can test :)
[Hero CDMA Android Development] Decad3nce:
It's like an early Christmas.

Flashable attached(w/ apns conf). Great job!!

EDIT: I messed up in a rush, leaves you with framework.jar in system and not system/framework from my old update.zip

SKIP THIS PART IF YOU DIDN'T DOWNLOAD MY CRAPPY THROW TOGETHER(zip)

adb remount
adb shell
cd system
rm framework.jar

-------------------------------------------------------------------------------------------------

Regardless

Step 2

You still have to RM your telephony.db (database)

adb remount
adb shell
cd data/data/com.android.providers.telephony/databases/
rm telephony.db

Then flash the good version which is now in place.(sorry)

IF FOR SOME REASON THIS ZIP DOESN'T WORK FOR YOU

Grab the apns-conf.xml and the framework.jar from the zip and push them manually.

Put them in your tools folder

adb remount
adb push apns-conf.xml /system/etc/apns-conf.xml
adb push framework.jar /system/framework/framework.jar
adb shell
cd data/data/com.android.providers.telephony/databases/
rm telephony.db
adb reboot

Personally I used the zip and it worked fine, just make sure you get rid of the telephony.db.

Credit to Stacktrace for the patch, feld for the idea, and comintern for the analysis and everyone else who was helping out at some point
[Hero CDMA Android Development] hostileenviroment:
ah! your awesome!

charging a little bit, then ill test :)
[Hero CDMA Android Development] jakejm79:
I have down the MMS fix, if someone wants to send me a picture i will confirm it working.

six zero three, five five seven, three two five eight.
[Hero CDMA Android Development] DJAscendance:
friggin awesome! im pushin the files for mms fix now :D
[Hero CDMA Android Development] coldsweat:
Has anyone figured out why we cannot send any SMS over 160 characters?
[Hero CDMA Android Development] comintern:
Don't forget to delete your telephony.db before flashing this. Is it possible to add that to the update script?
[Hero CDMA Android Development] hostileenviroment:
haha i hope darch is watching this

he'd be so proud!
[Hero CDMA Android Development] Decad3nce:
Yeah, I'll get on that.
[Hero CDMA Android Development] ItsDon:
No no no! If you get the GPS rockin' then YOU the man! ;)
[Hero CDMA Android Development] stacktrace:
Yeah, ideally we should figure out exactly what was changed and build from source. It was a very dirty hack but I just wanted to get it out there to keep the momentum going on getting this working 100% :)
[Hero CDMA Android Development] hostileenviroment:
ahh i forgot about gps...

ill have to stand on the sidelines again :(
[Hero CDMA Android Development] jakejm79:
Not working for me either, tried sending to myself and from a friend, pushing both the files then using the signed zip.

Logcat
[Hero CDMA Android Development] Decad3nce:
Check my post again. I updated it. LINK
[Hero CDMA Android Development] jakejm79:
Lol, actually i was peeking around with androidcommander and i noticed the file size of the jar i downloaded and the one on my phone didnt match so i deleted it along with the the telephony.db

Great that fixed it, seems like the framework.jar has to be removed before you push the new one.

Also works from another phone, plus MMS will now send/receive when connected to wifi, (i.e. before it wouldnt switch to the 3G connection.)

As far as I am now concerned this ROM is basically 100%, any small bugs left can be worked around or are for useless features they dont matter.
[Hero CDMA Android Development] thedudejdog:
rebooting now after using the updated post. i'm freaking pumped. i'll let you guys know how it works

EDIT: this rom is now complete
[Hero CDMA Android Development] Decad3nce:
:D

10 char.
[Hero CDMA Android Development] HeroMeng:
Can someone help me test this? PM me for my number... I don't want every xda member to see it :/
[Hero CDMA Android Development] kyouko:
you guys are awesome! Finally i can use this as my daily rom now, great work :D
[Hero CDMA Android Development] ItsDon:
Except for GPS
[Hero CDMA Android Development] jakejm79:
GPS works fine on 2.6.4 for me anyways. I agree that 2.6.5 has issues with GPS.
[Hero CDMA Android Development] vrajpal:
Re: [Rom] Darchdroid v2.6.5 "Wait, This isn't a Nexus One?"

And the 160 character limit for sms
[Hero CDMA Android Development] Jus10o:
Use handcent or something other then stock messaging app
[Hero CDMA Android Development] thedudejdog:
gps? you mean google maps/navigation?

works great for me
[Hero CDMA Android Development] ItsDon:
Yes, sorry, should have been more clear. GPS works for location based apps and such but loses the GPS signal (permanently) after about a minute or so when using Google Nav or Sprint Nav. Some folks (like you) don't experience it but several here do so I don't think it's a fluke to just my phone.

That said, is there a link to 2.6.4 anywhere? I may just downgrade and implement all the new fixes to get a 'complete' AOSP phone. You guys (and Darch) rock.
[Hero CDMA Android Development] Jus10o:
The mms fix didnt work for me.. I deleted both framework.jar and telephony.db and then flashed the mms-fix and it didnt work.
[Hero CDMA Android Development] whiteonline:
Just a guess, but it works: change 265 in the original link to 264.
[Hero CDMA Android Development] jakejm79:
Try rm ing the file via adb and the pushing it rather than using the flashable zip.

2.6.4 and older versions are available via DS updater, you first have to hit menu and go in the config to allow older versions.
[Hero CDMA Android Development] roundaway:
Congrats to all for getting MMS to work. That was a major accomplishment. For me the one item not working is OpenVPN. According to the first post OpenVPN is integrated. However, I have not been able to add my certificates for ca, client.crt and client.key. Would one of you please try Settings>Wireless & networks>VPN Settings>Add VPN>Add OpenVPN VPN and see what you get when selecting Set CA Certifcate and/or Set user certificate. Mine only gives "Cancel" and not sure why. The tun.ko module is built into the ROM in /system/lib/modules/2.6.29-GoDmOdE-Darchshizz-OC.

Need to get this working.
[Hero CDMA Android Development] ItsDon:
Very cool trick, thanks!
[Hero CDMA Android Development] jakejm79:
Where do you have the Certificate files located?
[Hero CDMA Android Development] feefeeboomboom:
ok so i chopped up a DD2.6.5 with the mms fix added before a flash signed it ect ect.. you guys think it should work? or do i need to remove the tele.db first then add the files?

edit

booting now well see i guess fingers crossed \o/
[Hero CDMA Android Development] Decad3nce:
No clue man. I used the zip. :/

Back on the gps issue.

Whoever is having trouble with gps in navigation(since it only seems to be a problem there), can you get some info for us?

Just run these in seperate cmds if you can.

adb logcat > logcat.txt
adb logcat -b events > events.txt
adb logcat -b radio > radio.txt
adb shell dmesg

Then just find the txt files in your tools folder and paste them into pastebin so we can check them out. (trim them if you know where to)

Other possibility

Grab the boot.img from 2.6.4 and flash that over your current one and see if anything changes.
[Hero CDMA Android Development] feefeeboomboom:
i just got back on 2.6.5 so i will test this and see if i still have a problem.

i was just using 2.6.4 and had none. its kinda odd that 2.6.5 dropps GPS on me for no reason.

well adding in the MMS fix to the rom before a flash worked great. just on the very first boot dont do anything with the phone. just shell in and rm the telephony.db
[Hero CDMA Android Development] madflava54:
Where are the other two zip files after the first link for the actual ROM? And is this A LOT faster than Fresh's ROM? What are the advantages?

I ask because Fresh is working well for me, but the OC'd option really appeals to me. However, I am scared to proceed since I'm a total noob, but I did make a Nandroid backup and Titanium backup.
[Hero CDMA Android Development] CarbonKang:
Just use it and see how you like it. ;)
[Hero CDMA Android Development] sleejay:
can anyone throw a link to 2.6.4
[Hero CDMA Android Development] madflava54:
Do I install all 3 zip files?
[Hero CDMA Android Development] CarbonKang:
http://darchroms.pocketdevelopers.com/darchroms/darchdroid-v264.zip
[Hero CDMA Android Development] Decad3nce:
^

(this post is a placeholder for my beer)
[Hero CDMA Android Development] CarbonKang:
Download and flash the 1st and the 2nd one only inless you want to change your recovery img. If you want to change your recovery img then you can DL and flash the 3rd one. :)
[Hero CDMA Android Development] madflava54:
Not sure what that means, so I will just download and flash the 1st one.

Thanks for the help. Here goes...

As I wait for it to install, how do I go about OC'ing?

WHOA, first and second? Do I flash in order then?
[Hero CDMA Android Development] feefeeboomboom:
its automagic. if you want to controll it, search overclock in market place and dl overclock widget.
[Hero CDMA Android Development] CarbonKang:
Yeah sorry, Its okay if you flash the first one you just wont have google apps. gtalk, market, etc. Thats what the second zip link does. Just do the first one then the second one. :)

First Link= ROM

Second Link= Google apps

Third Link= Recovery
[Hero CDMA Android Development] Decad3nce:
Looks like it is a problem with the boot.img (kernel or ramdisk - im not sure)

Here's the boot.img from 2.6.4, and I get constantly refreshed locks(even while idle) on gps(WHILE USING NAVIGATION), so I was wrong about that being normal.

This should definitely fix your gps but it won't have any of the changes darch made in the revision.

Nandroid first.

To flash manually

adb remount
adb push boot.img /sdcard
adb shell
# flash_image boot /sdcard/boot.img
reboot

Otherwise just flash the flashable.zip from recovery.

:D
[Hero CDMA Android Development] madflava54:
Thanks for the help!

Is there a way to remove the programs that came w/ the ROM such as Amazon, Googles Google, etc?
[Hero CDMA Android Development] whiteonline:
Sorry I may come off as a hall monitor, but....

You would better off ask these questions in an appropriate forum. These ROM threads get extremely long when semi-off topic questions are asked.

Appreciate it.
[Hero CDMA Android Development] beatb0x:
EDIT: FIXED. MMS works. It was the typo in the directions for manually pushing the xml file. Make a note of it. I was just dumb enough to type exactly what I was reading.

Thanks for the files. Nice work.

Alrighty, I've run through these steps multiple times now. Using both the .zip and manually pushing the files. I remove the telephony.db file, reboot and everything is fine. However, mms still just hourglasses on sending.

When I try to redo it, I start with removing the framework file, as to replace it again via manual push. However, it I get an error saying no such file exists. I assume this is where my problem lies. It's like the framework.jar file never gets to where it needs to be.

I'm pretty new to this whole rooting thing, but I'm familiar with cmd prompts and can follow directions. I haven't had any problems with any of this until now. Seems like everything goes fine..... everything pushes fine, reboots fine, just no mms still.

Do I remove the telephony.db before or after flashing the mms-fix.zip? Assuming I do that, after flashing the zip file the framework.jar and xml file should be in their correct places and all should be good to go?

Thanks for help.

Edit: I noticed the path in the directions for manual push has a possible discrepancy....

adb remount
adb push apns-conf.xml /system/etc/apsn-conf.xml

one is "apns"-conf.xml and one is "apsn"-conf.xml .... The sn is switched around. I followed these directions to the T....that a problem?
[Hero CDMA Android Development] ItsDon:
I'll give it a go after my jog - thanks for this. Could the GPS problem be rooted in the BFS Darch implemented in 2.6.5? It seems to be the only other major difference between them. I expect I'll lose the BFS after flashing the new boot.img right?
[Hero CDMA Android Development] 27s:
Just a check in : The Flashable .zip for the MMS fix did not work for me. Manually pushing the files worked a charm. Thank you!
[Hero CDMA Android Development] roundaway:
/sdcard/openvpn

Tried /etc/security with no effect. What do u get when selecting. CA certificate.
[Hero CDMA Android Development] jakejm79:
I get the same, have you tried this

Seems like you need to bundle the certs and then install them using the settings>security like I mentioned previously.