yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] dully79:
Ive added redirections for TW (thanks [MENTION=4367200]pierx[/MENTION]) and Semc from my Simplicity theme from framework-res version 4.2 (Jelly Bean).

If you want updated redirections, and you are willing to create them, then contact me and i'll tell you how. It's an easy but long winded task.

Before i release the next version, I'm going to add the ability to create a separate apk for the custom icons.

It shouldn't take to long to implement but its my day of rest so it will have to wait for now.:p
[Miscellaneous Android Development] EncryptedCurse:
Well I feel stupid now. It's been a long night.

Anyways, it looks like I've ran into a new problem when compiling.

http://pastebin.com/adURSXqf
[Miscellaneous Android Development] dully79:
Open up colors.xml in XTheme\XThemeBase.zpk\res\values\ and goto line 64.

Change

@color/theme_text_tertiary_light

@color/com_android_calendar_header_text_theme_text_tertiary_light

Try compiling again, you may have to define strings (option 6) if you have closed the window.
[Miscellaneous Android Development] EncryptedCurse:
It's still not working.

------------------------
9:03:20.16 : Sun 09/21/2014
------------------------
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b20)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Jake\Desktop\CMX\XTheme\XThemeBase.apk\res\values\colors.xml:64: error: Error: No resource found that matches the given name (at 'com_android_calendar_header_text' with value '@color/com_android_calendar_header_text_theme_text_tertiary_light').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, -F, C:\Users\Jake\AppData\Local\Temp\APKTOOL339652816113576944.tmp, -0, arsc, -I, C:\Users\Jake\apktool\framework\1.apk, -S, C:\Users\Jake\Desktop\CMX\XTheme\XThemeBase.apk\res, -M, C:\Users\Jake\Desktop\CMX\XTheme\XThemeBase.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, -F, C:\Users\Jake\AppData\Local\Temp\APKTOOL339652816113576944.tmp, -0, arsc, -I, C:\Users\Jake\apktool\framework\1.apk, -S, C:\Users\Jake\Desktop\CMX\XTheme\XThemeBase.apk\res, -M, C:\Users\Jake\Desktop\CMX\XTheme\XThemeBase.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, -F, C:\Users\Jake\AppData\Local\Temp\APKTOOL339652816113576944.tmp, -0, arsc, -I, C:\Users\Jake\apktool\framework\1.apk, -S, C:\Users\Jake\Desktop\CMX\XTheme\XThemeBase.apk\res, -M, C:\Users\Jake\Desktop\CMX\XTheme\XThemeBase.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
[Miscellaneous Android Development] dully79:
Post line 64
[Miscellaneous Android Development] EncryptedCurse:
<color name="com_android_calendar_header_text">@color/com_android_calendar_header_text_theme_text_tertiary_light</color>

It's just as you told me.
[Miscellaneous Android Development] dully79:
Search for "header_text_theme_text_tertiary_light" anywhere in colors.xml.

It will look like this

<color name="SOME VALUE_header_text_theme_text_tertiary_light">@color/

If you find and entry then replace

com_android_calendar_header_text_theme_text_tertiary_light

with

NAME OF PACKAGE_header_text_theme_text_tertiary_light

e.g

If its under the android block

android_header_text_theme_text_tertiary_light

If you dont find one, create one at the bottom of the calendar block

<color name="com_android_calendar_header_text_theme_text_tertiary_light">@color/AN EXISTING NAME OR COLOR CODE
[Miscellaneous Android Development] Xanthos58:
I get this error when porting a theme

I: Building resources...

invalid resource directory name: C:\Users\Leo\Downloads\CMX-beta-v3\XTheme\XThemeBase.apk\res/aapt

invalid resource directory name: C:\Users\Leo\Downloads\CMX-beta-v3\XTheme\XThemeBase.apk\res/apktool

invalid resource directory name: C:\Users\Leo\Downloads\CMX-beta-v3\XTheme\XThemeBase.apk\res/bin

invalid resource directory name: C:\Users\Leo\Downloads\CMX-beta-v3\XTheme\XThemeBase.apk\res/framework-res

invalid resource directory name: C:\Users\Leo\Downloads\CMX-beta-v3\XTheme\XThemeBase.apk\res/generic-public-key

invalid resource directory name: C:\Users\Leo\Downloads\CMX-beta-v3\XTheme\XThemeBase.apk\res/lib

invalid resource directory name: C:\Users\Leo\Downloads\CMX-beta-v3\XTheme\XThemeBase.apk\res/redirections

invalid resource directory name: C:\Users\Leo\Downloads\CMX-beta-v3\XTheme\XThemeBase.apk\res/resource-redirections

invalid resource directory name: C:\Users\Leo\Downloads\CMX-beta-v3\XTheme\XThemeBase.apk\res/valuesBase

invalid resource directory name: C:\Users\Leo\Downloads\CMX-beta-v3\XTheme\XThemeBase.apk\res/version

invalid resource directory name: C:\Users\Leo\Downloads\CMX-beta-v3\XTheme\XThemeBase.apk\res/XMLGenerator

invalid resource directory name: C:\Users\Leo\Downloads\CMX-beta-v3\XTheme\XThemeBase.apk\res/XThemeBase

invalid resource directory name: C:\Users\Leo\Downloads\CMX-beta-v3\XTheme\XThemeBase.apk\res/zipalign
[Miscellaneous Android Development] dully79:
Remove the folders from xtheme in the log
[Miscellaneous Android Development] Xanthos58:
Did that and reran it with no change in result

Sent from my SGH-I537 rooted, running GPE 4.4.4 ROM
[Miscellaneous Android Development] dully79:
You removed the folders from xtheme called aapt,apktool,bin etc?

I don't know what to tell you. If you removed them, then you should not be getting invalid resource directory.
[Miscellaneous Android Development] aoleary:
Hi dully79.

After I modified the XML's as per your directions, I launched the tool again and selected manual and option 7 to compile again.

I then selected option 8 and got the error above..

The theme name "X_L-ReadyMLight1.7c.apk" was only used once on my first test run, and I never used it again, but it keeps looking for that name if I do a manual compile, even though I extracted CMX to a new folder, it still keeps that name for some reason??

Thx for your help :)
[Miscellaneous Android Development] dully79:
It's looking for that name as it is set from the name of the original apk with an X prefixing it.

So if you put an apk in CMThemeIn called "SomeRandomName.apk", it will compile and look to sign "X_SomeRandomName.apk.

If it fails to compile then it won't create "X_SomeRandomName.apk" which means it cannot find it to sign.

Read the log and fix the errors, if you can't then post the log.
[Miscellaneous Android Development] dully79:
A little teaser for the upcoming release tomorrow:

[IMG="Teaser"]http://i58.tinypic.com/x55hrn.jpg[/IMG]

;)
[Miscellaneous Android Development] EncryptedCurse:
Not necessarily related to this, but how do you remove the on/off text from toggles?

The Android L Mint theme doesn't look right with them.
[Miscellaneous Android Development] dully79:
Goto XTheme\XThemeBase.apk\res and add the following

above

the resource closing brackets "</ >"

xml\android.xml

<item name="string/capital_off">@string/capital_off</item>
<item name="string/capital_on">@string/capital_on</item>

values\strings.xml

<string name="capital_on">" "</string>
<string name="capital_off">" "</string>

The files should now look like this:

xml\android.xml

<item name="string/capital_off">@string/capital_off</item>
<item name="string/capital_on">@string/capital_on</item>
</resource-redirections>

values\strings.xml

<string name="capital_on">" "</string>
<string name="capital_off">" "</string>
</resources>
[Miscellaneous Android Development] dully79:
Update

beta v4 in download tab or CMX folder in post #4

Removed jarsigner.

