yashsingh1/xdaforums huggingface dataset:
[Windows Phone 7 Development and Hacking] Martin7Pro:
Try edit InstallHaRET.txt and LaunchHaRET.txt files in XAP, or recompile from zip by free VS2010 for WP (copy WindowsPhone71\Microsoft.Phone.InteropServices.dll to wanted C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone71\ path first). I mean deploying is descripted in any xml file too.

Yes, it is security token problem, managed application starting is unavailable from native console application probably, HaRETConsole7 must be started by user. I will try to use ultrashot's CreateEmptyPage function before SHLaunchSessionByUri calling, may be it will help (launchuri.exe helper will "known" to operating system), or any hacker here can help with 0x80040202 security error.

This is problem of Telnet protocol, implemented in WM6 HaRET. I can send full lines from console (it is prepared for cmd shell unimplemented still), but haret.exe wants to check and response to every pressed key. Deleting is possible by any key combination (see standard UNIX Telnet help). I can try send Ctrl+H instead Backspace in Telnet mode. Microsoft "intelligents" removed Ctrl key from WP7.

Some functions are unimplemented in kernel driver still.

HaRET output is redirected to stdout and debug output, it is readable by debugger or by simple application, redirecting stdout to file. You can also try HaRET directive LOG \FilePath\FileName.log

I mean the best solution is to make WP7 filesystem unencrypted. I mean ultrashot or Cotulla only are able to make it for devices other then HD2 probably.
[Windows Phone 7 Development and Hacking] Martin7Pro:
I am unable to solve this WPF parts:

1. Other pages (one for HaRET Telnet, one for WinCE shell command console, one for HaRET log viewing, one for stdout viewing, one for debug output viewing etc.). I am too busy to Silverlight studying, but when pages will made, I can attach them to native queues.

2. Large text editor for every console pages, large text viewer for every log pages.

Edit: I've tried it using Silverlight TextBoxes multiplicating, HTML/JS injecting, RichTextBox or ListBox redesigning etc. Unfortunately, I found out that Microsoft employees are even bigger idiots than I thought. Big text editor creating is possible really in WP7 WPF, but it will take a very long time yet. I do not understand Microsoft executives who employ incompetent children instead of real programmers from the old days.

3. Both orientation and HW keyboard support for every pages.

4. Both letter sizes for Telnet console. I must use OnKeyDown event, because it offers processing stopping, I failed to do it for OnChar event.
[Windows Phone 7 Development and Hacking] Robbie P:
I managed to get a log
[Windows Phone 7 Development and Hacking] Martin7Pro:
WP7 Console skeleton, testers needed.

Hi friends. There is WP7 console skeleton, able:

1. To show large received text, scrollable vertically and horizontally too in both portrait and landscape view.

2. To offer clickable vertical scrollbar for quick navigation in very large text.

3. To edit long line text user friendly by SIP and HW keyboard too.

4. To change view simply between HaRET console, CMD Shell console, HaRET log or another logs readonly showing.

Try it, post your notes. There was very much work, I mean WP7 Silverlight creators are total idiots. I can code the same application 100 times quickly using Win32 API. I hacked any little Microsoft IExplore, PWord etc. code parts with unbelievable result - Microsoft employees use a different framework than that which is available for WP7 developers probably! So even Microsoft itself can not create a good application in WP7 Silver****light.

This version is demo only, not using real HaRET communication, you can use it safely.

You can activate the live scrollbar by tapping on it (not working properly), or to yellow button "Scroll".

Yellow button "Menu" offers you to show/hide standard menu, where is possibility to hide scrollbar fully. Cross icon hides menu again. All features are designed to offer maximal space for historical log.

Tap to bottom edit box to edit new text. Enter sends it to new listbox line. Try long line editing, especially on HTC 7 Pro device.

Source code will available here nearly.
[Windows Phone 7 Development and Hacking] Martin7Pro:
Working XAP - HaRET WP7 Console version 1.1

There is working Haret WP7 Console, able to show long texts (try HELP or LSMOD HaRET directives) in both Landscape and Portrait orientation.

You can activate menu by yellow Menu button. Cross menu icon means menu closing. Additional menu (use slide up gesture for showing it) contains native HaRET part automatic installator calling (wait to automatical device reset after native part installing, run console again after reset, do not close native HaRET before).

After application starting native HaRET starts too. Use Back arrow long press to navigate back to console (stay native HaRET working).

Both SIP and HW (HTC 7 Pro etc.) keyboards work after bottom line editor tapping.

