[GUIDE] T-mobile theme engine for the faint at heart (non-linux users)

nitinvaid

Senior Member
Mar 7, 2011
6,112
4,802
253
31
New Delhi
I was trying to upload apk of MY theme at google play store
But play store gives error
"Google Play does not accept apks signed with the debug certificate. Create a new
certificate that is valid for at least 50 years."
what to do now how to sign apk valid for play store
Help me

Sent from my GT-I9100 using xda app-developers app

Sent from my GT-I9100 using xda app-developers app
 

nitinvaid

Senior Member
Mar 7, 2011
6,112
4,802
253
31
New Delhi
can anyone explain in short how to do in simple steps

ok got it created a key but while signing getting error
Code:
C:\SignApk>java -jar signapk.jar key.pem key.pk8 Spectre.apk SignedSpectre.apk
java.security.cert.CertificateParsingException: signed overrun, bytes = 464
        at sun.security.x509.X509CertImpl.parse(Unknown Source)
        at sun.security.x509.X509CertImpl.<init>(Unknown Source)
        at sun.security.provider.X509Factory.engineGenerateCertificate(Unknown S
ource)
        at java.security.cert.CertificateFactory.generateCertificate(Unknown Sou
rce)
        at com.android.signapk.SignApk.readPublicKey(SignApk.java:75)
        at com.android.signapk.SignApk.main(SignApk.java:318)

C:\SignApk>
 
Last edited:

m1keyb

Senior Member
Dec 23, 2011
399
247
0
@ZduneX25 I'm still trying without success to include edited non framework layouts could you give me a clue please?
I'm trying to make the calculator background white, its loading white very briefly then crashing. @android: works for framework ids and stuff but I can't work out whats needed for others, tried @package_name:id @package.name:id @:id I'm not even sure if its the ids or something else causing the issues :(

Sent from my GT-I9100 using xda premium
 

m4570d0n

Senior Member
Nov 20, 2011
1,304
1,021
0
Houston
:) i saw my mistake from the previous line i put for status bar, your a savior mate,

i put

Code:
<item type="drawable" name="status_bar_background">@drawable/com_android_systemui_statusbar_background</item>
instead of

Code:
<item type="drawable" name="status_bar_background">@drawable/com_android_systemui_statusbar_background</drawable>
will check the result later, thanks again,

i am doing some color versions of my theme,
for the toggles, i am using aokp rom right now, haven't tried on cm10 if the btn_on/off ' s color were changed
no problem with aokp since toggle color can be changed on rom control,
you could also use:
Code:
<drawable name="status_bar_background">@drawable/com_android_systemui_statusbar_background</drawable>
That first one should have been fine. I dont know why the second one would work as you are essentially starting and ending with two different tags, like <item>stuff</drawable>. That is incorrect xml syntax.
 
Last edited:

pierx

Senior Member
Dec 3, 2011
461
1,044
123
@nitinvaid and to disable ON/OFF text strings (on switches) use:
<style name="Widget.Holo.Light.CompoundButton.Switch" parent="@android:style/Widget.Holo.Light.CompoundButton.Switch">
<item name="android:textOn"></item>
<item name="android:textOff"></item>
</style>
Hi guys, how to remove the on/off text on the switch?

@zdunex25
I've try this but it didn't works
i add this to style xml and android.xml (needs to remove android: to get the build)

i also tried this
style.xml
</style>
<style name="Theme.TextAppearance.Holo.Widget.Switch" parent="@style/TextAppearance.Widget.ActionMode.Title">
<item name="android:textColor">#00000000</item>
</style>
android.xml
<item name="style/TextAppearance.Holo.Widget.Switch">@style/TextAppearance.Holo.Widget.Switch</item>
<item name="style/TextAppearance.Holo.Widget.Switch">@style/Theme.TextAppearance.Holo.Widget.Switch</item>
didn't work either.

error: Error retrieving parent for item: No resource found that matches the given name '@style/TextAppearance.Widget.ActionMode.Title'.
Thanks
 

m1keyb

Senior Member
Dec 23, 2011
399
247
0
@nitinvaid and to disable ON/OFF text strings (on switches) use:


Hi guys, how to remove the on/off text on the switch?

@zdunex25
I've try this but it didn't works
i add this to style xml and android.xml (needs to remove android: to get the build)

i also tried this
style.xml

android.xml


didn't work either.



Thanks
The first one should work (if you have chrome browser check the switch in settings) you'd need to add the same for the holo style as well.

Sent from my GT-I9100 using xda premium
 
  • Like
Reactions: pierx

pierx

Senior Member
Dec 3, 2011
461
1,044
123
The first one should work (if you have chrome browser check the switch in settings) you'd need to add the same for the holo style as well.

Sent from my GT-I9100 using xda premium
Thanks for the quick answer m1keyb
Yes, it's build properly, but didn't change on theme...
and the worst part is in chrome (autofill switch) it's directly bring me to fc dialog.

I also tried to remove the .Light. holo part. Same result (even setting fc).
I should check it again.

EDIT: what happen with this quote? originally posted by myself? LOL
 
Last edited:

m4570d0n

Senior Member
Nov 20, 2011
1,304
1,021
0
Houston
@nitinvaid and to disable ON/OFF text strings (on switches) use:


Hi guys, how to remove the on/off text on the switch?

@zdunex25
I've try this but it didn't works
i add this to style xml and android.xml (needs to remove android: to get the build)

i also tried this
style.xml

android.xml


didn't work either.



Thanks
Unless you defined TextAppearance.Widget.ActionMode.Title in your styles.xml you need to include the android reference because it's a platform style. Also, in your android.xml you're trying to define the redirection for TextAppearance.Holo.Widget.Switch twice. That's not going to work.
 
  • Like
Reactions: pierx

nitinvaid

Senior Member
Mar 7, 2011
6,112
4,802
253
31
New Delhi
I was trying to upload apk of MY theme at google play store
But play store gives error
"Google Play does not accept apks signed with the debug certificate. Create a new
certificate that is valid for at least 50 years."
what to do now how to sign apk valid for play store
Help me

Sent from my GT-I9100 using xda app-developers app

Sent from my GT-I9100 using xda app-developers app
ok created my private key
signed the apk also

i tried
jarsigner -verify spectre.apk
status
jar verified.

Warning:
This jar contains entries whose certificate chain is not validated.
 

bhu1

Senior Member
Aug 1, 2011
5,307
4,517
0
25
Jaipur
ok created my private key
signed the apk also

i tried
jarsigner -verify spectre.apk
status
jar verified.

Warning:
This jar contains entries whose certificate chain is not validated.
U used wrong command to check.
This is the correct command.
jarsigner.exe -verify -verbose -certs apkname.apk
 

nitinvaid

Senior Member
Mar 7, 2011
6,112
4,802
253
31
New Delhi
U used wrong command to check.
This is the correct command.
jarsigner.exe -verify -verbose -certs apkname.apk
tried that also
......
....
...
...
...
..


s = signature was verified
m = entry is listed in manifest
k = at least one certificate was found in keystore
i = at least one certificate was found in identity scope

jar verified.

Warning:
This jar contains entries whose certificate chain is not validated.


What is this "This jar contains entries whose certificate chain is not validated."
 
Last edited:

bhu1

Senior Member
Aug 1, 2011
5,307
4,517
0
25
Jaipur
tried that also
......
....
...
...
...
..


s = signature was verified
m = entry is listed in manifest
k = at least one certificate was found in keystore
i = at least one certificate was found in identity scope

jar verified.

Warning:
This jar contains entries whose certificate chain is not validated.


What is this "This jar contains entries whose certificate chain is not validated."
Leave it. Try uploading to google play.
 
  • Like
Reactions: nitinvaid

MrDSL

Senior Member
Nov 17, 2006
7,456
2,598
253
@ZduneX25 I'm still trying without success to include edited non framework layouts could you give me a clue please?
I'm trying to make the calculator background white, its loading white very briefly then crashing. @android: works for framework ids and stuff but I can't work out whats needed for others, tried @package_name:id @package.name:id @:id I'm not even sure if its the ids or something else causing the issues :(

Sent from my GT-I9100 using xda premium
For the most part framework layout redirect is supported but dangerous because if you're not running a ROM that matches it then it will probably crash stuff.

The calculator layout redirect may simply not work but since you can't direct to @android you'll have to build all the things needed into your values folder of the theme..

That means all the @ids etc and even then it may not work..I've been able to redirect framework layouts without too much trouble but haven't had much success redirecting other app layouts

Good luck.
 

m1keyb

Senior Member
Dec 23, 2011
399
247
0
For the most part framework layout redirect is supported but dangerous because if you're not running a ROM that matches it then it will probably crash stuff.

The calculator layout redirect may simply not work but since you can't direct to @android you'll have to build all the things needed into your values folder of the theme..

That means all the @ids etc and even then it may not work..I've been able to redirect framework layouts without too much trouble but haven't had much success redirecting other app layouts

Good luck.
afaik I've got everything where it should be, although I haven't added any attributes, I'll try adding them and maybe googling the logcat. Thanks

Sent from my GT-I9100 using xda premium
 

anthonycr

Senior Member
Mar 14, 2012
617
817
0
Albany, NY
I need some help. I'm updating all my themes to CM10 (yeah I know I'm behind everyone else) and I don't know where the background is for the icon in the notifications (the blue-ish square background). I know people have been through this before.

Sent from my LG-VM670 using Tapatalk 2
 

3rdstring

Senior Member
Dec 19, 2010
2,221
1,081
0
Cincinnati
I need some help. I'm updating all my themes to CM10 (yeah I know I'm behind everyone else) and I don't know where the background is for the icon in the notifications (the blue-ish square background). I know people have been through this before.

Sent from my LG-VM670 using Tapatalk 2
The blue comes from framework-res.apk\res\values\drawables.xml

Code:
<item type="drawable" name="notification_template_icon_bg">#55ff8800</item>
(changed to an orange hue).
 
  • Like
Reactions: ock and anthonycr
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone