[GUIDE]GUI - SignApk Jar File Tutorial to Sign and Align APKs - XDA-University

Hello guys,
I am here with an easy to use application about creating your own keystore to sign APKs and align them.
Requirements:
JDK - Download from www.java.com
sign.jar - Download HERE - APK-Signer 1.8.3 by Hai Bison - working link as of 05/03/2016
Please note that you need to have JDK installed in system for jar files to work.
INITIAL SETUPS
Assuming that you have JDK installed, download sign.jar and extract in anywhere you can navigate easy.
I have it in "C:/apktool"
Open Command Prompt (click Start > type cmd in search box and press enter)
Navigate to folder where you extracted jar file, in my case "c:\>cd apktool".
Type, "java -jar sign.jar"
The writing things ends here and you will see application opened in GUI - as follows
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
CREATE KEYSTORE
Now, we will need to first create a keystore file,
Click on "Save As" in Target Tab and name the file anything, i named it "signedOne"
Click on Save Button
Now We will need to fill the form a little,
In Password, type any password you may remember
in Alias, type any name, usually that should be similar to your UNSIGNED apk file name
Give an Alias Password (for ease, keep it same as password above)
In Name field, Type your first and last name,
This is the minimum required in form, if you want to fill full form, thats upto you.
Click on Button "Generate Keyfile"
Wait until message appears, "Keyfile Generated Successfully". Press OK
SIGN APK
Now its time to sign the APK. - Click on "Signer" Tab.
First, Click on button "Load Keyfile"
Browse for the same keystore file you created, in our case, if you kept the name same as mine, that will be "signedOne.keystore"
Type the password you gave while creating the keystore file.
You will see alias name appearing automatically below if password was correct.
type the alias password you gave earlier.
Click on "Load Target File" and browse for the APK file you want to sign. In my case "whatsapp.apk"
Click on "Sign" button
Wait until the dialog appears, "File Signed"
You will see a new file whatsapp_SIGNED_UNALIGNED.apk in the same folder where whatsapp.apk was already present
ALIGN APK
Click on APK Alignment Tab
Click on "Load APK file" button
Browse for "whatsapp_SIGNED_UNALIGNED.apk
Click on "Align" button
Wait until the message appears "Alignment done, output file: "whatsapp_SIGNED_ALIGNED.apk"
Optional - If you want to verify the alignment, click on "whatsapp_SIGNED_UNALIGNED" button - note that after the alignment, the button name remained same
browse for "whatsapp_SIGNED_ALIGNED.apk
Click on button verify
it will give you a message, "Verification succesful"
TROUBLESHOOTING​
If you get java,util exception error, you need to use JDK-6 or lower and give its path in JDK target adress bar
JDK-7 and plus have changed something for which APK signer doesnt sign APKs
Plz click Thanks buttong if it helped u

???
Hey you wouldn't happen to know what im doing wrong in resigning the latest flash player ics.apk from http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html im trying to change the user agent and version with a hex editor. So I thought that editing the lib file was goofing it up so I just tried to simple extract the apk and resign it and it still wont work.
Any ideas what wrong?

delete

seraphim5 said:
Hey you wouldn't happen to know what im doing wrong in resigning the latest flash player ics.apk from http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html im trying to change the user agent and version with a hex editor. So I thought that editing the lib file was goofing it up so I just tried to simple extract the apk and resign it and it still wont work.
Any ideas what wrong?
Click to expand...
Click to collapse
Its better to compile the apk back using apktool.
If you are first time using this tutorial above, maybe youare are not creating the keystore file. Can you post the apk here for me to look at it?
Sent from my GT-I9100 using xda app-developers app

Download Zipsigner from playstore . It will help you to sign your app through your mob. device .
Sent from my GT-S7562 using XDA Premium 4 mobile app

hello
broken apk signer link fixed.
thanks

Error while signing file. Details:
jar signed.
Warning:
No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date(2040-04-01) or after and future revocation date.
End of line
No signed apk is created. Any ideas?

bwarrington85 said:
Error while signing file. Details:
jar signed.
Warning:
No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date(2040-04-01) or after and future revocation date.
End of line
No signed apk is created. Any ideas?
Click to expand...
Click to collapse
Its because you need to create a key first, before signing the apk
Sent from my TURBO DG2014 using XDA Free mobile app

munnibhai said:
Its because you need to create a key first, before signing the apk
Sent from my TURBO DG2014 using XDA Free mobile app
Click to expand...
Click to collapse
Well I followed the directions above.. Hmm

bwar85 said:
Well I followed the directions above.. Hmm
Click to expand...
Click to collapse
Were you able to resolve the issue? Or else please attach your apk and i have a look on it
Sent from my TURBO DG2014 using XDA Free mobile app

munnibhai said:
Were you able to resolve the issue? Or else please attach your apk and i have a look on it
Sent from my TURBO DG2014 using XDA Free mobile app
Click to expand...
Click to collapse
No, I am trying to mod a cm12 theme from the playstore. I am simply trying to replace images in the apk. I am NOT trying to release the modded apk, it is for my enjoyment only. Isnt that what your jar does?

bwar85 said:
No, I am trying to mod a cm12 theme from the playstore. I am simply trying to replace images in the apk. I am NOT trying to release the modded apk, it is for my enjoyment only. Isnt that what your jar does?
Click to expand...
Click to collapse
jar file is working perfectly, there is some problem with your theme, keystore file most probably. how did you extraxt the apk? with 7zip or apktool?

munnibhai said:
jar file is working perfectly, there is some problem with your theme, keystore file most probably. how did you extraxt the apk? with 7zip or apktool?
Click to expand...
Click to collapse
I used apktool. I give up on trying to edit apks. There are no tutorials that work.

bwar85 said:
No, I am trying to mod a cm12 theme from the playstore. I am simply trying to replace images in the apk. I am NOT trying to release the modded apk, it is for my enjoyment only. Isnt that what your jar does?
Click to expand...
Click to collapse
bwar85 said:
I used apktool. I give up on trying to edit apks. There are no tutorials that work.
Click to expand...
Click to collapse
I am sorry to hear about that, well, apk editing isnt diffictult, apart from decoding java files and then actually coding them again (lets leave it to java programmers)
About editing graphics and XMLs in apk, its easy, ask me anything you want.

bwar85 said:
No, I am trying to mod a cm12 theme from the playstore. I am simply trying to replace images in the apk. I am NOT trying to release the modded apk, it is for my enjoyment only. Isnt that what your jar does?
Click to expand...
Click to collapse
ok, I got to the root of error.
The problem is JDK8 and 7 too probably. The jarsigner provided with these 2 versions, is timestamped now and while we try to sign an apk using the sign.jar, jarsogner isnt finding any timestamp on it.
So you will either need to downgrade to JDK6 (just install as additional and give path to it in sign.jar) and it will work

munnibhai said:
ok, I got to the root of error.
The problem is JDK8 and 7 too probably. The jarsigner provided with these 2 versions, is timestamped now and while we try to sign an apk using the sign.jar, jarsogner isnt finding any timestamp on it.
So you will either need to downgrade to JDK6 (just install as additional and give path to it in sign.jar) and it will work
Click to expand...
Click to collapse
I was using either 8 or 7.
I will try 6 and post results

bwar85 said:
I was using either 8 or 7.
I will try 6 and post results
Click to expand...
Click to collapse
Well your sign.jar completed all tasks with no errors and the app installs but is then rejected by the cm12 theme engine and automatically uninstalls.
So I took the original cm12 theme apk, removed the Meta-inf folder, used sign.jar, and it works.
My error must be in editing the .pngs images within the theme I'm guessing. Im using photoshop 7 to invert colors on the .pngs and saving. Why does changing the .pngs affect the apk from installing I wonder?
So I'll give thanks, your sign.jar does infact work with JDK 6
*edit: Cant give thanks? Hmm no thanks button...

bwar85 said:
Well your sign.jar completed all tasks with no errors and the app installs but is then rejected by the cm12 theme engine and automatically uninstalls.
So I took the original cm12 theme apk, removed the Meta-inf folder, used sign.jar, and it works.
My error must be in editing the .pngs images within the theme I'm guessing. Im using photoshop 7 to invert colors on the .pngs and saving. Why does changing the .pngs affect the apk from installing I wonder?
So I'll give thanks, your sign.jar does infact work with JDK 6
*edit: Cant give thanks? Hmm no thanks button...
Click to expand...
Click to collapse
I am glad that it worked afterall.
1. About the PNGs, there are some with .9 extension in them, if you noticed, they have those black lines around them which must not be touched, they have to be with #000 color. This could be one of problems while you just changed colors.
2. Another issue maybe RGB profile (I am not sure if this setting is available in Ph.7) of photoshop, so goto Edit : Color Settings : RGB : <select "Monitor RGB">. Save and Restart.
Let me know if it worked.

