Help Editing Text Color .xmls - Vibrant Q&A, Help & Troubleshooting

Hello! I was hoping someone out there could point me in the right direction. I'm trying to edit the text colors of the notification pull down. My method is this.
~I first decompile the twframework-res.apk and navigate to /res/layout/status_bar_expanded.xml and open it with notepad++
~I change all the values I want accordingly. #ff000000 for black and #ffffffff for white.
~After this I recompile the apk using apk manager. Compression 0 and heap size 512, Y system app, Y keep and then I go into the keep folder and delete the status_bar_expanded.xml I just edited. Then finish recompiling it and it goes through with zero errors.
~Then I push it to my phone and reboot. It goes Vibrant>TMO>Galaxy S logo>black screen and vibrating.
Is there another location where I'm suppose to edit these values as well? Any help would be appreciated. Thanks.

Awww can noone help at all?

Whitehawkx said:
Awww can noone help at all?
Click to expand...
Click to collapse
Still having issues?
Values have to be edited in framework-res.apk also
if it cause it not to boot it sounds like the new xml didnt copy over and isnt in the recompiled apk. That happenes to me a few times

Related

[Q]Problem after changing AndroidManifest.xml

Hello Guys and Galls,
I want to change the background of Settings.apk from black to white. I use the FroyoMod Rom http://forum.xda-developers.com/showthread.php?t=815595.
If change
Code:
<application android:label="@string/settings_label" android:icon="@drawable/ic_launcher_settings" android:taskAffinity="">
to
Code:
<application android:theme=[COLOR="Red"]"@android:style/Theme.Light.NoTitleBar"[/COLOR] android:label="@string/settings_label" android:icon="@drawable/ic_launcher_settings" android:taskAffinity="">
in AndroidManifest.xml.
I use ApkManger to decompile and compile. The (de)compiling is without any errors.
After compile with ApkManager i do the follow:
- open original Settings.apk and unsignedSettings.apk with 7-zip
- delete AndrodManifest.xml in original Settings.apk
- copy AndroidManifest.xml from unsignedSettings.apk to original Settings.apk
- copy the modified original Settings.apk to the phone in /system/app
- chmod 644 Settings.apk
- chown root:root Settings.apk
So now if I start Settings nothing happens, nothing, not even an fc.
This is was logcat says:
Code:
com.android.settings has no certificates at entry AndroidManifest.xml
What I´m doing wrong?
Try one of the many apk re-packaging tools on this forum. Ive used apktool but there are some front ends built for it
From something awesome
killersnowman said:
Try one of the many apk re-packaging tools on this forum.
Click to expand...
Click to collapse
tigger-gg said:
I use ApkManger to decompile and compile.
Click to expand...
Click to collapse
By the way if I change any other xml file in /res there are no such problems.
tigger-gg said:
I use ApkManger to decompile and compile.
Click to expand...
Click to collapse
dur
i read this on the mobile and did not see that....
solving the problem? because I would be interested
Me too, I'm having a problem recompiling an AndroidManifest.xml with apkmanager 5.0.1., it won't install unless I use an original AndroidManifest.xml file first, then I can flash right over it. At first I thought it was a the change I made in the file, but I just decompiled and compiled an unmodified version, and it did the same thing. So its the compiler.
Settings.apk is a signed system app. It will refuse to run unless signed by the same key as the rest of the system apps. Just replacing a single XML in the APK will cause a signature mismatch.
Best bet? I'd say make your change, then use a kitchen like dsixda's to resign the whole system with the test key (I think this is a menu option).
Yep your whole system has to have the same signature. I did this edit for a rom a while back, but I made the settings transparent instead of white background by using Theme.Wallpaper.NoTitlebar. Just sign your whole rom together with testkeys and all should be good until another system app gets changed/modified and the signatures don't match again.
Sent from my PG06100 using Tapatalk
Thanks to Gene Poole and one_love_420, I will try your instructions.
If your after quickly signing a whole load of apk's, I wrote a command line front end to do all the hard work for you.
You can even generate your own private key.
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A
BUMP to top
Please big problem been fighting for weeks
any one know anything about this!!
So anybody find a solution yet? Seems to be the binary text conversion.
It is the signitures in manifest.inf fyi

How to place your key pngs in framework-res.apk and make them work for other apps!!!

