Check process that prevent unmount USB drive

Get PID of process that prevent from unmounting a USB drive

$ fuser -m /var/run/media/mycomputer/mythumbdrive/
/run/media/mycomputer/mythumbdrive: 1583m

See what that process is

$ ps ax|grep 1583
1583  ?      S   0:02  /usr/bin/python /usr/lib/python2.7/site-packages/rabbitvcs/services/checkerservice.pyc
6859  pts/0  S+  0:00  grep --color=auto 1583

Oh, it’s rabbitvcs. Now kill it

$ kill -9 1583

Now I can remove the USB safely

Webview evalJS return null in Android 4.2.2

I have a webview that points to external URL

var webview = Ti.UI.createWebView({
	url: ''

In test.html I have a global variable

<script type="text/javascript">
var myvar = JSON.stringify({ status: true });

On webview onload event, evalJS('myvar') return null, and inside log message got “Timeout waiting to evaluate JS”. After a few days try & error, test and compare, finally I found the culprit is within tiapp.xml file.

My tiapp.xml has a customized <android> section

<android xmlns:android="">
  <manifest android:installLocation="auto" android:versionCode="1" android:versionName="1.0.0">
    <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17"/>
      <activity android:configChanges="keyboardHidden" android:name="org.appcelerator.titanium.TiActivity" android:screenOrientation="portrait"/>
    <service type="standard" url="lib/service/clear.js"/>

It turns out that <uses-sdk> part is the one causes this bug. Removing the line <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17"/> fix this bug and I can retrieve myvar values using evalJS() again.