Theme Accent Systems and framework for Z3 Dual 6633 - Sony Cross-Device General

Dear Friends ,
Here is the modded SystemUI and framework which is modded to behave inverted. Mostly it will follow the System Theme Colour which is installed so its better to install a dark theme so that it can all look good and matching . I am using Lollipop Theme Dark red found in Playstore.
I am not an expert in this so i have tried to change all that i could . but there are many mistakes here and there. If any one is interested in modifying the apps please go ahead and share along with all here.
This is based on the latest Lollipop version 23.1.E.0.1
This is a flashable file and already deodexed apps.. Download the flashable zip from below.
Works only with lollipop by sony and you NEED a working RECOVERY.
Always make a backup before trying any mod.
I am not responsible for any bootloop or damage.
Note: All SystemUI apks and framework apks are deodexed, by flashing my zip the relative odex file will be deleted.
​
INSTRUCTIONS first time flashing of this mod
Download And Copy The zip files To Ur Phone
Reboot to recovery
Flash the fix1.Zip file
Reboot to system
Reboot to recovery again and Flash the fix2.Zip file
Reboot to system
Reboot to recovery again and flash the mod from this link
Reboot to System
Sorry for the lengthy process will sort it out as soon as i figure out the script.
Download the mod from here
http://www.mediafire.com/download/r24n4uix8jxbzo2
ChangleLog
V-2
Back button Size difference fixed
V-3
Added Missing app.
V-4
Merged all the modded apps in this zip and the default theme is dark as per the screenshots so no need to install the theme app

Screenshots
Screenshots

Themed Apps
Themed Apps
I have modded some apps also to work along with this mod.
All are deodexed apps.
Extract the app from the zip file
Copy to phone and replace it in the respective folder and delete the ARM folder is present
Apps List
Clock app (SemcClock.apk)
Calendar app (SemcCalendar.apk)
Email app (SemcEmail.apk)
Exchage app (Exchange2.apk)
I have added a theme to work well with lollipop
Please note that these modded apps will only work properly with the first post mod or else all the colours would get mixed.

top work bro.
and for fix back bottn u can use this method :
http://forum.xda-developers.com/crossdevice-dev/sony/guide-how-to-fix-soft-key-button-t2848808
.

alinolaw71 said:
top work bro.
and for fix back bottn u can use this method :
http://forum.xda-developers.com/crossdevice-dev/sony/guide-how-to-fix-soft-key-button-t2848808
.
Click to expand...
Click to collapse
Thanx will upload the new zip as soon as possible

lijoc said:
Thanx will upload the new zip as soon as possible
Click to expand...
Click to collapse
and bro if add this can b better :
http://forum.xda-developers.com/showthread.php?t=2685606
.

this code is not of lollipop. tried adding and compiling but always failed to compile

lijoc said:
this code is not of lollipop. tried adding and compiling but always failed to compile
Click to expand...
Click to collapse
no bro.
this line work with all android version.
use this apk tools by BDFreak :
Advanced+ApkTool+v4.1.0

alinolaw71 said:
no bro.
this line work with all android version.
use this apk tools by BDFreak :
Advanced+ApkTool+v4.1.0
Click to expand...
Click to collapse
that doesnt work for me . it doesnt even decompile

lijoc said:
that doesnt work for me . it doesnt even decompile
Click to expand...
Click to collapse
http://forum.xda-developers.com/cro...guide-create-xperia-5-0-themes-using-t3088637
Use the fix from this thread. You should be able to decompile.

not working on odex

Not working as in what is the issue or error happening

alinolaw71 said:
no bro.
this line work with all android version.
use this apk tools by BDFreak :
Advanced+ApkTool+v4.1.0
Click to expand...
Click to collapse
ok bro i tried doing this with Advanced+ApkTool+v4.1.0 even afer following the fix and still by adding this line i have no success in compiling the app

katom jutsu said:
not working on odex
Click to expand...
Click to collapse
sorry there was a file missing in the last update. due to which you must have got a bootloop. have updated the newer version with all apps. can try now

bootloap om version 3
its working on odex or i need deodex rom?

please help to work its realy nice please my rom is odex 23.1.1.e.0.1

katom jutsu said:
bootloap om version 3
its working on odex or i need deodex rom?
Click to expand...
Click to collapse
it will work on both as the zip file will delete the odex files and arm folder from system

lijoc said:
ok bro i tried doing this with Advanced+ApkTool+v4.1.0 even afer following the fix and still by adding this line i have no success in compiling the app
Click to expand...
Click to collapse
bro pls write to me your error logs
.

