Renaming APK package - Android Q&A, Help & Troubleshooting

Hi,
I have an issue. I need to install an APK, that’s already install on the phone (old version). As this APK is install by default in the phone by Sony, I can’t remove it ( I could root my phone to remove it but I don’t want (for many reasons…)). Installation failed because of conflicting name.
My question is: How I could rename the new APK (deep inside the APK), not just the file name, to avoid conflicting name?
Thanks
KR

I think this is not possible, unless you have the source code, change the package name and recompile the app. Usual behavior should be that a pre-installed app can be updated. Wondering why this does not work on your phone.

Related

[Q] Renaming APKs

I usually download my apks in my computer and send them to my phone so I could archive them or send them to friends easily. The problem is, their file names are very long and hard to read in the phone. If I rename the apk files, would it affect installation-wise, ie it will install as another 'version' of that app. So let say if i installed a renamed apk and update it with another version of the same app, would it interfere?

Edit Custom Rom (help to remove apk's)

Does anyone know an idiot's guide/tool for unpacking a rom, removing unwanted apk's and then repackaging it suitably for install. I can unzip and remove the apk's from the system/app but the problem I have is zipping the package up suitably for install, I understand that the package needs to be signed and I have seen a few guides using openssl and SignAPK but couldn't get a package that would install.
I know I can uninstall some of these apps using an uninstaller app but I would prefer they just weren't in my rom in the first place so I have a relatively clean rom - my phone is basically a glorified mp3 player that occasionally makes some calls and send the odd text so there are a fair few things I just don't need to be installed on the phone.
On my mini pro I'm using the SonyStyle GB rom
http://forum.xda-developers.com/showthread.php?t=1151499
Any help will be appreciated.
stikkki said:
Does anyone know an idiot's guide/tool for unpacking a rom, removing unwanted apk's and then repackaging it suitably for install. I can unzip and remove the apk's from the system/app but the problem I have is zipping the package up suitably for install, I understand that the package needs to be signed and I have seen a few guides using openssl and SignAPK but couldn't get a package that would install.
I know I can uninstall some of these apps using an uninstaller app but I would prefer they just weren't in my rom in the first place so I have a relatively clean rom - my phone is basically a glorified mp3 player that occasionally makes some calls and send the odd text so there are a fair few things I just don't need to be installed on the phone.
On my mini pro I'm using the SonyStyle GB rom
http://forum.xda-developers.com/showthread.php?t=1151499
Any help will be appreciated.
Click to expand...
Click to collapse
Open the zip in something like 7-Zip or WinZip or windows or whatever the default archive manager is on linux, delete the files you want and close it then install. that's it, signing is done on creation by the dev and isn't like a MD5 so it doesn't matter if you modify it
X10man
what i do is i have winrar and i just double click the rom zip file then go to system then go to app then delete the app (and the odex file if it has one) that simple and if you want to add an app just hit add (provided your still on system>app folder) browse to the apk file you want to add then hit hit ok. hope that helps
Cheers guys - from what I had read I thought I had to re-sign the package once I had edited it.

[Q] APK within APK

I am trying to sell my theme on Google Play, but it installs in mnt/asec, which crashes it. I created a apk as an installer which is downloaded from the google play store. Once it is downloaded it, the app will show up in the homescreen. The user has to open it, and it will give the option to install the actual theme i put inside.
APK (Installer)
assets/android_secure_cache.apk
android_secure_cache (is my actual theme) which should install in system/app.
I have signed both the installer and theme with APK Signer, and they both have the same version with package name as well.
and my error when installing is this: an existing package by the same name with a conflicting signature is already installed
I just added a new version number in the android manifest.
is anybody out there?

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...

Cloning and modifying System Apps [Decompile -> Edit -> Rename -> Compile]

Hey guys,
currently trying to mod the default Vivo X70 Pro Plus Camera app and I am wondering if this is possible at all.
I pulled the apk from the phone, used apktool to decompile it, modified it and then compiled and signed it again.
The Problem is: I do not have root and cant overwrite system applications.
Now I'm thinking: Is it possible to rename the app and package to install it as a new app instead of overwriting the existing camera app?

Categories

Resources