Question for development - Samsung Galaxy S7 Edge Questions and Answers

Hello.
i'm trying to change the credroid rom, i have a problem with the settings.apk application
I can decompile the apk correctly and modify the desired files, but I can not recompile the apk. I will need your help please.

mathieum28 said:
Hello.
i'm trying to change the credroid rom, i have a problem with the settings.apk application
I can decompile the apk correctly and modify the desired files, but I can not recompile the apk. I will need your help please.
Click to expand...
Click to collapse
Needs to be resigned [emoji87]
Sent from my SM-G950U using Tapatalk

kobos311 said:
Needs to be resigned [emoji87]
Sent from my SM-G950U using Tapatalk
Click to expand...
Click to collapse
I tried with apktool 2.3 but it does not work. I can not recompile before signing the apk

Related

Recompiling framework-res.apk

I'm trying to modify framework-res.apk and I am able to decompile it. I modified styles.xml and colors.xml. My problem is that I can't compile it back. I'm getting a lot of errors when I try to. I'm using the latest version of apk multi-tool. I'll post the logs later because I'm on phone right now, but anyone has any idea of what might be causing the problem? Any help is appreciated.
Tapatalked.
Silvane said:
I'm trying to modify framework-res.apk and I am able to decompile it. I modified styles.xml and colors.xml. My problem is that I can't compile it back. I'm getting a lot of errors when I try to. I'm using the latest version of apk multi-tool. I'll post the logs later because I'm on phone right now, but anyone has any idea of what might be causing the problem? Any help is appreciated.
Tapatalked.
Click to expand...
Click to collapse
Even I am trying to compile it but i also get errors.. I edited styles.xml
Sent from my GT-S5360 using XDA
Use yhe lattest apk manager not apk tool is a old one brotha
Hehehe apk manager more powerfull than apktool
Sent from my GT-S5360 using xda premium
umm...I always failed when using stock framework-res.apk. after that I try to copy the same framework-res.apk to c:users/<username>/apktool/framework/ then rename it to 1.apk. I don't know why, but it works.
@evanlocked: I thought both apk manager and apktool are actually same program. the difference is only on its interface. IMO it doesn't matter which one did everyone choose.
kurotsugi said:
umm...I always failed when using stock framework-res.apk. after that I try to copy the same framework-res.apk to c:users/<username>/apktool/framework/ then rename it to 1.apk. I don't know why, but it works.
@evanlocked: I thought both apk manager and apktool are actually same program. the difference is only on its interface. IMO it doesn't matter which one did everyone choose.
Click to expand...
Click to collapse
Yeah but I face some issue using apk tool bro on my laptop but using apk manager its works
Sent from my GT-S5360 using xda premium
Thanks for the replies guys. I was able to compile it successfully with apk manager. Now my problem is that I can't push it via adb. Says no devices found, although when not in recovery it works fine enough. Any ideas or alternative methods to push framework-res?
Tapatalked.
Make a update script and flash it.
I always use to flash it
& it works awesome
Silvane said:
Thanks for the replies guys. I was able to compile it successfully with apk manager. Now my problem is that I can't push it via adb. Says no devices found, although when not in recovery it works fine enough. Any ideas or alternative methods to push framework-res?
Tapatalked.
Click to expand...
Click to collapse
m still stuck with those probs how did ya make it work?
I used apk manager instead of apk tool and it compiled. I've yet to try the apk I modded though. XD
Tapatalked.
Silvane said:
I used apk manager instead of apk tool and it compiled. I've yet to try the apk I modded though. XD
Tapatalked.
Click to expand...
Click to collapse
thanks for the thread and the posts you all made, i have been searching for a thread like this for 2days. going to try apk-manager now and the renaming framework-res.apk to 1.apk.
Im using APK Tool and no prob. at all when de/re-compile .apk
The question is...
Why after recompile the signed/unsigned .apk the size always smaller than the original .apk? Is that normal? Tho even smaller its installable and work
Altermania said:
Im using APK Tool and no prob. at all when de/re-compile .apk
The question is...
Why after recompile the signed/unsigned .apk the size always smaller than the original .apk? Is that normal? Tho even smaller its installable and work
Click to expand...
Click to collapse
Yes its normal the compression rate is max while re-compilin nd u need not be worried about it
Sent from my GT-S5670 using XDA

Error while recompiling systemui.apk

