Back end on node.js.

Fill the .apk files on the server, and then the mobile client then gets a list of available applications.

Hands pour pictures separately uncomfortable.

Is there a way to pull an icon out of a file using node.js?

Clarification:
I tried to disassemble the .apk with my hands and look for the icon, in order to understand the system by which the path is determined by which the icon lies.
I could not understand this system. Only that the icon most often lies in the folder that contains the substring drawable-hdpi, which lies in the res folder. But not necessarily. It happens there is no file with a name similar to the icon.

Rasparsil manifesto and found in it the following record:

application: { theme: 'resourceId:0x7f110007', label: 'resourceId:0x7f100020', icon: 'resourceId:0x7f0e0000', много еще чего... } 

What is 0x7f0e0000? Is it possible to determine the path to the icon from this record?

  • one
    The .apk file is a zip archive, try to start from this. Unpack zip archives node can out of the box. You will only have to read the path to the icon from the settings. - ReklatsMasters
  • one
    You need to programmatically call aapt - Nick
  • @Nick clear, thanks! Can you tell me which command in this utility should be entered to get the icon? I'm not an Android developer at all - muturgan

0