Need help themeing.... - Android Q&A, Help & Troubleshooting

This is my first attempt to theme my pico...
I have decompiled the systemui.apk of jaggy rom
replaced some status bar icons with the ones i wanted
and then recompiled it....
(I used apktool for these operations and offcourse after installing the necessary framework)
no errors till now...
but when i replace the old systemui.apk with the new one ..... the task bar just dissappeared
tried booting into recovery and fix permissions still no luck...
then i signed the apk(didn't sign earlier as i read signing was not necessary for system apk) and tried again still no luck....
but when the old apk was restored and the phone reboote and permissions fixed the status bar was restored (i mean the old state)
all i did was replace some status bar icons but when rebuilt the apk was about 300kb smaller
did this just to get the hang of themeing.....
i have attached the original and modified systemui.apk
can anyone enlighten me what went wrong...
is it the way i replaced the icons or the way i compiled and recompiled the apks....
....thank you in advance

See the second link in my signature, seems like you're getting the recompiling bit wrong.

Try to decompile and recompile with Tingkle my android, it's handy tool for mod theme.
Sent from my HS-E910 using Tapatalk 2

Thanx people I managed to do it without decompiling
Opened the apk using 7 zip and then replacing the necessary files.....
And it worked
Sent from my HTC Explorer A310e using xda app-developers app

Related

[Q] Implement Theme in Rom

Hello!
I'm trying to make my own Rom right now. With dsixda's Kitchen it isn't very hard to do so I thought I'd just give it a try. I'm taking a rooted official Update (Version: 2.10.405.2) as my base. Adding busybox runparts, the /data/app functionality, a2sd+, the custom bootanimation functionality etc. isn't a problem. Removing some apps like Maps, Facebook, Teeter (and so on) and adding some like Rom Manager, Neocore or Quadrant isn't a problem, too. But if I want to implement a theme like the Carbon Espresso Mod or a theme I made with the UOT Kitchen I'm getting bootloops at booting the phone. Here's what I do: I unzip the folder (for example a theme made with the UOT Kitchen) and I copy over the framework-res.apk from the unzipped folder to my Working Folder of the Kitchen (to system/framework) and I overwrite the original framework-res.apk.
And NO: I didn't choose a battery mod or a bootanimation in the UOT Kitchen....
Hope you guys can help me
I might be wrong but doesn't the new file have to be signed? I know there is a signing option in the kitchen.
Sent from my PC36100 using Tapatalk
It's a system .apk so it doesn't have to be signed.
I can't shed any light on the subject, but here's a bump.
Are you replacing the whole "framework-res.apk" file? If so then you will need to resign your entire ROM. Why? When you change a system file ("framework-res.apk", "com.htc.framework.apk", "twframework-res", "rosie.apk", etc.) it no longer has a matching "signature" for all the files it serves images to. Plug your phone into your computer and open up "ddms" in your android_sdk > tools folder to watch what happens when the phone boots up.
A workaround (The way I do it, it's more fun IMHO) is to open up your .apk files in 7zip (or if you're on a mac BetterZip) and add the images from the themed .apk to your stock .apk. This way makes it so your original .apk has the same signature as your other system files yet has the new images from the other files that you wanted. I've had a lot of luck with this method. I don't know if it will still work if you change any .xml files as I have not messed with those yet.
I've subscribed to this thread so if you have any questions post back here or you can PM me if you want. I'm on XDA all day, every day so I'll try to help as much as I can.
Thanks for all the answers! Especially to you, mbobino. Is there a way to sign the whole Rom new? When I make my Rom at the End, the Kitchen signs it automatically, doesn't it? The idea with the images is very good, but if I want to implement a theme like Carbon Espresso it isn't that easy, 'cause Carbon Espresso isn't just a few images. There are several .xml's etc.
The reason you boot loop is mis matched resource ID's in the public.xml file. If you decompile the framework using apktool after adding your images using an archiver then recompile apktool will update the public file for you which saves you from pulling ID''s for every image. I have a video tutorial of how to set up apktool and decompile framework in my Rom thread. Changing images in app apk's won't cause you to boot loop just messing with the framework will.
Sent from my ADR6300 using XDA App
DomiKamp said:
Thanks for all the answers! Especially to you, mbobino. Is there a way to sign the whole Rom new? When I make my Rom at the End, the Kitchen signs it automatically, doesn't it? The idea with the images is very good, but if I want to implement a theme like Carbon Espresso it isn't that easy, 'cause Carbon Espresso isn't just a few images. There are several .xml's etc.
Click to expand...
Click to collapse
The kitchen signs the .zip that you flash when you build it. It does not sign any .apks for you on its own. However, there is an option to sign .apks within the kitchen.
In my opinion, taking all of the images and figuring out how it all works is fun. I feel like I've already learned quite a bit from just digging around and moving files around.
As for the .xml files, you can decompile the .apk and edit them and then recompile the .apk. I'm actually looking into this today. It sounds like some work but hopefully I'll get it figured out.
Sounds like fun indeed So, I'll just have to try it. Where can I find the "Settings" for the Notification Bar? Thanks
The variois status*.xml files in the res/layout folder of the framework-res.apk and the status*.smali files in the services.jar.
What? If I want to implement a Theme made with the UOT Kitchen (without battery) I should just copy over those files to my existing res-framework.apk OR copy over the whole res-framework.apk (the new one) and sign it?
EDIT: Just tried it with a theme from the UOT Kitchen and it worked perfectly. I've just signed the res-framework.apk and the htc.com.resources.apk (or whatever) in the Kitchen, flashed it on my Phone and it just worked like a Charm. But I have got a 50% Transparent Notification Bar and all the system icons (Battery and time/date) are still black and not transparent! Has anyone got a idea where to change this? (.xml or whatever)...And does anyone know where I can find the HTC Wallpapers? I want to change them a little bit
HeyItsLou said:
The reason you boot loop is mis matched resource ID's in the public.xml file. If you decompile the framework using apktool after adding your images using an archiver then recompile apktool will update the public file for you which saves you from pulling ID''s for every image. I have a video tutorial of how to set up apktool and decompile framework in my Rom thread. Changing images in app apk's won't cause you to boot loop just messing with the framework will.
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
HeyItsLou, I looked up your ROM thread but couldn't locate the video tutorial.... do you mind providing the url? Specifically, I am trying to add to the list of wallpapers in a ROM. (I have setup apktool but not sure where/which folder to add my wallpapers in Framework-res.apk Launcher.apk before recompiling/signing). Thanks.
You COULD use the Theme Porter by daneshm90. It will only port the PNG s for it so things like clock colour n stuff will be lost, but it will get you alot closer...
http://forum.xda-developers.com/showthread.php?t=737526
Sent from my HTC Hero using XDA App
Thanks! But like I've written before in my Edit, I made it. The bigger theme (Carbon Espresso) wasn't a problem, too. I just had to sign the .apk's in system/app and system/framework (the kitchen doesn't do it by itself. You have to choose the option to sign a single .apk and then look, where the system/framework .apk's are...). Works great now!
DomiKamp said:
Thanks! But like I've written before in my Edit, I made it. The bigger theme (Carbon Espresso) wasn't a problem, too. I just had to sign the .apk's in system/app and system/framework (the kitchen doesn't do it by itself. You have to choose the option to sign a single .apk and then look, where the system/framework .apk's are...). Works great now!
Click to expand...
Click to collapse
Isnt that what I said in the 2nd post -.- lol jk. Glad you got it working!
Yes! And that's why I tried it. And it worked! Thanks Husker and, of course, everybody else!
Glad you got it working. Welcome to the development side of android!
Sent from my PC36100 using XDA App
I don't sign system files or apps and apkmanager among other threads I've read say not to. Im on a rooted backflip. I find I only have to sign third party apps to install.
Why do you have to sign YOUR files?
Sorry for answering that late. Had a few things to do, so I wasn't online very often
If you want to cook an App into your Rom (NeoCore for example), then you don't have to sign it. You can just copy it into data/app. But if you want to change the whole framework-res.apk of the Rom, you have to sign it. 'Cause if you don't sign it, you'll get a Bootloop. The framework-res.apk is a very important part of the Rom, so it has to "fit" to the others. There are some ID's which have to match. Otherwise it won't work. That's how I understood it
Another Question: Has anybody got an Idea where to change the things that are coming, when you first start the phone with a new Rom (the "installation" of the Rom)? I wan't to write: "Welcome to DomiKamp's Rom!" Or something like that...
bestialbub said:
I don't sign system files or apps and apkmanager among other threads I've read say not to. Im on a rooted backflip. I find I only have to sign third party apps to install.
Why do you have to sign YOUR files?
Click to expand...
Click to collapse
I was curious about this too. I always edit the framework-res of any ROM I flash using a custom set of images I have and have never signed the apk afterwards and it has always worked. Maybe cause I'm only replacing images? I usually do this with framework-res and twframework-res and they both can sometimes grow by 1MB or more. Just my experience.
Sent from my SAMSUNG-SGH-I897 using XDA App
DomiKamp said:
Sorry for answering that late. Had a few things to do, so I wasn't online very often
If you want to cook an App into your Rom (NeoCore for example), then you don't have to sign it. You can just copy it into data/app. But if you want to change the whole framework-res.apk of the Rom, you have to sign it. 'Cause if you don't sign it, you'll get a Bootloop. The framework-res.apk is a very important part of the Rom, so it has to "fit" to the others. There are some ID's which have to match. Otherwise it won't work. That's how I understood it
Another Question: Has anybody got an Idea where to change the things that are coming, when you first start the phone with a new Rom (the "installation" of the Rom)? I wan't to write: "Welcome to DomiKamp's Rom!" Or something like that...
Click to expand...
Click to collapse
I think that in order to do the "welcome to" thing you'll have to edit the update-script file. I'm not 100% on it though. Look at a cm Rom and see what all is in there.
Sent from my HTC Evo 4G using XDA App

Status Bar Force Closes

I'm trying to do some editing to the status_bar.xml, but anything I do causes force closes and no status bar.
I'm pulling SystemUI.apk via ADB, decompiling with APK Multi-Tool, making a change in the status_bar.xml as small as changing the background color of it, compiling with APK Multi-Tools, and pushing with ADB. Every time, it just disappears and starts spam force closing.
Any ideas?
EDIT: Changing ANYTHING from SystemUI.apk seems to cause force closes.
Muffunz said:
I'm trying to do some editing to the status_bar.xml, but anything I do causes force closes and no status bar.
I'm pulling SystemUI.apk via ADB, decompiling with APK Multi-Tool, making a change in the status_bar.xml as small as changing the background color of it, compiling with APK Multi-Tools, and pushing with ADB. Every time, it just disappears and starts spam force closing.
Any ideas?
EDIT: Changing ANYTHING from SystemUI.apk seems to cause force closes.
Click to expand...
Click to collapse
What rom are you running? How are you installing the modded apk? What exactly are you trying to change? Are you making multiple mods at once? If you're modding any xml within the apk and it fc's when you install it, it's either not compiling properly or the changes you made aren't kosher. Try using apk manager with the latest apk tool to decompile and compile and see if that helps.
Also, if all you wanna do is change the status bar background color, just decompile the systemui.apk, edit statusbar_background.9.png (without breaking the pixel guides) recompile the apk, and instead of flashing the recompiled apk, extract that .png and drop it into the stock apk and flash that.
10tonhammr said:
What rom are you running? How are you installing the modded apk? What exactly are you trying to change? Are you making multiple mods at once? If you're modding any xml within the apk and it fc's when you install it, it's either not compiling properly or the changes you made aren't kosher. Try using apk manager with the latest apk tool to decompile and compile and see if that helps.
Also, if all you wanna do is change the status bar background color, just decompile the systemui.apk, edit statusbar_background.9.png (without breaking the pixel guides) recompile the apk, and instead of flashing the recompiled apk, extract that .png and drop it into the stock apk and flash that.
Click to expand...
Click to collapse
I'm on UnNamed, and I'm pushing the APKs via ADB in command prompt. I'm trying to change the color of the status bar right now, but I'd also like to change the icons. I did what you suggested, but it didn't change anything. Bar is still there and no force closes, but it's still the same color even though the 9.png file is a different color.
Muffunz said:
I'm on UnNamed, and I'm pushing the APKs via ADB in command prompt. I'm trying to change the color of the status bar right now, but I'd also like to change the icons. I did what you suggested, but it didn't change anything. Bar is still there and no force closes, but it's still the same color even though the 9.png file is a different color.
Click to expand...
Click to collapse
Do this, the compiled systemui that's giving you fc open it and the unmodified version. Drag nine patch image you edited to the unedited systemui
Sent from my SGH-I777 using Tapatalk
10tonhammr said:
What rom are you running? How are you installing the modded apk? What exactly are you trying to change? Are you making multiple mods at once? If you're modding any xml within the apk and it fc's when you install it, it's either not compiling properly or the changes you made aren't kosher. Try using apk manager with the latest apk tool to decompile and compile and see if that helps.
Also, if all you wanna do is change the status bar background color, just decompile the systemui.apk, edit statusbar_background.9.png (without breaking the pixel guides) recompile the apk, and instead of flashing the recompiled apk, extract that .png and drop it into the stock apk and flash that.
Click to expand...
Click to collapse
jivy26 said:
Do this, the compiled systemui that's giving you fc open it and the unmodified version. Drag nine patch image you edited to the unedited systemui
Sent from my SGH-I777 using Tapatalk
Click to expand...
Click to collapse
I tried that. Nothing happened, the status bar didn't change.
Muffunz said:
I tried that. Nothing happened, the status bar didn't change.
Click to expand...
Click to collapse
Don't adb push it. Just flash it. Download winrar (google it). Download one of my themes (or any theme) for unnamed, delete all the the folders except "system" and "Meta". Open system folder and delete eveything except "apps" folder. Open apps folder and delete everything. Add your modded systemui.apk to the apps folder and flash in cwm.
Its MUCH MUCH easier to use APK Manager and have it push it as an unsigned system app. After you push it, run an "adb shell killall system_server" <-- does a quick system reset, and you can test it out.
I'm not sure what changed but I finally got APK Manager set up to be able to push things itself, and I finally got a change to go through! Thanks for the help guys.

modifying system APK's for the atrix?

hey all, i'm starting to get into modding my atrix and i have some questions about modifying the system APK's. i've already deodexed /system/app and /system/framework with xUltimate. i'm using APK Manager in linux to decompile the APK's that i want to mod.
the problem comes when i compile the new APK and upload it to /system/app. the stock APK's are signed seemingly with a specific signature that the phone is looking for. APK Manager says to not sign the APK's that you intend to install to /system, but if you do choose to sign it, the certs that are used are not what the atrix is expecting. when i look for errors in logcat, its indicating that the package changed and that its trying to look for the matching cert within /data/secure.
how does one modify these system APK's, and keep the original signature intact? it looks like the manifest contains a sha1-digest signature of each file, which makes just copying/pasting the META-INF into the new APK not an option.
thanks in advance!
What I do is decompile to change xml's etc and then recompile without signing and then just drag the edited files from the new APK to the old one.
Sent from my MB860 using XDA
so does that mean it doesn't really matter that the sha1 signatures of the changed files dont get updated in the manifest?
is there not an agreed-upon method to do this that doesn't seem so "hacky" ?
Sent from my MB860 using XDA
I'm not sure mate. That's the way I found out how to do it and I've done translations and a few themes and framework-res systemui and settings have worked fine doing it the way I do it.
Sent from my MB860 using XDA

Apktool and systemui no status bar??

Ok so i have had NO LUCK whatsoever trying to get this to work. My ROM for the Note 2 is a TW base (people want the S-Pen functions). And they like the AOSP feel so i decided to try and make a ROM that is AOSP themed. Well i have the launcher and a few AOSP themed apps such as the messaging app.
The flashers were very satisfied with my work so far. But they wanted an AOSP themed status bar. Meaning some AOSP battery images wifi and so on. I decided just just replace the EXACT images. I used a cm10 ROM to get the pngs. I also did use the newest Apktool to do it. I did all the framework installation. I decompiled both and started transfering. Here is what i did. I went to the drawable-xhdpi folder in both ROMs. They had pretty much identical png names. But the icons were different (one being the blue theme) so i took the blue icons (battery and wifi) and transfered them to my rom. I made sure that only the pngs with the same names were transfered. so there wasnt any issue compiling.
Next i compiled the APK file.
Then i used my backup systemui.apk file to transfer the META-INF folder to the new one using 7-zip.
Then i went and signed it and used dsixda's android kitchen to zipalign it. Then after all that i pulled that apk from the zipaligned folder and put it on my phone's sd card. I have the root explorer app. I move it to my /system/app folder. It moved successfully. Then i reboot and when it comes back up i dont have a status bar. And my wallpaper is black for a little while and then goes back to the feather thing.
I have tried signing and not signing. Zipaligning and not zipaligning.
I am stuck here. I am really wanting the AOSP themed icons in the status bar. Any help will be greatly appreciated!
Try this:
Decompile, mod and compile your apk as usual (don't sign or zipalign the file).
Open your fresh compiled apk, and your original apk using 7-zip (I haven't tested with Winrar, try if you wish).
Drag and drop all the files from your compiled apk to the original one, EXCEPT the AndroidManifest.xml.
Push this new cross-modded apk to your phone and reboot.
RoberGalarga said:
Try this:
Decompile, mod and compile your apk as usual (don't sign or zipalign the file).
Click to expand...
Click to collapse
Always zipalign.
XperienceD said:
Always zipalign.
Click to expand...
Click to collapse
I use dsixdas kitchen to zipalign my apks. Is there another tool I can use for just zipalign?
Droid Premium said:
Is there another tool I can use for just zipalign?
Click to expand...
Click to collapse
Yes, apk multi-tool.
RoberGalarga said:
Yes, apk multi-tool.
Click to expand...
Click to collapse
I appreciate it. Thanks sooo much!
Give me a hand please
RoberGalarga said:
Try this:
Decompile, mod and compile your apk as usual (don't sign or zipalign the file).
Open your fresh compiled apk, and your original apk using 7-zip (I haven't tested with Winrar, try if you wish).
Drag and drop all the files from your compiled apk to the original one, EXCEPT the AndroidManifest.xml.
Push this new cross-modded apk to your phone and reboot.
Click to expand...
Click to collapse
I am modding my status bar 2.3.4 and i want to add power toggles to it
i got a systemui.apk from another phone ( xperia arc 2.3.4) which has the same status bar like i do ( droid 3 )
when i switch systemui.apk's between them i get a FC and then i reboot and i get no status bar .
is that because it is from a different phone ( i looks exactly like my status bar ) or it might be a signature problem from android xml ?
Dorin21 said:
I am modding my status bar 2.3.4 and i want to add power toggles to it
i got a systemui.apk from another phone ( xperia arc 2.3.4) which has the same status bar like i do ( droid 3 )
when i switch systemui.apk's between them i get a FC and then i reboot and i get no status bar .
is that because it is from a different phone ( i looks exactly like my status bar ) or it might be a signature problem from android xml ?
Click to expand...
Click to collapse
You can't do that. Just because they look the same doesn't mean the coding is the same. You are gonna have to add all the missing coding from one that has it to yours. Not an easy task at all
Wayne Tech Nexus
zelendel said:
You can't do that. Just because they look the same doesn't mean the coding is the same. You are gonna have to add all the missing coding from one that has it to yours. Not an easy task at all
Wayne Tech Nexus
Click to expand...
Click to collapse
I even tried to copy a status bar from a 2.3.4 rom ( droid 3 ) to my own build ( 2.3.4 droid 3 ) and did not work
I somehow need to edit the status bar, the interface, so that I create the space needed by my toggles and then add them
And after that I need to create a command file so when I click on wifi to turn it off or on for example, right?
Do you know any place for learning coding or some tutorial that could help me in a way or another?
Dorin21 said:
I even tried to copy a status bar from a 2.3.4 rom ( droid 3 ) to my own build ( 2.3.4 droid 3 ) and did not work
I somehow need to edit the status bar, the interface, so that I create the space needed by my toggles and then add them
And after that I need to create a command file so when I click on wifi to turn it off or on for example, right?
Do you know any place for learning coding or some tutorial that could help me in a way or another?
Click to expand...
Click to collapse
You will need to use a decompiling tool such as APKtool. Then transfer the PNG files from the xperia systemui to the droid3 systemui. Make sure png file names are exactly the same on both systemui's or just rename them to match the droid3 systemui. Also make sure if you have lets say 400 png files in one folder make sure you have 400 at the end of your modding or you will have compiling issues and force closes!
Then use 7-zip to transfer the meta-inf folder to the modded apk file. Zipalign and boom you are done!
Droid Premium said:
You will need to use a decompiling tool such as APKtool. Then transfer the PNG files from the xperia systemui to the droid3 systemui. Make sure png file names are exactly the same on both systemui's or just rename them to match the droid3 systemui. Also make sure if you have lets say 400 png files in one folder make sure you have 400 at the end of your modding or you will have compiling issues and force closes!
Then use 7-zip to transfer the meta-inf folder to the modded apk file. Zipalign and boom you are done!
Click to expand...
Click to collapse
So if i understood corectly i'll have to do this
1. Decompile both apks with apktool .
2. Copy all the stuff from framework-res from xperia to my systemui ( or just for the status bar toggles )
3. Transfer meta-inf .
Question : if i transfer meta-inf folder i will copy and replace the original right ? And what is the meta inf actually ? (The command lines for each power toggle ? ( i mean what to do if i click wifi for example ☠)
4. Zipalign .
5. Replace the file in my unzipped rom ( should i unzip it normally or with apktool ) and then zip it and flash it
Dorin21 said:
So if i understood corectly i'll have to do this
1. Decompile both apks with apktool .
2. Copy all the stuff from framework-res from xperia to my systemui ( or just for the status bar toggles )
3. Transfer meta-inf .
Question : if i transfer meta-inf folder i will copy and replace the original right ? And what is the meta inf actually ? (The command lines for each power toggle ? ( i mean what to do if i click wifi for example ☠)
4. Zipalign .
5. Replace the file in my unzipped rom ( should i unzip it normally or with apktool ) and then zip it and flash it
Click to expand...
Click to collapse
Its a complicated process. It's hard to explain. Check to see if your device supports VRTheme. Go to the Themes section for your device and see if anybody has a theme that uses that system. If so that would make your life SOOO much easier!!
I want to edit my status bar style to iOS style by editing systemui.apk file ..how to do that tell me bro

[Q&A][SOLVED]Is there a way to edit AndroidManifest.xml?

Question:
I'm trying to add toggles in statusbar editing SystemUI.apk following this porting guide. I ported toggle on ICS but to do this in JB I have to add two lines in AndroidManifest.xml.
Once I edited AndroidManifest.xml when I recompile SystemUI.apk with edited file I corrupt original signature and at boot OS do not load SystemUI.apk, so it do not work in the rom, any help?
It can be done because an user in this thread done it but i'm unable to do.
Answer:
Ok, after more then an year i answered at my question by myself.
Editing the AndroidManifest.xml we will corrupt the signature and for this the edited apk will not be loaded at system boot. The proposed solutions are disable the signature check in the services.jar or resign every apk in the rom but these are not the only solutions.
After editing the AndroidManifest.xml in a system's apk we can check the edited apk's signature in .apk/META-INF/CERT.RSA (keytool -printcert -v -file .apk/META-INF/CERT.RSA) and re-sign every system apk that has its same signature.
Here a detailed article on my blog.
I am already using the Brazilian version OTA Blur_Version.982.124.17.XT910.Brasil.en.BR which when I compile the thumbs HR GPS and Mobile Data
My problem is that I think for most CDMA roms present here at XDA, this conflicts with something in the GSM file here.
So far I have not found too that conflict or error.
All help is welcome.
Mentor.37 said:
I'm trying to add toggles in statusbar editing SystemUI.apk following this porting guide. I ported toggle on ICS but to do this in JB I have to add two lines in AndroidManifest.xml.
Once I edited AndroidManifest.xml when I recompile SystemUI.apk with editet file I corrupt original signature and at boot OS do not load SystemUI.apk, so it do not work in the rom, any help?
It can be done because an user in this thread done it but i'm unable to do.
Click to expand...
Click to collapse
Correct. It will probably only boot on your running rom, not in a ROM.zip. Possibly a few options..
1. Edit your services.jar to disable system signature checks.. Google or search xda for it - not sure of effectiveness or compatibility with JB.
2. Re-sign all apks (maybe jars too? Not certain) - the ones that are not updated in Play Store (or those with matching signature dates in the apks) - never actually did it, but have heard of others using this method.
3. This one's a guess, and I just thought of it.. Switch out the SystemUI after install and first boot with a script or zip.. Might not even work though.. Not sure.
4. Build from source.
5. Figure out a way to do it without editing the AndroidManifest..
Sorry, never tried to do the toggle mod on JB yet..
Sent from my MB865 using xda app-developers app
I edited AndroidManifest.xml and if I use the original signature, it will work provided the ROM has booted at least once...but I don't like that...so I made a script which re-signs all system and framework apks (except gapps stuff or those published in market)...it will now then work right away after a clean flash...
alteredlikeness said:
Correct. It will probably only boot on your running rom, not in a ROM.zip. Possibly a few options..
1. Edit your services.jar to disable system signature checks.. Google or search xda for it - not sure of effectiveness or compatibility with JB.
2. Re-sign all apks (maybe jars too? Not certain) - the ones that are not updated in Play Store (or those with matching signature dates in the apks) - never actually did it, but have heard of others using this method.
3. This one's a guess, and I just thought of it.. Switch out the SystemUI after install and first boot with a script or zip.. Might not even work though.. Not sure.
4. Build from source.
5. Figure out a way to do it without editing the AndroidManifest..
Sorry, never tried to do the toggle mod on JB yet..
Sent from my MB865 using xda app-developers app
Click to expand...
Click to collapse
I tried on my running rom, i tested it but at boot time os do not load it or it crashs.
Can you explain me the step 3?
Ryuinferno said:
I edited AndroidManifest.xml and if I use the original signature, it will work provided the ROM has booted at least once...but I don't like that...so I made a script which re-signs all system and framework apks (except gapps stuff or those published in market)...it will now then work right away after a clean flash...
Click to expand...
Click to collapse
I know this but i would not re-sign all system and framework apks.
I would do as this user did.
Err...I don't get it... what he did? It's about odexed mods...
He modded too SystemUI.apk to add toggles in statusbar following the porting guide that i posted above and to do this on JB he added in the AndroidManifest.xml this two lines:
<uses-permission android:name="android.permission.WRITE_SECURE_SETT INGS" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
without lose original signature.
Yea... that's what I meant... Edit AndroidManifest.xml and retain original sig...but you must apply it AFTER at least after a single boot...or else, factory reset and the statusbar will be gone...
I did this.
I edited AndroidManifest.xml retaining original signature and i applied it after a lot of boot with original SystemUI.apk but OS wont load edited SystemUI.apk; If i try resign it OS loads SystemUI bat it crashs.
Hmm...you decompiled and did the edits, then recompile right? And kept the original META-INF folder? Sometimes, it might be caused by other mods you have done in conjunction...
Mentor.37 said:
I did this.
I edited AndroidManifest.xml retaining original signature and i applied it after a lot of boot with original SystemUI.apk but OS wont load edited SystemUI.apk; If i try resign it OS loads SystemUI bat it crashs.
Click to expand...
Click to collapse
Are you sure your edits you made to the SystemUI are working?
Like, did you flash the SystemUI after adding the toggle mod, but before editing the AndroidManifest (so you would have the two broken toggles) - or it has never booted with your edited apk?
Sent from my MB865 using xda app-developers app
Ryuinferno said:
Hmm...you decompiled and did the edits, then recompile right? And kept the original META-INF folder? Sometimes, it might be caused by other mods you have done in conjunction...
Click to expand...
Click to collapse
Yes, i kept the original META-INF folder.
I will retry tomorrow.
alteredlikeness said:
Are you sure your edits you made to the SystemUI are working?
Like, did you flash the SystemUI after adding the toggle mod, but before editing the AndroidManifest (so you would have the two broken toggles) - or it has never booted with your edited apk?
Sent from my MB865 using xda app-developers app
Click to expand...
Click to collapse
Yes, I'm sure my edits are working because i tested SystemUI.apk with only toggle mod without AndroidManifest.xml edited and it works, i have toggles but SystemUI force close when I use gps and data toggles so to solve this problem i have to edit AndroidManifest.xml .
Mentor.37 said:
Yes, I'm sure my edits are working because i tested SystemUI.apk with only toggle mod without AndroidManifest.xml edited and it works, i have toggles but SystemUI force close when I use gps and data toggles so to solve this problem i have to edit AndroidManifest.xml .
Click to expand...
Click to collapse
Are you making a whole ROM.zip?
Or.. You just want to make flashable zip packages with the mods?
If a ROM, then sounds like you should try this:
Ryuinferno said:
I edited AndroidManifest.xml and if I use the original signature, it will work provided the ROM has booted at least once...but I don't like that...so I made a script which re-signs all system and framework apks (except gapps stuff or those published in market)...it will now then work right away after a clean flash...
Click to expand...
Click to collapse
Great idea, btw..
Sent from my MB865 using xda app-developers app
what i have to try? to resign all system app?
The big problem is that you do not edit the Manifest because FC and the GPS data, since when the reissues manifest the systemui for working.
Provisionally decided to give this way:
In quickpanel_quick_settings Layout folder, removed the GPS and DATA lines and rearranged the order of the toggles then went on QuickPanel smali folder and deleted the smalis working with the same, recompiled and replace the modified files inside the original apk using 7zip .
Most wanted GPS and data working.
Hugs.
alteredlikeness said:
1. Edit your services.jar to disable system signature checks.. Google or search xda for it - not sure of effectiveness or compatibility with JB.
Click to expand...
Click to collapse
This is working very well on JB
Here's a little tutorial: http://forum.xda-developers.com/showthread.php?t=1698352 :laugh:
niaboc79 said:
This is working very well on JB
Here's a little tutorial: http://forum.xda-developers.com/showthread.php?t=1698352 :laugh:
Click to expand...
Click to collapse
Thanks buddy,
yes I am now with 8 shortcuts on the status bar :good:
Why take such a pain
Just use XPOSED framework mods
Sent from my GT-S5302 using Tapatalk 2
Mentor.37 said:
what i have to try? to resign all system app?
Click to expand...
Click to collapse
Have you solved your problem????
I have the same problem, i have to edit Framework-res.apk "androidmanifest.xml" but after i recompile and replace on the path, i have the same problem.
In my situation i don't have a boot because the framework error give me the unable to boot, but i have tried with other app (settins.apk for exemple), and after the boot my settings.apk is not installed on the smartphone.
Someone can tell me what's the correct method to edit the "androidmanifest.xml"?????
cuvetto said:
Have you solved your problem????
I have the same problem, i have to edit Framework-res.apk "androidmanifest.xml" but after i recompile and replace on the path, i have the same problem.
In my situation i don't have a boot because the framework error give me the unable to boot, but i have tried with other app (settins.apk for exemple), and after the boot my settings.apk is not installed on the smartphone.
Someone can tell me what's the correct method to edit the "androidmanifest.xml"?????
Click to expand...
Click to collapse
The problem is not with mainfest
It's the signature that's causing the issue sign system apks with system signature using DIXDA kitchen more on this in the kitchen thread
Sent from my GT-S5302 using Tapatalk 2

Categories

Resources