Skip to content

Instantly share code, notes, and snippets.

@173210
Last active December 19, 2015 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 173210/5956515 to your computer and use it in GitHub Desktop.
Save 173210/5956515 to your computer and use it in GitHub Desktop.
const/4 v3, 0x1
const/4 v2, 0x0
new-instance v0, Ljava/io/File;
const-string v1, "/data/local.prop"
invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V
invoke-virtual {v0}, Ljava/io/File;->createNewFile()Z
invoke-virtual {v0, v3, v2}, Ljava/io/File;->setWritable(ZZ)Z
invoke-virtual {v0, v3, v2}, Ljava/io/File;->setReadable(ZZ)Z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment