*{HOW TO}{TEAM REJECTS}{Windows} Quick DECOMPILE/COMPILE - Jelly Bean updated 7/1/13

Stryke_the_Orc

Retired Senior Moderator
Oct 14, 2010
6,782
8,998
0
Maras Dantia
I keep getting this after I edit and try to recompile. SecSettings.apk, trying to do the clock mod by Didact74. Any help would be appreciated.


Team Rejectz QUICK FIX
Compiling...

I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'cpa_err_msg_parameter_error' has no default translation
n C:\Users\Kevin\Desktop\TeamRejectzJBQuickFix2.0\SecSettings\res; found: en_U
ja ko
aapt: warning: string 'insert_simuim_card' has no default translation in C:\Us
s\Kevin\Desktop\TeamRejectzJBQuickFix2.0\SecSettings\res; found: es_ES it ko p
zh_CN
aapt: warning: string 'insert_simuim_card_message' has no default translation
C:\Users\Kevin\Desktop\TeamRejectzJBQuickFix2.0\SecSettings\res; found: es_ES
t ko pl zh_CN
aapt: warning: string 'stms_version' has no default translation in C:\Users\Ke
n\Desktop\TeamRejectzJBQuickFix2.0\SecSettings\res; found: ja
C:\Users\Kevin\Desktop\TeamRejectzJBQuickFix2.0\SecSettings\res\xml\date_time_
efs.xml:8: error: Error: No resource found that matches the given name (at 'en
ies' with value '@array/clock_style_entries').
C:\Users\Kevin\Desktop\TeamRejectzJBQuickFix2.0\SecSettings\res\xml\date_time_
efs.xml:8: error: Error: No resource found that matches the given name (at 'en
yValues' with value '@array/clock_style_values').
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutEx
ption: could not exec command: [aapt, p, -F, C:\Users\Kevin\AppData\Local\Temp
PKTOOL6288621379714724474.tmp, -I, C:\Users\Kevin\apktool\framework\1.apk, -S,
:\Users\Kevin\Desktop\TeamRejectzJBQuickFix2.0\SecSettings\res, -M, C:\Users\K
in\Desktop\TeamRejectzJBQuickFix2.0\SecSettings\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.j
a:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:
sers\Kevin\AppData\Local\Temp\APKTOOL6288621379714724474.tmp, -I, C:\Users\Kev
\apktool\framework\1.apk, -S, C:\Users\Kevin\Desktop\TeamRejectzJBQuickFix2.0\
cSettings\res, -M, C:\Users\Kevin\Desktop\TeamRejectzJBQuickFix2.0\SecSettings
ndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.j
a:253)
... 6 more

!!!Aborted!!!

Press any key to continue . . .
Did you if the framework-res.apk of your ROM?

Slithering from the nether regions of a twisted mind and tarnished soul
 

Stryke_the_Orc

Retired Senior Moderator
Oct 14, 2010
6,782
8,998
0
Maras Dantia
I just noticed you've got it installed on your desktop, try moving your folder to the root of your C drive and name the folder apktool.

Slithering from the nether regions of a twisted mind and tarnished soul
 
  • Like
Reactions: metalfan78

metalfan78

Senior Member
Jan 30, 2010
5,009
2,476
0
Littleton, CO
Ah, thank you. That might be the problem.

---------- Post added at 11:27 AM ---------- Previous post was at 10:53 AM ----------

My laptop went down so I'm reloading everything on a different one so I'll try again when I get everything up and running.
 

hardrockcaffe

Member
Jul 1, 2013
45
1
0
Ah, thank you. That might be the problem.

---------- Post added at 11:27 AM ---------- Previous post was at 10:53 AM ----------

My laptop went down so I'm reloading everything on a different one so I'll try again when I get everything up and running.
sorry for asking, but, did you get to fix the problem? :)
 

metalfan78

Senior Member
Jan 30, 2010
5,009
2,476
0
Littleton, CO
Actually no I haven't. I've got everything set up correctly(I think). Decompile goes fine, I make edits and recompile errors and aborts. I'm sure I'm overlooking something small.
 

metalfan78

Senior Member
Jan 30, 2010
5,009
2,476
0
Littleton, CO
I'm wondering if I have all the environment variables set up correctly. I've found so many guides on that, I'm not sure if I did it right. My frameworks are install under users/Kevin/framework. That's where they were automatically installed.

---------- Post added at 07:55 AM ---------- Previous post was at 07:52 AM ----------

Looking through the errors I see that 'could not execute command aapt etc' I think that's the problem but I don't know how to fix it.
 

Slimegod

Senior Member
Mar 12, 2011
2,300
99
0
I'm using Miui ROM and only have q out of the 3 apk's. Only have framework-res.apk and framework-miui-res.apk

Sent from my SPH-L710 using XDA Premium 4 mobile app
 

Slimegod

Senior Member
Mar 12, 2011
2,300
99
0
Have a question about steps 7-9 to decompile a apk. So for clarification cause I'm a noob at this. The dist folder holds the new apk, correct. When it says using the build folder to put into the apk of the ROM does that build folder have the dist folder within it? Also once I drag the file back into the apk of the ROM will it automatically make the changes needed? Because initially when you start decompiling your moving or copying the apk your decompiling? Also the apk I would like to decompile is phone.apk which is in apps. But there is no systemui.apk in MIUI ROMs. If not can I still decompile it?

Sent from my SPH-L710 using XDA Premium 4 mobile app
 
Last edited:

Stryke_the_Orc

Retired Senior Moderator
Oct 14, 2010
6,782
8,998
0
Maras Dantia
Have a question about steps 7-9 to decompile a apk. So for clarification cause I'm a noob at this. The dist folder holds the new apk, correct. When it says using the build folder to put into the apk of the ROM does that build folder have the dist folder within it? Also once I drag the file back into the apk of the ROM will it automatically make the changes needed? Because initially when you start decompiling your moving or copying the apk your decompiling? Also the apk I would like to decompile is phone.apk which is in apps. But there is no systemui.apk in MIUI ROMs. If not can I still decompile it?

Sent from my SPH-L710 using XDA Premium 4 mobile app
The apk in the dist folder will have all your edited smali files, png's, etc. The only thing missing is the meta-inf folder, which you can copy into the new apk using 7zip (or a similar program) the dist folder will be its own folder inside the apk named folder. Afaik, the build folder is backups of the original files, could be wrong about that though. You should be fine to do miui roms with this tool.:beer:

Slithering from the nether regions of a twisted mind and tarnished soul
 

Slimegod

Senior Member
Mar 12, 2011
2,300
99
0
The apk in the dist folder will have all your edited smali files, png's, etc. The only thing missing is the meta-inf folder, which you can copy into the new apk using 7zip (or a similar program) the dist folder will be its own folder inside the apk named folder. Afaik, the build folder is backups of the original files, could be wrong about that though. You should be fine to do miui roms with this tool.:beer:

Slithering from the nether regions of a twisted mind and tarnished soul
Ok cause I used a different apktool before and didn't have a dist folder when I recompiled that had my new and modified apk that's why I asked. My new apk was no where to be found

Sent from my SPH-L710 using XDA Premium 4 mobile app
 

timmetal6669

Inactive Recognized Developer
Apr 15, 2012
2,761
2,029
0
Redlands CA
Ok cause I used a different apktool before and didn't have a dist folder when I recompiled that had my new and modified apk that's why I asked. My new apk was no where to be found

Sent from my SPH-L710 using XDA Premium 4 mobile app
Here is an updated version of this invaluable tool.. making development easy. .
http://d-h.st/fa9

Profit! !