Hi,
I have Xperia ARC with 4.0.2.A.0.62 Firmware
I have decompile SystemUI.apk with apktool. No problem.
Code:
C:\Xperia\apktool>apktool d SystemUI.apk
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\hadramos\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
I have recompile apk with apktool without changing the source.
Just one test (decompile, recompile, push).
No problem.
Code:
C:\Xperia\apktool>apktool b -f SystemUI unsignedSystemUI.apk
I: Smaling...
I: Building resources...
I: Building apk file...
And i have sign unsignedSystemUI.apk width apkmanager. No problem.
I have push the file with ADB (Rename unsignedSystemUI.apk to SystemUI.apk).
Code:
C:\Xperia\Root>adb push SystemUI.apk /system/app/SystemUI.apk
1897 KB/s (244881 bytes in 0.126s)
And i reboot the phone.
Code:
C:\Xperia\Root>adb reboot
My phone rebooting but i don't have the status bar
You know why ?
Thank you in advance for your help
hadramos said:
Hi,
I have Xperia ARC with 4.0.2.A.0.62 Firmware
I have decompile SystemUI.apk with apktool. No problem.
Code:
C:\Xperia\apktool>apktool d SystemUI.apk
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\hadramos\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
I have recompile apk with apktool without changing the source.
Just one test (decompile, recompile, push).
No problem.
Code:
C:\Xperia\apktool>apktool b -f SystemUI unsignedSystemUI.apk
I: Smaling...
I: Building resources...
I: Building apk file...
And i have sign unsignedSystemUI.apk width apkmanager. No problem.
I have push the file with ADB (Rename unsignedSystemUI.apk to SystemUI.apk).
Code:
C:\Xperia\Root>adb push SystemUI.apk /system/app/SystemUI.apk
1897 KB/s (244881 bytes in 0.126s)
And i reboot the phone.
Code:
C:\Xperia\Root>adb reboot
My phone rebooting but i don't have the status bar
You know why ?
Thank you in advance for your help
Click to expand...
Click to collapse
You answered your own question
unsignedSystemUI.apk
is unsigned.
after signing it should be signedSystemUI.apk or something like that. (thats what my version of apkManager does)
also if you have apkmanager why are you using apktool
apkmanager will take care of compiling and stuff for you and preserve the original sigs if you need to. (for system files you do)
this is a good reference http://forum.xda-developers.com/showthread.php?t=834806
for more help a log at boot would be helpfull.
Pvy.
Thanks Pvy.
But my file unsignedSystemUI.apk created by apktool is signed by apkmanager.
Apkmanager just creates a signed file with option 16. It does not rename the file.
I'm use apktool because akmanager me back several errors in decompiling the file SystemUI.apk
Thank for the link... I'll look at it
hadramos said:
Thanks Pvy.
But my file unsignedSystemUI.apk created by apktool is signed by apkmanager.
Apkmanager just creates a signed file with option 16. It does not rename the file.
I'm use apktool because akmanager me back several errors in decompiling the file SystemUI.apk
Thank for the link... I'll look at it
Click to expand...
Click to collapse
Do you have both frameworks installed?
Any chance of seeing what apk manager said?
Pvy
Sent from my TEAM Powered Arc S
Framework installed ?
It's ok with Apkmanager when decompiling SystemUI.apk.
I have modify /res/layout/status_bar.xml and i have adding background image (/res/drawable-hdpi/statusbar_background_transparent.9.png with a transparence)
But when i reboot my phone with this file (compile and sign apk file with apkmanager), the status bar not loading
I have adding the file in my first post !
Very thanks for your help Pvy
I have log my boot.
I found this :
Code:
I/PackageManager( 328): /system/app/SystemUI.apk changed; collecting certs
D/dalvikvm( 328): GC_CONCURRENT freed 572K, 41% free 4409K/7367K, external 1685K/2133K, paused 2ms+5ms
W/PackageManager( 328): Signature mismatch for shared user : SharedUserSetting{2b073e90 android.uid.system/1000}
E/PackageManager( 328): Package com.android.systemui has no signatures that match those in shared user android.uid.system; ignoring!
Why ??? I sign the file with apkmanager...
Ok i have found my problem
I don't sign the file after compile because the file is already been signed !!!
If you sign the file after compile with Apkmanager, it change the file signature and the file will be ignored during the boot...
Hey guys I want change my quicknavigation bar ( in the statusbar for example WiFi, Bluetooth, and so on) the order of that.
How I make that?
Androidseb
Gesendet von meinem R800i mit Tapatalk
** sorry i missed your other post good to see you got it sorted i'll leave this info here anyway.
Package com.android.systemui has no signatures that match those in shared user android.uid.system
Click to expand...
Click to collapse
i already told you
apkmanager will take care of compiling and stuff for you and preserve the original sigs if you need to. (for system files you do)
Click to expand...
Click to collapse
YOU MUST use the same sigs as b4 the sigs that apkamnager uses to resign wont work for system apps.
this is how i edit the file.
Notes:
a. i have a file on my desctop that i edit this is a copy of the file pulled from my phone.
Steps:
1. after all mods are done open up apk manager
2. type 22 hit enter and pick the file you were editing ( SystemUI.apk )
3. type 11 hit enter and the app will recompile.
4. Open a copy of the SystemUI.apk ( see note a ) in winnra or 7zip ect put that window on one side of your screen ( windows 7 snap too (windows key + -> or <- ) is awesome for this )
5. Navigate to the projects folder of APK Manager and then navigate to the app you edited (SystemUI.apk)
6. Navigate to the /build/apk folder ( snap this to the other side of your screen ) ( Note that the build/apk folder has the same structure as the apk file open in winnra / 7zip )
7. you will need these files simply drag the modified files into the same folder location in the open apk in winnra / 7zip
Click to expand...
Click to collapse
Hope that helps
that is from my thread over here (i edited a small bit)
http://forum.xda-developers.com/showthread.php?t=1371330
there are a few pages just like this on there. so have a read there.
androidseb said:
Hey guys I want change my quicknavigation bar ( in the statusbar for example WiFi, Bluetooth, and so on) the order of that.
How I make that?
Androidseb
Gesendet von meinem R800i mit Tapatalk
Click to expand...
Click to collapse
if you are using a variant of TEAMS one ( thomastafacas one or thejaps one ect )
there is a xml in res/layout called quickoptions or something you have to edit that
once you open it you will seee how to change it it is easy.
Pvy.
No problem Pvy
Very thank for all your help !
pvyParts said:
if you are using a variant of TEAMS one ( thomastafacas one or thejaps one ect )
there is a xml in res/layout called quickoptions or something you have to edit that
once you open it you will seee how to change it it is easy.
Pvy.
Click to expand...
Click to collapse
Thx for the answer i use a theme from thomastafacas i decompiled it and edit the xml i compilrd it after that and the quickbar doesnt change.
androidseb said:
Thx for the answer i use a theme from thomastafacas i decompiled it and edit the xml i compilrd it after that and the quickbar doesnt change.
Click to expand...
Click to collapse
Sorry I missed this thread, have you made any progress???
Sent from my TEAM Powered Arc S
Related
Hi! I would like to edit some .apk files of mt SGG, but not editing only icons or so, but trasparencies and backgrounds.
Can please someone help me on finding the tools I need and how to setup my computer with all the things I need??
Thank you.
PIRATA! said:
Hi! I would like to edit some .apk files of mt SGG, but not editing only icons or so, but trasparencies and backgrounds.
Can please someone help me on finding the tools I need and how to setup my computer with all the things I need??
Thank you.
Click to expand...
Click to collapse
Hi, for the tools needed see post 2 in my theme thread. Report back when you've got them installed and we can progress. Don't ask me to find the download links for you. lol
Jumba said:
Hi, for the tools needed see post 2 in my theme thread. Report back when you've got them installed and we can progress. Don't ask me to find the download links for you. lol
Click to expand...
Click to collapse
dena994 said:
....................
-------------------
Tools Needed:
Android SDK package - add the (sdkpath)/tools folder to your windows environment variable. -> DONE!
Version 1.3.1 (not 1.3.2) of APKTool. -> DONE!
Adobe Photoshop and Fireworks (or other advanced image editing software). -> I don't want to edit images! I use images I found from other themes!
PSPad Editor (or other valid xml editor). -> DONE! ..but I prefere NotePad++ Editior
Latest version of the NeonGT theme. -> I have your Jumba's_NeonGT_JPY_1.8.3_bb.zip theme you told me to use as teamplate: is it ok?
PNGOptimizer. -> I don't want to edit images! I use images I found from other themes!
7-zip. -> DONE!
..................
Click to expand...
Click to collapse
Am I ok for starting?
All I need is managing with replacing images and related trasparencies.
An example: I have a trasparent Dialer and would like to change the trasparency, the look of some tabs getting images from other dialers, and then importing all the work done in the Dialer of last Darky's ROM.
I have already putted all the neutral/dummy/trasparent images from the trasparent dialer into the dialer that I want to edit, but now I see all those images as black with no trasparency.
Am I correct if I say that now I need to make changes to some .xml files to set the trasparency??
Ps: I already decompiled the .apk I would like to edit and I get errors decompiling this dialer using APKTool 1.3.1:
Code:
=======================================================
::::::: Auto-APKTool Decompile Created By Yanzi :::::::
=======================================================
Compile all APKs Exist Here
U want to Use Additional Resource?[y/n]n
Start...
Premere un tasto per continuare . . .
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\pirata\apktool\framework\1.apk
S: Could not decode file "drawable-hdpi/call_default_btn_normal.9.png" to "drawa ble-hdpi-v4/call_default_btn_normal.9.png"
S: Could not decode file "drawable-hdpi/call_default_btn_pressed.9.png" to "draw able-hdpi-v4/call_default_btn_pressed.9.png"
S: Could not decode file "drawable-hdpi/call_default_btn_selected.9.png" to "drawable-hdpi-v4/call_default_btn_selected.9.png"
S: Could not decode file "drawable-hdpi/dialer_tab_button_bg_focus.9.png" to "drawable-hdpi-v4/dialer_tab_button_bg_focus.9.png"
S: Could not decode file "drawable-hdpi/dialer_tab_button_bg_press.9.png" to "drawable-hdpi-v4/dialer_tab_button_bg_press.9.png"
S: Could not decode file "drawable-hdpi/listview_focus_bg.9.png" to "drawable-hdpi-v4/listview_focus_bg.9.png"
S: Could not decode file "drawable-hdpi/listview_press_bg.9.png" to "drawable-hdpi-v4/listview_press_bg.9.png"
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0205009a
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0205009a
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02050097
Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.
Premere un tasto per continuare . . .
Pps: I putted a PAUSE in the APKTool_Decompile.bat file so to see the errors.
You need to set your framework-res.apk as the file used to decode... like so:
apktool if c:\whatever\yourframework-res.apk sgs
Then:
apktool d -t sgs c:\whatever\DialerTabActivity.apk c:\decoded\dialer
Then make your edits and compile using:
apktool b c:\decoded\dialer c:\out\DialerTabActivity.apk
After this don't forget to copy the META-INF folder over from the old apk into the new one.
If you're looking to make it transparent there's a guide around here somewhere. You need to change some xmls too. Sometimes some 9.png images don't decompile properly... you'll need to recreate those somehow.
Jumba said:
You need to set your framework-res.apk as the file used to decode... like so:
apktool if c:\whatever\yourframework-res.apk sgs
Then:
apktool d -t sgs c:\whatever\DialerTabActivity.apk c:\decoded\dialer
Then make your edits and compile using:
apktool b c:\decoded\dialer c:\out\DialerTabActivity.apk
After this don't forget to copy the META-INF folder over from the old apk into the new one.
If you're looking to make it transparent there's a guide around here somewhere. You need to change some xmls too. Sometimes some 9.png images don't decompile properly... you'll need to recreate those somehow.
Click to expand...
Click to collapse
Mmmmm...what is the problem??
Code:
=======================================================
::::::: Auto-APKTool Decompile Created By Yanzi :::::::
=======================================================
Compile all APKs Exist Here
U want to Use Additional Resource?[y/n]y
What Resource (Tag) U Want to Use: sgs
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\stefano\apktool\framework\1-sgs.ap
k
S: Could not decode file "drawable-hdpi/call_default_btn_normal.9.png" to "drawable-hdpi-v4/call_default_btn_normal.9.png"
S: Could not decode file "drawable-hdpi/call_default_btn_pressed.9.png" to "drawable-hdpi-v4/call_default_btn_pressed.9.png"
S: Could not decode file "drawable-hdpi/call_default_btn_selected.9.png" to "drawable-hdpi-v4/call_default_btn_selected.9.png"
S: Could not decode file "drawable-hdpi/dialer_tab_button_bg_focus.9.png" to "drawable-hdpi-v4/dialer_tab_button_bg_focus.9.png"
S: Could not decode file "drawable-hdpi/dialer_tab_button_bg_press.9.png" to "drawable-hdpi-v4/dialer_tab_button_bg_press.9.png"
S: Could not decode file "drawable-hdpi/listview_focus_bg.9.png" to "drawable-hdpi-v4/listview_focus_bg.9.png"
S: Could not decode file "drawable-hdpi/listview_press_bg.9.png" to "drawable-hdpi-v4/listview_press_bg.9.png"
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0205009a
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0205009a
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02050097
Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.
Premere un tasto per continuare . . .
My guess is you need to set twframework-res as package 2 somehow? But I've never seen that error...
Try replacing the 1.apk and 2.apk files in the install folder with your renamed framework and twframework-res.apk's. Then you don't have to use the -t switch when decompiling.
Jumba said:
My guess is you need to set twframework-res as package 2 somehow? But I've never seen that error...
Try replacing the 1.apk and 2.apk files in the install folder with your renamed framework and twframework-res.apk's. Then you don't have to use the -t switch when decompiling.
Click to expand...
Click to collapse
When I installed the app, in Document and Setting I only have the 1.apk file..no 2.apk one.
I'll try with what you say.
About the residencies, applying it is it all the same technique for write all menu or every menu has different file involving and I must go searching for them?
PIRATA! said:
When I installed the app, in Document and Setting I only have the 1.apk file..no 2.apk one.
I'll try with what you say.
About the residencies, applying it is it all the same technique for write all menu or every menu has different file involving and I must go searching for them?
Click to expand...
Click to collapse
From my unserstanding you need to use the frameworks that the file you're decoding depends on... I've always just used the fw-res and twfw-res from the rom I'm using without issues.
It seems to be looking for dependencies that aren't available in the frameworks you are using. Perhaps try and get the files that match the dialer you downloaded, or try another dialer.
Jumba said:
From my unserstanding you need to use the frameworks that the file you're decoding depends on... I've always just used the fw-res and twfw-res from the rom I'm using without issues.
It seems to be looking for dependencies that aren't available in the frameworks you are using. Perhaps try and get the files that match the dialer you downloaded, or try another dialer.
Click to expand...
Click to collapse
The fact is that I have tryed with Darky's ROM v9.1 Dialer and its frameworks files, and I get the same problem.
This means he used different files mixed together for making the theme??
In the mean time I'll try with a stock rom files and let you know if it is like you say.
Jumba said:
................
Try replacing the 1.apk and 2.apk files in the install folder with your renamed framework and twframework-res.apk's. Then you don't have to use the -t switch when decompiling.
Click to expand...
Click to collapse
I tryed to get framework files from Darky's ROM v9.2 and rename framework-res.apk in 1.apk and twframework-res.apk in 2apk, place them in the Documents and Settings folder of apktool and try them on the DialerTabActivity.apk from same Darky's v9.2.
Here is what I got:
Code:
=======================================================
::::::: Auto-APKTool Decompile Created By Yanzi :::::::
=======================================================
Compile all APKs Exist Here
U want to Use Additional Resource?[y/n]n
Start...
Premere un tasto per continuare . . .
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\stefano\apktool\framework\1.apk
S: Could not decode file "drawable-hdpi/tw_tab_selected_bar_left.9.png" to "drawable-hdpi-v4/tw_tab_selected_bar_left.9.png"
S: Could not decode file "drawable-hdpi/tw_tab_selected_bar_right.9.png" to "drawable-hdpi-v4/tw_tab_selected_bar_right.9.png"
I: Loading resource table from file: C:\Users\stefano\apktool\framework\2.apk
I: Copying assets and libs...
Premere un tasto per continuare . . .
What do you think? Is it ok, regardless for those two files??
EDIT: This is what I get from the dialer I would like to decode using those same framework files:
Code:
=======================================================
::::::: Auto-APKTool Decompile Created By Yanzi :::::::
=======================================================
Compile all APKs Exist Here
U want to Use Additional Resource?[y/n]n
Start...
Premere un tasto per continuare . . .
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\stefano\apktool\framework\1.apk
S: Could not decode file "drawable-hdpi/call_default_btn_normal.9.png" to "drawable-hdpi-v4/call_default_btn_normal.9.png"
S: Could not decode file "drawable-hdpi/call_default_btn_pressed.9.png" to "drawable-hdpi-v4/call_default_btn_pressed.9.png"
S: Could not decode file "drawable-hdpi/call_default_btn_selected.9.png" to "drawable-hdpi-v4/call_default_btn_selected.9.png"
S: Could not decode file "drawable-hdpi/dialer_tab_button_bg_focus.9.png" to "drawable-hdpi-v4/dialer_tab_button_bg_focus.9.png"
S: Could not decode file "drawable-hdpi/dialer_tab_button_bg_press.9.png" to "drawable-hdpi-v4/dialer_tab_button_bg_press.9.png"
S: Could not decode file "drawable-hdpi/listview_focus_bg.9.png" to "drawable-hdpi-v4/listview_focus_bg.9.png"
S: Could not decode file "drawable-hdpi/listview_press_bg.9.png" to "drawable-hdpi-v4/listview_press_bg.9.png"
I: Loading resource table from file: C:\Users\stefano\apktool\framework\2.apk
I: Copying assets and libs...
Premere un tasto per continuare . . .
Again: what do you think? Is it ok, regardless for those undecoded files?? Can I just extract from the apk manually and overwrite the undecoded?? They are only images...
Much better, yes, but you'll still need to replace those files at some stage. APKTool will have replaced those with dummy files. See for yourself - they will be there but are probably 0 bytes. You can most likey compile the dialer as-is then copy those .9.png files back into the apk afterwards or replace them with new ones.
Jumba said:
Much better, yes, but you'll still need to replace those files at some stage. APKTool will have replaced those with dummy files. See for yourself - they will be there but are probably 0 bytes. You can most likey compile the dialer as-is then copy those .9.png files back into the apk afterwards or replace them with new ones.
Click to expand...
Click to collapse
Oh..but can't I just replace them now before compiling? Do I have to do this after when the apk file is already done?!?
Ps: I have to edit 2 images. Do I have to use Adobe Photoshop and Fireworks + PNGOptimizer?? I don't have Photoshop and Fireworks, and never used them, so I'm a little bit noob with those....
If you want to replace. 9.png images before compiling you'll need to re-create the 9-patch info (the thin black lines around the edges of the image) else it won't compile. If this isn't possible for some reason then you can add the original compiled ones in afterwards. I can send you the pre-compiled images that you are missing when I get home later if you like... but take some time to read up on how 9-patches work, it could save you some headaches in the future.
Jumba said:
If you want to replace. 9.png images before compiling you'll need to re-create the 9-patch info (the thin black lines around the edges of the image) else it won't compile. If this isn't possible for some reason then you can add the original compiled ones in afterwards. I can send you the pre-compiled images that you are missing when I get home later if you like... but take some time to read up on how 9-patches work, it could save you some headaches in the future.
Click to expand...
Click to collapse
The fact is that those images are modded images from the creator of the modded Dialer: in the thumbs they look all like a big black square, but if I open them they look all blank trasparent.
Probably he added them after compiling the .apk as you say.
I think I'd better do the same.
About modding the images I told you up here, I aldready did with a free tool
Jumba said:
... but take some time to read up on how 9-patches work, it could save you some headaches in the future.
Click to expand...
Click to collapse
Any links?
Ps: I edited my previous post:
in the thumbs they look all like a big black square, but if I open them they look all blank trasparent.
Click to expand...
Click to collapse
Jumba said:
............
Then make your edits and compile using:
apktool b c:\decoded\dialer c:\out\DialerTabActivity.apk
After this don't forget to copy the META-INF folder over from the old apk into the new one.
If you're looking to make it transparent there's a guide around here somewhere. You need to change some xmls too. Sometimes some 9.png images don't decompile properly... you'll need to recreate those somehow.
Click to expand...
Click to collapse
Do you refere to this thread? http://forum.xda-developers.com/showthread.php?t=863519
No, that thread is about adjusting dpi.
Jumba said:
No, that thread is about adjusting dpi.
Click to expand...
Click to collapse
Mmmm..I can't find anything.......
http://www.google.com/m?q=xda+dialer+transparent
The answer is in the 2nd result.
Jumba said:
http://www.google.com/m?q=xda+dialer+transparent
The answer is in the 2nd result.
Click to expand...
Click to collapse
......sorry. I haven't made that kind of searhing on xda.
Ps: I realized that you have made Glass Dialers your self.
I have done one based on GlassDialer with Darky's rom icons that works good...but it lags in the Logs and Favourite menues because my LiveWallpaper is heavy, so I was looking for remove trasparency from underneath the 2 squares Logs and Favourites on top of list (between Keypad and Contacts squares) and see if I could even remove trasparency underneath all the Log and Favourite listing, so to have trasparency only when the Keypad is loaded
Do you understand what I'm looking for doing?
Guys please help me with apktool! ım freakin out!
before everything, I setted up JDK & JRE, Android SDK Manager too..
ı tried lots of Apktool but having same mistake!
C:\apktool folder i created and put the files in it with my framework-res.apk
Then commanded
apktool if framework-res.apk
I: Framework installed to C:\whatever\your\path\is\framework\1.apk
All is ok. but when I try to DECOMPILE Settings.apk or SystemUI.apk or Browser.apk etc anyway here is the log;
Microsoft Windows XP [Sürüm 5.1.2600]
(C) Telif Hakkı 1985-2001 Microsoft Corp.
C:\Documents and Settings\Hyp>cd c:\apktool
C:\apktool>apktool if framework-res.apk
I: Framework installed to: C:\Documents and Settings\Hyp\apktool\framework\1.apk
C:\apktool>apktool d Browser.apk
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Documents and Settings\Hyp\apktool\frame
work\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
Can't find framework resources for package of id: 2. You must install proper fra
mework files, see project website for more info.
C:\apktool>
I'm on 2.3.4 not ICS! How to fix this damn package of id 2 ?
here you have a video tutorial
Hy.
I always got any little problem witc compile/decompile XXLJS systemui.apk.
I have tried apkmanager 5.02., and apk multy tool with:
apktool 1.4.0,
apktool 1.4.1,
apktool 1.4.2,
apktool 1.4.3,
apktool 1.4.4,
apktool 1.4.5,
apktool 1.4.10,
apktool 1.5.0,
apktool 1.5.1,
.......and no succes. What do I wrong???
Please help me to make more modded apk-s to xxljs roms.
/ I use windows 8/
Thanx.
bezke said:
Hy.
I always got any little problem witc compile/decompile XXLJS systemui.apk.
I have tried apkmanager 5.02., and apk multy tool with:
apktool 1.4.0,
apktool 1.4.1,
apktool 1.4.2,
apktool 1.4.3,
apktool 1.4.4,
apktool 1.4.5,
apktool 1.4.10,
apktool 1.5.0,
apktool 1.5.1,
.......and no succes. What do I wrong???
Please help me to make more modded apk-s to xxljs roms.
/ I use windows 8/
Thanx.
Click to expand...
Click to collapse
i also have warnings when compiling. the trick is to copy the files from the modded SystemUI.apk into the original SystemUI.apk
- geroxx -
bezke said:
Hy.
I always got any little problem witc compile/decompile XXLJS systemui.apk.
I have tried apkmanager 5.02., and apk multy tool with:
apktool 1.4.0,
apktool 1.4.1,
apktool 1.4.2,
apktool 1.4.3,
apktool 1.4.4,
apktool 1.4.5,
apktool 1.4.10,
apktool 1.5.0,
apktool 1.5.1,
.......and no succes. What do I wrong???
Please help me to make more modded apk-s to xxljs roms.
/ I use windows 8/
Thanx.
Click to expand...
Click to collapse
I've just checked decompiling / compiling the SystemUI.apk (from the XXLSJ) and everything works well, with just a "standalone" apktool (1.5.0.5), on Windows 7.
Have you installed the frameworks?
Installing frameworks:
Command:
Code:
apktool if XXLSJ\framework-res.apk
Result:
Code:
I: Framework installed to: C:\Users\Gyebro\apktool\framework\1.apk
Command:
Code:
apktool if XXLSJ\twframework-res.apk
Result:
Code:
I: Framework installed to: C:\Users\Gyebro\apktool\framework\2.apk
Then testing decompile:
Command:
Code:
apktool d SystemUI.apk SystemUI_XXLSJ
Result:
Code:
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Gyebro\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
Finally test-recompile also finishes without errors:
Command:
Code:
apktool b SystemUI_XXLSJ SystemUI_custom.apk
Result:
Code:
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'abbrev_wday_abbrev_month_day_no_year' has no default translation ...
... [I]some aapt:warnings that translations are missing[/I] ...
I: Building apk file...
If you want to use APKMultiTool, then you either install frameworks first with running the apktool from command line, or install the frameworks by choosing the "decompile apk with dependencies" option. (But I recommend using the apktool if command)
You only need to install frameworks once. (They are stored in C:\Users\username\apktool\1.apk and 2.apk)
Search for Apk manager for ICS.
Don't remember where I founded but works!
EDIT: Wanam apk manager ICS.
I'm not home now but I remember this apk manager is made by Wanam...search in his HP mate! If you want when I arrive at home I can upload for you and send Google docs link.
Good lucky
Sent from my GT-I9100 using xda app-developers app
i get some zip error
Try Apk Changer. It works with windows 8.
http://forum.xda-developers.com/showthread.php?t=1189971
I tried to implement Super Power Menu (Link) to stock 4.2.2.
I've done following to start:
Code:
java -jar apktool.jar if framework-res.apk
I: Framework installed to: C:\Users\xxx\apktool\framework\1.apk
Now I try to decompile and recompile framework-res.apk without changes. It fails:
Code:
C:\Users\xxx\Downloads\apktool1.5.2.tar>java -jar apktool.jar d framework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
C:\Users\xxx\Downloads\apktool1.5.2.tar>java -jar apktool.jar b framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
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.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
What's wrong?
Could someone help me?
Looks like a problem with apktool.yml. Is it located in the path the prompt is looking for it in?
063_XOBX said:
Looks like a problem with apktool.yml. Is it located in the path the prompt is looking for it in?
Click to expand...
Click to collapse
I changed directory and used full path to targetfile and it worked. Thanks to your suggestion!
So I changed back to apktool folder and specified sourcepath now:
Code:
java -jar apktool.jar b framework-res framework-res_new.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
That worked now. Perfect!
Then I "signed" the apk by replacing/inserting "AndroidManifest.xml" and folder "META-INF" to "framework-res_new.apk".
I will do nandroid, replace (unchanged) file and report very soon.
Greetings
Glad it worked. Reading command prompts is like a native tongue once you get the hang of it.
063_XOBX said:
Glad it worked. Reading command prompts is like a native tongue once you get the hang of it.
Click to expand...
Click to collapse
Modified "framework-res.apk" worked. I only had to recreate Google account.
But modifying android.policy.odex resulted in bootloop.
I made following:
Deodex:
Code:
java -jar baksmali-1.4.2.jar -c core.jar:core-junit.jar:bouncycastle.jar:ext.jar:framework.jar:telephony-common.jar:mms-common.jar:android.policy.jar:services.jar:apache-xml.jar -x android.policy.odex
Made changes. (See attachment.)
Create dex:
Code:
dexopt-wrapper system/framework/android.policy.jar system/framework/patched_android.policy.odex $BOOTCLASSPATH
Restore signature:
Code:
busybox dd if=/system/framework/android.policy.odex of=/system/framework/patched_android.policy.odex bs=1 count=20 skip=52 seek=52 conv=notrunc
Replaced android.policy.odex
Result: Bootloop
Any suggestions? I got no errors.
Greetings
I'm with my question in this thread at all right?
hi all..
I am trying to decomiple and then recompile SecContacts.apk from Lollipop 5.0 Rom..
It decompiles and recompiles fine but when I Push it to phone set Permissions and reboot it doesn't work..
I tried different versions of apktool but all have same result..
the error is "Parse error, There was a problem while parsing the package"
can anyone guide on how to recompile secContacts.apk
PS : i) Compiling decompiling works well for other apks including SystemUi, TWHome etc
ii) I tried 3 different SecContacts.apk from different 5.0 TW Roms and even 3,4 different aptools.. all have same result
Hi LAzY_kRAzY
1st) You MUST use SecContacts from your own ROM only. Do not try others.
2sd) When do you get this "Parser Error"? This error should be issued while compiling, not executing. Please be more detailed.
3rd) How did you do things? Decompiling/Recompiling with some tool set?
-=-=-=-=-=
How it should work:
a) Download last ApkTool 2.1.1
b) Be sure to have Java 1.7 installed
{
"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"
}
c) Extract from your ROM or Device the following files:
Code:
system/priv-app/SecContacts.apk
system/framework/framework-res.apk
system/framework/twframework-res.apk
Note: ALL files should be at the same folder
d) Install framework files at the command prompt:
Code:
c:>java -jar apktool_2.1.1.jar if framework-res.apk
...
c:>java -jar apktool_2.1.1.jar if twframework-res.apk
e) Decompile Contacts at the command prompt
Code:
c:>java -jar apktool_2.1.1.jar d SecContacts.apk -f
-f = if last decompile failed, it will overwrite
DO NO CHANGES AT ALL
f) Build Contacts at the command prompt
Code:
c:>java -jar apktool_2.1.1.jar b SecContacts -c
-c = Copies original AndroidManifest.xml and META-INF.
If you perform exactly these steps, does it work?
Any message different from success should be presented. The more details the better support you get.
Let us know.
Nice regards.
.
LAzY_kRAzY said:
hi all..
I am trying to decomiple and then recompile SecContacts.apk from Lollipop 5.0 Rom..
It decompiles and recompiles fine but when I Push it to phone set Permissions and reboot it doesn't work..
I tried different versions of apktool but all have same result..
the error is "Parse error, There was a problem while parsing the package"
can anyone guide on how to recompile secContacts.apk
PS : i) Compiling decompiling works well for other apks including SystemUi, TWHome etc
ii) I tried 3 different SecContacts.apk from different 5.0 TW Roms and even 3,4 different aptools.. all have same result
Click to expand...
Click to collapse
Kdio said:
Hi LAzY_kRAzY
1st) You MUST use SecContacts from your own ROM only. Do not try others.
2sd) When do you get this "Parser Error"? This error should be issued while compiling, not executing. Please be more detailed.
3rd) How did you do things? Decompiling/Recompiling with some tool set?
-=-=-=-=-=
How it should work:
a) Download last ApkTool 2.1.1
b) Be sure to have Java 1.7 installed
c) Extract from your ROM or Device the following files:
Code:
system/priv-app/SecContacts.apk
system/framework/framework-res.apk
system/framework/twframework-res.apk
Note: ALL files should be at the same folder
d) Install framework files at the command prompt:
Code:
c:>java -jar apktool_2.1.1.jar if framework-res.apk
...
c:>java -jar apktool_2.1.1.jar if twframework-res.apk
e) Decompile Contacts at the command prompt
Code:
c:>java -jar apktool_2.1.1.jar d SecContacts.apk -f
-f = if last decompile failed, it will overwrite
DO NO CHANGES AT ALL
f) Build Contacts at the command prompt
Code:
c:>java -jar apktool_2.1.1.jar b SecContacts -c
-c = Copies original AndroidManifest.xml and META-INF.
If you perform exactly these steps, does it work?
Any message different from success should be presented. The more details the better support you get.
Let us know.
Nice regards.
.
Click to expand...
Click to collapse
1st) I tried other secContacts.apk to test if they work fine.. If I am will use anything other than stock I will obviously ask for permission and give proper credits
2nd) I tried this using latest apktool and java versions.. I also tried TickelMyAndroid tool..
I am only getting this error with secContacts.apk
I themed stock SystemUI and TouchWiz for G900H.. decompiled and recompiled them using same tools.. they all work fine..
I get no error while compiling the apk but when I push it to phone and replace it in Priv-app/SecContacts set permissions and reboot it doesnt install like others.. If I click it and try to install like an apk it says Parsse Error..
P.S: I googled about this issue and I found out few other users also have this problem with 5.0 TW SecContats.apk but no solution was available
Hi LAzY_kRAzY
Please perform the experiment exactly as I've gave you making no modifications to SecContacts before building it and report back.
This is computer science and HAS to work.
Nice regards.
.
LAzY_kRAzY said:
1st) I tried other secContacts.apk to test if they work fine.. If I am will use anything other than stock I will obviously ask for permission and give proper credits
2nd) I tried this using latest apktool and java versions.. I also tried TickelMyAndroid tool..
I am only getting this error with secContacts.apk
I themed stock SystemUI and TouchWiz for G900H.. decompiled and recompiled them using same tools.. they all work fine..
I get no error while compiling the apk but when I push it to phone and replace it in Priv-app/SecContacts set permissions and reboot it doesnt install like others.. If I click it and try to install like an apk it says Parsse Error..
P.S: I googled about this issue and I found out few other users also have this problem with 5.0 TW SecContats.apk but no solution was available
Click to expand...
Click to collapse
ok sure..
I tried earlier by recompiling without any modification but result was same..
I had java 1.8 installed.. will try with v 1.7..
will report soon
Kdio said:
Hi LAzY_kRAzY
Please perform the experiment exactly as I've gave you making no modifications to SecContacts before building it and report back.
This is computer science and HAS to work.
Nice regards.
.
Click to expand...
Click to collapse
tried exactly as u mentioned but similar results
Code:
C:\Apktool 2.1.1>java -jar apktool_2.1.1.jar if framework-res.apk
I: Framework installed to: C:\Users\Shoaib Nawaz\apktool\framework\1.apk
C:\Apktool 2.1.1>java -jar apktool_2.1.1.jar if twframework-res.apk
I: Framework installed to: C:\Users\Shoaib Nawaz\apktool\framework\2.apk
C:\Apktool 2.1.1>java -jar apktool_2.1.1.jar d SecContacts.apk
I: Using Apktool 2.1.1 on SecContacts.apk
I: Loading resource table...
I: Decoding Shared Library (touchwiz), pkgId: 2
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Shoaib Nawaz\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
C:\Apktool 2.1.1>java -jar apktool_2.1.1.jar b SecContacts -c
I: Using Apktool 2.1.1
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
W: warning: string 'action_menu_add_new_contact_button' has no default translation.
W: warning: string 'callmessage_kor_lgt' has no default translation.
W: warning: string 'contact_tips_button_to_manage_our_groups' has no default translation.
W: warning: string 'emergency_service' has no default translation.
W: warning: string 'fail_to_find_address_dialog_message' has no default translation.
W: warning: string 'guide_dialer_make_call_with_this_number' has no default translation.
W: warning: string 'guide_dialer_tap_to_write_your_number' has no default translation.
W: warning: string 'menu_add' has no default translation.
W: warning: string 'pick_smemo' has no default translation.
W: warning: string 'selected_cocktail_count' has no default translation.
W: warning: string 'tab_logs_verizon_lra' has no default translation.
W: warning: string 'tab_logs_verizon_uscc' has no default translation.
W: warning: string 'too_many_find_address_dialog_message' has no default translation.
W: warning: string 'volte_can_not_add_call' has no default translation.
I: Copy original files...
I: Copy AndroidManifest.xml...
I: Copy META-INF...
I: Building apk file...
I: Copying unknown files/dir...
C:\Apktool 2.1.1>
I have also attached the original SecContacts.apk
try recompiling it and see if it works
LAzY_kRAzY said:
tried exactly as u mentioned but similar results
I have also attached the original SecContacts.apk
try recompiling it and see if it works
Click to expand...
Click to collapse
Ok ... the decompile/build procedures seem ok but the android icon instead of the default Contacts one is not good sign.
I can't test by myself as I'm running 5.1.1 and can not even try to decompile/build as you didn't provided framework files
Now lasts what exactly are you doing to re-install it.
You should, with your File Manager:
1st) Make a copy of your /system/priv-app/SecContacts.apk
2sd) Delete your /system/priv-app/SecContacts.apk
3rd) Copy /extSdCard/SecContacts.apk to /system/priv-app/
4th) Set permission of /system/priv-app/SecContacts.apk to rw-r--r-- (644)
5th) Restart your system ... a Hot Boot should suffice.
-=-=- At this moment you get the error ... right ? -=-=-=
Let me know
Nice regards.
.
@Kdio
As I told above everything works well for other themed apks like system UI nd TW..
I know pushing apks manually via root browsers, backing up old apks, setting permissions then rebooting etc.. there is no problem in it..
when I manually push the apk set permission and reboot Contacts and Phone apps dont appear in my app drawer as they do not install (because apk is corrupt or signature verification fails or soomething else) no error appears in this case but the app also doesn't install..
so if I go again in my root browser an browse to the secContacts.apk location and click it it shows an option to install.. I click it and then it shows Parse Error..
I am using G900H stock framework-res.apk, twframework-res.apk
and I using 64 bit windows 10
LAzY_kRAzY said:
I am using G900H stock framework-res.apk, twframework-res.apk
and I using 64 bit windows 10
Click to expand...
Click to collapse
If you were kind to share your framework files, I may try building it here.
Nice regards.
.
Kdio said:
If you were kind to share your framework files, I may try building it here.
Nice regards.
.
Click to expand...
Click to collapse
ok sure..
here is my framework-res.apk
and twframework-res.apk
@Kdio
have you tried it ??
LAzY_kRAzY said:
@Kdio
have you tried it ??
Click to expand...
Click to collapse
Hi LAzY_kRAzY
Sorry the delay
Just did it with no success
The decompilation/build was exactly as yours:
Code:
C:\Users\Kdio\Desktop\s5\framework>java -jar apktool_2.1.1.jar if framework-res.apk
I: Framework installed to: C:\Users\Kdio\apktool\framework\1.apk
C:\Users\Kdio\Desktop\s5\framework>java -jar apktool_2.1.1.jar if twframework-res.apk
I: Framework installed to: C:\Users\Kdio\apktool\framework\2.apk
C:\Users\Kdio\Desktop\s5\framework>cd..
C:\Users\Kdio\Desktop\s5>java -jar apktool_2.1.1.jar d SecContacts.apk
I: Using Apktool 2.1.1 on SecContacts.apk
I: Loading resource table...
I: Decoding Shared Library (touchwiz), pkgId: 2
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Kdio\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
C:\Users\Kdio\Desktop\s5>java -jar apktool_2.1.1.jar b SecContacts -c
I: Using Apktool 2.1.1
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
W: warning: string 'action_menu_add_new_contact_button' has no default translation.
W: warning: string 'callmessage_kor_lgt' has no default translation.
W: warning: string 'contact_tips_button_to_manage_our_groups' has no default translation.
W: warning: string 'emergency_service' has no default translation.
W: warning: string 'fail_to_find_address_dialog_message' has no default translation.
W: warning: string 'guide_dialer_make_call_with_this_number' has no default translation.
W: warning: string 'guide_dialer_tap_to_write_your_number' has no default translation.
W: warning: string 'menu_add' has no default translation.
W: warning: string 'pick_smemo' has no default translation.
W: warning: string 'selected_cocktail_count' has no default translation.
W: warning: string 'tab_logs_verizon_lra' has no default translation.
W: warning: string 'tab_logs_verizon_uscc' has no default translation.
W: warning: string 'too_many_find_address_dialog_message' has no default translation.
W: warning: string 'volte_can_not_add_call' has no default translation.
I: Copy original files...
I: Copy AndroidManifest.xml...
I: Copy META-INF...
I: Building apk file...
I: Copying unknown files/dir...
C:\Users\Kdio\Desktop\s5>
And the SecContacts.apk outputed got no positive identification as yours:
Everything is accordingly to the book, so lasts the suggestion that is your specific ROM that contains the weirdness.
Please let me know if you come to any conclusion.
Nice regards.
.
Kdio said:
Hi LAzY_kRAzY
Sorry the delay
Just did it with no success
The decompilation/build was exactly as yours:
Code:
C:\Users\Kdio\Desktop\s5\framework>java -jar apktool_2.1.1.jar if framework-res.apk
I: Framework installed to: C:\Users\Kdio\apktool\framework\1.apk
C:\Users\Kdio\Desktop\s5\framework>java -jar apktool_2.1.1.jar if twframework-res.apk
I: Framework installed to: C:\Users\Kdio\apktool\framework\2.apk
C:\Users\Kdio\Desktop\s5\framework>cd..
C:\Users\Kdio\Desktop\s5>java -jar apktool_2.1.1.jar d SecContacts.apk
I: Using Apktool 2.1.1 on SecContacts.apk
I: Loading resource table...
I: Decoding Shared Library (touchwiz), pkgId: 2
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Kdio\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
C:\Users\Kdio\Desktop\s5>java -jar apktool_2.1.1.jar b SecContacts -c
I: Using Apktool 2.1.1
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
W: warning: string 'action_menu_add_new_contact_button' has no default translation.
W: warning: string 'callmessage_kor_lgt' has no default translation.
W: warning: string 'contact_tips_button_to_manage_our_groups' has no default translation.
W: warning: string 'emergency_service' has no default translation.
W: warning: string 'fail_to_find_address_dialog_message' has no default translation.
W: warning: string 'guide_dialer_make_call_with_this_number' has no default translation.
W: warning: string 'guide_dialer_tap_to_write_your_number' has no default translation.
W: warning: string 'menu_add' has no default translation.
W: warning: string 'pick_smemo' has no default translation.
W: warning: string 'selected_cocktail_count' has no default translation.
W: warning: string 'tab_logs_verizon_lra' has no default translation.
W: warning: string 'tab_logs_verizon_uscc' has no default translation.
W: warning: string 'too_many_find_address_dialog_message' has no default translation.
W: warning: string 'volte_can_not_add_call' has no default translation.
I: Copy original files...
I: Copy AndroidManifest.xml...
I: Copy META-INF...
I: Building apk file...
I: Copying unknown files/dir...
C:\Users\Kdio\Desktop\s5>
And the SecContacts.apk outputed got no positive identification as yours:
Everything is accordingly to the book, so lasts the suggestion that is your specific ROM that contains the weirdness.
Please let me know if you come to any conclusion.
Nice regards.
.
Click to expand...
Click to collapse
I am using the stock samsung rom and firmware..
I dont think its the problem of Rom or framework because all other stock apps decompile and recompile fine..
secondly as I mentioned earlier, I tried with other 5.0 TW roms with their respective frameworks but all had the same response..
so maybe its secContacts.apk issue..
anyways thanks for your effort and time :highfive:
LAzY_kRAzY said:
so maybe its secContacts.apk issue..
Click to expand...
Click to collapse
Hi LAzY_kRAzY
As you didn't report solving the problem ...
I've been seeing several others getting the same issue you described and, for them, the solution was:
- Do not push original signature while building (without -c parameter)
- Sign the apk with whatever signature you want (different from original anyway)
- Follow [GUIDE]Disable signature verification
Please let us know.
Nice regards.
.
@Kdio thanks but I havent managed to get it working yet..
tried this too but same result :-/
LAzY_kRAzY said:
@Kdio thanks but I havent managed to get it working yet..
tried this too but same result :-/
Click to expand...
Click to collapse
There is still a follow up from that services.jar method ... but not sure if it applies to our devices.
As you already have services.jar decompiled, check this out:
http://forum.xda-developers.com/showthread.php?t=2342262
Nice regards.
.
Kdio said:
There is still a follow up from that services.jar method ... but not sure if it applies to our devices.
As you already have services.jar decompiled, check this out:
http://forum.xda-developers.com/showthread.php?t=2342262
Nice regards.
.
Click to expand...
Click to collapse
this method is actually from older versions of android..
there is no .method checkSignaturesLP in PPackageManagerService.smali in lollipop :-/
Same problem from Galaxy J2.
LAzY_kRAzY said:
this method is actually from older versions of android..
there is no .method checkSignaturesLP in PPackageManagerService.smali in lollipop :-/
Click to expand...
Click to collapse
Azhero said:
Same problem from Galaxy J2.
Click to expand...
Click to collapse
I don't know if yall have figured it out yet but decompile, make your changes, recompile. Open the newly compiled apk with 7zip/archive manager, open res, delete the raw folder (if there is one) , then open the original apk and drag and drop the res folder from the apk you compiled into the original then push the original. If you make smali changes just do the same thing. Open the new apk drag and drop the classes into the original push the original.
You have to delete the raw folder if swapping the res folder or else the sound file gets compressed and screws everything up