You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
899 B
Python
18 lines
899 B
Python
import os
|
|
import sys
|
|
from tools.helper import run
|
|
from tools.logger import Logger
|
|
|
|
|
|
class Android_id:
|
|
def get_id(self):
|
|
if not os.path.isfile("/var/lib/waydroid/data/data/com.google.android.gsf/databases/gservices.db"):
|
|
Logger.error("Cannot access gservices.db, make sure gapps is installed and waydroid was started at least once after installation and make sure waydroid is running !")
|
|
sys.exit(1)
|
|
sqs = """
|
|
SELECT * FROM main WHERE name='android_id'
|
|
"""
|
|
queryout = run(["sqlite3", "/var/lib/waydroid/data/data/com.google.android.gsf/databases/gservices.db", sqs.strip()])
|
|
print(queryout.stdout.decode().replace("android_id|", "").strip())
|
|
print(" ^----- Open https://google.com/android/uncertified/?pli=1")
|
|
print(" Login with your google id then submit the form with id shown above") |