refine exopackage root logic
refine exopackage root logic

Summary:
Fix exopackage installer when adbd is root

See https://www.facebook.com/dan.colascione/posts/10101808557593038 for background

Test Plan: buck install fb4a on device for which 'adb shell' provides a root prompt

pwz3n0/buck,OkBuilds/buck,illicitonion/buck,davido/buck,bocon13/buck,Heart2009/buck,rowillia/buck,saleeh93/buck-cutom,dpursehouse/buck,vine/buck,vschs007/buck,dsyang/buck,davido/buck,Learn-Android-app/buck,kageiit/buck,clonetwin26/buck,Dominator008/buck,mogers/buck,luiseduardohdbackup/buck,lukw00/buck,bocon13/buck,bocon13/buck,vine/buck,Addepar/buck,pwz3n0/buck,dpursehouse/buck,mogers/buck,Distrotech/buck,tgummerer/buck,siddhartharay007/buck,rmaz/buck,mread/buck,OkBuilds/buck,marcinkwiatkowski/buck,k21/buck,pwz3n0/buck,robbertvanginkel/buck,raviagarwal7/buck,zhuxiaohao/buck,vschs007/buck,mikekap/buck,artiya4u/buck,justinmuller/buck,Distrotech/buck,zhuxiaohao/buck,raviagarwal7/buck,Learn-Android-app/buck,OkBuilds/buck,dpursehouse/buck,mikekap/buck,Addepar/buck,facebook/buck,robbertvanginkel/buck,1yvT0s/buck,sdwilsh/buck,mnuessler/buck,robbertvanginkel/buck,rhencke/buck,facebook/buck,justinmuller/buck,rowillia/buck,dsyang/buck,mikekap/buck,lukw00/buck,Learn-Android-app/buck,romanoid/buck,JoelMarcey/buck,justinmuller/buck,liuyang-li/buck,mogers/buck,dushmis/buck,ilya-klyuchnikov/buck,OkBuilds/buck,pwz3n0/buck,dsyang/buck,grumpyjames/buck,grumpyjames/buck,Addepar/buck,zhan-xiong/buck,raviagarwal7/buck,stuhood/buck,sdwilsh/buck,darkforestzero/buck,stuhood/buck,nguyentruongtho/buck,grumpyjames/buck,brettwooldridge/buck,daedric/buck,kageiit/buck,clonetwin26/buck,justinmuller/buck,luiseduardohdbackup/buck,nguyentruongtho/buck,artiya4u/buck,facebook/buck,davido/buck,rmaz/buck,darkforestzero/buck,romanoid/buck,mikekap/buck,davido/buck,LegNeato/buck,Dominator008/buck,artiya4u/buck,grumpyjames/buck,kageiit/buck,Dominator008/buck,rmaz/buck,Dominator008/buck,ilya-klyuchnikov/buck,ilya-klyuchnikov/buck,Learn-Android-app/buck,brettwooldridge/buck,mnuessler/buck,zhuxiaohao/buck,rowillia/buck,dushmis/buck,rowillia/buck,romanoid/buck,marcinkwiatkowski/buck,shybovycha/buck,vschs007/buck,vschs007/buck,Addepar/buck,facebook/buck,liuyang-li/buck,Addepar/buck,neonichu/buck,romanoid/buck,LegNeato/buck,OkBuilds/buck,darkforestzero/buck,dsyang/buck,liuyang-li/buck,darkforestzero/buck,Dominator008/buck,davido/buck,mogers/buck,nguyentruongtho/buck,kageiit/buck,zhan-xiong/buck,janicduplessis/buck,zhuxiaohao/buck,k21/buck,1yvT0s/buck,sdwilsh/buck,sdwilsh/buck,Addepar/buck,SeleniumHQ/buck,mogers/buck,zhan-xiong/buck,saleeh93/buck-cutom,rmaz/buck,artiya4u/buck,sdwilsh/buck,brettwooldridge/buck,liuyang-li/buck,luiseduardohdbackup/buck,vine/buck,Heart2009/buck,bocon13/buck,shybovycha/buck,illicitonion/buck,darkforestzero/buck,mikekap/buck,darkforestzero/buck,raviagarwal7/buck,raviagarwal7/buck,vschs007/buck,mnuessler/buck,ilya-klyuchnikov/buck,mikekap/buck,davido/buck,vschs007/buck,SeleniumHQ/buck,k21/buck,daedric/buck,MarkRunWu/buck,raviagarwal7/buck,dsyang/buck,shs96c/buck,siddhartharay007/buck,illicitonion/buck,grumpyjames/buck,rmaz/buck,ilya-klyuchnikov/buck,k21/buck,rhencke/buck,marcinkwiatkowski/buck,dpursehouse/buck,nguyentruongtho/buck,rmaz/buck,Dominator008/buck,mogers/buck,daedric/buck,illicitonion/buck,raviagarwal7/buck,janicduplessis/buck,grumpyjames/buck,OkBuilds/buck,k21/buck,LegNeato/buck,pwz3n0/buck,janicduplessis/buck,Dominator008/buck,vschs007/buck,clonetwin26/buck,zhan-xiong/buck,stuhood/buck,dsyang/buck,facebook/buck,davido/buck,romanoid/buck,facebook/buck,zpao/buck,artiya4u/buck,clonetwin26/buck,zpao/buck,janicduplessis/buck,marcinkwiatkowski/buck,zhuxiaohao/buck,clonetwin26/buck,mogers/buck,romanoid/buck,justinmuller/buck,dushmis/buck,raviagarwal7/buck,daedric/buck,Distrotech/buck,rhencke/buck,shs96c/buck,1yvT0s/buck,daedric/buck,illicitonion/buck,Addepar/buck,justinmuller/buck,bocon13/buck,mread/buck,zpao/buck,dpursehouse/buck,rhencke/buck,robbertvanginkel/buck,zhan-xiong/buck,mogers/buck,siddhartharay007/buck,davido/buck,daedric/buck,siddhartharay007/buck,marcinkwiatkowski/buck,ilya-klyuchnikov/buck,neonichu/buck,brettwooldridge/buck,Addepar/buck,vschs007/buck,SeleniumHQ/buck,artiya4u/buck,daedric/buck,artiya4u/buck,daedric/buck,rowillia/buck,Heart2009/buck,stuhood/buck,1yvT0s/buck,lukw00/buck,Distrotech/buck,darkforestzero/buck,SeleniumHQ/buck,Learn-Android-app/buck,romanoid/buck,marcinkwiatkowski/buck,nguyentruongtho/buck,vine/buck,shybovycha/buck,JoelMarcey/buck,shs96c/buck,davido/buck,1yvT0s/buck,janicduplessis/buck,lukw00/buck,clonetwin26/buck,artiya4u/buck,robbertvanginkel/buck,bocon13/buck,zhan-xiong/buck,JoelMarcey/buck,Learn-Android-app/buck,mread/buck,mnuessler/buck,stuhood/buck,illicitonion/buck,zhuxiaohao/buck,bocon13/buck,rhencke/buck,LegNeato/buck,neonichu/buck,Dominator008/buck,k21/buck,MarkRunWu/buck,brettwooldridge/buck,SeleniumHQ/buck,darkforestzero/buck,OkBuilds/buck,clonetwin26/buck,vine/buck,hgl888/buck,bocon13/buck,zhuxiaohao/buck,LegNeato/buck,shybovycha/buck,SeleniumHQ/buck,Learn-Android-app/buck,tgummerer/buck,SeleniumHQ/buck,neonichu/buck,luiseduardohdbackup/buck,illicitonion/buck,davido/buck,janicduplessis/buck,kageiit/buck,mnuessler/buck,Learn-Android-app/buck,liuyang-li/buck,brettwooldridge/buck,raviagarwal7/buck,clonetwin26/buck,mikekap/buck,saleeh93/buck-cutom,JoelMarcey/buck,OkBuilds/buck,zhan-xiong/buck,ilya-klyuchnikov/buck,robbertvanginkel/buck,darkforestzero/buck,raviagarwal7/buck,Heart2009/buck,brettwooldridge/buck,lukw00/buck,zhan-xiong/buck,romanoid/buck,sdwilsh/buck,romanoid/buck,stuhood/buck,lukw00/buck,liuyang-li/buck,zhan-xiong/buck,zpao/buck,rmaz/buck,LegNeato/buck,justinmuller/buck,lukw00/buck,Addepar/buck,Addepar/buck,illicitonion/buck,stuhood/buck,grumpyjames/buck,shs96c/buck,janicduplessis/buck,clonetwin26/buck,JoelMarcey/buck,stuhood/buck,mikekap/buck,hgl888/buck,clonetwin26/buck,mnuessler/buck,brettwooldridge/buck,marcinkwiatkowski/buck,sdwilsh/buck,k21/buck,Heart2009/buck,janicduplessis/buck,grumpyjames/buck,luiseduardohdbackup/buck,luiseduardohdbackup/buck,robbertvanginkel/buck,stuhood/buck,Learn-Android-app/buck,JoelMarcey/buck,SeleniumHQ/buck,Distrotech/buck,JoelMarcey/buck,neonichu/buck,hgl888/buck,brettwooldridge/buck,robbertvanginkel/buck,hgl888/buck,Distrotech/buck,artiya4u/buck,raviagarwal7/buck,robbertvanginkel/buck,dushmis/buck,rowillia/buck,OkBuilds/buck,facebook/buck,tgummerer/buck,pwz3n0/buck,Heart2009/buck,marcinkwiatkowski/buck,shybovycha/buck,daedric/buck,vschs007/buck,dsyang/buck,k21/buck,hgl888/buck,mnuessler/buck,romanoid/buck,MarkRunWu/buck,daedric/buck,darkforestzero/buck,shs96c/buck,mogers/buck,mikekap/buck,LegNeato/buck,rowillia/buck,shybovycha/buck,clonetwin26/buck,marcinkwiatkowski/buck,saleeh93/buck-cutom,nguyentruongtho/buck,tgummerer/buck,SeleniumHQ/buck,pwz3n0/buck,ilya-klyuchnikov/buck,brettwooldridge/buck,marcinkwiatkowski/buck,LegNeato/buck,mikekap/buck,rowillia/buck,grumpyjames/buck,rowillia/buck,1yvT0s/buck,vine/buck,rmaz/buck,SeleniumHQ/buck,illicitonion/buck,rmaz/buck,romanoid/buck,brettwooldridge/buck,ilya-klyuchnikov/buck,JoelMarcey/buck,grumpyjames/buck,1yvT0s/buck,darkforestzero/buck,zhan-xiong/buck,davido/buck,Heart2009/buck,liuyang-li/buck,zpao/buck,MarkRunWu/buck,bocon13/buck,liuyang-li/buck,tgummerer/buck,Dominator008/buck,romanoid/buck,tgummerer/buck,luiseduardohdbackup/buck,vschs007/buck,Learn-Android-app/buck,shs96c/buck,Heart2009/buck,OkBuilds/buck,luiseduardohdbackup/buck,bocon13/buck,JoelMarcey/buck,Distrotech/buck,SeleniumHQ/buck,MarkRunWu/buck,Distrotech/buck,romanoid/buck,LegNeato/buck,shybovycha/buck,stuhood/buck,robbertvanginkel/buck,zhan-xiong/buck,justinmuller/buck,grumpyjames/buck,brettwooldridge/buck,robbertvanginkel/buck,MarkRunWu/buck,tgummerer/buck,rhencke/buck,shybovycha/buck,davido/buck,shs96c/buck,shs96c/buck,SeleniumHQ/buck,darkforestzero/buck,neonichu/buck,artiya4u/buck,LegNeato/buck,janicduplessis/buck,saleeh93/buck-cutom,dsyang/buck,liuyang-li/buck,ilya-klyuchnikov/buck,JoelMarcey/buck,dpursehouse/buck,dpursehouse/buck,raviagarwal7/buck,rhencke/buck,marcinkwiatkowski/buck,k21/buck,siddhartharay007/buck,neonichu/buck,dushmis/buck,JoelMarcey/buck,rhencke/buck,SeleniumHQ/buck,1yvT0s/buck,bocon13/buck,vine/buck,saleeh93/buck-cutom,mread/buck,daedric/buck,dushmis/buck,justinmuller/buck,shs96c/buck,vschs007/buck,daedric/buck,Distrotech/buck,JoelMarcey/buck,nguyentruongtho/buck,vine/buck,rhencke/buck,pwz3n0/buck,rhencke/buck,shybovycha/buck,1yvT0s/buck,ilya-klyuchnikov/buck,vine/buck,MarkRunWu/buck,k21/buck,daedric/buck,lukw00/buck,Addepar/buck,rhencke/buck,JoelMarcey/buck,sdwilsh/buck,justinmuller/buck,marcinkwiatkowski/buck,pwz3n0/buck,LegNeato/buck,rmaz/buck,neonichu/buck,mread/buck,zpao/buck,rmaz/buck,robbertvanginkel/buck,artiya4u/buck,Addepar/buck,sdwilsh/buck,Learn-Android-app/buck,Dominator008/buck,pwz3n0/buck,zhan-xiong/buck,rmaz/buck,tgummerer/buck,mogers/buck,rowillia/buck,lukw00/buck,hgl888/buck,stuhood/buck,mnuessler/buck,brettwooldridge/buck,illicitonion/buck,clonetwin26/buck,illicitonion/buck,shybovycha/buck,raviagarwal7/buck,dsyang/buck,Dominator008/buck,janicduplessis/buck,liuyang-li/buck,sdwilsh/buck,dushmis/buck,vine/buck,shybovycha/buck,sdwilsh/buck,justinmuller/buck,MarkRunWu/buck,LegNeato/buck,shybovycha/buck,OkBuilds/buck,Heart2009/buck,janicduplessis/buck,pwz3n0/buck,dsyang/buck,shs96c/buck,tgummerer/buck,vine/buck,OkBuilds/buck,mread/buck,siddhartharay007/buck,kageiit/buck,grumpyjames/buck,sdwilsh/buck,OkBuilds/buck,dsyang/buck,dushmis/buck,liuyang-li/buck,rowillia/buck,Distrotech/buck,illicitonion/buck,siddhartharay007/buck,sdwilsh/buck,shs96c/buck,siddhartharay007/buck,lukw00/buck,ilya-klyuchnikov/buck,zpao/buck,darkforestzero/buck,mogers/buck,dpursehouse/buck,hgl888/buck,zhan-xiong/buck,vschs007/buck,janicduplessis/buck,Dominator008/buck,dsyang/buck,mikekap/buck,Addepar/buck,k21/buck,shs96c/buck,clonetwin26/buck,k21/buck,shybovycha/buck,marcinkwiatkowski/buck,hgl888/buck,zhuxiaohao/buck,davido/buck,vschs007/buck,justinmuller/buck,kageiit/buck,tgummerer/buck,luiseduardohdbackup/buck,mnuessler/buck,bocon13/buck,ilya-klyuchnikov/buck,illicitonion/buck,dushmis/buck,mikekap/buck,lukw00/buck,tgummerer/buck,dsyang/buck,neonichu/buck,k21/buck,hgl888/buck,LegNeato/buck,justinmuller/buck,rmaz/buck,zhuxiaohao/buck,Distrotech/buck,robbertvanginkel/buck,siddhartharay007/buck,shs96c/buck,dushmis/buck,rowillia/buck