Decompiling or recompiling problem [Please help] - Galaxy Tab Q&A, Help & Troubleshooting

There are some apks that when I decompile and recompile them, they don't work, even if I decompile and and then without changing anything recompile them again, they don't work. I think the person who made those kind of apps does something so others can't change their apps and publish them under their own name, which is a good thing and I respect that, but sometimes there is an app which is really cool but there are some problems like bad images which need to be changed.
I'm changing some picture in Handcent SMS which is a free app, but after decompiling I can not install it.
I also asked the owner for his help, and I thought I ask you guys, too.
Has anyone ever had any experience like this?
It would be great if someone could help.
Thanks in advance.

Hi
Well if these apk's u mention are not grabbed from the /system/app folder you'll need to sign them every time you edit them.

biopsin said:
Hi
Well if these apk's u mention are not grabbed from the /system/app folder you'll need to sign them every time you edit them.
Click to expand...
Click to collapse
Yeah, I know. I always sign the apks which are not from /system/app, and they work just fine but in this case there is something wrong.

My guess is they have a protection agains tampering.

biopsin said:
Hi
Well if these apk's u mention are not grabbed from the /system/app folder you'll need to sign them every time you edit them.
Click to expand...
Click to collapse
Got there before me!

Related

[Q] Searching for an automated way to deodex and zipalign

There are some ROMs around that are deodexed and zipaligned. The ROMs around here unfortnately are themed (not to my taste) and/or have removed Samsung stuff that i use. I want a nearly untouched FW (i remove a few Samsung apps on my own).
So i'm searching for an automated method (that can also be used for future FWs) to deodex and zipalign the files of my phone (maybe only some binaries or java applications and a batch file).
I can manage to pull/push all files from/to /system/app and /system/framework but i'm not able to do the rest...
Also very interested in this. Or a clean kitchen or a how to on making a kitchen to mod our roms.
dutchcow said:
Also very interested in this. Or a clean kitchen or a how to on making a kitchen to mod our roms.
Click to expand...
Click to collapse
I just wanted to create a thread about MODIFYING / CREATING CUSTOM ROMS FOR THE i9000.
Does anyone know how to modify (for example, Tayutama's JPM Full ROM) ROMs?
I googled and just found some HTC ROM HowTo's.
Check my signature for all the tools u shud need in terms of deodexing, editing apks, creating signed update.zip. Thats all you really need i think :\
A zipaligner is missing.
yes that'd be perfect! trying to optimize my device myself here too.
if there's no automated way could someone be so kind to post some instructions as to how?
found some stuff on the g1 forums but i'm not sure if it'll work...
Adevem said:
yes that'd be perfect! trying to optimize my device myself here too.
if there's no automated way could someone be so kind to post some instructions as to how?
found some stuff on the g1 forums but i'm not sure if it'll work...
Click to expand...
Click to collapse
+1, i want to do this myself too , and let devs do more imporant things
Could someone with more knowledge help us out with the basics?
+1 for me!! Now one has reply since last year, but proably there is some app that came out that does all this or nobody whant to doit any more...
So?? How to deodex/zipalign proper hand made roms??
PIRATA! said:
+1 for me!! Now one has reply since last year, but proably there is some app that came out that does all this or nobody whant to doit any more...
So?? How to deodex/zipalign proper hand made roms??
Click to expand...
Click to collapse
Quite an old topic, you'd be better off just creating a new thread.
Use this: http://forum.xda-developers.com/showthread.php?t=633246

[Q] .apk file editing

My knowledge about the android development is mediocre....I have Samsung galaxy tab 2 P3100.....I rooted that myself and i can flash different roms.....thats all i know about android....Any help will be appreciated...
Is there any way i can edit .apk file. I want to change the GUI of a particular application. The name of the application is 7notes with mazec.
the attachment contains 2 images.
1) This is how the original app looks like [red square]
2) I want the app to look like this...
I can send the .apk file or only instructions also will do...
Thanks in advance!!
Similarly can i edit the GUI of any application..
You can edit the .apk but you have to decompile with apktool and edit .xml files to accomplish this. I'm no programmer but I have learned how to decompile and recompile .apk and make minor adjustments. If you know how to write xml then it shouldn't be that difficult but first you should search the forums for how to use apktool.
Steeleio said:
You can edit the .apk but you have to decompile with apktool and edit .xml files to accomplish this. I'm no programmer but I have learned how to decompile and recompile .apk and make minor adjustments. If you know how to write xml then it shouldn't be that difficult but first you should search the forums for how to use apktool.
Click to expand...
Click to collapse
Thnx Steeleio....i will try that.....i dont know xml....i will search on that too.....can u suggest me some forums to learn apktool?
I have done THIS guide which should be of some help, but repositioning buttons and icons is something you'll need to Google for and experiment with.
AkshayGTP3100 said:
Thnx Steeleio....i will try that.....i dont know xml....i will search on that too.....can u suggest me some forums to learn apktool?
Click to expand...
Click to collapse
XperienceD said:
I have done THIS guide which should be of some help, but repositioning buttons and icons is something you'll need to Google for and experiment with.
Click to expand...
Click to collapse
Akshay, your welcome. The link Xperience provided seems to be an excellent guide to apk edits. Once you learn how to decompile and start relating the xml coding with how things are laid out in the UI, you should be able to figure out how to produce the output that you want. Good luck.
XperienceD said:
I have done THIS guide which should be of some help, but repositioning buttons and icons is something you'll need to Google for and experiment with.
Click to expand...
Click to collapse
I read your entire post and it was very helpful to get started.....I successfully decompiled the .apk using apktool.....found out where the .img images are.....now i guess i will have to edit the xml code related to the .imgs i want to be relocated....right?.... just point me in the right direction.... i can send you the apk file of the application....
AkshayGTP3100 said:
I read your entire post and it was very helpful to get started.....I successfully decompiled the .apk using apktool.....found out where the .img images are.....now i guess i will have to edit the xml code related to the .imgs i want to be relocated....right?.... just point me in the right direction.... i can send you the apk file of the application....
Click to expand...
Click to collapse
Great stuff. It is now about figuring out how to go about repositioning the images, but that task is something you're going to have to do I'm afraid as it can be a time consuming process, especially when learning, plus repositioning is above my skill set.
AkshayGTP3100 said:
I read your entire post and it was very helpful to get started.....I successfully decompiled the .apk using apktool.....found out where the .img images are.....now i guess i will have to edit the xml code related to the .imgs i want to be relocated....right?.... just point me in the right direction.... i can send you the apk file of the application....
Click to expand...
Click to collapse
Look in /res/layout/
Send me the APK, I'll see if I can guide you in the right direction.
DemonWav said:
Look in /res/layout/
Send me the APK, I'll see if I can guide you in the right direction.
Click to expand...
Click to collapse
Here is a link for the .apk file...... https://www.dropbox.com/sh/xnm0f7qax191raw/KZRRuJSsh-
I found the layout folder already.....i think the related xml code is in the /res/layout/keyboard_handwriting.xml file.... am i correct?
i dnt know anything about the xml.....mean while, i will try to find out how to relocate the layout for the buttons.....

Hide statusbar clock and battery, modify SystemUI.apk

This might be the completely the wrong place, but can someone do my a huge favor and modify my SystemUI.apk to remove the clock and possibly the battery. I have tried using baksmali and apktool but i must be doing something wrong, thanks.
Yep, it's the completely wrong place.
-> http://forum.xda-developers.com/showthread.php?t=2233991
Thanks guys, but thats the issue, I cant use Apktool.
nintendolinky said:
Thanks guys, but thats the issue, I cant use Apktool.
Click to expand...
Click to collapse
I can guide you on IRC
nintendolinky said:
This might be the completely the wrong place, but can someone do my a huge favor and modify my SystemUI.apk to remove the clock and possibly the battery. I have tried using baksmali and apktool but i must be doing something wrong, thanks.
Click to expand...
Click to collapse
Did you have a look there ? ( v-b-n thread)
http://forum.xda-developers.com/showthread.php?t=2233991
Cheers.
Yeah I looked at that, and i can decompile the apk, but i get errors, im thinking it might have something to do with, proprietary framework files i need, which i don't have. And thanks Mike1986, I will go on your IRC now.
Can anyone do me a huge favour, could someone please remove the clock and the battery from the statusbar. Looking at this Remove Clock it guides people through on how to do it, I cant as I seem to be unable too, can anyone help.
This isnt asking for help, this is asking for someone to do it for you which is different. If you dont wanna understand the process, you probably shouldnt be asking for the mod
Talk to mike on IRC to begin with
Make sure you install the framework files for the One (pull it from /system/framework) to apktool and THEN try decompiling it
Hi try this one.
Dont work mate, but thanks anyways.

Questions about theming