Hello guys,
I always get error while recompiling my systemui on apktool on my Sgy. Even if i dont edit any thing n recompile, i get the errors.It recompiles w/o errors for other app....what wrong am i doing?
btw i imported framework b4 decompiling
Sent from my GT-S5360 using Tapatalk 2
I'm guessing you're trying to decompile evo systemui.apk
you need to use ics framework-res.apk
No....Stock
Sent from my GT-S5360 using Tapatalk 2
delroydsouza said:
No....Stock
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
You probably need to also load tw-framework-res.apk into Apktool using the if command
Make sure you're also deodex
delroydsouza said:
Hello guys,
I always get error while recompiling my systemui on apktool on my Sgy. Even if i dont edit any thing n recompile, i get the errors.It recompiles w/o errors for other app....what wrong am i doing?
btw i imported framework b4 decompiling
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
U should have done something wrong in the xml files.
Can provide the log? So that i can find out what mistakes u have done.
MuSaddiq1410 said:
U should have done something wrong in the xml files.
Can provide the log? So that i can find out what mistakes u have done.
Click to expand...
Click to collapse
He said it's also when no changes are made at all which leads me to think either the wrong framework-res.apk was used to decompile or tw-framework-res.apk also needs to be loaded into Apktool for successful Decompile & Recompile
marcussmith2626 said:
He said it's also when no changes are made at all which leads me to think either the wrong framework-res.apk was used to decompile or tw-framework-res.apk also needs to be loaded into Apktool for successful Decompile & Recompile
Click to expand...
Click to collapse
Yeah, you're right. Both proper framework-res.apk and twframework-res.apk should be loaded for successful Decompile & Recompile.
MuSaddiq1410 said:
Yeah, you're right. Both proper framework-res.apk and twframework-res.apk should be loaded for successful Decompile & Recompile.
Click to expand...
Click to collapse
I have loaded proper framework-res.apk and twframework-res.apk....
Sent from my GT-S5360 using Tapatalk 2
Helo First U need Import Framework-res.apk then do
Shadman0 If I help U Pls Give Thanks

how to decompile and decompile setting.apk ???

how to decompile and decompile setting.apk
I always fail to do decompline or recompline setting.apk when I did not edit at all also still failed to file. where the problem lies ?? setting.apk the error of his or her apktol ?? but if decompline or recompline SystemUI or fremawork successfully ...
darw andi said:
how to decompile and decompile setting.apk
I always fail to do decompline or recompline setting.apk when I did not edit at all also still failed to file. where the problem lies ?? setting.apk the error of his or her apktol ?? but if decompline or recompline SystemUI or fremawork successfully ...
Click to expand...
Click to collapse
Chances are that you havent loaded the correct framework
If it is a touchwiz rom (based on stock rom) you also need to load tw-framework using the if command
Also some roms are compiled with framework of a higher version than the rom eg compiled with jellybean framework so load that framework-res instead eg from cm10
But the chances are its because you didnt also load the tw framework from the rom
Also please note that questions should be posted in the question and answe section
marcussmith2626 said:
Chances are that you havent loaded the correct framework
If it is a touchwiz rom (based on stock rom) you also need to load tw-framework using the if command
Also some roms are compiled with framework of a higher version than the rom eg compiled with jellybean framework so load that framework-res instead eg from cm10
But the chances are its because you didnt also load the tw framework from the rom
Also please note that questions should be posted in the question and answe section
Click to expand...
Click to collapse
thanks before
My problem has been resolved
I use apk manager via pc
Hey guyzz
Since m not the developer,can anyone decompile apk for me please:what::what:
Thank u
vai8080 said:
Hey guyzz
Since m not the developer,can anyone decompile apk for me please:what::what:
Thank u
Click to expand...
Click to collapse
Which apk ?
Islam2001 said:
Which apk ?
Click to expand...
Click to collapse
It is the setting apk:what::what:
Can u do it for me
vai8080 said:
It is the setting apk:what::what:
Can u do it for me
Click to expand...
Click to collapse
U mran the stock ?
Islam2001 said:
U mran the stock ?
Click to expand...
Click to collapse
It is the zip in which there is settings apk as well as keyguard apk , which I want to modify it
Can u help ..
vai8080 said:
It is the zip in which there is settings apk as well as keyguard apk , which I want to modify it
Can u help ..
Click to expand...
Click to collapse
Learn how to decompile apks yourself
It's easier doing it on a pc but can also be done on a phone if you don't have a pc
My pc guide can be found in the link in my signature
For phone guide Google search apktool mobile (you need armv6 version)
marcussmith2626 said:
Learn how to decompile apks yourself
It's easier doing it on a pc but can also be done on a phone if you don't have a pc
My pc guide can be found in the link in my signature
For phone guide Google search apktool mobile (you need armv6 version)
Click to expand...
Click to collapse
I have tired to decompile apk with pc but I was failed
So can u do it for me:what::what:
vai8080 said:
I have tired to decompile apk with pc but I was failed
So can u do it for me:what::what:
Click to expand...
Click to collapse
No - much better to learn how to do it yourself else how are you going to mod it & recompile it or do anything else in the future
If you can't decompile it you are most likely using the wrong framework-res.apk - use framework-res.apk from cm10
Without screenshot of your cmd window I can't see how you are trying to do it
Full guide in my signature - Just use correct framework-res.apk - note just because it's a Gingerbread rom doesn't mean it was built with Gingerbread framework - so if it doesn't decompile use cm10 framework
marcussmith2626 said:
No - much better to learn how to do it yourself else how are you going to mod it & recompile it or do anything else in the future
If you can't decompile it you are most likely using the wrong framework-res.apk - use framework-res.apk from cm10
Without screenshot of your cmd window I can't see how you are trying to do it
Full guide in my signature - Just use correct framework-res.apk - note just because it's a Gingerbread rom doesn't mean it was built with Gingerbread framework - so if it doesn't decompile use cm10 framework
Click to expand...
Click to collapse
K thanks man

