[Q][Gingerbread] How to solve certificates mismatch when editing SystemUI.apk - Desire Q&A, Help & Troubleshooting

Hi,
first of all, allow me to apologize that I am posting this into dev section instead of Q&A, but IMHO this topic is strongly tied with actual development and its not just a simple newbie question. If you disagree, please contact a mod with a request to move this thread to Q&A. Thanks.
Now lets cut to the chase. I am trying to alter some images inside the SystemUI.apk that was introduced with GB, mainly I want a semi-transparent statusbar. Problem is, when I modify the resources, rebuild the apk file using apktool and sign it using testsign, the modified package gets ingnored by the system because of shared UID certificate mismatch. If I understand it correctly, I must find the package using the shared UID and resign it with the same certificate as the modified SystemUI.apk. Am I right? If so, how can I determine the package apk file based only on the knowledge of its shared UID? If I'm totally wrong, please, correct me.
Thanks a lot,
squrl

Ok, so it has been moved already. Curious, if I get any answers here

Bump.
10 char

Same problem here.

Hi viruz82 , maybe this will help http://android.modaco.com/content/general-discussion/329285/signing-roms-with-the-aosp-platform-cert-for-flibblesan/

Related

Question to app programmers

What is the reason behind naming apk "com.WORDHERE.APPNAMEHERE" is there a certain pattern to follow for this? Thank You!
Thread moved to Q&A.
It defines the namespace for your app. Usually it is a reversed version of your domain name. For instance, my domain is webosnerd.com, so my packages are com.webosnerd.appname. I think it's a Java thing.
Sent from my PC36100 using Tapatalk
ald3n3 said:
What is the reason behind naming apk "com.WORDHERE.APPNAMEHERE" is there a certain pattern to follow for this? Thank You!
Click to expand...
Click to collapse
It all has to do with the way the file system is set up. If u look in the apk after its recompiled in the smali files Ull see a set of folders...first one will be com then the folder inside of that will be the com.here then the folder inside of that will be next like this com.here.next. meaning if u were looking in on ur computer it would look like this com/here/next. Its a way of calling files
thanks for the help guys! i'm gearing myself to make my first android app... or maybe i'll start with themes. Thanks!
ald3n3 said:
What is the reason behind naming apk "com.WORDHERE.APPNAMEHERE" is there a certain pattern to follow for this? Thank You!
Click to expand...
Click to collapse
Yes, it's a Java development pattern / best practice. Android apps are written using the Java language so most developers follow Java best practices when they develop for Android.
As to WHY it's a best practice: The .apk is just a .zip file that makes it easy to move the app around. The Android Market only has to keep track of one .apk file instead of the thousand of files that actually make up the application. Once the .apk file is on the device it is inflated back into a set of files/folders. When it does the unzipping, dots are replaced with /'s and we end up with something like:
/com/SuttCo/AppNumberOne/FolderA/file.jpg
/com/SuttCo/AppNumberOne/FolderB/file.jpg
/com/SuttCo/AppNumberOne/FolderC/file.jpg
/com/SuttCo/AppNumberTwo/FolderA/file.jpg
/com/SuttCo/AppNumberTwo/FolderB/file.jpg
As you can see... both SuttCo apps share the /com/SuttCo/ directory.
tl; dr; It's so things stay organized.

[Q] Sense Rotation

Hi everybody, is there someone who could help to find some easy way to make HTC Sense rotate? I found some threads where it was not fully understandable described for me. Unpack Rosie.apk, change parameters in Androidmanifest.xml.
How can I edit xml file of this kind? I tried notepad, Wordpad, nothing works. Will it work if I pack edited file back to apk?
Tell me, do you feel that your question is related to ROM development?
Use a launcher.
*insert sig here*
cdps said:
Hi everybody, is there someone who could help to find some easy way to make HTC Sense rotate? I found some threads where it was not fully understandable described for me. Unpack Rosie.apk, change parameters in Androidmanifest.xml.
How can I edit xml file of this kind? I tried notepad, Wordpad, nothing works. Will it work if I pack edited file back to apk?
Click to expand...
Click to collapse
Question from 2 posts above stands and is right on money. Having said that, have you tried posting in the right section of the forum (Desire Q&A) or using notepad++ for editing?! Don't answer here, this thread needs to be closed.
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums and Read THIS
Moving to Q&A

Trying to Decompile, not working... please help

Hello,
Im kind of new to developing for android....
But I did a bit of developing on blackberry in the previous years...
Ive been working on some soft buttons. I designed some buttons in a different thread that work great. But I wanted to edit my SystemUI.apk myself (navagation_bar.xml) so that I could edit a search soft key and the order of the soft key buttons myself....
I can't for the life of me, get this thing to decompile. If you open the navagation_bar.xml from within the SystemUI.apk (even in notepad ++), you get a bunch of random characters. I am assuming this is because I have to actually decompile the SystemUI.apk first.
- so I have downloaded apktools,
- I have it all setup correctly following the instructions for decompiling posted here: http://rootzwiki.com/topic/1836-guide-how-to-decompile-an-apk-updated-w-guide/
I used the framework-res.apk of the rom that I am currently using (Android Rev 2.1.2)
And then I place the SystemUI.apk in the folder to be modded, and go ahead and run the script, try an decompile it. And every single time I try it says "an error occurred, please check the log"
I check the log and nothing there makes any sense to me....
It just says an error occurred in "main" multiple resources....
and then it lists a whole bunch of (unkown source)
Super frustrated here, because I have found some coding and studied some coding and I know how to edit the navigation_bar.xml to my likings.... but I cant get the damn SystemUI.apk to decompile....
Can someone please help me here?
and ideas on what might be going wrong?
Thanks a lot
Replace the files in the "other" folder with these.
http://db.tt/1Cii8tGa
The guide you are using will only work for samsung phones running touchwhiz. You'll need to use the framework specific to the ROM you are working on.
You should be able to find all the necessary info in Brut.all's thread, although Ill admit it did take me a little while to get it all figured out myself.
[UTIL][08.12.11] Apktool v1.4.3 - a tool for reengineering apk files

A plea for all framework modding experts

Hey everyone,i've just started to learn more about the framework and stuff(to give back to this awesome community) by decompiling it and looking at the xmls and pngs within and one thing i found was really obvious that there is no bible of information that us new comers can consult for our questions
I would like to request all the brilliant minds here on xda to help me with a few things if this thread catches their attention.It would educate me and everyone else if our brilliant devs can share their info.I would like to start with a few questions and i really hope this thread takes off as the real reason we are all here is to learn
Questions:
1.The /res/anim folder in the framework has all the animations of the rom if i am not mistaken.But if i overwrite the xml files within with my own collection of xmls there are some files that are not overwritten and hence some animations of the rom donot change.The question here is this.How do find out what xml stands for what animation.Htc has removed the home button animation and i would be very grateful if someone can help me find it.Also app opening animations are still sense and i can't tell which xml to edit to find which one is the app opening one.
2.Recompiling the framework through apk-tool is giving me a lot of errors even when i don't modify anything.I'm using a custom rom framework so maybe thats the cause but still it should compile right.
3.Is it possible to decompile the framework in the phone(through an app i mean),add stuff to it,and then recompile it? Or is my only option to open it as a zip file and just replace and delete xmls .
I will update the thread with more questions and request anyone who has any info to please share it so we can all learn
Long live xda

Adding an apk to SecSettings.apk

I've run through several how-to's and I still can't get an app to compile after I make the changes to add something to the settings app. I make the changes to strings xml and settings_header but then it won't compile. The reason for it not compiling seems to be an issue with the android manifest xml but in all I have done I do not alter it (or maybe I need to)
Anyone have an idea ? Thank you !
hednik said:
I've run through several how-to's and I still can't get an app to compile after I make the changes to add something to the settings app. I make the changes to strings xml and settings_header but then it won't compile. The reason for it not compiling seems to be an issue with the android manifest xml but in all I have done I do not alter it (or maybe I need to)
Anyone have an idea ? Thank you !
Click to expand...
Click to collapse
Most devs don't cruise the Q&A section, so you will probably get more help here. It will also benefit other members having it all in one place.
Some more info will help like what app you are trying to add.
upndwn4par said:
Most devs don't cruise the Q&A section, so you will probably get more help here. It will also benefit other members having it all in one place.
Some more info will help like what app you are trying to add.
Click to expand...
Click to collapse
Thank you. It's a bit unclear the best place to ask questions not related to flashing or someone else's ROM. That and I was getting pretty mad and now that
I read my above question,it is so vague and rambling.
I posted my question over there.
http://forum.xda-developers.com/showpost.php?p=42007405&postcount=41

Categories

Resources