MCPcopy Create free account
hub / github.com/casualsnek/waydroid_script / AndroidId

Class AndroidId

stuff/android_id.py:6–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5
6class AndroidId:
7 def get_id(self):
8 if container.is_running():
9 try:
10 queryout = shell(
11 arg="sqlite3 /data/data/com.google.android.gsf/databases/gservices.db \"select * from main where name = 'android_id';\"",
12 env="ANDROID_RUNTIME_ROOT=/apex/com.android.runtime ANDROID_DATA=/data ANDROID_TZDATA_ROOT=/apex/com.android.tzdata ANDROID_I18N_ROOT=/apex/com.android.i18n"
13 )
14 except:
15 return
16 else:
17 Logger.error("Please make sure Waydroid is running and Gapps has been installed!")
18 return
19 print(queryout.replace("android_id|", "").strip())
20 print(" ^----- Open https://google.com/android/uncertified/?pli=1")
21 print(" Login with your google id then submit the form with id shown above")

Callers 2

get_certifiedFunction · 0.90
interactFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected