Related
Hello friends,
After some work I have finally gotten the command line interface (Dos Prompt CLI) to work on the Tmobile Rhodium with the stock ROM and Windows Mobile 6.1.
Here's what you need: Microsoft Windows Mobile Developer Power Tools available for free here:
http://www.microsoft.com/downloads/...d6-1dcc-47aa-ab28-6a2b006edfe9&displaylang=en
Within the Microsoft Windows Mobile Developer Power Tools package extract the folder called "PPC Command Shell - Command shell for the Pocket PC 2003 device." Do not worry that it says "Pocket PC 2003", we will make it work on Windows Mobile 5/6! (for background information read http://dalelane.co.uk/blog/?p=122&cpage=1#comment-102893). You will see three files: shell.exe, cmd.exe, and console.dll. Place the console.dll file in your Windows directory on your device (in our case, on the Rhodium Touch Pro 2 the Windows directory takes a long time to populate, but it will, add the console.dll to it). Then move the shell.exe and cmd.exe file to another folder on your device. After you are done with the below instructions you will be able to link directly to the cmd.exe file and run the command line terminal.
For the command line to work you would normally need to toggle the following registry key between "0" and "1" HKEY_LOCAL_MACHINE\Drivers\Console\OutputTo
By default it is set to "1" which disallows the command prompt to run, we need to set it to "0" to enable the command prompt. But, the caveat is that upon reboot it's best to have this key set to "1" otherwise your boot process is extended by about two minutes and you will get two open command prompt windows upon booting which you will need to manually close to go back to your home screen (annoying, but not a huge issue). In order to avoid all that, I have created a two simple Cab files which toggle the above registry key between "0" and "1". Before running the command prompt I run Command_Line_VISIBLE.cab (which turns the registry key to a "0" and when I'm done with the command prompt I run Command_Line_INVISIBLE.cab (which turns the registry key back to '1').
If you forget to run Command_Line_INVISIBLE.cab when done with the command prompt it's no big deal, just run it whenever you get a chance (even after a reboot, which would take two minutes longer and open the command prompt by default, which is no biggie since you can just close it once the device fully boots). Leaving the registry key set to "0" should not damage anything.
I have attached the cab files on the forum.
The goal of installing a command line interface on a Windows Mobile device is 'hackability'... you get yet much better (granular) access to your device. I have always been fond of the way Linux-based devices (Android, Iphone, Nokia N900) give you access to the command line, and always wanted something similar on Windows Mobile. Now this is possible, albeit with less options than the linux-based phones.
For example, with the command line you can now run NetCat. Netcat is known as the Swiss Army Knife of Networking. (http://en.wikipedia.org/wiki/Netcat) on your Windows Mobile phone...
You can download and install NetCat for Windows Mobile at http://prt.fernuni-hagen.de/~bischoff/wince/
I have tested a few basic NetCat commands and they seem to be working as expected, but more testing is needed.
Any feedback is appreciated
Usual disclaimer: This has worked great for me, but obviously I am not responsible if you damage your device.
Does anyone have any comments?
Please post your thoughts.
thank you
so glad i found this post, just about to try it out on my hd2...
To what end? What does this accomplish?
The goal of installing a command line interface on a Windows Mobile device is 'hackability'... you get yet much better (granular) access to your device. I have always been fond of the way Linux-based devices (Android, Iphone, Nokia N900) give you access to the command line, and always wanted something similar on Windows Mobile. Now this is possible, albeit with less options than the linux-based phones.
For example, with the command line you can now run NetCat. Netcat is known as the Swiss Army Knife of Networking. (http://en.wikipedia.org/wiki/Netcat) on your Windows Mobile phone...
You can download and install NetCat for Windows Mobile at http://prt.fernuni-hagen.de/~bischoff/wince/
I have tested a few basic NetCat commands and they seem to be working as expected, but more testing is needed.
terminal 7 said:
so glad i found this post, just about to try it out on my hd2...
Click to expand...
Click to collapse
Hi! Any update on this?
I tried this on my HD2 (WM6.5, ROM v. 1.61.468.1). The console is able to display text and run commands, but I can't type anything directly into it. The only button that seems to work is Enter.
If I type somewhere else and copy-paste into the console this works and commands execute perfectly.
What could be the trouble? Thanks in advance.
I have not tested the CLI on the HD2, but clearly your issue is caused by a lack of a physical keyboard. You may find a workaround to this (since you can copy and paste into the CLI fields), but unfortunately I cannot be of assistance since I only own the Touch Pro 2.
Good luck!
mail_e36 said:
unfortunately I cannot be of assistance since I only own the Touch Pro 2.Good luck!
Click to expand...
Click to collapse
Do you have a software keyboard in your device (my previous BlueAngel had one in addition to hardware)? If yes -- could you please check if the console works with software keyboard?
good!! Did you try pocketgcc on it?
Great news! I just tried the command line using the soft keyboard built into my Touch Pro 2 and it worked... I was able to enter commands in the command line without having to pull out or use the hardware keyboard.
Are you unable to use your software keyboard on the HD2 with the command prompt?
Pronichkin said:
Do you have a software keyboard in your device (my previous BlueAngel had one in addition to hardware)? If yes -- could you please check if the console works with software keyboard?
Click to expand...
Click to collapse
I have not tried PocketGCC, but it would be interesting to get it working on the command line.
mistm said:
good!! Did you try pocketgcc on it?
Click to expand...
Click to collapse
This is pretty awesome. I love my mini version of a PC and having this only helps...
Here is how one can use the command prompt for NetCat...
I have it working on Telus Touch Pro2 but the physical keyboard doesn't work except for backspace and enter. It could be due to Tarkims keyboard remapper. It does however work perfectly with the soft keyboards. I have a copy of Perl installed and working.
The physical keyboard should work, I'm also running Tarkims keyboard remapper and the physical keyboard works well for me. Did you use my two cab files for enabling and disabling the CLI?
Also, please tell me more about Perl on your Windows Mobile phone, is there a binary (executable) or cab file I can install for Perl?
Please advise, thanks.
mail_e36 said:
The physical keyboard should work, I'm also running Tarkims keyboard remapper and the physical keyboard works well for me. Did you use my two cab files for enabling and disabling the CLI?
Also, please tell me more about Perl on your Windows Mobile phone, is there a binary (executable) or cab file I can install for Perl?
Please advise, thanks.
Click to expand...
Click to collapse
You can find Perl here
http://perlce.sourceforge.net/
Which version of Tarkim's keyboard remapper are you using 1.3.2 or 1.4?
I just checked and I am running tarkim's keyboard controller version 1.3.2, which seems to work perfectly with the command prompt.
I am wondering what you use Perl for on Windows Mobile? I have looked at the http://perlce.sourceforge.net/ site and I am interested in installing Perl, can you give me some background on its utilization on the mobile platform?
Thanks!
Here's the response from Touch_Pete (via PM):
Actually I haven't tried much more than a few test programs. But this is a full implementation of a very powerful and flexible programing language that would allow you to go way beyond Mortscript which seems to be a popular scripting language used on Windows Mobile to do all sorts of things.
Working Perfect on my HD2 using FingerKeyboard2.1 ... I was facing same problem with original keyboard
I connect my AT&T HTC TP2 to a Windows 7 laptop via ActiveSync. For about 3 days now, whenever I connect the phone, Windows File Explorer comes up, showing the Windows/System32 folder!
About the only thing I did during that time was install some themes stuff.
How can I sotp this? I seem to remember it happening a long time ago (XP? some old phone?) but I don't remember details.
Thanks!
I finally found the solution, I post the whole thing here in case others have the same problem (it was a bear finding this!):
Delete any keys found on your PC under
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Services\AutoStartOnConnect]
and
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Services\AutoStartOnDisconnect]
If you delete any, reboot. (Note, my PC did not have any keys here that needed to be deleted, only the default key was there)
Then go back to each of the above registry items and in the value name "Default" place a space in the value data. This finally worked for me and I did not have to reboot to see results.
One way to start custom executabled in windows phone 7 is following method:
1) create a exe file that runs in phone
2) create a zip file and put exe inside
3) upload zip file to some internetpage and create .html page for it with <a href.. link for it.
4) navigate to the page with phone IE.
5) when clicking the link the phone can open the zip file and display its contents (tap to open the file ...zip)
6) when clicking the .exe file the phone asks are you sure you want to run
(The program ...exe is from an unknown publisher. Running it could harm your phone. Do you want to continue?)
7)enjoy your homebrews
will this also work on a phone that isn't developer unlocked ?
if that is right than this is the ultimate way to jailbreak a wp7 phone
Never-mind
Nope, he isn't, and described above method works (I guess because of MS ZipView executable bug). But I can't get my apps running, probably because they are not compatible with CE 7.0 and WP7 .Net (I've tried CE 6.0 native code and .NET code).
sensboston said:
Nope, he isn't, and described above method works (I guess because of MS ZipView executable bug). But I can't get my apps running, probably because they are not compatible with CE 7.0 and WP7 .Net (I've tried CE 6.0 native code and .NET code).
Click to expand...
Click to collapse
is your phone developer unlocked ?
Yes, unlocked.
sensboston said:
Yes, unlocked.
Click to expand...
Click to collapse
**** bummer , do you have a web link to that test file of yours then I can try it my phone is locked
xttp://home.comcast.net/~sergsv/
There are two links to zip archives at the left top corner of the page. I can't run these files but MS zip archiver open these zips and asked to run
yes man this is working on a locked phone
now we need some code that works to test this
lets say an .exe that run the file explorer
yes. right now we don't know whether the apps are opened at all. Are the managed Apps in VS compiled into an exe? Maybe we could extract one from an xap for testing purposes...
Silverlight XAPs use XAMLs and DLLs, no EXEs involved I'm afraid.
Hmm yes you're right. Are there extracted executables from the leaked Mondrian ROM?
There are, but they are not GUI apps, they look mainly like command line executables provided by Qualcomm, and some of them look like they could mess up your phone if you don't know what you're doing.
There are some GUI apps, but they come disassembled. I've been trying to assemble them but haven't had much luck yet.
Neat. I shall put together a sample application to test this. (I have Visual Studio 2010 configured to pump out CE7 native executables.)
I think the executable run is blocked. They left typical MS (say - stupid) dialog box but, I believe, ignore the user input...
However the Word and Excel documents can be opened this way.
I tried a few things -- rebooting the phone, crashing the program with invalid pointers, and launching some known executables. Nothing. I even signed my executable with a valid certificate; It still claims unknown publisher.
Wonder if this is some left over dialog as mentioned by sensboston
WithinRafael said:
I tried a few things -- rebooting the phone, crashing the program with invalid pointers, and launching some known executables. Nothing. I even signed my executable with a valid certificate; It still claims unknown publisher.
Wonder if this is some left over dialog as mentioned by sensboston
Click to expand...
Click to collapse
The dialog will be hidden by the shell. You need to add your cert into the phone, email it, resign your app and try it again.
It's possible it'll work.
this will only work with MSFT signed exe's.
walshieau said:
this will only work with MSFT signed exe's.
Click to expand...
Click to collapse
I tried with both my signed executable (with Root CA cert installed) and a Microsoft executable. Neither show signs of execution.
Hello,
I'm trying to develop a little app for my Win6.5Pro PDA (brand new, entreprise edition).
So I've made my own certificate (using tools from the SDK) and it runs smoothly on the emulator.
But when I want to transfer it to my PDA, it says: The file X cannot be opened. Either it is not signed with a trusted certificate, or one of its components.....
I installed the certificate on my PDA, but nothing changed.
I tried with a .cab instead of an .exe, but nothing changed.
I tried to run the .exe in another WinMo, and it run smoothly.
I tried to install other apps, but nothing except the Marketplace's apps were allowed.
After a few hours on Google and MSDN, I think it is because the security level is set to "Locked" (cf. http://msdn.microsoft.com/en-us/library/bb416350.aspx ).
Is there a way to change the security level, or to bypass it?
(it's for personnal dev, and I'm not part of Mobile2Market Program so I don't have a trusted certificate)
Not sure if WM5 version will work with WM6.5, but there's a tool for this:
http://www.microsoft.com/downloads/...8C-D587-47E0-908B-09FEE6EA517A&displaylang=en
Here's a short tutorial:
http://www.riverpast.com/en/support/tutorials/view/?id=4
Thanks stepw.
The Security Configuration Manager tool is also include in the WinMo 6 SDK, so it should work fine.
But I've already tried, and the phone can't connect to anything but ActiveSync
So, after a cople of hours, I've somehow managed to find a solution.
I don't know if it will help somebody but I will write it here.
It's probably not the best solution, but it work fine with me.
First, I've copied the following configuration file into the PDA:
C:\Program Files\Windows Mobile 6 SDK\Tools\PocketPC\Security\SecurityOff.cpf
C:\Program Files\Windows Mobile 6 SDK\Tools\PocketPC\Security\RapiSecurityRapiAllowed.cpf
And I've executed them several times: it seems that something happened (the screen got black for half a second) but at this stage I still wasn't able to launch my app.
I've try to hard reset the device and still nothing changed.
But when I deleted the ActiveSync connection on my desktop and re-connected the PDA, a pop-up appeared saying that the device should restart so new changes will take effect.
And when the PDA restarted, everything was fine
Hi All,
This is my first guide on XDA and this might not be the right topic but it's related. (This is for Advanced users)
I want to start this thread to show how you can use Microsoft's Free Hyper-V Server for more than just "Hyper-V".
I have done tests with Hardware and VMWare Player (V5) with both Hyper-V 2008 R2 & Hyper-V 2012.
System Requirements;
http://en.wikipedia.org/wiki/Hyper-V#System_requirements_and_specifications
And more specifically;
http://en.wikipedia.org/wiki/Hyper-V#Microsoft_Hyper-V_Server
Download a Free copy of Hyper V Server; (It’s free, so no Install key required!)
http://www.microsoft.com/en-us/server-cloud/hyper-v-server/default.aspx (You might need to register)
I have successfully used VMWare Player 5, Version 4 works for Hyper-V 2008 R2 but not 2012.
If you are trying this on hardware directly, you’ll also need to download your system’s drivers (at a minimum the Network Card) and a web browser
. i.e. Chrome downloader from: https://www.google.com/intl/en/chrome/browser/ (Tested to work correctly in Hyper-V Environment) Save these to a USB stick.
Anything else can be downloaded once Hyper-V Server is up and running.
Follow the Hyper-V installation as usual (all defaults)
As a guide; Select Custom Installation, you'll need more than 10GB hard drive size after we add extras, so pick 20GB as a minimum. wait for the re-boot
At this point you'll be asked to set a password and you'll get a command prompt for a user interface.
That's right, Desktop, control panel, Start menu, Metro, Task Bar, System Tray, Internet Explorer are all User interface elements that are removed from this copy of windows.
This is where this [GUIDE] starts to provide non-standard information;
Let's start by Installing your Drivers. (I'm assuming you know how to use the command prompt to change drive letter of your USB drive and launch the driver installer program.)
OR in VMWare case, on the menu select Install VMWare tools. This will not launch automatically, hence you'll need to use the command prompt to change to your CD/DVD Drive and launch the "Setup.exe" for VMware tools.
Now start the installation for Chrome, similar to above.
Now Chrome is running, Close the prompt to select default browser (it's your only browser...)
Sometimes I have found Chrome to crash with a dinput8.dll error (no all websites), Chrome works with this prompt up, but it's nicer to avoid it prompting.
http://www.driverskit.com/dll/dinput8.dll/585.html * We'll get back to this later...
You'll need to be uncompressed the above file, so lets download 7Zip also
http://www.7-zip.org/download.html
Now we need a file manager, since there is no Windows Explorer (or now called explorer) Explorer2 (x2) fits the bill nicely.
http://www.zabkat.com/x2lite.htm * Free Light Version (There are issues with not displaying some files, That because it’s a 32bit application that is not 100% compatible with a 64bit environment), The Pro Version is US$29.95 and is available in 64bit. When you install this, select the option to replace Explorer (note: there is no explorer, so this option allows explorer2 to handle some calls to explorer)
Now download a Start menu, Taskbar “desktop” replacement http://www.emergedesktop.org/* Free and customizable.
- Lets customize the Emerge desktop,
- If not started run “C:\Program Files\Emerge Desktop\emergeCore.exe”
- Lets start by removing menu Items that are broken due to not having a full copy of windows.
-- Settings, Configure Core, Click on emergeLauncher.exe, the press the Cog.
--- Delete “Homepage”
--- Delete “Executable %AppletDIR%\documentation\...”
--- Delete “ Tutorial”
--- Add Type “Live Folder”, Folder “C:\Users\Public\Desktop” (Click Save)
-- Settings, Configure Core, Click on emergeTasks.exe, the press the Cog.
--- Change Icon Size to 16x16 (Click OK)
- Start menu (or right click any where on the desktop) select Desktop Display, right click, Delete.
Now any new program that puts a shortcut in this folder “C:\Users\Public\Desktop” will appear on the launch Task Bar.
For some "Control Panel" replacement options download a GUI for managing some windows features (These projects help to speed up initial configuration;
http://corefig.codeplex.com/ Corefig for Windows Server 2012 Core and Hyper-V Server 2012
https://coreconfig.codeplex.com/ for Windows Server 2008 R2 x64 Core edition
This together with Sconfig can do quite a bit of windows configurations without resorting to the command line.
Ok the dinput8.dll.zip you downloaded earlier, you can un-compress this and put the dll (not the zip) in to the C:\windows\system32 folder.
If you want to make re-starting faster and don't plan on using Hyper-V, lets remove it. (coreconfig I think has this option but the following will always work) In a command prompt window type the following;
start /w ocsetup microsoft-hyper-v /uninstall
(Windows will need to restart a couple of times to do this)
(Optional) Enable a network share (You can use this like a Network file Server now, I don't know if there is a limitation to the number of connections like in desktop versions of windows)
net share /Grant:Administrator,FULL system=c:\
Remote Desktop Concurrent Users limit: 2 (one console, one remote OR two remote) (1 UP on a windows workstation copy)
Enable with from the Sconfig utility..
If you want to run SQL Server (Tested with 2008 R2) you'll need DotNet3.5
In a command prompt window type the following;
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All
I did this as a test a while ago and I think that is all I needed to do and it worked. (I have gotten it to work, so it would be interesting on how much it can be pushed on this platform)
Need Java? Download Java http://java.com/en/download/
Need to use Office Documents?; http://www.libreoffice.org/download
Need FTP Server?; https://filezilla-project.org/download.php?type=server
Need Web Server?; http://mirror.mel.bkb.net.au/pub/apache//httpd/binaries/win32/
Need QEMU support? http://qemu.weilnetz.de/w64/
I used the built in Windows Updates (option 6 on the Sconfig utility) but I also prefer to use: WSUS Offline http://wsusoffline.net/
WSUS will also quickly get you copies of Silver light & C++ run times (or you can find the URL's manually), I find it's best to use both, WSUS Offline for quick offline copies and windows updates for the latest Microsoft has to offer... (I did not say latest & greatest...)
Work in Progress (probably not going to happen without 3rd party work).
Need Sound? (Don’t know of a solution yet…) I saw someone working on this with Server 2012 Core but I did not find the solution or if it would work with hyper-V copy.
Need Direct X? (Don’t know of a solution yet…) I've tried downloading -redist copies, etc but Direct X has been integrated into windows for years and this is the copy it's removed from.
I'd also want to get VMWare Player working or similar for the USB Pass through feature and 3D client support but I'd probably have to use an alternative. (I heard of a USB Driver for windows to share over Ethernet to another copy of windows)
Okay, this is all I have got for now, your thoughts?