Default knock on/ doubletap2wake possible on stock ROM?

Title pretty much sums it up, is it possible to implement to G2 knock on / doubletap2wake on the OG with the stock ROM? Currently rooted/ bootloader unlocked, twrp recovery installed.