An Australian coder has posted explanations and videos showing a way to access some private, unmanaged dynamic link libraries on his Samsung Windows Phone 7 handset, and the registry and file system. The announcement is sparking widespread speculation that Microsoft’s mobile OS will soon be “jailbroken,” allowing users to load applications of their choice, outside of those officially approved on Microsoft’s Zune Marketplace.
Many observers expect a Windows Phone jailbreak is inevitable, but it apparently won’t be as result of this exploit.
The developer, a Windows programmer named Chris Walsh, posted last week that he had found a way for his Windows Phone to use private DLLs on his Samsung phone. The DLLs were created by Samsung, and are unmanaged, meaning they run outside the virtual machine that is required for all third-party WP7 apps and games. Walsh built his exploit on a discovery initially made by a coder with the handle hounsell at XDADevelopers.com.
The significance of Walsh’s achievement is open to debate. Long Zheng, a programmer who runs the istartedsomething.com blog, asserts that Walsh “was able to successfully code and deploy a valid WP7 application using the developer sideloading process to a Windows Phone 7 device that inherited the ability to run unmanaged code
.” Zheng appears to mean that it was Walsh’s “app” that inherits this ability.
“What’s contained in [Walsh’s] blog post is very much an example of a developer accessing a private API,” says Windows author and programmer Kevin Hoffman, whose day job is chief systems architect at Oak Leaf Waste Management, East Hartford, Conn. “He’s found some ‘undocumented’ conventions that Samsung used in order to access low-level security APIs not found in the version of the .NET Framework (Silverlight) running on that device. This isn’t jailbreaking — it’s just connecting OS-level features ([in this case,] COM-based DLLs) with Silverlight-based apps.”
About the only thing everyone agrees on is that any Windows Phone 7 application that tries to use Walsh’s technique will never make it through Microsoft’s Marketplace certification process, precisely because the app is trying to do something that’s forbidden.
It’s also not clear that Walsh has gained anything like “root access” (and he apparently has not claimed this), meaning completely unrestricted access to the OS. In any case, Hoffman argues, you don’t need root access to jailbreak the phone. In fact, the reverse is the likely scenario.
Jailbreaking is like “sneaking through the door into someone’s data center,” Hoffman says. “Once inside, there are typically less protections than there are outside, which allows you to then do other things which will ultimately grant you root access or, as in the case of a WP7 phone, perform activities as though you were a system administrator.”
Both jailbreaking and root access for Windows Phone 7 are inevitable, Hoffman predicts.
Asked to comment on Walsh’s exploit, Microsoft issued the following statement: “We anticipated that people would attempt to unlock the phones and explore the underlying operating system. We encourage people to use their Windows Phone as supplied by the manufacturer to ensure the best possible user experience. Attempting to unlock a device could void the warranty, disable phone functionality, interrupt access to Windows Phone 7 services or render the phone permanently unusable.”