alinolaw71 said:
bro pls write to me your error logs
.
Click to expand...
Click to collapse
this is what i am getting
Log For : SystemUI.apk
Log Type : Recompiling
Log Recorded At : Thu 23-04-2015 8:55:04.11
Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak
------------------------------------------------------
warning: string 'accessibility_quick_settings_airplane' has no default translation.
warning: string 'accessibility_quick_settings_bluetooth' has no default translation.
warning: string 'battery_low_subtitle' has no default translation.
warning: string 'done_button' has no default translation.
warning: string 'jelly_bean_dream_name' has no default translation.
warning: string 'keyguard_accessibility_status' has no default translation.
warning: string 'kg_password_wrong_pin_code' has no default translation.
warning: string 'quick_settings_wifi_display_label' has no default translation.
warning: string 'quick_settings_wifi_display_no_connection_label' has no default translation.
warning: string 'ssl_ca_cert_dialog_title' has no default translation.
warning: string 'ssl_ca_cert_info_message' has no default translation.
warning: string 'ssl_ca_cert_settings_button' has no default translation.
warning: string 'ssl_ca_cert_warning_message' has no default translation.
C:\Users\lijo.chacko\Downloads\Advanced+ApkTool+v4.1.0+By+BDFreak\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\status_bar.xml:23: error: No resource identifier found for attribute 'glowBackground' in package 'com.android.systemui'
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\LIJO~1.CHA\AppData\Local\Temp\brut_util_Jar_4275148382015513273.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0.2-1, -F, C:\Users\LIJO~1.CHA\AppData\Local\Temp\APKTOOL79347669744364360.tmp, -0, arsc, -I, C:\Users\lijo.chacko\Downloads\Advanced+ApkTool+v4.1.0+By+BDFreak\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\lijo.chacko\Downloads\Advanced+ApkTool+v4.1.0+By+BDFreak\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, C:\Users\lijo.chacko\Downloads\Advanced+ApkTool+v4.1.0+By+BDFreak\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:443)
at brut.androlib.Androlib.buildResources(Androlib.java:380)
at brut.androlib.Androlib.build(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:255)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\LIJO~1.CHA\AppData\Local\Temp\brut_util_Jar_4275148382015513273.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0.2-1, -F, C:\Users\LIJO~1.CHA\AppData\Local\Temp\APKTOOL79347669744364360.tmp, -0, arsc, -I, C:\Users\lijo.chacko\Downloads\Advanced+ApkTool+v4.1.0+By+BDFreak\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\lijo.chacko\Downloads\Advanced+ApkTool+v4.1.0+By+BDFreak\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, C:\Users\lijo.chacko\Downloads\Advanced+ApkTool+v4.1.0+By+BDFreak\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:511)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:429)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\LIJO~1.CHA\AppData\Local\Temp\brut_util_Jar_4275148382015513273.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0.2-1, -F, C:\Users\LIJO~1.CHA\AppData\Local\Temp\APKTOOL79347669744364360.tmp, -0, arsc, -I, C:\Users\lijo.chacko\Downloads\Advanced+ApkTool+v4.1.0+By+BDFreak\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\lijo.chacko\Downloads\Advanced+ApkTool+v4.1.0+By+BDFreak\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, C:\Users\lijo.chacko\Downloads\Advanced+ApkTool+v4.1.0+By+BDFreak\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:505)
... 6 more
------------------------------------------------------

katom jutsu said:
please help to work its realy nice please my rom is odex 23.1.1.e.0.1
Click to expand...
Click to collapse
this should work on both odex and deodex. thought i have incuded the script to remove odex files it doesnt seem to work properly for some reason .
so just try to do the following installing procedure.
From the stock rom
First reboot and flash Fix1.zip
Reboot into system
Then reboot into recovery again and flash Fix2.zip
Reboot into system
Then reboot into recovery again and flash the mod. this should get it working untill i figure out the process in a better way.
i have added the fixes in the first post

Related

[TOOL] APK Multi-Tool previously called apk manager

