yashsingh1/xdaforums huggingface dataset:
[Gen8, Gen9, Gen10 Themes and Apps] fisha21:
Have attached the MOD folder exactly as I have it configured. Using framework-res.apk from Uruk0.7 as stock. I noticed that after each run, the DECOMPILED folder remains empty, did think that was odd.

Also, get the following error when running the script, don't recall seeing that before:

Checking environment...Done.
Checking programs...Done.
Checking apktools...Done.
Clearing environment...Done.
Analizing MOD...
MOD contains 'png' files: [YES] (1597)
MOD contains 'xml' files: [YES] (3) Need to recompile
MOD contains '9.png' files: [YES] (290) I hope you did your homework (See Patch9)
MOD contains 'png', 'xml' files with same name: [NO]
[COLOR="Red"]FrameWorkBuilder.sh: 261: [[: not found
FrameWorkBuilder.sh: 276: [[: not found
FrameWorkBuilder.sh: 276: 1: not found[/COLOR]
Unpacking framework-res.apk...Done.
Copy UNPACKED to COMPILED...Done.
Applying MOD...Done.
Repackaging COMPILED to framework-res.apk...Done.

The frustrating bit is that I had it working last weekend, only change I made was to add more 9patch files to the MOD folder...
[Gen8, Gen9, Gen10 Themes and Apps] wdl1908:
This is strange. What distro are you running?

can you execute these commands on a command line and paste the result?

type test
type '['
type '[['
type ']]'
type ']'
[Gen8, Gen9, Gen10 Themes and Apps] fisha21:
Am running Ubuntu 10.04, same as I was last weekend when I made a working framework. Apart from the automatic system updates, the only system adjustment I've made was to add adb.exe to usr/local/bin so I could run adb from any folder.

Test results:

sarju@ubuntu:~$ type test
test is a shell builtin
sarju@ubuntu:~$ type '['
[ is a shell builtin
sarju@ubuntu:~$ type '[['
[[ is a shell keyword
sarju@ubuntu:~$ type ']]'
]] is a shell keyword
sarju@ubuntu:~$ type ']'
bash: type: ]: not found
[Gen8, Gen9, Gen10 Themes and Apps] wdl1908:
Very strange the error you posted before suggest the command [[ does not exits but this test says it does.

How do you start FWB? from the command line? Or do you click on the FrameWorkBuilder.sh from a file manager?

What shell are you using?

Oh BTW on my machine starting FWB from the command line with

./FrameworkBuilder.sh

the compile fails on a number of files

res/drawable-mdpi/icon_highlight_square.9.png malformed.
No marked region found along edge.
Found along top edge.
res/drawable-mdpi/keyboard_textfield_selected.9.png malformed.
Can't have more than one marked region along edge.
Found at pixel #8 along bottom edge.
res/drawable/progress_horizontal.xml:1: error: Error parsing XML: not well-formed (invalid token)

the xml is not in a decompiled version
[Gen8, Gen9, Gen10 Themes and Apps] fisha21:
Ok, finally success! (well, 99% anyway)

Was using Gnome terminal, with the command

sh FrameWorkBuilder.sh

which has worked fine in the past. However, using

./FrameWorkBuilder.sh

removes those error messages (again, this is the first time I've ever had these messages).

I edited those 2 9.png, thanks for pointing them out (my mistake, edited so many images yesterday, I'm surprised I only messed up 2!)

Now, the only (tiny) issue is the horizontal-progress.xml. I had previously swapped in the blue version from the Desire theme, and it worked fine. Now, however, I get the following message:

framework-res-DECOMPILED/res/drawable/progress_horizontal.xml:1: error: Error parsing XML: not well-formed (invalid token)

If I remove this XML, the resulting framework works perfectly with custom pngs that resize properly. However, I am a bit of a perfectionist, and having spent this long on it, I won't give up now til its completely done!!
[Gen8, Gen9, Gen10 Themes and Apps] wdl1908:
That explaines the error message sh does not know the command [[ and bash does.

Good

Ok to solve the problem you should decompile the Desire theme apk and then take the xml. The xml should be in a readable text format. Here is the command to decompile it.

mkdir Desire-DECOMPILED
java -jar "tools/apktool.jar" d -f "Desire-framework-res.apk" "Desire-DECOMPILED"
[Gen8, Gen9, Gen10 Themes and Apps] wdl1908:
Hmm FYI FWB uses apktools.

maybe it's my explanation let me be a little more precise in my explanations.

cd to the FrameworkBuilder directory. from the logfile you send me that should be /home/sarju/FWB0.3/

in that directory copy the apk from the Desire and name it Desire-framework-res.apk

then make a directory to contain the decompiled framework Desire-DECOMPILED

then execute the command

java -jar "tools/apktool.jar" d -f "Desire-framework-res.apk" "Desire-DECOMPILED"
[Gen8, Gen9, Gen10 Themes and Apps] fisha21:
Yep, got it this time. Sorry, my lack of experience with Linuz was the culprit this time!

Ah yes, think that was me being unclear! I knew FWB uses apktools, I meant I'd never managed to run apktools as a standalone program, independent of FWB. But again, that was my lack of knowledge at work!

Finally, this framework is done, can start on some of the other ideas I had.

Thanks for all the help!
[Gen8, Gen9, Gen10 Themes and Apps] ddukki:
This doesn't seem to work with my 43IT. I still get the same "Archos: Entertainment Your Way" boot screen.
[Gen8, Gen9, Gen10 Themes and Apps] wdl1908:
what is the result of following commands?

su
ls -la /data/customization/
[Gen8, Gen9, Gen10 Themes and Apps] ddukki:
total 9552
drwxrwxr-x 2 2000 2000 4096 Apr 30 21:17 .
drwxrwxrwx 20 storage 1000 4096 Apr 30 19:27 ..
-rw-rw-rw- 1 2000 2000 7041624 Apr 30 19:27 UOT-04-30-17-46-5.zip
-rw-r--r-- 1 root root 2716994 Apr 30 14:15 bootanimation.zip
[Gen8, Gen9, Gen10 Themes and Apps] wdl1908:
Could you post the bootanimation.zip somewhere?
[Gen8, Gen9, Gen10 Themes and Apps] ddukki:
Here's the bootanimation.zip file.

EDIT: I think I may have figured out my problem. Apart from being really bad at remembering to read the instructions, I've seemingly forgotten that urukdroid and the original Android are on separate partitions with separate data/customization folders. I'll get back to you when I've fixed it and seen if it works.

Second Edit: I fixed everything and it works fine. I'm using urukdroid 1.0 and I've successfully replaced the red URUKDROID boot screen. I think I was using the wrong bootanimation.zip file the first time and using too many files. A tip, I guess, is to have ONLY the bootanimation.zip file in the /data/customization/ folder when trying this. Thanks for bearing with me (or at least not calling me out xD ).
[Gen8, Gen9, Gen10 Themes and Apps] msticninja:
I'm having trouble on Ubuntu 11.04. Your script fails with "COMPILE FAILED: framework-res.apk not found in directory framework-res-MODDED"

If I try to manually build with apktools

java -jar ./tools/apktools.jar b ./Orig-Decomp/ ./newframework.apk

I get a bunch of java errors:

could not exec command: [aapt, p, -F, /tmp/APKTOOL8384645573924398186.tmp, -x, -S, /home/eric/archos/frameworkbuilder/./Orig-Decomp/res, -M, /home/eric/archos/frameworkbuilder/./Orig-Decomp/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/APKTOOL8384645573924398186.tmp, -x, -S, /home/eric/archos/frameworkbuilder/./Orig-Decomp/res, -M, /home/eric/archos/frameworkbuilder/./Orig-Decomp/AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
Caused by: java.io.IOException: Cannot run program "aapt": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
at java.lang.Runtime.exec(Runtime.java:610)
at java.lang.Runtime.exec(Runtime.java:483)
... 8 more
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
at java.lang.ProcessImpl.start(ProcessImpl.java:81)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)

It seems it can't run aapt, it exists, but I can't seem to execute it either, even after adding execute permissions.

Any suggestions?
[Gen8, Gen9, Gen10 Themes and Apps] wdl1908:
What happens when you just execute ./tools/aapt without parameters?

what happens when you run

java -jar ./tools/apktools.jar b Orig-Decomp/ newframework.apk

Note the removed ./

You can always remove the tools directory frameworkbuilder will download all the tools it needs see it error are printed when it's downloading the tools.
[Gen8, Gen9, Gen10 Themes and Apps] msticninja:
Thanks for the reply.

Finally, I figured it out. I'm running x64, and Ubuntu doesn't install the x86 libraries. I apt-get installed ia32-libs, and now I'm good. I just have to start wading through all the problems you went through.

It looks like all that patch9 stuff is taken care of, but it's still seriously time-consuming to resize everything and figure out what affects what, and even where the damn icon you're trying to change is. Did anyone figure out how to enable 1% steps in the battery, and how to disable the text percentage overlay on the battery icon?

Also, I have alot of icons with patch9 borders on them already, but they're in the wrong size. When I resize them, it turns the 1px black line into a semi-transparent fuzz, for obvious reasons, so I have to run them through Patch9 again and redraw the line. Have you found a way to resize them without having to remake the line?

I love your frameworks BTW, I'm just a serious freak, and I want it to look exactly like my CM7 HD2, so I really want to make my own.
[Gen8, Gen9, Gen10 Themes and Apps] wdl1908:
I suspected something like that.

See my Battery Mod here everything is in there the modified services.jar to remove the % text the icons and some recompile framework-res file for different firmwares.

Nope have not looked at it much.

Well if you're finished just post a thread with your framework.

Happy Modding
[Gen8, Gen9, Gen10 Themes and Apps] fisha21:
I did Google this when I was making mine, but ended up having to redraw every one! Pain in the a** I tell you, had about 200 to do. Let us know if you find a better way!
[Gen8, Gen9, Gen10 Themes and Apps] msticninja:
Jeez, where are all those .9s? I only had to change 10-15. For the non- 9patch ones I used Fastone Photo Resizer, works quite well to batch resize. For the 9patch ones, I used photoshop to resize, then 9-patch to clean up the 1px.

Hope you don't mind, I'm using your 2.3.26 framework as the starting point for mine. Blue and black are my main themes, so you've done alot of blue work for me already. Alot of the rest is from UOT kitchen. I can't believe they host all that stuff for us. :)

Also, I just tried changing the status bar text color by editing res/layout/status_bar.xml. I used the 8 digit hex color format, keeping transparency as FF, but I keep getting a boot loop. What am I missing? Do I have to edit the services.jar/classes.dex too?

EDIT: Even if I make no changes to the xml file, it still boot loops. I decompiled your framework, copied the xml file to the framework-res-MOD/res/layout/ directory, and rebuilt with frameworkbuilder, and it still boot loops on me. After decompiling the framework from the MODDED directory, the xml file looks fine, so I can't figure out what is throwing me into the boot loop.

EDIT: Okay, I'm researching the package signing and stuff, but everybody says the problem is not using an update.zip, but we don't have recovery flashing, so there must be some other answer here.
[Gen8, Gen9, Gen10 Themes and Apps] wdl1908:
Don't do that take an original framework-res it's been reported that taking a framework that has already been modded gives serious problems.

Just copy the original framework-res from your firmware and use that.
[Gen8, Gen9, Gen10 Themes and Apps] leijae:
can i see some screenshots of progress?
[Gen8, Gen9, Gen10 Themes and Apps] msticninja:
I found that answer too, but I think it's bull****. :) If I decompile your framework, and put the entire decomp in the MOD folder, then put my stock framework in the STOCK folder, that should work according to that answer.

Just to clarify, You've successfully edited xml's and rebuilt with frameworkbuilder?

The problem only happens when I include XML files in the MOD folder, if it's all images, it's fine. Even my Patch9 images work perfectly. I wish someone actually had some real-world explanation for why, because I don't think it's the SHA5 signing.

Also, when I edited the services.jar to change the notification bar clock color, nothing happened, same white clock. I can't find any other place the value would be. Any ideas?

leijae: I'll have to restart from scratch again probably, but here's some pics of what I have. Thanks go to fisha21 for alot of the icons and work, this version is basically the same as his with blue knockout icons instead of his MIUI style multicolor icons. My favorite is the blue Toast frame, but I need to increase the transparency on it a bit.
[Gen8, Gen9, Gen10 Themes and Apps] msticninja:
Okay. I took the framework-res.apk from the UrukDroid I'm running. So it's the stock framework from my ROM. I put it in the STOCK directory, put my icons, and one xml, (decompiled, but not even changed) in the MOD directory, and I get a boot loop.

If I do the same thing with no XML files, it works fine. What the hell am I doing wrong?
[Gen8, Gen9, Gen10 Themes and Apps] wdl1908:
There are a number of threads here that warn not to do that.

Yes my battery mod and others change xml files.

Without xml file in the MOD dir frameworkbuilder does not recompile it only replaces png files.

you don't need to resign the framework-res it's not signed to begin with.

could you post the xml file you including?

I think the color is somewhere in the xml files. I have not looked for it yet.
[Gen8, Gen9, Gen10 Themes and Apps] msticninja:
Thanks for all the help, BTW.

Sorry, I didn't mean I don't believe it completely, I just don't believe it's the problem here, since it happens with the stock framework too.

That's what I figured. That means there is a problem with the recompiling itself, not the xml file.

Yeah, i realized that after a bit more research. :)

Attached. I haven't changed any of it, I had changed one of the colors, but I reverted to the original stock file once I started having trouble. The strange thing is, if I compile with the xml, then decompile it again, the xml is correct(exactly the same as before the compile), but it still boot loops.
[Gen8, Gen9, Gen10 Themes and Apps] WhoDunnit:
Transparency buttons

I want to make the buttons of the button bar (semi-) transparant. I used the method in this thread and I can change icons and stuff, but changing the transparency of the buttons (located in res/drawable) did not result in any changes. Do you have any ideas what should be changed to make this work? Do I need to modify services.jar?
[Gen8, Gen9, Gen10 Themes and Apps] SWFlyerUK:
I never used to have a problem with changing the framework using the below code in ADB, but suddenly, today, when I'm on cp /sdcard/framework /system/framework/framework-res.apk I'm getting Ivalid Arguement, cannot remove system/framework/framework-res.apk,

This wasn't happening yesterday and there doesn't seem to be a similar issue around, I have root and SU has been granted.

Any ideas what going on please?
[Gen8, Gen9, Gen10 Themes and Apps] DroidSlave:
Hello,

I really want to make my custom framework but two question :

1) Is custom framework an other word for "theme"?

2) Do I really have to root my device?I just dont want to **** things up 'cause I got my Archos as a Christmas present. And erm...Why ? Why do I need a rooted gen8???

And will this work for my Galaxy S Phone to????????? Just wondering =).

Any advice is appreciated !

Thanks ;)

(Send me a private message if you have answers.)

=)
[EVO 4G Q&A, Help & Troubleshooting] javidnky2005:
Does anyone know if this is still in the works? I cannot find an update thread.
[EVO 4G Q&A, Help & Troubleshooting] SteelH:
Search is your friend. Yes there is a working beta now.
[EVO 4G Q&A, Help & Troubleshooting] javidnky2005:
Where my friend? The threads are closed on xda.
[EVO 4G Q&A, Help & Troubleshooting] ahavens17:
Right Here

Thread Closed: [FullHDMI] Official FullHDMI Beta - Update - 2/28 {New Kernel}

The above titled thread has been temporarily removed from view until GPL compliance issues can be resolved.

This post will bury itself shortly.

Looks like its out of commission for awhile:(
[EVO 4G Q&A, Help & Troubleshooting] kratos313:
Check androidcentral.com the thread is still live on there

sent from a myn EVOlved device running the Z.
[EVO 4G Q&A, Help & Troubleshooting] jeffhbo:
If anyone wants the hdmi kernal and apk file, private message me and I will give you a link to my dropbox where you can download it.
[EVO 4G Q&A, Help & Troubleshooting] Chirstopher:
is this something i need to download if i wanna display my phone on my tv?
[EVO 4G Q&A, Help & Troubleshooting] javidnky2005:
Check out this thread (since the one on xda is closed).

http://forum.androidcentral.com/htc...llhdmi-official-fullhdmi-beta-discussion.html
[EVO 4G Q&A, Help & Troubleshooting] iitreatedii:
The kernel was removed there too
[EVO 4G Q&A, Help & Troubleshooting] Lokifish:
The apk hasn't been updated since 2/26 but should see one in about a week. Til then you will need to use the trigger method posted in the AC thread to change resolutions. I'm waiting on a response from orrebmas about packaging apk/kernel/source together to comply with GPL v2.
[EVO 4G Q&A, Help & Troubleshooting] rugedraw:
One of the kernels was removed. However, there is still a stock kernel with only the HDMI drivers enabled that can still be downloaded and used to make the app work.
[EVO 4G Q&A, Help & Troubleshooting] iitreatedii:
Can you pm me a link
[EVO 4G Q&A, Help & Troubleshooting] rugedraw:
No need for a PM as there is nothing wrong with this file and I can post it here for you or anyone who needs it:

http://forum.androidcentral.com/htc...955-evo-hdmi-out-mirroring-15.html#post620305

Post #147 has a link to a flashable file for the stock kernel with HDMI enabled and the drivers needed for WiFi/WiMax to work.
[HD2 Android Themes and Apps] bazinga:
FROYO ONLY

FROYO ONLY

FROYO ONLY

Hi folks,

With the recent port of WP7 to HD2 (credit to Cotulla, DFT, and other cooks), I know alot of HD2 users have tried it. I myself used it for about a couple of weeks, but I found that although it is great, it still was missing a couple of key features compared to android.

When I switched back, one of the thing that made me really regret was the keyboard.

After searching on XDA, I found this thread and figured it would easily work for us NAND users running Android.

It is a metamorph theme, but when I applied it, it didn't look right. The user who created the theme JAguirre1231 suggested that it didn't work correctly because the theme is suppose to be for the stock keyboard. This was a problem because I know alot of people prefer other CM, Sense or MIUI roms.

After doing some experimenting, I finally got it to work on the MIUI rom I'm using. The only thing is that this themed keyboard replaces the default and makes it the default. I'm not sure if you can add it, and keep the Sense keyboard or not.

*I DON'T TAKE ANY RESPONSIBILITY FOR ANY PROBLEMS THAT MIGHT HAPPEN TO YOUR PHONE, DOING THIS IS AT YOUR OWN RISK* *ALSO REQUIRES ROOT*

NOTE: DON'T TRY TO INSTALL THE .APK DIRECTLY, IT HAS TO GO INTO THE SYSTEM OF YOUR PHONE

EDIT: FROYO ONLY(?)

Like I said, I have only tried this on the MIUI rom and I would advise you do backup or take precautions because this process involves editing the system files inside your phone.

Directions

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

1) You need Root Explorer (available in the marketplace) and the attached file

2) After you have Root Explorer, put the attached "LATINIME.apk" file on your sd card

3) Boot up your phone and open Root Explorer

4) Make sure the file is on your SD card

