pylerSM / XInstaller

[Xposed module] Various tweaks for Package Installer
http://repo.xposed.info/module/com.pyler.xinstaller
BSD 2-Clause "Simplified" License
152 stars 61 forks source link

Some questions about adb install/adb shell pm #49

Closed aviraxp closed 7 years ago

aviraxp commented 7 years ago

Not related to xinstaller, but I would like to ask if you know whether there is any method to prevent adb install/adb shell pm.

As adb takes effect at C level, I don't know how to hook it. Very thanks.

pylerSM commented 7 years ago

Hook InstallStage method and check Binder.getCallerID .. uid of shell is 2000 I think..

aviraxp commented 7 years ago

Very thanks pyler.