APK compatibility - General Questions and Answers

Hi guys. Im trying to install mobile NFC payment app of my bank. As Im rooted, I can not see it in device play store. I managed to download a copy using friends non rotted phone and install it manually. Unofortunately that did not work, it just said "App not installed". Then I learned, that AndroidManifest.xml file from decompiled apk can tell me what are the compatibility restrictions of the app to change build.prop accordingly. However, looking at AndroidManifest.xml did not give me any clue what should cause an issue. Could anyone who is more skilled in this topic tell me what are the restrictions from attached decompiled file? Thanks.

Related

[Q] Learning Droid OS & APK Files

Hello, I am new to xda-developers.com and I am also new at messing around with my Droid OS and I have taken a particular interest in the APK Installation files for app programs. I have recently bought an app from Google Play, and I am trying to share the APK file with a family member. Whenever my family member tries to install the file he gets "Application Not Installed" error and yes "Allow installations from unknown sources" is checked. After doing some research I have come to the belief that maybe the APK file that I am trying to share is Copy Protected. Thus, I would like to get some input on this and if I am right about it, is there a way to remove Copy Protection from APK files? If I am wrong, could someone please help me figure out why the APK file won't install?
Use es file explorer I've never had a problem backing up apk files with it and never had issues with them not installing. However, when the app uses its most likely built in license check it may deactivate or bump back to a trial version.
Sent from my SCH-I545 using XDA Premium 4 mobile app

[Q] "google play services" requirement without gapps

Hi,
I run OmniRom without gapps (with NOGAPPS actually) and there's an app that refuses to start with the error "google play services is not installed, contact the device manufacturer".
Is there anything I can do to "fool" the app in thinking GSF is installed? I don't care about the push notifications the app is using.
Thank you.
wkwkwk said:
Hi,
I run OmniRom without gapps (with NOGAPPS actually) and there's an app that refuses to start with the error "google play services is not installed, contact the device manufacturer".
Is there anything I can do to "fool" the app in thinking GSF is installed? I don't care about the push notifications the app is using.
Thank you.
Click to expand...
Click to collapse
What is this problematic app?
thenookieforlife3 said:
What is this problematic app?
Click to expand...
Click to collapse
Hello. Thanks for your reply. It's:
https://play.google.com/store/apps/details?id=nz.co.asb.asbmobile
I tried using apktool to decompress it, remove the dependencies from AndroidManifest.xml but I couldn't compile it back.
Thoughts?
Thank you
wkwkwk said:
Hello. Thanks for your reply. It's:
https://play.google.com/store/apps/details?id=nz.co.asb.asbmobile
I tried using apktool to decompress it, remove the dependencies from AndroidManifest.xml but I couldn't compile it back.
Thoughts?
Thank you
Click to expand...
Click to collapse
The hard thing about decompressing, editing, and recompiling apps is that when you recompile it you also have to resign it. See, when you take apart an app the signature is stripped, and the signature is what allows the app to install properly.
Fortunately, there are several utilities out there that will help you do this.
thenookieforlife3 said:
The hard thing about decompressing, editing, and recompiling apps is that when you recompile it you also have to resign it. See, when you take apart an app the signature is stripped, and the signature is what allows the app to install properly.
Fortunately, there are several utilities out there that will help you do this.
Click to expand...
Click to collapse
The problem wasn't the signing part, I wasn't reaching that step since the apk wasn't building anymore afterwards, it was giving out errors about not finding some files (I don't recall exactly as I haven't tried lately).
Would you recommend a particular app (ideally to run under linux but can manage with Windows if need be) to decompile and compile an apk?
Thank you
wkwkwk said:
The problem wasn't the signing part, I wasn't reaching that step since the apk wasn't building anymore afterwards, it was giving out errors about not finding some files (I don't recall exactly as I haven't tried lately).
Would you recommend a particular app (ideally to run under linux but can manage with Windows if need be) to decompile and compile an apk?
Thank you
Click to expand...
Click to collapse
What I meant to say was, don't actually decompile the app and then try to recompile it! It will give you errors, as you've seen.
Instead, try the following steps:
1. Copy the .apk file to a safe, secure place as a backup.
2. Download and/or open up an archive management program, i.e. 7zip or WinRAR.
3. Navigate to the directory where the .apk you want to mod is located. Not the backup one, of course!
4. Extract the .apk to a folder of your choice. Folder name example - "[name_of_app] modding" (without quotes).
5. Open up your regular file manager and navigate to that folder you just extracted to. Modify the files you want to modify.
6. Now, pay close attention to this part - In your archive manager, go into the acual .apk file you want to modify. It will just open right up as if it was a .zip.
7. Navigate to the directory in the .apk where the files you modded belong.
8. Now, back to your file explorer, click-and-drag the file(s) you modified from the file explorer window to the archive manager window. Drop the file in the archive manager window. It will ask you if you're sure that you want to overwrite, hit "Yes".
9. Once the file's in place, close the archive manager to finalize the change.
10. Now, all you have to do is put the modified app back on your device, use a tool like ZipSigner (find on Google Play) to resign it, and install!
Please do give me a few post thanks if the above instructions helped you. :good:
thenookieforlife3 said:
What I meant to say was, don't actually decompile the app and then try to recompile it! It will give you errors, as you've seen.
Click to expand...
Click to collapse
Thanks for the detailed instructions, however, to modify AndroidManifest.xml (where the GSF requirement is put) you need to decompile the apk using apktool or similar.
Simply unzipping the APK will not allow you to change AndroidManifest.xml.
I wish it were that simple
wkwkwk said:
Thanks for the detailed instructions, however, to modify AndroidManifest.xml (where the GSF requirement is put) you need to decompile the apk using apktool or similar.
Simply unzipping the APK will not allow you to change AndroidManifest.xml.
I wish it were that simple
Click to expand...
Click to collapse
That's odd, because that method is what has consistently worked for me!