[Help] notepad++ won't read any XML in rom

I am building a ROM but my notepad++ won't read any .XML file from any ROM.. Please explain me how to fix this thing?
livecouk said:
I am building a ROM but my notepad++ won't read any .XML file from any ROM.. Please explain me how to fix this thing?
Click to expand...
Click to collapse
Did you decompile the apks with apktool?
Sent from my Scorpion Mini
NO
ATTACK said:
Did you decompile the apks with apktool?
Sent from my Scorpion Mini
Click to expand...
Click to collapse
no i did't i just extracted them with 7Zip and Also it wont read some usual APK which are not in APK such as androidmanifest.apk....
livecouk said:
no i did't i just extracted them with 7Zip and Also it wont read some usual APK which are not in APK such as androidmanifest.apk....
Click to expand...
Click to collapse
Then that is your problem. You need to decompile first in order to edit any file other then images.
Yup that was it! Thanks ATTACK and Tecknofreak for help!

How Can I Edit Default TouchWiz Icons Without Third Party Applications (ROOT)?

Hello, everyone,
I post this thread, because I would like to know how it's possible to change all default TouchWiz icons (app drawer, etc.)? I'm currently rooted, on Lollipop 5.0. I don't want install third-party applications (launcher, wiziconizer, etc.). I just want edit all my icons manually. Can someone explain how I can do?
Thank you.
With WinRAR open apk of desidered App and edit mipmap folder files
BlackMesa123 said:
With WinRAR open apk of desidered App and edit mipmap folder files
Click to expand...
Click to collapse
Thanks for the reply. I just edited YouTube icon, but nothing has changed. I edited the the mipmap folder files. Can you help please?
Sarakate said:
Thanks for the reply. I just edited YouTube icon, but nothing has changed. I edited the the mipmap folder files. Can you help please?
Click to expand...
Click to collapse
You've edited all folders right?
BlackMesa123 said:
You've edited all folders right?
Click to expand...
Click to collapse
Yes, all folders. I just noticed that I need to remove the update from the app and the custom icon appears. How it's possible to fix that with the current update?
Sarakate said:
Yes, all folders. I just noticed that I need to remove the update from the app and the custom icon appears. How it's possible to fix that with the current update?
Click to expand...
Click to collapse
Probably you have changed only system/app apk.
Simply use latest version as base and use normal install.
Okay, problem fixed. Now, how can I edit default Android system apps? Like the Clock, Settings, etc.? I just noticed that the format is .pkm and I can't change icon. Can you help? Thanks.
Sarakate said:
Okay, problem fixed. Now, how can I edit default Android system apps? Like the Clock, Settings, etc.? I just noticed that the format is .pkm and I can't change icon. Can you help? Thanks.
Click to expand...
Click to collapse
Change to .png with identical filename(case sensitive) and it should work.
Sent from my SAMSUNG-SM-G900A using Tapatalk
Rakuu said:
Change to .png with identical filename(case sensitive) and it should work.
Sent from my SAMSUNG-SM-G900A using Tapatalk
Click to expand...
Click to collapse
Ok thanks i will try. I need to delete the old pkm file?
I need to put the name like this?ic_launcher_clock.pkm.png
When I want to open the file with apk editor pro, I have an error. Can you help pls?
Sarakate said:
When I want to open the file with apk editor pro, I have an error. Can you help pls?
Click to expand...
Click to collapse
No pkm in the file name, if the file is 'ic_launcher.pkm' then take the image you want to use and delete the pkm file and name the image 'ic_launcher.png'
Sent from my SAMSUNG-SM-G900A using Tapatalk
Rakuu said:
No pkm in the file name, if the file is 'ic_launcher.pkm' then take the image you want to use and delete the pkm file and name the image 'ic_launcher.png'
Sent from my SAMSUNG-SM-G900A using Tapatalk
Click to expand...
Click to collapse
No, this still does not work... The APK is no longer valid and prompted to put the ic_launcher.pkm. It does not recognize the ic_launcher.png.
How can I do please?
Someone?
Sarakate said:
Someone?
Click to expand...
Click to collapse
I think you might have to edit one of the XML files in values
Sent from my SAMSUNG-SM-G900A using Tapatalk

Categories

Resources