Cloning and modifying System Apps [Decompile -> Edit -> Rename -> Compile] - Android Q&A, Help & Troubleshooting

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?

Related

[Q] Modifying .apk

Hello guys. There's this problem that I have with TTR4 for Android, and that problem probably can be solved by modyfing one string in the app's config file (located in /System/App directory), but since it's inside the application file and I can only take a look at it using the Root Explorer - I can't make any changes to that file.
So, my question is: how can I unpack/decompile (dunno which variant is the correct one), change the string in that config file, and pack/compile the .apk back to its state? What tools do I need to do that?

[Q] FC using keyboard when pushed to system

Hey there, I have an xperia S running rooted stock 4.1.2 jellybean, and I'd like to install a keyboard from the playstore as a system application. The keyboard works fine when installed from the playstore, but when I push it to system (and set the permissions properly) it just force closes and does not work at all.
I've pushed various other apps from the playstore into system and they have worked without fault. Is there something finicky with installing keyboards from the playstore as system applications?
Any help would be appreciated, thanks.
open the apk and copy all lib files to your system lib and reboot,done.
-CALIBAN666- said:
open the apk and copy all lib files to your system lib and reboot,done.
Click to expand...
Click to collapse
Hey, thanks for the answer. I actually have no idea how to grab all the libraries from an apk. Any chance you could give me a rundown on how to do it?
So I realise now that "opening" the apk is as simple as changing the extension to zip and opening it like a normal archive. The apk does not contain and libraries, however. Is there any other way to get it to work?

Renaming APK package

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.

Help modifying APK files on recovery image

Hello,
I bought a Umi Diamond X and i just found out that it came with adware.
Since i could not find any custom roms for it, i tried editing the recovery image. Manged to remove some APK files, but SystemUI is giving me some problems.
What I did until now:
1) Used simg2img to convert system.img to a mountable image
2) mounted the previously generated image and deleted suspicious folders from system/app and system/priv-app.
3) Use SPFT to flash the edited image to the device.
However, I found that SystemUI.apk is also making dubious requests in the background, so I need to replace it with a stock version. I tried taking SystemUI.apk from different roms of similar phones, with a similar SoC, and copy-paste it into my edited system.img. However, everytime i do this, SystemUI crashes when the phone starts up.
Going into the stock recovery, i have the option to "check root integraty". This appears to scan (among others) all APK files in system/app and system/priv-app. I see it detects the deleted APKs and the 1 modified APK. Could the installer have a signature of the expected APKs and not install if the file doesn't match that signature?
Is there any way I can replace SystemUI.apk with a known good version?
Bump..
Bump again..

Device app porting

Hello
I have an Android device based on Tegra CPU and with 5.1 Lollipop installed.
It has few own apps installed on it that basically are a custom menu and few apps that run on it.
I downloaded an update of it which contains:
boot.img, file_contexts, system.new.dat, system.patch.dat and system.transfer.list
I managed to extract the system.new.dat file to obtain a system folder which I don't know if it's only an update of the system folder on the device or the full folder instead.
Whithout root I copied the system folder out of the device with the apps that I want.
I'd like to run theese apps on another android device.
What do I need to get out of the device in order to try this apps to run?
Only the apps in system/app folder or there are also libraries that I need?
By don't know about, I copied out of the device also the lib folder.
I'd like to try on android studio the apps firstly.
Is there any way to know if an app needs libraries and which ones?
Thank you so much
Giulio
You can learn how to port app here : https://forum.xda-developers.com/showthread.php?t=2476050

Categories

Resources