I am currently working on a major update to the apk manager application as well and changing the name to APK Multi-Tool with some new added features and also to fix some issues with some code errors.
I am also changing a lot of the features as well since a lot of the code has been outdated for a while.
I have compiled the latest Version of APKTOOL which is 1.4.2 snapshot
Updates done so far in this new upcoming release
Updated APKTOOL to the latest snapshot
I have downloaded the latest changes to the source and compiled the latest Version of APKTOOL which is 1.4.2 snapshot
Updated Android SDK TOOLS
I have updates all the android tools to the latest Version from the android SDK revision 13
Included tools:
zipalign
adb
aapt
Updated Sox
Downloaded the latest Source and compiled to update Sox
Replaced roptipng v0.6.3 with optipng v0.6.5
I have removed roptipng v0.6.3 and replaced it with the latest Version of optipng v0.6.5 which I freshly compiled from source as roptipng was just v0.6.3 and there has been some major bug fixes to optipng
Roptipng is bloated with no compression when compiled also the modifications made to optipng that the original Arthur of roptipng are pointless as all they do is add directory recursion, which is redundant.
If you are interested in recursion, use this with the original optipng:
for FILE in `find . | grep "\.png"`; do optipng "$FILE"; done
If you want to do it in windonkey , something like this
for /r %FILE in "*.png" do optipng "%FILE"
(note: reason for it being shorter in donkey mode is that the "for" command is a
*LOT* weaker -- it can only search through the filesystem whereas the unix command iterates through anything you throw at it, therefore we need the extra command to go out and do the search).
New Added Features done so far in this new upcoming release
New Section to the command line
Batch Theme Image Transfer TOOL
Batch Theme Zipalign APK TOOL
Batch Theme optipng TOOL
These tools allow you to update/port your favorite theme pack from any rom to your Current Rom In use.
(Note: You do not have to worry about signing the apk files using this method as it is automated with the transfer Function)
Batch Theme Image Transfer TOOL
This tool makes the process of transferring images from one APK to another APK File of the same file making it easier to update themes or even transferring a theme update.zip of one ROM to another Rom allowing the porting of theme to be much faster.
(Note: You will have to manually replace the progress_horizontals.xml from the framework-res since this file is needed with Theme Changes)
Batch Theme Zipalign APK TOOL
This tool makes it easier to Zipalign all the apk files in your newly ported/updated theme pack.
Batch Theme optipng TOOL
This tool optimizes all the images in all of the apk files for the toolset to allow you to be able improve compression of the images.
TO DO LIST
Add new feature to Randomly Generate a new Key File for signing the apk files after modifying and recompiling of the apk files this will also allow of uploading to the android market as this added feature will allow you to sign apk files that you may of compiled without signing beforehand.
Modify the Signapk script to be compatible with the Randomly Generation feature in the works
and a few other added features are in the works as I am redesigning the application and rewriting a lot of the code to fix issues as well as some of the new features have broken parts as some features have been moved and broken some command line prompts.
Its nice to know this project is still alive.
A couple of suggestions:
To save the masses asking later on........
Add an option to install the required info into environment variables.
Maybe an option to install a registry edit to enable right click compile/ decompile. I created one myself, but I think you would do a better job
forum.xda-developers.com/showthread.php?t=935967
Other than that it looks like a complete tool.
Thank you very much.
I have released a Alpha Build of the APK Mulit-Tool on the main website feel free to test out the application and remember some features may be broken
BUG: I noticed this in the APK Man. before. After decompiling..compiling etc then finishing up and trying to quit option '24' in 5.0 and '27' in APK Multi-tool, it echos the text for when your compiling and keeping orig. files.
"In the apk manager folder u'll find.." not letting you exit the program. I have to force close it.
Anyway of being able to add in a command where you can create ur own private signing keys and an option to then sign ur apks with the private keys. I have a tutorial on how to make ur own and the commands to make and sign if ud like me to send it to u
Alpha 02 is now out.
I completely redesigned the layout of the app so it is totally different so there is some learning to be done.
thegoo said:
BUG: I noticed this in the APK Man. before. After decompiling..compiling etc then finishing up and trying to quit option '24' in 5.0 and '27' in APK Multi-tool, it echos the text for when your compiling and keeping orig. files.
"In the apk manager folder u'll find.." not letting you exit the program. I have to force close it.
Click to expand...
Click to collapse
I believe I fixed this bug now by adding a kill script to the exit
Papa Smurf151 said:
Anyway of being able to add in a command where you can create ur own private signing keys and an option to then sign ur apks with the private keys. I have a tutorial on how to make ur own and the commands to make and sign if ud like me to send it to u
Click to expand...
Click to collapse
the Private key gen script I am adding is a randomly key generator script I have done a while back and but sure feel free to send away
http://db.tt/nD4dePl5
Here's a link to a rff file that is written up with cmd oaths on how to created a private key and then how to sign with it. The script would need to be written by u but with what uve been able to do I'm sure it wouldn't be a problem and IMO would be very useful
Papa Smurf151 said:
http://db.tt/nD4dePl5
Here's a link to a rff file that is written up with cmd oaths on how to created a private key and then how to sign with it. The script would need to be written by u but with what uve been able to do I'm sure it wouldn't be a problem and IMO would be very useful
Click to expand...
Click to collapse
That way is overly complicated there is a way easier way
Code:
cd C:\openssl\Bin
set RANDFILE=.rnd
openssl genrsa -out key.x509.pem 2048
openssl req -new -key key.x509.pem -config “C:\OpenSSL\ssl\openssl.cnf” -out request.pem
openssl x509 -req -days 99999 -in request.pem -signkey key.x509.pem -out certificate.pem
openssl pkcs8 -topk8 -outform DER -in key.x509.pem -inform PEM -out key.pk8 -nocrypt
this will generate a key used for signing with a modified signer script which I use besides the one in the application as with this signing method requires a modifications from the
signer.bat
Code:
@echo off
if (%1)==(1) goto next
if (%1)==(2) goto log
COLOR 0A
echo Signing "%~n1"
java -Xmx%heapy%m -jar signapk.jar -w testkey.x509.pem testkey.pk8 "../place-apk-here-for-signing/%~n1%~x1" "../place-apk-here-for-signing/signed.apk"
del /S /Q "../place-apk-here-for-signing/%~n1%~x1" > nul
ren "../place-apk-here-for-signing/signed.apk" "%~n1%~x1"
goto quit
:next
COLOR 0C
cd ..
type log.txt
PAUSE
goto quit
:log
mode con:cols=24 lines=2
echo Leave this open for 10s
adb logcat >> adblog.txt
:quit
raziel23x said:
That way is overly complicated there is a way easier way
Code:
cd C:\openssl\Bin
set RANDFILE=.rnd
openssl genrsa -out key.x509.pem 2048
openssl req -new -key key.x509.pem -config “C:\OpenSSL\ssl\openssl.cnf” -out request.pem
openssl x509 -req -days 99999 -in request.pem -signkey key.x509.pem -out certificate.pem
openssl pkcs8 -topk8 -outform DER -in key.x509.pem -inform PEM -out key.pk8 -nocrypt
this will generate a key used for signing with a modified signer script which I use besides the one in the application as with this signing method requires a modifications from the
signer.bat
Code:
@echo off
if (%1)==(1) goto next
if (%1)==(2) goto log
COLOR 0A
echo Signing "%~n1"
java -Xmx%heapy%m -jar signapk.jar -w testkey.x509.pem testkey.pk8 "../place-apk-here-for-signing/%~n1%~x1" "../place-apk-here-for-signing/signed.apk"
del /S /Q "../place-apk-here-for-signing/%~n1%~x1" > nul
ren "../place-apk-here-for-signing/signed.apk" "%~n1%~x1"
goto quit
:next
COLOR 0C
cd ..
type log.txt
PAUSE
goto quit
:log
mode con:cols=24 lines=2
echo Leave this open for 10s
adb logcat >> adblog.txt
:quit
Click to expand...
Click to collapse
U r correct but in my case I sign with my private keys to go into the market so when I make updates the key name can't be random or the market will not take it.
Papa Smurf151 said:
U r correct but in my case I sign with my private keys to go into the market so when I make updates the key name can't be random or the market will not take it.
Click to expand...
Click to collapse
Well the script above was just a example script there will be some changes to it to tie the keys to the applications so that when you sign the apk files they will have a key assigned to them
raziel23x said:
Well the script above was just a example script there will be some changes to it to tie the keys to the applications so that when you sign the apk files they will have a key assigned to them
Click to expand...
Click to collapse
Sounds great to me I can't wait
I am getting this error, can anyone help?
--------------------------------------------------------------------------
|Tue 10/18/2011 -- 14:48:48.53|
--------------------------------------------------------------------------
'mode' is not recognized as an internal or external command,
operable program or batch file.
java version "1.6.0_27"
Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
Java HotSpot(TM) Client VM (build 20.2-b06, mixed mode, sharing)
Could Not Find C:\Documents and Settings\WirelessZone\Desktop\Apk_Multi-Tool\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find C:\Documents and Settings\WirelessZone\Desktop\Apk_Multi-Tool\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Documents and Settings\WirelessZone\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
I: Decoding file-resources...
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Coordinate out of bounds!
at sun.awt.image.ByteInterleavedRaster.setDataElements(ByteInterleavedRaster.java:529)
at java.awt.image.BufferedImage.setRGB(BufferedImage.java:971)
at brut.androlib.res.decoder.Res9patchStreamDecoder.drawVLine(Res9patchStreamDecoder.java:99)
at brut.androlib.res.decoder.Res9patchStreamDecoder.decode(Res9patchStreamDecoder.java:58)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:68)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:132)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
Click to expand...
Click to collapse
I have my paths set up like this.
C:\Program Files\Java\jdk1.6.0_27\bin;C:\Program Files\Java\jdk1.6.0_27\jre\bin;C:\Program Files\Android\android-sdk;C:\Program Files\Android\android-sdk\platform-tools;C:\Program Files\Android\android-sdk\tools
Click to expand...
Click to collapse
If you can PM, perfect!
work on gnu/linux?
great to hear but afaik apktool revision you use still got no latest baksmali/smali updated - am i correct ?
$omator said:
great to hear but afaik apktool revision you use still got no latest baksmali/smali updated - am i correct ?
Click to expand...
Click to collapse
I am using the latest Versions from https://github.com/brutall/brut.apktool
using these instructions
http://code.google.com/p/android-apktool/wiki/BuildApktool?tm=4
ass you see latest update is from may while:
8-22-11 smali/baksmali v1.2.8 is out. This fixes a problematic bug that crept into 1.2.7
8-13-11 smali/baksmali v1.2.7 is out. This is a bugfix release, with a small additional feature (helper comments for synthetic access methods)
i think those 2 updates are not merged
I am currently Forked all of Brut.all's Repositories into my github account that i setup for APK Multi-Tools.
I am currently looking over his code and making changes updating the Smali Code used with the APKtool updating it to the most updated version off of http://code.google.com/p/smali/ and hopefully I will have a more updated Alternative version of apktool
This thread here is more along the lines of for Development purposes and coding suggestions
For Releases and bug reports Visit this post
[Windows XP/VISTA/7][UTILITY][TOOL] APK Multi-Tool
First off, awesome job, thanks for this...I have one quick question... everytime I had ever gotten errors with this or even the apk manager 5.0.2 it was the same situation. I would, for example, be trying to decompile mms.apk and errors would occur. What solved this was to place my framework-res.apk in C:\Documents and Settings\Owner. This is where the apktool\ framework folder is located. I then had to open a command prompt and type apktool if framework-res.apk. That would place a 1.apk file in apktool\framework. Then using this or apk manager 5.0.2 would work flawlessly without errors. Is there any way to skip all that and create that 1.apk file using your setup before I decompile an app? I thought decompiling with dependency file would do it, but it always says that is not a dependee file. Any thoughts... sorry for the long post and thanks again.
I guess I could add a script to do a adb pull of the fw-res from your phone and install it from that
Sent from my DROID using xda premium
Script.bat close after making any selections (Same as APKManager 5.0.2)
any help?
Code:
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
At was unexpected at this time.