5) Next, navigate to /system/app/ and you should find a "LATINIME.apk" file in there too

6) Be sure you hit the top button so it says (MOUNT R/O)

7) Just to be safe, rename it to something else, and copy and paste it into your sd card (if anything goes wrong, just replace it with this file back to /system/app)

8) Delete the "LATINIME.apk" in /system/app and next copy and paste the attached one into /system/app

9) Exit and your new keyboard should be like the ones shown below

10) DONE!

Note that this is merely a skin for the keyboard, and all the other android settings are still the same. I also found it isn't as accurate as the real thing, but still better than the stock froyo.

This tutorial was made with the permission of JAguirre1231 and I just thought it would be easier if I share it.
[HD2 Android Themes and Apps] sgtmedeiros:
Now I have no android keyboard. Crap.
[HD2 Android Themes and Apps] dulexetina:
:) Make sure in the future that u backup all of the system apps before replacing them...
[HD2 Android Themes and Apps] n1vlek:
it look just like the gingerbread keyboard lol
[HD2 Android Themes and Apps] almanbrother:
I would say: don't do this. Even when I copied back the original file I did not get my keyboard back, so I had to reinstall my rom.
[HD2 Android Themes and Apps] sgtmedeiros:
Same here. Luckily I had smart keyboard pro so I'm just using that .
[HD2 Android Themes and Apps] bazinga:
Can you tell me which rom you are using?

