[Q] Theme improperly compiled - Samsung Galaxy W I8150

I decompile the OutlineCyanogenModTheme.apk and edit somethings [apktool metod] signed the apk and compiled again, but when I apply the theme, this happen - This theme was improperly compiled and cannot be applied.Please report this incident to the theme author.
Am i doing some thing wrong?
I want modify MMS background.
(files and pictures are attached)
Sorry for my english.

Related

[Q] porting theme and trying battery circle mod - not working

Hi all
at the moment I'm trying to port a Theme from OpenDesire to Cyanogen RC2.
I got my framework-res.apk, replaced all those icons in there, that looks pretty nice. So that part worked.
Now I wanted to apply a battery circle mod to my theme but i'm stuck here.
I got apkmanager 4.8 and decompiled my already patched framework-res.apk to edit some xml files. I added the icons, i've put them into my public.xml, added some other xml files needed and now I'm trying to recompile that stuff. The tool produces an error about not declared images.
Looks like this here: drawable/zoom_plate declared here is not defined.
There are about 100 of these errors and these are no files I've touched.
I tried to decompile the original Cyanogen RC2, not even patched, framework, editing nothing and compiling again.. same error.
Am I missing something?
Solved.
Actually I confused my sources, after searching and editing I managed to get my theme working.
There were some files in the specified dir not mentioned in the public.xml, an some lines defining files not being there.
Had the idea after a break and a coffee

theme chooser to zipthemer?

Was wondering if anyone out there knows of a way to take a theme chooser (apk) theme and turn it into a zipthemer theme. I know you can extract the apk just as if it were a zip file but I don't know what images go into what packages for zipthemer. Essentially I have a theme that was free that I love but I just upgraded my ROM to pa3.94 which doesn't have theme chooser anymore so I'm hoping there's a way to create a zipthemer theme with the extracted theme chooser theme. Anyone? Thank you in advance for any help.
danwguy said:
Was wondering if anyone out there knows of a way to take a theme chooser (apk) theme and turn it into a zipthemer theme. I know you can extract the apk just as if it were a zip file but I don't know what images go into what packages for zipthemer. Essentially I have a theme that was free that I love but I just upgraded my ROM to pa3.94 which doesn't have theme chooser anymore so I'm hoping there's a way to create a zipthemer theme with the extracted theme chooser theme. Anyone? Thank you in advance for any help.
Click to expand...
Click to collapse
I second this request, good idea. I too have a theme I love but am on pa 3.95.
danwguy said:
Was wondering if anyone out there knows of a way to take a theme chooser (apk) theme and turn it into a zipthemer theme. I know you can extract the apk just as if it were a zip file but I don't know what images go into what packages for zipthemer. Essentially I have a theme that was free that I love but I just upgraded my ROM to pa3.94 which doesn't have theme chooser anymore so I'm hoping there's a way to create a zipthemer theme with the extracted theme chooser theme. Anyone? Thank you in advance for any help.
Click to expand...
Click to collapse
There are several ways to do what you want to do, regardless from the fact that I hate roms without theme chooser and I have the strong suspect that this feature or similar will be officially integrated in KLP 5.0, hopefully, but:
1) you can create a vrtheme.zip, this way you only need a deodex system/app and the images will be flashed into the apk's, so non need for theme chooser
2) an easy one is UOT kitchen, you can create a basic theme composed by framework and systemUI, ofc you want to flash the output from the kitchen with a custom recovery, so no need for theme chooser..I don't know how is the support with android 4.x.x, but since it's very popular I asuume it will support latest android release (not sure for 4.3 specifically)
3) you can use exposed framework, just google "xposed framework" it will give you a lot of results, pick up one and start learn how it works..indeed it's basically a series of modules (apk) that allow you a series of customizations, among them, theming ones (battery, background, statusbar icons..etc)
4) but I understand this is probably out of your skills (just assuming, no offence), you can theme framework and systemUI to obtain what you want..you said the theme it's free, so you can do this, but it's very complicated, it implies xml edits, not just a right collocations of png's
5) You can also build a rom from source, and cherry pick the theme chooser code both from cyanogen git or aosp git (from a rom like slim rom or purity that has theme chooser as a feature in their code)...ofc, this is a dev job, I did it once on aosp, and it's not easy at all...theme chooser is more than two apk's, it requires a lot of framework edits, both in smali code and in the apk itslef, and a series of edits in setting.apk...very long way, very complicated, results are not 100% stable if you don't know exactly what you're doing..I mention this way of obtain what you asked just for the sake of the question.
..that's all I have to share for now..I personally use (when it's needed) vrtheme system, it's fast and clean, and allows you some xml customizations, but speaking frankly I eneded up using only rom that support theme chooser. Hope this helps:good:
ps. if you need further explanations, just ask me here, I'll help you as much as I can, but for now, take a look at the links below
Vr theme
http://forum.xda-developers.com/showthread.php?t=2129306
Xposed framework
http://forum.xda-developers.com/showthread.php?t=157440
UOT kitchen
http://uot.dakra.lt/
Basic guide for theming
http://forum.xda-developers.com/showthread.php?t=916814

