[Q] Certificate error when uploading to store - Android Q&A, Help & Troubleshooting

Hi all,
Im new here so please correct this thread if I posted it in the wrong forum.
My problem is as following:
I made an apk with appyet.com and downloaded it. There are annoying ads in it so i removed them with Lucky Patcher (Apk multi-tool was not working! ) So i saved it without ads as another apk and transfered it to my pc. When i tried uploading it is said that is was not zipaligned. I zipaligned the apk with the zipalign tool in tool folder but when i tried to upload it says:
You have uploaded an apk that is signed with an restricted certificate. You have to upload an apk signed with your own certificate.
Does anyone knows how to fix this error?
Sorry for any mistakes in my English

Related

[Q] Best way to merge back the ".apk" and ".odex" files to be 1 ".apk" file

[Q] Best way to merge back the ".apk" and ".odex" files to be 1 ".apk" file
Hey everyone,
I am seeking some help for some way to get the 2 files of .apk and .odex to get back to their original state of only one install-able package .apk file..
I tried the "de-odexing" method of the Android Kitchen, but it didnt seem to be working fine. Error message of "There is a problem prasing the package."
Any other ideas how I can extract a single application from Stock or Customized ROM?
I need this help for building a rom that supports multi languages that comes with Market installed within it and having root access.
Any help would be much appreciated!
omar.elhelw said:
Hey everyone,
I am seeking some help for some way to get the 2 files of .apk and .odex to get back to their original state of only one install-able package .apk file..
I tried the "de-odexing" method of the Android Kitchen, but it didnt seem to be working fine. Error message of "There is a problem prasing the package."
Any other ideas how I can extract a single application from Stock or Customized ROM?
I need this help for building a rom that supports multi languages that comes with Market installed within it and having root access.
Any help would be much appreciated!
Click to expand...
Click to collapse
It's the only way. You have to deodex the file. The error message "There is a problem prasing the package" is not a deodex message to the best of my recollection.
djmcnz said:
It's the only way. You have to deodex the file. The error message "There is a problem prasing the package" is not a deodex message to the best of my recollection.
Click to expand...
Click to collapse
Sorry I didnt get what you mean completely.
What I have tried: I used kitchen to deodex the files, copied the .apk file to my phone, tried to install it. this error message shows up!
by the way, its the same message that shows if you copy the .apk file without the .obex file to the phone and try to install it..
Any help would be appreciated!
hmmm
I would like to bring back universal inbox (from froyo to CM7 nightly, Droid X) and a few other items
no go?
omar.elhelw said:
Hey everyone,
I am seeking some help for some way to get the 2 files of .apk and .odex to get back to their original state of only one install-able package .apk file..
I tried the "de-odexing" method of the Android Kitchen, but it didnt seem to be working fine. Error message of "There is a problem prasing the package."
Any other ideas how I can extract a single application from Stock or Customized ROM?
I need this help for building a rom that supports multi languages that comes with Market installed within it and having root access.
Any help would be much appreciated!
Click to expand...
Click to collapse
U can use baksmali.jar to de-assemble and smali.jar to assemble.
U need java virtual machine
1) Download files from here http://code.google.com/p/smali/downloads/list
2) read this wiki http://code.google.com/p/smali/w/list
3) Get more Knowledge from here
http://forum.xda-developers.com/showthread.php?t=537779
4) then after converting odex to classes.dex put inside apk(Use winar and change extension of apk to zip and open with winrar and remove meta-inf
5) put classes.dex to ur zip file by draging
6) change extension to apk again
7) Download autosign apk tool
http://forum.xda-developers.com/showthread.php?t=471634
8) Sign ur apk and install
Can someone help me to merge these two files into a normal install apk package please
Merge Jobmanager.apk and Jobmanager.odex => one apk file
Thanks
coolpixs4 said:
Can someone help me to merge these two files into a normal install apk package please
Merge Jobmanager.apk and Jobmanager.odex => one apk file
Thanks
Click to expand...
Click to collapse
Try this: http://forum.xda-developers.com/showthread.php?t=1879128

[Q] APK files installation problem

I have APK files in my download folder on Samsung Galaxy 3. I am having problems installing these files. How do I do this?
1. I click on the APK file and it gives me parsing error.
2. I then moved the files to the root directory in system\apps and tried from there. Didn't work. I get JAVA R2ME runtime error.
3. I have the J2ME files in my download folder. Where do I place them?
It's been two weeks and I am not having luck installing my APK files which are a few. I am a newbie and would appreciate help.
Apologies for posting this same question on another thread.
Thanks.
Albeli said:
I have APK files in my download folder on Samsung Galaxy 3. I am having problems installing these files. How do I do this?
1. I click on the APK file and it gives me parsing error.
2. I then moved the files to the root directory in system\apps and tried from there. Didn't work. I get JAVA R2ME runtime error.
3. I have the J2ME files in my download folder. Where do I place them?
It's been two weeks and I am not having luck installing my APK files which are a few. I am a newbie and would appreciate help.
Apologies for posting this same question on another thread.
Thanks.
Click to expand...
Click to collapse
what apk's are you tying to install? have you given your file explorer root permissions? finally did you change permissions in system/app after you merged the apk's?
Parsing error is usually due to incomplete download of the app.
Try downloading it again.
Make sure "unknown sources" is checked in settings.
And one more thing,
If you did a patch to that app before, you will have to delete the associated .Odex file from data/app.
- - - - - - - - - - - - - - - - - - - - - - - - - -
LIFE! MAKE IT WORTH LIVING!
that error happens when u haven't downloaded the files properly
I have expetienced it many times.
just download them again.