munnibhai said:
I am glad that it worked afterall.
1. About the PNGs, there are some with .9 extension in them, if you noticed, they have those black lines around them which must not be touched, they have to be with #000 color. This could be one of problems while you just changed colors.
2. Another issue maybe RGB profile (I am not sure if this setting is available in Ph.7) of photoshop, so goto Edit : Color Settings : RGB : <select "Monitor RGB">. Save and Restart.
Let me know if it worked.
Click to expand...
Click to collapse
It was the .9.pngs. Messed up the black lines... Fixed and it all works! Thanks for the cool jar!

Please help "FileNotFoundException: .x509.pem"
Thank you, your method works well good for all app.
But for this application "Advanced Permission Manager" by steelworks on google playstore.
Signed process working well, app initially runs good but app main function not working after repacking apk and signed.
It will throw exception "FileNotFoundException: .x509.pem"
What is that exception? I tried every method, I searched whole internet no single solution.

Related

[TUTORIAL] Selectable Browser User Agent

BACKGROUND
If you use an Android tablet to surf the web, you often face the issue that if you visit a web site that has a mobile version, the server checks your User Agent and says "Android, eh? You're a phone!" - and bumps you to mobile.nfl.com instead of www.nfl.com, which sucks because phone optimized web sites tend to look bad on a 10.1" 1280x800. For example, you want this not this.
So, you can handle that quite easily, you ask the browser to present itself as something else.
CAUSE
Default, my tablet presents itself as...
Mozilla/5.0 (Linux; U; Android 3.1; en-gb; GT-P7500 Build/HMJ37) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13
...and that's when all the web sites say "Android, aha! You're a phone!"
But I can instruct the tablet browser to present itself as anything else, for example...
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_0) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.215 Safari/535.1
...which is handy because it makes all the web sites say "Aha! You're a Chrome browser running on MacOS X 10.7 Lion!", therefore showing me the proper web sites.
ONE SOLUTION
You can do this by decompiling /system/framework/framework-res.apk
Open /res/values/strings.xml, search for the string "web_user_agent" and you'll see this:
<string name="web_user_agent" formatted="false">Mozilla/5.0 (Linux; U; Android %s) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 %sSafari/534.13</string>
You can change this blue string into whatever you want.
However, if you do this you're stuck without a proper "android" user agent.
That could be a pain in the ass if you've got an app that relies on a hidden browser window to complete a sign-in authentication, checking the user agent in the process...*cough*NFLGamePassForAndroidTablet*cough*
ANOTHER, MORE ELEGANT, SOLUTION
The more elegant version, however is decompiling /system/app/Browser.apk
Open the file /res/xml/advanced_preferences.xml if you want the menu item in Advanced settings
or open the file /res/xml/general_preferences.xml if you want the menu item in General settings
Insert this…
<ListPreference android:entries="@array/pref_development_ua_choices" android:title="@string/pref_development_uastring" android:key="user_agent" android:defaultValue="0" android:entryValues="@array/pref_development_ua_values" />
... somewhere, between/above/below some other node. I've put it over the ...
<com.android.browser.search.SearchEnginePreference …
... node, giving me this new menu item in Advanced...
... opening this menu ...
Compile it back and there you go.
This fix is basically just shortcutting around the about:debug route by moving the option out of the hidden debug menu, but it's quite convenient to have the option easily accessible without entering debug mode, and you're not stuck without an "Android" user agent.
HOW TO DO THIS, STEP BY STEP.
(mirrored from post #25)
Teaching has never been my strong feat but I'll give it a shot.
Please note:
The "Setup to build" part is for Windows, recreated from memory, and may be inaccurate. I love you guys but I'm not gonna wipe my system and start over just to retrace my steps
For the entire guide, I'm pre-supposing basic computer skills, a rudimentary understanding of ADB, folder structures, file management, text editing and "what do you mean command line??!"
== Set up to build:
If you don't have Java installed, download and install Java from java.com
Download APK Manager 5 and remember to thank the guy.
Place it in a folder in C:\ so you have a directory stucture like this:
C:\apkmanager5
C:\apkmanager5\other
C:\apkmanager5\place-apk-here-for-modding
...etc
C:\apkmanager5 is the home dir for our purposes, so from now on assume we're in C:\apkmanager5 unless I say otherwise.
Run Script.bat
Select 24 "Exit"
(this should create any dirs and logfiles that may be missing)
== Get the required files and prepare for editing
Pull the following .APKs from your phone via ADB or extract them from your ROM.zip to /place-apk-here-for-modding in our homedir. You should make a backup of at least Browser.apk, just in case.
/system/app/Browser.apk
/system/framework/framework-res.apk
/system/framework/twframework-res.apk
Run the following commands from a command prompt in our home dir:
java -jar other/apktool.jar if place-apk-here-for-modding/framework-res.apk
java -jar other/apktool.jar if place-apk-here-for-modding/twframework-res.apk
The command line will return:
I: Framework installed to: C:\Users\((username))\apktool\framework\1.apk
I: Framework installed to: C:\Users\((username))\apktool\framework\2.apk
== Decompile and edit
Run Script.bat
(this will open the apkmanager window)
Enter 19 "Select compression level for apk's"
Enter 0 (compression=0)
Enter 22 "Set current project"
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Select the number for "Browser.apk"
Select 9 "Decompile apk"
It'll say "Decompiling apk" and hang for a while.
Open a file explorer/total commander/whatever on your computer, and go to /projects in our home dir. You'll see that we now have the decompiled Browser.apk in there.
Go to /projects/Browser.apk/res/xml/ and open general_preferences.xml with a text editor. Notepad, Notepad++, Ultraedit or something, not Word
Add the purple code, so the content looks like this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android">
[COLOR="Indigo"][I][B]<ListPreference android:entries="@array/pref_development_ua_choices" android:title="@string/pref_development_uastring" android:key="user_agent" android:defaultValue="0" android:entryValues="@array/pref_development_ua_values" />[/B][/I][/COLOR]
<com.android.browser.BrowserHomepagePreference android:hint="@string/http" android:maxLength="8192" android:title="@string/pref_content_homepage" android:key="homepage" android:inputType="textMultiLine|textUri" />
<PreferenceCategory android:title="@string/pref_general_sync_title">
<Preference android:title="@string/pref_personal_sync_with_chrome" android:key="sync_with_chrome" android:summary="@string/pref_personal_sync_with_chrome_summary" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/pref_general_autofill_title">
<CheckBoxPreference android:title="@string/pref_autofill_enabled" android:key="autofill_enabled" android:summary="@string/pref_autofill_enabled_summary" android:defaultValue="true" />
<PreferenceScreen android:title="@string/pref_autofill_profile_editor" android:key="autofill_profile" android:summary="@string/pref_autofill_profile_editor_summary" android:fragment="com.android.browser.AutoFillSettingsFragment" />
</PreferenceCategory>
</PreferenceScreen>
The purple code shows the UAstring item in General Preferences just above the "Set homepage" item.
== Compile
Go back to the apkmanager window.
Select 11 "Compile apk"
It'll output "Building Apk" and think about it for a while.
Apkmanager will ask, "Is this a system Apk?"
"y" - yes it is.
Then it will ask, "Aside from the signatures, would you like to copy over any additional files that you didn't modify from the original apk in order to ensure least # of errors?"
"y" - yes, you want to do that.
apkmanager will extract those original files and then present you with this screen:
Read that, then I'll explain it
Right. At this point apkmanager has made a copy of the original, compiled Browser.apk files in C:\apkmanager5\keep
As the name "keep" suggests, whatever is in here will be kept and carried on to your new build, so:
For every file that you have changed in /projects/Browser.apk/, you need to delete the counterpart in /keep/.
That way, apkmanager knows to keep your unchanged files unchanged but grab your changed file(s) from /projects/Browser.apk. It may seem like dumb way of doing it but it makes sense that you don't want your computer to compile more than it has to. Compiling takes time and CPU, and...well...the less is done, the less can go wrong.
In this case you edited /projects/Browser.apk/res/xml/general_preferences.xml
So you have to delete /keep/res/xml/general_preferences.xml
AND you have to delete /keep/resources.arsc as well!
Whenever you have changed any XML in an .apk, you also have to delete /keep/resources.arsc when compiling. The apk's resource table is compiled into resources.arsc, so if you dont delete it from keep/, you're gonna keep that and carry it over into your new, modified Browser.apk, and your changes won't come through
Ok, after deleting those two files, you "Press any key to continue ...", all the resources are compressed, and now you have a modified Browser.apk in place-apk-here-for-modding/
Wrap it in a flashable zip and flash it.
("How" is outside the scope of this guide)
As it turns out, this is actually a rather general guide on decompiling, editing and recompiling stuff for honeycomb. You can use the exact same method to edit other apks like, framework-res.apk and SystemUI.apk.
Flashble zip?
Credits to the original devs who found these? (DocRambone,alterbridge86) Otherwise nice guide.
PhantomHacker said:
Credits to the original devs who found these? (DocRambone,alterbridge86) Otherwise nice guide.
Click to expand...
Click to collapse
lol, i love how you give the credits. Phantom.... you are a posterchild!
task650 said:
lol, i love how you give the credits. Phantom.... you are a posterchild!
Click to expand...
Click to collapse
I try.
Sent from my GT-P7510 using Tapatalk
Can someone tell me how to decompile in win7?
Preferably the very easiest way with the easiest tool.
Thanks.
Sent from my GT-P7500 using Tapatalk
PhantomHacker said:
Credits to the original devs who found these? (DocRambone,alterbridge86) Otherwise nice guide.
Click to expand...
Click to collapse
Thanks.
As for credits, I assure you I've figured this out all by myself, so how about I give myself a pat on the back then?
I know that DocRambone has a thread where he supplies flashable zips of the the fix in framework-res.apk/res/values/strings.xml but as far as I can see, he doesn't share how. I asked him in PM but he didn't answer, and all he writes in his thread seems to be "You have to decompile the apk and change some of the xml's and then recompile it again.".
So I had to figure it out myself, and it wasn't exactly hard. So far so good.
The selectable browser version is a fairly straightforward solution, since I'm simply moving an existing setting out in the open from a hidden debug menu, but I cannot for the life of me see any other published info about it.
So again, I haven't published anything I haven't figured out myself, and as I've been unfortunate enough to see my own original creation in someone else's 2 dollar Market app, I'm slightly sensitive to the issue of copying.
If you were trolling, consider me trolled.
Hooolm said:
doesn't share how
Click to expand...
Click to collapse
ot: Its a bit like that these days... It seems a lot harder to gather needed information than it was in WM6.X times.
pkoper said:
ot: Its a bit like that these days... It seems a lot harder to gather needed information than it was in WM6.X times.
Click to expand...
Click to collapse
Yeah, it's just... I've never stolen anything, and I get really pissed spending a couple of hours figuring out something cool, and sharing it with the community then being told "pretty pictures - now credit those who told you how"
Edit..
All good, but I need to learn to do more search before asking, iam sorry
And here is a little offtopic question. Why does it look like this in rootexplorer when iam about to edit the xml file
Sent from my GT-P7510 using xda premium
Hooolm said:
Yeah, it's just... I've never stolen anything, and I get really pissed spending a couple of hours figuring out something cool, and sharing it with the community then being told "pretty pictures - now credit those who told you how"
Click to expand...
Click to collapse
I didn't see an issue with your original post. It would have been different if you had posted Doc's zips as your own creation, but you didn't. Yours was simply a tutorial to teach and explain how such a thing could be done. It's the difference between you showing me a Ferrari Italia and telling me you built it, versus simply telling me HOW they built it.
In any case, you mention Doc never answered your requests. Does anybody know what the heck happened to him? I stopped following his threads when he went MIA.
bd85 said:
Edit..
All good, but I need to learn to do more search before asking, iam sorry
And here is a little offtopic question. Why does it look like this in rootexplorer when iam about to edit the xml file
Sent from my GT-P7510 using xda premium
Click to expand...
Click to collapse
Prob cuz root explorer isnt an xml viewer/editor?
DT3CH said:
Prob cuz root explorer isnt an xml viewer/editor?
Click to expand...
Click to collapse
In can open the andrpidmanifest.Xml that is in browser apk just fine, but when I go to the xml res folder and open the xml there it looks like my earlier Screenshots.
This works but not the xml i want to edit, strange
Sent from my GT-P7510 using xda premium
bd85 said:
In can open the andrpidmanifest.Xml that is in browser apk just fine, but when I go to the xml res folder and open the xml there it looks like my earlier Screenshots.
This works but not the xml i want to edit, strange
Sent from my GT-P7510 using xda premium
Click to expand...
Click to collapse
The resource table is compiled into resources.arsc
You have to decompile the entire .apk to edit the xml and compile again afterwards.
Use something like apkmanager, it's real easy to set up. There's a thread for it in the 10.1 dev forum ;-)
i hope phantomhacker can include this in the 3.2 rom don't really want to try this out myself in case i screw this up
Hooolm said:
The resource table is compiled into resources.arsc
You have to decompile the entire .apk to edit the xml and compile again afterwards.
Use something like apkmanager, it's real easy to set up. There's a thread for it in the 10.1 dev forum ;-)
Click to expand...
Click to collapse
Have you actually done this, does it work? I'm interested, and tried with apkmanager, but the recompiled browser wont work. I think its a problem with my install of apkmanager, but I'm not sure.
blulite said:
Have you actually done this, does it work? I'm interested, and tried with apkmanager, but the recompiled browser wont work. I think its a problem with my install of apkmanager, but I'm not sure.
Click to expand...
Click to collapse
Yeah, I've done it several times. For task650 v6.1, stock XWKH7 and XXKI1.
I decompile it with framework-res.apk and twframework-res.apk installed and compile it back as a system app.
Edit:
I've used this ApkManager 4.9 HC edition without problems
bd85 said:
In can open the andrpidmanifest.Xml that is in browser apk just fine, but when I go to the xml res folder and open the xml there it looks like my earlier Screenshots.
This works but not the xml i want to edit, strange
Sent from my GT-P7510 using xda premium
Click to expand...
Click to collapse
Ahh, weird indeed
decompile works great on my mac, but compile does not work.
Please make your decision: 10
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
i've also tried this:
http://forum.xda-developers.com/showpost.php?p=7064736&postcount=447
didnt work
My Mac isn't set up to build, I can't help you there.
I'm building on a Windows Server remotely.
How about asking in the apkmanager thread? I'm sure they know more about it