SOLVED: [Q] apktool compile error: need HELP

Hoping an "apktool" wizard can help me resolve a compile error driving me up a wall. I've been using apktool for past 6 months successfully making various system and data apk changes, but this one has me stumped. Experimenting with making a few simple color changes in my active Gmail v4.5.2 (inverted theme) apk. It successfully decompiles, but cannot recompile. To eliminate any of my changes, I started over and decompiled the Gmail apk... then immediately recompiled, but get the "No resource identifier found for attribute..." error (attached). I updated my JAVA and re-installed apktool... same issue. Anyone have guidance on what the issue might be? attaching screenshot of my CMD window commands in both WORD and PDF formats. Thx
EDIT: SOLVED I got it solved thanks to recognized themer "Ticklefish" in the UK. Turns out, the apk I was editing included 4.2 code (WidgetCategory)... and apktools could not handle this during recompile with my 4.1.2 framework. I just edited the 4 xml files which had the 4.2 code and removed those lines... made my theming edits... and it recompiled flawlessly. Then signed the apk and pushed to /system/app. If anyone else runs into similar apktool compile errors, this is why and how to resolve.

Strange bug after modifying Settings.apk

So I installed Mokee Rom (KitKat) and as I usually do on new ROM, I edited Settings.apk. I decompiled it with apktool and I added the lacking translated strings in values-fr, so that the app can be entirely translated in french. Then I recompiled it, I took the resources.arsc from the recompiled settings.apk and I copied it on desktop. I then used the file to overwrite the resources.arsc from the original Settings.apk. It did work and I now have a fully translated app. There's only one small bug, when I click on the option to limit sms message under Security section, the Settings app crash. It did not happen before I did my modification. What could cause this?

[Theme] MIUI v5 inspired theme for EMUI 4.0 by Wolfen [Update 2016-09-28] [ABANDONED]