Use yellow Scroll button for sofisticated scrollbar showing and using for quick navigation, when many lines occure on console (after LSMOD HaRET directive etc.).

Note: HaRET is textual scripts slow interpretter with complicated managed/native marshalling in WP7 version. For example LSMOD with no params needs about 5 minutes for finishing and showing any thousands lines of result.

REMEMBER: HaRET is danger still! Use on your own risc!
[Windows Phone 7 Development and Hacking] Martin7Pro:
Wait to next xap 1.2 version.

Thanks to jessenic and Jaxbot I am able to redirect WP7 on device Telnet to Pocked CMD too.

There is working on device Telnet xap screenshot:

Xap release will published, when I solute HaRET and Pocket CMD listing switch.
[Windows Phone 7 Development and Hacking] nisu4717:
Will this allow linux booting?
[Windows Phone 7 Development and Hacking] Martin7Pro:
Read older posts. All successive steps approaching us to Linux booting, but still a lot of work ahead.
[Windows Phone 7 Development and Hacking] nisu4717:
Ok
[Windows Phone 7 Development and Hacking] Martin7Pro:
XAP release 1.3 combined PocketCMD and HaRET Console.

1. Install XAP.

2. Enable it by Root Manager.

3. Tap to Menu button, slide menu left and select "Install HaRET etc."

4. Wait to reboot.

5. Wait to automatical HaRET native start.

6. Do not close HaRET, use Windows button to start HaRETConsole7 application.

7. Try PocketCMD shell. Type commands in bottom textbox and send it by Enter key. HELP command is available.

8. Try HaRET/Shell switching by yellow buttons.

Remember: PocketCMD using is safe (when you will not delete any system files or directories), but HaRET may be very danger still! Use both on your own risc.

See screenshot. Output redirecting and pipeing works in console well

:

There will updated xap online.

Most of the MortScript features runs on WP7 now:

Update:

Powerfull 1.5 version is available for download.
[Windows Phone 7 Development and Hacking] Anik49:
Failed to lock 663pages (code 6) tried on hd7...when run startup.txt just showed that
[Windows Phone 7 Development and Hacking] steve_htc_wizard:
Hi, I am running dynamics rom 2.0 on HTC 7 Pro.

Have tried to run Haret but after installing kernel driver ECT and auto reboot, haret starts but then not much can be done with it.

Menus work but telnet connection never changes from "waiting" and other functions do nothing.

But what may be useful for debugging this software is that it has broken the screen orientation in whatsapp.

Nether rotating the phone or sliding the keyboard will change it to portrait mode since running haret but all screen orientation works correctly in all other apps, whatsapp if the only program affected.

Not bothered about it, I can reinstall whatsapp, just thought that it may be of use to you to know harets behavour.
[Windows Phone 7 Development and Hacking] Anik49:
try selet haret below menu...than press back i hope u will see #haret hope so :fingers-crossed:...
[Windows Phone 7 Development and Hacking] Martin7Pro:
Read older tutorial from previous page. I could not find a way for starting managed application from native one (it may be dependent of pagemanager missing and soluted probably simply, but I am too busy to discovery it now). After rebooting native HaRET console is started due to StartUp link including, but managed HaRET console must be started by user (push Window button and navigate normally to HaRET console application). Next console starting allows you to start native part from managed menu, but you must use "back" button longpress for returning to managed console.
[Windows Phone 7 Development and Hacking] Martin7Pro:
Run managed appplication from native command

LaunchUri.exe works already. Thanks to ultrashot I finished simple code of console Single-purpose application, usable from batches/shell/PocketCMD/Mortscript etc.

// launchuri.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"

#include "..\PageManager\EmptyPage.h"

#pragma comment (lib, "aygshell7.lib")

extern "C" HRESULT SHLaunchSessionByUri(LPCWSTR uri, HANDLE* hSession);

inline HRESULT TRACE(TCHAR *format, ...)
{
TCHAR szMessage[8008];

va_list argptr;
va_start(argptr, format);
_vsnwprintf(szMessage, 8000, format, argptr);
va_end(argptr);
OutputDebugString(szMessage);
return 0;
}

int _tmain(int argc, _TCHAR* argv[])
{
if (argc == 2)
{
TRACE(L"launchuri %s", argv[1]);

SHELLPAGE page = CreateEmptyPage();

HANDLE session = NULL;
HRESULT hresult = SHLaunchSessionByUri(argv[1], &session);
TRACE(L" returns 0x%X, session 0x%X\r\n", hresult, session);
Sleep(0);
if (session)
CloseHandle(session);

ReleaseEmptyPage(page);
}
else
{
wprintf(L"LaunchByUri wrong arguments!\n");
}
return 0;
}

