Comparing the output of aapt and the managed resource parser with https://github.com/toggl/mobileapp I noticed a difference in the way IDs are assigned:

Basically the gist of it seems to be that aapt assigns its IDs taking case into order (but then outputs it in a case insensitive-fashion).