<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/rss-style.xsl" type="text/xsl"?>
<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>mtp &#8211; Terence Eden’s Blog</title>
	<atom:link href="https://shkspr.mobi/blog/tag/mtp/feed/" rel="self" type="application/rss+xml" />
	<link>https://shkspr.mobi/blog</link>
	<description>Regular nonsense about tech and its effects 🙃</description>
	<lastBuildDate>Tue, 03 Jan 2012 15:45:42 +0000</lastBuildDate>
	<language>en-GB</language>
	<copyright>© Terence Eden. 🄯 CC BY-SA. See https://shkspr.mobi/blog/copyright-and-copyleft/</copyright>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>

<image>
	<url>https://shkspr.mobi/blog/wp-content/uploads/2023/07/cropped-avatar-32x32.jpeg</url>
	<title>mtp &#8211; Terence Eden’s Blog</title>
	<link>https://shkspr.mobi/blog</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title><![CDATA[Connecting Samsung ICS to Ubuntu using MTP]]></title>
		<link>https://shkspr.mobi/blog/2012/01/connecting-samsung-ics-to-ubuntu-using-mtp/</link>
					<comments>https://shkspr.mobi/blog/2012/01/connecting-samsung-ics-to-ubuntu-using-mtp/#comments</comments>
				<dc:creator><![CDATA[Terence Eden]]></dc:creator>
		<pubDate>Tue, 03 Jan 2012 15:45:42 +0000</pubDate>
		<category><![CDATA[android]]></category><category><![CDATA[HowTo]]></category><category><![CDATA[ics]]></category><category><![CDATA[linux]]></category><category><![CDATA[mtp]]></category><category><![CDATA[ubuntu]]></category>		<guid isPermaLink="false">http://shkspr.mobi/blog/?p=5132</guid>

					<description><![CDATA[(These notes are mostly for my own benefit).  Android is moving away from USB Mass Storage.  You will no longer be able to plug in a USB cable and have your Android show up as a USB disk.  There are some good technical reasons for this, but it is a pain if you want to copy some files to your phone.  The new system - MTP - isn&#039;t automagically detected in Ubuntu.  This is something which is likely…]]></description>
										<content:encoded>&lt;p&gt;(These notes are mostly for my own benefit).&lt;/p&gt;

&lt;p&gt;Android is moving away from USB Mass Storage.  You will no longer be able to plug in a USB cable and have your Android show up as a USB disk.  There are some &lt;a href="http://www.engadget.com/2011/11/21/ice-cream-sandwich-supports-usb-mass-storage-after-all-galaxy-n/"&gt;good technical reasons&lt;/a&gt; for this, but it is a pain if you want to copy some files to your phone.  The new system - MTP - isn't automagically detected in Ubuntu.  This is something which is likely to be fixed in later versions of Ubuntu - but for now you'll have to hack around it.&lt;/p&gt;

&lt;p&gt;The crazy cats at &lt;a href="http://www.omgubuntu.co.uk/2011/12/how-to-connect-your-android-ice-cream-sandwich-phone-to-ubuntu-for-file-access/"&gt;omgUbuntu have a tutorial&lt;/a&gt; which I have adapted for the Samasung Galaxy S (running &lt;a href="http://forum.xda-developers.com/showthread.php?t=1363593"&gt;ICS from teamhacksung&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;First, install the MTP tools.&lt;/p&gt;

&lt;pre&gt;sudo apt-get install mtp-tools mtpfs&lt;/pre&gt;

&lt;p&gt;Connect the phone to the computer using USB.&lt;/p&gt;

&lt;p&gt;To check that MTP is installed and working, run the command&lt;/p&gt;

&lt;pre&gt;mtp-detect&lt;/pre&gt;

&lt;p&gt;You should see a spool of text as MTP detects the phone.&lt;/p&gt;

&lt;p&gt;To create the rules which allow Ubuntu to detect the phone, create a new rule file like so:&lt;/p&gt;

&lt;pre&gt;sudo nano /etc/udev/rules.d/51-android.rules&lt;/pre&gt;

&lt;p&gt;Add in this line of text&lt;/p&gt;

&lt;pre&gt;SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", MODE="0666"&lt;/pre&gt;

&lt;p&gt;If you're using a different device, run this command to get the correct idVendor and idProduct:&lt;/p&gt;

&lt;pre&gt;mtp-detect | grep idVendor
mtp-detect | grep idProduct&lt;/pre&gt;

&lt;p&gt;We'll need to restart udev so it can pick up the new rule.&lt;/p&gt;

&lt;pre&gt;sudo service udev restart&lt;/pre&gt;

&lt;p&gt;Then create a directory in your filesystem which you can use to access your phone.&lt;/p&gt;

&lt;pre&gt;sudo mkdir /media/GalaxyS
sudo chmod a+rwx /media/GalaxyS
&lt;/pre&gt;

&lt;p&gt;Now we need to add ourselves to fuse.&lt;/p&gt;

&lt;pre&gt;sudo adduser YOURUSERNAME fuse
sudo nano /etc/fuse.conf&lt;/pre&gt;

&lt;p&gt;The last line probably reads&lt;/p&gt;

&lt;pre&gt;#user_allow_other&lt;/pre&gt;

&lt;p&gt;Remove the "#" so you're left with:&lt;/p&gt;

&lt;pre&gt;user_allow_other&lt;/pre&gt;

&lt;p&gt;Save the file.&lt;/p&gt;

&lt;p&gt;We're going to create two commands "android-connect" and "android-disconnect".  When run, these will allow you to connect to your phone, then safely disconnect.&lt;/p&gt;

&lt;pre&gt;echo "alias android-connect="mtpfs -o allow_other /media/GalaxyS"" &amp;gt;&amp;gt; ~/.bashrc
echo "alias android-disconnect="fusermount -u /media/GalaxyS"" &amp;gt;&amp;gt; ~/.bashrc
source ~/.bashrc
&lt;/pre&gt;

&lt;p&gt;Restart the computer.  Make sure the phone is connected via USB.  Open a terminal and run&lt;/p&gt;

&lt;pre&gt;android-connect&lt;/pre&gt;

&lt;p&gt;Open your file manager and go to "/media/GalaxyS"
&lt;img src="https://shkspr.mobi/blog/wp-content/uploads/2012/01/ICS-MTP.png" alt="ICS MTP" title="ICS MTP" width="190" height="413" class="aligncenter size-full wp-image-5136"&gt;&lt;/p&gt;

&lt;p&gt;Once you're done, disconnect the device by running&lt;/p&gt;

&lt;pre&gt;android-disconnect&lt;/pre&gt;
&lt;img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=5132&amp;amp;HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager"&gt;</content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2012/01/connecting-samsung-ics-to-ubuntu-using-mtp/feed/</wfw:commentRss>
			<slash:comments>15</slash:comments>
		
		
			</item>
	</channel>
</rss>
