Remove duplicated code in NdkLibrary
Remove duplicated code in NdkLibrary

Summary: Swaps custom implementation for standard function.

Test Plan: Verified paths were the same before and after. Ran tests

Reviewed By: Coneko

fbshipit-source-id: fe1003e

ilya-klyuchnikov/buck,Addepar/buck,SeleniumHQ/buck,shs96c/buck,LegNeato/buck,grumpyjames/buck,rmaz/buck,zpao/buck,grumpyjames/buck,dsyang/buck,rmaz/buck,ilya-klyuchnikov/buck,romanoid/buck,brettwooldridge/buck,clonetwin26/buck,rmaz/buck,rmaz/buck,SeleniumHQ/buck,zpao/buck,shs96c/buck,dsyang/buck,grumpyjames/buck,brettwooldridge/buck,shs96c/buck,zpao/buck,shybovycha/buck,rmaz/buck,brettwooldridge/buck,darkforestzero/buck,dsyang/buck,robbertvanginkel/buck,shybovycha/buck,facebook/buck,clonetwin26/buck,rmaz/buck,zhan-xiong/buck,marcinkwiatkowski/buck,clonetwin26/buck,shs96c/buck,darkforestzero/buck,ilya-klyuchnikov/buck,robbertvanginkel/buck,brettwooldridge/buck,dsyang/buck,shs96c/buck,robbertvanginkel/buck,Addepar/buck,robbertvanginkel/buck,brettwooldridge/buck,rmaz/buck,marcinkwiatkowski/buck,marcinkwiatkowski/buck,k21/buck,romanoid/buck,facebook/buck,vschs007/buck,Addepar/buck,darkforestzero/buck,LegNeato/buck,rmaz/buck,darkforestzero/buck,zhan-xiong/buck,shs96c/buck,darkforestzero/buck,JoelMarcey/buck,ilya-klyuchnikov/buck,zhan-xiong/buck,Addepar/buck,dsyang/buck,k21/buck,nguyentruongtho/buck,grumpyjames/buck,clonetwin26/buck,Addepar/buck,SeleniumHQ/buck,JoelMarcey/buck,vschs007/buck,LegNeato/buck,SeleniumHQ/buck,k21/buck,marcinkwiatkowski/buck,robbertvanginkel/buck,nguyentruongtho/buck,clonetwin26/buck,shybovycha/buck,vschs007/buck,ilya-klyuchnikov/buck,k21/buck,SeleniumHQ/buck,ilya-klyuchnikov/buck,zhan-xiong/buck,facebook/buck,zpao/buck,shybovycha/buck,zhan-xiong/buck,k21/buck,marcinkwiatkowski/buck,nguyentruongtho/buck,marcinkwiatkowski/buck,JoelMarcey/buck,darkforestzero/buck,dsyang/buck,grumpyjames/buck,ilya-klyuchnikov/buck,darkforestzero/buck,marcinkwiatkowski/buck,Addepar/buck,marcinkwiatkowski/buck,brettwooldridge/buck,zhan-xiong/buck,grumpyjames/buck,LegNeato/buck,robbertvanginkel/buck,ilya-klyuchnikov/buck,LegNeato/buck,robbertvanginkel/buck,vschs007/buck,dsyang/buck,marcinkwiatkowski/buck,shybovycha/buck,clonetwin26/buck,Addepar/buck,vschs007/buck,shs96c/buck,Addepar/buck,romanoid/buck,shs96c/buck,SeleniumHQ/buck,shs96c/buck,clonetwin26/buck,shs96c/buck,robbertvanginkel/buck,k21/buck,vschs007/buck,romanoid/buck,zhan-xiong/buck,k21/buck,JoelMarcey/buck,darkforestzero/buck,vschs007/buck,k21/buck,LegNeato/buck,shybovycha/buck,JoelMarcey/buck,vschs007/buck,darkforestzero/buck,facebook/buck,brettwooldridge/buck,zhan-xiong/buck,nguyentruongtho/buck,clonetwin26/buck,robbertvanginkel/buck,Addepar/buck,shs96c/buck,facebook/buck,brettwooldridge/buck,JoelMarcey/buck,brettwooldridge/buck,vschs007/buck,ilya-klyuchnikov/buck,nguyentruongtho/buck,grumpyjames/buck,kageiit/buck,rmaz/buck,grumpyjames/buck,SeleniumHQ/buck,vschs007/buck,JoelMarcey/buck,JoelMarcey/buck,robbertvanginkel/buck,robbertvanginkel/buck,facebook/buck,LegNeato/buck,robbertvanginkel/buck,zpao/buck,zpao/buck,zhan-xiong/buck,rmaz/buck,kageiit/buck,romanoid/buck,JoelMarcey/buck,romanoid/buck,dsyang/buck,LegNeato/buck,kageiit/buck,dsyang/buck,rmaz/buck,marcinkwiatkowski/buck,SeleniumHQ/buck,ilya-klyuchnikov/buck,shybovycha/buck,JoelMarcey/buck,nguyentruongtho/buck,facebook/buck,Addepar/buck,shybovycha/buck,marcinkwiatkowski/buck,JoelMarcey/buck,shybovycha/buck,SeleniumHQ/buck,grumpyjames/buck,ilya-klyuchnikov/buck,LegNeato/buck,clonetwin26/buck,brettwooldridge/buck,romanoid/buck,nguyentruongtho/buck,clonetwin26/buck,ilya-klyuchnikov/buck,grumpyjames/buck,k21/buck,romanoid/buck,romanoid/buck,LegNeato/buck,romanoid/buck,marcinkwiatkowski/buck,Addepar/buck,brettwooldridge/buck,shs96c/buck,clonetwin26/buck,dsyang/buck,JoelMarcey/buck,robbertvanginkel/buck,SeleniumHQ/buck,romanoid/buck,SeleniumHQ/buck,shybovycha/buck,vschs007/buck,kageiit/buck,clonetwin26/buck,kageiit/buck,zhan-xiong/buck,kageiit/buck,SeleniumHQ/buck,LegNeato/buck,dsyang/buck,darkforestzero/buck,grumpyjames/buck,kageiit/buck,darkforestzero/buck,rmaz/buck,clonetwin26/buck,zpao/buck,zhan-xiong/buck,shybovycha/buck,grumpyjames/buck,Addepar/buck,ilya-klyuchnikov/buck,brettwooldridge/buck,vschs007/buck,zhan-xiong/buck,rmaz/buck,shybovycha/buck,shs96c/buck,LegNeato/buck,dsyang/buck,darkforestzero/buck,zhan-xiong/buck,brettwooldridge/buck,dsyang/buck,JoelMarcey/buck,k21/buck,romanoid/buck,vschs007/buck,romanoid/buck,marcinkwiatkowski/buck,Addepar/buck,k21/buck,darkforestzero/buck,SeleniumHQ/buck,k21/buck,k21/buck,shybovycha/buck,LegNeato/buck