[Help] SystemUI keeps crashing after mod - Nexus 5 Q&A, Help & Troubleshooting

I'm on stock rooted 4.4.2 with Xposed framework. I created an update.zip file to mod my SystemUI.apk by adding a custom image or "carrier logo" into the top left of the status bar. Within the update.zip (that I built with zip themer) I added an image to my drawable-xxhdpi folder named carrier_logo.png. I also had to modify the layout/status_bar.xml to call the image into my status bar. I used the following code to do so:
<TextView android:background="@drawable/carrier_logo" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
I added this line of code directly under this line:
<LinearLayout androidrientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip"
android:layout_height="fill_parent" android:layout_weight="1.0">
When I flash the update.zip my SystemUI crashes and my status bar is completely gone and I can't do anything on my phone and have to reboot into recovery and flash the undo.zip. My question is why is my SystemUI crashing? I know the image flashes fine because I made an update.zip with just the image and not the xml and it flashed into my drawable-xxhdpi just fine....It's the XML that's causing my phone to crash but I don't know what's wrong with my code. Hopefully someone more experienced in modding/themeing can help me out.

Not really experienced here but you did recompile the xml?
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit

I didn't recompile the apk if that's what you mean....I merely saved the XML and stuck inside the SystemUI/res/layout path of my zip themer file before sticking into zip themer and building a flashable zip.

You must recompile the apk so the xml is compressed correctly, then extract that edited xml and put that in your target apk / zip
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit

Never thought of that....been looking for answers everywhere the past two days lol. I'lll give it a try and report back. Appreciate your help man!

No problem. This part is an absolute must, however I cannot guarantee that alone will resolve the issue.
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit

Well, we'll see lol. I'm in the process of doing it now.

Question....after my apk is compiled and I extract the status_bar.xml, the xml file is in compiled format so it's not readable. Do I use THAT xml file in the zip or do I have to decompile my new SystemUI (that I just compiled) and then remove the xml file and put into my zip?
--EDIT--
I used the XML that was in compiled format...just extracted from newly compiled SystemUI.apk and put it my zip file. Update.zip builds fine as it usually does and flashes, however my system still crashed. I'm going to try a different line of code that I found from an ICS themeing thread....see if that works..

Yes you decompile your system ui and edit the xml. You then recompile the apk. You then either use that apk or you extract the edited xml from that apk (without decompiling - so it remains unreadable) and put that in your zip
Edit > if you're adding new png, don't you need to also update the resources.arsc or swap the one from the recompiled apk in?
Make sure you read up on that as im sure there's something else you must do but this is where my knowledge gets sketchy
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit

Yup, that's exactly what I did. Builds/flashes fine....but system keeps crashing =( Tried the second method using a different line of code....Still crashing. Very frustrating.
If you are anyone else cares to take a look, I'm going to attach a copy of my update.zip maybe you can find something wrong with it.

Oh its a full apk? Thought it was a villain theme zip.
Are you compiling as per this thread?
http://forum.xda-developers.com/showthread.php?p=34062046
Beyond that I think im out of help
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit

Not quite. I use apk multi-tool.....does all the exact same things just no need to use cmd to do it....I've compiled many times successfully using it. What exactly is a villain theme zip?
Sent from my Nexus 5 using xda premium

Its a zip that instead of having an apk called systemui.apk, it has a folder called systemui.apk
In the folder sits just the edited files. Flashing the zip actually extracts the real apk in /system and puts your edits in...
Look for vrtheme for more info. Not sure it helps here though
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit

Will do man. Appreciate the help...one last thing. Do you think my systemui and or ROM in general being odexed has anything to do with the failure?
Sent from my Nexus 5 using xda premium

Quite possibly. I always go deodexed to make system mods easier. Odex is a whole different ball game
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit

I know....it sucks lol. Did you notice a decrease in performance/speed when you went to deodex?

No I didn't notice
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit

Hmm...Is it possible, or do you know of the possibility of being able to deodex just one system application instead of the whole rom?

Pain-N-Panic said:
Hmm...Is it possible, or do you know of the possibility of being able to deodex just one system application instead of the whole rom?
Click to expand...
Click to collapse
I can help. I'm pretty good at zipthemer if I say so myself. What exactly are you trying to do? Odex has nothing to do with it. Every one of my zipthemer files work on my phone and its odexed.
It's going to get cluttered so just PM me.

PM sent

Related

[CWM][MOD] Missing Indian languages fonts for KitKat / JellyBean / ICS

