Skip to content

Using your own DeviceInfo to connect to API

FernandoTBarros edited this page Sep 23, 2016 · 8 revisions

#Introduction When connecting to the Pokemon Go servers, the PogoBot API uses a default DeviceInfo to make all the requests using your account. So, it's easy for Niantic to know all the players that are using a third-party software to connect to Pokemon Go, what according to ToS is illegal and passive of ban. What we made now is offer an option to you configure the DeviceInfo of your own cellphone, in order to mask the requests, and reducing even more a chance of a ban.
This functionality is available after release version 0.1.3!

#So how to obtain the DeviceInfo of my phone? In order to get the proper infos about your phone, you have to use some apps to help do this. ##Android For Android we gonna need 2 apps:

You have to note down the following info in Build Info:

  • BOARD (android.board)
  • BOOTLOADER (android.bootloader)
  • BRAND (device.brand)
  • FINGERPRINT (firmware.fingerprint)
  • HARDWARE (hardware.model)
  • MANUFACTURER (hardware.manufacturer)
  • MODEL (device.model)
  • PRODUCT (device.modelIdentifier)
  • TAGS (firmware.tags)
  • TYPE (firmware.type)
  • DEVICE (device.brand)
    Build Info Example

And in the second app:

  • Android ID (device.id)
    Android ID

##iOS For iOS you can get this info in Settings -> General -> About/Info
Once on iOS this info can be a little trick to obtain, here follows the default DeviceInfo used by PogoAPI, that is based on iOS (apparently an iPad):

"custom": {
    "android": {
        "bootloader": "",
        "boardName": ""
    },
    "device": {
        "modelIdentifier": "",
        "modelBoot": "iPad4,9",
        "model": "iPad",
        "id": "3562002a3ec39ccf64eff96879219ad1",
        "brand": "iPhone OS"
    },
    "firmware": {
        "fingerprint": "",
        "type": "9.3.1",
        "brand": "Apple",
        "tags": ""
    },
    "hardware": {
        "model": "J87mAP",
        "manufacturer": "Apple"
    }
}

#Configure After you have all the information in hands, go to file "config.json" e fill them in the deviceInfo group and make sure that deviceInfo.useCustom is set to "true". Here follows the skeleton of the deviceInfo tag:

"deviceInfo": {
    "useCustom": true,
    "custom": {
        "android": {
            "bootloader": "",
            "boardName": ""
        },
        "device": {
            "modelIdentifier": "",
            "modelBoot": "",
            "model": "",
            "id": "",
            "brand": ""
        },
        "firmware": {
            "fingerprint": "",
            "type": "",
            "brand": "",
            "tags": ""
        },
        "hardware": {
            "model": "",
            "manufacturer": ""
        }
    }
}
Clone this wiki locally