[Tool][UPDATED v3.5] x-TOOLS - set of GUI-based android engineering tool [12/12/12]

Hello peeps,
I found myself a li'l bit lazy to decompile/re-compile apk files through a command line window each and every time by instructing it
So I decided to build a GUI version of apktool that will help me, and ofcourse others, to decompile and re-build apk files in just a single click.
UPDATED v3.5 with signapk, dex2jar and smali tools.
What is x-TOOLS?
x-TOOLS (previously known as x-APKTool) is a set of GUI-based android engineering tools.
x-TOOLS lets you do forward/reverse engineering in an easy and more convenient way. :good:
Features:
• One-click decompile apk file.
• One-click compile/re-compile edited apk file.
• One-click sign apk and update.zip file.
• One-click conversion of .dex file to .jar file and vice versa.
• One-click conversion of smali files to human readable form and vice versa.
• Detailed logs of output and error (if found).
• Save detailed log in text file.
• Keep recent files record for fast access.
• One-click install framework-res.apk to decompile and recompile stock/custom rom’s dependent apk files.
• One-click install SemGenericUxpRes.apk or resources.apk file.
• Working to build more new features…
Minimum requirements of x-TOOLS:
1. .net framework 3.5 or higher. Download here (if you are on Windows 7 or higher you don’t need to install it.)
2. JRE 1.6 or higher. Download here
NOTE: There was an old problem with Samsung Smali codes that gave error in baksmali process. So if you want to decompile your apk (extracted from Samsung devices), you have to first remove classes.dex file from apk using 7-zip/Winrar and then tried decompiling the apk.
Tested and suggested by aadroid.dev at here
Screenshot:
Attached at bottom of OP.
Changelog:
V3.5:
1. x-APKTool is now formally known as x-TOOLS.
2. Added GUI-based dex2jar tool.
3. Added GUI-based smali tool.
4. Added GUI-based separate apk and update.zip signing tool.
5. Added an option to select,copy and save detailed log in text file. (right click on log window to get these options)
6. Icon improved
7. Added (minor) Google licence info.
8. Fixed some minor bugs.
v1.5:
1. Added automatically signing apk after compilation.
2. Added more info about processing apk file.
3. Added more info about processing apk file.
4. Fixed path name and file name related issues.
5. Fixed a major bug that occurred while forcely decompiling apk file.
6. Fixed some minor bugs.
v1.0:
1. Initial release
Click to expand...
Click to collapse
Download link: download here
Mirror: Download here
Report me for any bug/error. Request/suggestions are always welcome..
i am try.thanks.
error...
=======================================
Re-compiling com.aac.cachemate.apk...please wait...
=======================================
I: Smaling...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Dr\AppData\Local\Temp\APKTOOL635373159047239252.tmp, -I, C:\Users\Dr\apktool\framework\1.apk, -S, C:\Users\Dr\Desktop\com.aac.cachemate\res, -M, C:\Users\Dr\Desktop\com.aac.cachemate\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Dr\AppData\Local\Temp\APKTOOL635373159047239252.tmp, -I, C:\Users\Dr\apktool\framework\1.apk, -S, C:\Users\Dr\Desktop\com.aac.cachemate\res, -M, C:\Users\Dr\Desktop\com.aac.cachemate\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2, Sistem belirtilen dosyay? bulam?yor
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, Sistem belirtilen dosyay? bulam?yor
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
===========> Task terminated due to above error(s)! <===========
Are you using the same of apktool you used to decompile the file
Sent from my GT-N7000 using xda app-developers app
klem__ said:
Are you using the same of apktool you used to decompile the file
Sent from my GT-N7000 using xda app-developers app
Click to expand...
Click to collapse
+1
Guys dont be a fool he stole it from here http://forum.xda-developers.com/showthread.php?t=33815550
check his threads.. He is posting it in diffirent forum.
Report to your forum moderator..
m.h.mahadi said:
Guys dont be a fool he stole it from here http://forum.xda-developers.com/showthread.php?t=33815550
check his threads.. He is posting it in diffirent forum.
Report to your forum moderator..
Click to expand...
Click to collapse
Excuse me, before blaming me or spreading spam here and there I just want to ask one thing, did you check my and his tool??
Did you find GUI common?? Do you think that I stole his work?? If you think so then check his and mine work before blaming me
BTW dont spam here and and my other threads, just follow the rules
Apktool shows error while Compiling.
gagan.u20 said:
Excuse me, before blaming me or spreading spam here and there I just want to ask one thing, did you check my and his tool??
Did you find GUI common?? Do you think that I stole his work?? If you think so then check his and mine work before blaming me
BTW dont spam here and and my other threads, just follow the rules
Click to expand...
Click to collapse
Apktool shows error while compiling... please repair this problem....
vishav420 said:
Apktool shows error while compiling... please repair this problem....
Click to expand...
Click to collapse
post the error...
updated to v3.5
see OP.
thanks alot :good: :good: :good:
that's really a great tool
Looks good, I thought it will work but... Nope.
When I decompile a apk it says decompiled, I click on open decompiled folder and the folder is just empty =/
And if I decompile it using another tool, and try to recompile it using this tool it tells me that there's a system file missing (or something like that) and reinstalling x-TOOLS might fix it.
Tried reinstalling a lot but still same problems.
I already installed framework-res.apk and SemcGenericUxpRes.apk (I have Z1)
Regards,
~J2C

