Hello mates!
So i wanted to use Slim ICS in my own language and wanted to start with Settings.apk from Slim 4.2.
btw.I succesfully installed adb on my computer.(checked with cmd)
I'm using latest apktool and i typed;
apktool d Settings.apk
Successfully decompiled.Settings folder created and all of the stuff is in there.
{
"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"
}
I JUST changed a string in res/values .Then tried to compile it ... And the problem occours....
Help me please.At least i want to do this...
Sorry if i opened the thread in to wrong section but this thing is about developing so..
Have a nice day to all people!
Just typed this earlier in another post but I think it applies with the Setting.apk also. Your framework files will be different, but hopefully it helps you..
NOTE: For all of the above you will need to set the framework for apktool before you will be able to de/recompile apks.
-Drop copies of framework-res.apk, moto-res.apk, blur-res.apk, and SystemUI.apk into the same folder as apktool (with APK Manager it's the "other" folder)
-Open the command prompt on the folder where apktool is (by right-clicking or holding Shift and right-clicking)
-Type the following for each apk in the command prompt:
Code:
apktool if framework-res.apk
-Hit enter
Code:
apktool if moto-res.apk
-Hit enter, and do the same for the other two apks
-Now you should have no de/recompiling problems (well I shouldn't say no... watch them .9.pngs and check the log for errors)
Click to expand...
Click to collapse
Sent from my phone's mind
http://www.blindndumb.com/2012/04/android-tutorial-how-to.html
Follow that guide to the tee and i garuntee you will not have a single issue
alteredlikeness said:
Just typed this earlier in another post but I think it applies with the Setting.apk also. Your framework files will be different, but hopefully it helps you..
Sent from my phone's mind
Click to expand...
Click to collapse
Hmm.I just had framework-re.apk in there and typed apktool if ramework-res.apk ..... Gonna try it today!
Sent from my GT-I9000 using Tapatalk 2
Me too
Related
Hi,
First post here, hello! and I'm new to android and smartphones in general, be gentle!
I have a Samsung Galaxy SII and I'm one of the ones who suffer from the "echo problem" during calls. In my case, turning off noise cancellation fixes the problem. The only problem is, as you might know, that you can't disable it permanently (without editing the Phone.apk).
What I'm trying to do is what's stated in this thread: http://forum.xda-developers.com/showthread.php?t=1372718
(I can't post there need 10 posts)
First of all, the software I'm using is as follows;
ROM: CheckROM v4
Kernal: DarkKnight v2.3
Modem: KI4
Am I right in thinking that my ROM is deodexed?
So, what I've done:
1. Install AndroidSDK and ADB. I followed this guide: http://www.youtube.com/watch?v=y6K1XLmafPc&feature=player_embedded
2. I found the Phone.apk in my phone and put it on my PC.
3. I've attempted to decompile Phone.apk using APKTool, using this guide: http://www.miui-au.com/add-ons/apktool/
This is where I'm stuck, I've gotten up to the stage where you put "apktool d Settings.apk" in the command prompt. This is the error I get:
{
"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"
}
Now, I may be wrong but is this because it's a "Themed" apk?
I would appreciate any help! Thanks.
I've already replied on the other forum, but I'll add it here incase anyone else has the same problem.
You need to add the file "twframework-res.apk" to where apktool is aswell. Then after doing "apktool if framework-res.apk" do "apktool if twframework-res.apk" then carry on as normal .
Bloomfield87 said:
I've already replied on the other forum, but I'll add it here incase anyone else has the same problem.
You need to add the file "twframework-res.apk" to where apktool is aswell. Then after doing "apktool if framework-res.apk" do "apktool if twframework-res.apk" then carry on as normal .
Click to expand...
Click to collapse
Ah great, that seemed to work thank you!
Now I need to edit it and re-compile it again. Hopefully I can manage that, but it's likely I'll have a problem, will post back if I do.
This is an Easy Tutorial, How to Decompile .apk and Recompile .apk FilesIf u like this Tutorial, Hit THANKS ButtonCREDITS
Memnoc - For Gud Ideas.
Xavierjohn22 - the amazing author of AutoApktool go Here, Hit thanks to Him Too.
Sandy7-For Motivation.
Requirements
Java (last version)
JDK (last version)
JDR (last version, usually included in JDK or Java)
Auto_Apktool 2.0.0 (DOWNLOAD THIS ONE NOT OTHERS)
HOW TO DO
NOTE: before start, select Apktool version with option 21, YOU MUST CHOOSE 1.4.1 version
1) Download and simply unpack Auto_ApkTool
2)Click on "autoapktoolmain.bat", prompt will open
{
"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"
}
3)put the apk you want to EDIT, in "_INPUT_APK"
4) Nw u Should Choose "option 6" for 'decompiling .apk
5) when option 6 is being selected, drag the apk from _INPUT_APK folder into the windows prompt and click enter
6) A Note window will appear, and will show IF the decompiling process has been done properly. Once you close that window, you will see the decompiled folder in _INPUT_APK folder
7) do your edits (xml, smali, or png, WHATEVER)
8) recompile with option 7 (NOTE: this time you MUST drag all the FOLDER, NOT the apk)
9) Once recompiling finished, u will Get a Dcompiled NOTE window that Shows your apk is sucessfully Compiled, Close that Window, Once open the decompiled folder, go to "dist" folder, and here you got your edited apk
10) NOW this is the Last step, since u cannot Sign System app, u will have to Copy the META-INF foldrer frm the Orginal apk to the edited apk, for more Info See the "Screen"
11) Rename the apk if Needed, and push it.
Reserved for tutorial on editing, decompiling/recompiling .jar files :thumbup:
For video tutorial!:thumbup:
FAQ'sWhy can't we use Apktool???
Well, you can, but it's more difficult, that's it.
Why do you say "must use 1.4.1 apktool version"??
The reason why is that since 1.4.2 version, apktool generate java code while recompiling process is going on, and this lead to errors that 9/10 makes decompile process fail
Hey Guys.....
I faced some problems and issues while compiling and decompiling apks.
I am using stock ics 4.1.b.0,587. So to compile you have to use following tools.
Files Required:
framework-res.apk
SemcGenericUxpRes.apk
SystemUI.apk
Note that you type correctly in command prompt window.
Softwares Required:
ThemeTool
Link:
http://forum.xda-developers.com/showthread.php?t=1374394
Thanx to XperienceD for this awesome guide.
Follow this guide for java path etc.
MediaFire Link:
http://www.mediafire.com/?tkjxk94yklm2rdu
Apk Manager r5
MediFire Link:
http://www.mediafire.com/?708sbbr0b7d5pbr
Now step by steps..follow these
Place apk in themetool folder.
Open command prompt from theme tool folder...Click Shift and right mouse click.
View attachment 1629889
Now ,
Enter commands
apktool if framework-res.apk
apktool d framework-res.apk
apktool if SemcGenericUxpRes.apk
apktool d SemcGenericUxpRes.apk
apktool if SystemUI.apk
apktool d SystemUi.apk
{
"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"
}
Our files are added to system.
Now we will use apkmanager to decompile and edit apks and then again compile/build apks.
Open Script window from apk manager.
Enter 22
Select your current project i.e 1 (for framework-res.apk)
Enter 9
It will decompile Framework-res.apk
repeat above for other two apks.
Now we have to edit our decompiled files that are present in project folder.
Select any folder i.e systemui.apk
then edit as you like.
Now See that your current project is set to the one you are modding.
Enter 11 to build apk
Enter y & y....
After that a keep folder will be created by apkmanager ....delete files that you have replaced(i.e original files are shown ,delete them .dont delete any xml file you edited,only delete icons,images etc & also delete resources.arsc from keep folder)
Press Enter.
All done.
Your new apk will be named as UnsignedSystemUI.apk..Note that dont sign or anything else for system apks. otherwise you will get problem i.e bootloop or other.
Copy your apk to sdcard and move to system/app....set permissions.
Reboot & enjoy.
For framework files,if you moded,do adbpush.
Hit thanx if i helped you.
i need help i needed to edit androidmanifest of framework-res.apk...
after compiling successully got bootloop
how to rectify it...pls help someone
ansebovi said:
how to rectify it...pls help someone
Click to expand...
Click to collapse
What did you mod and did you do it correctly?
XperienceD said:
What did you mod and did you do it correctly?
Click to expand...
Click to collapse
i modded to have theme.holo.light
i dont kno to sign androidmanifest.xml and nw i want to kno how to sign framework-res.apk with androidmanifest.xml modified...i dont care about signature because modded service jar to skip sign check...now problem is how to sign framework-res.apk
ansebovi said:
now problem is how to sign framework-res.apk
Click to expand...
Click to collapse
..
XperienceD said:
Signing
Before using the new apk you will need to sign it, to do this you need to extract (open the apk and simply drag and drop them to the dist folder) from the original apk the resources.arsc (only if you haven't changed anything in the values folder, the AndroidManifest.xml and META-INF folder (if it exists), then copy them into the new apk. In WinRar it will give you the option to choose the compression method, and it's vital that you choose Store as the compression method because if you don't then you WILL BOOT LOOP after restarting your Phone!
{
"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"
}
NOTE: If you have edited anything in the values folder then extract the resources.arsc from the new apk and copy (drag and drop) it back in the same manner described above.
Alternatively you can use the following command...
Code:
[B]java -jar signapk.jar testkey.x509.pem testkey.pk8[/B] framework-res.apk.apk framework-resS.apk
...notice the extra "S", the output name has to differ from the input name otherwise it will give an error, if done right it will create a new apk called framework-resS.apk, just remember to rename it back to the original before using it on your Phone.
Click to expand...
Click to collapse
XperienceD said:
..
Click to expand...
Click to collapse
bro the problem is i edited androidmanifest.xml
u r saying for unedited androidmanifest.xml
ansebovi said:
bro the problem is i edited androidmanifest.xml
Click to expand...
Click to collapse
First of all I'm not sure why you've edited that and not the styles.xml, and even if you have edited the manifest then the principles are the same, extract it from the new apk then drag and drop it back.
before edit/Recompile
{
"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
why ?!!
UP UP UP
I hope to help me @Blekota
Up up up
what is the apktool use ?
same problem with me , but I found the problem and fix it
abd3mobaraki said:
what is the apktool use ?
same problem with me , but I found the problem and fix it
Click to expand...
Click to collapse
i'm using apktool 2.0.0 RC3
how to fix it
engloda said:
i'm using apktool 2.0.0 RC3
how to fix it
Click to expand...
Click to collapse
after recompiling , open by any zip program and enter res folder
then look to folders name , if there numbers an name its the problem
good luck
i have the same problem
engloda said:
Up up up
Click to expand...
Click to collapse
this is may come from a bad deodex ... i have the same problem.... i had changed in a milion whays the java paths andd the java jdk-version the 7 and 8 version ...and still have the problems... the same like yours... i picked up the secSettings from the rom of Sweet Rom and from Xnote i decompiled them and after that i compiled them back... and i had no issue... but decompiling and recompiling my secSettings from my build deodexed and made in two variants : with Archikitchen and with the dsixda Android kitchen i have all the time issues ,. the same like yours,,,, i don´t know whay...
i had send some messages to soloilmeglior and to not-i and untill now no response... was wantted to know wich version of apktool they are use and how they have the phat to java jdk fixed
UP UP Plz :crying:crying:
I hope to help me @thereassaad
abd3mobaraki said:
after recompiling , open by any zip program and enter res folder
then look to folders name , if there numbers an name its the problem
good luck
Click to expand...
Click to collapse
i dont found numbers anny other solution ? allah yjazik help me