Pin 7 (exterior lights, like puddle, rocker, curb, bed) provides power when-
A door is open
Bed mounted light switch is pushed (for stock LED bed light)
Cargo light switch is pushed (on headlight switch)
Unlock button used on remote entry
Pin 17 (interior lights, like footwell) provides power...