Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

mattermon/virtualHookPlugin

Repository files navigation

ChangePhoneInfo

Introduction

This is a hook plugin used by VirtualHook. It hooks some Java APIs that are used for getting device info, and all the values are hard-codeded as a demo.

Currently the following methods are hooked:

  • android.bluetooth.BluetoothAdapter.getAddress()
  • android.telephony.gsm.GsmCellLocation.getCid()
  • android.telephony.gsm.GsmCellLocation.getLac()
  • android.location.Location.getLatitude()
  • android.location.Location.getLongitude()
  • android.telephony.TelephonyManager.getDeviceId()
  • android.telephony.TelephonyManager.getLine1Number()
  • android.telephony.TelephonyManager.getSimOperator()
  • android.telephony.TelephonyManager.getSimSerialNumber()
  • android.telephony.TelephonyManager.getSubscriberId()
  • android.net.wifi.WifiInfo.getBSSID()
  • android.net.wifi.WifiInfo.getSSID()
  • android.net.wifi.WifiInfo.getIpAddress()
  • android.net.wifi.WifiInfo.getMacAddress()

And these system property values are changed as well by hooking native function __system_property_get():

  • ro.serialno
  • ro.product.brand
  • ro.product.device
  • ro.build.tags
  • ro.product.model
  • ro.product.manufacturer

Finally, Build.SERIAL is changed by simple Java reflection.

增加的hook函数

  • StringBuilder.toString() 包括打印toString的结果

Usage

Build and push the output apk to /sdcard/. Then add and start applications in VirtualHook.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /