Skip to main content

Changes android_id / device_name

Project description

Changes android_id / device_name

pip install adbdevicechanger

Tested against Python 3.9.15 / Windows 10 / Anaconda / BlueStacks 5.9.300.1014 N32

Probably needs root on any device, tested only with BlueStacks.

from adbdevicechanger import AdbChanger



adc = AdbChanger(

    adb_path="C:\\Users\\Gamer\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe",

    deviceserial="localhost:5555",

)

adc.connect_to_device()

adc.change_android_id_and_device_name(

    modelregex=".*",

    developerregex=".*",

    androidfullnameregex=".*",

    year=">1",

    month=">0",

    versionnumberaround=7.05,

)

adc.change_android_id()

adc.change_device_name(

    modelregex=".*",

    developerregex=".*",

    androidfullnameregex=".*",

    year=">1",

    month=">0",

    versionnumberaround=7.05,

)



dfframe = AdbChanger.get_random_android_cellphones(

    modelregex="Samsung.*",

    developerregex=".*",

    androidfullnameregex=".*",

    year=">2010",

    month=">0",

    versionnumberaround=9.05,

    howmany=10,

    return_list=False,

)

print(dfframe)



r"""

b'Row: 0 _id=2331, name=android_id, value=9d7f16c50ea84d99\r\n'

b'Row: 0 _id=222, name=device_name, value=Redmi 5A\r\n'

b'Row: 0 _id=2332, name=android_id, value=4ea89127afab45b4\r\n'

b'Row: 0 _id=222, name=device_name, value=Redmi 5A\r\n'

b'Row: 0 _id=2332, name=android_id, value=4ea89127afab45b4\r\n'

b'Row: 0 _id=223, name=device_name, value=ZTE Axon 7s\r\n'







                   aa_model  ...              uuid

0       Samsung Galaxy A21s  ...  c20ef8d006bd44db

1   Samsung Galaxy Z Fold 2  ...  0dfccdf0fe684649

2       Samsung Galaxy A10e  ...  ea74e780e3404b28

3       Samsung Galaxy A20s  ...  52b35c30faa249a3

4        Samsung Galaxy A10  ...  abe17cb2a0b0422b

5  Samsung Galaxy Xcover 4s  ...  c966c462ce044278

6        Samsung Galaxy A41  ...  6818973df8c1492a

7        Samsung Galaxy A70  ...  2e2fbf456043410a

8        Samsung Galaxy M02  ...  5d6b729f46184046

9        Samsung Galaxy A21  ...  4a4bd271ec60473d

[10 rows x 10 columns]



"""

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adbdevicechanger-0.11.tar.gz (31.0 kB view details)

Uploaded Source

Built Distribution

adbdevicechanger-0.11-py3-none-any.whl (33.3 kB view details)

Uploaded Python 3

File details

Details for the file adbdevicechanger-0.11.tar.gz.

File metadata

  • Download URL: adbdevicechanger-0.11.tar.gz
  • Upload date:
  • Size: 31.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for adbdevicechanger-0.11.tar.gz
Algorithm Hash digest
SHA256 039f4ee537a35ae427978115a22811b94598683d19e74b1e01d5eabc31917df5
MD5 bc125dff7325f123298244fefb7690ad
BLAKE2b-256 0622e911fd4f828cf3fa349d2044196a8ccc3eb5019847ec60179ff54bb08c19

See more details on using hashes here.

File details

Details for the file adbdevicechanger-0.11-py3-none-any.whl.

File metadata

File hashes

Hashes for adbdevicechanger-0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 8d0b9c532f36800b02b1da982b681dd2929ec68ee307bfd9ccd859089fbcd494
MD5 7e7461c1573923805fac7438819d85ec
BLAKE2b-256 65d847b8c113dcdd41cb63b498b92f5cc76e9977f5582c815c64a7d01ba72e70

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page