Suppose you want to place a png on status_bar_expanded but do not want to keep in SystemUI/res/drawable-ldpi/ as that would cause transportation issues and increase risk of stealing pngs even if you give the SystemUI.apk to anyone only for study. Or have color xmls that if stolen can spoil your Rom surprises or TUTS
Well what would you want to do,, modify some smalis and place it in your own res.apk like lidroid-res,, etc,, but that would be too bulky and big hell of a job
It would be much better only if we could place these drawable xmls,, color xmls,, drawable pngs etc in framework-res.apk,, Well that is a trick only manufacturers use generally,, Well But since the developers/modders/themers works also need to safe guard their work, heres how we can place color xmls,, drawable xmls and drawable pngs in framework-res.apk and still make it work for other apps like SysUI, etc
-=--------Let us begin simple ----=-----------------------How to safe guard status_bar_tracking background png----------------------------------------------------------
1) decompile SystemUI.apk
2) Open status_bar_tracking.xml in res/layout
3) find its background attribute ( android:background="@drawable/x" )
4) now change it to android:background="@android:drawable/x"
5) Now delete x png from drawable-ldpi (<----------skip if u facing error recompiling)
6) Now open ur framework-res.apk with winrar and place x.png in drawable-ldpi
7) pUSH BOTH
--------------------------===---------------------------------------------------Safe guard a color xml------------------------__-==------------------------------------------------------------
Suppose you have seen my last tut regarding how to make any text change its color when you put your finger on it,, now similarly you perform the work on some other text,, say the quick panel toggle text so it turns blue when toggle is on and white when off,,, etc Now your problem is that if you give your lidroid-res.apk to anyone even for study,, he/she may steal ur color folder xml regarding toggle text dynamics and release it as his own TUT,, so what do you do,, hide the color xml regarding toggle text dynamics in framework-res.apk
1) Decompile lidroid-res.apk
2) copy the <toggle text dynamics xml name>.xml to somewhere safe
3) Open the xml that has android:textColor="@color/<toggle text dynamics xml name>"
and change it to android:textColor="@android:color/<toggle text dynamics xml name>"
4) Now decompile framework-res.apk,, place <toggle text dynamics xml name>.xml in color folder and recompile properly
This way,, safeguard whatever the hell you want
Just remember,, decompile framework-res for xmls and open using and archive opener for pngs
------------------------------------------------------------Remember to press thanks if i helped you---------------------------------------------------------------------------------------:good:
Nice bro :good:
Nice idea for ROM/Theme devs...
Regards,
Ganesh

[Q] about 9patch.png and xml help me

Hello friend, this is my first post after years of just being a silent reader ... I finally decided to create an account on this forum.
Now I want to ask, what's the name of the action bar and the 9patch.png name of this image number one in attachment below
then these two objects below on image number two marked with arrows
and one more question about this editing contact page that I can't figure it out how to change its background instead of holo white, any other pages was changed except this one, where is the damn layout xml for this thing?
help from my friends here will be greatly appreciated and I would be grateful
C.E.R.N said:
Hello friend, this is my first post after years of just being a silent reader ... I finally decided to create an account on this forum.
Now I want to ask, what's the name of the action bar and the 9patch.png name of this image number one in attachment below
then these two objects below on image number two marked with arrows
and one more question about this editing contact page that I can't figure it out how to change its background instead of holo white, any other pages was changed except this one, where is the damn layout xml for this thing?
help from my friends here will be greatly appreciated and I would be grateful
Click to expand...
Click to collapse
Welcome new XDA participant
I don't write down all png files I have modified and I don't have access to my theme right now but here are some clues:
1st screenshot: it's in framework-res.apk and check .9.png called "***bottom***" There aren't so much .9.png called like that.
2nd screenshot: it should be located into the Contacts.apk and there isn't a lot of .9.png files.
3rd screenshot: there's a .xml file into /res/drawable/ of Contacts.apk for the background.
Primokorn said:
Welcome new XDA participant
I don't write down all png files I have modified and I don't have access to my theme right now but here are some clues:
1st screenshot: it's in framework-res.apk and check .9.png called "***bottom***" There aren't so much .9.png called like that.
2nd screenshot: it should be located into the Contacts.apk and there isn't a lot of .9.png files.
3rd screenshot: there's a .xml file into /res/drawable/ of Contacts.apk for the background.
Click to expand...
Click to collapse
Okay, I will check all *bottom 9.png
And about the .xml can you give me any other clue?
C.E.R.N said:
Okay, I will check all *bottom 9.png
And about the .xml can you give me any other clue?
Click to expand...
Click to collapse
Check the color of "background_dial_holo_dark"
Primokorn said:
Check the color of "background_dial_holo_dark"
Click to expand...
Click to collapse
the value of "background_dial_holo_dark" refer to an .png image, I was replace this with my own .png image, or maybe it is "primary background color" ? in the folder values/colors/color.xml there is an code <color name="background_primary">#ffffffff</color> but I haven't change it yet.
I want to make half transparent effect on the background that shows my current wallpaper instead, if it's possible.
Would you mind to check my res folder if you're not busy, in the attachment...
C.E.R.N said:
the value of "background_dial_holo_dark" refer to an .png image, I was replace this with my own .png image, or maybe it is "primary background color" ? in the folder values/colors/color.xml there is an code <color name="background_primary">#ffffffff</color> but I haven't change it yet.
I want to make half transparent effect on the background that shows my current wallpaper instead, if it's possible.
Would you mind to check my res folder if you're not busy, in the attachment...
Click to expand...
Click to collapse
So try to remplace into colors.xml file
Code:
<color name="background_primary">#ffffffff</color>
by this
Code:
<color name="background_primary">#00ffffff</color>
Primokorn said:
So try to remplace into colors.xml file
Code:
<color name="background_primary">#ffffffff</color>
by this
Code:
<color name="background_primary">#00ffffff</color>
Click to expand...
Click to collapse
I will try that and report the result later
It works :good: thanks man

