yashsingh1/xdaforums huggingface dataset:
[Touch Diamond2, Pure Q&A, Help & Troubleshooting] JaHerna:
I am having issue with my Diamond 2 running OS and ROM:

Windows Mobile 6.1 Professional

CE OS 5.2.21041 (Build 21042.1.6.1)

ROM 1.39.405.2 (47382) WWE

The issue is that calendar, email and SMS show wrong time on the phone. For example if I create a meeting in Outlook (note that I sync with my company Microsoft Exchange Server 2007) starting at 16:00 it shows in my Diamond 2 starting at 17:00. When someone sends me email at 12:30 it shows the time 13:30 in my Diamond 2 but 12:30 in my Outlook and Web email. Same goes with the SMS’s. The clock on the Diamond 2 is set the same as on my PC and on the Exchange Server. As I live in Iceland I set the time zone on the Diamond 2 to GMT Casablanca (there is no day light saving in Iceland, always GMT 0) and my PC and Exchange server are set to GMT Monrovia, Reykjavik (it is same as GMT Casablanca). The “Automatic change time zone and clock” option on the Diamond 2 is not selected. I have gone through several options changes on the phone and time zone changes in Outlook but the issue still remains. I have gone through the directions on this Microsoft page, http://www.microsoft.com/windowsmobile/en-us/downloads/microsoft/daylight-savings-update.mspx, and installed the KB949168 patch but with no luck.

I have also the first Diamond phone running OS and ROM:

Windows Mobile 6.1 Professional

CE OS 5.2.20764 (Build 20764.1.4.3)

ROM 2.03.401.3 WWE

…. and these issues did not occur on the old Diamond. Therefore I decided to do a test en the old one and installed this OS and ROM:

Windows Mobile 6.1 Professional

CE OS 5.2.21042 (Build 21042.1.6.1)

ROM 2.04.73.1 WWE

…. and running this OS and ROM the old Diamond got the same time issues as the Diamond 2 so I would expect that this has to do with some software errors that are in the newer OS and ROM builds.

I have also another issue which has to do with the UI HTC has build in Touch Flow to change time zones (World Clock). When I chose Reykavik in this UI the time zone in the OS is changed from GMT Casablanca to GMT London, Dublin which is wrong because UK and Ireland use DTS and Iceland does not.

Can anyone help me with these issues?

Thanks,

Jon :)
[Touch Diamond2, Pure Q&A, Help & Troubleshooting] shawchyn:
Are you using the stock rom or others cook rom?
[Touch Diamond2, Pure Q&A, Help & Troubleshooting] JaHerna:
I'm using stock rom on the Diamond 2
[Touch Diamond2, Pure Q&A, Help & Troubleshooting] PhilipL:
Hi

You need be careful with appointments as Windows Mobile does have a habit of adjusting the time, I asssume either because of daylight saving or some confusion over time zones.

I turned up 1 hour late for an appointment over the clocks changing as what was set for 9am became 10am! :o

Have you checked under regional settings that it is set for the right region, and under the clock settings it is the correct time zone?

Regards

Phil
[Touch Diamond2, Pure Q&A, Help & Troubleshooting] JaHerna:
Yes I know that DTS have been a problem in Windows Mobile in the past but as I’m using GMT Casablanca as time zone so there should not be any adjustments for daylight saving because this time zone is always on GMT 0 time. Regional settings are set to Iceland so that should not be a problem and best of my knowledge regional settings do not affect the time zone settings.

Another point is that the clock on the phone does not change and it shows the same time as on my PC end Exchange Server. Only the time on my appointments, emails and SMS are off by one hour showing the events as they should occur hour later than they should.

The strange thing is that this issue does not occur in some older OS builds. As I tested my old Diamond with stock ROM using the OS 5.2 build 20764.1.4.3 there were no issues but when I switch to ROM using OS 5.2 build 21042.1.6.1 (same as on the Diamond 2) the problem starts.

Regards,

