[Q] Need help themeing....... - HTC Pico (Explorer)

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

Tried pushing using adb....
no luck

Thanx people I managed to do it without decompiling
Opened the apk using 7 zip and then replacing the necessary files.....
And it worked...
I guess this method is easier as it doesn't require much knowledge ..

Related

Problem with framework-res...

So, i need some help from you.
Everytime I put some statusbaar icons into the framework-res.apk and resign it, it stucks in a boot loop.
In ddms it says me that the package android (i think its a file in the framework-res, or the framework-res) isn't signed correctly.
I attached the statusbaricons and the WORKING framework-res.
Could someone please integrate the files in the res/drawables folder and sign it correctly for me?
Thank you..
You would get a credit in my rom ;-) (Yes, i know, it's not very well known :-D , my roms name is MaxismaR, just search for it here..)
P.S: I'm on Windows 7, maybe that affects the signing process..
maxisma said:
So, i need some help from you.
Everytime I put some statusbaar icons into the framework-res.apk and resign it, it stucks in a boot loop.
In ddms it says me that the package android (i think its a file in the framework-res, or the framework-res) isn't signed correctly.
I attached the statusbaricons and the WORKING framework-res.
Could someone please integrate the files in the res/drawables folder and sign it correctly for me?
Thank you..
You would get a credit in my rom ;-) (Yes, i know, it's not very well known :-D , my roms name is MaxismaR, just search for it here..)
P.S: I'm on Windows 7, maybe that affects the signing process..
Click to expand...
Click to collapse
What are you using to sign? Keytools/Jarsigner?
I'm using the autosign.exe.
Ahh, Try my attachment.
Ok, tried and it gives me this :
06-18 21:52:40.797: ERROR/PackageManager(77): Package android signatures do not match the previously installed version; ignoring!
have you tried deleting the META-INF folder before you sign?
maxisma said:
Ok, tried and it gives me this :
06-18 21:52:40.797: ERROR/PackageManager(77): Package android signatures do not match the previously installed version; ignoring!
Click to expand...
Click to collapse
I've come across that error before, it's just telling you the current installation of framework-res doesn't match the signatures with the one you're trying to reinstall. I believe this framework jar file is located only in /system/framework so you would first have to remove any reference to the file (basically uninstall it). I know you can't uninstall a jar but basically you need to remove references to the file and signature of the file before you can replace it. It's possible you only need to remove /system/framework/framework-res.jar and /data/dalvik-cache/*framework-res*
I can't guarantee that if you remove this file that android will still boot up without errors. Be prepared to have to wipe and reload
why not take a full ROM update and put your images into that and then sign it. also make sure your images aren't too big. if you are using linux you can use pngcrush otherwise i'm no help
But there's no framework-res.jar in there.
But will try wiping after installing the new framework-res ;-)
If u r including icons like battery, check the number of icons in the framework of hero & that of ur rom, if it dosent mach, try removing or incliding some more or ger the source cod & insert those hero stuff inor source code & rebuild rom then get both framework res apk & the jar file....
thats the way i had implemented the percentage battery statusbar icons into 1.5
I know your always supposed to resign the apk's but the only workaround I have found for the exact same problem is to put.zip at the end of framework-res.apk.Right click on it explore to what directory im inserting my images in and paste em while leaving it zipped,when done take .zip back off dont sign it and it works then in the update.
THX to crotalusfreak! That fixed it! You'll get a credit in my next upload ;-)

Clear Notifications Panel for FroYo

I'm using the old Metamorph which as mentioned in another thread, supposedly works for 2.2. (Let me know if I should remove the apk.)
And I'm using an old morph file with a .thm (changes 3 png files).
However, when I apply the theme and reboot, I immediately get constant force closes. I have to pull the battery out and restore my backup.
What am I doing wrong? Attached are my files.
I get the same problem using a theme/morph.
I get certificate authentication errors on AndroidManifest.xml when I debug.
However, if I manually insert the new png's I don't get this problem. I can't explain why.
I can't resign the new framework-res.apk either (well I can brut force sign it but then it fails to install).
Am still looking into this. Although I suspect a morpher/themer will solve it before me.
thats because it simply does not work. The 2.2 hasnt got an odex file in the services.jar. Morphs ARE working but the clock and operator text will remain black as there is NO way to bypass that as of now.
m00moo said:
thats because it simply does not work. The 2.2 hasnt got an odex file in the services.jar. Morphs ARE working but the clock and operator text will remain black as there is NO way to bypass that as of now.
Click to expand...
Click to collapse
We're discussing framework-res.apk though. The attached morph doesn't touch services.jar.
Having said that... services.jar is no longer used (in 2.2) for the text colours, they're all in framework so far as I can tell.
djmcnz said:
We're discussing framework-res.apk though. The attached morph doesn't touch services.jar.
Having said that... services.jar is no longer used (in 2.2) for the text colours, they're all in framework so far as I can tell.
Click to expand...
Click to collapse
this is correct. I have changed only one png inside framework-res.apk, and tried to morph it.
The phone keeps looping...
works fine for me. Make sure that the images you are replacing are there however my thm from my CM506 still works after i converted the thm to xml
m00moo said:
works fine for me. Make sure that the images you are replacing are there however my thm from my CM506 still works after i converted the thm to xml
Click to expand...
Click to collapse
nope... its still not working...
Any ideas?
just changed the stat_sys_data_bluetooth and the phone keeps looping...
Anyone tried making the change via an update.zip?
britoso said:
Anyone tried making the change via an update.zip?
Click to expand...
Click to collapse
I tried but got a not signed error.
Though I don't think it would work anyway because I tried just pushing the framework apk through adb push, and the same result happened (1000x constant force closes).
Had to restore just the same as when using the morph (again, I didn't do anything but replace 3 png files).
The rom needs to be de-odexed........JF is hopefully working for an update for his app to get this done.
Changes will not take if the odex files are present.
http://code.google.com/p/smali/wiki/DeodexInstructions
Anyone have any ideas on how to make it work?

[MOD] Remove Recent Apps from Notification Bar

I haven't seen this around, so I went ahead and made this for myself, and I decided to share it with anyone who wants it...
I hate the Recent Apps section of the Notification Bar Dropdown... so I removed it.
I wanted the Recent Apps to be removed without having to flash a complete ROM or use some theme.
1. Flash the attached file in CW Recovery
2. Clear Cache and Dalvik Cache
3. Reboot
4. Profit (It will remove the recent apps section)
There are no side-effects that I have noticed.
It was made from the SystemUI.apk from the stock US 2.3.4 Build, and should work on any 2.3.4 build for the Sensation.
There are no other changes in this from stock 2.3.4 besides removing the Recent Apps.
It will work alongside the Battery Mods I made with no issues... One mod does not affect the other.
Let me know if you have any issues.
As always, I'm not responsible if your phone breaks beyond repair and you lose all your data.
Thanks to j4n87 for the smali change required.
Work for me on EagleBlood rom.
It would be helpful.
NoRecents - installed with tiwili - take it, work it, leave it
Hi,
thanks for this mod. As always all actual modifications in existing SystemUI.apk are changed by this installation.
I took both of your modified files in my tiwili-installation method. So all other existing files in SystemUI.apk will rest in peace.
I publish it here because it´s your work, your files; It took 5 minutes for me, that´s nothing to be proud of...
Greets
idephili
So pretty much this needs root?
Sent from my HTC Sensation 4G using XDA App
thevietmonk said:
So pretty much this needs root?
Sent from my HTC Sensation 4G using XDA App
Click to expand...
Click to collapse
Absolutely. You can't push SystemUI.apk to the apps directory without root.
Thanks for this...finally I can remove it...just a small issue...where I am, there is no 4g network yet...however it is now showing 4g icon on the notification bar, anyway I can change it to 3g icon?
Sent from my HTC Sensation Z710e using xda premium
This will also remove the extended quick settings I had installed, flashed the EQS again though, no prob just thought I'd let ya know
Edit: Flashing EQS again, makes the recent apps come back..
ARHD 3.1.1
bigg8k said:
This will also remove the extended quick settings I had installed, flashed the EQS again though, no prob just thought I'd let ya know
Edit: Flashing EQS again, makes the recent apps come back..
ARHD 3.1.1
Click to expand...
Click to collapse
That's because both mods modify the same system file. You can only choose one or the other unless the EQS Dec decides to put this in his mod.
sorry.
No worries, thanks for the effort anyways
This does not work on 3.5 SENSE but thank you for your work
EQS-Mod + Recent App
Hey
What do i do if i want the Recent App, with EQS-Mod ?
thanks...... I'll try this app
If any of you want to do it youself.....
1.Pull Systemui.apk from system/app
2.Decompile SystemUI.apk
3.navigate to com/android/systemui/statusbar
3.open up StatusBarFlag.smali using notepad or notepad++ (recommended)
4.Around line 89 (using notepad++) you should see this:
Code:
sput-boolean v0, Lcom/android/systemui/statusbar/StatusBarFlag;->HTC_RECENT_APP:Z
5. Change v0 to v2.
6. Recompile Systemui.apk and push via adb to system/app or copy to system/app using root explorer.
**NOTE**If using root explorer make sure to set permissions as Owner = Read/Write Group = Read Others = Read. A reboot will be required after pasting SystemUI.apk before you can change persmissions.
7. Reboot and your done!
same outcome for me with p3d had to reflash to get extended settings
I tried this but it appears to remove the entire header bar. That is, there was no pull down bar at all pushing it and rebooting. Any suggestions?
mfrost66 said:
I tried this but it appears to remove the entire header bar. That is, there was no pull down bar at all pushing it and rebooting. Any suggestions?
Click to expand...
Click to collapse
Sounds like you have decompiled SystemUI.apk incorrectly and then not signed it before pushing it. What method did you use for decompiling the APK?
I'm having some trouble with decompiling the SystemUI.apk. I get a bunch of "Invalid config flags detected" error when I try to load the com.htc.resources.apk framework; when I try to recompile I get a handful of other errors (related I'd imagine) and it doesn't recompile. Googled around a bit, found similar problems but no answers - any advice?
jimhart3000 said:
I'm having some trouble with decompiling the SystemUI.apk. I get a bunch of "Invalid config flags detected" error when I try to load the com.htc.resources.apk framework; when I try to recompile I get a handful of other errors (related I'd imagine) and it doesn't recompile. Googled around a bit, found similar problems but no answers - any advice?
Click to expand...
Click to collapse
How are you decompiling the apk...??
Didn't work. Edited what was suppose to be edited and the recent apps still show up....

modding .xml in framework-res.apk with apktool?

i know there are hunderds of threads about this, but none of them helped me and niether of them describes my situation.
i had to change some values in bools.xml in framework-res.apk of a deodexed cm7.2 rom. so, i decompiled and recompiled using apktool and tried the folowing things (in all cases i remembered to chmod to 664):
- pushed the compiled file without signing. Boot loops.
- wiped dalvik cache. still boot loops.
- signed the compiled file. IT BOOTED! but all system apps fc. And i see a blank status bar. clearing dalvik cache doesnt help.
- copied the compiled resources.asec to original apk with winrar. NO FCs this time. still a blank status bar. Rotating the phone freezes the system instantly. but even if you dont rotate, system soon freezes, within 30 secs. logcat shows repeating messages of "cpu may be pegged. trying again". (no i havent overclocked).
how do u guys mod the frameworkres successfully?
Well, I don't know exactly what the problem you're having is since it may depend on the type of mod you're doing but..
I decompile framework-res.apk with apktool, make my changes and recompile. Then I use 7zip to copy the res folder from the new apk to the old one (just open both and drag across). Next, I extract resources.arsc from the new apk and add it to the old one, making sure to use 'store' compression. If resources.arsc is compressed at all, it causes problems.
So the original framework-res.apk now has a new res folder and resources.arsc at the right compression ratios. If you sign the new apk file, you have to make sure all the other system apps are signed the same way and it's just more trouble than it's worth.
Then I reboot into recovery, mount the system and push straight to the framework folder. I used to do this while the phone was running normally but I'd get all kinds of odd bugs if I made any change to anything other than a drawable. I'd get strange FC's, I'd lose wifi connection, all kinds of things.
And that's about it. As long as the changes I'm making don't stop the phone from working properly anyway, the above works perfectly every time.
Sent from my U20i using xda premium
arnab321 said:
(in all cases i remembered to chmod to 664):
Click to expand...
Click to collapse
Did you made a typo, or did you really have set the permissions to 664?
Its 644.
brainmaster said:
Did you made a typo, or did you really have set the permissions to 664?
Its 644.
Click to expand...
Click to collapse
that was actually a typo, and once i also accidentally made a typo on adb, but it still boots fine. i dont think giving extra permissions will screw things up.
the problem "cpu may be pegged" is rom/kernel related, because it is still there after a fresh install... sometimes it happens, sometimes not.
but i dunno anything about the blank status bar... i was trying to set "has_soft_keys" to true, to use tablet tweaks on my phone, does that cause a blank statusbar? anyone else got the same problem?
Wait, why are you using framework-res.apk for that? I think you need to change local.prop in /data to do this.
Have you actually got the line "has_soft_keys" already in the bools.xml?
Ticklefish said:
Wait, why are you using framework-res.apk for that? I think you need to change local.prop in /data to do this.
Have you actually got the line "has_soft_keys" already in the bools.xml?
Click to expand...
Click to collapse
yes it had that line, and setting it to true does bring the softkeys stuff in tablet tweaks menu. But the status bar always stays empty, nothing on it.
what needs to be changed in local.prop? There's nothing related to softkeys there on my phone.
umm, my ROM had the center clock mod on status bar, is that an issue?
Sent from my LG-P500
edit:
yes it was due to the center clock. tried anoher rom and i got the softkeys just by modding the bools.xml
First of all never sign system apps.
try using apk manager(I know it uses apk tool to do these operations) so try to set compression level to zero and heap size to 512.
I think above solutions should solve your problem but revert if u face any problem.
Sent from my Micromax_A70 using Tapatalk

UOT zip file doesnt change the data logo

cooked up a zip file to change the status bar icons..
the battery and some other icons changed but not the 4Glte icon..
anyone know why?
johentie said:
cooked up a zip file to change the status bar icons..
the battery and some other icons changed but not the 4Glte icon..
anyone know why?
Click to expand...
Click to collapse
If you cooked it as you say you would know, icons are in systemUI apk and framework apk
They ain't overly difficult to replace
You don't even need to make a cwm zip, just edit, use root explorer and overwrite originals in /system/app, framework will cause fc/hot reboot, systemUI crashes statusbar (ofc), and best to hot reboot afterwords anyways
doug36 said:
If you cooked it as you say you would know, icons are in systemUI apk and framework apk
They ain't overly difficult to replace
You don't even need to make a cwm zip, just edit, use root explorer and overwrite originals in /system/app, framework will cause fc/hot reboot, systemUI crashes statusbar (ofc), and best to hot reboot afterwords anyways
Click to expand...
Click to collapse
i didn't mean through the Android kitchen... i can't figure out how that works to decompile the framwork and systemui apks...
i did it through the UOT which is a UI wizard to help you ..
and it doens't replace the data icon..
johentie said:
i didn't mean through the Android kitchen... i can't figure out how that works to decompile the framwork and systemui apks...
i did it through the UOT which is a UI wizard to help you ..
and it doens't replace the data icon..
Click to expand...
Click to collapse
Follow the instructions from the link in my signature (image replacement). You don't have to endure the crashes with manually replacing them if done correctly.

Categories

Resources