Question adb sideload

Choux

New member
Apr 19, 2023
4
0
1
Visit site
Hello everybody

I am in the following case:
* Android phone started in recovery mode - with option: "Apply update from ADB"
* connected with a usb cable on a Windows 10 x64 workstation
* with ADB and Fastboot commands installed

Only .ZIP files can be installed on the mobile using the command:
adb sideload package_name.zip

If the file is not "signed", the following messages appear on the mobile:
..."verifying update package"
"E:footer is wrong"
"E: signature verification failed"
"Installation Aborted"

My question is :
How is it possible to transform an .APK file into a "signed" .ZIP file?
So the installation of this .ZIP file will not be rejected.


The purpose of this operation is to:
* be able to re-install the Gboard keyboard which is no longer active
* and thus be able to unlock the screen.
Currently when swiping the screen to enter the password, no keyboard appears...

In advance, thank you for your help.

Cordially,
(Kindly excuse my bad English...)
 

fuzzylumpkin

Well-known member
Dec 7, 2012
5,555
2,558
113
Visit site
Have you tried connecting a physical keyboard And entering the password that way? You could also try to obtain the stock software package for your device and flash that to try to restore the keyboard.

I don't think you are going to be able to flash a zip file containing gboard or gapps... not with a stock recovery. The signature it is looking for is from your device manufavcturer, and you can't fake it.

Maybe look at the XDA forums.

Also, your english is perfectly fine.
 

mustang7757

Super Moderator
Moderator
Feb 6, 2017
91,557
6,133
113
Visit site
Hello everybody

I am in the following case:
* Android phone started in recovery mode - with option: "Apply update from ADB"
* connected with a usb cable on a Windows 10 x64 workstation
* with ADB and Fastboot commands installed

Only .ZIP files can be installed on the mobile using the command:
adb sideload package_name.zip

If the file is not "signed", the following messages appear on the mobile:
..."verifying update package"
"E:footer is wrong"
"E: signature verification failed"
"Installation Aborted"

My question is :
How is it possible to transform an .APK file into a "signed" .ZIP file?
So the installation of this .ZIP file will not be rejected.


The purpose of this operation is to:
* be able to re-install the Gboard keyboard which is no longer active
* and thus be able to unlock the screen.
Currently when swiping the screen to enter the password, no keyboard appears...

In advance, thank you for your help.

Cordially,
(Kindly excuse my bad English...)
Welcome to AC!
So the keyboard doesn't show up on the lock screen?
Which device?
Have you tried safe mode ?
Can reset the device in recovery by factory reset then enter Google credentials.
 
  • Like
Reactions: Laura Knotek

Choux

New member
Apr 19, 2023
4
0
1
Visit site
Have you tried connecting a physical keyboard And entering the password that way? You could also try to obtain the stock software package for your device and flash that to try to restore the keyboard.

I don't think you are going to be able to flash a zip file containing gboard or gapps... not with a stock recovery. The signature it is looking for is from your device manufavcturer, and you can't fake it.

Maybe look at the XDA forums.

Also, your english is perfectly fine.
Thank you for your reply.
No I did not connect an external keyboard. I have to by an OTG connector before testing this.
And without any defined keyboard, I don't know if this will work.

The phone is a Wiko Freddy (never root).
With ADB command, RSA message normally send from the computer to the phone does not appear on the phone who is only in charging mode. As the keyboard is disabled, I can not change this parameter too.

In this case, is there any other way on normal boot, to use ADB command (with USB cable) to modify the file where the keyboard is define, or to disable the password (not the PIN code) who start automatically on the boot?

Is there any possibility to copy the configuration file from the mobile to the pc, to update it, and replace it on the phone ?

I would mike to find (if that's possible) to preserve data and installed applications already installed.
At last, if nothing is possible, I will reset the mobile.

Thank you so much for your help.
 

fuzzylumpkin

Well-known member
Dec 7, 2012
5,555
2,558
113
Visit site
There isn't really a way to do what you want... Android prevents you from doing those kind of modifications for security reasons.

What I would try is deleting the cache partition from recovery, booting into safe mode as Mustang suggested and finally connecting a physical keyboard.

If none of that works I think you might have to factory reset.
 

Bla1ze

Community Manager
Staff member
Oct 30, 2010
636
1,042
93
Visit site
Hello everybody

I am in the following case:
* Android phone started in recovery mode - with option: "Apply update from ADB"
* connected with a usb cable on a Windows 10 x64 workstation
* with ADB and Fastboot commands installed

Only .ZIP files can be installed on the mobile using the command:
adb sideload package_name.zip

If the file is not "signed", the following messages appear on the mobile:
..."verifying update package"
"E:footer is wrong"
"E: signature verification failed"
"Installation Aborted"

My question is :
How is it possible to transform an .APK file into a "signed" .ZIP file?
So the installation of this .ZIP file will not be rejected.


The purpose of this operation is to:
* be able to re-install the Gboard keyboard which is no longer active
* and thus be able to unlock the screen.
Currently when swiping the screen to enter the password, no keyboard appears...

In advance, thank you for your help.

Cordially,
(Kindly excuse my bad English...)
Your process for doing this is wrong. You're not supposed to use Recovery or the "Apply Update from ADB" function. That's well, for software updates. What you're wanting to do is install an APK using ADB. This is more in line with what you're wanting to achieve - https://www.droidviews.com/install-apk-files-using-adb-commands/. However, you need to be enable USB Debugging for that which requires accessing the settings, so perhaps wiping the device is your best bet.
 

Choux

New member
Apr 19, 2023
4
0
1
Visit site


Thank you for all your tips and remarks.

However there is another solution that can be tested before resetting a mobile phone.
nobody thinks about it...

Thanks to Hadron on Androidforums.com for his help and for this tips...
I hope it can help someone else in the same situation..

On the computer, visit play.google.com via the web browser,
and sign in to your Google account.

Find GBoard and you should see a green button "install" or "install on more devices".
Click on that, if it asks you to select a device select your phone, and tell it to install.

prerequires : The phone must be linked with a google account.
If not, the installation stops with an error

This can be done whether the mobile is locked or not.

If the mobile is linked to a google account:
there will be no problem to install the package on the phone connect with an usb cable.

If the mobile is not linked to a google account :
As Google can push the package and install the package remotely, I suppose that a way should exist
to instal the package with a tool from the computer.

============
To complete this procedure, if you have any solution of this part, it will be great.
============

Cordially
 

Bla1ze

Community Manager
Staff member
Oct 30, 2010
636
1,042
93
Visit site
Thank you for all your tips and remarks.

However there is another solution that can be tested before resetting a mobile phone.
nobody thinks about it...

Thanks to Hadron on Androidforums.com for his help and for this tips...
I hope it can help someone else in the same situation..

On the computer, visit play.google.com via the web browser,
and sign in to your Google account.

Find GBoard and you should see a green button "install" or "install on more devices".
Click on that, if it asks you to select a device select your phone, and tell it to install.

prerequires : The phone must be linked with a google account.
If not, the installation stops with an error

This can be done whether the mobile is locked or not.

If the mobile is linked to a google account:
there will be no problem to install the package on the phone connect with an usb cable.

If the mobile is not linked to a google account :
As Google can push the package and install the package remotely, I suppose that a way should exist
to instal the package with a tool from the computer.

============
To complete this procedure, if you have any solution of this part, it will be great.
============

Cordially
Did it solve your problem?
 

Trending Posts

Forum statistics

Threads
943,101
Messages
6,917,287
Members
3,158,818
Latest member
Nanran21