After compiling i must sign apk with rom signature to use internal RS-232 and GPio, and work well.
This apk is installed via ADB, cannot be installed using B4A bridge.
I have a problem to auto-update Apk, i have tryed AppUpdating 2.0 LIB
It work well only if apk isn't signed.
After Sign when it try to install generate an install error.
to able to accss /dev/ttyAMA3 and GPio device i have to sign apk with platform signature using signak.jar : java -jar ./signapk.jar platform.x509.pem platform.pk8 ./SerialPortDemo.apk SerialPortDemo-Signed.apk
i have this in manifest : SetManifestAttribute(android:sharedUserId,"android.uid.system")
after compiled and externally signed Apk if i try to install using : ADB install -r myapk-signed.apk
it start and work well
I have to remote update apk without using playstore.
If i put updated version of apk in download folder and try to install using FileManager have this error :
App not installed.
The package conflicts with an existing package by the same name.
but is the same apk with same name and sign
installing using ADB : ADB install -r myapk-signed.apk
installation Ok
I think that problem is this line in manifest : SetManifestAttribute(android:sharedUserId,"android.uid.system")
if i try compile ad install apk use B4A have this error :
adb: failed to install PagAmico_RAPID_DEBUG.apk: Failure [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE: Package couldn't be installed in /data/app/pagamico.app.apk-1: Package pagamico.app.apk has no signatures that match those in shared user android.uid.system; ignoring!]
if i remove it from manifest app will be installed and run, but i can't access to /dev/ttyAMA3 and GPio device
I have to access to /dev/ttyAMA3 and GPio device, to have rights i compile Apk, but doesn't install it, then sign apk with Rom signature : java -jar ./signapk.jar platform.x509.pem platform.pk8 ./SerialPortDemo.apk SerialPortDemo-Signed.apk
then install apk use adb and it work well
My problem is update apk using auto-update or Play store.
i can't install it
if i install new version using :
ADB install -r myapk-signed.apk