MIUI v5 inspired Dark Custom theme
​
Theme is compatible ONLY with EMUI 4.0 and was tested with P8 Lite running B564 and B574 firmware
Features:
- MIUI inspired theme (not intended to be 1 to 1 reproduction of MIUI interface)
- Dark UI for messaging
- Slightly Dark UI for contacts
- Some framework/icon changes
- Music Player lockscreen controls themed
- Changes to default EMUI widgets (90% transparency as default) - the widgets no longer mirror MIUI widgets
- Total of 2932 MIUI icons
Credits for assets being used:
- EMIUI by maximax2795 ( http://forum.xda-developers.com/ascend-p7/themes-apps/theme-emui-3-1-emiui-beta-t3233164 )
- ForR by For Team
- MIUIv5 by Alexander Moiseenko
- Miui V5 Darkness by Jasonevil (CM10.1 theme)
- New default wallpaper found by Vsx06 ( old/default MIUIv5 wallpaper can be downloaded from here : http://miuiandroid.com/wp-content/uploads/2013/09/wallpaper_006.jpg )
- Default Font (Thanks to Benj Esguerra) ( https://plus.google.com/112627753943691303063/posts/LJ2mong7MuX )
WARNING! Please read the below HOW-TO before applying!
Due to the size of the MIUI v5 dark custom theme (and limit on XDA for attachements) you need to download two ZIP files - extract them BOTH into the same directory (you will end up with two new files with extensions 001 and 002). Use 7-zip packer ( www.7-zip.org ) to extract the archive starting with 001. Finally you will get directory with HWT file.
If you want to have the new theme without the new font (or to keep the font you have set so far):
1. Download theme.
2. Extract theme (hint above).
3. Copy to the HWThemes folder on your mobile.
4. Apply theme.
If you want to have the theme with the new font (new font is the one you can see on the screenshots) please do the following: (WARNING! THIS WILL OVERWRITE THE SYSTEM FONT IN EMUI4.0!):
1. Download MIUIDark_CUSTOM_FONT.zip
2. Extract zip file.
3. Copy extracted theme file into HWThemes folder on your mobile.
4. Apply MIUIDark Custom FONT theme.
5. Do the same steps as above for the theme and apply the theme.
If you want to restore the default EMUI 4.0:
1. Download RestoreDEFAULT_Emui40FONT.zip
2. Extract zip file.
3. Copy extracted theme file into HWThemes folder on your mobile.
4. Apply RestoreDEFAULT Emui40FONT theme.
(you may need to reapply my theme if you want to have it again)
Download links for the theme:
See attachments section of this thread.
Download link for the new font - MIUIDark CUSTOM FONT (Droid Sans):
MIUIDark_CUSTOM_FONT.zip (6.10 MB) http://forum.xda-developers.com/attachment.php?attachmentid=3807078&stc=1&d=1467994251
Download with the default font which can be restored:
RestoreDEFAULT_Emui40FONT.zip (4.96 MB) http://forum.xda-developers.com/attachment.php?attachmentid=3807079&stc=1&d=1467994251
P.S. If you like this theme - rate the thread with 5 stars
P.S.2. I have sold my P8 Lite. Project is now abandoned and no future updates should be expected.
dude, I like the dark theme... but can I make a request?
can you re-make the theme, so it would also change the system settings background?
plain white with black text just isn't my thing...
I know that some themes can change that (full UI theming), I had a theme like that some time ago, but I can't find it anymore...
so that's why I'm asking you
thanks in advance
konopla4 said:
dude, I like the dark theme... but can I make a request?
can you re-make the theme, so it would also change the system settings background?
plain white with black text just isn't my thing...
I know that some themes can change that (full UI theming), I had a theme like that some time ago, but I can't find it anymore...
so that's why I'm asking you
thanks in advance
Click to expand...
Click to collapse
I also would like to change the settings part at some point, so the update is possible.
Since there is no reasonable documentation available on the Huawei themes and the xml files are partialy in Chinesse (which I totally don't understand) it however may take a while. Unless I find any other theme with fully themed settings so I can review the XML file and assets used just to update the assets and XML files with the dark MIUI theme. In other words - depending on my free time I'll try to update it, however having ANY theme (compatible with EMUI 4.0) with that part themed would make this way quicker
wolfensg said:
I also would like to change the settings part at some point, so the update is possible.
Since there is no reasonable documentation available on the Huawei themes and the xml files are partialy in Chinesse (which I totally don't understand) it however may take a while. Unless I find any other theme with fully themed settings so I can review the XML file and assets used just to update the assets and XML files with the dark MIUI theme. In other words - depending on my free time I'll try to update it, however having ANY theme (compatible with EMUI 4.0) with that part themed would make this way quicker
Click to expand...
Click to collapse
maybe I can find a full theme for you to re-make, so you'd only have to do a copy - paste?
konopla4 said:
maybe I can find a full theme for you to re-make, so you'd only have to do a copy - paste?
Click to expand...
Click to collapse
It's not as easy as to just "copy/paste" stuff Assets need to be properly scaled, therefore in some cases the 9patch needs to be applied - and since I do not have any HWT previewer on PC I need to compile the HWT file - send it to mobile, apply theme, check how does it look like, get back to PC... etc... the same with updating XML file - since the naming used by Huawei is somewhat weird I keep updating one parameter at a time and check the results.
Anyway - having something built anyhow would help a lot as the amount of "change-compile_package-apply_on_phone" would be minimised
Example 1 (bit of XML config for Contacts):
<!-- 新建联系人actionbar标题字体颜色-->
<color name="contact_eidtor_title_color">#ffffffff</color>
<!-- section title 字体颜色 -->
-- Yes, the parameter name is "eidtor" not "editor"
Example 2 (asset image files):
Asset file name: res\drawable-xxhdpi\daier_call_btn_normal.9.png
-- Yes... the filename says "daier" not "dialer"
Anyway... guessing the correct file naming or parameter naming especialy for something missing in the configuration XML or in the asset image directories is sometimes tricky as you can see and may be a bit of challenge (that is why having a sample is a good help - because I can then copy and paste and know that the parameter name is "contact_eidtor_title_color" and not to experiment and wonder why the "editor" does not work
New update.
Hi! I really like your dark theme and i got a little request: can you please make a dark text when typing a SMS? Right now it's a light-gray color on white background and as result it's really hard to see something. Thanks!
V-Rico said:
Hi! I really like your dark theme and i got a little request: can you please make a dark text when typing a SMS? Right now it's a light-gray color on white background and as result it's really hard to see something. Thanks!
Click to expand...
Click to collapse
I've changed the compose box to dark. First I've tried to change the color text but the color tag seems to be shared with another part of the UI...
No wonder there are lots of weird themes in the net... the Huawei tags do not make any sense...
Updated version 11 attached.
wolfensg said:
I've changed the compose box to dark. First I've tried to change the color text but the color tag seems to be shared with another part of the UI...
No wonder there are lots of weird themes in the net... the Huawei tags do not make any sense...
Updated version 11 attached.
Click to expand...
Click to collapse
It looks cool now, thanks!
New update for MIUI light and dark to revision 13. All other themes removed from thread.
New update - v14.
New update to the themes.
Please make a version of theme that doesnt override font, thanks
V-Rico said:
Please make a version of theme that doesnt override font, thanks
Click to expand...
Click to collapse
Version without the font attached.
Small update to MIUI Custom (both with font and without font).
Changes include icons in settings tab, backgrounds for various UI elements, few additional icon/asset fixes.
Great work mate.. Thanks
Sent from my ALE-L21 using Tapatalk
Attached you'll find two screenshot explaining why it ain't as easy to create a Huawei theme... and to be more precise - the dark theme with white text.
Yes... I have changed everywhere text color to white ( FFFFFF ) and here is the result...
Sometimes there is just missing tag in XML - once I add it (I need to guess the name) and set it to FFFFFF it MAY change the color to white as well. Unfortunately 1) It may also change some other UI element 2) The tag may have "by design" mispelled name like "eidtor" instead of "editor" or "daier" instead of "dialer" ... this is also something I need to either guess or get from another theme by analysing its XML files...
So... if anyone of you guys - have the documentation made by Huawei (or anybody else) about theming EMUI 4.0 - please let me know Trying to guess everything is time consuming and sometimes also impossible (I cannot guess what type of mistake they did in the tag name or asset file name
Anyway - enjoy the themes if you like them
New version of MIUI v5 dark custom theme: rev. 21
Changes:
1. Updated GPS icon (now matches the rest)
2. Updated graphic assets for messaging (previously white on white while searching for contacts)
Older versions of MIUI based themes were removed.
Update 22: Added lockscreen music controls theme.

Categories

Resources