<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>indiegamr &#187; win8</title>
	<atom:link href="http://indiegamr.com/category/win8/feed/" rel="self" type="application/rss+xml" />
	<link>http://indiegamr.com</link>
	<description>apps, indie &#38; beyond</description>
	<lastBuildDate>Sun, 30 Mar 2014 14:51:19 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>Removing Ads from Windows8 Apps</title>
		<link>http://indiegamr.com/removing-ads-from-windows8-apps/</link>
		<comments>http://indiegamr.com/removing-ads-from-windows8-apps/#comments</comments>
		<pubDate>Mon, 26 Nov 2012 04:45:43 +0000</pubDate>
		<dc:creator><![CDATA[olsn]]></dc:creator>
				<category><![CDATA[html5]]></category>
		<category><![CDATA[win8]]></category>

		<guid isPermaLink="false">http://indiegamr.com/?p=523</guid>
		<description><![CDATA[Two days ago I upgraded to Windows8 (Thank you Microsoft for your MSDNAA Platform!) And to my suprise I actually like it a lot, especially the ease of installing applications through the Windows 8 Store. However what I didn&#8217;t like &#8230; <a href="http://indiegamr.com/removing-ads-from-windows8-apps/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Two days ago I upgraded to Windows8 (Thank you Microsoft for your MSDNAA Platform!)<br />
And to my suprise I actually like it a lot, especially the ease of installing applications through the Windows 8 Store. However what I didn&#8217;t like was that most free apps feature ads now, it&#8217;s pretty much: &#8220;Buy the app or get annoyed by ads!&#8221;<br />
For this article I will be using the Windows8 version of the twitter-client named &#8220;<a href="http://www.metrotwit.com/" target="_blank">metrotwit</a>&#8221; &#8211; sorry to the folks at Pixel Tucker for using your app to illustrate this &#8216;issue&#8217;! But metrotwit is a great, beautiful and slick looking client and I can only recommend using it!<br />
[<strong>Edit:</strong> I do admit that my original intention was to see if I could remove ads, but this article is not supposed to just show how to remove ads, it&#8217;s more like a call for attention that the new system is not secure at all by illustrating the ease of modifying (almost) any app!]</p>
<p>So I did a little searching to see if I could locate the app and modify it, those were my steps how I removed the ads:</p>
<p><a href="http://indiegamr.com/removing-ads-from-windows8-apps/screenshot/" rel="attachment wp-att-528"><img class="aligncenter size-full wp-image-528" title="screenshot" src="http://indiegamr.com/wp-content/uploads/screenshot.jpg" alt="" width="1280" height="800" /></a><br />
<span id="more-523"></span></p>
<h2>Step 1: Searching the Registry</h2>
<hr />
<p><a href="http://indiegamr.com/removing-ads-from-windows8-apps/regedit/" rel="attachment wp-att-525"><img class="aligncenter size-full wp-image-525" title="regedit" src="http://indiegamr.com/wp-content/uploads/regedit.jpg" alt="" width="1140" height="532" /></a></p>
<p>Bingo! &#8211; There is the location of all Windows8 Apps!</p>
<p>&nbsp;</p>
<h2>Step 2: Taking ownership of the app-folder</h2>
<hr />
<p>Unfortunately I am not able to edit stuff in the app-folder right away, so I took ownership of the folder:</p>
<p><a href="http://indiegamr.com/removing-ads-from-windows8-apps/ownership/" rel="attachment wp-att-527"><img class="aligncenter size-full wp-image-527" title="ownership" src="http://indiegamr.com/wp-content/uploads/ownership.jpg" alt="" width="1073" height="527" /></a></p>
<p>&nbsp;</p>
<h2>Step 3: Locating the files to modify</h2>
<hr />
<p>Within the folder of the metrotwit app there were quite a few files and folders, one that caught my attention was a folder called &#8220;views&#8221;. Inside the views-folder were a bunch of XAML-files, including one called &#8220;MainPage.xaml&#8221;.</p>
<p>&nbsp;</p>
<h2>Step 4: Editing the file</h2>
<hr />
<p>I opened MainPage.xaml and search for the term &#8220;Upgrade to Pro&#8221;, this was the label right below the ad. After that I located the visibility-property for the ad-container I just changed the binding to the variable &#8220;VerifiedProUser&#8221; &#8211; which I was not! <img src="http://indiegamr.com/wp-includes/images/smilies/icon_smile.gif" alt=":-)" class="wp-smiley" /> (see screenshot below) &#8211; the ads were gone! Other ways to removed the ads that have proven to work:</p>
<ul>
<li>Set the width&amp;height of the ad-container to 0px 0px</li>
<li>change the dom-location of the container so the element is blocked by other elements</li>
</ul>
<p><strong>But there are certain restrictions when editing those files, that I found out about:</strong></p>
<ul>
<li><del><strong>The filesize has to stay the same</strong>, since there is a checksum of each file listed in the &#8216;AppxBlockMap.xml&#8217; that is checked every time the application is launched. I was not able to regenerate the checksum, it uses the SHA256 algorithm but apparently with a salt to it, which was too much of a hassle for me to figure out<br />
</del><strong>UPDATE: </strong>I was messing around with some apps a little more today and just found out that you can remove just anything from the &#8216;AppxBlockMap.xml&#8217; or delete this xml-file entirely =&gt; If no &#8216;AppxBlockMap.xml&#8217; is present, no files will be checked for their checksum, which means that you can now freely add or remove code from any files without worrying about the filesize: <em>Well done Microsoft!</em></li>
<li>If the XAML-Object contains an &#8216;<strong>x:Name</strong>&#8216; it <strong>cannot be commented out</strong>, this will cause the app to throw an error and not launch</li>
</ul>
<p><a href="http://indiegamr.com/removing-ads-from-windows8-apps/code_01/" rel="attachment wp-att-529"><img title="code_01" src="http://indiegamr.com/wp-content/uploads/code_01.jpg" alt="" width="671" height="623" /></a></p>
<p>The final step was saving the file and starting the application, and there you go: The ads were not visible any more!</p>
<p>I have tested this with several apps and with every app it was a fairly easy goal to accomplish.<br />
What can developers do to prevent this? I&#8217;d say the question is: What should microsoft do to prevent this?<br />
However, as a developer I would consider adding certain methods that check the visibility and location of an ad every couple seconds &#8211; I have not yet looked into modifying app-logic but I&#8217;d imagine this is not as easy as modifying a simple XAML-view.<br />
Or developers can use C++ as this would require a disassambler to get to the source and even then it would be hard to modify stuff&#8230;or at least a lot harder than with XAML files.</p>
<p>Thoughts on this are welcome!</p>
<p><strong>Update #2</strong>: Obviously there is <a href="http://www.myce.com/news/tool-converts-windows-8-store-trial-apps-to-full-paid-version-for-free-64976/" target="_blank">a tool available</a> that let&#8217;s you upgrade trial-versions of app to full-versions for free with on click of a button. I have not tested that tool yet nor would I encourage anyone to use it. But there is no doubt that many users will do so as it gains popularity(can you blame them?). But Microsoft should act quickly.</p>
<p><strong>Update #3: </strong>As I got some feedback from people saying &#8220;it&#8217;s not nice to rip off developers [ect&#8230;]&#8221; &#8211; I do agree! But the point here goes way beyond that: If I am able to modify an app within 15 minutes &#8211; then a virus will be able to do the same. Imagine a virus adding some lines of code to the application logic and the next time I use the application all my data(that is accessible by the application) could be sent to an evil server &#8211; just to give one brief example.</p>
]]></content:encoded>
			<wfw:commentRss>http://indiegamr.com/removing-ads-from-windows8-apps/feed/</wfw:commentRss>
		<slash:comments>39</slash:comments>
		</item>
	</channel>
</rss>
