public void addTypeName(int id, String name) {
            while (typeNames.size() <= id) {
                typeNames.add(null);
            }

            StringItem item = typeNames.get(id);
            if (item == null) {
                typeNames.set(id, new StringItem(name));
            } else {
                throw new RuntimeException();
            }
        }
Write pkgs to an arsc file

@author bob
@see ArscParser
android/third_party/apkbuilder/src/main/java/pxb/android/arsc/ArscWriter.java