Jón
[General Questions and Answers] sandri.05:
it's possible to unlock T-Mobile MDA Basic for free

thx

here is

Opal: HTC T222X / HTC Touch Viva / Dopod Touch Viva / T-Mobile MDA Basic
[General Questions and Answers] thenewshaft:
Check your device against the wiki you should find all the answers you seek there http://wiki.xda-developers.com/
[Touch HD Windows Mobile ROM Development] filicloe:
[ROM Orange] [Jul 17] RUU_BlackStone_Orange_FR_1.59.73.3_Radio_52.64.25. 34_1.14.25.24

Hi,

Today, French Orange release a new official HTC Touch HD Rom : RUU_BlackStone_Orange_FR-B2B_1.59.73.3_Radio_52.64.25.34_1.14.25.24_Ship.exe

You can download it here :)
[Touch HD Windows Mobile ROM Development] gadjet:
Thanks filicloe..:)

Flashing now, lets hope I can change the language to english when done!

I tried the other 1.59 ROM (Asia) posted, and it is good, lets hope the Orange customisation is not to bad as to slow the ROM down.
[Touch Pro2, Tilt 2 Windows Mobile General] woale:
Could someone please upload the et9.rhodium.* kmap files (windows folder) from a french azerty tp2
[Touch Pro2, Tilt 2 Windows Mobile General] HarveyR:
With pleasure... But inside these files, it is written QWERTY and the map of the second line starts with Q (as expected for a QWERTY keyboard).

Harvey
[Touch Pro2, Tilt 2 Windows Mobile General] HarveyR:
However, here they are :

http://www.geocities.com/hrowson/et9_french_tp2.zip
[Touch Pro2, Tilt 2 Windows Mobile General] HarveyR:
How the hell do you get this to work :

Format:

// c0, c1, c2, c3,..ck, where

// characters on the first column (c0), trigger the dead-cycling

// (c1,...,c3,c1..) when Symb + [first column character] on SP,

// or Fn + Space (PPC) and the current character macthes character

// on the first column.

this is from "eT9DeadKeys.txt"

With my TyTN the "Fn" + "Space" used to role through the "special caracters", "e"->"é"->"è"->"ê" for example.

How do you do this on the TP2 ?

Thanks for help (this is the source of my mapping keys question earlier).

Harvey
[Touch Pro2, Tilt 2 Windows Mobile General] HarveyR:
Oh.. looking closer in eT9.Rhodium.040C.kmap.txt I noticed it looks like the french layout despite the comment that says it's QWERTY.

Tomorrow I'll try fiddling with it to change

// Row 4

{0x10 0x10 0x10 0x14 0x00 0xff}	// CAPS - 0x14 = VK_CAPITAL

{W W W W W 0x13}

{X X X X X 0x14}

{C C C C C 0x15}

with something like

// Row 4

{0x10 0x10 0x10 0x14 0x00 0xff}	// CAPS - 0x14 = VK_CAPITAL

{W W W W W 0x13}

{X X X X X 0x14}

{C C C Ç Ç 0x15}

Would you guys say the would allow me to get "Ç" when pressing "FN" + "C" ?

Harvey
[Touch Pro2, Tilt 2 Windows Mobile General] woale:
Thanks Harvey... indeed the 40C keymap shows AZERTY layout.

