yashsingh1/xdaforums huggingface dataset:
[Hero, G2 Touch Android Development] mils69:
In a nutshell I need to modify my MMS UA-string in order for MMS to work properly on my unlocked Hero and also to authenticate with my carrier for my packet data plan.

I've read several articles both on xda and on other sites which talk about how this can be done (in one case for a Magic on the same carrier here in Japan and in the other for a Hero on US-based carrier).

To date this is what I've tried:

Attempt 1

Install the SDK

Install ADB USB driver

Download a customised Mms.apk from someone here in Japan - http://kuba.fm/2009/06/11/flashing-and-hacking-the-android-phone-for-japanese-softbank-network/

Run the following: adb install -r Mms.apk

1626 KB/s (567891 bytes in 0.341s)

pkg: /data/local/tmp/Mms.apk

Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]

Tried again from the recovery console, did manage to push the file, but now Messages is Force closing whenever I startup.

Attempt 2

Started by reading the following - http://xdaforums.com/showthread.php?t=542540

Took a backup from the recovery console

Rooted the device using Dayzee's lovely Noob Instructions

Installed Root Explorer

Copied the Mms.apk from the xda URL above into my tools dir

As per URL I type: adb remount - and get remount failed: Operation not permitted

If I use Root Explorer to Remount as R/W and then type: adb push Mms.apk /system/app I get "failed to copy 'Mms.apk' to '/system/app/Mms.apk': Permission denied

Alternately if I try to install Mms.apk from my sdcard using Root Explorer I get the following: Application not installed - Messages could not be installed on this phone

Again tried from the recovery console with the same effect as above - the Messages application Force closes upon startup.

So to put it bluntly I'm at a dead end..

I'm convinced there's a simple explanation but I've yet to discern what that might be.

Appreciate any help on offer.

Cheers,

mils
[Hero, G2 Touch Android Development] elliatab:
mms.apk for hero on Softbank

Hi mils,

I had the same problem and finally solved it last week.

I am using a HTC Hero with Modaco 3.0 on a Softbank prepaid card.

STEP 1 :

You need to make sure your APN settings are correct:

Name: Softbank

APN: mailwebservice.softbank.ne.jp

Proxy: <Not set>

Port: <Not set>

Username: softbank

Password: *******

Server: <Not set>

MMSC: http://mms

MMS proxy: sbmmsproxy.softbank.ne.jp

MMS Port: 8080

MMS protocol: WAP 2.0

MCC: 440

APN type: mms

STEP 2:

Then extract the mms.apk from Modaco's latest build.

At this point you will need baksmali to disassemble the class.dex file in mms.apk package.

When baksmali is done, find the file HttpUtils.smali (located in \com\android\mms\transport).

You will need to modify the following code:

.method private static createHttpClient(Landroid/content/Context;)Landroid/net/http/AndroidHttpClient;
.registers 5
.parameter "context"

.prologue
.line 285
invoke-static {p0}, Lcom/android/mms/transport/HttpUtils;->getOemUAString(Landroid/content/Context;)Ljava/lang/String;

move-result-object v2

.line 286
.local v2, uaString:Ljava/lang/String;
if-nez v2, cond_8:

.line 287
const-string v2, "The default UA"

.line 289
cond_8:
invoke-static {v2}, Landroid/net/http/AndroidHttpClient;->newInstance(Ljava/lang/String;)Landroid/net/http/AndroidHttpClient;

To:

.method private static createHttpClient(Landroid/content/Context;)Landroid/net/http/AndroidHttpClient;
.registers 5
.parameter "context"

.prologue
.line 285
invoke-static {p0}, Lcom/android/mms/transport/HttpUtils;->getOemUAString(Landroid/content/Context;)Ljava/lang/String;

move-result-object v2

.line 286
.local v2, uaString:Ljava/lang/String;
if-nez v2, cond_8:

.line 287
cond_8:
const-string v2, "Vodafone/1.0/V802SE/SEJ002 Browser/VF-Netfront/3.3 Profile/MIDP-2.0 Configuration/CLDC-1.1"

.line 289
invoke-static {v2}, Landroid/net/http/AndroidHttpClient;->newInstance(Ljava/lang/String;)Landroid/net/http/AndroidHttpClient;

I think you can find a user-agent that match your contract cell-phone and it will work fine. Notice that I moved the cond_8 label.