[HowTo]Decompile/Compile APKS on Windows

Hey Guys ,
I am writing this small guide for people who have just started off with Android Development recently..
as am not a great developer at my end so any corrections and suggestions are always welcome
Credits : To Vegeta1. He give me the idea and helped me patiently with every question i got to finish this!
To my great Omega Team Mates! You guys and girl know my feelings.
So here we gonna learn how to decompile/recompile/ sign Apks
Things needed :
1. jdk/java Get It from here--> http://www.java.com/en/
2. Apktool: Using any according to your liking is ok or you can get all the Stuff needed In this Link
http://forum.xda-developers.com/showthread.php?t=1755243
Thanks To iBotPeaches For The Superb Tool...
3. Notepad++ to make changes in Xmls
4: winrar/7zip
So first up we are gonna set up the Framework for the current Firmware we are using.
For that get framework-res.apk, twframework-res.apk from your rom. You can always find that in the root location
/system/framework/
So lets say you have placed your apktool in your C:\ drive
now open click on start > run > type cmd ( this is for command prompt )
for example you are on C:\>User. Click in the command line cd.. and hit enter.
You should see now C:\>, as next step you type cd apktool and click enter. Here you see how it should look:
C:\apktool>
Now first up installing framework-res.apk and twframework-res.apk.
Place both these Files in your apktool folder that you have placed in C Drive or any drive you are comfortable with.
Code for Installing frameworks :
C:\apktool>apktool if framework-res.apk
C:\apktool>apktool if twframework-res.apk
this will get both your frameworks installed .
Now decompiling the Apk ...
Lets say you want to decompile SecMms.apk / or any Apk you like
place the Apk in the apktool folder.
Code to decompile the apk:
C:\ apktool > apktool d SecMms.apk
If you done and set up things accordingly your Apks will be decompiled properly
in the apktool folder you have placed in C:\ apktool
you will get the decompiled SecMms folder... so you can now make changes to it
Now the Recompiling Part:
If you have made correct changes it won´t give you any issues :
To recompile the apk the code needed in the command prompt :
c:\ apktool>apktool b SecMms ( its the decompiled Folder , now the original apk )
when you are done with recompiling in the SecMms folder you will get these :
assets
build
dist
res
smali
AndroidManifest.xml
apktool.yml
Now again , if the changes you made are correct the recompiling wont give any issues
Now its still not over we need to sign the apk:
So in your apktool folder you have your Original SecMms.apk file open that with winrar/7zip
and extract
META-INF
AndroidManifest.xml
in the apktool folder and move them to
( Decompiled )SecMms > build > apk >
then again start cmd and again run the recompiling code again one more time
c:\ apktool > apktool b SecMms
this should sign your apk
and the final apk , you will find it in c:\apktool\SecMms\Dist\
.
So Guys that's about it , for decompiling/recompiling/signing your Apks , hope you have no issues and find my post helpful
Chris_84 said:
Hey Guys ,
I am writing this small guide for people who have just started off with Android Development recently..
as am not a great developer at my end so any corrections and suggestions are always welcome
Credits : To Vegeta1. He give me the idea and helped me patiently with every question i got to finish this!
To my great Omega Team Mates! You guys and girl know my feelings.
So here we gonna learn how to decompile/recompile/ sign Apks
Things needed :
1. jdk/java Get It from here--> http://www.java.com/en/
2. Apktool: Using any according to your liking is ok or you can get all the Stuff needed In this Link
http://forum.xda-developers.com/showthread.php?t=1755243
Thanks To iBotPeaches For The Superb Tool...
3. Notepad++ to make changes in Xmls
4: winrar/7zip
So first up we are gonna set up the Framework for the current Firmware we are using.
For that get framework-res.apk, twframework-res.apk from your rom. You can always find that in the root location
/system/framework/
So lets say you have placed your apktool in your C:\ drive
now open click on start > run > type cmd ( this is for command prompt )
for example you are on C:\>User. Click in the command line cd.. and hit enter.
You should see now C:\>, as next step you type cd apktool and click enter. Here you see how it should look:
C:\apktool>
Now first up installing framework-res.apk and twframework-res.apk.
Place both these Files in your apktool folder that you have placed in C Drive or any drive you are comfortable with.
Code for Installing frameworks :
C:\apktool>apktool if framework-res.apk
C:\apktool>apktool if twframework-res.apk
this will get both your frameworks installed .
Now decompiling the Apk ...
Lets say you want to decompile SecMms.apk / or any Apk you like
place the Apk in the apktool folder.
Code to decompile the apk:
C:\ apktool > apktool d SecMms.apk
If you done and set up things accordingly your Apks will be decompiled properly
in the apktool folder you have placed in C:\ apktool
you will get the decompiled SecMms folder... so you can now make changes to it
Now the Recompiling Part:
If you have made correct changes it won´t give you any issues :
To recompile the apk the code needed in the command prompt :
c:\ apktool>apktool b SecMms ( its the decompiled Folder , now the original apk )
when you are done with recompiling in the SecMms folder you will get these :
assets
build
dist
res
smali
AndroidManifest.xml
apktool.yml
Now again , if the changes you made are correct the recompiling wont give any issues
Now its still not over we need to sign the apk:
So in your apktool folder you have your Original SecMms.apk file open that with winrar/7zip
and extract
META-INF
AndroidManifest.xml
in the apktool folder and move them to
( Decompiled )SecMms > build > apk >
then again start cmd and again run the recompiling code again one more time
c:\ apktool > apktool b SecMms
this should sign your apk
and the final apk , you will find it in c:\apktool\SecMms\Dist\
.
So Guys that's about it , for decompiling/recompiling/signing your Apks , hope you have no issues and find my post helpful
Click to expand...
Click to collapse
Great guide Chris... I will try it tomorrow... Thanks for all you do for S3 and Omega community...
Ninolina said:
Great guide Chris... I will try it tomorrow... Thanks for all you do for S3 and Omega community...
Click to expand...
Click to collapse
Thanks Nina! If you got question you know where I am.
Throwing out of the window from my flying Ferrari killer S3 driven by a proud omega team member
Thanks Chris84. I need this. This guide its wery good. Regards.
Wysłane z mojego GT-I9300 za pomocą Tapatalk 2
wiecho65 said:
Thanks Chris84. I need this. This guide its wery good. Regards.
Wysłane z mojego GT-I9300 za pomocą Tapatalk 2
Click to expand...
Click to collapse
Glade you like it. If you got questions just ask.
Throwing out of the window from my flying Ferrari killer S3 driven by a proud omega team member
nice one chris
bala_gamer said:
nice one chris
Click to expand...
Click to collapse
Thank you very much mate! You now it's a honor for me to get such a good feedback from you! Really appreciate that!
Throwing out of the window from my flying Ferrari killer S3 driven by a proud omega team member
Really glad to be a part of a great team and great team members ....
Good luck my friend
Sent from my GT-I9300 using Tapatalk 2
This is great, you are bringing noobs like me to the next level.
Sent from my GT-I9300 using Tapatalk 2
Chris_84 said:
Thanks Nina! If you got question you know where I am.
Throwing out of the window from my flying Ferrari killer S3 driven by a proud omega team member
Click to expand...
Click to collapse
I assume it works on Windows? Maybe it will be good to add that to the Title of the Tread. Just a suggestion...
Ninolina said:
I assume it works on Windows? Maybe it will be good to add that to the Title of the Tread. Just a suggestion...
Click to expand...
Click to collapse
Yes it does. Thanks Nina for your suggestion!
Throwing out of the window from my flying Ferrari killer S3 driven by a proud omega team member
Thnx.
Always welcome a HowTo of this kind...
Verzonden door mijn GT-I9300 met xda premium
vegeta1 said:
Really glad to be a part of a great team and great team members ....
Good luck my friend
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
Without you my friend I never had come this far!
KeesStolk said:
This is great, you are bringing noobs like me to the next level.
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
So you're now a advanced noob.
Throwing out of the window from my flying Ferrari killer S3 driven by a proud omega team member
Hey Chris! Really nice guide you have here, quick & simple. Decompiling worked for me, however, when I try to compile back I get this:
D:\apktool1.5.0>java -jar apktool.jar d BW.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\MM\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
W: Cant find 9patch chunk in file: "drawable-hdpi/forecast_fly_child_bg_pressed.
9.png". Renaming it to *.png.
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
D:\apktool1.5.0>java -jar apktool.jar b BW
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: D:\apktool1.5.0\BW\res/drawable-land-xhdpi
invalid resource directory name: D:\apktool1.5.0\BW\res/drawable-xhdpi
invalid resource directory name: D:\apktool1.5.0\BW\res/drawable-xhdpi-v11
invalid resource directory name: D:\apktool1.5.0\BW\res/drawable-xxhdpi
invalid resource directory name: D:\apktool1.5.0\BW\res/layout-xlarge
invalid resource directory name: D:\apktool1.5.0\BW\res/layout-xlarge-land
invalid resource directory name: D:\apktool1.5.0\BW\res/values-sw600dp
invalid resource directory name: D:\apktool1.5.0\BW\res/values-w360dp
invalid resource directory name: D:\apktool1.5.0\BW\res/values-w480dp
invalid resource directory name: D:\apktool1.5.0\BW\res/values-w500dp
invalid resource directory name: D:\apktool1.5.0\BW\res/values-w600dp
invalid resource directory name: D:\apktool1.5.0\BW\res/values-xlarge
invalid resource directory name: D:\apktool1.5.0\BW\res/values-xlarge-land
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, --min-sdk-version, 8, --target-sdk-vers
ion, 17, -F, C:\Users\MM\AppData\Local\Temp\APKTOOL3965827226790767193.tmp, -I,
C:\Users\MM\apktool\framework\1.apk, -S, D:\apktool1.5.0\BW\res, -M, D:\apktool1
.5.0\BW\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 8, --target-sdk-version, 17, -F, C:\Users\MM\AppData\Local\Temp\APKTO
OL3965827226790767193.tmp, -I, C:\Users\MM\apktool\framework\1.apk, -S, D:\apkto
ol1.5.0\BW\res, -M, D:\apktool1.5.0\BW\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:253)
... 6 more
Click to expand...
Click to collapse
I installed both frameworks & updated java, tried from both hdd partitions. Then I tried a different apktool version, happens again. Do you have any idea what could be the reason for this? Maybe the fact I have 2 java versions installed (v5.0 update 12 & v7 update 10).
MMWolverine said:
Hey Chris! Really nice guide you have here, quick & simple. Decompiling worked for me, however, when I try to compile back I get this:
I installed both frameworks & updated java, tried from both hdd partitions. Then I tried a different apktool version, happens again. Do you have any idea what could be the reason for this? Maybe the fact I have 2 java versions installed (v5.0 update 12 & v7 update 10).
Click to expand...
Click to collapse
I could only imagine that is not compatible this the framework you use. I get the same yesterday then I was trying recompile again Google plus. Decompile no problem but recompile give me error. Sounds a little bit crazy but what you can try is decompile with stock framework and recompile it with the one from omega or try it the other way decompile with omegas framework and recompile with stock framework. But between the steps you got install the framework new.
Throwing out of the window from my flying Ferrari killer S3 driven by a proud omega team member
Thanks, I'll test it & report back.
MMWolverine said:
Thanks, I'll test it & report back.
Click to expand...
Click to collapse
Your feedback is much appreciated! Thanks my friend!
Throwing out of the window from my flying Ferrari killer S3 driven by a proud omega team member
Ok, tried with XXELL5 stock framework and tested some others as well, but no luck I'm afraid. The app is BeautifulWidgets, which I'm trying to translate into Slovenian language. The problem is I cannot even recompile unchanged folders/files, let alone changing strings.xml. So the pursue for a solution continues.
MMWolverine said:
Ok, tried with XXELL5 stock framework and tested some others as well, but no luck I'm afraid. The app is BeautifulWidgets, which I'm trying to translate into Slovenian language. The problem is I cannot even recompile unchanged folders/files, let alone changing strings.xml. So the pursue for a solution continues.
Click to expand...
Click to collapse
That's very strange. I will take look at that cause I even turned on my laptop. Will keep you informed.
Edit: Mate I checked it. And I also fail. The strange thing is I got also an older apk from version 4 of beautiful widgets and had no problem with it. Then I checked the newer version 5 and then the failure set in. I tried to take the files like android manifest from the older apk but still fail.
Throwing out of the window from my flying Ferrari killer S3 driven by a proud omega team member
Guys can you post the apk here ?? Il try it out tomorrow... as im gonna fall asleep any moment...
Sent from my GT-I9300 using Tapatalk 2

