Apktool recompile error - Galaxy Y GT-S5360 and Duos 6102 Q&A, Help & Troubl

While recompile systemui.apk i get "W:could not find source" . Even if i make no changes & recompile i get the same error.....Whereas i do not get this error while recompiling music.apk n memo.apk....
btw i imported framework res and tw framework res....any solution??
Sent from my GT-S5360 using Tapatalk 2

delroydsouza said:
While recompile systemui.apk i get "W:could not find source" . Even if i make no changes & recompile i get the same error.....Whereas i do not get this error while recompiling music.apk n memo.apk....
btw i imported framework res and tw framework res....any solution??
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
dont worry - its looking for some sources that are in a different apk for reference
the apk will still compile and work if all changes are correct
if you are using evo-x4 make sure you are using ics framework and not the one in the rom zip
also once you have recompiled delete the new apk
open then decompiled folder
unzip the orig apk with winrar
take out META-INF and AndroidManifest.xml
place this in your decompiled folder in build/apk
recompile the folder again
I got the same thing when I modded android.policy.jar

Related

how do open. Apk file?

Trying to edit bools.xml file to edit 4g text in status top bar to say lte instead of 4g
Thx
via my NeXus⁴ using XDA Phremium app
download and setup apktool then use this command to decompile it: apktool d name.apk
after your done editing it do this command to compile it: apktool b name
then use 7zip and replace the AndroidManifest.xml and META-INF in your new compiled apk with the ones from the original apk and you'll be good.
Bloodawn said:
download and setup apktool then use this command to decompile it: apktool d name.apk
after your done editing it do this command to compile it: apktool b name
then use 7zip and replace the AndroidManifest.xml and META-INF in your new compiled apk with the ones from the original apk and you'll be good.
Click to expand...
Click to collapse
Doesn't APKTool not support 4.2.1?
What's really the difference in decompile and just dragging the files out with 7zip? I've tried decompiling before and it makes the same folder I would with all the stuff thats extracted with 7zip.. :/
Sent from my Nexus 4

[Q] How to change the Androidmanifest.xml.file to make it install in sd card?

