Huynh Nhuc's theory was right, we can simply prove it by temporary turning off R8/ProGuard by the following.
// Disable code shrinking and obfuscation minifyEnabled false shrinkResources false