Saravanan666/pypi-org huggingface dataset:
Package: android-category
android_categoryTool to retrieve the category of an app given a url to the source code (git/local).Installpip install android-categoryUsageAs a libraryfrom android_category import android_category

repo = "https://github.com/ccrama/Slide/"
category = android_category.get_app_category_from_repo_git()
print(category)Should output:NEWS_AND_MAGAZINESCLIWe can also run the tool in the command line:android_category https://github.com/ccrama/Slide/Should output:NEWS_AND_MAGAZINESGet more options by running:android_category --help
Package: android-controller
android-controllerA python module to control your android phoneInstallationPrerequisitesPipadbinstalled andadded to PATHUsing PyPi (recommended)Open a command prompt and run:pip install android_controllerFrom sourceOpen a command promp and clone this repo. Now cd to that folder and run:pip install .UsageThe package can be imported using:importandroid_controllerMost of the times devices connect to adb automatically, but if they don't you can use:android_controller.connect(host)#host is where your device is connected to. For example, bluestacks would be localhost:5555You can then check which devices are connected using:connections=android_controller.checkConnections()This will return a list with the names of all connected devices.
Please make sure you only have one device connected, otherwise the module might not work properly.DistributingAll distributions are welcome. There are quite some functions that are less commonly used I left out, but they can of course still be added.LicenseThis project is licensed under the MIT license.
Package: android-debian-builder
This tool usesMultistrapto bootstrap a Debian (or Debian-based) system into
an image file as well as adding an Android-targeted launcher script to chroot
into the system.InstallationRequirements on the host system:Python3.3 or upJinja2.7 or upMultistrapbecause of Multistrap: aDebian(or Debian-based) systemRequirements on the target device:root accessBusybox (this might be pre-installed on your system or you could use one of
the various installers on the Play Store)a kernel that supports loop mounts and whatever file system you wish to useInstallation withpip:# pip3 install android-debian-builderInstallation from the source tarball:# python3 setup.py installUsageSimply runningandroid-debian-builder(as root) will start building a Debian
image in the current directory. To see possible command line options, runandroid-debian-builder--help. Usually, you’ll want to customise the
configuration; the easiest way is to dump the default configuration withandroid-debian-builder--print-configand build your own based on that.Additional example configurations are included. These can be found inandroid_debian_builder/examplesin the source distribution or in theexamples` subdirectory of the installed package. To include one of these examples in your configuration setup, prefix the file name with ``builtin:examples/on the command line, like so:# android-debian-builder --config builtin:examples/jessie-armhf.cfg
Package: androidemu
AndroidNativeEmuAllows you to partly emulate an Android native library.This is an educational project to learn more about the ELF file format andUnicorn.中文READMEFeaturesEmulation of theJNI Invocation APIsoJNI_OnLoadcan be called properly.Emulation of native memory for malloc / memcpy.Emulation of syscalls (SVC #0) instruction.Hooking through the symbol table.All JavaVM, JNIEnv and hooked functions are handled by python.Enable VFP support.UsageIn the future this will be possible through pypi.Make sure you are using python 3.7.Clone the repositoryRunpip install -r requirements.txtRunpython example.pyIf you have trouble getting thekeystone-enginedependency on Windows (as I did):Clone theirrepositoryOpen a terminal inbindings/pythonRunpython setup.py install(Make sure you are using python 3.7)Download theirWindows - Core enginepackageherefor your python arch.Put thekeystone.dllinC:\location_to_python\Lib\site-packages\keystone\.TODOImprove file descriptors invfs/file_system.pyso they are re-useable.Add a way for the VirtualFileSystem to give back dynamic files, such as/proc/self/status,/proc/self/statusbut also/dev/urandom.Library consumers must be able to easily rebuild the needed Java classes for a native library, which are used by the native library through the JNIEnv.ClassesObjectsMethodsNative methodsFieldsTypesReflectionDependenciesUnicorn CPU emulator frameworkKeystone assembler frameworkResourcesAll resources used while developing AndroidNativeEmu.Text sourceshttps://greek0.net/elf.htmlhttps://stackoverflow.com/questions/13908276/loading-elf-file-in-c-in-user-spacehttps://programtalk.com/python-examples/pyelftools.elftools.elf.relocation.Relocation/http://infocenter.arm.com/help/topic/com.arm.doc.ihi0044f/IHI0044F_aaelf.pdfhttps://wiki.osdev.org/ELF_Tutorialhttps://docs.oracle.com/javase/7/docs/technotes/guides/jni/spec/functions.htmlhttps://android.googlesource.com/platform/dalvik/+/donut-release/vm/Jni.cCode sourceshttps://github.com/lunixbochs/usercornhttps://github.com/slick1015/pad_unpacker(SVC 0 instruction)
Package: androidenv
Build native packages for Android.RequirementsPython;Android SDK;The Android SDK can be installed fromAndroid Studio.Then set the environment variableANDROID_SDK_ROOTor ANDROID_HOME.Finally, Python'sdistutilspackage must be patched for cross-compiling.
The patch is in the patches directory.  Apply it like so:DESTLIB=$(python -c "import sysconfig; \
    print(sysconfig.get_config_var('DESTLIB'))")
patch -p2 -d $DESTLIB < patches/patch-Python-3.10.0.txtThis patch should apply to any version of Python.You may need to use sudo.Install androidenvInstall from the Python Package Index:pip install androidenvYou can also copy the file androidenv.py to where you need it,
it is self contained.UsageBuild something from source:cd thing
python -m androidenv setup.py build
python -m androidenv setup.py installYou really want to do this in avirtual environment.Use the --find-library option to find libraries like libandroid or liblog:python -m androidenv --find-library android logEnvironment variablesThis module works entirely with environment variables.Input environment variables:ANDROID_SDK_ROOT or ANDROID_HOME (required);ABI (optional; armeabi-v7a or arm64-v8a);API (optional);DEBUG (optional; 0 or 1);What is being built must respect the following evironment variables:ARASCCCFLAGSCPPCPPFLAGSCXXCXXFLAGSLDLDFLAGSPATHRANLIBREADELFSTRIPMany packages do, many don't.  Python itself (distutils) does not respect
RANLIB; CMake does not respect CPPFLAGS; and many more.  Fixing that is
your homework.setup.cfgSome useful configuration options when building for Android:[build]
build-base = build
build-temp = build/tmp
build-lib = build/lib
Package: android-file-bridge
Android File BridgeFile browser library to interact with Android devices, using ADB.RequirementsPython 3.6+ADB binary available on pathSetupInstallandroid-file-bridgefrom PyPi usingpip install android-file-bridgeUsageCreating a device objectUSBBefore using this, make sure the device is connected and available throughadb devices.fromandroid_file_bridgeimportDeviceconnection=Device()Networkfromandroid_file_bridgeimportDeviceconnection=Device(ip_address="0.0.0.0")# obviously change this!List a directoryconnection.list_path("/sdcard/Download")Download a file from your phoneconnection.pull("/sdcard/important_file.pdf","file.pdf")Upload a file to your phoneconnection.push("image.png","/sdcard/cool_photo.png")
Package: android-flasher
Flasher is a shell script generator which helps you to flash the Android
factory image without removing user data.You can use it instead offlash-all.shorflash-all.bat.InstallationYou can install android-flasher withpip$ pip install android-flasherHow to useInstall.Move to the unzipped factory image directory.Executeandroid-flasherin terminal.Now reboot and enter the bootloader.Execute theflasher.shscript.If you meet an error likefastboot: command not found, add following line in your.bash_profile.export PATH="/path/to/android/sdk/platform-tools:$PATH"LicenseThe MIT License (MIT)Copyright (c) 2015 Minsoo Park
Package: android-lint-to-glcq
Android Lint to Gitlab Code Quality ReportConvert android gradle lint outputs to a GitLab valid json code quality result file.Thanks to the author of the original
projectansible-lint-to-junit-xmland to author of yaml-lint forkyaml-lint-to-junit-xmlQuickstartInstallandroid-lint-to-glcqwith pip:pip install android-lint-to-glcqOr you can simply get this repo and install with setup.pyUsageRun./gradlew :app:lintDebugand use a file to pass the output./gradlew :app:lintDebug
android-lint-to-glcq <relative path to lint xml report> <absolute path to project root> > <output file>FeaturesOutput JSON file is compliant
withgitlab code quality schema, so you can use it to artifact as reportExampleRunning./gradlew :app:lintDebugon my Android project results in:<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 7.0.1">

    <issue
        id="FragmentTagUsage"
        severity="Warning"
        message="Replace the &lt;fragment> tag with FragmentContainerView."
        category="Correctness"
        priority="5"
        summary="Use FragmentContainerView instead of the &lt;fragment> tag"
        explanation="FragmentContainerView replaces the &lt;fragment> tag as the preferred                 way of adding fragments via XML. Unlike the &lt;fragment> tag, FragmentContainerView                 uses a normal `FragmentTransaction` under the hood to add the initial fragment,                 allowing further FragmentTransaction operations on the FragmentContainerView                 and providing a consistent timing for lifecycle events."
        url="https://developer.android.com/reference/androidx/fragment/app/FragmentContainerView.html"
        urls="https://developer.android.com/reference/androidx/fragment/app/FragmentContainerView.html"
        errorLine1="        &lt;fragment"
        errorLine2="         ~~~~~~~~">
        <location
            file="/Users/vlad/StudioProjects/Company/fleet/app/src/main/res/layout/activity_main.xml"
            line="13"
            column="10"/>
    </issue>

</issues>Runningandroid-lint-to-glcqon gradle lint outputs looks line this:./gradlew :app:lintDebug
android-lint-to-glcq app/lint/reports/lint-results-debug.xml /Users/vlad/StudioProjects/Company/fleet/ > results/android-lint-results.xmlWould result in:[
  {
    "description": "Use FragmentContainerView instead of the <fragment> tag",
    "severity": "major",
    "fingerprint": "f753a37f26e791db8d499657e23f9caa",
    "location": {
      "path": "fleet/app/src/main/res/layout/activity_main.xml",
      "lines": {
        "begin": "13"
      }
    }
  }
]And final result:
Package: android-missingdrawables
Check if your Drawables are present in all density buckets. Example:$ sudo pip install android-missingdrawables
$ missingdrawables ~/projects/AwesomeApp/res
                                         l  |  m  |  h  |  xh
                         action_g.png |  +  |  +  |  +  |  +  |
                       action_pin.png |  +  |  +  |  -  |  +  |
                    action_search.png |  +  |  -  |  +  |  +  |
                  action_wishlist.png |  +  |  +  |  +  |  +  |
                         btn_call.png |  +  |  +  |  +  |  +  |
 btn_check_off_focused_holo_light.png |  +  |  -  |  +  |  -  |
Package: androidpublisher
Android PublisherUsage:$androidpublisher[OPTIONS]COMMAND[ARGS]...Options:--install-completion: Install completion for the current shell.--show-completion: Show completion for the current shell, to copy it or customize the installation.--help: Show this message and exit.Commands:uploadandroidpublisher uploadUsage:$androidpublisherupload[OPTIONS]PACKAGE_NAMEArguments:PACKAGE_NAME: [required]Options:--aab-file FILE: [default: app.aab]--track [internal|alpha|beta|production|rollout]: [default: internal]--json-key FILE: [default: credential.json]--help: Show this message and exit.
Package: android-resources-checker
Android Resources CheckerWhatThis program will inspect the resources of your app and help you understand which ones are not being used and could
potentially be removed.Main features:Identify the unused resources in your android project.Identify the unused resources in your android library (when you have a multi-repo setup)Listing of the unused resources (name, type and size)Deletion of the unused resourcesInstallingThis program requires Python, supporting from 3.8.x and 3.9.xIn order to install run:pipinstall-Uandroid-resources-checkerUsingInspecting your app resources.Imagining your app in the projectsubject-app, you can trigger the resources inspection by running:android-resources-checker--app/path/to/subject-appInspecting your library app resources.In the case you have two projects in separate repos, where aclient-appdepends on alib-app, you can check the
unused resources of the library app by running:android-resources-checker\--app/path/to/lib-app\--client/path/to/client-app-1\--client/path/to/client-app-2An example of a run could look like this:ReportsThe default behavior is to generate reports on both the stdout and CSV.You can specify a single type of report using the--report=(CSV|STDOUT)option.If using CSV reports, you can specify the directory where to write the reports in the form of CSV files. For that use
the--reports-diroption.For example:android-resources-checker\--app/path/to/app\--reports-dir/path/to/reportsValidationThere is also the option to run this as a validation tool. In this case, it will fail with an error if any unused
resources are found.To specify the validation use the--checkflag (the default behavior is to perform no validation).Automatic DeletionYou can use this tool to also delete the unused resources by using the--deleteoption.LicenseCopyright (c) 2021 Dotanuki Labs, Fabio Carballo

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: android-sdk-supporter
android-sdk-supporterAndroid SDK 다운로드명령줄 도구https://developer.android.com/studio/command-line?hl=ko#tools-sdkAndroid SDK 명령줄 도구 (android_sdk\cmdline-tools)https://developer.android.com/studio#command-toolsAndroid SDK 빌드 도구 (android_sdk\build-tools)https://androidsdkmanager.azurewebsites.net/BuildtoolsAndroid SDK 플랫폼 도구 (android_sdk\platform-tools)https://developer.android.com/studio/releases/platform-tools?hl=ko#downloads.htmlgoogle drivehttps://drive.google.com/drive/folders/1mfYHbCbwM6HIexV9gQvtPFnIEwo26t0s?usp=drive_linkimport 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}")
Package: android-sms-gateway
Android SMS Gateway Python API ClientThis is a Python client library for interfacing with theAndroid SMS GatewayAPI.RequirementsPython >= 3.6One of the following packages:requestsaiohttphttpxOptional:pycryptodome- end-to-end encryption supportInstallationpipinstallandroid_sms_gatewayYou can also install with preferred http client:pipinstallandroid_sms_gateway[requests]pipinstallandroid_sms_gateway[aiohttp]pipinstallandroid_sms_gateway[httpx]With encrypted messages support:pipinstallandroid_sms_gateway[encryption]QuickstartHere's an example of using the client:importasyncioimportosfromandroid_sms_gatewayimportclient,domain,Encryptorlogin=os.getenv("ANDROID_SMS_GATEWAY_LOGIN")password=os.getenv("ANDROID_SMS_GATEWAY_PASSWORD")# encryptor = Encryptor('passphrase') # for end-to-end encryption, see https://sms.capcom.me/privacy/encryption/message=domain.Message("Your message text here.",["+1234567890"],)defsync_client():withclient.APIClient(login,password,# encryptor=encryptor,)asc:state=c.send(message)print(state)state=c.get_state(state.id)print(state)asyncdefasync_client():asyncwithclient.AsyncAPIClient(login,password,# encryptor=encryptor,)asc:state=awaitc.send(message)print(state)state=awaitc.get_state(state.id)print(state)print("Sync client")sync_client()print("\nAsync client")asyncio.run(async_client())ClientThere are two client classes:APIClientandAsyncAPIClient. TheAPIClientis synchronous and theAsyncAPIClientis asynchronous. Both
implement the same interface and can be used as context managers.MethodsThere are two methods:send(message: domain.Message) -> domain.MessageState: Send a new SMS message.get_state(_id: str) -> domain.MessageState: Retrieve the state of a previously sent message by its ID.HTTP ClientThe API clients abstract away the HTTP client used to make requests. The library includes support for some popular HTTP clients and trys to discover them automatically:requests-APIClientonlyaiohttp-AsyncAPIClientonlyhttpx-APIClientandAsyncAPIClientAlso you can implement your own HTTP client that conforms to thehttp.HttpClientorahttp.HttpClientprotocol.ContributingContributions are welcome! Please submit a pull request or create an issue for anything you'd like to add or change.LicenseThis library is open-sourced software licensed under theApache-2.0 license.
Package: android-text-tool
Android Text ToolDescriptionThis script is useful for extracting all strings from a multimodule Android project. It supports different output formats
which may be useful for you. Currently supported csv, yaml, dynodict-yaml. JSON is coming soon.NOTE: Before starting using this tool, please run in your project root otherwise you may get a lot of rubbish strings in
the output file:./gradlewcleanInstallationThis tool can be installed via PIP repositiory by running the following command:pipinstallandroid-text-toolor if you use Poetry, run this:poetryaddandroid-text-toolUsageBasic usageRun the tool in the root directory of your project(please, don't forget to clean it before to prevent extracting strings from different libraries you use).android-text-tool.-fcsvAs a result, you'll get a CSV file which contains all string resources from your project.Advanced usageandroid-text-tool[-h]-f{csv,yaml,dynodict}[-lDEFAULT_LANGUAGE]pathPositional arguments:path- the path of the Android project to scan.Optional arguments:-f {csv,yaml,dynodict},--format {csv,yaml,dynodict}- the output format to save the translations. Default is csv.-l DEFAULT_LANGUAGE,--default-language DEFAULT_LANGUAGE- the default language for the translations. This language code will be used for strings insidevaluefolder. Default is en.Supported output formatsCSVThis is a comma-separated sheet.Example:key,es,ht,fr,en
translation1,Test1,Test1,Test1,Test1
translation2,Test1,Test1,Test1,Test1
translation3,Test1,Test1,Test1,Test1YAMLExample:languages:-en-ht-es-frname:Exported project - 2023-11-03T02:29:50translations:-key:strings.xmltranslations:-key:translation1values:en:Test1fr:Test1ht:Test1-key:translation2values:en:Test1fr:Test1ht:Test1Dynodict YAMLThis format is for a tool which is going to be released soon. It's under development. Please, do not use it.
Package: android-toast
Toast AndroidModule that allows you to create a native toast for android with python,
this module must be used with pydroid3, kivy and kivymd, you can create
a kivy app and use toast_android,This module allows you to change the
position of the toast to wherever you want with just passing some parameters,
you can also choose the duration of the toast, below you will see an example of use.Example:from androidtoast import toast
 from kivymd.app import MDApp
 from kivy.lang import Builder
 from kivy.uix.screenmanager import ScreenManager
 from kivymd.uix.screen import MDScreen




 Builder.load_string('''
 <Example>

     MDFlatButton:
         text:"My Toast"
         pos_hint:{"center_x": .5, "center_y": .05}
         on_press:root.show_toast()
 ''')


 class Example(MDScreen):     
     def show_toast(self):
         toast("hello world", True, 80, 200, 0) 



 class Iniciar(MDApp):     
     def build(self):
         pantalla = ScreenManager()
         screen = Example(name="one")
         pantalla.add_widget(screen)
         return pantalla

 Iniciar().run()Indications:"""
    :param text: text to be displayed in the toast;
    :param short_duration:  duration of the toast, if `True` the toast
           will last 2.3s but if it is `False` the toast will last 3.9s;
    :param gravity: refers to the toast position, if it is 80the toast will
           be shown below, if it is 40 the toast will be displayed above;
    :param y: refers to the vertical position of the toast;
    :param x: refers to the horizontal position of the toast;

    Important: if only the text value is specified and the value of
    the `gravity`, `y`, `x` parameters is not specified, their values ​​will
    be 0 which means that the toast will be shown in the center.
    """This example can be used in Pydroid3 and in a kivy / kivymd appinstallation:pip3 install android-toast
Package: androidtv
Contributions OnlyI no longer have the time to actively work on this project, and so all future development will be from pull requests submitted by the community.  What I will do is:review pull requests that pass all of the CI checkspublish new releases upon requestAboutDocumentation for this package can be found athttps://androidtv.readthedocs.io.androidtvis a Python package that provides state information and control of Android TV and Fire TV devices via ADB.  This package is used by theAndroid TVintegration in Home Assistant.Installationpip install androidtvTo utilize the async version of this code, you must install into a Python 3.7+ environment via:pip install androidtv[async]ADB Intents and CommandsA collection of useful intents and commands can be foundhere(credit: mcfrojd).AcknowledgmentsThis is based onpython-firetvby happyleavesaoc and theandroidtv component for Home Assistantby a1ex4, and it depends on the Python packagesadb-shell(which is based onpython-adb) andpure-python-adb.