Hello guys,
I have been trying to change the manifest file to make it installable in sd card.. Everytime i change the file..and recomplile it is giving me parse Error..
This is what i done:---
1.) Extracted the Apk file with es file explorer..
2.) went to Androidmanifest.xml and edited like "" <manifest :androidinstalllocation="prefexternal">
3.Recompiled it..
Then parse error .. what am i doing wrong..please correct me..
Thanks in Advance
Sent from my GT-S5360 using Tapatalk 2
the "E" in preferExternal needs to be a capital letter
its perfer not pref
so it looks like this
android:installLocation="preferExternal"
you can also try changing it to to "auto"
This will install it on internal unless it is full but allows the app to be movable to sd card via system settings
also you will need to resign the app else you wont be able to install it
marcussmith2626 said:
the "E" in preferExternal needs to be a capital letter
its perfer not pref
so it looks like this
android:installLocation="preferExternal"
you can also try changing it to to "auto"
This will install it on internal unless it is full but allows the app to be movable to sd card via system settings
also you will need to resign the app else you wont be able to install it
Click to expand...
Click to collapse
Thanks.But i'm still getting a Parse error..Do i need to Use apktool or I can do it in my phone..?
Sent from my GT-S5360 using Tapatalk 2
shyamSGY said:
Thanks.But i'm still getting a Parse error..Do i need to Use apktool or I can do it in my phone..?
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
to edit any xml file you MUST decompile the apk - this means using a decompiler like apktool (there is apktool for mobile)
you cant simply unzip an apk to edit an xml file
you said you recompiled the apk - what you meant was you rezipped the apk which you cannot do
you can only unzip and rezip and apk if you just change a png image - you cannot edit xmls this way
marcussmith2626 said:
to exit any xml file you MUST decompile the apk - this means using a decompiler like apktool (there is apktool for mobile)
you cant simply unzip an apk to exit apk an xml file
you said you recompiled the apk - what you meant was you rezipped the apk which you cannot do
you can only unzip and rezip and apk if you just change a png image - you cannot edit xmls this way
Click to expand...
Click to collapse
Thanks dude..will try
Sent from my GT-S5360 using Tapatalk 2
marcussmith2626 said:
to edit any xml file you MUST decompile the apk - this means using a decompiler like apktool (there is apktool for mobile)
you cant simply unzip an apk to edit an xml file
you said you recompiled the apk - what you meant was you rezipped the apk which you cannot do
you can only unzip and rezip and apk if you just change a png image - you cannot edit xmls this way
Click to expand...
Click to collapse
Once I was trying to port a Armv7 game to v6..i changed the lib files and reziped..and it worked.. So changing lib files differs from editing xml files..it needs Apktool right?
Sent from my GT-S5360 using Tapatalk 2
shyamSGY said:
Once I was trying to port a Armv7 game to v6..i changed the lib files and reziped..and it worked.. So changing lib files differs from editing xml files..it needs Apktool right?
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
lib files are different - you are not actually editing them - they are precompiled files
xmls need to be decompiled to edit then - you will notice if its not decompiled you might be able to see the first few lines and the rest will be all symbols and unreadable
you MUST decompile an apk to edit xml and smali files
marcussmith2626 said:
lib files are different - you are not actually editing them - they are precompiled files
xmls need to be decompiled to edit then - you will notice if its not decompiled you might be able to see the first few lines and the rest will be all symbols and unreadable
you MUST decompile an apk to edit xml and smali files
Click to expand...
Click to collapse
Thanks again
Sent from my GT-S5360 using Tapatalk 2
marcussmith2626 said:
lib files are different - you are not actually editing them - they are precompiled files
xmls need to be decompiled to edit then - you will notice if its not decompiled you might be able to see the first few lines and the rest will be all symbols and unreadable
you MUST decompile an apk to edit xml and smali files
Click to expand...
Click to collapse
The Apktool is asking For data..,where do i get it..?
Sent from my GT-S5360 using Tapatalk 2
shyamSGY said:
The Apktool is asking For data..,where do i get it..?
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
if its apktool for mobile follow the instructions from the thread
you point the app to folder on your sd card
load the framework-res.apk
see
http://forum.xda-developers.com/showthread.php?t=2488697
or
http://forum.xda-developers.com/showthread.php?t=2388135
marcussmith2626 said:
if its apktool for mobile follow the instructions from the thread
you point the app to folder on your sd card
load the framework-res.apk
see
http://forum.xda-developers.com/showthread.php?t=2488697
or
http://forum.xda-developers.com/showthread.php?t=2388135
Click to expand...
Click to collapse
Thanks it worked..
Sent from my GT-S5360

[Q]decompile settings.apk [SOLVED}

