Hello all,
I am new to Android world and in reverse engg. More over I am not sure this is the correct room for asking this question.
I disassembled an apk file using EasyApkDisassembler and modified it. But when i Assemble it again I get a heap of errors as follow
<<<<<<<<ERROR>>>>>>
(0) Apktool Dissasembly
(1) Apktool Assembly AND Sign it
(2) DISASSEMBLY a classes.dex with smali
(3) ASSEMBLY a classes.dex with baksmali
(4) Sign an APK
(5) Convert an Xml Binairy to Xml
(6) Launch CMD
(7) Launch Notepad++
(8) About
(9) EXIT
Please enter the number of your choice: 1
Enter the name of the folder to assembly (ex: dis_Name.apk) : dis_g.apk
FICHIER
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
(skipping (null) file 'G:\APK_HACK\EasyApkDisassembler.V1.3.2\dis_g.apk\res\
drawable-hdpi\_r2_c2.9.png')
(skipping (null) file 'G:\APK_HACK\EasyApkDisassembler.V1.3.2\dis_g.apk\res\
drawable-hdpi\_r4_c2.9.png')
invalid resource directory name: G:\APK_HACK\EasyApkDisassembler.V1.3.2\dis_g.ap
k\res/drawable-xxhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 8, --target-sdk-version, 15, -F, C:\Users\Imet\AppData\Local\Temp\A
PKTOOL8203745195223044340.tmp, -0, arsc, -I, C:\Users\Imet\apktool\framework\1.a
pk, -S, G:\APK_HACK\EasyApkDisassembler.V1.3.2\dis_g.apk\res, -M, G:\APK_HACK\Ea
syApkDisassembler.V1.3.2\dis_g.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 8, --target-sdk-version, 15, -F, C:\
Users\Imet\AppData\Local\Temp\APKTOOL8203745195223044340.tmp, -0, arsc, -I, C:\U
sers\Imet\apktool\framework\1.apk, -S, G:\APK_HACK\EasyApkDisassembler.V1.3.2\di
s_g.apk\res, -M, G:\APK_HACK\EasyApkDisassembler.V1.3.2\dis_g.apk\AndroidManifes
t.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 8, --target-sdk-version, 15, -F, C:\Users\Imet\AppData\Local\Temp\APK
TOOL8203745195223044340.tmp, -0, arsc, -I, C:\Users\Imet\apktool\framework\1.apk
, -S, G:\APK_HACK\EasyApkDisassembler.V1.3.2\dis_g.apk\res, -M, G:\APK_HACK\Easy
ApkDisassembler.V1.3.2\dis_g.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
java.io.FileNotFoundException: dis_g.apk\dist\g.apk (The system cannot find the
path specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at com.android.signapk.SignApk.main(SignApk.java:320)
Press any key to continue . . .
Can anyone please help me
Related
Hiya,
I've been trying to get the Samsung Galaxy Applications, such as Memo.apk to work. Right now I keep getting FC's when I try to start Memo.apk, it, however, installs without any problems.
I pushed twframework.jar and twframework-res.apk, which are part of my deodexed framework archiv, to /system/framework.
I've edited init.rc and added /system/framework/twframework.jar, at my end it looks like this
Code:
export BOOTCLASSPATH /system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/twframework.jar
I pushed touchwiz.xml to system/etc/permissions/ - if you can't be arsed to download the full system dump, here is the content:
Code:
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<library name="touchwiz" file="/system/framework/twframework.jar"/>
</permissions>
This allowed me to install Memo.apk without any problems.
However, as I already mentioned, I keep getting FC's - I'm done with my latin so maybe one of you guys know what to do next.
Here is the logcat output:
Code:
I/ActivityManager( 119): Starting activity: Intent { act=android.intent.action.MEMO_CREATE cmp=com.sec.android.app.memo/.MemoCreateActivity }
W/ResourceType( 723): Resources don't contain package for resource number 0x02050001
D/AndroidRuntime( 723): Shutting down VM
W/dalvikvm( 723): threadid=3: thread exiting with uncaught exception (group=0x4001b178)
E/AndroidRuntime( 723): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime( 723): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.sec.android.app.memo/com.sec.android.app.memo.MemoCreateActivity}: android.view.InflateException: Binary XML file line #31: Error inflating class <unknown>
E/AndroidRuntime( 723): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
E/AndroidRuntime( 723): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
E/AndroidRuntime( 723): at android.app.ActivityThread.access$2200(ActivityThread.java:119)
E/AndroidRuntime( 723): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
E/AndroidRuntime( 723): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 723): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 723): at android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime( 723): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 723): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 723): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime( 723): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime( 723): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 723): Caused by: android.view.InflateException: Binary XML file line #31: Error inflating class <unknown>
E/AndroidRuntime( 723): at android.view.LayoutInflater.createView(LayoutInflater.java:513)
E/AndroidRuntime( 723): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
E/AndroidRuntime( 723): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
E/AndroidRuntime( 723): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
E/AndroidRuntime( 723): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
E/AndroidRuntime( 723): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
E/AndroidRuntime( 723): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
E/AndroidRuntime( 723): at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
E/AndroidRuntime( 723): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
E/AndroidRuntime( 723): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
E/AndroidRuntime( 723): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)
E/AndroidRuntime( 723): at android.app.Activity.setContentView(Activity.java:1622)
E/AndroidRuntime( 723): at com.sec.android.app.memo.MemoCreateActivity.onCreate(MemoCreateActivity.java:114)
E/AndroidRuntime( 723): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime( 723): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
E/AndroidRuntime( 723): ... 11 more
E/AndroidRuntime( 723): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 723): at android.widget.TextView.<init>(TextView.java:320)
E/AndroidRuntime( 723): at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 723): at java.lang.reflect.Constructor.newInstance(Constructor.java:446)
E/AndroidRuntime( 723): at android.view.LayoutInflater.createView(LayoutInflater.java:500)
E/AndroidRuntime( 723): ... 25 more
E/AndroidRuntime( 723): Caused by: android.content.res.Resources$NotFoundException: File res/drawable-hdpi/memo_more_bg.png from drawable resource ID #0x2050001: .xml extension required
E/AndroidRuntime( 723): at android.content.res.Resources.loadColorStateList(Resources.java:1820)
E/AndroidRuntime( 723): at android.content.res.TypedArray.getColorStateList(TypedArray.java:289)
E/AndroidRuntime( 723): at android.widget.TextView.<init>(TextView.java:627)
E/AndroidRuntime( 723): ... 29 more
Deodexed Framework: http://ul.to/6ocdh7
Deodexed Memo.apk http://ul.to/vmv7tc
/system dump of the Galaxy S:
frifox said:
EDIT: Thanks to jimbob343 for /system dump. Hopefully with no objections, here it is: http://www.mediafire.com/?uinwwjl0jhn ([email protected])
Click to expand...
Click to collapse
Good work
this is the root cause:
Caused by: android.content.res.Resources$NotFoundException: File res/drawable-hdpi/memo_more_bg.png from drawable resource ID #0x2050001: .xml extension required
Click to expand...
Click to collapse
Does the file exist? I dont know what it means by ".xml extension required"
borjus86 said:
Good work,but don't work at me
Click to expand...
Click to collapse
*facepalm*
I'm not sure but:
At boot the system could actually be skipping the twframework files if they contain duplicate information to an already loaded framework.
So, a suggestion is to move the twframeworks to a higher priority in the bootclasspath by including them earlier in the path. Not too early mind... and you may actually find this then breaks something else. If you have a Galaxy S kernel you could check the order they use.
It may not work at all but you could try:
Code:
export BOOTCLASSPATH /system/framework/core.jar:/system/framework/ext.jar:[COLOR="Red"]/system/framework/twframework.jar[/COLOR]:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar
This may just boot loop of course... if it does, move the twframework one to the next lowest priority in bootclasspath.
You need to logcat the boot though, whatever you do, to establish if the framework loads or if it's rejected and if it does load, does it all load.
That logcat above indicates to me that the necessary hooks in the framework weren't available to the app.
I'm just eagerly awaiting your touchwiz launcher, lol
Froyo?
it possible to support with Froyo?
as far as i know from playing with trying to get the HTC Sense framework loading you have to put the twframework before framework.jar
is there a twframework.apk file? is it might be looking for resources in that apk which aren't in the app you are trying to run.
as to how to make sure that frameworkapk is loaded i'm not sure.
You may need to get someone to integrate the framework into the app directly.
These are similar problems we encountered when trying to port the FM radio app to stock froyo.
Froyo
it support to froyo?
natz said:
it support to froyo?
Click to expand...
Click to collapse
Why the same question twice?? We can talk Froyo compatibility after there is some success...
since you have a system dump, maybe you can get the dialer pad.
Replacing the framework.jar from Galaxy S to Nexus One could be the ListView effect on the components, like the samsung ?
I'm trying to work on this as well to get the mediaplayer working on the nexus I am going to start trying some things based off what you did but I left my data cable at work so i'll try tomorrow when I get home
the ironic thing is, you guys want the programs that most vibrant users want off their phone
boodies said:
the ironic thing is, you guys want the programs that most vibrant users want off their phone
Click to expand...
Click to collapse
I think the media player in the vibrant is much nicer than stock android so I have no idea who wouldn't want that one
yes the media player is really nice. as well as the camera with touch to focus. maybe those can also be moved over.
[GUIDE] Add Text to Status Bar​
Requirement:
- BRAIN
- Patient
- experience
- Know how to decompile/recompiling Apk file
- notepad++
- Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools/tickle my android
I use tickle my android cause it very easy
Step:
1.Decompile SystemUI.apk
2.go to res/layout/status_bar.xml
3.Open Status_bar.xml with notepad++
4.Copy This line,paste in LINE 9
Code:
<TextView android:textSize="15.0sp" android:textColor="#ffa6a6a6" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="@string/hello" android:singleLine="true" />
How to change text color
Code:
android:textColor="[B]#ffa6a6a6[/B]"
change: #ffa6a6a6 to whatever hex color you want
example :
#ffffffff = White
#ff000000 =Black(?)
How to change text size
Code:
android:textSize="[B]15sp[/B]"
change: 15sp to whatever you want
example
: 16sp same as with Clock
: 14.5sp
: 13sp
: 12sp same as with battery percent
5.Go to res/values/strings.xml
6.copy this line,paste in above
Code:
<string name="hello">Hafiz</string>
Change Hafiz to whatever would you like,like Axis,Android,Google etc!
7.Recompile!
8.done
Thanks for
1. @Ticklefish for tool
2. GOOGLE
find more about string: Here
screenshoot:
OP update bro
Sent from my GT-I9003 using xda premium
Nice sharing bro
Sent from my GT-I9003 using xda premium
sorry OP update again
After doing all this I have to recompile the apk and then install it normally like any other apk on my phone?
And is it correct to follow this tutorial for compiling/recompiling? http://forum.xda-developers.com/showthread.php?t=2251719&highlight=guide+apktool
Truepeace said:
After doing all this I have to recompile the apk and then install it normally like any other apk on my phone?
And is it correct to follow this tutorial for compiling/recompiling? http://forum.xda-developers.com/showthread.php?t=2251719&highlight=guide+apktool
Click to expand...
Click to collapse
yeahh you can follow that tutorial
MR.Volkf said:
yeahh you can follow that tutorial
Click to expand...
Click to collapse
That's what I did but I am having an error while recompiling
Code:
C:\Users\Fadi\Downloads\Compressed\New folder\Apktool>apktool b SystemUI
I: Using Apktool 2.0.0-Beta7 on SystemUI
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\res\layout\status
_bar.xml:8: error: Error: No resource found that matches the given name (at 'tex
t' with value '@string/hello').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Fadi\A
ppData\Local\Temp\brut_util_Jar_8473521526562042154.tmp, p, --forced-package-id,
127, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --ver
sion-name, 4.2.2-eng.jenkins.20130923.184428, -F, C:\Users\Fadi\AppData\Local\Te
mp\APKTOOL6566898991623935652.tmp, -0, arsc, -I, C:\Users\Fadi\apktool\framework
\1.apk, -S, C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\res,
-M, C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\AndroidManife
st.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
at brut.androlib.Androlib.buildResources(Androlib.java:362)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:233)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\Fadi\AppData\Local\Temp\brut_util_Jar_84735215265620421
54.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version
, 17, --version-code, 17, --version-name, 4.2.2-eng.jenkins.20130923.184428, -F,
C:\Users\Fadi\AppData\Local\Temp\APKTOOL6566898991623935652.tmp, -0, arsc, -I,
C:\Users\Fadi\apktool\framework\1.apk, -S, C:\Users\Fadi\Downloads\Compressed\Ne
w folder\Apktool\SystemUI\res, -M, C:\Users\Fadi\Downloads\Compressed\New folder
\Apktool\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:481)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Fadi\App
Data\Local\Temp\brut_util_Jar_8473521526562042154.tmp, p, --forced-package-id, 1
27, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --versi
on-name, 4.2.2-eng.jenkins.20130923.184428, -F, C:\Users\Fadi\AppData\Local\Temp
\APKTOOL6566898991623935652.tmp, -0, arsc, -I, C:\Users\Fadi\apktool\framework\1
.apk, -S, C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\res, -M
, C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\AndroidManifest
.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:475)
... 6 more
Truepeace said:
That's what I did but I am having an error while recompiling
Code:
C:\Users\Fadi\Downloads\Compressed\New folder\Apktool>apktool b SystemUI
I: Using Apktool 2.0.0-Beta7 on SystemUI
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\res\layout\status
_bar.xml:8: error: Error: No resource found that matches the given name (at 'tex
t' with value '@string/hello').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Fadi\A
ppData\Local\Temp\brut_util_Jar_8473521526562042154.tmp, p, --forced-package-id,
127, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --ver
sion-name, 4.2.2-eng.jenkins.20130923.184428, -F, C:\Users\Fadi\AppData\Local\Te
mp\APKTOOL6566898991623935652.tmp, -0, arsc, -I, C:\Users\Fadi\apktool\framework
\1.apk, -S, C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\res,
-M, C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\AndroidManife
st.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
at brut.androlib.Androlib.buildResources(Androlib.java:362)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:233)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\Fadi\AppData\Local\Temp\brut_util_Jar_84735215265620421
54.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version
, 17, --version-code, 17, --version-name, 4.2.2-eng.jenkins.20130923.184428, -F,
C:\Users\Fadi\AppData\Local\Temp\APKTOOL6566898991623935652.tmp, -0, arsc, -I,
C:\Users\Fadi\apktool\framework\1.apk, -S, C:\Users\Fadi\Downloads\Compressed\Ne
w folder\Apktool\SystemUI\res, -M, C:\Users\Fadi\Downloads\Compressed\New folder
\Apktool\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:481)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Fadi\App
Data\Local\Temp\brut_util_Jar_8473521526562042154.tmp, p, --forced-package-id, 1
27, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --versi
on-name, 4.2.2-eng.jenkins.20130923.184428, -F, C:\Users\Fadi\AppData\Local\Temp
\APKTOOL6566898991623935652.tmp, -0, arsc, -I, C:\Users\Fadi\apktool\framework\1
.apk, -S, C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\res, -M
, C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\AndroidManifest
.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:475)
... 6 more
Click to expand...
Click to collapse
recheck you string.xml there's left in string.xml
I have made this module for Xposed which does the same thing with many options, check out this thread http://forum.xda-developers.com/showthread.php?t=2695692&page=3
good man
Ok I have the newest apktool 1.5.2 I have installed framework-res.apk and semcgenericuxpres.apk but get warnings seems this is normal. I decompile Phone.apk and then tried recompiling it without making changes trying to troubleshoot the issue and I get these error's any help please.
Code:
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: c:\APK\phone\res/drawable-land-xxhdpi
invalid resource directory name: c:\APK\phone\res/drawable-xxhdpi
invalid resource directory name: c:\APK\phone\res/values-land-xxhdpi
invalid resource directory name: c:\APK\phone\res/values-xxhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 16, -F, C:\Users\JASONC~1\AppData\Local\Temp\APKTOOL827132729019243
5011.tmp, -0, arsc, -I, C:\Users\Jason CCCE LLC\apktool\framework\1.apk, -I, C:\
Users\Jason CCCE LLC\apktool\framework\2.apk, -S, c:\APK\phone\res, -M, c:\APK\p
hone\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 16, -F, C:\Users\JASONC~1\AppData\Lo
cal\Temp\APKTOOL8271327290192435011.tmp, -0, arsc, -I, C:\Users\Jason CCCE LLC\a
pktool\framework\1.apk, -I, C:\Users\Jason CCCE LLC\apktool\framework\2.apk, -S,
c:\APK\phone\res, -M, c:\APK\phone\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Hi, i got an error on recompile apk...
what i did :
java -jar apktool.jar if framework-res.apk => good
java -jar apktool.jar d myapk.apk => good
java -jar apktool.jar b myapkfolder => error
i use apktool 2.0.0 (latest) with all sdk tools installed etc etc
Someone can help me pls ?
Thanks
Logs :
I: Using Apktool 2.0.0
I: Smaling smali folder into classes.dex...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\mac\AppData\Local\Temp\brut_util_Jar_4204004795269055527.tmp, p, --forced-package-id, 127, --min-sdk-version, 9, --target-sdk-version, 22, --version-code, 207, --version-name, 2.0.7, -F, C:\Users\mac\AppData\Local\Temp\APKTOOL3422305288023690523.tmp, -0, arsc, -I, C:\Users\mac\apktool\framework\1.apk, -S, C:\Users\mac\Desktop\duelll\res, -M, C:\Users\mac\Desktop\duelll\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:458)
at brut.androlib.Androlib.buildResources(Androlib.java:396)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:256)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\mac\AppData\Local\Temp\brut_util_Jar_4204004795269055527.tmp, p, --forced-package-id, 127, --min-sdk-version, 9, --target-sdk-version, 22, --version-code, 207, --version-name, 2.0.7, -F, C:\Users\mac\AppData\Local\Temp\APKTOOL3422305288023690523.tmp, -0, arsc, -I, C:\Users\mac\apktool\framework\1.apk, -S, C:\Users\mac\Desktop\duelll\res, -M, C:\Users\mac\Desktop\duelll\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:444)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\mac\AppData\Local\Temp\brut_util_Jar_4204004795269055527.tmp, p, --forced-package-id, 127, --min-sdk-version, 9, --target-sdk-version, 22, --version-code, 207, --version-name, 2.0.7, -F, C:\Users\mac\AppData\Local\Temp\APKTOOL3422305288023690523.tmp, -0, arsc, -I, C:\Users\mac\apktool\framework\1.apk, -S, C:\Users\mac\Desktop\duelll\res, -M, C:\Users\mac\Desktop\duelll\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:413)
... 6 more
C:\Users\mac\Desktop\duelll\AndroidManifest.xml:77: Tag <activity> attribute name has invalid character '_'.
Click to expand...
Click to collapse
Invalid character "_" in brut_util?
davebugyi said:
Invalid character "_" in brut_util?
Click to expand...
Click to collapse
I search in the manifest.xml and at l77 there isn't"_".
Hi guys
So the thing started as this.
I have a samaung galaxy core 2 running kitkat 4.4.2
I wanted to develope a custom rom for it.
And for that i have to decompile many apps and do some modding and recompile them again.
I am using apktool vesion 4.1
At first i installed the main framework-res.apk into the apktool and set the default folder correctly.
I decompiled systemui.apk without any error.
And just removed 6 lines from the layout/signal cluster.xml
And not apktool shows error in compiling the app
So my problem is how can i get rid of the error.
I: Smaling...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, /data/data/per.pqy.apktool/APKTOOL5220112300896973543.tmp, -0, arsc, -I, ?/apktool/framework/1.apk, -S, /sdcard/apktool/SystemUI_src/res, -M, /sdcard/apktool/SystemUI_src/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, /data/data/per.pqy.apktool/APKTOOL5220112300896973543.tmp, -0, arsc, -I, ?/apktool/framework/1.apk, -S, /sdcard/apktool/SystemUI_src/res, -M, /sdcard/apktool/SystemUI_src/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, /data/data/per.pqy.apktool/APKTOOL5220112300896973543.tmp, -0, arsc, -I, ?/apktool/framework/1.apk, -S, /sdcard/apktool/SystemUI_src/res, -M, /sdcard/apktool/SystemUI_src/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:93)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
Caused by: java.io.IOException: Cannot run program "/data/data/per.pqy.apktool/lix/aapt": error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1042)
at java.lang.Runtime.exec(Runtime.java:615)
at java.lang.Runtime.exec(Runtime.java:483)
at brut.util.OS.exec(OS.java:84)
... 7 more
Caused by: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1023)
... 10 more
And if my version is wrong recommend me a correct one
Help will be appriciated. Thankyou
Plz anybody solve my problem