LaunchHaretConsole.bat

launchuri app://614edbb1-18e2-4f4d-b706-f53e52614894/_default

Attached files needs to be copied to device \Windows directory, you can repair HaRET console launching after installation by any filemanager.

Next version of HaRET/PocketCMD console will contain it.

I urgently need code for switching to runned managed appplication (like user "Back" button longpress) without new initialisation. I seen something usable in wph-orientationlock source code, but I am not sure, if it can work. This is needed for "usual" console launching. Edit: It seems LaunchUri does needed work, if launched application is running already. But, second question stays important:

Also prevetion of tombstoning is problem. Registry DehydrateOnPause hack or SHSetAutoDehydratingHostEligibility calling solves short time dehydratation only and not automatical application memory freeing after any longer silent time.

Edit2: SHSetAutoDehydratingHostEligibility probably works with parameter FALSE, but only when DehydrateOnPause == 3. However, after long time inactivity application crashes, when using this combination and has a lot of memory allocated (it depends really on time of inactivity, not only on amount of allocated memory). It seems as little garbage collector incompatibility to this combination.
[Windows Phone 7 Development and Hacking] Martin7Pro:
HaRET+Pocket CMD+MortScript

Please, follow also progress in WP7 Mortscript thread. I mean Linux/Android booting is far still, but we can make very usefull system from WP7 one, when all Haret/CMD/Mortscript features will functionable.
[Windows Phone 7 Development and Hacking] steve_htc_wizard:
It seems to have gone quiet on here for a bit, those who know stuff must be busy but don't forget there's loads of us silent topic follwers on here that don't know anything about programming and can't help so don't post anything.

we might not post but we do read this topic regularly with anticipation of that day you say it boots Linux and Android!

I toyed with Android running in haret on windows mobile and look forward to the same on windows phone.

there's interest in this project, WP7 desperately needs a toy to play with!
[Windows Phone 7 Development and Hacking] saywa:
any further development ?

its been long since i heard from here
[Windows Phone 7 Development and Hacking] hatememarkz:
This ish dead but if the devs of this project could use the app that overlays android windows wow
[Windows Phone 7 Development and Hacking] Martin7Pro:
The project is not dead. Unfortunately I stayed only one c/c++ programmer here and I'm too busy now. Progress expected in the summer.
[Windows Phone 7 Development and Hacking] Robbie P:
On the HD2, we have had trouble booting any android kernel later than version 2.6.32 using HaRET and no-one knows why. I have the feeling that more recent kernels are just not recognised by HaRET since they weren't around when the last version of HaRET was made. Is there a way to update HaRET?
[Windows Phone 7 Development and Hacking] saywa:
cant be

i know that HD2 is able to boot honeycomb using haret (i had success years ago, where windows phone was not even released)

(i dont know if you mean the windows phone kernel or the original Windows Mobile one)

[MENTION=218086]Martin[/MENTION]

i hope i can learn C++ in my recruitment fast, i would help you
[Windows Phone 7 Development and Hacking] Martin7Pro:
Links:

Method 1:

http://cegcc.sourceforge.net/docs/faq.html

http://www.affinic.com/?page_id=109

Method 3:

http://geekswithblogs.net/WernerWil...-ce-6-or-7-smart-device-application-with.aspx

http://geekswithblogs.net/WernerWillemsens/archive/2013/09/13/154016.aspx

http://xdaforums.com/showthread.php?t=2422751

or

http://forums.wpcentral.com/windows-phone-8/256799-get-wp-8-sdk-mini-windows-7-a.html

Method 2:

http://forum.pellesc.de/index.php?topic=5243.0

Links about corecon and debugging are here:

http://xdaforums.com/showthread.php?t=1521763&page=8

http://xdaforums.com/showthread.php?t=2058713

I am trying also 4th method - using WEC7 or WEC2013 Platform Builder, but I have not still success with Corecon PB connection. You can download WEC trial from Microsoft pages, or full versions include shared source (we can use it to make missing WP7 APIs) from Dreamspark, if you have valid technical student account. PB is VS2008 (2012/13 for WEC2013) plugin, full Visual Studio license (may be trial too) is needed.

---------- Post added at 09:45 PM ---------- Previous post was at 09:19 PM ----------