[Q] [HELP!!] Deleted some odex, now no more apk installer

Was trying to install some APK manually then i got a "LOW STORAGE SPACE" warning. Check online, was 'guided' to delete some .odex file.
I think i deleted some wrong files but I can't remember which. After deleting the .odex, I was able to install the APK I wanted to install.
But now, which is few hours later with a few reboot done to my phone. I can't use Google Play (getting error 406), I can't manually install APK which I transferred from my notebook. When I try to open the APK file (and few others which previously worked) via Root Explorer or File Commander both apps return the similar warning, somethings that says "there are no apps capable of opening this kind of file"
Any help here?
ed0gawa said:
Was trying to install some APK manually then i got a "LOW STORAGE SPACE" warning. Check online, was 'guided' to delete some .odex file.
I think i deleted some wrong files but I can't remember which. After deleting the .odex, I was able to install the APK I wanted to install.
But now, which is few hours later with a few reboot done to my phone. I can't use Google Play (getting error 406), I can't manually install APK which I transferred from my notebook. When I try to open the APK file (and few others which previously worked) via Root Explorer or File Commander both apps return the similar warning, somethings that says "there are no apps capable of opening this kind of file"
Any help here?
Click to expand...
Click to collapse
from your question I guess it is the packageinstaller.apk/odex you deleted but not sure
with out the name of the files you deleted you cant get it to work
so simply reflash the rom
sangalaxy said:
from your question I guess it is the packageinstaller.apk/odex you deleted but not sure
with out the name of the files you deleted you cant get it to work
so simply reflash the rom
Click to expand...
Click to collapse
Well, reflash after trying various ways...
Thanks anyway

How to block certain APK Installs automatically in Android AOSP Code?

Is there a way you can add apk package names to a file so when a user tries to install any of them, it fails with an error message that the app couldn't be installed?
Here is a patch for Android 10 but I don't know how to feed an external file eg. system/etc/blocked.xml to it so only those apps are blocked or fail to install but all other apps can still install normally.
Is there another way too to add the package names to block from being installed to the Android code itself so there isn't a system/etc/*.xml file they can see and easily delete.
Patch
https://pastebin.com/L892ntMP
Hi ,
Your pastebin link is not working can you please share the patch or the link again
dewettie said:
Is there a way you can add apk package names to a file so when a user tries to install any of them, it fails with an error message that the app couldn't be installed?
Here is a patch for Android 10 but I don't know how to feed an external file eg. system/etc/blocked.xml to it so only those apps are blocked or fail to install but all other apps can still install normally.
Is there another way too to add the package names to block from being installed to the Android code itself so there isn't a system/etc/*.xml file they can see and easily delete.
Patch
https://pastebin.com/L892ntMP
Click to expand...
Click to collapse
Can you please share the patch or the link again
If I remember this correctly, the signature of apk to be installed has to be the same as before if apk has been removed keeping the data. Now, rewrite the signature of the apk and install it and then uninstall keeping the data. That might make it harder to install that app in future...

Sign In with google on modified APK file

Hi every1,
Important threads:
- https://www.thecobraden.com/posts/unblocking_firebase_ids/
Explanation:
I've been messing, for some time now, with android tampering/reverse engineering. But, there is a problem that I can't seem to overcome, neither find any solution for it on any foruns, that is "Signing In with Google" on the app after modifying it (decompiling/recompiling).
The process I follow is as simple as:
Pulling the APK file from my android using adb;
Opening the APK file using jadx-gui to see the contents and search for what I want to change;
Decompiling the APK using APKEasyTool and searching for the .smali file I previously wanted to change;
Changing the file and recompiling the APK with APKEasyTool;
(optional) In case the APK file is splitted, installing it on my device using SAI.
Results:
After this process the app works fine, but as mentioned, I can't no longer sign in on the app with Google. As far as I know, when you click the sign-in button, an HTTP request is made to Google Servers, asking for a token, than can later be used to sign-in on the app (this is made by integrating Firebase in the android project). And, it's in this process that it fails, because on this request it is also sent the SHA-1 fingerprint as a Request Header, which was changed when signing the APK file.
Using a tool like MITMProxy I was able to repeat this request with the APK original SHA-1 (retrieved with keytool -printcert -jarfile <original.apk>), but this requires moving traffic through, for instance, my computer - as a proxy server. (And for some reason it didn't always worked).
Question:
Does anyone have any thoughts on this, or have successfully been able to decompile/recompile an apk and still be able to use Google Sign In option? How can I modify an apk file and still be able to sign in on it with my Google account?
i mean if your device is rooter, you can login in origin apk and use lucky patcher backup data ,install modified apk then do a restore data in to app
Play Services will not allow it unless the apk is signed by Google. The solution is to set the public key for the modified apk and patch Android Framework's signature check to make the system think it's valid.
The yellow smiley face app mentioned above does this, as well as microg.

Categories

Resources