New File uploaded for KitKat
Instructions
-Download the zip of your desired font
-Boot into recovery
-Make a nandroid backup (Optional)
-Flash the zip
-Reboot
As Nexus 5 and Nexus 7 owner, you may have noticed the curious case of missing fonts for Indian languages in the OS. The truth is that this is like gingerbread and I don't see it being addressed soon. Luckily, Google has started to use Harfbuzz for rendering of complex scripts.
Here is a flashable zip that installs the fonts in the /system/fonts and updates fallback_fonts.xml in /system/etc. Its better than overwriting DroidSansFallback.ttf as it does not break any other glyphs.
This will enable you to read the languages even though rendering is broke for Yuktakshars, Halants etc.
If you want to see Android supporting Indian languages as soon as possible, I request all to star and comment on this issue in Android issue tracker - http://code.google.com/p/android/issues/detail?id=4153
https://code.google.com/p/android/issues/detail?id=16315
I have only tested this on my own Google Nexus S i9023 and Nexus 5 running on KitKat[Android 4.4].
[/SIZE]Google has included full rendering support(and fonts) for -
Tamil
Malayalam
Kannada
Bengali
Devnagari / Hindi
Telugu
This zip file has additional fonts for
Punjabi (being my native language)
Nepali
Assamese
Marathi
Gujarati
Oriya
Sindhi
Kashmiri
If you want a language in the pack, provide me font file and I will update the zip. Also if you need to type in your language,I'e found this keyboard to be the best https://play.google.com/store/apps/details?id=kl.ime.oh
BTW Thanks to The Fedora Project for providing Open Source Lohit fonts. Three cheers for them.
Liked the name of the attachment xD
From my fingers to your eyez
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A
lufc said:
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A
Click to expand...
Click to collapse
This is neither a question or a problem but a solution however incomplete it is. Anyways glad to be able to post here on XDA
lufc said:
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A
Click to expand...
Click to collapse
This is not a question, he provided a solution. IMO this should be in the apps n themes sectn.
siffar said:
This is neither a question or a problem but a solution however incomplete it is. Anyways glad to be able to post here on XDA
Click to expand...
Click to collapse
thanks a lot 4 these..!
Tried Flashing on SGS... on luck
Tried Flashing on SGS through CWM Recovery.. on luck, got below error.
Error in Desi_Fonts.zip
Please help. Should it needs to be renamed to update.zip and then flash, Please guide.
What is error code and what version is your CWM
Sent from my Nexus S using XDA App
nagabushan.c said:
Tried Flashing on SGS through CWM Recovery.. on luck, got below error.
Error in Desi_Fonts.zip
Please help. Should it needs to be renamed to update.zip and then flash, Please guide.
Click to expand...
Click to collapse
Unzip and replace the copied fonts to fonts folder.
sekhargreen said:
Unzip and replace the copied fonts to fonts folder.
Click to expand...
Click to collapse
and not to forget to copy fallback_fonts.xml to /system/etc
lufc said:
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A
Click to expand...
Click to collapse
Dude - read the thread - n move it back to general
cdesai said:
Dude - read the thread - n move it back to general
Click to expand...
Click to collapse
General it is
cheers
it is working on motorola xoom runing on ics(teamos build rom). bangla fonts are rendering perfectly.
many many thanks to op. love you bro.
it is not working on cm7.1
it was installed successfully but not working...same problem...well i noticed that you zip cant replace the font correctly...am i wrong ?
by the way thank you so much for care this problem on android world
Let me look up on this problem.
Tried on CM7.1 on my Motorola Milestone - not working
Tried on my Motorola Milestone running on 2.3.7 CM7.1
No luck.
This is what i did:
Successfully flashed zip files from Open recovery,
All fonts got installed in /system/fonts directory.
Manually copied extracted fallback_fonts.xml files to /system/etc folder.
let me know if i need to do anything else.
Thanks for your efforts.
Not working on CM7
Flashed it with CWM.
Manually checked if installation went fine.
All fonts are available with same permission and config file is also proper.
But still rendering is not proper.
Let me know if any further details required.
Thx a lot for your efforts!!!
It didn't work on cm7 because there is no fallback.xml file in my system/etc.so after flashing zip the fallback.xml copy in system/etc but it didn't work.
vikasb32 said:
It didn't work on cm7 because there is no fallback.xml file in my system/etc.so after flashing zip the fallback.xml copy in system/etc but it didn't work.
Click to expand...
Click to collapse
Thanks for pointing this out guys. I suppose old method of flashing DroidSansFallback.ttf would work.
@siffar:
Please guide how to revert the flashed zip file.
I tried replacing Droidsansfallback.ttf with ROJanakannada.ttf, but still it displays your font only (lohith-kannada.ttf).I dont like lohith-kannada.ttf, all alphabets are separate.
suggestion: use ROJanakannada.ttf for kannada. It looks nice and does'nt splits.
thhhhhhnxxxxx

