Skip to main content

Android sdk supporter

Project description

android-sdk-supporter

Android SDK 다운로드

명령줄 도구
https://developer.android.com/studio/command-line?hl=ko#tools-sdk
Android SDK 명령줄 도구 (android_sdk\cmdline-tools)
https://developer.android.com/studio#command-tools
Android SDK 빌드 도구 (android_sdk\build-tools)
https://androidsdkmanager.azurewebsites.net/Buildtools
Android SDK 플랫폼 도구 (android_sdk\platform-tools)
https://developer.android.com/studio/releases/platform-tools?hl=ko#downloads.html
google drive
https://drive.google.com/drive/folders/1mfYHbCbwM6HIexV9gQvtPFnIEwo26t0s?usp=drive_link

import os
from android_sdk_supporter.build_tools import BuildTools

android_sdk_directory = os.path.dirname(__file__) + "/android_sdk"
build_tools = BuildTools(android_sdk_directory)
import os
from android_sdk_supporter.cmdline_tools import CmdlineTools

android_sdk_directory = os.path.dirname(__file__) + "/android_sdk"
cmdline_tools = CmdlineTools(android_sdk_directory)
import os
import time
from android_sdk_supporter.platform_tools import PlatformTools
from python_supporter.check_ip import check_ip #pip install python-supporter

android_sdk_directory = os.path.dirname(__file__) + "/android_sdk"
platform_tools = PlatformTools(android_sdk_directory)

device = ""
status = ""
try:
    devices = platform_tools.check_devices()

    for d in devices:
        device = d["device"]
        status = d["status"]
        break
    if not devices:
        device = ""
        status = ""
except:
   device = ""
   status = ""

print(f"연결 디바이스 (상태): {device} ({status})")

if not device and not status:
    print(f"USB에 디바이스가 연결되지 않았습니다.")
    exit()

print("모바일 데이터 해제")
platform_tools.data_disable()

print("1초 쉬기")
time.sleep(1)

print("모바일 데이터 연결")
platform_tools.data_enable()

ip = check_ip()
print(f"PC IP: {ip}")

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

android-sdk-supporter-0.0.6.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

android_sdk_supporter-0.0.6-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file android-sdk-supporter-0.0.6.tar.gz.

File metadata

  • Download URL: android-sdk-supporter-0.0.6.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for android-sdk-supporter-0.0.6.tar.gz
Algorithm Hash digest
SHA256 41bfbe746d79008ea1114a29241d866690211659c5533919d207568d4d5bf867
MD5 bb9d356c7442715b5e8724e537357186
BLAKE2b-256 96978863321bfe223b99079238fe73bf4c158a5b3e1a8c9012c94262cd0b0e8b

See more details on using hashes here.

File details

Details for the file android_sdk_supporter-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for android_sdk_supporter-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d06149afa493117b7bcabaca2f626ae8b4b9835acf20acd5aba4c855e29f4ff2
MD5 332ed3a821709b979fee8e84c069c823
BLAKE2b-256 ec453a154a6396327d8c6676a507094ff12318320d9cb35b8fb114be499ac7c3

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