Search Adreno 200 x New Androids problems on Qualcomm site. When more people register on

Qualcomm forum and vote for QSD8250 platform Board Support Package, you can use newest Android versions on HD2 in near future. See partial success in https://developer.qualcomm.com/foru...ming-graphics-optimization-adreno/8081?page=3 thread, older Androids drivers are released on https://developer.qualcomm.com/mobi...le-gaming-graphics-adreno/tools-and-resources page, but 4.4 version is released for Adreno 3.xx only.

QSD8250 WCE5/6/WEC7/2013 BSP, if will released, can solve also all our problems here, because with it we can hypothetically make full WCE5.2 system on most our devices, which can run many WM applications, include HaRET probably (WCE6+ changes break down mixed application mode). But, I mean, only biggest Phone manufacturers received it from Qualcomm. Theoretically we can prepare the most of needed drivers and other files from old HD2 WM6 filesystem, but I do not know, how to do it and I have not HD2 device. Is possible to download full HD2 unpacked WM filesystem somewhere? I am too busy to learn some kitchen unpacking technics. But, I am really not sure, if we are able to make CE5 or WM6 bootloader for WP7 devices.
[Windows Phone 7 Development and Hacking] nisu4717:
In hd2,we can dual boot wp7. And android.may be wp7 system from DFT can help.
[Windows Phone 7 Development and Hacking] Martin7Pro:
I mean Windows Embedded Compact 5/6/7/2013 Board Support Package. I could not to port Android BSP to WinCE Platform Builder. If someone could it, can release BSP here.

I tried method 3 with a partial success. I can create and build managed WP7 WPF application in VS2012 Professional and in VS2012 for WP8 too, connect my WP7 device by Zune and debug it. There are big problems on Windows 7 developer machine (WP7.8 update and VS2012 Update 3 must be installed, VS2012 update 4 must not be installed), but it works. I tried to port WM6 SDK with no success. But, next I used Toradex SDK and WEC 2013 Applications Builder and include WP7 AYGShell headers+lib to it. Now I can make simple WP7 native application, which is not working on device, when I deploy it by old wm6 corecon (big thanks to ultrashot). I mean when we will replace some SDK fetures by old WM ones, application will works. But, deploying and debugging is not working. I seen edm3 and conmanclient stays working in the device after managed debugging, VS2012 try deploying, but unsuccesfully. It hangs in "Deploying : Connecting to Windows Embedded Compact Debugger..." message. When I disconnect device (by closing Zune when 127.0.0.1 IP address is used, or by diconnecting WiFi when WiFi connection IP address is used in VS 2012 Debug properties), VS immediatelly stops hanging and says: "Deployment of application to device failed. Software on the host ended the established connection.". It seems VS really want to communicate with device, but conmanclient3.exe needs some more suuport for answering. When we will solute this support, I hope edm3.exe will work on WP7 device also to native debugging, similarly to WEC2013 devices.
[Windows Phone 7 Development and Hacking] Martin7Pro:
HaRET+Pocket CMD Console 1.5 - Big Update

Try newest Console7 1.5 version. Danger HaRET installation is separated from CMD installator. You can use both, or CMD only. New features as Ping, TraceRT, IPConfig, NetStat etc. comming on.
[Windows Phone 7 Development and Hacking] reker:
WM6/WP7 duo-boot is too complicated, they can be merged.

https://www.youtube.com/watch?v=1FNls9Hi6TQ

WM shell(and also other WM core support) running as an app on WP7 by DFT/Cotulla.

Same thing can be done on Zune player(standard CE explorer run on Zune).
[Windows Phone 7 Development and Hacking] Martin7Pro:
Have you acces to any download of WML sources/release? This info has zero benefits without it. I mean Cotulla released only video and Twitter post long time ago. No app, no source.

And, problem of HaRET porting is break-down change between CE5 and CE6. WM is based on CE5, WP on CE7. Simple API includer cannot help us to make HaRET working probably. We can run any parts in kernel mode, but when this parts cause device hard reset, we need firstly good debugger to fix it. I have got succes with kernel tracker and any other CE utilities, but no debugger works for me, especially kernel debugger is not connected by any way.
[Windows Phone 7 Development and Hacking] Luiz Guilherme Pereira:
=/ this project is dead? my dream is run android on my i667 =/
[Windows Phone 7 Development and Hacking] steve_htc_wizard:
No, the project is not dead, one of the devs posted that its not on the previous page.