System UI apk Revert

Is there a system UI revert zip/method floating around somewhere? I've installed a few mods and have had trouble reverting a particular one. Is there an easy way to revert back to the stock system UI apk?
Sent from my Nexus 5 using Tapatalk
Have a look in the mod zips. Did they really replace the SystemUI?
Just replace whats in the zip with your own, ripped from a rooted stock rom which you can download here
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit

anyway to change the system wide font to roboto condensed?

I changed it in ChompSMS AND it looks so much better. Is there an apk that can be flashed to bring the font throughout the whole system?
There are font installers on play, yes
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
try this
http://forum.xda-developers.com/showthread.php?t=2513985
change fonts system wide but you need to be rooted
stremax said:
try this
http://forum.xda-developers.com/showthread.php?t=2513985
change fonts system wide but you need to be rooted
Click to expand...
Click to collapse
Thanks for the link! Followed the directions and it worked great on both N5 and N7
Sent from my Nexus 7

[Q] Change DPI without XPOSED?

Hi!
I'm looking for a way to change my DPI's launcher (Aviate) but without XPOSED (I'm running ART).
Any Idea?
Thanks!
Not that I am aware. Just changing overall dpi via build.prop
rootSU said:
Not that I am aware. Just changing overall dpi via build.prop
Click to expand...
Click to collapse
Thanks but I just want to change the launcher.
Yes I know, but you also dont want to use xposed.
The options are, build.prop, xposed or wait for per app dpi with paranoid android
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit

[Q&A] (rom) ni2 4.4.4 with note 4 apps

Q&A for (rom) ni2 4.4.4 with note 4 apps
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for (rom) ni2 4.4.4 with note 4 apps. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
Q&A bad zip file
Kevin36 said:
Please use ktoonz newest Kernel
Touchwiz Kitkat 4.4 VERSION:
10.20.2014:
Click to expand...
Click to collapse
this file is corrupted, someone can update
can anyone provide font fix for the note 4 acuwether wiget?
jackrabbit72380 said:
can anyone provide font fix for the note 4 acuwether wiget?
Click to expand...
Click to collapse
Not sure, but I think you can decompile the app using apktool or similar and find a folder with all the fonts, replace the fonts and recompile
Worth a try?
Sent from my SM-G900P
a7thousandths said:
Not sure, but I think you can decompile the app using apktool or similar and find a folder with all the fonts, replace the fonts and recompile
Worth a try?
Sent from my SM-G900P
Click to expand...
Click to collapse
your wrong on all accounts and no its not worth a try.
1. the font settings are in the system settings.xml for the rom not in the apk
2.there is nothing to change inside the apk.
3.the systems fonts are located in the fonts folder in the rom not in the apk for the acuwether.
4.I fixed the problum in the settings.xml & in put the missing fonts in the fonts folder.
done but thanks anyway!
jackrabbit72380 said:
your wrong on all accounts and no its not worth a try.
1. the font settings are in the system settings.xml for the rom not in the apk
2.there is nothing to change inside the apk.
3.the systems fonts are located in the fonts folder in the rom not in the apk for the acuwether.
4.I fixed the problum in the settings.xml & in put the missing fonts in the fonts folder.
done but thanks anyway!
Click to expand...
Click to collapse
welp, that makes a lot more sense!
How do we ask for a answer and when someone tries to help you have a answer to prove them wrong that makes no sense at all if you had found the answer post your findings that helps out a bit more instead of trying to make someone look stupied.
jackrabbit72380 said:
your wrong on all accounts and no its not worth a try.
1. the font settings are in the system settings.xml for the rom not in the apk
2.there is nothing to change inside the apk.
3.the systems fonts are located in the fonts folder in the rom not in the apk for the acuwether.
4.I fixed the problum in the settings.xml & in put the missing fonts in the fonts folder.
done but thanks anyway!
Click to expand...
Click to collapse
evo3d6 said:
How do we ask for a answer and when someone tries to help you have a answer to prove them wrong that makes no sense at all if you had found the answer post your findings that helps out a bit more instead of trying to make someone look stupied.
Click to expand...
Click to collapse
@jackrabbit ........ @evo3d6 I more than 100% correct. If. Someone takes their own time and tries to help..... just a simple thank you is all that's needed. You seem to have this habit of belittling people. If you found your own answer. ..then you should have posted a how to. You have handled this so incorrectly my friend. And to the one who offered a answer.... thank you @a7thousandths for your time and effort.

Categories

Resources