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

Create build-termux.sh #623

Open
wants to merge 1 commit into
base: pie
Choose a base branch
from
Open

Conversation

TechnoStone
Copy link
Contributor

Make termux build possible

@budchirp
Copy link
Contributor

Overlays signed with apksigner is broking the package installer so, I should suggest to don't use this script

@budchirp
Copy link
Contributor

If you want to build overlays and you don't have a computer, use gcloud shell its free.

@TechnoStone
Copy link
Contributor Author

TechnoStone commented Aug 20, 2022

Overlays signed with apksigner is broking the package installer

If placing overlays to /system/product/overlay as mentioned in wiki about building overlays, they work as they should. Plus, even overlays built with signapk rarely can be installed as user applications

@budchirp
Copy link
Contributor

Overlay signed with apksigner (build-termux.sh)
Screenshot_20220820-185706_ZArchiver

Overlay signed with signapk (build.sh)
Screenshot_20220820-185723_ZArchiver

@budchirp
Copy link
Contributor

If placing overlays to /system/product/overlay as mentioned in wiki about building overlays, they work as they should. Plus, even overlays built with signapk rarely can be installed as user applications

They work but in my case apks that build with this script brokes package installer also you shouldn't install overlays as user app.

@TechnoStone
Copy link
Contributor Author

apks that build with this script brokes package installer

I couldn't get it, but what is package installer here for? Or is there any other way to test overlays other than putting them to /system/product/overlay (or /system/app/treble-overlay-xxx-systemui for SystemUI overlays) with using rw system or Magisk magic mount?

Hm, at least for testing right on the device with placing to /system/product/overlay or magisk mounting they do their job. By the way, phh suggested (in TG) to try signapk or apksigner. As result, signapk isn't available as termux package, nor Java version works correctly. In result, I've switched to apksigner for this case as PC isn't always available and for testing these apk files do their job as expected

@budchirp
Copy link
Contributor

apks that build with this script brokes package installer

I couldn't get it, but what is package installer here for? Or is there any other way to test overlays other than putting them to /system/product/overlay (or /system/app/treble-overlay-xxx-systemui for SystemUI overlays) with using rw system or Magisk magic mount?

Hm, at least for testing right on the device with placing to /system/product/overlay or magisk mounting they do their job. By the way, phh suggested (in TG) to try signapk or apksigner. As result, signapk isn't available as termux package, nor Java version works correctly. In result, I've switched to apksigner for this case as PC isn't always available and for testing these apk files do their job as expected

Package installer installs apks. Try installing a apk or installing an app from playstore with a overlay generated with build-termux.sh

@budchirp
Copy link
Contributor

Btw, Which device do you have?

@TechnoStone
Copy link
Contributor Author

Try installing a apk or installing an app from playstore with a overlay generated with build-termux.sh

I'm using Nokia 8.1. Currently using both framework and SystemUI overlays built with this script. App installations work fine, both apk and playstore variants

@TechnoStone
Copy link
Contributor Author

Screenshot_20220820-192356

@budchirp
Copy link
Contributor

Interesting. This issue did not only happened to me. In my case overlays build with this script works but I cant install any apks but phh's build.sh works perfectly.
Screenshot_20220820-192349_Telegram

@TechnoStone
Copy link
Contributor Author

By the way I haven't tested this script's behavior outside of Termux environment. There were Termux GitHub release installed, done pkg upgrade, pkg install git xmlstarlet aapt apktool apksigner and this repo downloaded to /sdcard/git
Perhaps outside of this use case something can be broken. I don't have any other ideas about that

@budchirp
Copy link
Contributor

You can use gcloud shell to build overlays even you can ssh into them.

@budchirp
Copy link
Contributor

Overlay signed with apksigner (build-termux.sh) Screenshot_20220820-185706_ZArchiver

Overlay signed with signapk (build.sh) Screenshot_20220820-185723_ZArchiver

@phhusson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants