General :: Recompile System APK Using ONLY APKTool While Keeping Signature?

May 17, 2012

I don't want to use APK Multi-Tools or APK_Manager or whatever. I want to know exactly what those tools are doing in order to recompile the system apk while keeping the original signature.

What I initially did...

Code:
apktool d "%~dpnx1.apk" "%~dpnx1"

...modify files here...

apktool b "%~dpnx1" "%~dpnx1.apk"

But obviously that's unsigned. I need to sign it, but I want to use the original signature, which I'm guessing is the META-INF stuff, right? So I attempted this...

Code:
apktool d "%~dpnx1.apk" "%~dpnx1"
7za x -o"%~dpnx1-signature" "%~dpnx1.apk" META-INF -r

...modify files here...

apktool b "%~dpnx1" "%~dpnx1.apk"
7za a -tzip "%~dpnx1.apk" "%~dpnx1-signature/*" -mx9

You'll notice I now use 7-Zip to pull out META-INF from the original APK and then insert it back into the recompiled one afterwards.

The only other thing I can think of would be to go with my first method, but then use 7-zip to pull out the compiled files from the unsigned apk and insert them into the signed apk. I haven't tried that yet, but it will be the next one I go with. Every time this fails, though, I have to do a nandroid restore.

For those interested, after running "apktool b" (to build/compile), ignore the output zip. Instead go into the source directory and there is now a build directory. In that is an apk directory. Simply add your changed files to the original untouched APK (if you modified any XML files, then replace resources.arsc; if you added anything to smali, then replace classes.dex; if you added any XML files, then you need to include those as well; for me, i copied resources.arsc, classes.dex, and one new XML file). I used the following command:

Code:
zip -9 ..SystemUI.apk reslayoutstatus_bar.xml classes.dex resources.arsc

I use zip instead of 7za for cosmetic reasons. You can also use "7za a -tzip etc..." if you want.

General :: recompile system APK using ONLY APKTool while keeping signature?


General :: Native APKTool - Looking For App To Recompile Apps Within Android?

May 18, 2013

I'm interested in an app to decompile apps within android. Something like ninjamorph would be great however ninjamorph seems to do the equivalent of extracting an apk instead of leaving an editable app with readable xml files. What is the likelihood of something like this happening? What is preventing it from happening?

View 2 Replies View Related

General :: Recompile System App From Java Files

Aug 20, 2013

I want to add some function to my system music player app. So I decompiled the classes.dex with dex2jar, copied the source code and add the code for my functions. Now my problem is that I do not know how to recompile the app. I can't compile it with Eclipse because it uses some system namespaces (in Eclipse it is an error so I can't compile) How can I recompile the app? I only have the *.java files.

Or can't I use the java files and have to edit the smali files? Of course that's much harder...

View 6 Replies View Related

General :: How To Edit System Apps With APKTool For Android

Nov 1, 2013

how to decompile system apps with apktool for android....

View 2 Replies View Related

General :: How To Decompile / Recompile System Apps From MTK Phones

Dec 21, 2013

how to Decompile/Recompile System apps from MTK phones? I'm using apktool 1.5.2.I can decompile like "SystemUI.apk"But I can't recompile. Even I didn't edit anything yet.Specially those who have MTK phones.

View 3 Replies View Related

Android :: How To Match System Signature With Application Signature On Android Emulator?

Aug 24, 2010

I need to create a Robotium application that would use Settings application to turn ON/OFF WIFi from menu Settings->Wireless & networks->Wi-Fi.I managed to find some sample code here that demonstrates how to launch application by having apk file only.The problem is that my Robotium application should have the same signature with the (system) Settings application.Can I somehow make it work with the Android Emulator?If I compile an Android phone image, how can I use the Android system signature with my application?

View 1 Replies View Related

Android :: Sign My Own Droid App With System Signature?

Sep 3, 2010

I've downloaded and compile Android 2.1 version with signed-google_ion- ota-14721.zip image for my HTC phone. The compile completed successfully and so the system image flash. How can I sign my own Android application with the system signature?

Can someone describe the whole process for signing a user application with system signature as I am completely new with signing process.

View 2 Replies View Related

General :: Why Can't Recompile APK

Aug 18, 2013

The title says all, the decompiling is succesfull, but i cant recompile any apk, this is the log when i try to recompile holo launcher. (using the last apktool)

and the same happen even if i dont edit nothing on the apk and try to recompile.

I have "if framework-res and systemui" resources from my phone

View 1 Replies View Related

General :: How To Recompile Google Now For ICS

Aug 8, 2012

I've been able to successfully disassemble the Google Now apk for ICS devices and made a change to the sounds it makes for "open" and "success". However, xdaAutoTool displays a lot of errors when I try to recompile it.

View 1 Replies View Related

General :: How To Recompile Existing Kernel

Jun 15, 2012

Any TUT in how to recompile an existing kernel so i can make some changes and then recompile it?

View 5 Replies View Related

General :: Recompile APKs Manually?

Mar 3, 2012

Everywhere i look redirects to apkmanager.. Which is not working for me.. Any manual way to recompile an apk.. Or an alternative to apk manager.

SPH-D710

View 6 Replies View Related

General :: APKTool Not Recompiling Gmail App?

Jan 14, 2014

I tried to decompile the Gmail.apk with Apktool, but it said: can't decode attr value, value=0x00004001. And after that some more errors.

I tried it with and without framework install first, and I got the latest version of Apktool. Still nothing works, although I can decompile other apps.

View 6 Replies View Related

General :: Can't Recompile Sony APKs

Dec 29, 2013

I cant recompile movies,stock launcher apk. If I just decompile and again recompile without any changes it gives me error.

C1904

View 5 Replies View Related

General :: APKTool Can't Compile Unchanged App?

May 6, 2012

I have made a CM7 theme and I'm unable to compile it. I have investigated it a little and found out that if I decompile a theme and then compile it back without ANY change, it gives the following error:

Code:
chris@ubuntu:~/Desktop$ apktool b xres
W: Could not find sources
I: Checking whether resources has changed..[code]....

View 9 Replies View Related

General :: APKTool And SystemUI No Status Bar?

Apr 12, 2013

My ROM for the Note 2 is a TW base (people want the S-Pen functions). And they like the AOSP feel so i decided to try and make a ROM that is AOSP themed. Well i have the launcher and a few AOSP themed apps such as the messaging app.

The flashers were very satisfied with my work so far. But they wanted an AOSP themed status bar. Meaning some AOSP battery images wifi and so on. I decided just just replace the EXACT images. I used a cm10 ROM to get the pngs. I also did use the newest Apktool to do it. I did all the framework installation. I decompiled both and started transfering. Here is what i did. I went to the drawable-xhdpi folder in both ROMs. They had pretty much identical png names. But the icons were different (one being the blue theme) so i took the blue icons (battery and wifi) and transfered them to my rom. I made sure that only the pngs with the same names were transfered. so there wasnt any issue compiling.

Next i compiled the APK file.Then i used my backup systemui.apk file to transfer the META-INF folder to the new one using 7-zip.Then i went and signed it and used dsixda's android kitchen to zipalign it. Then after all that i pulled that apk from the zipaligned folder and put it on my phone's sd card. I have the root explorer app. I move it to my /system/app folder. It moved successfully. Then i reboot and when it comes back up i dont have a status bar. And my wallpaper is black for a little while and then goes back to the feather thing.

I have tried signing and not signing. Zipaligning and not zipaligning.I am really wanting the AOSP themed icons in the status bar.

View 9 Replies View Related

General :: Editing Apps With APKTool?

May 2, 2014

I have been playing with apktool to learn how apps are made. Decompiled following the guide from this forum.

However I can't find what I'm looking for in the apps. For example, it's easy to edit the drawable folders of the apps and change the images.

I took some apps that gather feeds from news sites and I tried to find where are the feeds URLs coded or embedded inside the apps files, and could not find any info at all. No URLs at all. I opened the XMLs, and other files inside res, lib or smali folders, opened a lot of the files with Notepad++ and I can't find any information about it, or any place where the app connects to the website.

Is it possible to access that info when we decompile with apktool?

I also watched a lot of videos in YouTube, on how to edit apps with apktool, and all of them explain how to change the images, but nothing else.

Is it only possible to edit the theme/design of an app, when we decompile with apktool? Or can we go further and change something else?

View 2 Replies View Related

General :: Recompile Kernel Of LG E400?

Jul 8, 2012

I want recompile the kernel of my lg e400 for add ext2-3-4 support.How i must proceed? I'm able to compiling with success and i have source from lg, sdk installed etc etc.

View 3 Replies View Related

General :: Run APKTOOL In Android - No Such File Or Directory

Jan 31, 2013

Tried it, i put aapt,apktool and apktool.jar in /system/bin...

But when typing apktool it says "no such file or directory"

How can i make it work?

View 4 Replies View Related

General :: Modify With APKTool App - Block In Dalvik

Jan 31, 2012

my friends mods and give me an app that he had blocked only for my imei code and date control..i have modify with apk tool the app (the condition control where the app check imei and date) but when i resign the app and install it, when i launch it crash.How i can remove these blocks?

View 1 Replies View Related

General :: Theme Chooser APK Recompile Error

Jun 23, 2012

I can decompile and recompile framework-res.apk and other apps successfully, but every time I decompile a theme chooser *.apk I get errors trying to recompile.

Is there a trick to this? I am running Reaper 3.0(CyanogenMod 7) installed the framework via installation options(that's all), have paths to platform-tools, tools etc.. The latest Android SDK installed (and all the others..)

Once again I'n only getting these errors Recompiling TC Themes.

Here is an Excerpt of my APKMULTITOOL.LOG, the start middle and end.

(full log is also attached)
|
Code:
Thu 06/21/2012 -- 22:05:11.28|
--------------------------------------------------------------------------
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) Client VM (build 23.1-b03, mixed mode, sharing)
Could Not Find C:android-sdkplace-apk-here-for-modding../place-apk-here-for-modding/signedcom.araviel.theme.aerish.apk
Could Not Find C:android-sdkplace-apk-here-for-modding../place-apk-here-for-modding/unsignedcom.araviel.theme.aerish.apk
I: Loading resource table...
I: Loaded.

[code]...

View 2 Replies View Related

General :: Correct APKTool For ICS And Jelly Bean For Linux / Mac?

Jul 21, 2012

Correct ApkTool for ICS and Jellybean for Linux/Mac?

I can't compile using the one from the website as I get compiling errors

View 6 Replies View Related

General :: Compile / Decompile Using APKTool Or APK Multi Tool

Feb 16, 2012

I'm trying desperately to edit some files inside SystemUI.apk and framework-res.apk but I'm having some troubles...

I wanted to post in the specific thread of the program : [URL] but I'm not allowed to, because it's my first post here.

First I used only apktool, I managed to decompile my 2 files with no problems, I replaced a few *.png files and tried to recompile it but I'm getting errors... (I only manage to recompile the files if I don't edit a thing)

Then I tried APK Multi Tool, I achieved to decompile my 2 files (with the option 9 in the program), but I can't recompile them after editing my files. So I decided to make a test, I tried to decompile and recompile (I hit 9 then 11 in the choice case) them WITHOUT changing a thing and I get errors anyway. If I use the choice 1 (only extract the apk), do my editing and then zip the project (with the choice 3), directories are wrong inside the new *.apk, I get "projectsSystemUI.apk(res or smali, etc...)" so the *.apk result is not usable

Here is the log file when I try to recompile WITHOUT changes :

Code:
I: Baksmaling...
I: Loading resource table...
I: Loaded.

[Code]....

View 9 Replies View Related

General :: Change Gmail Conversation Item Color With APKTool?

Jan 23, 2013

I want to change gmail conversation item color with apktool but i cant find a way.

View 1 Replies View Related

General :: What Is Keeping CPU Busy In Background

Dec 9, 2013

My phone is Jiayu G3S, with a MTK6589 cpu and android version 4.2.1 I use latest xposed installer and latest gravitybox.

My problem is that something is keeping my cpu busy in the background, preventing it from sleeping.

For example, i left it last night, and i opened it after 12 hours, it was awake and using cpu for about 90 minutes.

My normal consumption is 0.3% every hour, but now it is 3%, like 10 times more. Also noticed greater consumption when screen is on. As you can see, there is no strange wakellock that lasts that long and all my apps have settings not to auto-update. I tried reading my logs but i didnt find any info.

View 7 Replies View Related

General :: How To Identify Which App Is Keeping Android Awake

Jul 6, 2013

we already got a battery meter in android 4.2.2, and it can tell if something is keeping the phone awake.For example, it shows that the "Android OS" is keep the system awake for 10 hours, but it can not tell me which app is holding some wake locks or wakes the phone frequently.I also installed Better BatteryStats, under Kernel Wakelock, it shows that the gps_lock is holding for 10 hours, but also not related to any app.

View 9 Replies View Related

General :: Maps Keeping Phone Awake?

Jul 21, 2012

yesterday i noticed that my GS3 battery drained too quickly ,checked Battery in settings and noticed that my phone is most of the time AWAKE ...

installed GSamBatteryStats , checked what app caused the most Cpu-WakeUp , and it was Maps & Google Services

tried unchecking The google Location Services but didn't change anything ( the screenshot is after unchecking it )

View 1 Replies View Related

General :: Keeping Background Services Running?

Feb 5, 2013

Are services like Tasker now safe from being killing if running in the background?

I would prefer running such services in background instead of foreground to save space on the notification bar.

So I was wondering how risky is running services in the background with JB?

View 1 Replies View Related

General :: Nexus S - How To Find Out What Is Keeping CPU Awake

Apr 17, 2012

How do I find out what is keeping my CPU awake? Nexus S

View 3 Replies View Related

General :: Picture In XDA App Signature?

Nov 9, 2012

How to have a picture in the xda app signature?

Phone with test release of ics (v28a)

View 3 Replies View Related

Android :: AnimationDrawable Class Recompile Error / Fix It

May 1, 2009

I'm trying to recompile AnimationDrawable class ( source code tooked from android source ) but I get some errors...

It says "The constructor DrawableContainer.DrawableContainerState (AnimationDrawable.AnimationState, AnimationDrawable) is undefined". Any ideas how to fix it?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved