modifying apk's to install alongside system apps - Vibrant General

is it possible to modify an apk so it does not have to replace the stock version? for example, if i wanted a new latinIME i would have to replace the original latinIME. can i rename appX to appX(2)?

Related

[Q] Modifying Stock Keyboard

Hey all,
I was wondering whats the process to modify the stock multi-touch keyboard for the Droid 2? I was able to do it with the multi-touch keyboard that Punk.Kaos ported to the Eris, using some Windows batch files for extracting the apk source, compiling, signing, etc. I just can't remember for the life of me what that little program was called. Any ideas?
Thanks!
it would be nice since the space bar is soooo small i keep pressing . instead of space 70% of the times
Alright, I was able to get the program I was thinking of, it is called APK Manager. But the keyboard is a odex file... Which I don't know how to extract the XML files from... Yet.
I'd de-odex before you try to extract. It will be a lot easier. There's the method I used here.
What exactly is de-odex'ing? How will it affect my phone?
Deodexing just means that all of the stray .odex files will be put back into the correct .apk files this is done mostly for theme purposes in order to edit the services.jar file which has to be de-odexed before it can be edited. It won't corrupt anything if you do it right nothing should change on the outside the phone devs leave the .odex files out for loading reasons but nothing significant should change but you might experience a slightly slower boot up process but like I said nothing significant. Most ROM's now are de-odexed though.
So I deodexed my phone so I could work on the LatinIME.apk package. Using the APK-Manager for Linux, I was able to (0) pull the APK from my phone. Then I (9) decompiled the APK, edited the XML files as I wanted.
Now, from here I'm not entirely sure which direction to take. I tried running (13) Compile APK / Sign APK / Install APK, but I got an error saying something on how the signatures didn't match up. Then I tried running (3) ZIP APK (5) Zipalign APK then (8) ADB push, but now I don't even have the keyboard on my phone anymore.
How can I go about doing the correct way to compile my modified code and install it on my phone?
Here are the options I can do, if you're not familiar with APK Manager:
Code:
------------------Simple Tasks Such As Image Editing----------------------
0 Adb pull
1 Extract apk
2 Optimize images inside (Only if "Extract Apk" was selected)
3 Zip apk
4 Sign apk (Dont do this if its a system apk)
5 Zipalign apk (Do once apk is created/signed)
6 Install apk (Dont do this if system apk, do adb push)
7 Zip / Sign / Install apk (All in one step)
8 Adb push (Only for system apk)
-----------------Advanced Tasks Such As Code Editing-----------------------
9 Decompile apk
10 Compile apk
11 Sign apk
12 Install apk
13 Compile apk / Sign apk / Install apk (All in one step)
---------------------------------------------------------------------------
14 Batch Optimize Apk (inside place-apk-here-to-batch-optimize only)
15 Sign an apk (inside place-apk-here-for-signing folder only)
16 Batch optimize ogg files (inside place-ogg-here only)
17 Quit
****************************************************************************
Anyone? I would love to get my stock keyboard back!
Sent from my DROID2 using XDA App

[Q] Trying to modify a system app - what am I missing?

I'm trying to modify Email.apk. I'm currently running stock 3.1 from http://forum.xda-developers.com/showthread.php?t=1154492
Here's what I did:
1. Extracted Email.apk from update zip and dumped using APKTools.
2. Made my modifications - specifically I'm editing a .smali file with my desired changes.
3. Rebuild Email.apk using APKTools.
4. Renamed existing Email.apk and Email.odex for backup.
5. Copy my Email.apk to system\app and set permissions.
6. Reboot into CWM and wipe davlik cache (not sure if this is required).
7. Reboot.
Now the email app no longer exists in list of applications.
What steps am I missing?
If I'm not mistaken You can't edit odexed firmware!
You must first flash a deodexed rom and then change it to your heart's desire.
I guess I'll have to try deodex the rom myself then.
Thanks!
I'm now using Virtuous Picasso which is deodexed and am now able to modify /system/app applications.
However I think the actual problem was I forgot to sign the modified Email.apk. (Also had to sign Exchange.apk also as they need to be signed with the same certificate)
I think as long as the device is rooted you can replace /system/app applications?
See my signature for signing - piece of cake!
If you have a good and clear deodexing tutorial I'd appreciate it

[Q] Apk png change problem

I used vts for changing png of an apk (specifically that GS3 launcher made by Sam-rom)
after changing the png's i recompile it and then i install it manually with system app replacer , the install is successfull but the launcher is not installed.
I can manually install all the other versions but i have problems installing after i changed the pngs.
Decompile the apk with apk tool
Change pngs
Recompile
Sign apk
Put in flashable zip & flash with system mounted
Png must be the same file name & dimensions of the original
marcussmith2626 said:
Decompile the apk with apk tool
Change pngs
Recompile
Sign apk
Put in flashable zip & flash with system mounted
Png must be the same file name & dimensions of the original
Click to expand...
Click to collapse
I used vts for compiling/decompiling which uses apktool.
I signed the apk with mh mahadi's tool
Still the same prob
try this > decompile it then compile it back > sign it > zip it > flash it > It works without mods? Yes, then you're playing with .9.png images wrongly | No, there is a problem in apktool!

[Q] How to install cereberus.apk as a system file?

Hi
I have a question because I don't know how to install cereberus.apk as a system file.
I have single .apk file but in system\app I have some folders with apk files inside.
Do I need to make folder for my apk file or only copy this and change permissions (644)?
And which is the best place for this apk:
*system\app
or
*data\app?
Thanks a lot
If you are rooted you can use titanium backup to change it from a normal app to a system app.
^This
Alternatively you can drop the apk into system/priv-app, fix its permissions and then reboot.

[LGH870][Oreo] How to integrate apps update in rom.

After update from nougat to oreo, I've have problem with integration updated apps in to /system.
I do it like this:
1. copy apk file from data/apk to sd card
2. rename copied apk file to name of /system apk
3. extract lib folder from apk
4. copy newer file to proper folder in /system/app or /system/priv-app and replace file in it
5. Copy lib files extracted form apk to right folder /system/lib or /system/lib64
6. Uninstall update from /data/app
7. reboot + dalvik-cache wipe
In nougat it was working, but in oreo, app after integration, breaks. It cannot be open, and app name changes to random words (ex. google docs name changes to "write com.android").
To repair integrated apps I have to perform a full /data/ wipe.
Is it a some kind of protection? How to do it properly?
TitaniumBackup and Link2SD cannot integrate updates to rom properly without errors since Lolipop.
So no one knows?
or just nobody wants to write?

Categories

Resources