Backing up Mail settings before ROM update - Mogul, XV6800 ROM Development

Hi, is there any way to backup the email settings so that they can be restored after doing a ROM update?
I've found several backup programs, but all warn they will not restore to a different ROM version. Its such a pain manually adding all my email accounts back in, and I want to play around with a few different custom ROMs, and don't want to have to re-enter these every time.
No need to restore emails themselves or other files/settings.

You can use UC to install a provxml file with all your email account settings.

gc14 said:
You can use UC to install a provxml file with all your email account settings.
Click to expand...
Click to collapse
Ok, I'm slow. What is UC and where do I find the appropriate provxml file to copy?

UC stands for User Customization and is included in the latest custom roms.
http://forum.xda-developers.com/showthread.php?t=366337
Information regarding EMAIL2 provxml creation is towards the bottom of post #3, though I highly recommend reading the entire thing (Posts 1-3), along with all the other information provided.
I've been urging people in this forum to educate themselves with UC for a while now, as not many use it.
Some swear by using OEM's. I prefer UC over OEM's for many reasons. UC allows you to cook a nice clean, bloat free ROM, and still have all your apps and settings installed automatically at first boot. You cannot uninstall the apps cooked in from OEM's as they are part of the ROM itself. It allows you the freedom to install/uninstall at any time, as well as pinpoint problems with certain apps. Lastly, apps installed by using OEM's tend to flood the \Windows directory.

Spb backup 2 u can restore to different ROM version.

Thanks gc14, that sounds good. Any way to do something similar if I load up the new 6.1 official ROM when it comes out?

Dont think official rom will be UC capable!

Thanks gc14, that sounds good. Any way to do something similar if I load up the new 6.1 official ROM when it comes out?
Click to expand...
Click to collapse
Official roms aren't UC compatible...but trust me...don't use an official rom. Custom roms are always better and are derived from the crappy official roms anyway.

on a second note, would backing up email settings into a cab a possibility? J/W of course.

So Spb backup 2 is the only way? Nothing freeware?