Hello,
Yesterday night I was trying to decompile Settings.apk with apktool...
Bt it was being unsuccessful on every try...
Showing errors, see attachments.
plz guide..
LINK: http://d-h.st/mk9
Try with another apk decompiling tools.
aniket.lamba said:
Try with another apk decompiling tools.
Click to expand...
Click to collapse
tried with apkmanager... not wrking..
EDIT: Can I give u the apk to decompile.. as im noob in these things
Did you import "framework-res.apk" and "twframework-res.apk"?
If yes then are you using the same framework from the same rom of the "settings.apk" or your using settings.apk of other rom?
Sent from my GT-S5360 using Tapatalk 2
just load it up,together with your framework-res.apk and twframework-res.apk,so we can help i hope.
-CALIBAN666- said:
just load it up,together with your framework-res.apk and twframework-res.apk,so we can help i hope.
Click to expand...
Click to collapse
WTF, giving error while uploading zip.. :/
your first screenshot shows that you have not placed framework-res.apk in the location your command prompt is at
in other words you did not place framework-res.apk in the location c:\new folder
just as a tip - when working with dos prompt - never put a space in folder or file names - it doesnt like it
marcussmith2626 said:
your first screenshot shows that you have not placed framework-res.apk in the location your command prompt is at
in other words you did not place framework-res.apk in the location c:\new folder
just as a tip - when working with dos prompt - never put a space in folder or file names - it doesnt like it
Click to expand...
Click to collapse
No, Ive placed two folders named 'apktool' and 'new folder'...
'apktool ' includes apkmultitool and new folder includes PY-APKTOOL, I found that here http:// http://forum.xda-developers.com/showpost.php?p=39697820&postcount=4 respectively.
Ive used apkmultitool as:
I renamed framework-res.apk as apktool if framework-res.apk and tried to decompile it. Bit i ve faced an error.
I could not install framework-res.apk in my computer..
Framework-res.apk:
I followed guide to decompile framework-res.apk from here [URL=" http://caliban666isaddicted.blogspot.in/2013/06/guide-for-change-platlogoeasytextmaybe.html?m=1" ] http://caliban666isaddicted.blogspot.in/2013/06/guide-for-change-platlogoeasytextmaybe.html?m=1 [/URL]
And done my modifications in framework-res.apk and installed it successfully.
While I was trying to decompile settings.apk, the errors were occuring..
crazysuraj said:
No, Ive placed two folders named 'apktool' and 'new folder'...
'apktool ' includes apkmultitool and new folder includes PY-APKTOOL, I found that here http:// http://forum.xda-developers.com/showpost.php?p=39697820&postcount=4 respectively.
Ive used apkmultitool as:
I renamed framework-res.apk as apktool if framework-res.apk and tried to decompile it. Bit i ve faced an error.
I could not install framework-res.apk in my computer..
Framework-res.apk:
I followed guide to decompile framework-res.apk from here [URL=" http://caliban666isaddicted.blogspot.in/2013/06/guide-for-change-platlogoeasytextmaybe.html?m=1" ] http://caliban666isaddicted.blogspot.in/2013/06/guide-for-change-platlogoeasytextmaybe.html?m=1 [/URL]
And done my modifications in framework-res.apk and installed it successfully.
While I was trying to decompile settings.apk, the errors were occuring..
Click to expand...
Click to collapse
I dont understand what you are doing with importing the framework
just do this
create a folder called apktool in the root of c: - in other words create a folder apktool so its location is c:\apktool
place framework-res.apk from the rom zip along with the apk you wish to decompile - in this case settings.apk in the folder apktool you have just created
open a command prompt as admin
type the following
cd c:\apktool
apktool if framework-res.apk
apktool d settings.apk settingsdecompiled
-CALIBAN666- said:
just load it up,together with your framework-res.apk and twframework-res.apk,so we can help i hope.
Click to expand...
Click to collapse
Ive uploaded apks
Google Drive :LINKS REMOVED
UPDATED LINK: http://d-h.st/mk9
Thank You!
crazysuraj said:
Ive uploaded apks
Google Drive :LINKS REMOVED
UPDATED LINK: http://d-h.st/mk9
Thank You!
Click to expand...
Click to collapse
no problems with decompiling that apk
Its user error - make sure you are using apktool correctly - there is no point in uploading any decompiled files because you will not be able to recompile it if you dont learn how to use it including trying anything else in the future
here is a screen shot with all my commands
make sure you put framework-res.apk and twframework-res.apk and settings.apk in the folder to which your command prompt is at - in my case its c:\apktool
marcussmith2626 said:
no problems with decompiling that apk
Its user error - make sure you are using apktool correctly - there is no point in uploading any decompiled files because you will not be able to recompile it if you dont learn how to use it including trying anything else in the future
here is a screen shot with all my commands
make sure you put framework-res.apk and twframework-res.apk and settings.apk in the folder to which your command prompt is at - in my case its c:\apktool
Click to expand...
Click to collapse
Yes Sir,
Here, its my fault and I should have knowledge if I love modding
I have to learn more things about how to use apktool : rolleyes:
Thank You...!
regards.
marcussmith2626 said:
no problems with decompiling that apk
Its user error - make sure you are using apktool correctly - there is no point in uploading any decompiled files because you will not be able to recompile it if you dont learn how to use it including trying anything else in the future
here is a screen shot with all my commands
make sure you put framework-res.apk and twframework-res.apk and settings.apk in the folder to which your command prompt is at - in my case its c:\apktool
Click to expand...
Click to collapse
What is this ??
crazysuraj said:
What is this ??
Click to expand...
Click to collapse
it means you havent installed apktool correctly and/or not got java jdk installed as well
Java development tools (JDK)
http://www.oracle.com/technetwork/ja...ads/index.html
Apktool
http://code.google.com/p/android-apktool/downloads/list
Place both apktool files in C:\Windows\
see my thread here for a full picture guide to using apktool
http://forum.xda-developers.com/showthread.php?t=2206938
also why have you renamed your apks to apktool if framework-res and so on in your screenshot thats a big no - do not rename your apk files
they should just be called framework-res.apk settings.apk and twframework.apk
you have renamed them to commands you type into a command prompt and I dont understand why you have done that!
you type in the command prompt apktool if framework-res.apk - you do not rename any files
marcussmith2626 said:
it means you havent installed apktool correctly and/or not got java jdk installed as well
Java development tools (JDK)
http://www.oracle.com/technetwork/ja...ads/index.html
Apktool
http://code.google.com/p/android-apktool/downloads/list
Place both apktool files in C:\Windows\
see my thread here for a full picture guide to using apktool
http://forum.xda-developers.com/showthread.php?t=2206938
also why have you renamed your apks to apktool if framework-res and so on in your screenshot thats a big no - do not rename your apk files
they should just be called framework-res.apk settings.apk and twframework.apk
you have renamed them to commands you type into a command prompt and I dont understand why you have done that!
you type in the command prompt apktool if framework-res.apk - you do not rename any files
Click to expand...
Click to collapse
OMG!
crazysuraj said:
OMG!
Click to expand...
Click to collapse
well done you have decompiled settings.apk to a folder called settings
make sure you use notepad++ to edit any xml files (different from windows notepad)
http://notepad-plus-plus.org/download/v6.6.3.html
to recompile just type
apktool b settings newsettings.apk
and it will recompile the folder to an apk called newsettings.apk (assuming no errors have been made in modding files)
you can then rename this apk back to settings.apk and sign it if required (if you have edited the androidmanifest you need to sign the apk) - you can use zipsigner from the playstore to sign apks if you need to - use a testkey for non system apps and a platform key for system apps

