<?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>chromium &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<atom:link href="https://blog.sephiroth.it/tag/chromium/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.sephiroth.it</link>
	<description>programmer by pure chance</description>
	<lastBuildDate>Sat, 12 Apr 2014 04:24:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://blog.sephiroth.it/wp-content/uploads/2019/03/cropped-sepy-big-32x32.png</url>
	<title>chromium &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<link>https://blog.sephiroth.it</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>java.lang.UnsatisfiedLinkError workaround</title>
		<link>https://blog.sephiroth.it/2014/04/12/java-lang-unsatisfiedlinkerror-workaround/</link>
					<comments>https://blog.sephiroth.it/2014/04/12/java-lang-unsatisfiedlinkerror-workaround/#comments</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Sat, 12 Apr 2014 04:21:52 +0000</pubDate>
				<category><![CDATA[android]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[chromium]]></category>
		<category><![CDATA[packagemanager]]></category>
		<category><![CDATA[UnsatisfiedLinkError]]></category>
		<category><![CDATA[workaround]]></category>
		<category><![CDATA[xperia]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=1668</guid>

					<description><![CDATA[If you ever worked with native shared libraries in Android you&#8217;ve probably already faced the &#8220;java.lang.UnsatisfiedLinkError&#8221; java exception which randomly seems to happen on certain devices ( actually it&#8217;s happening on xperia phones mostly, based on my reports ). There are a bunch of bug reports in the android project like this: https://code.google.com/p/android/issues/detail?id=35962 or this &#8230; <a href="https://blog.sephiroth.it/2014/04/12/java-lang-unsatisfiedlinkerror-workaround/" class="more-link">Continue reading <span class="screen-reader-text">java.lang.UnsatisfiedLinkError workaround</span></a>]]></description>
										<content:encoded><![CDATA[<p>If you ever worked with native shared libraries in Android you&#8217;ve probably already faced the <strong>&#8220;java.lang.UnsatisfiedLinkError&#8221;</strong> java exception which randomly seems to happen on certain devices ( actually it&#8217;s happening on <strong>xperia</strong> phones mostly, based on my reports ).<br />
There are a bunch of bug reports in the android project like this: <a href="https://code.google.com/p/android/issues/detail?id=35962" target="_blank">https://code.google.com/p/android/issues/detail?id=35962</a> or this <a href="https://code.google.com/p/android/issues/detail?id=64111" target="_blank">https://code.google.com/p/android/issues/detail?id=64111</a>.<br />
The problem is that Google basically marked all of them as &#8220;resolved&#8221;, even if developers are still complaining about it.</p>
<p><span id="more-1668"></span></p>
<p>The fun thing is that it seems that they are aware of the problem and in fact they&#8217;re trying to use a workaround internally in the chromium source code.<br />
For instance, this is the first workaround I found:<br />
<a href="https://codereview.chromium.org/180273005/patch/80001/90003" target="_blank">https://codereview.chromium.org/180273005/patch/80001/90003</a></p>
<p>which is basically looking into the <em>&#8220;/data/app-lib/{packagename}-1/&#8221;</em> folder for the missing libraries.<br />
And in fact, inside the comments of that file you can read this:</p>
<blockquote><p><cite>Native library directory in an updated package is a symbolic link<br />
to a directory in /data/app-lib/, for example:<br />
/data/data/com.android.chrome/lib -&gt; /data/app-lib/com.android.chrome[-1].<br />
When updating the application, the PackageManager create a new directory,<br />
e.g., /data/app-lib/com.android.chrome-2, and remove the old symlink and<br />
recreate one to the new directory. However, on some devices (e.g. Sony Xperia),<br />
the old directory was deleted, but deleting the old symlink failed,<br />
and that makes system loading library from the /system/lib directory.</cite></p></blockquote>
<p>Then I noticed another approach which is probably better: <a href="http://goo.gl/cbCAmC">http://goo.gl/cbCAmC</a></p>
<p>which is basically doing what the PackageManager was supposed to do, unzip the shared libraries from the apk file to the &#8220;lib&#8221; dir of the application itself.</p>
<p>Btw, I&#8217;m gonna try both of them and verify if they actually work so I can finally stop seeing that annoying bug in the Google Play Console!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2014/04/12/java-lang-unsatisfiedlinkerror-workaround/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
	</channel>
</rss>