The reason is because the phone finds a default UA in getOemUAString and jumps over the static string. I'm not very confortable with dalvik bytecode so I prefered to keep the call and just move the label, so it will always use your custom ua whatever getOemUAString returns.

Just use smali to recompile and apkbuilder to repack everything. Pushing the mms.apk is enough to replace the previous version.

I will try to post my own mms.apk later so you don't have to bother doing STEP2.

Hope it helps!
[Hero, G2 Touch Android Development] umka83:
Hello Mils69

Did you get this to work? I have same problem with Acer Liquid, i have setup APN, Rooted the phone, installed modified mms.apk but still no MMS and Messaging application is crashing all the time.

HandCentSMS also did not solve the problem.

Anyone was able to have MMS on ANdroid 1.6 so far?
[Hero, G2 Touch Android Development] knightnz:
I've got SIMs for 3 carriers, with 2 of them MMS receiving works fine with, the 3rd (unfortunately, my main one) receives MMS notifications, but is unable to actually download anything. Looking at the logs the only obvious "fail" I can see is a javascript error, possibly to do with the HTML lookup to HTC?

Any chance some of the modification in this thread might convince it to work? I'm fairly confident that my carrier has probably got a fairly dubious implementation of MMS support, seeing has how they don't even support 8-bit SMS which makes some things awkward.

Issue is on an HTC Hero running MCR 3.1, although the problem exists regardless of APN combinations and firmwares, it's obviously some incompatibility with the carrier and the method the OS is using for MMS.
[Touch Pro, Fuze General] pspmasterx:
does anybody have a cab for free call blocking?
[Touch Pro, Fuze General] ronaldsdv:
hey there well I have this call firewall and it works amazingly ....

http://www.freewarepocketpc.net/ppc-download-call-firewall-v1-2.html
[Touch Pro, Fuze General] k-semler:
+1 for Call Firewall. It is the best free solution to blocking unwanted calls. Simply set it to automatically execute on each startup in minimized mode, and add it to the "exceptions" list of HTC Task Manager. Now when you click on the task manager icon in your title bar, it won't show up as a running program, (and will continue to block calls as long as you don't manually terminate the program). Call Firewall will allow your phone to ring for 1s prior to disconnecting the call. A work around is to create a ringtone with 1s of silence at the beginning of your chosen ringtone, or upgrade to the pay version, (Call Block 1.17)
[Touch Pro, Fuze General] daniel_rh:
Wow great application, I was looking for something like this some days ago. Thanks!
[Touch Pro, Fuze ROM Development] drake2007:
I have read many threads about this and try almost everything I have read. So I am sharing what I know works easier, and since the new TF3D2.1 has some issues with PimBackup you may want to easily backup all your information and restore it before flashing your new cool ROM with TF3D2.1

First of, I use Sashimi for backing up my preferences, ringtones, etc... However, even with the previous version of Manila Sashimi cannot restore the pim file, so I always ended up forcing a copy to restore my PIM.vol. Not relevant now since this is a simpler procedure, and automatic.

Regardless of what you use, Sashimi, UC, or nothing. This small SDConfig.txt below and procedure will do the trick.

FIRST: Backing up all your calendar, call history, contacts, and favorites, is as simple as creating a copying of your PIM.VOL file in the root (\) directory of your device and copy the file to a directory in your SD card. For example: \Storage Card\PIM\pim.vol. Once you have that. If you use UC incorporate the following lines of the SDConfig.txt below into your own SDConfig. If you don't all you need is create a simple SDConfig.txt in the root directory of your Storage Card with the following (Assuming you used the same directory structure. Change to where you put yours):

So the procedure is as follows:

Before you flash your new ROM with TF3D2.1 disableTF3D in the Today screen, and make a copy of the PIM.VOL in your storage (It will allow you to do so without sharing violation errors). I personally use ActiveSync - Explore..., instead of using the File Explorer on the device

Remove your SD card and flash your new ROM as usual

