Skip to content

Instantly share code, notes, and snippets.

@jevakallio
jevakallio / requirejs-nested-require-calls.js
Last active November 4, 2022 17:54
A sample showcasing some of the things RequireJS can and can not do.
//let's say you have these three AMD modules:
//testmodule1.js
define(function() {
var val = { iAm:'testmodule1.js' };
console.log(val);
return val;
});
//testmodule2.js
@jevakallio
jevakallio / readme.md
Last active April 22, 2024 15:51
`adb pull` from app data directory without root access

TL;DR;

com.package.name is your app identifier, and the file path is relative to the app user's home directory, e.g. '/data/user/0/com.package.name.

adb shell run-as com.package.name cp relative/path/file.ext /sdcard
adb pull /sdcard/file.ext

See long explanation below.