code: int add(
        Asset asset, Asset idmapAsset, final int cookie, boolean copyData,
        boolean appAsLib, boolean isSystemAsset) {
      final byte[] data = asset.getBuffer(true);
      if (data == NULL) {
        ALOGW("Unable to get buffer of resource asset file");
        return UNKNOWN_ERROR;
      }
  
      int idmapSize = 0;
      Object idmapData = NULL;
      if (idmapAsset != NULL) {
        idmapData = idmapAsset.getBuffer(true);
        if (idmapData == NULL) {
          ALOGW("Unable to get buffer of idmap asset file");
          return UNKNOWN_ERROR;
        }
        idmapSize = (int) idmapAsset.getLength();
      }
  
      return addInternal(data, (int) asset.getLength(),
          idmapData, idmapSize, appAsLib, cookie, copyData, isSystemAsset);
    }
docs: bool appAsLib=false, bool isSystemAsset=false);