Removed framework-res.apk to reduce zip size (added to CMX folder in post #4 if required).

Added framework-res.apk redirections (4.2 Jelly Bean) for Sony and Samsung (thanks [MENTION=4367200]pierx[/MENTION]) devices.

Added the ability to port custom icons and wallpaper.If supported by the ported theme to a standalone Apex/Nova theme.apk.

Fixed bug where invalid resource directories where created in XTheme.

Cleaned and re-wrote some code inc. an extra log for xml and png porting. This can be found in tools\ called assets.txt

To use the new custom icon porter option, you will find it under option 2 (Manual) and 9.

You must have decompiled the apk in CMThemeIn prior to choosing this option.

Enter your .apk out name without spaces or the apk extension.
[Miscellaneous Android Development] eurochild:
error compiling. log attached..

------------------------

0:54:17.13 : 24-Sep-14

------------------------

java version "1.7.0_67"

Java(TM) SE Runtime Environment (build 1.7.0_67-b01)

Java HotSpot(TM) Client VM (build 24.65-b04, mixed mode, sharing)

I: Baksmaling...

I: Loading resource table...

I: Loaded.

I: Decoding AndroidManifest.xml with resources...

I: Loading resource table from file: C:\Users\admin\apktool\framework\1.apk

I: Loaded.

I: Regular manifest package...

I: Decoding file-resources...

I: Decoding values */* XMLs...

I: Done.

I: Copying assets and libs...

The system cannot find the file specified.

I: Baksmaling...

I: Loading resource table...

I: Loaded.

I: Decoding AndroidManifest.xml with resources...

I: Loading resource table from file: C:\Users\admin\apktool\framework\1.apk

I: Loaded.

I: Regular manifest package...

I: Decoding file-resources...

I: Decoding values */* XMLs...

I: Done.

I: Copying assets and libs...

I: Checking whether sources has changed...

I: Smaling...

I: Checking whether resources has changed...

I: Building resources...

invalid resource directory name: C:\Users\admin\Desktop\cmxv4\XTheme\XThemeBase.apk\res/drawable-holodark

invalid resource directory name: C:\Users\admin\Desktop\cmxv4\XTheme\XThemeBase.apk\res/drawable-holodark-xxhdpi

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, -F, C:\Users\admin\AppData\Local\Temp\APKTOOL5800367176277928596.tmp, -0, arsc, -I, C:\Users\admin\apktool\framework\1.apk, -S, C:\Users\admin\Desktop\cmxv4\XTheme\XThemeBase.apk\res, -M, C:\Users\admin\Desktop\cmxv4\XTheme\XThemeBase.apk\AndroidManifest.xml]

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)

at brut.androlib.Androlib.buildResources(Androlib.java:283)

at brut.androlib.Androlib.build(Androlib.java:206)

at brut.androlib.Androlib.build(Androlib.java:176)

at brut.apktool.Main.cmdBuild(Main.java:228)

at brut.apktool.Main.main(Main.java:79)

Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, -F, C:\Users\admin\AppData\Local\Temp\APKTOOL5800367176277928596.tmp, -0, arsc, -I, C:\Users\admin\apktool\framework\1.apk, -S, C:\Users\admin\Desktop\cmxv4\XTheme\XThemeBase.apk\res, -M, C:\Users\admin\Desktop\cmxv4\XTheme\XThemeBase.apk\AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)

... 5 more

Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, -F, C:\Users\admin\AppData\Local\Temp\APKTOOL5800367176277928596.tmp, -0, arsc, -I, C:\Users\admin\apktool\framework\1.apk, -S, C:\Users\admin\Desktop\cmxv4\XTheme\XThemeBase.apk\res, -M, C:\Users\admin\Desktop\cmxv4\XTheme\XThemeBase.apk\AndroidManifest.xml]

at brut.util.OS.exec(OS.java:89)

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)

... 6 more
[Miscellaneous Android Development] dully79:
What CMX version are using and what theme are you porting?

All you need to do is remove the directories listed in the log referred to as invalid.
[Miscellaneous Android Development] eurochild:
v4 and this theme https://play.google.com/store/apps/details?id=com.rush25.kitkatwhite&hl=en
[Miscellaneous Android Development] dully79:
Well thats been pulled.

I'll fix it tomorrow as its, late, im tired, and i cannot be bothered to fix bugs i thought had been fixed and tested.:(
[Miscellaneous Android Development] Abaddon:
can't seem to find the v4 in the download folder in post 4 or am I blind? :p
[Miscellaneous Android Development] dully79:
It's been removed until tonight when I fix a couple of things.
[Miscellaneous Android Development] dully79:
beta v4.1 is up.

Tested with 4 themes, other than general xml porting errors all is good.
[Miscellaneous Android Development] aoleary:
Hi dully79.

I have run 4.1 on the newest L-ready theme (1.8.1), but still get some errors.

I sent you a Google Drive link via PM for you to download as I don't know of the legality of posting that directly on the forum.

The link has the extracted CMX folder with the theme already compiled with errors.

I did each step manually, and have tried step 7 about 4 times to remove the errors.

I still get errors, but strangely, they are related to xml's that I modified to correct drawable errors:

e.g. Error: No resource found that matches the given name (at 'drawable' with value '@drawable/com_android_email_custom_actionbar_bevel').

Do you mind having a look?

The log has all mods I made to the XML with the various corrections..

Thx
[Miscellaneous Android Development] dully79:
Search for an image called custom_actionbar_bevel and then edit the xmls to suit
[Miscellaneous Android Development] aoleary:
Hi dully79.

I found two png's labelled "custom_actionbar_bevel.9.png".

When I modified the xml's to add the ".9", I still get errors:

See attached text file of the latest errors.
[Miscellaneous Android Development] dully79:
You don't add the .9 you rename it whatever the name of the image is.

package_name_custom_actionbar_bevel
[Miscellaneous Android Development] aoleary:
Hi dully79.

I have two questions.

However, I have to post them in the attached text file as this site wont let me post it in the forum.

Thx for you help.
[Miscellaneous Android Development] scott45333:
I've been trying to port the Flux theme, but have been unsuccessful. Would anyone be interested in giving it a shot? I can share the apk if needed.
[Miscellaneous Android Development] dully79:
I've suddenly developed a headache.:(
[Miscellaneous Android Development] dully79:
What theme are you trying to port so i can try to recreate the errors.

You only create one instance of the drawable redirection in the package xml.

You need to point the redirection to the name of the png.

Example

<item name="drawable/ab_bottom_solid_dark_holo">@drawable/android_ab_bottom_solid_dark_holo</item>

will replace the png named "ab_bottom_solid_dark_holo" with "android_ab_bottom_solid_dark_holo"

If you dont have a png named "android_ab_bottom_solid_dark_holo" in your thme it will error as it cannot find it.

Go here and read about redirections:

http://xdaforums.com/showthread.php?t=2334637

I fact everyone should go and read it!

(at 'drawable' with value '@drawable/com_android_systemui_white30').
(at 'drawable' with value '@drawable/com_android_systemui_invisible').

Are in values\drawable.xml

Try posting a log adhering to the rules in the OP.

Read the FAQ

READ THE FAQ

Look in the folder in post #4
[Miscellaneous Android Development] Xanthos58:
I was trying to port L Ready M Light CM11 Theme
[Miscellaneous Android Development] dully79:
Ive ported that with no errors.

You may need to apktool install SystemUI.apk. (google it).
[Miscellaneous Android Development] Xanthos58:
I've tried that, now v3 is doing it as well
[Miscellaneous Android Development] dully79:
Like i say, it worked fine when i ported it.

And Its not a script error, its an apktool error.
[Miscellaneous Android Development] Xanthos58:
So should I redownload the latest version?
[Miscellaneous Android Development] dully79:
Latest version of what?
[Miscellaneous Android Development] Xanthos58:
Cmx
[Miscellaneous Android Development] dully79:
Do what you want, you may need the latest version of apktool to fix the errors as its not a script error.
[Miscellaneous Android Development] resudo:
I'm sorry for the trouble but could you please port the latest 6.2 version? Thee one you have is 5.5... Thanks!

EDIT: I can't even install the theme on my PA 4.6 4.4.4 kitkat Note 2. It says parsing error.
[Miscellaneous Android Development] dully79:
I'm starting to get tired of these monotonous posts now.:mad:

Maybe i should just close the thread, delete everything and disappear again.

Why are you quoting a post for someone else?

The errors you are receiving are simple and easily fixed.

I am not porting other peoples work for a couple of reasons:

I am busy with other tasks.

I will not maintain the ported theme as i do not use other peoples themes.

My time is precious and i have no incentive to do so. I have spent a lot of time providing support to people who have the most basic errors, with no thanks in return.

The only reason i have ported themes previously is solely for testing purposes.

Finally

CHECK OUT THE FOLDER IN POST #4.

It has the theme you want.

Edit: And by the way, I only created this tool because i was sick to death of seeing the same stupid question being asked on the HKTheme engine thread.

I dont use this tool other than trying to improve it to help other people.
[Miscellaneous Android Development] resudo:
I already told you that I can't install neither of the themes in your mediafire folder. They give me a parsing error. I tried to be really kind to you but you seem to be out of control. If you can't handle XDA users requests either close this thread or even quit XDA for good. Even though I respect you for your work and I truly appreciate it, I will not accept this attitude towards me. What might look stupid to you, doesn't look stupid to me. I never asked you to maintain the theme either. Only port the 6.2 version because 5.5 wont install for me. I understand you have other things to do. everyone has his/her own life, but at least be nice to other people. By the way, "Why are you quoting a post for someone else?" really? Did you not have anything else to write? This is hilarious.
[Miscellaneous Android Development] dully79:
You didnt tell me you couldnt install the themes, you edited your post to tell me. There have literally been hundreds of downloads of that theme and your the only one reporting an install error which suggests its your end not mine. Also if you have PA why arent you using theme chooser?

