help...in apktool...!!!! - Galaxy Ace S5830i General

this thread is closed....

h_09 said:
i install jdk and jre both...and i also creat enviroment variables....nothing work.....
Click to expand...
Click to collapse
read this, it will help u
http://forum.xda-developers.com/showthread.php?t=1860115
Don't forget to press Thanks :good:

You need apktool.jar, aapt.exe and apktool windows installer in the folder for this to work.

system.img said:
You need apktool.jar, aapt.exe and apktool windows installer in the folder for this to work.
Click to expand...
Click to collapse
You can also add it in the environment variables (where those files are located) so you can use apktool without needing to change directories in command prompt every time you use it.

Put it in another HDD partition and try.Doing it with C doesn't work sometimes because of some sort of a security thingy in Windows
Insert witty sentence here

system.img said:
You need apktool.jar, aapt.exe and apktool windows installer in the folder for this to work.
Click to expand...
Click to collapse
i already have this 3 file....

h_09 said:
i already have this 3 file....
Click to expand...
Click to collapse
Put it in another hdd partition as I told and edit variables again...It will work...
Insert witty sentence here

Prawesome said:
Put it in another hdd partition as I told and edit variables again...It will work...
Insert witty sentence here
Click to expand...
Click to collapse
thanks its work....:good::laugh:

h_09 said:
thanks its work....:good::laugh:
Click to expand...
Click to collapse
Told you it will...C partition is kinda secured..
Insert witty sentence here

Related

Can anyone explain how to properly "install" colorchange.jar program?

I've read through the main thread but most of the info there assumes you have the program up and running. Which I don't. I don't know where to install the files on my computer.
staunty said:
I've read through the main thread but most of the info there assumes you have the program up and running. Which I don't. I don't know where to install the files on my computer.
Click to expand...
Click to collapse
Did you try looking here?
http://forum.xda-developers.com/showthread.php?t=535630
Binary100100 said:
Did you try looking here?
http://forum.xda-developers.com/showthread.php?t=535630
Click to expand...
Click to collapse
Yeah, I did. I ran the command at the top java -XmX512M -jar...
I get an "unable to access jarfile colorchangev3.jar" error. I think its a bit over my level of knowledge anyways.
double post
Do you extract the file to AndroidSDK\tools?
do you have the java jdk installed and included in your PATH?
Know-Fear said:
do you have the java jdk installed and included in your PATH?
Click to expand...
Click to collapse
I'm almost positive I have the jdk included in my path. I believe I did that when I setup my SDK.
I noticed that in the example, within the command you type colorchangev3.jar...I placed the colorChangev3.jar in my AndroidSDK\tools folder and I've typed out the example yet I get a "unable to access Jarfile colorChangev3.jar" error.
Did you make sure to type the file path of the jar file; ie. c:\(file path).jar
evilkorn said:
Did you make sure to type the file path of the jar file; ie. c:\(file path).jar
Click to expand...
Click to collapse
I probably did it wrong but I just added a new PATH
PATH
C:\AndroidSDK\tools\colorChangev3.jar
The previous error is gone when I type the example but now I get an unrecognized java error..."java is not recognized as an internal or external command"...

.png question

