Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Package]: Android command line tools #17701

Open
1 task done
matheusmoreira opened this issue Aug 26, 2023 · 3 comments
Open
1 task done

[Package]: Android command line tools #17701

matheusmoreira opened this issue Aug 26, 2023 · 3 comments
Labels
package request A new package was requested

Comments

@matheusmoreira
Copy link

Why is it worth to add this package?

Termux already packages numerous tools that support Android application development:

However, the cmdline-tools are missing.

Especially important is sdkmanager which allows downloading and managing multiple Android SDK versions.

Home page URL

https://developer.android.com/tools#tools-sdk

Source code URL

https://developer.android.com/studio#command-tools

Packaging policy acknowledgement

  • I certify that I have read Termux Packaging Policy and understand that my request will be denied in case of violation.

Additional information

It doesn't seem to be permissively licensed. Maybe it doesn't allow packaging?

@matheusmoreira matheusmoreira added the package request A new package was requested label Aug 26, 2023
@sylirre
Copy link
Member

sylirre commented Aug 26, 2023

The main issue with sdkmanager is that people can assume it is fully usable in Termux whereas really it is not even if it was ported. The stuff available in Google repository is not entirely platform independent. Certain things are x86_64 only.

SDKs can be manually packaged and be made installable via pkg. The sdkmanager is not needed for this.

SDK platform download URL format looks like (old SDKs):

http://dl-ssl.google.com/android/repository/android-${APILEVEL}_${REVISION}.zip

And for new SDKs:

http://dl-ssl.google.com/android/repository/platform-${SDKLEVEL}_${REVISION}.zip

Commands to download platform for API 24 (Android 7):

curl -LO http://dl-ssl.google.com/android/repository/platform-24_r02.zip

@matheusmoreira
Copy link
Author

SDKs can be manually packaged and be made installable via pkg. The sdkmanager is not needed for this.

I would greatly appreciate that!

It seems I've been a victim of the X-Y problem. My actual objective is to develop Android apps inside Termux. I'm new to this so I assumed one needed the Google tools. If this can be done without them, it'd be great!

@agnostic-apollo
Copy link
Member

For reference #7227 (comment)

Links are outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package request A new package was requested
Projects
None yet
Development

No branches or pull requests

3 participants