apkreader

1.0.7 • Public • Published

apker

A android platform-tool 'aapt' node wraper

Install

$ npm install -g apkreader

Parse android APK info

apkreader -p <apk-path>
apkreader --path=<apk-path>

Use in code

var parser = require('apkreader');
parser.parse('./***.apk', function (err, info) {
   if(err){
       return console.error(err);
   }
 
   console.log(info);
});

output

{ packageName: 'mobi.thinkchange.android.qrcode',
  packageVersionName: '4.5',
  packageVersionCode: 50,
  applicationLabel: 'QRCode',
  applicationIcon: 'res/drawable-mdpi-v4/ic_launcher.png',
  sdkVersion: 8,
  targetSdkVersion: 21,
  usesPermission:
   [ 'android.permission.ACCESS_NETWORK_STATE',
     'android.permission.ACCESS_WIFI_STATE',
     'android.permission.CAMERA',
     'android.permission.CHANGE_NETWORK_STATE',
     'android.permission.CHANGE_WIFI_STATE',
     'android.permission.FLASHLIGHT',
     'android.permission.INTERNET',
     'android.permission.READ_EXTERNAL_STORAGE',
     'android.permission.READ_PHONE_STATE',
     'android.permission.VIBRATE',
     'android.permission.WAKE_LOCK',
     'android.permission.WRITE_EXTERNAL_STORAGE',
     'android.permission.WRITE_SETTINGS' ],
  usesFeature:
   [ 'android.hardware.camera',
     'android.hardware.camera.autofocus',
     'android.hardware.screen.portrait',
     'android.hardware.touchscreen',
     'android.hardware.wifi' ],
  useImpliedFeature:
   [ 'android.hardware.camera.autofocus,requested android.permission.CAMERA permission',
     'android.hardware.screen.portrait,one or more activities have specified a portrait orientation',
     'android.hardware.touchscreen,assumed you require a touch screen unless explicitly made optional',
     'android.hardware.wifi,requested android.permission.ACCESS_WIFI_STATE, android.permission.CHANGE_WIFI_STATE, or android.permission.CHANGE_WIFI_MULTICAST_STATE permission' ],
  nativecode: '',
  supportsscreens: [ 'large', 'normal', 'small', 'xlarge' ],
  locales: [ '--_--', 'zh_CN' ],
  usesgles: ''
 }


Readme

Keywords

Package Sidebar

Install

npm i apkreader

Weekly Downloads

9

Version

1.0.7

License

ISC

Last publish

Collaborators

  • liudan.ld