Note:I'm not responsible if your device break do it at your own risk.
First of all you must have rooted phone and have custom recovery like clockwork mod and twrp. .
1.install xposed installer apk (Google it)
2.download framework zip file
3. Go to recovery mode(turn off your phone then press and hold power,volume up and home button at same time)
4.click install zip and go to the directory where you have downloaded framework zip file
5.then install it and reboot.
Required android version. 5.0.x (touch wiz based rom only)
Sent from my SM-A9100 using Tapatalk