There's only a couple of people working on this and its a mamouth task getting it to work with wp7, I don't know much about software development but I know that although both windows mobile and windows phone 7 both run in CE they run different versions and that I belive is where the major headache is comming from. It is possible but hard and time consuming and with there only being a couple of devs working on this who have lives to live aside development, they are busy and have little time to work on this. Martin 7 pro does post about haret fairly regularly, we just need to show that there's interest in the project and try to offer any help if we can.

I think there is a degree of determination driving people to make this work over anything else, its got to far for them to give up.
[Windows Phone 7 Development and Hacking] Luiz Guilherme Pereira:
thank you =/ you know what hurt me?? humans do operational systems, humans do modifications to it, i am human, why i can't help with it? knowleadge makes all the diference, if everybody had knowleadge, this world would to be perfect but, so i'm waiting for it, and i can't do nothing to help.

---------- Post added at 11:56 PM ---------- Previous post was at 11:53 PM ----------

but guys, i know this is idiot but, it's not more easy create a downgrade way to any wp7 to run wm6.5 and then use HaRET?
[Windows Phone 7 Development and Hacking] steve_htc_wizard:
That is a entirely different project called "WML" (Windows Mobile Launcher) by the DFT team.

They have managed to get wm 6.1 running on wp7 but to what level of functionality is not known.

They did say that having had success with 6.1 that they were moving onto getting 6.5 running but all seems to have gone quiet for a very long time and knowbody seems to know if anyone is still working in the project.

I would love to get my hands on it as there are so many good apps that never have and never will get onto wp7 any other way.

WM was in my opinion a far far better o.s than WP by a very long way and even the best o.s on any device but was let down by a lack of compatibility with many current web page formats and a lack of new apps to draw new users.

if WM was more compatible and roms were avaliable I would completely replace WP with WM on my 7 pro, as for haret booting android inside wm, it was not great, it had very little functionality and was running android version 1.x and really was just proof of concept rather than anything useable.

I think the way forward is to develop it for the more powerfull WP devices, once they get it working it may even prove better that the wm one.
[Windows Phone 7 Development and Hacking] Luiz Guilherme Pereira:
Pls guys the link to the original thread
[Windows Phone 7 Development and Hacking] steve_htc_wizard:
link to which thread? If you mean windows mobile launcher, I cannot find a original thread anywhere myself, there's loads of gossip topics about it but none seem to be official.

Is that what you meant or do you mean haret, maybe the windows mobile version?
[Windows Phone 7 Development and Hacking] Omnia7xdax:
i can't say what he means,i think this is the original thread,

but what makes me really sad about the topic is:noone of the devs cares anymmore about it,and i hoped for so long,that android on my omnia7 would be possible much earlier(over a year ago now) but im still patient,hoping it could give my samsung a second live... windows phone 7.8 is almost dead,no updates,apps etc anymore,and bazaar down....
[Windows Phone 7 Development and Hacking] Jaxbot:
No dice on this one, either. I'm trying to get crash logs from the device to see if we can get some better pointers.
[Windows Phone 7 Development and Hacking] DarkD1988:
Have deployed it to my HD7 , after opening the .exe the Vibration goes on for 10 sek. and closed the touchXplorer that's all
[Windows Phone 7 Development and Hacking] Ttblondey:
haret-nokmode.exe is not a valid Win32 application.I'm using 64bit win7. with Intrinsic custom rom HD7.
[Windows Phone 7 Development and Hacking] minDark:
@dcordes: It's something wrong with your compiler, try to do static compile or use an older version of mingw gcc. Your recompiled version of haret still depends on libgcc_s_sjlj-1.dll and it's ok about SetKmode. About import table, you can use any Win32 PE file editor to find dependencies, i use CFF File explorer (written by Daniel Pistelli, windows only), this is a good tool because it has Net Framework support also and you can rebuild the import table. About functions ordinals, I do not think is so important.
[Windows Phone 7 Development and Hacking] dcordes:
Many thanks.

Compiled haret.exe from same source as above (same diff) with cegcc-mingw32ce-0.55

Didn't look into import table => Win32 PE file editor yet. Hope there is one for Linux.

Can somebody test the attached exe?

(btw, I would test myself but currently HD2 is my day2day phone)

thx
[Windows Phone 7 Development and Hacking] Jaxbot:
Some progress ;)

(Ignore the background, I use dll import to launch it, just because I have a lot of scratch code on there).

The GUI doesn't load, but the process stays running in the background.