Error while deodexing rom!

(If this location is not correct to this thread, please, move it to the correct location. Tanks)
Hey guys!
I'm trying deodex my stock rom using the XUltimate, but XUltimate give an error.
The XUltimate give error in all of the .odex, in /system/app and /system/framework
Starting AccountAndSyncSettings.odex
*****************************************
* Deodexing... *
UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.Util.ExceptionWithContext: regCount does not match the number of a
rguments of the method
at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithCont
ext.java:54)
at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(Instructio
nIterator.java:92)
at org.jf.dexlib.CodeItem.readItem(CodeItem.java:154)
at org.jf.dexlib.Item.readFrom(Item.java:76)
at org.jf.dexlib.OffsettedSection.readItems(OffsettedSection.java:48)
at org.jf.dexlib.Section.readFrom(Section.java:143)
at org.jf.dexlib.DexFile.<init>(DexFile.java:431)
at org.jf.baksmali.main.main(main.java:265)
Caused by: java.lang.RuntimeException: regCount does not match the number of arg
uments of the method
at org.jf.dexlib.Code.Format.Instruction3rc.checkItem(Instruction3rc.jav
a:129)
at org.jf.dexlib.Code.Format.Instruction3rc.<init>(Instruction3rc.java:7
9)
at org.jf.dexlib.Code.Format.Instruction3rc.<init>(Instruction3rc.java:4
4)
at org.jf.dexlib.Code.Format.Instruction3rc$Factory.makeInstruction(Inst
ruction3rc.java:145)
at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(Instructio
nIterator.java:84)
... 6 more
Error occured at code address 8
code_item @0x25ec
Pressione qualquer tecla para continuar. . .
*****************************************
MAJOR ERROR!! WITH DEODEXING! AccountAndSyncSettings.odex
*****************************************
********DELETING INCORRECT FILES*********
please exit out of window "***Deodexing ADB Window, DO NOT EXIT!***"
Pressione qualquer tecla para continuar. . .
Click to expand...
Click to collapse
I have the Android SDK working properly and the Java 32bits and 64bits installed.
My O.S. from PC is Windows 8 64Bits! My ROM from Galaxy Y is the Stock UTME1 (Brazil)
Please, help-me!
And sorry by my bad bad english... But you can understand despite errors! And I'm studying kkk
JoaoMarcos said:
(If this location is not correct to this thread, please, move it to the correct location. Tanks)
Hey guys!
I'm trying deodex my stock rom using the XUltimate, but XUltimate give an error.
The XUltimate give error in all of the .odex, in /system/app and /system/framework
I have the Android SDK working properly and the Java 32bits and 64bits installed.
My O.S. from PC is Windows 8 64Bits! My ROM from Galaxy Y is the Stock UTME1 (Brazil)
Please, help-me!
And sorry by my bad bad english... But you can understand despite errors! And I'm studying kkk
Click to expand...
Click to collapse
These is not a correct thread but your answer is here
By using xultimate may people face errors but i preffer you to use Cygwin with packages and Dsixda's android kitchen it is very easy to use and very easy to Deodex the rom
Sent from my Ace-i
Use cygwin and set api to level 10 - this will get your rom deodex
marcussmith2626 said:
Use cygwin and set api to level 10 - this will get your rom deodex
Click to expand...
Click to collapse
I try with Cygwin and Kitchen but I can't open the rom (.tar.md5) with WinRAR and 7zip.
JoaoMarcos said:
I try with Cygwin and Kitchen but I can't open the rom (.tar.md5) with WinRAR and 7zip.
Click to expand...
Click to collapse
Flash stock rom to your phone & root & install busybox
use terminal commands to pull system folder into a tar file
the terminal command you run in terminal emulator on phone is
su
tar -c system/* >> sdcard/system.tar
wait until prompt appears to signal it's done
copy system.tar file from sd card into kitchen rom directory
create a working folder using the tar file
deodex rom after setting api to level 10
Repack rom & flash (take an update script from a custom rom if you get status 0 error when flashing)
more detailed instructions here
http://forum.xda-developers.com/showthread.php?t=1801690

GKUI Custom Rom Help?

Hi, I am trying to translate this base rom to English and trying to add Apply Car Play and Android Auto apps
Here's what I've done so far
1. I installed APK Tool
2. Downloaded the Stock Rom here https://drive.google.com/file/d/1G_7ZMTh7FN4XHTbManfsoM4DBDhgYBqY/view?usp=sharing
2. Decompile the KC2_SystemUI.apk
3. Edited the xml files and turned it to English
4. Added Apple Car Play and AA to Systems/App
5. Recompiled KC2_SystemUI.apk and Signed it and replaced original KC2_SystemUI.apk
6. Zipped the whole folder
7. Tried to sign it but I can't
any help here?
future thanks!
edit: here's the error message
Code:
**************
Signing File!
**************
Exception in thread "main" java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder
at testsign.addDigestsToManifest(testsign.java:181)
at testsign.main(testsign.java:368)
Caused by: java.lang.ClassNotFoundException: sun.misc.BASE64Encoder
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:606)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:168)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 2 more
File signed successfully if no Errors above.
This is the app I used for signing it
Apps - [How-To] Signing ROMs
Hello everyone! This quick guide will teach you how to sign ROMs! WARNING : YOU WILL NEED AT LEAST A BASE KNOWLEDGE OF HOW TO USE COMMAND PROMPT. The knowledge of signing ROMs can prove useful to anyone! By knowing how to sign ROMs, you can modify your favorite ROM to add or delete APKs, so...
androidforums.com
Those keys and how they are used are way too old.
Use attached zip.
As you are on Windows, you need a little extra:
Code:
java -jar <path_to>\SignApkv2.jar -w -v <path_to>\testkey.x509.pem <path_to>\testkey.pk8 NAME_OF_ZIP.zip NAME_OF_NEW_SIGNED_ZIP.zip
rename the new signed zip to what the name needs to be.
But I think this will not work. You signed the SystemUI.apk using test keys, not the original keys. It might be that the SystemUI will not work at all because it is no longer "system signed" with the rest of your firmware.
Google on the use of
Code:
apktool -c b <unpacked apk>
and the difference between "just signing an apk" and "system signed"

Categories

Resources