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

[F-Droid] Installation fails - libtermux.so not page-aligned #4

Closed
conrad-heimbold opened this issue Apr 21, 2017 · 9 comments
Closed

Comments

@conrad-heimbold
Copy link

Hi, I just tried to install termux-float via F-Droid (privileged extension installed), but I am getting the following adb logcat error:

15679 15679 I LoadedApk: No resource references to update in package common
15679 15679 I LoadedApk: No resource references to update in package org.cyanogenmod.hexolibre
15679 15679 I LoadedApk: No resource references to update in package ovh.ice.icecons
15679 15690 D DefContainer: Copying /data/user/0/org.fdroid.fdroid/files/install--1832736247.apk to base.apk
982  1061 D NativeLibraryHelper: Library 'libtermux.so' is not page-aligned - will not be able to open it directly from apk.
982  1061 W NativeHelper: Failure copying native libraries [errorCode=-2]
982  1061 I art     : Starting a blocking GC Explicit
982  1061 I art     : Explicit concurrent mark sweep GC freed 62230(3MB) AllocSpace objects, 29(708KB) LOS objects, 33% free, 18MB/28MB, paused 2.830ms total 128.478ms
2800  2800 E AppDetails: install aborted with errorMessage: Error -2: The package archive file is invalid.

Do you know how to fix this?
Thanks for an answer in advance!

@ShapeShifter499
Copy link

I'm also having issues installing from F-Droid but I don't see the same error in my logcat.
termux-float_logcat.txt

System
Moto X Pure
LineageOS 14.1 Nightly 04/10/2017
F-Droid 0.103-alpha2

@brbsix
Copy link

brbsix commented Apr 21, 2017

The APK needs to get zipaligned, e.g. zipalign -f -p -v 4 com.termux.window_9.apk com.termux.window_9-zipaligned.apk

microG project also had this issue with their F-droid builds, see microg/GmsCore#280

@fornwall
Copy link
Member

Was this fixed on the side of F-Droid?

@conrad-heimbold
Copy link
Author

conrad-heimbold commented Apr 21, 2017

No, but because the fix is so trivial, and it is not a fault on the side of termux; I thought this issue should be closed.

@fornwall
Copy link
Member

Ok, we can leave it open to track the issue on this side.

I just created an issue at F-Droid, https://gitlab.com/fdroid/fdroidclient/issues/968.

@fornwall fornwall reopened this Apr 21, 2017
@ghost
Copy link

ghost commented Apr 23, 2017

This is definitely our fault, but I am still not sure what broke down. I moved @fornwall s issue ticket to the server side, see https://gitlab.com/fdroid/fdroidserver/issues/288.

@Seferi
Copy link

Seferi commented Apr 23, 2017

I'm getting the following error after trying to install from F-Droid
Failed to install due to an unknown issue.

LineageOS 14.1, Android 7.1.2, Oneplus 2

@fornwall fornwall changed the title installation fails - libtermux.so not page-aligned (?) [F-Droid] Installation fails - libtermux.so not page-aligned May 22, 2017
fornwall added a commit that referenced this issue May 22, 2017
This is to work around an F-Droid build issue (#4).
@fornwall
Copy link
Member

This is now finally fixed in version 0.10 of Termux:Float which is now available on F-Droid. Thanks for the help fixing this!

@SickBoy-Droid
Copy link

I am not able to install termux float in my Android phone which is running on Android pie!

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

No branches or pull requests

6 participants