Once the installation is completed. Do a hard reset as recommended. (Read here , if you're unsure)

Once the hard reset procedure completes and you get the prompt to press the "Volume up key to boot". Insert your SD Card into the device and boot

The boot process will start and the ROM will start installing the default software, after that it will look for the SDConfig.txt file you just created. This will make it restore your PIM.VOL and it will soft reset your device once again

Your TF3D2.1 will come up with your favorites, calendar entries, call history, etc... and is all good and working well.

NOTE: This procedure works regardless of your ROM. As long as the ROM supports UC. The cool thing about using Sashimi is that I always have Sashimi make a copy of my PIM.VOL before I am going to flash a new ROM. So that way I make sure the PIM.VOL in my Storage Card\PIM\ is the latest

Enjoy!
[Touch Pro, Fuze ROM Development] chaoscreater:
I have heard of Sashimi but find it hard to understand how it works and setting up the app....

I use Pimbackup, will this work as well if i follow ur instructions?

And what is CU? I searched on Google and couldn't find anything relevant.
[Touch Pro, Fuze ROM Development] drake2007:
You wont need PimBackup with this solution. And sorry, it was a typo. It is UC, not CU. I fixed that on the first post. Problem is PimBackup wont work well when you try to restore if you're using TF3D2.1 which could be a major show stopper for many. With this solution you backup everything and restore everything by simply copying the PIM.VOL file. It has to be done this way because if you don't do it at the fresh ROM restore, you'll get a sharing violation error.
[Touch Pro, Fuze ROM Development] xternal:
Have you had any issues if you then active sync with your computer's outlook? I know with PIMbackup i ended up with the strange situation where my PC thought the restored contacts from PIM were unique, and ended up with doubles. (I even had the computer set as the master to clear everything on the device).
[Touch Pro, Fuze ROM Development] drake2007:
I haven't. It shouldn't at all. Since it is the same PIM.VOL you used before, so synchronization data should be intact if you are faithful to the steps I provided. If your pre-TF3D2.1 was working well, then if you use this procedure you shouldn't have any problems.
[Touch Pro, Fuze ROM Development] chaoscreater:
just to be sure, PIM.VOL is the output that Pimbackup makes right?

And what is UC?

Also, i named my memory card to 8GB instead of the default "storage card", which means that all my information are stored on a different memory card name.....so if i follow ur method, i.e aftering the hard reset and insert my SD card and boot, it will look for the SDConfig.txt, but the problem is the name of the memory card is different......and even if i edit the SDConfig.txt, i still have to change my memory card name first before i apply ur trick, so what i don't understand is will this only work during the part when the phone installs the default software? Because u said that we have to insert our memory card after the hard reset procedure is complete. And we can only start to install our own softwares after step 5, which means that even if i edit the memory card name to 8GB in the SDConfig.txt, it won't work since the default memory card name is "Storage Card" and hasn't been changed yet.......

And since i can only start to gain control of my fone after step 5, that means i can't install any registry editors straight after the hard reset and therefore can't edit the memory card name........i hope that made sense...
[Touch Pro, Fuze ROM Development] monkeyfishing:
This is a great tip - thanks!

Can anyone assure me that this works with contacts and calendars synced using exchange and google? I really don't want my google contacts and calendar duplicating everything!
[Touch Pro, Fuze ROM Development] drake2007:
I would think that you need to use the same name you used for your card. Test it, I have not done so changing the name of the SC. I've never done it so I cannot tell you if the name doesn't remain with different ROMS. I would think that if it doesn't then you still have to use \Storage Card\ regardless because that's the default name. But you'll have to test and try, then share what you found

UC is User Customization. See the link in my first post.

Monkey, like every one here will tell you. I cannot assure you anything, we give advise based on things we personally test with our device. Its all in good faith, you need to do your own testing. You read, then you test. If you're not completely sure, then make a full backup of your device, try this, didn't work, go back. I've done this several times and it works. I don't see why you will have issues since the format of the PIM.VOL doesn't change regardless of what you sync with.
[Touch Pro, Fuze ROM Development] Asphyx:
I've never played with Sashimi before...dabbled a bit with sdconfig...

Is this just for contacts or does it also backup TF3D2 favs, stocks, weather etc...
[Touch Pro, Fuze ROM Development] peeps:
man I sure love my cheap (mail2web) exchange solution...definitely worth the $5/month! Add in MyPhone for free and I don't think it gets much better...IMO.

It took me a while to figure out its beauty, but it sure beats messing with all this!
[Touch Pro, Fuze ROM Development] drake2007:
Like I said, it backs up everything including your favorites. No stock and weather.
[Touch Pro, Fuze ROM Development] drake2007:
Glad it worked for you. But, "messing with all this"? This is simple and automatic, only have to do it once. Everytime you flash a new ROM there is no-install. What can I say? whatever works for you, works for you!
[Touch Pro, Fuze ROM Development] peeps:
isn't automatic if you have to spontaneous hard reset, is it? You are stuck with a backup that is how old? yup...the last time you backed it up. How many contacts/appts/tasks, etc did you just lose?

With MyPhone (as the worst case for full backup), you are left with just a 1 day loss...and with my setup using Exchange for mail/appts/tasks on continuous sync, that only includes SMS as a 1 day loss risk. Even if they (mail2web/myphone) have a server failure, I will take that slim chance that it falls on the same day I have to hard reset both my devices that sync that content...
[Touch Pro, Fuze ROM Development] Shinare:
Man I suck...

I'm having trouble with step #1, heh.

How do you disable TF3D?
[Touch Pro, Fuze ROM Development] drake2007:
Start - Settings - Today - Items: Uncheck the TF3D
[Touch Pro, Fuze ROM Development] drake2007:
Dude! you can use whatever you like for backups. I posted this workaround for people who will flash another ROM with the TF3D2.1 version. And this is a workaround for the PimBackup issue. You're here debating what solution or not is better for backup/restore. If you apply this workaround then one can use whatever backup/restore solution fits best after the fact.

I am not presenting this as a backup/restore solution strategy. Which means you obviously didn't do your work of reading through the forums and don't know what this is about, so came here to talk nonsense. You're free to do whatever you like, but to come to the forum to argue and criticize about other people's free help is quite un-productive. So save your time and ours.

These are not debate forums about technology. There are plenty of places out there where you can go pretend you are a guru and know a lot about stuff.
[Touch Pro, Fuze ROM Development] peeps:
ok thanks...try not to get butt hurt so easy...its the internet for pete's sake...
[Touch Pro, Fuze ROM Development] omnicronx:
'ok thanks...try not to get butt hurt so easy...its the internet for pete's sake...'

Get hurt? You came into the thread he created and brang it completely off topic. We know there are other backup solutions, but this was a thread made for those that use PIMbackup and want to use Manila 2.1. As great as apps like myphone are they still have to be setup upon every hard reset which quite frankly, is very annoying. I would rather backup my contacts as normal and have it part of the flashing process. This makes far more sense if you use your own kitchen, as you usually end up flashing more than once. I don't want to have to configure myPhone everytime to make sure contacts are working.
[Touch Pro, Fuze ROM Development] peeps:
well you know what, my PIM data is a bit more important to me than to use some "hack" just to use TF3D or any other UI. I have gone through all sorts of issues in the past on other devices from creating duplicates of all PIM data to completely wiping it out from following "solutions" posted on forums. I don't need to waste time screwing with or screwing up my PIM data...as it is the heart of my PDA. Without it, I may as well use a Razr. Others may feel the same way and have similar experiences.

Off topic? Harldy...read the title of the thread.

"Backup & Restore of TF3D2.1 appointments, contacts, and favorites"

He offered a solution inline with the topic, so did I...

And what about the people coming from wm6.1 to wm6.5 that are reading these forums? Has the OP confirmed that this method works across the 2 OS's without screwing up the reader's PIM data? We already know there are differences in the calendar areas across 6.1 and 6.5...what about others?

Me? I prefer not to risk my precious PIM data in this way...just as you prefer not to enter configurations for proper sync and backup...To-may-to, to-mah-to, I suppose...
[Touch Pro, Fuze ROM Development] frosty911:
lets say one forgot to shut off TF3D before copying the pim.vol file to there storage card. Is that a huge issue? :confused:
[Touch Pro, Fuze ROM Development] sponsor79:
PIM.vol is a PIM database on every single wm device.

About storage Card - there is Label - showed in PC as a name and a system device "Storage Card" in wm device.

Label is on your card. "Storage Card" is a name for device stored in registry of wm rom. so, if you flash new wwe rom you will have a "Storage Card".
[Touch Pro, Fuze ROM Development] drake2007:
I've done it and had no issues. The reason I say to disable TF3D is to avoid sharing violations or any other conflicts, just to be on the safe side
[Touch Pro, Fuze ROM Development] frosty911:
Alrighty thanks. I obviously forgot. Do you physically see it reading the files off the sdcard when its installing? the reason i ask is, (which is probably %100 me) i flashed the rom, think i got all the steps right, setup the phone as usual, TF3D started, but when i pressed on the favourites tab, TF3D tried started again, and basically sat there trying to start. Id use the slider to move off the favourites tab and everything was fine. i thought maybe since i didnt shut off TF3D when i backed up the pim.vol file before flashing, thats why it was acting werid on me. hhmmmm. going to try again tonight. i reflashed the pheinox rom and will redo everything again. also. i basically copyied/paste your sdconfig file, and placed the file in the same folder as u stated. nothing is ever easy eh?? lol. thanks for the help. and ur whole idea here is great.
[Touch Pro, Fuze ROM Development] trancer_84:
Thanks for the guide. Just one question to make sure. Does the pim.vol file include text messages? Or would i have to back up my messages another way?

Currently using PIMbackup but i would like to switch to manila 2.1

Thanks for your help :)
[Touch Pro, Fuze ROM Development] Phaze13:
No that's what I was thinking to. You can find the file in the root directory \pim.vol

copy that file to your SD card.

This seems pretty simple, thanks for the tip!
[Touch Pro, Fuze ROM Development] Farmer Ted:
Lol, thay's why I said like 5x to disable tf3d before restoring pim.vol. It can send you into the annoying manila boot cycle. You may want to do it after customization; I guess it depends on when manila boots up.

You don't need to reflash; just hard reset, and remove your sd card during boot up.
[Touch Pro, Fuze ROM Development] drake2007:
No pim.vol doesn't store messages, so those wont be backed up. You'll have to do it using your favorite tool.
[Touch Pro, Fuze ROM Development] muzikfreakah:
The Favorite tool being? PIM backup?
[Touch Pro, Fuze ROM Development] AndyJ91:
Thanks drake, works great.

@ muzikfreakah: Yep, PIMBackup works for messages.
[Touch Pro, Fuze ROM Development] pspeter:
ok, I tried to reinput all my contacts, then backup by copy the pim.vol file, while reflash rom and replace the file, sending 2nd sms to the same person still pop up the error, what's wrong?:confused:

Update: I deleted all contacts and just reinput 1 contact, then smses to him, everything's fine. Then i resync all contact back in, sms again, it's fine! Strange~ will try another contact....
[Touch Pro, Fuze ROM Development] azapa:
maybe i'm just crazy or lucky but the following worked fine for me, and seems easier than the OP's route. note it may be even easier but i did not try to cut out any more steps:

use TOTAL COMMANDER

1. in the root rename pim.vol to pimold.bak

2. change to where you have your old WM6.XX pim.vol, like the storage card

3. copy pim.vol to clip board (remember, all this is in Total Commander)

4. go back to root \ and paste

5. hard reset (little red button) your phone

6. on starting there may be some funny delays, but the old (your original copy from the storage card) pim.vol contacts should now be there

good luck
[Touch Pro, Fuze ROM Development] peeps:
I think you mean SOFT reset? Please confirm...
[Touch Pro, Fuze ROM Development] drake2007:
I am guessing this post is on the wrong thread, or I am officially in the twilight zone :D
[Touch Pro, Fuze ROM Development] pspeter:
I have found a way to fix my problem. I have to delete all previous sms on this contact, then the problem solved!:p

Just as a reference if others face this problem, if not just ignore~;)
[Touch Pro, Fuze ROM Development] azapa:
no sir! ;)

I love pimbackup but did not want to have any problems with SMS post import. So i took my entire PIM.VOL from my previous cell (Wizard with WM6) and use the above process to "open it" in my new (Diamond) phone with this ROM (that has a link to this thread regarding the import problem) http://xdaforums.com/showthread.php?t=521941

Guess I'm sort of on track
[Touch Pro, Fuze ROM Development] drake2007:
OK I get it now. I have not tried this with a WM6 PIM.VOL and am guessing there might be compatibility issues. Did you follow the procedures exactly as I indicated and letting the new ROM to use the SDConfig.txt?
[Touch Pro, Fuze ROM Development] Farmer Ted:
You can export the folders inside pim.vol with sk tools as .xml files. I haven't tried it yet, but I suppose you could run the xml's during customization to load your pim data (or messaging).
[Touch Pro, Fuze ROM Development] splinter182:
now i think my situation is unique. i always keep a backup of my contacts and always make a new backup when i add new numbers to my phone book. well the deal is i already flashed a manila 2.1 rom, restored with pimbackup and made a new back up of my contacts.

will i still be able to reflash a manila 2 rom, restore, copy pim.vol and use this method to restore and not get the 2nd text issue?