Hopefully some great themers here can help me in the right direction.
I've already spent some times reading about how to decompile, compile etc.
the one i tried is TMA (tickle my android), first i got several problems because he wouldn't decompile framework-res. I've found out that you need to install the semc....-res file before you can decompile framework-res and the other way the same.
so that's working great now, and it also recompiles and i can make a flashable zip but i keeps getting in bootloop.
i've found out that there's something special about sony's framework-res and these problems can happen but i can't seem to find the right way for the Xperia T to solve this problem.
could someone tell me how or direct me to guides that are suitable for the Xperia T?
I've tried theming several times and i always get stuck somewhere the process but i really want to learn!
thanks in advance for all the help..
Pollie81 said:
Hopefully some great themers here can help me in the right direction.
I've already spent some times reading about how to decompile, compile etc.
the one i tried is TMA (tickle my android), first i got several problems because he wouldn't decompile framework-res. I've found out that you need to install the semc....-res file before you can decompile framework-res and the other way the same.
so that's working great now, and it also recompiles and i can make a flashable zip but i keeps getting in bootloop.
i've found out that there's something special about sony's framework-res and these problems can happen but i can't seem to find the right way for the Xperia T to solve this problem.
could someone tell me how or direct me to guides that are suitable for the Xperia T?
I've tried theming several times and i always get stuck somewhere the process but i really want to learn!
thanks in advance for all the help..
Click to expand...
Click to collapse
http://bit.ly/16cojft
dully79 said:
http://bit.ly/16cojft
Click to expand...
Click to collapse
thanks for you'r reply, you seem to know much about theming but you'r being sarcastic..
i know how to use google but i've found several ways to deal with this problem so just wanted a push in the right direction, but i'm going to try the first hit from your google search..
Pollie81 said:
thanks for you'r reply, you seem to know much about theming but you'r being sarcastic..
i know how to use google but i've found several ways to deal with this problem so just wanted a push in the right direction, but i'm going to try the first hit from your google search..
Click to expand...
Click to collapse
If i was being funny, i would have told you to use the search function at the top of the page.
When your navigating through your phone it can be quite difficult to search, find and post links for people. Id rather just post a whole load of links in one go as it's quicker and easier.
I didnt have to respond to you, im busy repairing fridges and took a quick break, maybe i shouldnt have bothered. Or maybe i just wont respond anymore and keep what i know to myself.
dully79 said:
If i was being funny, i would have told you to use the search function at the top of the page.
When your navigating through your phone it can be quite difficult to search, find and post links for people. Id rather just post a whole load of links in one go as it's quicker and easier.
I didnt have to respond to you, im busy repairing fridges and took a quick break, maybe i shouldnt have bothered. Or maybe i just wont respond anymore and keep what i know to myself.
Click to expand...
Click to collapse
no, no, i'm sorry.. i thought you just wanted to link me to google for asking a "stupid" question.
my bad, please forgive me!
i really appreciate your help.
You need to do this first -> http://forum.xda-developers.com/showpost.php?p=41373722&postcount=2
After that you can do anything you want in your framework, wether theming or modding.
Edit: hehehe I guess dully nailed it already LoL, my given link is the same actually
Tapatalked from my bricked TX
thank you both, i took me some time and errors but i've finally got it working.
first i tried with stock framework to learn the decompiling/compiling signing process and it worked.
now i'm trying e few mods, my first one doesn't work (50% transparent statusbar), i did this mod thru TMA (which has this mod as option).
maybe google it and make the mod myself..
hmm second one doesn't work either, i looked thru google on how to remove the statusbar clock. it all went well(recompiling and flashing) but the clock is still there..
Pollie81 said:
no, no, i'm sorry.. i thought you just wanted to link me to google for asking a "stupid" question.
my bad, please forgive me!
i really appreciate your help.
Click to expand...
Click to collapse
No problem.

Need P7's stock lolipop apps

Guys I need lock phone apk icon
can someone up ?
thnx
There is no lock phone.apk in B805.. Where should it be located?!
l3Nni said:
There is no lock phone.apk in B805.. Where should it be located?!
Click to expand...
Click to collapse
In stock folder ..
When I updated P7 to unofficial lollipop it was there but I reverted quite while ago due to issues..but missing that feature u just tap it and phone is locked..cool
I assume it is not an app itself. Try to create a shortcut with e.g. quickshortcutmaker. It may take a while until you find it, but I believe it is possible.
No it's not there..
So, I looked it up for you. Under Lollipop it's located at 'screen lock' (I don't know how it is called in English). The point on the Top ('Display Sperre') is it.
but man i have mate7 and i said i need someone to extract it and pot it .. i am using 4.4.2 android..
so exctract the apk up it here if u can
In the last post you wrote that you have a P7?! You did not wrote anything about porting or extracting. First you wanted just the icon, then the shortcut and now.. Wtf!
Just describe a little more detailed what you want at the beginning and be more friendly. Sorry, but I really don't want to help you this way. I assume, you did not even look after what I described in the last post.
l3Nni said:
In the last post you wrote that you have a P7?! You did not wrote anything about porting or extracting. First you wanted just the icon, then the shortcut and now.. Wtf!
Just describe a little more detailed what you want at the beginning and be more friendly. Sorry, but I really don't want to help you this way. I assume, you did not even look after what I described in the last post.
Click to expand...
Click to collapse
Thnx fo your help anyway but u don't understand..
Just leave it..

Categories

Resources