Zero-injection, read-only Android ART heap inspector. Query live objects from TypeScript without Frida or Xposed.
npm install artseek
import { createArtseekClient } from 'artseek'; const heap = createArtseekClient({ pkg: 'com.example.app' }); // View layer const [title, meta] = await Promise.all([ heap.currentActivity.mTitle, heap.view({ text: 'Submit' }).$viewMeta(), ]); // Heap layer: every live instance of a class (dot name, JNI descriptor, or `*` glob) const sessions = await heap.scan({ type: '*Session', limit: 32 }); const drafts = await heap.scan({ type: '*OrderModel', includeSubclasses: true }) .$where({ status: 'draft' }) .$select({ id: 'orderId', total: 'priceInfo.total' }); // String layer: the flag a UI only validates after the fact, and who holds it const { hits } = await heap.strsearch({ needle: 'flag{' }); const owners = await heap.object(hits[0].addr).$whoRefs(); await heap.close();
npx artseek instances '*Session' --pkg com.example.app --pretty npx artseek query '{"root":{"kind":"scan","type":"*Session"},"steps":[{"op":"ref"}],"collection":true}' --pkg com.example.app
see docs/cli.md.