Default [Q] advanced reboot for htc one xl 4.2.2 sense 5

so I would like to add the advanced reboot feature to my ROM. but I dont know what apk to edit and what parts need to be edited. the ROM is for the HTC one XL. The rom is a sense 5 android 4.2.2 ROM. how can I do this.
Phonegeekjr

HTC ONE XL
Bootloader unlocked
S Off
HBOOT 2.18
PhoenixROM 1.0.5 but varies


Sprint HTC ONE
Bootloader unlocked
S Off
HBOOT 1.56
Bad Boyz Sense 6 ROM 1.1