However, even after update of reg [Mobile Device\HKEY_LOCAL_MACHINE\Software\Tegic\eT9\Ime\KeyboardLayouFiles\07FF to eT9.Rhodium.040C.kmap.txt it still types QWERTY

Anyone an idea ?
[Touch Pro2, Tilt 2 Windows Mobile General] rbroudo:
You might want to check the following link http://xdaforums.com/showthread.php?t=537707

You can map the french characters yourself and make it te default keymap.
[Touch Pro2, Tilt 2 Windows Mobile General] woale:
I had to update registry [Mobile Device\HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\KEYBD] Curlang to 40c in order to get my keyboard typing AZERTY...
[Touch Pro2, Tilt 2 Windows Mobile General] Aurel143:
Thanks for that but green characters used with the "Fn" button are still not working (I have a French device) :(

Any idea please ?
[Touch Pro2, Tilt 2 Windows Mobile General] credinho:
I have the same problem and it seems that the solution isn't anywhere... someone help please!!!:confused:
[Touch Pro2, Tilt 2 Windows Mobile General] Aurel143:
A page was created on Wiki, hope that will help you.

Changing the Keyboard Layout

Don't hesitate to correct my English ;)
[Touch Pro2, Tilt 2 Windows Mobile General] credinho:
Real nice, just worked with me!!!! To be even better It just miss to explain how can we add new symbols, like the "ç" when pressing FN + C, for example...
[Touch Pro2, Tilt 2 Windows Mobile General] Aurel143:
I gonna have a look at it asap ^^
[Touch Pro2, Tilt 2 Windows Mobile General] credinho:
I know I have to chenge some files, but don't have any idea how and exactly where, so any help would be nice!
[Touch Pro2, Tilt 2 Windows Mobile General] Aurel143:
Repeating the information for search purpose :

http://wiki.xda-developers.com/index.php?pagename=HTC_Rhodium/ChangingKeyboardLayout is updated.
[Touch Pro2, Tilt 2 Windows Mobile General] LeDarlesh:
Awesome!!!

just be careful to change the one before last "C" - aka the 4th "C", not the 3rd "C" as shown in the wiki.

you just solved a major problem I had with my TP2.

Now it's just about...perfect.
[Touch Pro2, Tilt 2 Windows Mobile General] tnt23:
any of you fellas that made it work can make a cab file fix ?:) or registry fix for samishi ? Merci
[G1 Android Development] mzet:
hi,

i compiled bash and added support for executing file /sdcard/bash_profile, so you can set PATH and PS1 variables there, for example...

if someone is interested, there it is for download

http://pub.mzet.net/bash

for become default shell copy bash to /system/bin/bash a then run:

cd /system/bin
chmod 0755 bash
mv sh sh0
ln -s bash sh
[G1 Android Development] shafty023:
NICE! Good job mzet. I missed bash and its wonderful auto complete. This should help spur better scripting with all the functionality that bash supports. No more semicolons at the end of each line in a shell script.
[G1 Android Development] shafty023:
On a side note, we should be able to add the following to init.rc rather than symlinking sh -> bash

export SHELL /system/bin/bash
[G1 Android Development] mzet:
here is example of my /sdcard/bash_profile

PATH=/sbin:/system/xbin/bb:/system/xbin:/system/bin
if [[ ${EUID} == 0 ]] ; then
PS1='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] '
else
PS1='\[\033[01;32m\]\h\[\033[01;34m\] \w \$\[\033[00m\] '
fi

it shows localhost in green color when user is logged or in red color when root is logged...
[G1 Android Development] mzet:
strange. is this variable used? when i execute "echo $SHELL" it writes "/bin/sh", but it does not exists, it should write /system/bin/sh, i think
[G1 Android Development] DeToX-cz:
"/bin/sh" is ok. It's in boot.img...(respectively in ramdisk). Check out some ramdisk ;)
[G1 Android Development] shafty023:
Ya I noticed that after posting my last message. Perhaps it's not used. I'll try and find some time to change that in init.rc and reboot to see if it takes effect
[G1 Android Development] overground:
I tried adding that to my init.rc and not doing the symlink and lost my shell, which I expected. I figured a reboot would fix it, but got stuck @ boot image. No problem...recent nandroid.

EDIT: Using the symlink works fine for now. Thank you!
[G1 Android Development] ttabbal:
Very cool. Thanks for giving us bash for Andriod! While we're thinking of low level tools, anyone have a version of busybox with colorized 'ls'? :)

Anyone know when /system/sd is mounted in the cyano ROMs? If it's available early enough, we could copy bash to /system/sd and avoid taking up 2.5MB in /system/bin. :)
[G1 Android Development] mzet:
it's too big, because everything is built statically
[G1 Android Development] lbcoder:
You know, before going off and compiling things (wasting your time), it is not too bad an idea to do a search... http://xdaforums.com/showpost.php?p=3839562&postcount=4 to see if what you want is already done.
[G1 Android Development] shafty023:
In that version of bash from the link you provided, the dev had an issue with the <enter> key working. This issue does not exist in this version. There's nothing wrong with someone compiling and providing their own version of something. This is exactly the same reason ROM developers on here create their own (and for the most part identical) ROMs as the next guy. We shouldn't hamper innovation, we should support it. Progress is measured by how well someone can build off another's innovation.

Plane->Jet->Space Shuttle. Imagine if we told the guy who invented the jet, hey retard, someone already made an F16, take your stealth bomber and shove it :P
[G1 Android Development] dipeshb:
well said shafty!!
[G1 Android Development] devsk:
that's big!
[G1 Android Development] lbcoder:
That had nothing to do with the bash, it had to do with "better terminal emulator".

And your analogies are wrong since the end result is the SAME THING.

If you want to contribute to things, invent something NEW. Don't keep on reinventing the wheel, we already know that its round.
[G1 Android Development] sha.goyjo:
Shafty, you've created a better product. Good Job.
[G1 Android Development] inoah:
Actually, I'm using mzet's version instead because it was built using a newer glibc and it's slightly smaller.

So thank you, mzet.

PS: using uclibc might result in smaller executables.
[G1 Android Development] shafty023:
Being a senior member you should know better than to put people down. Let's not go down this road, there's plenty of development to do and no time to do it.
[G1 Android Development] glock30:
did this end up working?
[G1 Android Development] dumfuq:
It won't work as default shell but if you use better terminal just make it the initial command and it can be on sd. Also it makes it persistent even through wipes.

in better terminal:

su -c "/system/sd/bin/bash --rcfile /system/sd/bashrc"

then in /system/sd/bashrc:

export PATH=${PATH}:/system/sd/bin

if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi

if [[ ${EUID} == 0 ]] ; then
PS1='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] '
else
PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
fi
[G1 Android Development] mzet:
i did this build because i want it to start /sdcard/bash_profile file automatically with shell. --rcfile argument is useless because it's not launched when i run terminal emulation or "adb shell"
[G1 Android Development] farmatito:
Have you tried from userinit.sh:

mount --bind /system/sd/bash /system/bin/sh

this gives you your statically built bash as default shell without

using space in mtdblock3.

Check that all scripts have

#!/system/bin/sh

line as they could break eventually
[G1 Android Development] dumfuq:
sweet. thanks
[G1 Android Development] mzet:
lol, for the first time i see mounting regular files :)
[G1 Android Development] ttabbal:
I ended up just dropping a shell script in /system/bin/bash to launch it:

#!/system/bin/sh
/system/sd/bin/bash --rcfile /sdcard/bash_profile

So all I need to do is type "bash" when I get a prompt and it's running. Connectbot is set up to do it automatically, but when I connect to the phone via SSH I have to do it manually. I had some trouble with Cyanogen's change to default to ash, so I decided to just do it this way for now.

I just have to remember to do it every time I flash a new ROM. I might put the code to copy the script in userinit.sh so I get it every time, but then I have to deal with having /system writable, which I would like to avoid. Whatever, it's just nice to have a real shell available. Thanks for creating this!
[G1 Android Development] mzet:
you don't need to do "--rcfile /sdcard/bash_profile", it's default... so script is unnecessary... for your situation will be enough to do symlink from /system/sd/bin/bash -> /system/bin/bash :)
[G1 Android Development] glock30:
What if you mounted /system as writable in the userinit.sh script, then at the end of the script re-mount it as read-only... Just an idea
[G1 Android Development] ttabbal:
I tried that, it didn't work. No idea why. It has worked before, so I was at a loss and just specified it to save myself the trouble. Just tried it again, if I run the bash executable, it runs, but I get the default prompt, so it's not reading my /sdcard/bash_profile. If I specify it, it works properly. :confused:
[G1 Android Development] ttabbal:
Yeah, I was being weird about /system for some reason. I used the trick in this thread: http://xdaforums.com/showthread.php?t=538830 so I can have everything available from every rom I flash. Even better. Still remounts / as rw and ro later, but it works.
[G1 Android Development] glock30:
This... is awesome. Thanks. Think I will be using this too... looks promising.
[G1 Android Development] deadite66:
great to have auto-complete and a colourful terminal back.
[G1 Android Development] 51dusty:
i haven't done this on my g1 for quite some time and my scripts work fine...is it rom/recovery dependent?
[G1 Android Development] IConrad01:
51dusty; person is probably not using Notepad++ or Linux.

