Skip to main content

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]



"""

Release files for adbdevicechanger 0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adbdevicechanger 0.11
File Size Uploaded
adbdevicechanger-0.11.tar.gz 31.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adbdevicechanger 0.11
File Interpreter ABI Platform
adbdevicechanger-0.11-py3-none-any.whl Python 3 none any Details

Total release size: 64.3 kB

Release files / adbdevicechanger-0.11.tar.gz

Download URL adbdevicechanger-0.11.tar.gz
Size 31.0 kB
Tags Source
SHA-256 checksum
How to use checksums
039f4ee537a35ae427978115a22811b94598683d19e74b1e01d5eabc31917df5
BLAKE2b-256 checksum
How to use checksums
0622e911fd4f828cf3fa349d2044196a8ccc3eb5019847ec60179ff54bb08c19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / adbdevicechanger-0.11-py3-none-any.whl

Download URL adbdevicechanger-0.11-py3-none-any.whl
Size 33.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d0b9c532f36800b02b1da982b681dd2929ec68ee307bfd9ccd859089fbcd494
BLAKE2b-256 checksum
How to use checksums
65d847b8c113dcdd41cb63b498b92f5cc76e9977f5582c815c64a7d01ba72e70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.11 This release

2 release files

0.10

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page