[Q] Is it possible to mod and resign official APK files? - Android Software/Hacking General [Developers Only]

I've got unrooted official 2.2 device and I don't want to root it. The only thing I'd like to achieve is to remove some stock applications. While I can't remove apk files I thought about upgrading them to some empty versions without activities and intents.
I can prepare such upgraded apk with modified manifest without problems. The problem is to make an actual upgrade. From what I read the apk needs to be signed with the same key as the original. I get 'already exists' error which probably means the same resource but different certificate.
Is it possible to hack/resign such a file to be able to upgrade the stock application?

Related

AT&T Tilt Cab File Help

I have an AT&T tilt device and have replaced the phone skin on my device by editing the images on the phone. I can manually put the rebuilt files back on the phone without error. Everything works fine. I'v created a cab file install, to change the images in a more automated fashion. This also is working; however, the install is then recorded by the device and with each following install I'm warned of the already existing app. Keep in mind I'm not adding or removing any files just overwriting them. My questions are as follows.
Is there any way to install the files without the device recording the install?
Is there a way to supress the warning messages about the already installed software.
Is there a way to prompt the user to restart the device after an install.
i have never done these things myself (except removing the warning through a reg edit)
but they may be possible through "cab manager" here
I am using cab manager to create the cab files, I guess I was hoping someone with more experance with it could point me in the right direction.

[Q] Is it safe to bypass the hash check in updater-script (from update.zip)?

I have a custom Email apk with my FRG22D build on my Droid phone. Trying to update now to FRG83D, but it doesn't like the Email apk mismatch. Does anyone have an idea if it's ok to omit these lines in the updater-script file (that resides in update.zip)?
assert(apply_patch_check("/system/app/EmailGoogle.apk", "6084f7aa8b61040bc2ef81cb6c2733fedd771e11", "35fd89388108f2e84d1c5e24235727d78705b595"));
set_progress(0.066739);
assert(apply_patch_check("/system/app/EmailGoogle.odex", "08a0ca76aa3c134b44c48102349418c7c053441e", "d74645ddedda58c33bf5059ae1bfe95cda764cd1"));
set_progress(0.083266);​
Would the update still work? That is, does the updater replace these files (in which case this should work), or modify only certain parts of them (won't work)?
I unfortunately don't have the original Email APK that came with FRG22D.
No one knows?

[Q] How to verify APK signature

Hello.
I want to know how can I verify the digital signature of an APK file.
I'm currently downloading what calims to be a leaked Nexus 4 system dump.
When I right click->Properties on an exe file (on Windows), I can see Digital Signatures tab and there I can see certificates etc.
I want to do something similiar to APK files. In my current situation, I want to make sure apps I'll find on the download are actually unmodified, Google-made thing.
This will also come in handy in other situations.
Solutions that work on Windows are great, solutions that work on Android are also OK.
Thanks.

[Q] How to create odex from apk?

I've done a lot of searching for how to odex an apk and the only way I could find involves downloading a binary called "dexopt-wrapper" from a file host or attachment. I don't think it's a really good idea to run unverified binaries downloaded from the internet as root ...
Does anyone know where this program comes from, if the source code is available or how to build it?
Is there any way to create an odex using AOSP tools? I know there is a file in AOSP called /system/bin/dexopt but I can't figure out how to use it.

[Q] Any option to detect changes in apk files

Hello guys.
I am wondering if there's any option/programme/app that can detect changes in apk files.
For example:
A dev releases a mod for something, let's say swaps a .png files to a custom .png and shares the mod in a thread.
And i want the same mod but in a different .png.
Now i can ofcourse ask the dev to do it, which is easy but i wont learn anything.
So i decide to try to make it for myself, but having no past experience with android i don't know how to do it.
And here's where the app/programme comes in (if there is one, ofc). A software that can detect any kinds of changes after decompiling apk files. Now many of you know that apk files have several folders inside, and inside those folder are various files.
So this software (if it exists) could be able to detect changes in the modded apk compared to my unmodded apk, and tell me where exactly the change(s) have been made.
In this way i don't need to bother a dev, and i maybe start to learn how to mod special areas of my phones UI.
Thanks for any reply!
Good day!

Categories

Resources