资料可以参考一下https://wenku.baidu.com/view/2108782add36a32d737581c6.html
代码是没有开源的
https://blog.csdn.net/jiangxiabeijing/article/details/6828997
参考一下这个 有代码