I'm trying to see how the video changes the PID. I think he found out with his ID and secret ID and what frame number made a shiny, 1026, for his starting seed. I think he divides 1026 by 12, remainder of 6, and gets 85. He hits the 6th app 85 times, goes to the 16th app, flips it the remainder - 1 (5 times) and then goes to the next app. Somehow this adjusts it to the correct PID.
This is just a guess/hypothesis.