<?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>The blog of Karl Majer... &#187; Hacking</title>
	<atom:link href="http://www.karlmajer.com/category/play/hacking/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.karlmajer.com</link>
	<description>Life on my own terms...</description>
	<lastBuildDate>Mon, 28 Mar 2011 17:04:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Quick root on Nexus S</title>
		<link>http://www.karlmajer.com/2011/01/29/quick-root-on-nexus-s/</link>
		<comments>http://www.karlmajer.com/2011/01/29/quick-root-on-nexus-s/#comments</comments>
		<pubDate>Sat, 29 Jan 2011 18:53:35 +0000</pubDate>
		<dc:creator>Karl Majer</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Mobile Devices]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[nexusS]]></category>

		<guid isPermaLink="false">http://www.karlmajer.com/?p=151</guid>
		<description><![CDATA[Capturing some data here so that its not lost when I go looking for it again. I discovered quite by accident that the Clockwork recovery image allows adb to connect to it while sitting at the recovery menu. The adb shell is a root shell. You can use clockwork to mount whatever filesystems you may [...]]]></description>
			<content:encoded><![CDATA[<p>Capturing some data here so that its not lost when I go looking for it again.</p>
<p>I discovered quite by accident that the Clockwork recovery image allows adb to connect to it while sitting at the recovery menu. The adb shell is a root shell. You can use clockwork to mount whatever filesystems you may need to work on. This means that you can take any of the su binaries floating around the net, or even hack a bit and then build the su thats in the Android tree,  and dump it in /system/bin/su while in the recovery menu and then chmod it 4755 to suid it root.</p>
<p>So basically:</p>
<ul>
<li>boot nexus S into fastboot with vol up and  power</li>
<li>pick recovery off the menu</li>
<li>from the recovery menu:
<ul>
<li>mount /system partition</li>
</ul>
</li>
<li>from adb:
<ul>
<li>adb push /path/to/your/su/binary  /system/bin/su</li>
<li>adb shell
<ul>
<li>chmod 4755 /system/bin/su</li>
</ul>
</li>
</ul>
</li>
<li>from the recovery menu:
<ul>
<li>reboot device</li>
</ul>
</li>
</ul>
<p>When the handset comes back up, adb in as normal, and then issue an su command and you should be root.</p>
<p>&gt;&gt;&gt;Karl</p>
]]></content:encoded>
			<wfw:commentRss>http://www.karlmajer.com/2011/01/29/quick-root-on-nexus-s/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ADB on VMWare Fusion &#124;&#124; CentOS</title>
		<link>http://www.karlmajer.com/2011/01/11/adb-on-vmware-fusion-centos/</link>
		<comments>http://www.karlmajer.com/2011/01/11/adb-on-vmware-fusion-centos/#comments</comments>
		<pubDate>Tue, 11 Jan 2011 15:24:42 +0000</pubDate>
		<dc:creator>Karl Majer</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Hardware Hacking]]></category>

		<guid isPermaLink="false">http://www.karlmajer.com/?p=147</guid>
		<description><![CDATA[A note to myself really, I was trying to get ADB to run on both my CentOS 5.5 machine and a VMWare Fusion Virtual Machine running Ubunto. Both flavors of linux protested my using adb with something along the lines of: majer@ubuntu:~/android$ sudo ~/bin/adb devices List of devices attached ????????????    no permissions   After a [...]]]></description>
			<content:encoded><![CDATA[<p>A note to myself really, I was trying to get ADB to run on both my CentOS 5.5 machine and a VMWare Fusion Virtual Machine running Ubunto. Both flavors of linux protested my using adb with something along the lines of:</p>
<blockquote>
<pre>majer@ubuntu:~/android$ sudo ~/bin/adb devices</pre>
<pre>List of devices attached ????????????    no permissions</pre>
<pre> </pre>
</blockquote>
<p>After a considerable amount of digging I found the one line change that needed to be made on both OSes. Add the following to /etc/udev/rules.d/51-android.rules:</p>
<blockquote>
<pre>SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
</pre>
</blockquote>
<p>And then restart the adb services with a:</p>
<blockquote>
<pre>[majer@ubuntu:~/android/] sudo ~/bin/adb kill-server</pre>
<pre>[majer@ubuntu:~/android/] sudo ~/bin/adb start-server
</pre>
</blockquote>
<p>The adb command will work as expected now.</p>
<p>&gt;&gt;&gt; Karl</p>
]]></content:encoded>
			<wfw:commentRss>http://www.karlmajer.com/2011/01/11/adb-on-vmware-fusion-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Chrome Incognito default startup on OSX</title>
		<link>http://www.karlmajer.com/2010/07/22/google-chrome-incognito-default-startup-on-osx/</link>
		<comments>http://www.karlmajer.com/2010/07/22/google-chrome-incognito-default-startup-on-osx/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 14:52:37 +0000</pubDate>
		<dc:creator>Karl Majer</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Play]]></category>

		<guid isPermaLink="false">http://www.karlmajer.com/?p=138</guid>
		<description><![CDATA[I&#8217;ve recently started using Google Chrome, and while my browsing habits of keeping 30+ tabs open doesn&#8217;t mesh well with how Chrome uses memory, the Incognito mode is fantastic for going to friendly sites like FaceBook that share your login cookies/credentials with an ever growing number of sites on the internet. The following hack will [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently started using Google Chrome, and while my browsing habits of keeping 30+ tabs open doesn&#8217;t mesh well with how Chrome uses memory, the Incognito mode is fantastic for going to friendly sites like FaceBook that share your login cookies/credentials with an ever growing number of sites on the internet. </p>
<p>The following hack will start Chrome up in Incognito mode by default. If you want a &#8220;normal&#8221; browser, just open a new browser window. Note, this is a &#8216;I&#8217;m not afraid of the shell prompt, I like voiding warranties, and if my computer explodes I&#8217;m fine with it&#8217; sort of modification.</p>
<p>In windows land you can do this by right clicking on the desktop icon and editing the properties to add a &#8216;-incognito&#8217; at the end of the line. Things don&#8217;t quite work the same way in OSX. </p>
<p>Without further delay:<br />
<code><br />
bash-3.2$ cd /Applications/Google\ Chrome.app/Contents/MacOS/<br />
bash-3.2$ mv Google\ Chrome Google\ Chrome.real<br />
bash-3.2$ echo '#!/bin/sh' > Google\ Chrome<br />
bash-3.2$ echo 'exec "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome.real" -incognito' >> Google\ Chrome<br />
bash-3.2$ chmod 775 Google\ Chrome<br />
</code></p>
<p>Click on the normal icon, if the app starts up it should be in Incognito mode. If it doesn&#8217;t start, fire up the console app and look at the last couple of entries, you may have a typo. If all else fails you can fall back with this:</p>
<p><code><br />
bash-3.2$ mv Google\ Chrome.real Google\ Chrome<br />
</code></p>
<p>So what does this do? OSX .app bundles contain all the resources for the application. The binary is usually hidden in the MacOS directory. We&#8217;ve just created a shell wrapper for that which calls the real binary and passes it the -incognito switch, just like they do on Windows.</p>
<p>Like I said earlier, you have been warned. I&#8217;ve been using this for a while now without any problems but my setup is likely different than yours, and this definitely would not fall under &#8220;normal&#8221; usage for Chrome. Also, note that you will need to do this anytime you update your Chrome installation. </p>
<p>Good luck,</p>
<p>>>> Karl</p>
]]></content:encoded>
			<wfw:commentRss>http://www.karlmajer.com/2010/07/22/google-chrome-incognito-default-startup-on-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