Is there a way i can change png files on my phone from my phone? I want to change the calling icon in the framework-res.apk. i found out a way to change it with an app in the market. But i dont know how to put it back in the apk. Help please.
find the picture --> backup it --> put in your picture with the same name and exactly the same bigness (pixels) --> bingo
cheers, stephan1
its not that easy. any other ideas anybody please.
Well if the file is a .9.png then it won't be that easy because these files are compiled to binary. (correct me if I'm wrong devs) You will need to do a little more reading to figure this one out. Also, you can't just "unzip" an apk and mess around with the pics and think that it's going to work when you zip it backup. My understanding is that you have to place the file that you are replacing into the compressed(i.e. zipped) apk.
Once again, Devs, correct me if I am wrong but all my info comes straight from using the search button...Try it out
jballz0682 said:
Well if the file is a .9.png then it won't be that easy because these files are compiled to binary. (correct me if I'm wrong devs) You will need to do a little more reading to figure this one out. Also, you can't just "unzip" an apk and mess around with the pics and think that it's going to work when you zip it backup. My understanding is that you have to place the file that you are replacing into the compressed(i.e. zipped) apk.
Once again, Devs, correct me if I am wrong but all my info comes straight from using the search button...Try it out
Click to expand...
Click to collapse
You're right, and wrong. You can unzip an .apk and mess with the images, then rezip it back up and rename it to (yourapk).apk from (yourapk).zip, you just need to sign it when you're done.
I haven't messed with anything entitled ".9.png", but if it's binary then hex editing it is probably the quickest way to edit it, otherwise there is a program called 'apktool' that can decompile apk's and is pretty effective, I've used it a few times
dmullins80 said:
its not that easy. any other ideas anybody please.
Click to expand...
Click to collapse
Pull framework-res.apk from your phone, to your computer's desktop. Use Winrar, or a similar archive extracting program, to open the file, then click Extract -> (some folder on your desktop that has nothing else in it)
Find the picture you want to change, make sure your new picture is the same dimensions (e.g; 320x480) and is the same type of file (e.g; .png) and replace the stock image with your custom image.
Once that's done, highlight all files and folders in the root of the folder you extracted framework-res.apk to -> (if using Winrar) Right-Click -> Add to archive -> Change archive type to .zip and click OK -> Right click on your newly created framework-res.zip and change the extension to .apk (you might need to open a windows explorer window and select tools->folder options->view tab->uncheck 'hide extensions for known filetypes).
Once that's done, you'll need to sign your new framework-res.apk. You can do that with EasySign. Download EasySign to your desktop, extract the archive and open a Windows Command Prompt (Start->All Programs->Accessories->Command Prompt). You'll need the Java JDK installed.
Drag your newly created framework-res.apk file into your EasySign folder on your desktop and down the following;
Type the following, assuming you have Windows 7 or Vista:
Code:
cd C:\Users\(your username on your PC)\Desktop\EasySign
You should now see the following;
Code:
C:\Users\(your username on your PC)\Desktop\EasySign>
You should now type the following;
Code:
java -jar signapk.jar testkey.x509.pem testkey.pk8 framework-res.apk framework-res_signed.apk
It'll take a moment, then you'll see;
Code:
C:\Users\(your username on your PC)\Desktop\EasySign>java -jar signapk.jar testkey.x509.pem testkey.pk8 framework-res.apk framework-res_signed.apk
C:\Users\(your username on your PC)\Desktop\EasySign>
...and you should now have framework-res_signed.apk in your EasySign folder on your desktop.
Pull it to your desktop and rename it framework-res.apk and put it back where you got it, most likely using adb (if using adb, put it in C:\(your androidsdk folder)\tools and type the following;
Code:
adb remount
adb push framework-res.apk /system/framework
adb reboot
Alternatively, you can place it on your sdcard and use a program like Astro to move it to /system/framework and immediately reboot your phone for the changes to take effect.
Enjoy, it took me like 10 minutes to type this
-mak
Thanks for the wirte up, (i've been try to do something simaler to this for a while). I got to the end but then I get this error in the cmd window. Any thoughts?
'java' is not recognized as an internal or external command,
operable program or batch file.
jadesdan said:
Thanks for the wirte up, (i've been try to do something simaler to this for a while). I got to the end but then I get this error in the cmd window. Any thoughts?
'java' is not recognized as an internal or external command,
operable program or batch file.
Click to expand...
Click to collapse
Sorry, I should have mentioned you'll need the Java JDK installed.
.mak is that the same one by Stericson?
here
sorry if that is slightly OT, just rebuilding the PC setup and need the files, so not sure which one I want to use - his worked last time for me well.
thanks~
dianeofarcadia said:
.mak is that the same one by Stericson?
here
sorry if that is slightly OT, just rebuilding the PC setup and need the files, so not sure which one I want to use - his worked last time for me well.
thanks~
Click to expand...
Click to collapse
EasySign? I'm not sure, I've only downloaded it from grdlock's site. The one you linked to actually looks easier to use..
when you re-zip the file after editing do you use normal compression or store?
Magnum72 said:
when you re-zip the file after editing do you use normal compression or store?
Click to expand...
Click to collapse
Normal if you're in Windows, otherwise .gz (most compatible) under linux.
.mak said:
Sorry, I should have mentioned you'll need the Java JDK installed.
Click to expand...
Click to collapse
I've installed it, but I still get the same error. Do I need to set a system path within java?
If I get this working it will solve many of my 'problems' Thank you!
I used ubuntu... what I did was change the default unknown call icon... I opened the Phone.apk in ubuntu and replaced the pic with another icon from another rom of my choice making sure it had the exact same name.. then went back to windows, pushed phone.apk and got it no problem... ubuntu opens the apk's without having to unzip them...
droidfreak said:
I used ubuntu... what I did was change the default unknown call icon... I opened the Phone.apk in ubuntu and replaced the pic with another icon from another rom of my choice making sure it had the exact same name.. then went back to windows, pushed phone.apk and got it no problem... ubuntu opens the apk's without having to unzip them...
Click to expand...
Click to collapse
I did that with the numbers on the dialer and the home launcher icon in the Tainted Vanilla thread. But there are other apk's that are a bit touchy. Once I learn how to sign them, I think it might open up a whole new world of skinning for me.
Yeh it would be good to get that down... it would open a huge door.. make things easier..
Question; in order for the above process to work, must you be rooted? I would love to change icons...unfortunately my naive-impatient self flashed the leak when it was first brought public.
Ngmanis said:
Question; in order for the above process to work, must you be rooted? I would love to change icons...unfortunately my naive-impatient self flashed the leak when it was first brought public.
Click to expand...
Click to collapse
Unfortunately you do need to be rooted for these changes to occur, however you can still do some customization with apps like Bettercut or ones similar.
jadesdan said:
I've installed it, but I still get the same error. Do I need to set a system path within java?
If I get this working it will solve many of my 'problems' Thank you!
Click to expand...
Click to collapse
I didn't, and it works for me. Are you using the proper commands, exactly as shown in my tutorial?
.mak said:
I didn't, and it works for me. Are you using the proper commands, exactly as shown in my tutorial?
Click to expand...
Click to collapse
Yes! Even coy and paste (except for changing the name of the apk I'm trying to sign).
I've downloaded the java link that you provided and installed, redownloaded and installed the JRE, rebooted. THe java site tells me I have the latest and greatest of everything.
I know it's got to be something I'm doing wrong, I get the same error with Autosign and other batch signing tools. I just don't know what my problem is.
jadesdan said:
I've installed it, but I still get the same error. Do I need to set a system path within java?
If I get this working it will solve many of my 'problems' Thank you!
Click to expand...
Click to collapse
jadesdan said:
Yes! Even coy and paste (except for changing the name of the apk I'm trying to sign).
I've downloaded the java link that you provided and installed, redownloaded and installed the JRE, rebooted. THe java site tells me I have the latest and greatest of everything.
I know it's got to be something I'm doing wrong, I get the same error with Autosign and other batch signing tools. I just don't know what my problem is.
Click to expand...
Click to collapse
Did you make sure to cd into the proper folder from command prompt? I've made this mistake a time or two;
Code:
cd C:\Users\(your username on your PC)\Desktop\EasySign>
^^ assuming you have EasySign in a folder called EasySign on your desktop, and that you change (your username on your PC) to your actual username.

Android Kitchen

I'm not sure if this is the right place to post. Correct me if it isn't.
My question is if anybody here has used the Kitchen on our device? Is it safe to use?
I have tried to cook a rom with it, but there are some points I'm a little confused about. One of them are the csc code that the kitchen makes a flashable zip out of.
Has someone here been through this?
Are there some things I should be especially aware of?
Sent from my GT-I9305 using XDA Premium 4 mobile app
AK safe yes if instructions are followed
Does it work in I9305 sorry not a clue if it says I9305 is supported then yes .
CSC see csc/ modems thread .
This is where i am stuck:
"You can unzip this file and copy the contents of the 'system'
folder to your ROM's system folder."
In my ROM/system/app folder there already are some apk's with those names. Voicetalk.apk, VideoHub.apk, and MusicHub.apk are already there. The only difference is that the files i copy has a exec. picture on them, and that they are renamed with a "copy" at the end of the file name. The size is also different.
Don't know if i should keep both apk files or if i should delete one of them? In that case, which one of them should i delete?
It would be safer to rename them old...
Cundis said:
This is where i am stuck:
"You can unzip this file and copy the contents of the 'system'
folder to your ROM's system folder."
In my ROM/system/app folder there already are some apk's with those names. Voicetalk.apk, VideoHub.apk, and MusicHub.apk are already there. The only difference is that the files i copy has a exec. picture on them, and that they are renamed with a "copy" at the end of the file name. The size is also different.
Don't know if i should keep both apk files or if i should delete one of them? In that case, which one of them should i delete?
Click to expand...
Click to collapse
hmm, wierd, definately wierd..
does it detect CSC folder as a symlink?
---------- Post added at 11:25 PM ---------- Previous post was at 11:22 PM ----------
Raistlin1158 said:
It would be safer to rename them old...
Click to expand...
Click to collapse
wouldnt rename them old, just move the copys to another folder and then test the rom, if all seems good leave them out due to taking up space!
ricky310711 said:
hmm, wierd, definately wierd..
does it detect CSC folder as a symlink?
I'm not an expert at this, how can you tell?
---------- Post added at 11:25 PM ---------- Previous post was at 11:22 PM ----------
wouldnt rename them old, just move the copys to another folder and then test the rom, if all seems good leave them out due to taking up space!
Click to expand...
Click to collapse
Could try it, but there is also an apk in there that doesn't have a copy but with the exec. picture in it. Is it safe to have exec. files in that folder?
EDIT: A little quote problems there lol..
Cundis said:
Could try it, but there is also an apk in there that doesn't have a copy but with the exec. picture in it. Is it safe to have exec. files in that folder?
Click to expand...
Click to collapse
if theres an exe file in there remove it!
also in a few days ill update my rom kitchen for windows to a stable build..
ricky310711 said:
if theres an exe file in there remove it!
also in a few days ill update my rom kitchen for windows to a stable build..
Click to expand...
Click to collapse
Thanx! But how can i tell if the csc folder is detected as a symlink?
Superuser.apk also have that exec. picture on it..
Screenshot
Cundis said:
Screenshot
Click to expand...
Click to collapse
id leave the .apk files with the exec images as the icon, and im pretty sure theres an option to check for symlinks in the tool?
ricky310711 said:
id leave the .apk files with the exec images as the icon, and im pretty sure theres an option to check for symlinks in the tool?
Click to expand...
Click to collapse
Yeah, i'll look into that. Will have to install superuser later then. But all these apk's are apps? So ROM will work good without them?
Cundis said:
Yeah, i'll look into that. Will have to install superuser later then. But all these apk's are apps? So ROM will work good without them?
Click to expand...
Click to collapse
if theres a double of the app id say its 99.9% safe to remove!
ricky310711 said:
id leave the .apk files with the exec images as the icon, and im pretty sure theres an option to check for symlinks in the tool?
Click to expand...
Click to collapse
Did this: "Check update-script for errors (y/n)? (default: y):"
Cundis said:
Did this: "Check update-script for errors (y/n)? (default: y):"
Click to expand...
Click to collapse
the check updater script for errors isnt really accurate, flash and see if it boots! its trial and error from here!
ricky310711 said:
the check updater script for errors isnt really accurate, flash and see if it boots! its trial and error from here!
Click to expand...
Click to collapse
If i dare. I'm not sure..hehe..
Cundis said:
If i dare. I'm not sure..hehe..
Click to expand...
Click to collapse
what are you scared of? a brick? hah! its pretty hard to brick a device...
ricky310711 said:
what are you scared of? a brick? hah! its pretty hard to brick a device...
Click to expand...
Click to collapse
Hehe.. Yeah maybe a little cold feets when it comes to possible bricks. Loosing my imei or something nasty..
Cundis said:
Hehe.. Yeah maybe a little cold feets when it comes to possible bricks. Loosing my imei or something nasty..
Click to expand...
Click to collapse
backup your IMEI and your good, its really hard to brick this device(i had an old experimental one) the only way i did it was by odin, i renamed the recovery as the bootloader and regenrated the md5's then flashed... other then that id say its ALMOST impossibke for a noob...
ricky310711 said:
backup your IMEI and your good, its really hard to brick this device(i had an old experimental one) the only way i did it was by odin, i renamed the recovery as the bootloader and regenrated the md5's then flashed... other then that id say its ALMOST impossibke for a noob...
Click to expand...
Click to collapse
Been thinking about buying a cheap one on ebay and try different stuff myself. One without imei or something.
I think i have 5 different backups of imei, one on my phone, one in dropbox, and on some different harddrives..lol.. Backed it up with qpst when i bought it. I've never had any use for it, but i've flashed my phone some hundred times i think. Been in bootloop a couple of times but that's all.
Yeah.. maybe i should go for it and give it a try. The only reason i use this method is because it's pretty hard to find a tool that will deodex on mac.
Sent from my GT-I9305 using XDA Premium 4 mobile app

Help Compile

When I Compile The app i i'v edited the apk tool doesn't give any result no apk file
Hazem442 said:
When I Compile The app i i'v edited the apk tool doesn't give any result no apk file
Click to expand...
Click to collapse
check if your antivirus has detected recompile.exe file has potential virus and blocked it
I had same problem
sourabhp said:
check if your antivirus has detected recompile.exe file has potential virus and blocked it
I had same problem
Click to expand...
Click to collapse
I'll try to disable antivirus but apk tool doesn't have a recompile.exe file
Hazem442 said:
I'll try to disable antivirus but apk tool doesn't have a recompile.exe file
Click to expand...
Click to collapse
there is recompilefile.exe file in folder named 1-BDFreak. if its not there that means antivirus has deleted or quarantined that file somewhere as its a threat to PC.
sourabhp said:
there is recompilefile.exe file in folder named 1-BDFreak. if its not there that means antivirus has deleted or quarantined that file somewhere as its a threat to PC.
Click to expand...
Click to collapse
there is no files like that i downloaded the apk tool again with antivirus off and tried but the same it finish recompile but no apk exists :crying:
Hazem442 said:
there is no files like that i downloaded the apk tool again with antivirus off and tried but the same it finish recompile but no apk exists :crying:
Click to expand...
Click to collapse
what version of apktool u downloaded?
sourabhp said:
what version of apktool u downloaded?
Click to expand...
Click to collapse
i'm using the latest version 2RC3
Big Thank To U for Answering me I Found That The apk exist in dist folder :laugh::laugh:
i know this is silly but this is my 1st time to use apk tool

Magisk Module Help

I'm trying to make a simple Magisk Module to replace a single file in /statem but I can't make the module valid. When I download the template and zip it up MagiskManger won't recognize it. The root of the zip file has the various files, the files are not in there own directory.
The uploaded zip is the packed template repo.
What program are you using to make the zip? Try a different one... On Windows I've used 7zip. Usually, when making simple modules, I do it directly on my phone and then I use FX File Explorer.
Didgeridoohan said:
What program are you using to make the zip? Try a different one... On Windows I've used 7zip. Usually, when making simple modules, I do it directly on my phone and then I use FX File Explorer.
Click to expand...
Click to collapse
I used Astro, I would assume they would both use the same code for that. Isn't creating a zip a STD library feature?
I used that and it worked, just need to figure out why my boot animation didn't seem to change.
gudenau said:
I used that and it worked, just need to figure out why my boot animation didn't seem to change.
Click to expand...
Click to collapse
https://github.com/topjohnwu/Magisk/blob/master/docs/details.md#simple-mount-details
Didgeridoohan said:
https://github.com/topjohnwu/Magisk/blob/master/docs/details.md#simple-mount-details
Click to expand...
Click to collapse
I don't see that path...
gudenau said:
I don't see that path...
Click to expand...
Click to collapse
Create it...
Didgeridoohan said:
Create it...
Click to expand...
Click to collapse
Didn't change anything.
gudenau said:
Didn't change anything.
Click to expand...
Click to collapse
If the info provided in the link above doesn't work and you want help, you're going to have to provide a bit more details than that...

Categories

Resources