I've been using the fantastic mobile storage library Lawnchair in a recent Android project and got an "illegal access" error when running on a device (Samsung Galaxy S), which is caused by a JSON.parse null paramter.
To prevent this, add json2.js to your project:
<script>window.JSON = null;</script>
<script src="assets/scripts/json2.js"></script>