extract payload support by a3955269

Merging a3955269 changes (with his acknowledgment)
https://bitbucket.org/a3955269/galaxys2_kernel_repack/overview