class AppMetadataBackupWriter {

    public void backupApk(PackageInfo packageInfo) {
        // TODO: handle backing up split APKs
        String appSourceDir = packageInfo.applicationInfo.getBaseCodePath();
        String apkDir = new File(appSourceDir).getParent();
        FullBackup.backupToTar(
                packageInfo.packageName,
                FullBackup.APK_TREE_TOKEN,
                /* linkDomain */ null,
                apkDir,
                appSourceDir,
                mOutput);
    }

    public  AppMetadataBackupWriter(FullBackupDataOutput output, PackageManager packageManager);

}