[SIMPLE GUIDE + LOCKRINGS] [ALL ANDROID ROMS] Change lockrings on any rom

ALL OF THE LOCKRINGS HAVE BEEN MOVED TO THE 5TH POST​
G’Day XDA,
This is a really simple to do guide on changing the lockring on both a stock Samsung circle lockscreen and the AOSP lockscreen on ALL SAMSUNG, AOSP & AOKP ROMS and essentially this same method should also work on ALL ANDROID ROMS that are both ODEXED & DEODEXED. I have tested both using my own phone which is a Samsung Galaxy SII GT-I9100 which is running a stock Samsung odexed rom. I have been told that it also works on a Sony Xperia Arc. Your specific rom may have the lockring file named as something else, so you may need to go into framework-res.apk/res/drawable-hdpi (or-xhdpi or -mdpi depending on what device/rom you're running) to find the correct file. If you need help you can attach your framework-res.apk in here and I will do my best to help you out.
This is really easy to do for even a beginner like me, so I’m sure anyone that reads this will be able to do it. There are a few prerequisites to this mod – first of all you need a computer with an unzip style program like 7Zip, your phone needs to be rooted and you also need some kind of file manager (I use ES File Explorer but lots of people say they use Root Explorer). You will also need to have access to a program like Photoshop or Irfanview or Pixlr or Greenfish Icon Editor Pro if you want to change any pictures yourself. I have detailed everything step by step below with pictures so it should be very easy to follow.
Here's the guide…
(Lockrings in 5th post) PLEASE MAKE SURE THAT YOU MAKE A NANDROID/CWM BACKUP BEFORE TRYING THIS - I CAN'T BE HELD ACCOUNTABLE FOR ANY PROBLEMS YOU FACE, BUT I WILL DO MY BEST TO HELP YOU OUT IF YOU DO RUN INTO PROBLEMS
Step 1 - You will need to download the lockring that you would like to use. I have used different styles from HERE and also from HERE and also made my own. You can find some lockring collections made by martintspedersen HERE and by shishircoolin HERE. If you are smart enough to make your own using a program like Photoshop or Pixlr then top work. Just make sure that it is definitely a PNG file. Also make sure that if you want any of it transparent that it actually is (I made this mistake and it didn’t look very good, so I had to get my gorgeous fiancée to fix it up for me, as she is highly skilled in the art of Photoshop). Save the lockring onto your computer somewhere (I keep all of my stuff in a Mods folder) and you will need to modify it soon.
Step 2 - You will need to make a copy of framework-res.apk (which is located in /system/framework) and put it anywhere onto your phone’s SD card. Again, I use a folder called Mods which is easy to locate and remember.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Step 3 - Plug a micro USB cable into your phone and then plug the other end into your computer. Open the directory where you saved framework-res.apk (for me it is GTI9100/Phone/Mods) and move it onto your computer’s desktop.
Step 4 - Now right click on framework-res.apk and select 7Zip – Open Archive.
Step 5 - Within the opened 7Zip archive, navigate to res\drawable-hdpi\ (or res\drawable-xhdpi on a Galaxy Nexus) and locate these files:
For the stock Samsung Circle Lockscreen, find unlockscreen_lock_01.png to unlockscreen_lock_20.png. These usually have a padlock ranging in different stages of unlocking, but I have used the same picture in all of them. You can do the same or modify them slightly, it's up to you.
For the AOSP Lockscreen, find ic_lockscreen_handle_normal.png which is the lock that is visible when a hardware button is pressed, and ic_lockscreen_handle_pressed.png is the same lock with the ring around it that appears when you press the lock.
Step 6 - Change the name of the lockring PNGs that downloaded earlier and want to use to the corresponding file names. For example, I have changed the PNGs in the first picture to use in the stock Samsung Circle lockscreen and the PNGs in the second picture are for the AOSP Lockscreen:
Step 7 - Now drag the renamed PNGs into the res\drawable-hdpi folder. Click yes when it asks you to confirm.
Step 8 - Close the 7Zip archive and now copy your newly modified framework-res.apk back onto the SD card of your phone. Again for me, I use the Mods file so it's easy to find.
Step 9 - Now on your phone, open your file explorer and navigate to where your modified framework-res.apk is. Long press it and select Move To and move it to the System folder on the root directory of your phone.
Step 10 - Now navigate to the System folder and long press on the framework-res.apk and select Properties. You will see this:
Notice how the Permissions is set to rw- rw- rw-? We need to change this otherwise you'll have big problems. Click the Change button and you will see this:
Step 11 - Uncheck the Group - write and Other - write boxes so that it looks like this:
Now click OK and you will see this:
Now click OK.
Step 12 - Now long press on framework-res.apk and select Move To. Move it to the Framework folder within System.
You will see the following warning:
Click OK. Now your phone will freeze. This is ok. It will be frozen for roughly 1 - 1½ minutes, then it will restart.
Once it reboots, you will be staring at your new masterpiece!
Stock Samsung Circle Lockscreen
ICS Lockscreen
LOCKRINGS​ (These are made for a HDPI screen and are at 162dp x 162dp)
Ok below are a bunch of lockrings for everyone to use. I have also included the Stock ICS lockring and the Stock Samsung Circle lockring so that if you want to modify them yourself then you can. The other lockrings were made by me (apart from Metallica which was made by martintspederen). Just click on the picture you want and it will open up a new tab where you can download it. Once it's downloaded, extract the files and rename them to the appropriate file name for your particular lockscreen. Requests are both welcome and encouraged!
ALL OF THE LOCKRINGS HAVE BEEN MOVED TO THE 5TH POST, SO PLEASE SCROLL DOWN TO SEE AND DOWNLOAD THEM
Now if this post helped you I would love to know about it, so please post a reply. Even post screen shots of what you have done would be great.
Cheers XDA,
Dave
@daveyannihilation oh mate!! you made the thread my friend very good job.. i was thinking of making something like it for mig lockrings
shirshicoolin and me was about to ask you of making a thread for all of us lockring guys
the next thing could be to implement the diffrent device locations: samsung:::ic_lockscreen_handle_normal.png
oh and i was the first LOL and thanks for the links as always
very good
how if i want to change default lockscreen and porting from sense 4.0 lockscreen , can u help me ?
LOCKRINGS​
Ok below are a bunch of lockrings for everyone to use. I have also included the Stock AOSP lockring and the Stock Samsung Circle lockring so that if you want to modify them yourself then you can. The other lockrings were made by me (apart from Metallica which was made by martintspederen). Just click on the picture you want and it will open up a new tab where you can download it. Once it's downloaded, extract the files and rename them to the appropriate file name for your particular lockscreen. Requests are both welcome and encouraged!
hiii...
thanks nice guide... can you give me your desktop wallpapers.... both.... i like them....
lokeshsaini94 said:
thanks nice guide... can you give me your desktop wallpapers.... both.... i like them....
Click to expand...
Click to collapse
Are you talking about the wallpapers that are in the screenshots in the guide? If so then it is actually a live wallpaper. I downloaded a program called Windows 7 Dreamscene Activator which you can get from here and I know it says it is for Windows 7 but I am running Vista and it works on my computer and I know it runs on XP Premium as well.
So once you install Dreamscene Activator you just right click on any mpg file and select Set as Desktop Background and then you've got a live wallpaper. Then I just searched for dreamscene wallpaper download on Google and that's how I found the Android one which is on the Dreamscene website here but for some reason it's not working at the moment. I just uploaded it for you, so click here and you can download it. Enjoy
Thanks... Will download it tommorow morning....
EDIT: its working fine but how do i change font color of desktop icons....
lokeshsaini94 said:
Thanks... Will download it tommorow morning....
EDIT: its working fine but how do i change font color of desktop icons....
Click to expand...
Click to collapse
I'm fairly certain that you need to go to Control Panel/Display then click on the Appearance tab and then click the Advanced button.
In this section you can change the colour for all of the backgrounds and text that you want. It's pretty cool.
Let me know how you go?
daveyannihilation said:
Are you talking about the wallpapers that are in the screenshots in the guide? If so then it is actually a live wallpaper. I downloaded a program called Windows 7 Dreamscene Activator which you can get from here and I know it says it is for Windows 7 but I am running Vista and it works on my computer and I know it runs on XP Premium as well.
So once you install Dreamscene Activator you just right click on any mpg file and select Set as Desktop Background and then you've got a live wallpaper. Then I just searched for dreamscene wallpaper download on Google and that's how I found the Android one which is on the Dreamscene website here but for some reason it's not working at the moment. I just uploaded it for you, so click here and you can download it. Enjoy
Click to expand...
Click to collapse
Thanks a lot
Inviato dal mio GT-N7000 con Tapatalk 2
hey....
sorry for one more off topic question but which tool you use to decompile apk files...
how do you have an option to decomplie apk on right clicking an apk file...
lokeshsaini94 said:
sorry for one more off topic question but which tool you use to decompile apk files...
how do you have an option to decomplie apk on right clicking an apk file...
Click to expand...
Click to collapse
Umm I'm pretty sure it was a program called APK One Click
I've never used it to decompile though, I have always used APK Tool because it worked well with ICS Roms where as APK One Click didn't
Great effort Dev
Great guide to change the lockrings to our custom look.....:laugh::laugh::laugh:
.
.
.
. But can you help me in changing the Pattern circle type,shape,even size so that i suits to my droid screen size....
Hoping that i'll get a reply Here..
Sure mate. What device are you using? And do you mean the lockscreen that you use to enter in a pattern to unlock the phone? How big exactly do you want it? I have a bit of an idea the files that you need to modify but I would like to know the device to be able to help you as best I can.
Sent from my ICS Blue SGSII
@OP thanks for the png's
sandy7 said:
@OP thanks for the png's
Click to expand...
Click to collapse
No problem mate,
Glad you liked them. I will try to do some more designs once I finish my other theme thread.
didu73 said:
Sorry to be 10 posts. Need to speak
Click to expand...
Click to collapse
Huh? I don't don't understand? Do you need help with something?
daveyannihilation said:
No problem mate,
Glad you liked them. I will try to do some more designs once I finish my other theme thread.
Click to expand...
Click to collapse
ya some more png's desings would be great...
sandy7 said:
ya some more png's desings would be great...
Click to expand...
Click to collapse
No worries. Any ideas? I had in mind to do a few like Coke and Pepsi but I'm trying to think of some others. Any ideas would be great.
Thanks.
daveyannihilation said:
No worries. Any ideas? I had in mind to do a few like Coke and Pepsi but I'm trying to think of some others. Any ideas would be great.
Thanks.
Click to expand...
Click to collapse
like miui logo would be nice..
a arrow mark,
HTC ring
google logo

[GUIDE]Theming your ROM on Phone(Editing framework-res.apk to change icons)

So friends, here is a quick and easy guide for changing the status bar icons of your s5830i(Actually any phone )
For those who don't know how to do it(for anyone actually :highfive
Theory
Android is the awesome platform which is easily configurable and is able of being edited very easily
The icons used in every app and Android framework are located as png images in apk of those respective apps in location:-
*.apk/res/drawable-mdpi (in our case, as our phone is mdpi)
So, we can change any icon of our status bar like battery, signal, (not clock[clock is to be configures in SystemUI.apk{will post how to change it shortly}]), etc by editing png's in framework-res.apk
Not even that, you can edit images of any app as I told you
There are several ways to decompile and compile apk in which we have made change
If we want full access of apk and want to change every thing like the xml's in it and smali content in jar files, then we would have to do it on computer by apktool or apkmanager
But, we are here to only change image, so we would not go in detail of apktool or apkmanager. For changing images, that can be very easily done even on the phone by an app NinjaMorph that is made for developers by our senior head and DEVELOPING LEGEND Stephen(Stericson)
But be careful as backing up the original file if you do something wrong
And as you all know any developer or even a newbie posting something interesting that you want to try WILL NOT BE RESPONSIBLE for your mobile blowing up, resting in peace, sleeping like a dead, behaving like a non-living BRICK, or anything whatsoever that may or may not happen to phone in this universe or any other universe known or unknown​
What to do if anything happened to my mobile
We have had a backup of your original file so we can restore it
But if while editing the system files like framework-res.apk
If you deleted some un-backed up apk's
Well you can always have backup of your ROM and that is why Koushik Datta has made clockworkmod Recovery
You can restore your ROM from there
Pre-Requisites
Patience
Mind
A GT-S5830i (A spare one if you brick your phone, just kidding)
Root access(to change the apk)
NinjaMorph(http://bit.ly/ninjamorph)
Root Explorer(Optional)(http://bit.ly/stericson)
GUIDE
So Let's Start
Download NinjaMorph. Install it and give it root access. It will prompt for starting checks. Click on start checks.
Now you would have three options, namely, New Project, Finish Project, Existing Project
Click on new project. Go to system/framework/ and click on framework-res.apk. It will start extracting files
Once it has extracted all the files, it will open to show you what is inside framework-res.apk.
Exit it and go to your file explorer.
Go to /sdcard/AndroidThemes/workspace/framework-resapk
This is what is inside apk. Go to res/drawable-mdpi folder
There you will see hundreds of icons of your menu, lockscreen, battery, signal, and everything
You can edit them and replace them as you want. But the name of the file you are replacing and size and dimension must be equal to the file you are replacing with(I recommend Googling and finding icons of battery, signal, and other things)[I have even used hdpi icons, there was no problem]
If you download a theme file which is to be flashed in recovery that is not for your phone, no problem, extract the zip and place its framework-res.apk in your sdcard and extract the apk with Ninjamorph. Replace your icons with its icons and TADA
After you have done replacing the icons and you are satisfied(I am never)
Go to NinjaMorph. Click on Fininsh Projects. Click on framework-resapk. It will recompile and ask to replace the original apk with modded one. Click OK
Then it will ask if you want to remove the completed project, Say No(As you would need it if something gets wrong)
Reboot your phone
Maximum chances are that your icons will be replaced. Rare cases have their status bar gone or no change, if so:-
Download(Buy) Root Explorer. Go to /sdcard/AndroidThemes/workspace,
There you will see framework-res.apk. Copy it and go to /system/framework
Mount as R/W
Paste the apk. If it asks that file already exists, overwrite it.
SET PERMISSIONS
Long click on framework-res.apk and click on permissions
You will see three columns
Read Write Execute
You have to set them in the following way
x means you have to tick it
blank means uncheck
Read Write Execute
.....x........x.................
.....x...........................
.....x...........................
Click OK
You will see it as rw-r--r--
Reboot
Do it over again if nothing happens
Enjoy
This way you can edit not only framework-res.apk but any apk
Treat
This section is different from the thread topic
I: Faking Up
Want to make your device show Jelly Bean in About Phone
Go to Root Explorer
Go to /system
Long click on build.prop
Click on Open in a Text Editor
Change the files as
ro.build.display.id=Jelly Bean
ro.build.version.release=4.1.4
Save Changes
Reboot
II: Easter Egg
You all must know that an image of GingerBread Zombie comes up when you repeatedly click on Android Version in Setting>About Phone
Wanna change it to look like Jelly Bean?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Extract framework-res.apk
Go to res/drawable-nodpi
You will see platlogo.jpg
Replace it with the file in attachment
Recompile
Reboot
Troubleshooting
Will find and update it
Tell me what problems are you having
How to make your status bar transparent
Quick Guide
Detailed one afterwards
Open SystemUI.apk/res/layout/status_bar.xml
Change android:background code from ff000000 to 7f000000 for 50% Transparency
For 100% code is 00000000
You forget about this http://www.java2s.com/Open-Source/A...ndroid/internal/app/PlatLogoActivity.java.htm
To change 'zombie art by Jack Larson' to yours text for example 'Android KING !!' to have a Fully changed Ginger Bread Easter Egg a'la Jelly Bean
How to:
-Decompile framework.jar
-Find PlatLogoActivity.xml in com/android/internal/app/
-Open with notepad++(Windows) or gedit(Linux)
-Find this line "Zombie art by Jack Larson"
-Change this text to yours
-Save and close file
-Recompile your framework.jar file
-Make an CWM package and install it
-Or replace it with Root Explorer or other app like MiFile and change permissions to 644(rw-r--r--) and restart your phone
-Enjoy
Ty 4 ur work but can u give me root explorer on media fire coz my own one from black mart is chinies n I really use it very hard
Sent from my GT-S5830i using xda premium
whisper_ said:
Ty 4 ur work but can u give me root explorer on media fire coz my own one from black mart is chinies n I really use it very hard
Sent from my GT-S5830i using xda premium
Click to expand...
Click to collapse
Try 4Shared, Don't Post Links.. Warez Not Allowed..
:laugh:
whisper_ said:
Ty 4 ur work but can u give me root explorer on media fire coz my own one from black mart is chinies n I really use it very hard
Sent from my GT-S5830i using xda premium
Click to expand...
Click to collapse
If you don't want to pay, get a free file explorer (Solid Explorer, FX File Explorer, ES File Explorer).
Boudz78 said:
Try 4Shared, Don't Post Links.. Warez Not Allowed..
:laugh:
Click to expand...
Click to collapse
I get it, you're lebanese, and we here pretty much never pay for any software. But warez discussion isn't allowed as well, so you broke the rules as well.
whisper_ said:
Ty 4 ur work but can u give me root explorer on media fire coz my own one from black mart is chinies n I really use it very hard
Sent from my GT-S5830i using xda premium
Click to expand...
Click to collapse
It is not allowed to post warez on xda forum
And I don't know why people don't Thank for useful posts but thank more on useless post
GermainZ said:
If you don't want to pay, get a free file explorer (Solid Explorer, FX File Explorer, ES File Explorer).
I get it, you're lebanese, and we here pretty much never pay for any software. But warez discussion isn't allowed as well, so you broke the rules as well.
Click to expand...
Click to collapse
Yeah lolllz
I ever want to know how to edit the icons...but i have two questions
1.-What is the name of the image that appears of background in the messages?..i want to changue the color of the messages that i send and received
2.-The room that i have installed has 6 toggles on screen and only want to appearss 5..what line of code i should to edit?
ErickBG said:
I ever want to know how to edit the icons...but i have two questions
1.-What is the name of the image that appears of background in the messages?..i want to changue the color of the messages that i send and received
2.-The room that i have installed has 6 toggles on screen and only want to appearss 5..what line of code i should to edit?
Click to expand...
Click to collapse
You should edit Mms.apk
I don't know as I never edited Mms.apk
For colour you should edit xml files
Which won't be accessed by this method
And the code you are asking for
You won't get the xml from this method
So you won't be able to edit it
I don't know why my thread was moved
Modifying ROM is in development section by XDA rules
iamareebjamal said:
I don't know why my thread was moved
Modifying ROM is in development section by XDA rules
Click to expand...
Click to collapse
Modifying - yes. Instructing how to modify - no.
Added
How to make your status bar transparent
I followed this guide for change the icons' color in lidroid's toggles. I descompile the lidroid-res.apk, replaced some png, then recompile. I made everything. But when I rebooted my fone, no change. This guide is to it? Help me, please.
Thanks....sorry my bad english.
Humberto.Ortega said:
I followed this guide for change the icons' color in lidroid's toggles. I descompile the lidroid-res.apk, replaced some png, then recompile. I made everything. But when I rebooted my fone, no change. This guide is to it? Help me, please.
Thanks....sorry my bad english.
Click to expand...
Click to collapse
Decompile systemui.apk and try to change icons there
And don't forget that icons should of same name as you are replacing
iamareebjamal said:
Decompile systemui.apk and try to change icons there
And don't forget that icons should of same name as you are replacing
Click to expand...
Click to collapse
But in the systemUI.apk don´t have the lidroid's icon. I only found them in lindroid-res.apk.
I tried change the color with ninjamorph, and it´s work. But if I replace an icon, it doesn´t work.
thanks
Edited: I was trying replace the png's with the ninjamorph. It was the problem.
Now I replaced the png's with root explorer and all work fine.
Thanks so much....sorry my bad english
iamareebjamal said:
Added
How to make your status bar transparent
Click to expand...
Click to collapse
where is guide on making status bar transperent ?
please provide the link
thanks in advance
Sent from my GT-S5830i using xda app-developers app
srt99 said:
where is guide on making status bar transperent ?
please provide the link
thanks in advance
Sent from my GT-S5830i using xda app-developers app
Click to expand...
Click to collapse
See 2nd post
Ok I am trying to edit my status bar to 50% transparent but when i open the file in root explorer all i get is a bunch of ?[]??????????? etc etc
Im running MincCr rom on a galaxy ace s5830i
PhaseCoder said:
Ok I am trying to edit my status bar to 50% transparent but when i open the file in root explorer all i get is a bunch of ?[]??????????? etc etc
Im running MincCr rom on a galaxy ace s5830i
Click to expand...
Click to collapse
You will not be able to do that until you read the first post CAREFULLLY

[MOD][GUIDE]Modified S-PEN Shortcuts toolbar / Change Apps (CWM)

IMPORTANT: Flash this MOD at your own risk. I or the XDA assume NO responsibility for any failed flashes or bricked tablets.​
Samsung Galaxy Note 10.1
How-To change Apps in the S-PEN Shortcuts toolbar​
I found, after a long time, a solution for change the Apps in the S-Pen Shortcuts toolbar. The toolbar pops up if you pushed out the S-Pen.
I don´t like and use some Apps like this stupid Game "crayon_physics" or Polaris Office...... first i have delete the Game but how i can get a new App in this Toolbar?!?
Now i have found a solution!!! And i want to teach you how you can do this!!!
First a few Screenshoots before and ofter the modding:
before (without the game):
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
after modding:
So .... how can you change the toolbar? I have tested it only on a deodexed ROM!!
What do you need?
any APK Tool Manager for decombile and recombile, like this LINK
a Text Editor like Notepad++ (free)
your SystemUI.apk from your ROM
a cup cake and a coffee :laugh:
First you decombile the SystemUI.apk
Go to the folder systemui\res\values
open the arrays.xml with the Text Editor
Here you find this lines
Code:
com.diotek.mini_penmemo,com.diotek.mini_penmemo.Mini_PenMemo_Service
com.sec.android.app.snotebook,com.infraware.filemanager.FmFileTreeListActivity
com.android.calendar,com.android.calendar.AllInOneActivity
com.acrodea.crayonphysics,com.acrodea.crayonphysics.crayonphysics
air.com.adobe.pstouch.oem1,air.com.adobe.pstouch.oem1.AppEntry
com.infraware.PolarisOfficeStdForTablet,com.infraware.splash.SplashActivity
Now you need the packageName and the className of the App that you want to make in the Toolbar.
An example:
com.acrodea.crayonphysics,com.acrodea.crayonphysics.crayonphysics
packageName = com.acrodea.crayonphysics
className = com.acrodea.crayonphysics.crayonphysics
or
air.com.adobe.pstouch.oem1,air.com.adobe.pstouch.oem1.AppEntry
packageName = air.com.adobe.pstouch.oem1
className =com.adobe.pstouch.oem1.AppEntry
Now you can change the packageName & className with your wanted Apps and recombile the SystemUI.apk
Pushed the SystemUI.apk in a flash able ZIP or changed it in your ROM.
Here are a List of Apps that i have allready tested! If you have an other App please post the packageName and the className and i added it on this List!!!
Or install the ClassFinder App
Code:
[B]Contacts[/B]
packageName=com.android.contacts
className=com.android.contacts.activities.DialtactsActivity
or
[B]Contacts[/B]
packageName=com.android.contacts
className=com.android.contacts.activities.PeopleActivity
[B]ChatOn[/B]
packageName=com.sec.chaton
className=com.sec.chaton.HomeActivity
[B]Camera[/B]
packageName=com.sec.android.app.camera
className=com.sec.android.app.camera.Camera
[B]Galerie[/B]
packageName=com.sec.android.gallery3d
className=com.sec.android.gallery3d.app.Gallery
[B]Dropbox[/B]
packageName=com.dropbox.android
className=com.dropbox.android.activity.DropboxBrowser
[B]Youtube[/B]
packageName=com.google.android.youtube
className=com.google.android.youtube.app.honeycomb.Shell$HomeActivity
[B]Settings[/B]
packageName=com.android.settings
className=com.android.settings.Settings
[B]Browser[/B]
packageName=com.android.browser
className=com.android.browser.BrowserActivity
[B]Maps[/B]
packageName=com.google.android.apps.maps
className=com.google.android.maps.MapsActivity
[B]Calender[/B]
packageName=com.android.calendar
className=com.android.calendar.AllInOneActivity
[B]PSTouch[/B]
packageName=air.com.adobe.pstouch.oem1
className=air.com.adobe.pstouch.oem1.AppEntry
[B]Contacts[/B]
packageName=com.infraware.PolarisOfficeStdForTablet
className=com.infraware.splash.SplashActivity
[B]E-Mail[/B]
packageName=com.android.email
className=com.android.email.activity.Welcome
[B]Samsung Video Player[/B]
packageName=com.sec.android.app.videoplayer
className=com.sec.android.app.videoplayer.activity.MainTab
more coming soon....
In the attachment you can found a SAMPLE ZIP File! This is flashable over CWM. Use this to flash your own SystemUI.apk ... only change the SystemUI in the ZIP with your SystemUI.apk
If I could help you.... I am happy if you press the THANKS Button or buy me a beer or coffee
:victory:!
Any Credits go to me! Feel free for using this in your own ROM ... only linked this Thread and give the Credits to me! Thanks!
Changelog
11.01.2013
- Class Finder App online ... read here
03.01.2013
- Samsung Video Player added
- Contacts added with a different Startscreen
FAQ
Q: Where can i find the packageName & className from my wanted App?
A: Install the Class Finder App ... this App show you the className and packageName !!! Link
Wow very nice work. Going to be very handy. Thanks.
Sent from my GT-N8013 using Tapatalk 2
Great idea :thumbup:
Send from my toilets
That is the best entry I have seen on this forum, today!
Thank you
I have been looking for something like this.
Now, if we can just get it to be modified, on the fly (as an app and not required to be flashed in recovery), by specifying the apps you want to put in there....THAT will be cool and very, VERY useful.
Thanks for you hard work - appreciated.
bert269 said:
Now, if we can just get it to be modified, on the fly (as an app and not required to be flashed in recovery), by specifying the apps you want to put in there....THAT will be cool and very, VERY useful.
Click to expand...
Click to collapse
Sorry but that is not possible.. because the SystemUI.apk must be decomplie.... and this is on the Device not possible..
pimpmaneaton said:
Wow very nice work. Going to be very handy. Thanks.
Sent from my GT-N8013 using Tapatalk 2
Click to expand...
Click to collapse
Any chance you could add Lecture Notes in future builds of Redemption?
Sent from my Galaxy Note 10.1 using Tapatalk HD
Great News!!!
The User bjbinc have made an App for use to read out the className of any App that installed ist!!! :highfive: :good:
BIG THANKS TO bjbinc !!!!
Install the ClassFinder_1.0.apk from Attachment an start it. Select the needed Apps and go to SAVE. Then the App saves a classes.txt to /storage/sdcard0/ClassFinder/ .... this you can open and find your requestet Infos!!
Great and easy Tool :highfive: :good:
With this Infos you can make the MOD with your own Apps!
To make an App for modded the SystemUI.apk rigtht on the device is not possible because the SystemUI.apk must be decompile.... and this is not possible on the Device. ..... sorry
Glad to help out my friend :good:
anyone having problems with the SystemUI crashing after trying to do this?. The mod works but the it keeps crashing for some reason when i hit the home button
ckavvouras said:
anyone having problems with the SystemUI crashing after trying to do this?. The mod works but the it keeps crashing for some reason when i hit the home button
Click to expand...
Click to collapse
With APK Tool you are using?
Can you post your SystemUI ?
Darkman_RS said:
With APK Tool you are using?
Can you post your SystemUI ?
Click to expand...
Click to collapse
im using apk manager v5.0.2
with the latest apktool.bat and jar
the original apk size compressed is 2.6mb after i recompile its 1.6 mb compressed, when i decompress both file they both match up perfectly as far as i can see
hope this helps with helping me
ckavvouras said:
the original apk size compressed is 2.6mb after i recompile its 1.6 mb compressed, when i decompress both file they both match up perfectly as far as i can see
Click to expand...
Click to collapse
that is ok
your systemui looks good... i think its your apk manager
if decompilie and recompilie without changing anything, works this ui?
which ROM you are using? And please post your untouched SystemUI i try to make the change for you!
Darkman_RS said:
that is ok
your systemui looks good... i think its your apk manager
if decompilie and recompilie without changing anything, works this ui?
which ROM you are using? And please post your untouched SystemUI i try to make the change for you!
Click to expand...
Click to collapse
tried that as well, same thing happens. every time i hit the home back or recent button my system ui crashes, i can open up the pull up menu without a problem, when i pull the spen out the side dock pops up with no problem, cant figure it out. have tried with different methods for compiling and decompiling apks. cant remember what rom im using but i downloaded off xda its a deodexed rom. build number jzo54k.n8000xxcll3.deodexed
ckavvouras said:
tried that as well, same thing happens. every time i hit the home back or recent button my system ui crashes, i can open up the pull up menu without a problem, when i pull the spen out the side dock pops up with no problem, cant figure it out. have tried with different methods for compiling and decompiling apks. cant remember what rom im using but i downloaded off xda its a deodexed rom. build number jzo54k.n8000xxcll3.deodexed
Click to expand...
Click to collapse
Ok then your APK Manager is not work with TW ROMs ... you need to install the framework-res.apk and the twframework-res.apk !!
Test the UI in Attachment!! Flash the ZIP over CWM...
And for decompilie i use this
Guide and this Tool !!!!
Darkman_RS said:
Ok then your APK Manager is not work with TW ROMs ... you need to install the framework-res.apk and the twframework-res.apk !!
Test the UI in Attachment!! Flash the ZIP over CWM...
And for decompilie i use this
Guide and this Tool !!!!
Click to expand...
Click to collapse
no luck, grrr i have tried everything even pushing it with adb, the systemui keeps crashing, when i replace it with the stock systemui everything runs fine, i even installed the latest 8010 you have posted on another thread and build a new one and pushed that one and still no luck :crying: also i noticed the screen turns on by its self for no reason with the modified systemui
one last Attempt ...
Please use the latest N8010er Build N8010XXUCMA5 deodexed from me. After flashed the ROM reboot the device.. then reboot in Recovery and flash the ZIP from this attachment!
I hope now it works...
Darkman_RS said:
one last Attempt ...
Please use the latest N8010er Build N8010XXUCMA5 deodexed from me. After flashed the ROM reboot the device.. then reboot in Recovery and flash the ZIP from this attachment!
I hope now it works...
Click to expand...
Click to collapse
no cigar, flashed it from cwm and this one doesn't even load at boot. I browsed with root explorer and its in the /system/app folder but its just not registering. but thanks anyways man i appreciate the help
ckavvouras said:
no cigar, flashed it from cwm and this one doesn't even load at boot. I browsed with root explorer and its in the /system/app folder but its just not registering. but thanks anyways man i appreciate the help
Click to expand...
Click to collapse
Unfortunately, it doesn't work properly for me. I do get it to work, but then the systeui.apk crashes every few seconds. Do you have an indication of what could go wrong, or at least where do you think a mistake is made?

[Tool][PortCx] Port CM Themes to Xtheme Engine in One Click! v2.2 TouchwizSupportBeta

Hi Geeks
Want to Theme your Phone at Runtime? Did you try Xposed Framework and Xtheme Engine Yet?
Here i present to you a tool that'll port CynogenMod Themes to Ones supported by Xtheme Engine just in one Click!
To start making your own themes,go to post #2
1.PortCx
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Requirements:
1.Windows Machine
2.Java JRE 7
3.Notepad ++
4:Some Commom sense
Click to expand...
Click to collapse
Instructions:
1.Need to have Xposed Framework and Xtheme Engine Installed and modules updated
2.Download the Tool and Extract
3.Copy your framework-res.apk to Portx_Madaditya/bin/resources/
4.Open /bin/.JavaPath using Notepad++ and define Java path in /bin/.JavaPath as Shown(Find your path)
Make sure the same path exists in your System Variables as described here How to add PATH Env variable
Try this if you have Java errors Link to post
5.*Run Setup.cmd to choose the tool to use
6.For PortCx,place your .apk (apk name should be w/o spaces) in PlaceApksHere_PortCx
7.Run PortCx.cmd,enter few choices and soon you'll have a Xtheme Supported .apk in Output Directory! :good:
8.Read the Script as you go,mayb you'll learn porting
Click to expand...
Click to collapse
2.PortCx_Mini
Use this ONLY if PortCx gives you Java errors
Dosen't use Java ,Requires MANUAL De/Recompiling and removing errors if any.
Click to expand...
Click to collapse
Instructions:
1.Decompile the Theme You want using any ApkTool,
and follow instructions as in the picture
Click to expand...
Click to collapse
Downloads:
Go to the Second Post
Click to expand...
Click to collapse
Thanks to:
1.gu5t3r for his base Cygwin Goptimizer Pack!
2.Dully79 for an awesome tutorial [Guide] Porting CM10/.1 themes to XTheme
3.rovo89 for Xposed Framework! Its Amazing!
4.ruqqq for Xtheme Engine!
5.pier10 for hiw work for touchwiz themes.Have used his generic redirections for touchwiz
Valuable Work :good:
Click to expand...
Click to collapse
Note:
1.Do Not Share Themes if you dont have the permissions of the Theme Dev
2.Sharing Paid Themes without permissions will not be encouraged and is against the rules of Xda
3.If you have errors,please try with this framework-res.apk
4.If reporting errors,provied the apktool.log, theme name and link if possible
5.Very Few themes are NOT compatible and give you a 'FAILED TO APPLY'. Working on them
6.Touchwiz Themes is in Beta,please report with screenshots and also if possible the related png's which are not themed
Click to expand...
Click to collapse
Hit Thanks and Rate Good if you find it helpful and Motivate
Changelog:
V 1.0
Initial Release
V 1.1
Made script more smart,it'll start again IF recompilation fails
Keeps previous Error apktool.log as apktool_old.log
More readable and Easy Instructions:Check Screenie
Cleanup PlaceApkHere folder when succesfull
V 1.2
Now can add multiple themes to port(No 1 apk restriction)
Made backup optional
Changed PlaceApkHere to PlaceApksHere
Added Working Directory to make things simple
V 2.0
Added touchwiz Xtheme support BETA. Thanx to pier10 for his work
Combined PortCx and ImageRx and save you some bandwidth XD
Added one more script CopyX: to copy images from /Source to /Destination only if present in /Destionation(Useful for theme ports)
Updated to Apktool v2 Beta 8 . Thanx to gu5t3r's Goptimizer update
Added a Setup option to select Scripts
Removed backup option for POrtCx,coz apk's in PlaceApkHere_portCx remain untouched
V 2.1
Added PortCxMini for ones facing Java Issues
Uses the Genius of PortCx,requires no Java but MANUAL De/Recompiling of the Theme
V 2.2
Added Extra touchwiz redirections
Feedback welcomed! and report Errors,I'll Be happy to Help ​
ImageRx for NICS Themer
Want to make your own Mini-Themes?
Head here [Guide][NICS Themer] Create Your Own Themed apk & Become a Themer Yourself by saqib nazm
Another script ImageRx that would​
1.Add the required prefix to image name and Rename them
2.Also create the required redirection xml​
So this Would Automate renaming multiple images with same prefix as needed for NICS themer
Download
ToolsX_Madaditya v2.2
Old​ImageRx_Madaditya[/HIDE]
Click to expand...
Click to collapse
Thanks to:
1.@saqib nazm-For this Awesome guide
Click to expand...
Click to collapse
Hope this will be helpful :good:
Since this is my first script might have errors.Please report​
i tried it but it got no files in output
Frankie_Ho said:
i tried it but it got no files in output
Click to expand...
Click to collapse
Did copy framework,Defined java path?
or you should also check /tmp/apktool.log when prompted to
If it has errors ofcourse it wont recompile!
Could you post the apktool.log created and the command prompt screen?
i'll look into it
and What theme are you trying to port?
Nooby question here (root explorer is doing a search but I am impatient) where do the APKs download from a Theme from the Plays Store?
Madaditya said:
Did copy framework,Defined java path?
or you should also check /tmp/apktool.log when prompted to
If it has errors ofcourse it wont recompile!
Could you post the apktool.log created and the command prompt screen?
i'll look into it
and What theme are you trying to port?
Click to expand...
Click to collapse
I did all that and it has no error in the log
I will post the screen later
btw when it tells there re errors in apktool, is that i just need to use notepad++ to go into apktool and delete that line? that's wt i do to solve the error.
Sent from my LG-E988 using Tapatalk
Madaditya said:
Did copy framework,Defined java path?
or you should also check /tmp/apktool.log when prompted to
If it has errors ofcourse it wont recompile!
Could you post the apktool.log created and the command prompt screen?
i'll look into it
and What theme are you trying to port?
Click to expand...
Click to collapse
It worked! But not on the first try. Okay, so I ported this cm theme:
http://forum.xda-developers.com/showthread.php?t=2434721
The first time, It gave me a compile error(but before the xtheme compilation started everything was going smooth) So I did all the steps over again. The second time it worked like a charm. The problem is that you HAVE to press y to show error log even if there are no errors, or the steps fail. But I worked like a charm other than that! I also put "xthemer" at the end of the line when it ask you to choose apk name: com.xxx.xthemer
My apk xtheme is in the attachments.
Also dev, you need to post pre-requested tools in op. Like the tools the user needs:
Java JRE7
Notepad++
Awesome Good!!!
BTW, Should make a noob script for Decompiling and Recompile SystemUI.apk And Framework-res.apk. Alot of people do the steps wrong and end up with bootloop. Its simple but useful
arDroid.99 said:
It worked! But not on the first try. Okay, so I ported this cm theme:
http://forum.xda-developers.com/showthread.php?t=2434721
The first time, It gave me a compile error(but before the xtheme compilation started everything was going smooth) So I did all the steps over again. The second time it worked like a charm. The problem is that you HAVE to press y to show error log even if there are no errors, or the steps fail. But I worked like a charm other than that! I also put "xthemer" at the end of the line when it ask you to choose apk name: com.xxx.xthemer
My apk xtheme is in the attachments.
Also dev, you need to post pre-requested tools in op. Like the tools the user needs:
Java JRE7
Notepad++
Awesome Good!!!
Click to expand...
Click to collapse
Thanks for the iNput!Glad you ported a theme !
yead that step(contntinue) will be succesful only if u hit 'y' else it'll exit
At that moment you expected to minimize,check log,if its empty hit 'y'
Or any other key and it'll exit.
And that's why users should Read the script carefully :thumbup:
and hope you have permissions from the dev to share?
What about scripts for compiling and de compiling?
Madaditya said:
Thanks for the iNput!Glad you ported a theme !
yead that step(contntinue) will be succesful only if u hit 'y' else it'll exit
At that moment you expected to minimize,check log,if its empty hit 'y'
Or any other key and it'll exit.
And that's why users should Read the script carefully :thumbup:
What about scripts for compiling and de compiling?
Click to expand...
Click to collapse
Indeed, I'm loving this tool!!! Awesome dev, hopefully you can fix apktool. For some reason it wont fully decompile hybrid rom system apks
arDroid.99 said:
Indeed, I'm loving this tool!!! Awesome dev, hopefully you can fix apktool. For some reason it wont fully decompile hybrid rom system apks
Click to expand...
Click to collapse
Try the same with Apk-Multi Tool,also for de and re compiling
Pretty Stable,Uses aptook 1.5.2 though
mrbig012 said:
Nooby question here (root explorer is doing a search but I am impatient) where do the APKs download from a Theme from the Plays Store?
Click to expand...
Click to collapse
Try using android assistant to backup apks,and then you'll find them on your sdcard
post your feedback :thumbup:
Frankie_Ho said:
I did all that and it has no error in the log
I will post the screen later
btw when it tells there re errors in apktool, is that i just need to use notepad++ to go into apktool and delete that line? that's wt i do to solve the error.
Sent from my LG-E988 using Tapatalk
Click to expand...
Click to collapse
You mean you have no recompilation errors? In /tmp/apktool.log and you find nothing in output?
Did you clean the 'PlaceApkHere' folder and placed just one apk there before you could start?
exactly,when it says
"Script will wait till you remover errors
CONTINE?"
just browse to that xml and line,delete it or modify if you can,dont leave a blank line and continue...
If you still have errors,tellme the ThemeName,i'll try
arDroid.99 said:
Thanks dude! I'm making a rom for the N4, and this tool just made my day!!!
Click to expand...
Click to collapse
thanks mate
And that's a good news!
Madaditya said:
Try the same with Apk-Multi Tool,also for de and re compiling
Pretty Stable,Uses aptook 1.5.2 though
Click to expand...
Click to collapse
Thanks dude! I'm making a rom for the N4, and this tool just made my day!!!
Madaditya said:
Try the same with Apk-Multi Tool,also for de and re compiling
Pretty Stable,Uses aptook 1.5.2 though
Try using android assistant to backup apks,and then you'll find them on your sdcard
post your feedback :thumbup:
You mean you have no recompilation errors? In /tmp/apktool.log and you find nothing in output?
Did you clean the 'PlaceApkHere' folder and placed just one apk there before you could start?
exactly,when it says
"Script will wait till you remover errors
CONTINE?"
just browse to that xml and line,delete it or modify if you can,dont leave a blank line and continue...
If you still have errors,tellme the ThemeName,i'll try
thanks mate
And that's a good news!
Click to expand...
Click to collapse
i do clean the folder and i m sure that after i delete the line, i got nth in the apktool.log
Frankie_Ho said:
i do clean the folder and i m sure that after i delete the line, i got nth in the apktool.log
Click to expand...
Click to collapse
What Theme?!
Madaditya said:
What Theme?!
Click to expand...
Click to collapse
Gem flat
Sent from my LG-E988 using Tapatalk
Frankie_Ho said:
Gem flat
Sent from my LG-E988 using Tapatalk
Click to expand...
Click to collapse
I Did Port it succesfully
when you see this part
Minimize the Cmd Window
Go to /PlaceApkHere/GemFlat/res/values
Open Styles.xml with Notepad++
Remove Line #96,dont keep an empty line
Hit enter on the script..and you'll be good to go :good:
Madaditya said:
I Did Port it succesfully
when you see this part
Minimize the Cmd Window
Go to /PlaceApkHere/GemFlat/res/values
Open Strings.xml with Notepad++
Remove Line #96,dont keep an empty line
Hit enter on the script..and you'll be good to go :good:
Click to expand...
Click to collapse
i dun see the file values in res
PLease Redownload V 1.1
Updated 8:45 pm
Fixed some errors
Frankie_Ho said:
i dun see the file values in res
Click to expand...
Click to collapse
Try with the Updated version,and accept recompilation only if your apktool.log is empty/has no errors
Should Work :good:
Please port neon multi color cm theme
vishal11in said:
Please port neon multi color cm theme
Click to expand...
Click to collapse
Its a Paid Theme,Nothing Unless we have The Dev's Permissions
Can also try yourself,that was the purpose of this tool

Categories

Resources