"Out of control", lmao, have you seen how many ridiculous posts are in this thread? I've been very helpful and tried to reply to all of them. Maybe i should delete all up to post 4 and lock it so people can only reference and I dont have to provide any support.

I'm not referring to you per se, i'm referring to the posts in general throughout, plus the PM's I get bombarded with asking the most basic things.

FAQ

Where is your log after you said you removed the errors?

How can i help you without a log?
[Miscellaneous Android Development] resudo:
I actually edited my post shortly after you pressed "reply" and while writing the reply to me. I didn't change my post after you replied. Anyway I kinda understand your situation and don't wan't to be another thing to trouble you.

The changelog was the same after fixing the problem(I was using CMX 3.0) Now that I'm using 4.1 I still cant do it but here's my new log

I want to use this even though I have PA theme chooser. The reason is that I want to combine a theme I have bought(using theme chooser) and use this theme's system ui with hk manager.
[Miscellaneous Android Development] dully79:
res\xml\com_Mata_YTplayer.xml: Invalid file name: must contain only [a-z0-9_.]
res\xml\com_Mata_YTplayer.xml: Invalid file name: must contain only [a-z0-9_.]
res\xml\com_Mata_YTplayer.xml: Invalid file name: must contain only [a-z0-9_.]
res\xml\com_jrtstudio_AnotherMusicPlayer.xml: Invalid file name: must contain only [a-z0-9_.]
res\xml\com_jrtstudio_AnotherMusicPlayer.xml: Invalid file name: must contain only [a-z0-9_.]
res\xml\com_jrtstudio_AnotherMusicPlayer.xml: Invalid file name: must contain only [a-z0-9_.]
res\xml\com_motorola_MotGallery2.xml: Invalid file name: must contain only [a-z0-9_.]
res\xml\com_motorola_MotGallery2.xml: Invalid file name: must contain only [a-z0-9_.]

Self explanatory these cannot contain upper case letters. Edit the xml name to lower case, then edit the redirection name inside redirections.xml to match the new xml name.

res\drawable-nodpi\preview.png:0: error: Resource entry preview is already defined.
res\drawable-nodpi\preview.jpg:0: Originally defined here.

Delete one of these images.
[Miscellaneous Android Development] resudo:
Alright I will try this out and report if it worked.

EDIT: Nope didnt work. Here's the new log.
[Android Q&A, Help & Troubleshooting] RaalFy:
Hello,

I have a Huawei BM632w 4G LTE CPE with the popular blank WAN problem. I've searched for a solution to the blank wan problem and the only offered solution is to restore the firmware on the device. I need the specific firmware from my carrier but I'm unable to find any. I have access to an identical working unit, how can I backup the firmware on the working unit to restore it to the defective one?

Any help is appreciated
[Android Q&A, Help & Troubleshooting] phist0:
Hello,

Did you find a solution to this problem ?
[General Questions and Answers] proxydouble1:
I have a THL W100 Rev1 Phone.

Recently I installed CWM Recovery on it. I also flashed my original(Stock) rom to a Miui Rom I found on Needrom.

Problem is, Data won't work on that Rom, for whatever reason, so I'm not interested in keeping it and much rather go back to my original rom.

I tried finding the Stock rom for my phone, but some are in .rar files and require a different flashing method...

Can someone point me in the right direction so I can get back my stock rom?

Is there a .zip file I can use in CWM Recovery?

Thanks for the help in advance....I'm sorry for the noob question...
[General Questions and Answers] proxydouble1:
bump :(
[General Questions and Answers] proxydouble1:
Day 3...and I'm still bumping
[General Questions and Answers] proxydouble1:
Day 4....bump
[General Questions and Answers] proxydouble1:
Day 5 --- Bump~
[General Questions and Answers] proxydouble1:
Day 5.5~ Bump~
[General Questions and Answers] proxydouble1:
Day 6~ Bump
[General Questions and Answers] proxydouble1:
Bump~
[General Questions and Answers] proxydouble1:
bump
[General Questions and Answers] proxydouble1:
bump~
[General Questions and Answers] TGomews:
In order to flash .rar files you need to use the program SP flash tool on your pc. You can find tutorials on Needrom.