Successfully Compiled with r12b. APK Editor: https://play.google.com/store/apps/details?id=com.gmail.heagoo.apkeditor
Modification includes:
diff ./base/tools/aapt/Resource.cpp aapt/jni/Resource.cpp 318a319
|| (*str >= 'A' && *str <= 'Z')
319a321
|| *str == '$'
fprintf(stderr, "%s: Invalid file name: must contain only [a-zA-Z0-9_.]\n",
/*sp<AaptFile> outManifestFile = new AaptFile(manifestFile->getSourceFile(),
}*/
diff ./base/tools/aapt/StringPool.cpp aapt/jni/StringPool.cpp 351a352
int num_remove = 0;
//newEntryStyleArray.removeAt(i); num_remove += 1; } if (num_remove > 0) { newEntryStyleArray.removeItemsAt(newEntryStyleArray.size() - num_remove, num_remove);
diff ./base/tools/aapt/ResourceTable.cpp aapt/jni/ResourceTable.cpp
//LOG_ALWAYS_FATAL_IF(ti == 0 && attr != t, // "First type is not attr!");
4037a4038
if (e == nullptr) { continue; }
//origOrder.removeAt(i); //N--; origOrder.editItemAt(i) = nullptr;