And did you put the LATINIME.API into /system/app? If you don't have root explorer you can try ADB? Or if your rom already has the default froyo keyboard, just use metamorph skin from post #1.
[HD2 Android Themes and Apps] sgtmedeiros:
I'm on typhoon cm7.

Placed there using root explorer.

Deleted original file. Changed permissions everything.

Goooone
[HD2 Android Themes and Apps] bazinga:
Hm, I'm not sure if this works on gingerbread. I think it only works on the standard froyo keyboard.

If you want to take another stab, trying using the stock .apk from here, and if it works, just use metamorph to theme the keyboard.

Then again its up to you.
[HD2 Android Themes and Apps] redsuns:
tried adb to phone but keep getting force close issue.

HTC Desire GSM CM7 Final
[HD2 Android Themes and Apps] alaaassem:
hi, i'm stuck on HTC black screen for about 20 min

any help please??!!!! :(

p.s the SD is not partitioned dont know why although i installed recovery 130mg 3.2.4

can anyone pls help?

EDIT:sorry wrong post :)
[HD2 Android Themes and Apps] yusufjee:
Beautiful theme. Is it a rom or just a theme?
[HD2 Android Themes and Apps] lam_bor:
Good job,will try
[HD2 Android Themes and Apps] ChriGothiMark:
Only for froyo?! :( i have ginger!!!
[HD2 Android Themes and Apps] yurigagarin61:
i think stock keyboard is good enough.But HTC keyboard is the best
[HD2 Android Themes and Apps] Ddoublevisionn:
great keyboard!
[HD2 Android Themes and Apps] mainzweb:
Oh yeah, that's what i've been looking for. trying now

Thanks
[HD2 Android Themes and Apps] FritzJ92:
is there a gingerbread version, or could one be made please?
[HD2 Android Themes and Apps] bazinga:
I'm not sure, you can look into seeing if you can make the .pngs in the skin work for your rom. It should be in systemui.apk and framework-res. Remember to always backup!

For now, I'm using WP7 :D