So Spb backup 2 is the only way? Nothing freeware?
Click to expand...
Click to collapse
I'm telling you man...just open notepad and type
Code:
LOCK:Enabled
XML: \Storage Card\email.xml
LOCK:Disabled
RST: Reset
Save it as SDConfig.txt and throw it on the root of your microsd card.
Then whip open notepad again and type
Code:
<wap-provisioningdoc>
<characteristic type="EMAIL2">
<characteristic type="{4185342d-4d70-4488-9217-fa2d1f8fb52f}">
<parm name="SERVICENAME" value="Comcast" />
<parm name="SERVICETYPE" value="POP3" />
<parm name="INSERVER" value="mail.comcast.net" />
<parm name="OUTSERVER" value="smtp.comcast.net" />
<parm name="NAME" value="Your Name" />
<parm name="AUTHNAME" value="Your User Name" />
<parm name="AUTHSECRET" value="Your Password" />
<parm name="DOMAIN" value="" />
<parm name="REPLYADDR" value="Your E-Mail Address" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
Fill in your own values, that one is for Comcast mail. If you want to setup another account, just copy the whole block starting with <characteristic type="EMAIL2"> down to the last </characteristic> and paste it below the last </characteristic>. Then just edit accordingly.
You have to use seperate GUID's for each account though, you can generate random GUID's here http://www.guidgen.com
Save it as email.xml (don't save as a .txt file), and copy to the root of your microsd card. You're done.
For extra settings, like file sizes to download, how often to check, read that UC thread, but these are the basics.

I'm sorry. I thought people said UC only works on the custom ROMs, and not on the official 6.1 that's coming out for when I decide to try it.

I still don't understand why you insist on using the Official rom when it comes out...
Not only will it be full of bloat and your Titan will feel like a PC running Windows ME, but also, you'll be missing out on all the great features a custom rom has to offer....UC being one of them.
Custom roms take the best out of the Official roms, and make them even better. I don't know why anyone would want to go back to a stock rom...unless they had to return it lol.

if you are cooking your own, use Oemizer. That will let you put all user settings in one oem. That includes Theme, email settins including passwords, ring tones etc.

shawndoc said:
I'm sorry. I thought people said UC only works on the custom ROMs, and not on the official 6.1 that's coming out for when I decide to try it.
Click to expand...
Click to collapse
why bother? it will likely have an older build of 6.1 than we already have in the custom roms

I know this is an old topic, though my question relates to the one asked here. I also wish to back-up my e-mail settings so I can add them to UC.
Now I wonder where I can find my current settings on my phone. I'm not 100% sure what settings are required/used and I wouldn't like to make mistakes here, as testing isn't quite easy. Can anyone answer that question?

Angelusz said:
I know this is an old topic, though my question relates to the one asked here. I also wish to back-up my e-mail settings so I can add them to UC.
Now I wonder where I can find my current settings on my phone. I'm not 100% sure what settings are required/used and I wouldn't like to make mistakes here, as testing isn't quite easy. Can anyone answer that question?
Click to expand...
Click to collapse
If you setup the accounts in the first place it will be faster to just retype in the xml then try and export. If you follow the libk on file operations from the uc thread, you will end up on msdn and there is a link to the EMAIL2 docs for a full description.
Also the instructions for debugging uc in the uc thread tell you how to make a cab from you settings.

piwaf said:
If you setup the accounts in the first place it will be faster to just retype in the xml then try and export. If you follow the libk on file operations from the uc thread, you will end up on msdn and there is a link to the EMAIL2 docs for a full description.
Also the instructions for debugging uc in the uc thread tell you how to make a cab from you settings.
Click to expand...
Click to collapse
Thanks for your reply, but it doesn't exactly cover my question. I have already found out how to create the xml and how to use it - that's not my problem. I can not, however, find my current settings - how to write them into the xml. My hotmail account for instance, is set up through windows live. I want to install that through UC as well. I'm sure it can be set up through an xml and/or reg settings, but first I need to find them as they are currently on my phone in order to recreate them.

Gotcha, I assumed you where just looking for a shortcut. I searched my registry and can't find my own settings, so must be somewhere special. I'll poke around and see but not sure what I'll find.

piwaf said:
Gotcha, I assumed you where just looking for a shortcut. I searched my registry and can't find my own settings, so must be somewhere special. I'll poke around and see but not sure what I'll find.
Click to expand...
Click to collapse
Yeah, I think they hid it somewhere in a file, instead of the registry. I've been poking around it for a while now and found nothing. I guess I'll have to do the windows live part manually, and hope that I entered the correct settings for my other e-mail accounts. (as I can't find those either)

Related

how to modify HTCCPL reg key and .cpl???

how can i modify registry keys such as htccpl in any rom kitchen? possible at all? or are they always related to the htccpl.cpl in the windows folder? how to modify that one then?
i just can't modify or delete them in neokit.
cheers.
chriskay said:
how can i modify registry keys such as htccpl in any rom kitchen? possible at all? or are they always related to the htccpl.cpl in the windows folder? how to modify that one then?
i just can't modify or delete them in neokit.
cheers.
Click to expand...
Click to collapse
Some in reg, some in provxml Check your PM for more detail, friend !
yeah, thanks, mate! i found all entries i need in those provxml files! great stuff!!
now i am almost done with all modifications reverting everything back to "original".
any ideas how to change "hidden" status of a single file? i want to make the templates for notes and office visible.
cheers!
chriskay said:
yeah, thanks, mate! i found all entries i need in those provxml files! great stuff!!
now i am almost done with all modifications reverting everything back to "original".
any ideas how to change "hidden" status of a single file? i want to make the templates for notes and office visible.
cheers!
Click to expand...
Click to collapse
I'm not sure what you are talking about, but I do like the word "original".... If you are done, is it worth sharing?
well, as i stated in cloudyfa's thread, i am not a friend of too heavily customized roms even though most of them look pretty cool. everyone is individual and has a different taste. therefore i really liked korand's contribution. unfortunately there were still some minor flaws, such as an incorrect wm6 sound scheme (as i believe), which i could not figure out to fix.
but with cloudyfa's rom providing wpa2 and showing no signs of bugs so far, i just could not resist making my own close-to-originally-offical wm6.1 rom, because no-one seemed to respond to my appeal of making a truely clean version. so i took the challenge myself... and it was quite some lesson and a lot of fun, however, i still do not consider myself a rom cook (yet).
and "yes", i will share it if cloudyfa does not mind and if i will not encounter any problems while testing my "creation" at the moment. i only need to figure something out about user customization. maybe you have an idea since i could not find anything specific on my question:
if uc is enabled, will it still be possible to run autorun from extended rom even though it would be redundant? because there is still the registry key set for autorun destination on extended rom. or can i delete it? or should i leave it for some kind of "dual autorun mode" ?
cheerio.
chriskay said:
well, as i stated in cloudyfa's thread, i am not a friend of too heavily customized roms even though most of them look pretty cool. everyone is individual and has a different taste. therefore i really liked korand's contribution. unfortunately there were still some minor flaws, such as an incorrect wm6 sound scheme (as i believe), which i could not figure out to fix.
but with cloudyfa's rom providing wpa2 and showing no signs of bugs so far, i just could not resist making my own close-to-originally-offical wm6.1 rom, because no-one seemed to respond to my appeal of making a truely clean version. so i took the challenge myself... and it was quite some lesson and a lot of fun, however, i still do not consider myself a rom cook (yet).
and "yes", i will share it if cloudyda does not mind and if i will not encounter any problems while testing my "creation" at the moment. i only need to figure something out about user customization. maybe you have an idea since i could not find anything specific on my question:
if uc is enabled, will it still be possible to run autorun from extended rom even though it would be redundant? because there is still the registry key set for autorun destination on extended rom. or can i delete it? or should i leave it for some kind of "dual autorun mode" ?
cheerio.
Click to expand...
Click to collapse
yups, you can still run some application from extende rom.
At windows folder, you will find config.txt . You have to give some command on it.
The command there, is just a RST ( Reset ) . But If you give a command first, it will install some cabs. It all command from AutoRun
This is some command
LOCK: Enable
CAB: \Extended_ROM\TCPMP.CAB
CAB: \Extended_ROM\Cabs\ABCD.CAB
LOCK: Disabled
RST: Reset
the command will install TCPMP.cab and ABCD.cab
share at XDA is always a good one.
With Cloudyfas ROM, there is a provxml file that sets the keys for AutoRun to somewhere in the windows directory. You will have to remove/alter that for autorun from the storage card.
The point of AutoRun is to allow you to install cabs etc before the user can really use the ROM. UC is to provide users with a faster way to set up the ROM. The two can and should co exist.
so if i got it correctly: putting the common command lines of the extended rom autorun PLUS the command lines of sdautorun into this single config.txt file would make the device boot and install from both locations one by one?
so, what are your recommendations about the registry key:
[HKEY_LOCAL_MACHINE\Comm]
"TurnRadioFlag"=dword:0
"AutoRunCFG"="\\Extended_ROM\\config.txt"
"AutoRun"="\\Extended_ROM\\autorun.exe"
leave it or kill it??
edit: decided to remove it due to its complete redundancy. it is uc already... now i am close to finishing.
edited edit: put it back in. i think it won't hurt and maybe someone still needs it.
cheerio.
One of Cloudyfas ProvXML files overwrites that, so it is completely redundant!
It's called mxipupdate_zz_oemoperators_102_CheckAutorun.provxml
You can look at it and see what it does.
The two AutoRun files (SDConfig.txt and Config.txt) are separate files that run independently. The point of UC is User Customization. All you need to do is make sure SDAutoRun.exe is in \Windows and that the last line of your config.txt file is
Code:
EXEC:\Windows\SDAutoRun.exe
That is all that is needed for it to run.
ok. removed the redundant entries. i was just thinking there might be some way of a "dual boot". but actually this is rubbish. so i leave it as uc as it is.
The point of UC is that the two are seperate. Everything can be achieved with just one of the two systems, but with UC, you (the chef) can install cabs, and the user can install tweaks etc.

Automated Installer, SASHIMI

i found this in the Kaiser Forum, i tried it and im loving it, for me a little easier and for me then user customization (uc), much more user friendly for me. restores all my settings, email setting, speed dials, i can select were to install cab automatically (storage or main), i can run it at anytime, not just at boot up
pretty awesome. from what i think i understand, its just for kaisers,
http://forum.xda-developers.com/showthread.php?t=392983
Lupe
overhaulengines said:
i found this in the Kaiser Forum, i tried it and im loving it, for me a little easier and for me then user customization (uc), much more user friendly for me. restores all my settings, email setting, speed dials, i can select were to install cab automatically (storage or main), i can run it at anytime, not just at boot up
pretty awesome. from what i think i understand, its just for kaisers,
http://forum.xda-developers.com/showthread.php?t=392983
Lupe
Click to expand...
Click to collapse
THANK YOU
This is much easier
overhaulengines said:
i found this in the Kaiser Forum, i tried it and im loving it, for me a little easier and for me then user customization (uc), much more user friendly for me. restores all my settings, email setting, speed dials, i can select were to install cab automatically (storage or main), i can run it at anytime, not just at boot up
pretty awesome. from what i think i understand, its just for kaisers,
http://forum.xda-developers.com/showthread.php?t=392983
Lupe
Click to expand...
Click to collapse
Works on my Touch Pro just fine. Indagroove has a ROM for the touch pro & the diamond that is sashimi compliant. Install the ROM, install sashimi, reboot & off you go!
ROMs don't need to be SASHIMI compliant. You set it up on your SD card and just launch it directly from there. It'll automatically set up anything you have configured. It' a brilliant service! And it deserves a link to the official site/thread, too:
http://www.winmo-experts.com/viewtopic.php?f=7&t=4
Be sure to watch the videos - they show you exactly how to do your initial setup.
Any one has al ink to that app or can e-mail it to me?
ruscik said:
Any one has al ink to that app or can e-mail it to me?
Click to expand...
Click to collapse
Yes.
btonetbone said:
ROMs don't need to be SASHIMI compliant. You set it up on your SD card and just launch it directly from there. It'll automatically set up anything you have configured. It' a brilliant service! And it deserves a link to the official site/thread, too:
http://www.winmo-experts.com/viewtopic.php?f=7&t=4
Be sure to watch the videos - they show you exactly how to do your initial setup.
Click to expand...
Click to collapse
Go register and get it.
Essential for me. I wouldn't flash as much as I do if it wasn't for that. I donated for that app.
See http://forum.xda-developers.com/showthread.php?t=577728 and http://forum.xda-developers.com/showthread.php?t=538513. A lot of info also to make a backup
i cant find where to download this, because the link everyone keeps posting doesn't have anything in it...the first post has been deleted or something, so i can't download it
can someone please post a current link?
nicc51591 said:
i cant find where to download this, because the link everyone keeps posting doesn't have anything in it...the first post has been deleted or something, so i can't download it
can someone please post a current link?
Click to expand...
Click to collapse
Yup...you can download it from the below site. It's the site the creator of SASHIMI made.
http://www.winmo-experts.com
heres a program i made to go with sashimi
http://forum.xda-developers.com/showthread.php?t=582421
...............
Isn't this forbidden by the mod/owner?
Since I can't find Sashimi anywhere, is there an alternative stand-alone solution to CABs multi-installs?
I attached SASHIMI for you. I am using it for more than a year now and if/when you set it up for your taste you can automate almost everything after a new ROM flash
Or just try UC Net. It is better as Sashimi and works also on new ROM's.
Sashimi better than other customization systems
Though Sashimi stopped development I can say it is the best!!
I think people did not give time to understand the way its files work and thats why they prefer other systems that do the half work.
Other systems donot put folders or files in any device directory, they dont install mortscripts, they donot add whole files to documents folder they dont execute .reg files and makisu xml with email and wifi settings.
I wrote these lines just to tell that Bengalin did a clever brilliant job though it did not widely adapted from the phone communities.
Maybe, if people want to try it, I will write a tutorial for its basic functions and maybe Bengalin is going to come again with a new version.
NIKOSXRI said:
Though Sashimi stopped development I can say it is the best!!
I think people did not give time to understand the way its files work and thats why they prefer other systems that do the half work.
Other systems donot put folders or files in any device directory, they dont install mortscripts, they donot add whole files to documents folder they dont execute .reg files and makisu xml with email and wifi settings.
I wrote these lines just to tell that Bengalin did a clever brilliant job though it did not widely adapted from the phone communities.
Maybe, if people want to try it, I will write a tutorial for its basic functions and maybe Bengalin is going to come again with a new version.
Click to expand...
Click to collapse
The above mentioned program does all this you mentioned, plus creates automatically shortcuts individuallt or from whole folders just with a simple text file command, moves or deletes files etc etc. You can also create numbered folders with files, exes, mscrs, reg etc, which are processed one after the other. At the beginning you can choose what folders should be processed. The only thing i miss from Sashimi is the resume feature, but as it never fails during installation i really don't need it.
claus1953 said:
The only thing i miss from Sashimi is the resume feature, but as it never fails during installation i really don't need it.
Click to expand...
Click to collapse
There is a resume feature in Sashimi.If the installation fails at some point and you restart the device and run sashimi again, then it asks you to resume or not.
Also there is no need for text file command for adding a shortcut.You just copy your tree in the root folder of auto sashimi and then the file or shortcut appears where you want it.For example, if you want to add a shortcut in start menu you copy the tree in auto sashimi root folder like this:Windows/Start Menu/Programs/Games/BubbleBreaker.lnk
But how you move or delete files?
NIKOSXRI said:
There is a resume feature in Sashimi.If the installation fails at some point and you restart the device and run sashimi again, then it asks you to resume or not.
Also there is no need for text file command for adding a shortcut.You just copy your tree in the root folder of auto sashimi and then the file or shortcut appears where you want it.For example, if you want to add a shortcut in start menu you copy the tree in auto sashimi root folder like this:Windows/Start Menu/Programs/Games/BubbleBreaker.lnk
But how you move or delete files?
Click to expand...
Click to collapse
I was speaking about the other program, UC NET, there you can move and delete files, create new folders etc.

Sample sdconfig.txt on your Fuze

I'm just starting to use UC on my Fuze since I'm starting to suffer from the need to flash at least one ROM a week and I'm tired of reconfiguring my Fuze each time. I'm curious to see what others are are configuring with UC. Right now I am just loading cabs, including the Owner info cab, and configuring 4 email accounts including one Exchange and 3 gmail(google apps hosted domain) accounts. I'm more interested in some of the tweaks since loading CABs and XML is pretty straight forward.
Here is my sdconfig.txt and my latest XML(not tested yet but what the heck). I think it would be cool to have a thread with a bunch of example sdconfig.txt and provisioning xml files to use as examples since I've been basically doing this trial and error.
Since I think that .xml files are not allowed to be uploaded I am appending .txt to the XML files for upload.
One other thing, if you don't know what UC is, read this thread started by Sleuth255. Thanks for getting me started with this Sleuth255. There are a couple of links to MSDN in the beginning of this thread that give a ton of possible provisioning elements for your XML so have fun.
Great idea, i am just about to redo my config, so ill post it when im done.
Could be good to get some of the more frequent/interesting tweaks into the wiki.
Nice Idea. Can OP also edit the link to the thread for getting started with UC for N00bies
Great Idea!
I Didn't know that I could automatically register exchange and speedials. Thanks!
Wiki Page for Raphael SDconfig resources
xternal said:
Great idea, i am just about to redo my config, so ill post it when im done.
Could be good to get some of the more frequent/interesting tweaks into the wiki.
Click to expand...
Click to collapse
I hope that this is not repeated some place. If so, I couldn't find it. Here is a wiki page for SDconfig resources and samples. Post your XML and sdconfig.txt files here but please anonymize them first unless you want your email hijacked. If you did something special, post what you did as a description.
http://wiki.xda-developers.com/index.php?pagename=RaphaelUCSamples
THANK YOU!
The MSDN article in aprticular has answered a number of questions I had been unable to resolve re server set up.
crazyC said:
THANK YOU!
The MSDN article in aprticular has answered a number of questions I had been unable to resolve re server set up.
Click to expand...
Click to collapse
You're welcome but it was Sleuth255 that should get the credit since it was on his original post about this. I am finally able to give something back to the community. That MSDN page really helped me a bunch.
Post your sdconfig.txt and xml when you get a chance to the wiki so others can see what you did.
Rick
Exchange settings not working
Has anybody tried UC exchange settings with 6.5 based ROM? I can't get it to work at all..
Not a sdconfig but my config.txt for my rom
Code:
LOCK:Enabled
CAB: \Windows\MortScript.cab
CAB: \Windows\DeviceUpdate.cab
CAB: \Windows\TaskFacade4.cab
CAB: \Windows\MyPhone.cab
CAB: \Windows\TouchIncall.cab
CAB: \Windows\FInixN.cab
CAB: \Windows\Topaz_Comm_Manager.cab
CAB: \Windows\youtube.cab
EXEC:\Windows\Jug6ernaut.mscr
EXEC:\Windows\Cleanup.mscr
LOCK:Disabled
EXEC:\Windows\SDAutoRun.exe

Fry Cook Questions for the Real Chefs

Greetings,
It seems like the talented experts in this forum are making it easier for everyone to build Custom ROMS. As such, I think many of us are trying this for the first time with the excellent Kitchens that show up on the forum. I thought this might be a good thread to ask noob questions so we do not clutter up the ROM specific treads with our general, how-to noob questions. Most of the ROM threads are cluttered enough.
We should always try the search function, but sometimes the answers are not as apparent or as clear as we would like. So here is a venue to ask for help from the pro's.
Doug M.
Start Menu Organization
So here is my first question for the pros. How do I clean up the start menu in a ROM? Using the 21501 B4 kitchen from DaG and the Erviuskitchen tool, I can easily click the items I want, but many ROMs have all of the apps neatly organized in the start menu. How do I do that?
Thanks for any advice.
Doug M.
It seems like the talented experts in this forum are making it easier for everyone to build Custom ROMS. As such, I think many of us are trying this for the first time with the excellent Kitchens that show up on the forum. I thought this might be a good thread to ask noob questions so we do not clutter up the ROM specific treads with our general, how-to noob questions. Most of the ROM threads are cluttered enough.
Click to expand...
Click to collapse
Great idea, here's to hoping it catches on. Eventually, you may want to change the title of the thread to something [FAQ] Commonly Asked Questions, [Q&A] ROM Cooking Techniques, etc. Could be a great candidate for the Useful Links thread (i.e. sticky).
On to your question ...
So here is my first question for the pros. How do I clean up the start menu in a ROM? Using the 21501 B4 kitchen from DaG and the Erviuskitchen tool, I can easily click the items I want, but many ROMs have all of the apps neatly organized in the start menu. How do I do that?
Click to expand...
Click to collapse
There are several methods that can be used to get shortcuts over to the Start Menu. One method is to copy .LNK files from the .\Windows folder to the .\Windows\Start Menu using a file called INITFLASHFILES.TXT.
Another method uses a .PROVXML file to perform copy operations, once again, .LNK files are copied from the .\Windows folder to the .\Windows\Start Menu.
Some chefs may choose to leave the processing actions in each package, others prefer to consolidate shortcut processing to a "master" package.
HTH,
hilaireg said:
Great idea, here's to hoping it catches on. Eventually, you may want to change the title of the thread to something [FAQ] Commonly Asked Questions, [Q&A] ROM Cooking Techniques, etc. Could be a great candidate for the Useful Links thread (i.e. sticky).
On to your question ...
There are several methods that can be used to get shortcuts over to the Start Menu. One method is to copy .LNK files from the .\Windows folder to the .\Windows\Start Menu using a file called INITFLASHFILES.TXT.
Another method uses a .PROVXML file to perform copy operations, once again, .LNK files are copied from the .\Windows folder to the .\Windows\Start Menu.
Some chefs may choose to leave the processing actions in each package, others prefer to consolidate shortcut processing to a "master" package.
HTH,
Click to expand...
Click to collapse
This doesnt really answer his question hehe. He is asking how to move files that already in the startmenu.
As fare as i know there are 3 methods that you can use(i know there are more but these are the ones i know of).
1. Via program that will move them...like NueLinks
2. Via proxml, tho proxml's are very complicated and one mistake will kill the whole proxml.
3. & Easies way imo is with the use of MortScript, which is what i do.
Just use a mort oem or install mortscript via autorun then exec the mortscript to move the files. here is an example of hte mort command.
Code:
If ( FileExists( "\Windows\Start Menu\Programs\Office Mobile\Start_Icon_Office.lnk" ) )
Move( "\Windows\Start Menu\Programs\Office Mobile\Start_Icon_Office.lnk","\Windows\Start Menu\Programs\Programs\Office","TRUE" )
EndIf
first you have the If which checks to see if the file exists, if it does then it Moves it to a set dir. If the file is not there it just moves on to next function in mort file.
jug6ernaut said:
This doesnt really answer his question hehe. He is asking how to move files that already in the startmenu.
Click to expand...
Click to collapse
You are correct, hence the:
On to your question ...
Click to expand...
Click to collapse
... had hoped a seasoned chef would jump in.
Cheers,
You also have to remember that some if not most of the files are write protected, so if you use a mortscript(I also just started using these too) you have to set the file property so it is not read only. This might only apply to links you want to delete, but I have a script that covers most of the common links in the programs folder. I have a cab install my links that have custom icons, so if it does not overwrite the original you will have 2. I like my programs all in folders and organized, so I delete all of the links inside of start menu\programs\ an just use my cab with custom icons to install links. I've attatched my script for Da_G's 21042 kitchen(I actually only use the SYS\XIP) that you can use as a base. It also does some cleanup of extra files, but you can delete that part if you dont need it. I started out by cooking the ROM, flashing, then I go through and write the script to cover all the links I need changed or deleted. Then I test the script before cookin it into a ROM, this way you know what is going to happen I have a different way of writing mine tha Juggernaut, but still effective.
Just have it run near the end of your configuration as:
Code:
EXEC:\windows\cleanup.mscr
Also, a good way to do it which is probably what a pro would say is to get to the root of the shortcuts in the initflashfiles.dat file. It stores where shortcuts go and a lot more. I am actually going to give this one a try next time, as I just now remembered seeing those entries in there...duh. But it does not define where all shortcuts go, as there are plenty of provxml's and initflash.txt files. Lets see what the seasoned cooks have to say though, as I am just a young padawan myself
I've done it using a combo of setting things I want in the start menu in the initflashes in their packages and removing the stock stuff out of initflashes.dat (found in one of the oems, oem_lang_0409, I think). I don't believe it's absolutely necessary, but if you edit the initflashes.dat, afterwards you should open it up with a hex editor and remove the first two bytes (check before and after, and you'll see that there are two extra new bytes at the beginning after the edit). Anyway, this file has stuff like the phone, messaging and contact links in it that always appear in start menus.
Farmer Ted said:
I've done it using a combo of setting things I want in the start menu in the initflashes in their packages and removing the stock stuff out of initflashes.dat (found in one of the oems, oem_lang_0409, I think). I don't believe it's absolutely necessary, but if you edit the initflashes.dat, afterwards you should open it up with a hex editor and remove the first two bytes (check before and after, and you'll see that there are two extra new bytes at the beginning after the edit). Anyway, this file has stuff like the phone, messaging and contact links in it that always appear in start menus.
Click to expand...
Click to collapse
If you edit the initflashes.dat in the ervius visual kitchen (the one from Da_G's 6.5 kitchen), do you still have to edit out the first two bytes with a hex editor?
I don't think you actually need to do it; I just read about it in the blackstone cooking thread. Apparently, with some of the older devices you had to do it, but you may be able to let it slide with the newer ones. I downloaded a hex editor and wanted an excuse to use it, so I personally deleted the two bytes when I edited the .dat file. I'm using At0m's kitchen; can't speak for Da_G's. FWIW, it's a real simple thing to do (heck, get the hex editor package and you can do it on your phone).
Oh, and jmckeejr's cleanup script is very nice. Glad he explained about the first part (setfilattribs....). You need to do that if you want to delete most links or .txt files, as a lot of them are read-only. (I'm also a noob, lol, but figured I might as well contribute where I can. Hopefully the pros will answer the tough ones.)
Another way is using the *.provxml like :
Code:
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\SOFTWARE\HTC\AutoShortcut">
<parm name="\Windows\Start Menu\Programs\Adobe Reader LE.lnk" value="\Windows\Adobe Reader LE.lnk" datatype="string" translation="install"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>
to sort :
Code:
<characteristic type="Registry">
<characteristic type="HKLM\SOFTWARE\HTC\AutoShortcut">
<parm name="\Windows\Start Menu\Programs\[B]Whatever[/B]\Adobe Reader LE.lnk" value="\Windows\Adobe Reader LE.lnk" datatype="string" translation="install"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>
I hope this helps but I dont use this way (i hope this will clear a bit for hilaireg's post)
monx® said:
Another way is using the *.provxml like :
Code:
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\SOFTWARE\HTC\AutoShortcut">
<parm name="\Windows\Start Menu\Programs\Adobe Reader LE.lnk" value="\Windows\Adobe Reader LE.lnk" datatype="string" translation="install"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>
to sort :
Code:
<characteristic type="Registry">
<characteristic type="HKLM\SOFTWARE\HTC\AutoShortcut">
<parm name="\Windows\Start Menu\Programs\[B]Whatever[/B]\Adobe Reader LE.lnk" value="\Windows\Adobe Reader LE.lnk" datatype="string" translation="install"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>
I hope this helps but I dont use this way (i hope this will clear a bit for hilaireg's post)
Click to expand...
Click to collapse
what do you use monx? teach us ur ways!
jug6ernaut said:
what do you use monx? teach us ur ways!
Click to expand...
Click to collapse
nothing special mate, just the oldest method. initflashfiles.txt in each oem folder. So I only use minimum *.provxml (I also removed autoshortcut.exe )
monx® said:
nothing special mate, just the oldest method. initflashfiles.txt in each oem folder. So I only use minimum *.provxml (I also removed autoshortcut.exe )
Click to expand...
Click to collapse
ahh ic (i hate proxml's and will never touch them ). it toke me a while to figure out that autoshortcut.exe was putting .lnks in the startmenu(many headakes in the process hehe).
Glad to see your still around and spreading ur wise wisdom .
I prefer to keep the shortcuts with the respective package ... makes it easier to hand-off the package to other folks who might like to use it.
I have obtained packages where INITFLASHFILES.XML contains the operations, others where .PROVXML contains the actions, and then others where they use a hybrid of both. In my custom configuration kitchen package, I almost exclusively use .PROVXML to apply registry settings or changes to attributes on files.
@dwmackay:
So there you have it, a comprehensive answer to a "simple" question. Some excellent (seasoned) masters have shared their experiences and recommendations. I've picked up some great tips and I'll be interested in reading the responses on the next question(s).
What an awesome community!
Thanks for the detailed answers. I may have concluded that this is above my pay grade. I'll read through the details more carefully and see what I can figure out.
Thanks again,
Doug M.
i'd go for monx way allthough i see no difference in the two pieces of code , it is the best way.
that way you keep the oem-packages clean and won't end up with unnecessary shortcuts.. besides u wont need install mortscript
Even if I didn't use the mortscript way, I would cook it in. Mortscript can be a very powerful thing, and its only a little more than 1MB so good to put it in either way. I personally use Sashimi to autoinstall and import Registry and what not, so I cook it in and all of my programs and settings are auto. I can flash a ROM now, and have it set up within 5-10 minutes(after initial customization runs). Sashimi relies on mortscript, so good to have it in there. You can add Sashimi compliance and UC, so why not add them both? I would try a lot more ROMs if they were Sashimi compliant, and I'm sure others feel the same. Just a headsup for cooks. It takes almost no extra effort to add one line to your config_operator.txt, and include a mortscript in your operator Package.
This is a good thread. I have a question, not really a cooking question more of a preference question. What PagePool have you found to be the best for you? I tried a bunch of different settings, and haven't found a huge difference so I usually set mine at 16-18MB which leaves more free RAM than say 24MB. I there any relation between pagepool and battery usage? I found my battery life to be better when pagepool was set a little lower, but wondering how others feel about it. Stands to reason that a lower pagepool would mean a smaller memory footprint therefore better battery. Am I wrong here?
jmckeejr said:
Even if I didn't use the mortscript way, I would cook it in. Mortscript can be a very powerful thing, and its only a little more than 1MB so good to put it in either way. I personally use Sashimi to autoinstall and import Registry and what not, so I cook it in and all of my programs and settings are auto. I can flash a ROM now, and have it set up within 5-10 minutes(after initial customization runs). Sashimi relies on mortscript, so good to have it in there. You can add Sashimi compliance and UC, so why not add them both? I would try a lot more ROMs if they were Sashimi compliant, and I'm sure others feel the same. Just a headsup for cooks. It takes almost no extra effort to add one line to your config_operator.txt, and include a mortscript in your operator Package.
This is a good thread. I have a question, not really a cooking question more of a preference question. What PagePool have you found to be the best for you? I tried a bunch of different settings, and haven't found a huge difference so I usually set mine at 16-18MB which leaves more free RAM than say 24MB. I there any relation between pagepool and battery usage? I found my battery life to be better when pagepool was set a little lower, but wondering how others feel about it. Stands to reason that a lower pagepool would mean a smaller memory footprint therefore better battery. Am I wrong here?
Click to expand...
Click to collapse
500kbs if u use an oem , i <3 mortscript.
umm i recently heard 16mb pp is the best from benchmarks.
The difference is the "whatever" part. Can't say I'm a seasoned chef but messing with provxmls is really not that hard as long as you don't move or rename them. I've been cleaning up my entire start menu every time da_G released a new kitchen and I made a folder with the files that I have changed before and need to insert to get a clean startmenu:
- initflashfiles.dat
- mxip_HtcApps_translation.provxml (this is for the settings menu)
- mxip_MyPhone_100.provxml
- mxipupdate_office_100.provxml
- mxipupdate_onenote_100.provxml
- mxipupdate_PACKAGE_Raphael_CAMERA_0409.provxml
- mxipupdate_windowslive_1.provxml
- mxipupdate_windowsliveim_1.provxml
, 12
Same here,
I have a '01_PACKAGE_CUSTOMIZED' where I have a copy of the OEMOPERATORS .provxml, .DLL's or .EXE's that should take precedence over those in a package, and custom images/sounds.
PackageBuildOS 5.3 processes the contents of this package before the others ('01_') ... not sure if this will still work /w the New Style Kitchen as I haven't tried it yet.
Added benefits include:
- Not messing around as much with other packages
- Not messing around as much with OEM and SYS
- Quick to test a .DLL/.EXE for compatibility during a test ROM cook
It doesn't address configuration entries that appear in multiple .PROVXML's (or .RGU's) but it sure helps me track down the culprit if I see that my changes aren't present.
Cheers,

(Solved) Hero - Add New google contact

Hi,
I've had my hero for a while now and I'm really happy with it.
I've got one little problem I can't figure out though. If I try to create a new contact and select "Contact Type" the only options I'm given are exchange, sim and phone. There is no option to create a new Google contact.
All my existing Google contacts are syncing fine. I can even edit them and the changes are immediately synced back to Google. If I want to create a new contact though I have to do it on my computer.
If anyone has any ideas they would be much appreciated.
Mark
that seems to be an issue... same problems on mine.
Some more discussion is on MoDaCo
Anybody with suggestions, not involving wiping the whole phone clean?
Its to do with the phone app not recognising that you have signed in with a Google account. I have wiped my phone but i do remember seeing a error message last time when i couldn't create a Google contact.
I believe there is a way to "sign out" from the Hero and then sign in. I'm sure this will resolve the issue.
Finally figured it out (without wiping)
Thanks for your replies.
In the end I managed to fix this without requiring a wipe.
I extracted the files in data.img from a previous Nandroid image (from before I installed the modaco ROM, where I was fairly certain I used to have the option to add a google contact.
I then compared the settings in data/data/com.android.htccontacts/shared_prefs with the current version on the phone. Sure enough there was a line missing from the phone version.
<boolean name="google_login" value="true" />
I added this to the phone (I had to copy the file off the phone using root explorer edit it on the PC and then copy it back).
I rebooted the phone and volia - the contact type 'google' was now listed. The few test contacts I created synced up to google shortly afterwards.
Hope this helps someone else. I don't have an account on the modaco forums so if someone else does - please point them to this solution.
I'm new to android so I'm feeling pretty chuffed
Cheers
Mark
This worked for me (came from the forementioned MoDaCo forum):
It's a bit late for you guys, but there is a way to change the Google account settings on the phone without a full factory reset/wipe. Go to Settings > Application Settings > Manage Applications and tap the entry for Google Apps. Tap clear data and confirm, this will wipe your Google account settings. Then go to Settings > Data Synchronisation > Google and you'll be presented with the Google account setup dialogue that you got when you first setup the phone. Enter your new details and the phone will do a full data sync, then you're done.
I had this issue too.
Initially I had Google as an option for new contacts, then it disappeared.
Since updating to the new (Orange) firmware, its now back again. Hopefully it will stick around now too.
I am running the MCR2.2 ROM and also cannot create Google contacts. I have looked for the shared_prefs file that you mention, but cannot find it. Can you give me any further guidance please?
lbretth,
Have you tried logging out of your google account and back in again as Vanstra suggested? I'm curious to know if it works.
"shared_prefs" is a folder. (sorry wasn't clear in my previous post.) In the shared_prefs folder is a file named com.android.htcontacts_preferences.xml
The correct version od the file should look something like:
Code:
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
<boolean name="google_login" value="true" />
<int name="pref_key_view_master" value="0" />
<boolean name="pref_key_sync_google" value="true" />
<boolean name="pref_key_sync_phone" value="true" />
<boolean name="pref_key_sync_exchange" value="true" />
<boolean name="pref_key_sync_sim" value="true" />
</map>
Can you see anything inside the /data/ directory at all? If you can't then you probably aren't using a file browser that has root permissions. I used "root explorer" (a paid app but worth it). Non root file managers like astro won't work.
Hope this helps. Let me know how you get on.
Thanks for getting back to me. I have tried using both Root Explorer and SUFBS to browse the phone. I cannot find a /data/data/com.android.htccontacts/shared_prefs folder at all. The only options I have are cache, databases and lib folders and none of these contain that folder either. I tried searching the folder name with SUFBS too, and can find loads of XML files for lots of shared_prefs but none for HTC Contacts. Any ideas?
Hmm. Thats strange. I don't really have any other firm ideas.
Have you tried logging out of your google account and back in again?
It's probably an obvious one you have checked already, but - Are you sure you have enabled google contacts sync under synchronization settings?
I also have contacts which sync with an exchange server so it's possible my settings were created by setting up that.
Have you tried creating a shared_prefs folder and adding the xml file? (I've attached mine to avoid typos / copy and past errors)
Other than that I'm just about out of ideas.
Fantastic. Created that folder, pushed your xml file into it, rebooted phone and now have the Google option as the default contact type. Thanks so much for your help.
No worries. I'm glad it's sorted now.
So I cleared my Google Apps data as detailed in Vanstra's post and now my phone will not sync back up with Google. I keep getting an error that states:
Can't establish a reliable data connection to the server.
This could be a temporary problem or your SIM card may not be provisioned for data services. If it continues, call Customer Care.
Any way I can fix this without having to call Customer Care and doing a hard data reset?
Thanks.

Categories

Resources