By mistake deleted Download Manager for Google Play Store

Hallo,
I have a Gigaset QV 830 Tablet and rooted it a few month ago. With Tiatanium Backup (I think), I deleted accidently the Download Manager.
So now, Google Play Services do not work anymore. I think, it must be the DownloadProvider (or DownloadProviderUI(?)) akp file, which is missing, its not here anymore.. I don't know, where or how to get this file, so that I could install Download Manager again. Thank you in advance!
You'll have to find a stock based rom or someone else with your tablet that is rooted to extract the apk from. Once you have it, you will need a root enabled file manager to put the app back in the correct folder and set the permissions to 0644.
Hello,
thank you for your answerr. Hmm, I am only asking myself, where to find someony with Gigaset QV830 rooted Tablet, who could send me the apk file. I will take a look, ...
Do you still need that all
Sent from my N9500 using XDA Free mobile app

How to manually, I said manually, install an APK

I have an APK that will not install. Just will not. "Package conflicts with another package with the same name", it says. The truth is that the package DOES NOT conflict with any package of the same name, but the system believes it does. So I need help. I've tried to troubleshoot this various ways, looking for any traces of old installations, but so far, I haven't been able to remove anything that makes a difference.
So listen, here's what I want to know. How do I manually install an apk? And when I say manually, I MEAN MANUALLY. I find all kinds of search results that claim to tell me how to manually install an APK, BUT THEY'RE LYING. They just tell me how to install an APK that I have downloaded using the existing system installer, WHICH DOESN'T HELP ME. Sorry, but I'm frustrated with all the guides that claim they're going to tell me what I need but don't deliver.
Manually. I mean manually. I want to put the APK into a folder in data/app, create any other folders that are needed, add the application info into whatever files Android has that tell it what is installed, do whatever else is necessary. I want to do a fully manual installation. No using the system installer. No using any root installers. Putting all the files where they go and making all the changes MANUALLY.
Can anyone please tell me how to do this?
Can you install the app via adb? adb install appname.apk? Sorry, I don't know how to install one manually. I understand what you're asking for but I don't know the answer.
I'd like to give the update that I did finally manage to install the app. I'm pretty sure what finally got me there was deleting its information from /data/system/packages.xml and rebooting. But I'd still like an answer to this question for the future. Failing that, though, if need arises, I would be inclined to take the steps in this guide, https://android.stackexchange.com/questions/200974/how-to-manually-remove-an-app, and follow them in reverse.
"Package conflicts with another package with the same name".
In fact, what identifies an app is its package id. So it means that they have a same package id.
For example, the package id for Instagram is 'com.instagram.android'.
FailSafeNow said:
I want to put the APK into a folder in data/app, create any other folders that are needed, add the application info into whatever files Android has that tell it what is installed, do whatever else is necessary. I want to do a fully manual installation. No using the system installer. No using any root installers. Putting all the files where they go and making all the changes MANUALLY.
Click to expand...
Click to collapse
I need a way to install an app manually without using package installer, by putting the apk and any related files in the correct places, anyone know how to do this? i have a rooted phone, I'm just not sure which files need to be edited so the phone "knows" the app is installed. Please help! Thanks!

Question Install Android app with many apks

Help, i would like to try and install an app from my government id, so maybe I can go to more places without both wallet and cellphone. Knowing it's a government app, I'm 100% sure it will never make it to a smartwatch...
When I tried to pull the APK from the cellphone, i saw that on the path it had the base.apk and done others, like config_xx.apk, another .apk and one like arm64.apk...
If I shall try and install it to the watch, should I do it on each one of the apks? Adb install-multiple?
Uninstall all apks on phone, isolate the necessary apk & find it's dependencies
miravision said:
Uninstall all apks on phone, isolate the necessary apk & find it's dependencies
Click to expand...
Click to collapse
So I pulled all apk files from the app to my PC and used this program from here, called SAP (Split Apk Packer).
I was able to get it all into 1 apk, but when trying to install on the watch I get an error. If I don't sign the recompiled .apk with this SAP program I get the "failure collecting certificates". If I check the Sign apk on the program, then I get another error "failed to extract native libraries", as the photo attached.
I'm not an expert at all, I just try my stuff... so if anyone has any idea if it's at all possible, I would really appreciate the help.
EDIT: apparently, this error could mean that the device is not supported, from what I read. Don't know if that's really it though

Categories

Resources