• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root problem with UOT theme for Redux 1.2

Kibbster

Android Expert
Everytime I try to cook a theme for unthemed Redux I get a SHTF error.
This is with the Kitchens Framework and systemui and with me uploading the ones from the ROM itself.

Decompiling framework-res.apk UOT-04-28-08-03-3
I: Loading resource table...
I: Decoding resources...
I: Copying assets and libs...
Compiling framework-res.apk UOT-04-28-08-03-3
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
/home/circle/ver4/./data/working_dir/UOT-04-28-08-03-3/temp/fw_dec/res/layout/keyguard_screen_unlock_portrait.xml:5: error: Error: String types not allowed (at 'gravity' with value 'bottom|right|center').
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL7919831677182720057.tmp, -x, -0, arsc, -S, /home/circle/ver4/./data/working_dir/UOT-04-28-08-03-3/temp/fw_dec/res, -M, /home/circle/ver4/./data/working_dir/UOT-04-28-08-03-3/temp/fw_dec/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL7919831677182720057.tmp, -x, -0, arsc, -S, /home/circle/ver4/./data/working_dir/UOT-04-28-08-03-3/temp/fw_dec/res, -M, /home/circle/ver4/./data/working_dir/UOT-04-28-08-03-3/temp/fw_dec/AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more

Anyone else managed to cook a theme for Redux Unthemed?
Any ideas?
 
I'm pretty sure i did manage to cook a 1.2 theme when it was first released.

I have certainly decompiled and compiled using APK manager successfully too.

You got these directly out of your downloaded rom and didn't make any manual edits?

Have you tried cooking with different battery icon? You're using circle version 4? Can you try for example, honeycomb battery?

Edit, My own theme I now make manually anyways.
 
Its also worth cooking it without any changes.

It decopiles then recompiles with no changes.

The error seems to suggest it is adding something that APK tool doesnt like in the unlock.xml and cannot recompile it.

So Either 1) There is already something in that xml it doesn't like (if it cooks with no mods, this is not the case) OR

2) There is something with the mod you chose (circle v4) that is adding to the xml.

This is why I would like to see other mods chosen instead of the one used above. Would also like to see cooked with no mods.

Not sure what else is being added here other than battery.

EDIT> Theres another file with a V4 circle error:

Code:
I: Building resources...
/home/circle/ver4/./data/working_dir/UOT-04-28-08-29-1/temp/su_dec/res/values/public.xml:76:  error: Public symbol drawable/stat_power_background declared here is  not defined.
Exception in thread "main" brut.androlib.AndrolibException:  brut.common.BrutException: could not exec command: [aapt, p, -F,  /tmp/APKTOOL559445950504502242.tmp, -I, /root/apktool/framework/1.apk,  -S,  /home/circle/ver4/./data/working_dir/UOT-04-28-08-29-1/temp/su_dec/res,  -M,  /home/circle/ver4/./data/working_dir/UOT-04-28-08-29-1/temp/su_dec/AndroidManifest.xml]
This one is basically saying that the image stat_power_background has not been definied (is not referenced) in the public.xml file

Maybe there is an issue with that battery icon. Not sure which version 4 is (or which options are chosen)

Another interesting test would be to choose another rom from the drop down (not redux) and set the same options to see if it cooks. In fact after trying redux from drop down like Kewl suggests, this is probably the next best one to try. Then it narrows down to Uplaoded files, rom or kitchen

ie

1) Upload file fails, drop down works (issue with upload files)
2) Upload fails, drop down Redux fails (possible issue with redux)
3) Upload fails, Drop down Redux fails, Drop down alternative rom fails (Issue with kitchen / mod)
 
Its also worth cooking it without any changes.

It decopiles then recompiles with no changes.

The error seems to suggest it is adding something that APK tool doesnt like in the unlock.xml and cannot recompile it.

So Either 1) There is already something in that xml it doesn't like (if it cooks with no mods, this is not the case) OR

2) There is something with the mod you chose (circle v4) that is adding to the xml.

This is why I would like to see other mods chosen instead of the one used above. Would also like to see cooked with no mods.

Not sure what else is being added here other than battery.

Thanks, I'll have a look and try different battery icons.
Trying cooking just the framework now with no mods as supplied by the site.
My theme is Battery icons, Notification icons and Status icons.
 
Thanks, I'll have a look and try different battery icons.
Trying cooking just the framework now with no mods as supplied by the site.
My theme is Battery icons, Notification icons and Status icons.

Sorry just edited my last post. But if you try the below, possibly best way to narrow down the problem...


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

Another interesting test would be to choose another rom from the drop down (not redux) and set the same options to see if it cooks. In fact after trying redux from drop down like Kewl suggests, this is probably the next best one to try. Then it narrows down to Uplaoded files, rom or kitchen

ie

1) Upload file fails, drop down works (issue with upload files)
2) Upload fails, drop down Redux fails (possible issue with redux)
3) Upload fails, Drop down Redux fails, Drop down alternative rom fails (Issue with kitchen / mod)
 
Sorry just edited my last post. But if you try the below, possibly best way to narrow down the problem...


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

Another interesting test would be to choose another rom from the drop down (not redux) and set the same options to see if it cooks. In fact after trying redux from drop down like Kewl suggests, this is probably the next best one to try. Then it narrows down to Uplaoded files, rom or kitchen

ie

1) Upload file fails, drop down works (issue with upload files)
2) Upload fails, drop down Redux fails (possible issue with redux)
3) Upload fails, Drop down Redux fails, Drop down alternative rom fails (Issue with kitchen / mod)

It's the same theme I used on GV, although in this one I stopped trying to do the boot animation I used with GV in case that was causing the problem.
 
I noticed a few times the battery mods seemed to stuff things up... tried again a few hours later and it was sweet
 
File cooked fine without battery mod, so it looks like it's a battery mod issue.
I'll try a different battery when the site isn't full.

@turnerpctech
I've tried for two days now with the same result.
I agree though on previous ROMs if it was ever going to crap out it was usually doing the battery mod preview.
 
Might be worth posting in the XDA thread to let mendozinas know. if you let hom know which battery you chose and your UOT names.
 
Might be worth posting in the XDA thread to let mendozinas know. if you let hom know which battery you chose and your UOT names.

Done :)
Much happier now I have my themed icons and battery mods, even if the battery wasn't my first choice it's much nicer than the original :)
 
lol yup
In fact all the stock android battery icons are useless, and only slightly improved with percentage text on the battery as well with those ROMs that support it.
The Stock HTC icon is criminal.

Who'd think that a tiny block of colour is acceptable on a device that relies totally on it's battery and can chew through it at a fast rate of knots?

The mind boggles how Google or HTC thought it was a good UI feature.
 
Back
Top Bottom