Samsung Galaxy Star Custom Carrier Label

I've been looking for ways on how to customize our carrier label but found none. Fortunately, I've found this great thread http://forum.xda-developers.com/showthread.php?t=1570956 which gave me the idea so I started modifying my device and I was able to customize it, so I decided to share it with you guys since this site has been a great help for a beginner like me. So here's how:
Requirements
1. Apktool
2. Notepad++ or any xml editor
**Since modifying this is so complicated, I attached the edited xml which will replace your current xmls.**
Download the attached zip and extract it.
Open strings.xml and find this line (its in the endline )
<string name="iamLinker">InsertYourTextHere</string>
change the text in red font to your desired text and save
Extract your SystemUI
move the following xmls to /res/layout -- look for layout-ldpi as well
status_bar_expanded.xml
tw_status_bar_expanded.xml
tw_status_bar_expanded_dual.xml
move the following xmls to /res/values
strings.xml
styles.xml
recompile and push the modified SystemUI.apk
then reboot.
And that's it! Don't forget to hit thanks if this helps!
emmantot said:
I've been looking for ways on how to customize our carrier label but found none. Fortunately, I've found this great thread http://forum.xda-developers.com/showthread.php?t=1570956 which gave me the idea so I started modifying my device and I was able to customize it, so I decided to share it with you guys since this site has been a great help for a beginner like me. So here's how:
Requirements
1. Apktool
2. Notepad++ or any xml editor
**Since modifying this is so complicated, I attached the edited xml which will replace your current xmls.**
Download the attached zip and extract it.
Open strings.xml and find this line (its in the endline )
<string name="iamLinker">InsertYourTextHere</string>
change the text in red font to your desired text and save
Extract your SystemUI
move the following xmls to /res/layout -- look for layout-ldpi as well
status_bar_expanded.xml
tw_status_bar_expanded.xml
tw_status_bar_expanded_dual.xml
move the following xmls to /res/values
strings.xml
styles.xml
recompile and push the modified SystemUI.apk
then reboot.
And that's it! Don't forget to hit thanks if this helps!
Click to expand...
Click to collapse
Really nice ... but this is the wrong place to post.
Please move this to the Galaxy Star General forum.

[Help] how to edit the text appears on startup of an apk

How to edit the text appears on startup of an android application. Some application are modified and they show an message like apk is modded by ****. I want to edit that text.
Thanks.
rockingjassie said:
How to edit the text appears on startup of an android application. Some application are modified and they show an message like apk is modded by ****. I want to edit that text.
Thanks.
Click to expand...
Click to collapse
Decompile using apk-tool. And edit accordingly.
After decompiling,
If its just simple image, editing PNG inside drawable folders should be sufficient.
If its text, you will have to find string inside res/values folder.
Jaskaranbir Singh said:
Decompile using apk-tool. And edit accordingly.
After decompiling,
If its just simple image, editing PNG inside drawable folders should be sufficient.
If its text, you will have to find string inside res/values folder.
Click to expand...
Click to collapse
Thanks. I will try.
How do you get this to display when loading up the APK please?
Checked res folder and images but no luck yet.

Categories

Resources