If you don't use a text editor that delineates line-breaks in a POSIX/UNIX friendly way, Linux machines will then read everything as being a /single/ line. However, you can use the ";" as a 'line break' of sorts within the same line. You can also do the same thing using an actual 'carriage return character' at the end of your lines -- but that's messy.
[G1 Android Development] cyanogen:
This is only a meg if you strip it. Not bad. I'll stick it in my xbin if you don't mind.
[G1 Android Development] deadite66:
guess you need an arm version of strip tried it on my x86 linux install and got an error.

strip: Unable to recognise the format of the input file `bash'
[G1 Android Development] CSSX:
By the way, you can also just take the bash-static (or if you prefer the zsh4-static) packages from the Debian armel-port and put the binaries from the packages on the phone. At least that's got my Zsh from :-) A better version of Vi/Vim would also be nice, and a better toolchain, ... but I guess for now a better shell is good enough.
[G1 Android Development] kaiu:
hi

in Cyanogen 4.0.4 th bash is added at xbin.

so were is the bash looking for its .bashrc or .profile or bash_profile file by default

regards

kai
[G1 Android Development] kaiu:
hi

in Cyanogen 4.0.4 the bash is added at xbin.

so were is the bash looking for its .bashrc or .profile or bash_profile file by default

regards

kai
[G1 Android Development] nmyron:
How to link this in CM 4.1.10

Hi all... I have CM 4.1.10.1 installed on my G1, which has bash already in xbin. I've done the following to create the symlink and replace the default shell.

(remount /system as rw)
mv /system/bin/sh /system/bin/sh0
ln -s /system/xbin/bash /system/bin/sh

Now, when I startup my Term Emulator, I do get bash as my default shell (however the prompt lists as sh-3.2, I imagine because the symlink is making it think that this is sh, not bash, no biggie)

However, I'm a little new at this, so where would I place bash_profile? Would it still be @ /sdcard/bash_profile ?

Also, when I'm in my Term Emulator, I don't get colorized anything, I get normal plain white text on black background. Is this because I'm using Term Emulator, should I use something else?

And another item, in this post, lbcoder states that in the bash_profile (he actually states bashrc, but since in this compile we're using bash_profile, I would imagine we would insert the text in here) we would insert the following:

PS1="[\w]\\$ "
HISTFILE=/some/path/file/with/write/permissions

Which I have customized to this:

PS1="[\w]\\$ "
HISTFILE=/sdcard/bash_hist

And also, to allow root to share the bash_hist file, and configure root identical to the standard profile you would create an subash file within PATH containing:

su -c "/path/to/bash --rcfile /path/to/bashrc"

Which in my usage, I've changed to:

su -c "/system/xbin/bash --rcfile /sdcard/bash_profile"

Is this accurate? And am I correct that, to then su into bash shell configured with my bash_profile, I would then have to type subash at the prompt?

And another item (I know, I've got a lot of 'em...), is there a way in the bash_profile to change the prompt from showing the shell version to showing my current path location? The only reason I ask is that, occasionally, when I've been doing a lot within Term, I get "lost" and have to cd up the tree until I "find" my location, would be somewhat simpler if I could just see the path in the prompt.

**EDIT: I've figured out how to do everything I've wanted to do now, but for some reason, after including the "export CLICOLOR" and "export LSCOLORS" lines to my bash_profile, I still don't get bash shell colors
[G1 Android Development] IConrad01:
Has anyone gotten ls colors working in bash? I've been plugging around at it and I guess I just don't have enough neckbeard. (I.e.; the linux-fu is weak in this one.)
[G1 Android Development] kaiu:
http://code.google.com/p/cyanogenmod/issues/detail?id=145#c19

here is an example.

Still the question: what is the default path to the rcfile ? is it absulut or relative?

May it be usefull to set the SHELL="/bin/bash --rcfile /etc/dropbear/.bashrc"

regardes
[G1 Android Development] nmyron:
From what I've found, it sounds like it's supposed to be an absolute path to bash_profile @ /sdcard/bash_profile. However, to get my profile to pull, anytime I launch the shell, I have to call bash --rcfile /sdcard/bash_profile , or I just get the generic config.

**Also, Kaiu, I've noticed that you're using the dropbear SSH client. What I've been working with is trying to get this configured to show up in my standard terminal emulator, or find a term emulator for the phone that will support reading the CLICOLOR and LSCOLOR commands to display dircolors. I don't know if this is different from what you're doing here, although I imagine that you're using dropbear to remote into your device via dyndns.

**Also, I've gotten everything else configured the way I want it in my bash_profile file, below is the config I've selected.

HISTFILE=/system/sd/bash_hist
PATH=/sbin:/system/xbin/bb:/system/xbin:/system/bin:/sdcard
export CLICOLOR=yes
export LSCOLORS="exfxcxdxbxegedabagacad"
export PS1='\w$ '

I would greatly appreciate it if someone could show me where I can go to correct the color setup, and, possibly, how to set bash as default shell, without performing the symlink. I've heard that changing the init.rc will hang the phone at the G1 screen.
[G1 Android Development] nmyron:
I think the fail is not in the bash shell, but in the fact that I don't see DIRCOLORS implemented anywhere in the system... On a standard linux distro, you would call dircolors at a prompt to display your normal color config. You could then copy/paste the LSCOLOR config line into a bashrc or bash_profile file, and this would config bash lscolor. But, if you run env from a root prompt, no env vars are set referring to CLICOLOR or LSCOLOR. Am I wrong in this assumption? Because this does seem a little confusing, esp considering that some talk as tho this is working properly. Maybe this will only work when SSH'ing into the phone via something like dropbear?
[G1 Android Development] :
mount --bind /system/sd/bash /system/bin/sh

This works for me, but how do I make it pernament, after reboot?

I added this to init.rc in / but after reboot its not there.
[G1 Android Development] farmatito:
Add it to /system/sd/userinit.sh if you are on Cyanogenmod.
[G1 Android Development] :
No I'm not, I'm using dwang. Is there some way?
[G1 Android Development] overground:
Although there's arguments against the symlinks, the method in the OP always functions flawlessly for me. Only time I need to redo it is when I switch or upgrade roms.

EDIT: I just made a quick gscript to run once after switching roms.

Need to create folder /sdcard/bash and place bash in there....path should now be /sdcard/bash/bash

Rename BASH.txt to BASH.sh before placing in /sdcard/gscript

Give script su permissions in Gscript.
[G1 Android Development] :
Wow working great, thanks man!
[G1 Android Development] :
About colors:

From what I find out problem colors is not in profile file, but in ls file. Default android ls doesn't work for me, but linked ls from magic terminal emulator dir works fine.
[G1 Android Development] logosolos:
ls colors

I'm not sure if all versions of BusyBox have colors but I know that BusyBox v1.15.3 does. You can add the line below to your /sdcard/bash_profile and it should work:

alias ls='ls --color=auto'

That'll give you all of the default colors that you've come to know and love. :)