Cant Recompile Framework-Res.APK

So ive been trying to modify the framework-res.apk and i can decompile it but just cant recompile it, Even if i just decompile with no edits then re-compile it errors out with APKTool or XdaAutotool or apk multi tool. Anyone have an luck????
supercobaltss said:
So ive been trying to modify the framework-res.apk and i can decompile it but just cant recompile it, Even if i just decompile with no edits then re-compile it errors out with APKTool or XdaAutotool or apk multi tool. Anyone have an luck????
Click to expand...
Click to collapse
Are you using the S5 framework and twframework-res? Or perhaps you have an out of date decompiler. Did you copy META-INF and AndroidManifest.xml from your the old apk to the recompiled apk? It's hard to guess at the problem since you didn't give us crucial details on what tool versions and steps you used or exact error messages you saw. There are a number of threads on the subject, so do a search to see what is working for others.

signing modified touchwiz

hii all..
I used to theme touchwiz for my S3 to look like s6..
after themeing I used to compile it with apktool and then zipalign and finally sign it with signApk..
it used to work fine..
Now I am trying to theme TouchWiz for my G900H.. but when I recompile, zipalign and sign the final apk as I used to do earlier it doesnt work.. Touchwiz doesnt install in recovery nor after I push it manually and set permissions..
where can be the problem ? what am I missing ?
P.S: I also used Advanced APK Tool v4.1 but same result..
please help if u can..
thanks
any help ??
Open the apk in 7zip, open original unmodified apk in 7zip as well, drag the unmodified apk's meta-inf folder to the modified one, should install now.
Sent from my SAMSUNG-SM-G900A using Tapatalk

Categories

Resources