Skip to content

Instantly share code, notes, and snippets.

Eli Nesterov elinesterov

Block or report user

Report or block elinesterov

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@elinesterov
elinesterov / index.js
Created Jan 18, 2018
test pm dump parsing
View index.js
#!/usr/bin/env node
'use strict';
function getReqPermissions (cmdOutput = null) {
let stdout = cmdOutput;
// not working regex
// let match = new RegExp(/requested permissions:([\s\S]*?)install permissions:/g).exec(stdout);
// working regex
let match = new RegExp(/requested permissions:([\s\S]*?)(install permissions:|User 0)/g).exec(stdout);
@elinesterov
elinesterov / stdout
Created Jan 18, 2018
example of working stdout of adb pm dump
View stdout
DUMP OF SERVICE package:
Activity Resolver Table:
Non-Data Actions:
android.intent.action.MAIN:
1e19e1c com.blah.blah.info/.MainActivity
Registered ContentProviders:
com.blah.blah.info/com.android.tools.ir.server.InstantRunContentProvider:
Provider{e50a25 com.blah.blah.info/com.android.tools.ir.server.InstantRunContentProvider}
@elinesterov
elinesterov / stdout
Created Jan 18, 2018
example of not working stdout of adb pm dump
View stdout
DUMP OF SERVICE package:
Activity Resolver Table:
Non-Data Actions:
android.intent.action.MAIN:
d2d3d5a com.blah.blah.info/.MainActivity
Key Set Manager:
[com.blah.blah.info]
Signing KeySets: 33
You can’t perform that action at this time.