[Q] Can someone please help me with two things? - Android

Hey everyone, I have successfully made a few ROMS for myself (using the DSIXDA HTC Android ROM kitchen v 1.00). I am making a ROM for the HTC Evo.
I know how to do most of it, I have managed so far:
To add my own ringtones
To add my own notification sounds
To set the default ringtone, notification, and change the default wallpaper
Add a theme to my ROM
But there is a few questions I have. I have Googled, looked around on here, and done what I can to find the answers but I am so far unsuccessful.
My first question: Ok, I know that the default wallpapers reside in the system/customize/resource directory. I have attempted to replace the wallpaper (and small preview) wallpapers with my own custom ones. I tried using Paint.net for Windows to resize to the same dimensions as the default wallpaper. For example, to replace htc_wallpaper_01.jpg, I edited a 960x800 wallpaper to have the same size and name (everything the same) and changed htc_wallpaper_small_01 with a matching 80x60 smaller version of the new graphic. I have found sometimes it works, but if I do a few using the method mentioned above, the ROM fails to load up. Can someone help and explain why?
Question 2: I am trying to place the removed apps automatically on the SD Card. I made a "sdcard" folder in the root directory of my ROM. I tried editing the update.zip to include copy_dir PACKAGE:sdcard /sdcard and when I do a check for errors I get none, yet when I try and install the ROM it gives me the "E:syntax error in update script" meaning I am not doing it right. I tried doing it the same way Fresh did it and it also threw me the same error.
So can anyone please tell me how to do this? I know I am close with both and I have tried dissecting other ROMS to see how they did it but I cannot figure it out.

First question:
It could be many possibilities. Maybe not enough room on system, file names not matching, etc...
Try each png on seperate flashes to find the culprit.
*The best way to find out for sure is to use "adb logcat" on boot. This tells you all your errors the OS has.*
Second question:
Im not understanding what your trying to do?
Root of a rom is /
sdcard is mounted to a folder on /
If you want to store the apk on sdcard then,
the proper code to install in /sdcard from update.zip:
Code:
copy_dir PACKAGE:sdcard SDCARD:
If this is not what your asking please explain to me what your asking.

RichieDaze said:
First question:
It could be many possibilities. Maybe not enough room on system, file names not matching, etc...
Try each png on seperate flashes to find the culprit.
*The best way to find out for sure is to use "adb logcat" on boot. This tells you all your errors the OS has.*
Second question:
Im not understanding what your trying to do?
Root of a rom is /
sdcard is mounted to a folder on /
If you want to store the apk on sdcard then,
the proper code to install in /sdcard from update.zip:
Code:
copy_dir PACKAGE:sdcard SDCARD:
If this is not what your asking please explain to me what your asking.
Click to expand...
Click to collapse
Thank you RichieDaze for the response.
You mentioned png., but all the ROMS I have seen have the wallpaper in .jpg format. I was just wondering if there was a certain size they have to be (I mimic the exact size of the default ones).
I think I got this part worked out by doing exactly that, installing 1 at a time until I find the culprit.
For question 2: Thanks to using the DSIXDA kitchen, I cannot use updater.script, which seems to be the way ROM makers like Calkulin, Hero_over, and other have used to set their removed apps to automatically copy on to the SD card when you install the ROM.
I have to use update.script instead, and when I try and do it using that I run into an error.
What I am trying to is remove the usual bloat from the ROM, but copy the removed apps so that users can have the option of installing them if they use any of them.
You are answering my question and are on the right track to helping me. I will try to add that (the way you wrote it out) and see what happens to my update.script.
Thank you very much for your help, greatly appreciated and please let me know if there is some other way to do this if you are aware of any or if someone is using update.script instead of updater.script.

Related

Fonts: how do i install a font to my phone?

There is a font on another rom that I like, how would I get that installed onto my Eris? I have the file from the other rom.
Have a look at T2noob's batch file font installer for ideas (and fonts, too).
Looks like he takes a pair of True Type (.ttf) files - one regular face, one bold face - and copies them to
/system/fonts/
renaming the (respective) .ttf files to "DroidSans.ttf" and "DroidSans-Bold.ttf"
Then, just reboot.
That was done for rooted 2.1 ROMs; I'm not sure if it the same for AOSP or CM6 Froyo ROMs
good luck
bftb0
bftb0 said:
Have a look at T2noob's batch file font installer for ideas (and fonts, too).
Looks like he takes a pair of True Type (.ttf) files - one regular face, one bold face - and copies them to
/system/fonts/
renaming the (respective) .ttf files to "DroidSans.ttf" and "DroidSans-Bold.ttf"
Then, just reboot.
That was done for rooted 2.1 ROMs; I'm not sure if it the same for AOSP or CM6 Froyo ROMs
good luck
bftb0
Click to expand...
Click to collapse
Thank you so much, this helps. I posted a question to his thread on the other site, but is it possible, since the fonts are in "true type" format that I can use some of mine?
johnny quest said:
Thank you so much, this helps. I posted a question to his thread on the other site, but is it possible, since the fonts are in "true type" format that I can use some of mine?
Click to expand...
Click to collapse
The best way to find out is to try.
Just make a Nandroid backup before you start, and then there is zero risk involved in trying.
bftb0
bftb0 said:
The best way to find out is to try.
Just make a Nandroid backup before you start, and then there is zero risk involved in trying.
bftb0
Click to expand...
Click to collapse
Ok, thanks I will give it a try.
johnny quest said:
Ok, thanks I will give it a try.
Click to expand...
Click to collapse
I used the T2Noobat but it says Device not found but when I go to the folder where my font is, its not there. So I don't know if I have to reboot my phone in order for my font to take effect. Or, the way you said about system/fonts..... I don't know where in my sd would I find the fonts in order to change it.
johnny quest said:
I used the T2Noobat but it says Device not found but when I go to the folder where my font is, its not there. So I don't know if I have to reboot my phone in order for my font to take effect. Or, the way you said about system/fonts..... I don't know where in my sd would I find the fonts in order to change it.
Click to expand...
Click to collapse
If you get errors, it is not reasonable to conclude that the install worked despite the errors. That's what error messages are for - to tell you that something went wrong.
T2noobs .bat file (script) presumes that you have:
1) ADB working on your PC (generally by installing the Android SDK or HTC Sync + adb)
2) That your phone is connected via USB cable
3) That your phone has USB Debugging turned on
4) That your phone is running a rooted ROM.
You don't have to use his script. I mentioned it as an example. You can just use a root-aware file manager (RootExplorer or Estrongs File Manager), and re-mount /system in RW mode, and then drop your two True Type fonts into
/system/fonts/
with the file names "DroidSans.ttf" and "DroidSans-Bold.ttf"
and then reboot. Obviously, there will already be files in there with those names to begin with, so you need to either (a) rename them to something else, (b) move them to some other folder, or (c) delete them.
I don't know how to make this any clearer.
You probably should spend some time learning how to perform Nandroid backups and restores before you do any of this (if you have not already mastered those skills). Having good backups will save your butt.
bftb0
PS. I just did this on my (CELB 3.2) ROM, so I know it works - assuming you are not using some screwy fonts.
bftb0 said:
If you get errors, it is not reasonable to conclude that the install worked despite the errors. That's what error messages are for - to tell you that something went wrong.
T2noobs .bat file (script) presumes that you have:
1) ADB working on your PC (generally by installing the Android SDK or HTC Sync + adb)
2) That your phone is connected via USB cable
3) That your phone has USB Debugging turned on
4) That your phone is running a rooted ROM.
You don't have to use his script. I mentioned it as an example. You can just use a root-aware file manager (RootExplorer or Estrongs File Manager), and re-mount /system in RW mode, and then drop your two True Type fonts into
/system/fonts/
with the file names "DroidSans.ttf" and "DroidSans-Bold.ttf"
and then reboot. Obviously, there will already be files in there with those names to begin with, so you need to either (a) rename them to something else, (b) move them to some other folder, or (c) delete them.
I don't know how to make this any clearer.
You probably should spend some time learning how to perform Nandroid backups and restores before you do any of this (if you have not already mastered those skills). Having good backups will save your butt.
bftb0
PS. I just did this on my (CELB 3.2) ROM, so I know it works - assuming you are not using some screwy fonts.
Click to expand...
Click to collapse
Thank you so much, I've been living on backups and restores. believe me I've learned my lesson. I will give this a try.
Your method worked great with the Root Manager. I bought it on the market. Ok, my biggest problem now is that my font is microscopic small. I don't know why. But I can't see the letters of which folder I'm in to take that font out.
I need a favor: can you post up screenshots or the number of folders to scroll down to get to the system/fonts/droidsans.tff
I can't see it, really its that small its the universal acc font.
Never mind I got it. Took a lot of squinting but I got it. Thanks.

[Q] Making updater-script... doesn't make any sense!!

I was tying to make a fancy updater-script for an add-on for my ROM, but I kept getting a Status 6 error when flashing, so I stripped it back to nothing, just the most basic commands, and eventually got it to work. I made a copy, tried editing it to add the fancy stuff back in... broke again.
So I stripped the copy back to the basic commands... and it still breaks .
As far as I can see, the two files I have attached are identical in every single way, but one fails with a Status 6, the other flashes (BattMod works, update doesn't). Both are edited using gedit on Ubuntu, both zips are created in Ubuntu, neither are signed.
Can anyone see why, I am really tearing my hair out here... all I want to do is add some ui_prints and some progress bars .
I haven't looked it them yet, but make sure you are using the correct update-binary. Different ones support different number of parameters in the mount command.
Don't leave junk files in the update like updater-script.old, it's bad practice
My guess would be that since it's named update.zip, it's looking for a signature and it can't find one. Try renaming update.zip to battmod.zip and see if it works, or sign it first with testsign.
l0st.prophet said:
I was tying to make a fancy updater-script for an add-on for my ROM, but I kept getting a Status 6 error when flashing, so I stripped it back to nothing, just the most basic commands, and eventually got it to work. I made a copy, tried editing it to add the fancy stuff back in... broke again.
So I stripped the copy back to the basic commands... and it still breaks .
As far as I can see, the two files I have attached are identical in every single way, but one fails with a Status 6, the other flashes (BattMod works, update doesn't). Both are edited using gedit on Ubuntu, both zips are created in Ubuntu, neither are signed.
Can anyone see why, I am really tearing my hair out here... all I want to do is add some ui_prints and some progress bars .
Click to expand...
Click to collapse
With what are you editing it?
I've found out that editing it with notepad or any program won't work even if i'm using the right commands, so i decided to use amend2edify, you select an update-script (an update-script you can edit it with notepad without any problem) and it converts it into updater-script, updater-binary, but you have the possibility to edit anything in the output that you want and save it, or just copy-paste into the output the commands in your updater-script onto output by overwriting the converted output.
Don't know if i explained myself well.
Good luck
Try This One
Blank-CWM.zip
It's made for the Moto Photon, so you will need to:
1) Replace the update-binary with one from your phone.
2) Copy the file you wish to flash
3) Delete the txt files in it as well as any folders that you do not need to use in the process of flashing
4) Be sure to set the permissions to target the folder or file you are flashing. If you do NOT update this, you will end up in bootloops (Don't say I didn't warn you)
5) Flash away
Cheers!

Battery Icon Mod

The stock battery icon on Galaxy wifi 5.0 is not very inspiring and it doesn't tell you the battery level. It is quite easy to replace them on other phones with Clockwork Recovery. You just need to go to UOT kitchen http://uot.dakra.lt/kitchen/ , pick the icons you like and it will give you a flashable zip file.
Without Clockwork Recovery on Galaxy wifi, it can still be done but with a bit more manual operations.
Prerequisites:
1. A rooted device.
2. Clockworkmod Recovery (optional).
Step 1:
Use Titanium backup (pro version needed) to free up some spaces in /system directory (There are 0 byte free in stock rom). You can delete some unused system apps or convert some of them to user app. For example converting Flash player and google map to user app free up enough space for me.
Step 2:
Backup the following apk files from your stock rom. You can do that by using some file manager like File Expert. These files will be needed by UOT kitchen
/system/app/SystemUI.apk
/system/framework/framework-res.apk
/system/framework/twframework-res.apk
Step 3:
Go to UOT kitchen http://uot.dakra.lt/kitchen/ and cook your custom UI. Make sure you read their how-to here first http://uot.dakra.lt/how_to/
Step 4a: (follow this if you have Clockworkmod Recovery)
Copy the zip produced by UOT kitchen to your internal SD card. Reboot to CWM Recovery and flash the zip file using the option "Install zip from sd card". Then reboot and you are done.
Step 4b: (follow this if you don't have Clockworkmod Recovery)
Extract the 3 modified apk files from the zip package produced by UOT kitchen and put them into a convenient location on your sdcard, say /sdcard/
Step 5:
The system directory is by default read only. You need to remount it as r/w. I do that through adb shell
Code:
su
mount -o rw,remount /dev/block/mmcblk0p13 /system
Step 6:
Copy your new apk files into /system directory
Code:
cp /sdcard/SystemUI.apk /system/app/
cp /sdcard/framework-res.apk /system/framework/
cp /sdcard/twframework-res.apk /system/framework/
Step 7:
Restart your device. The /system directory should remounted as read only and the new UI will take effect.
Disclaimer:
Certainly there are risked involved and I did corrupted my rom on several occasions when trying this out. So make sure you have a functional ROM around before you give this a try.
thanks for the tips.
hey I wanna ask you about is it can fully modification from http://uot.dakra.lt/kitchen/
I mean don't just modify battery icon but every option that site provide.
thanks in advance.
" Step 1:
Use Titanium backup to free up some spaces in /system directory (There are 0 byte free in stock rom). You can delete some unused system apps or convert some of them to user app. The flash. For example converting Flash player and google map to user app free up enough space for me."
How do you do that with titanium backup? Do you have to get pro?
aillez said:
thanks for the tips.
hey I wanna ask you about is it can fully modification from http://uot.dakra.lt/kitchen/
I mean don't just modify battery icon but every option that site provide.
thanks in advance.
Click to expand...
Click to collapse
I have only experimented with icons so far. Other mod may be possible because UOT kitchen does support gingerbread. Since this device is new, we need some brave soul to try that out
iJimaniac said:
" Step 1:
Use Titanium backup to free up some spaces in /system directory (There are 0 byte free in stock rom). You can delete some unused system apps or convert some of them to user app. The flash. For example converting Flash player and google map to user app free up enough space for me."
How do you do that with titanium backup? Do you have to get pro?
Click to expand...
Click to collapse
Yes, you will need the pro version. If you have the pro version, long press an app will give you the option to do the conversion.
Well, while deleting apps with TI, I decided to get rid of "phone", figuring I didn't need it, but it turns out Google voice needs it! Trying to "restore", but just hangs forever. If someone could give me the "com.sec.android.app.dialertab.apk" located in /system/app/ I would really appreciate it!
EDIT; I just reinstalled voice from market, seemed to fix it, I wouldn't advise removing phone from the apps though!
can you make the display of battery accurate to 1%?thank you!
First make it accurate to 5%, then work on 1%
I think the accuracy of the battery level is deeper down in the system, may be in the kernel?
If you try different types of battery widget on Galaxy Player, they all have very bad accuracy.
I want to edit the framework-res.apk manually, instead of using the kitchen. Do the files need to be deoxed? Would flashing a framework-res compiled with apk manager brick the device?
nice guide!
I've used UOT Kitchen to get ICS transitions, change icons, battery, fonts, and customize the status bar and they all work on my galaxy player 4.0 US.
what are those different icons you have on your notifications like the wifi icon and what launcher is that ADW?
azoller1 said:
what are those different icons you have on your notifications like the wifi icon and what launcher is that ADW?
Click to expand...
Click to collapse
I am using the "Color pack V8 animated" icon set on UOT kitchen. The launcher is GO Launcher.
Stale_bread said:
I want to edit the framework-res.apk manually, instead of using the kitchen. Do the files need to be deoxed? Would flashing a framework-res compiled with apk manager brick the device?
Click to expand...
Click to collapse
There is still an odex file in the system directory. I suppose it is not deoxed but UOT kitchen doesn't seem to bother with that file. I guess it is because these apk files don't contain any executable code.
from OP
Disclaimer:
Certainly there are risked involved and I did corrupted my rom on several occasions when trying this out. So make sure you have a functional ROM around before you give this a try.
Click to expand...
Click to collapse
Two things, if you please:
When you say "corrupted my rom", you can't boot your device but you can still go to dl mode, correct?
"functional ROM" is the fw/md5 file we usually flash via odin/heimdall?
I'd like to try this out (& then some...) but, in the absence of a custom recovery, I don't wanna have to go through the lengths of "resurrecting" my sgp. TIA!
maxq1 said:
from OP
Two things, if you please:
When you say "corrupted my rom", you can't boot your device but you can still go to dl mode, correct?
"functional ROM" is the fw/md5 file we usually flash via odin/heimdall?
I'd like to try this out (& then some...) but, in the absence of a custom recovery, I don't wanna have to go through the lengths of "resurrecting" my sgp. TIA!
Click to expand...
Click to collapse
In my case, it couldn't boot beyond the samsung start up screen, but I can still boot into download mode. Since we are only modifying a file within the file system, it is very unlikely that it will destroy the download mode.
If you can get to download mode, you can flash one of the firmwares you found in this forum using odin. You need to be sure you have the correct firmware for your device though, because there are so many variant of Galaxy Player. What is the version of your device?
nvm that (i was thinking on the same lines too though) but thanks anyway! appreciate it.
thanks to your guide, was able to change my fonts and added that flying in pop up animation as well. for these two, however, i don't think we need the kitchen though and for that matter, we don't need to modify systemui & twframework.
for fonts (you could use font changer apps, but i hate doing so for such things), take any you fancy from anywhere here in xda (WARNING: only extract the downloaded file to your device/pc) then rename (case sensitive) font files accordingly: Clockopia.ttf, DroidSans.ttf, DroidSans-Bold.ttf. copy these to sd & push to /system/fonts/ using similar cp command/s from OP.
for pop up animation, you could follow this guide. no need to sign after replacing files in /res/anim. copy modded framework-res.apk to sd then push to device via same commands in OP.
btw, wouldn't issuing "reboot" within adb shell be more convenient & safer after changing system files while booted to android? it's what i did instead of rebooting via power button, as you'll most likely see an FC fiesta after replacing these files.
maxq1 said:
nvm that (i was thinking on the same lines too though) but thanks anyway! appreciate it.
thanks to your guide, was able to change my fonts and added that flying in pop up animation as well. for these two, however, i don't think we need the kitchen though and for that matter, we don't need to modify systemui & twframework.
for fonts (you could use font changer apps, but i hate doing so for such things), take any you fancy from anywhere here in xda (WARNING: only extract the downloaded file to your device/pc) then rename (case sensitive) font files accordingly: Clockopia.ttf, DroidSans.ttf, DroidSans-Bold.ttf. copy these to sd & push to /system/fonts/ using similar cp command/s from OP.
for pop up animation, you could follow this guide. no need to sign after replacing files in /res/anim. copy modded framework-res.apk to sd then push to device via same commands in OP.
btw, wouldn't issuing "reboot" within adb shell be more convenient & safer after changing system files while booted to android? it's what i did instead of rebooting via power button, as you'll most likely see an FC fiesta after replacing these files.
Click to expand...
Click to collapse
Theses are good suggestions, will definitely give them a try.
As for changing system fonts, I like to use the Font Installer app on the market
https://market.android.com/details?id=com.canvs2321.font_installer&hl=en The nice thing is I can preview the fonts before changing them.
As for the reboot, actually I did try using the reboot command once but it toasted my rom on that occasion. That's why I didn't mention the method in the guide. May be I should give that another try next time.
Hopefully, we will get CWM soon then it will be much easier to flash these mods.
WT Ho said:
I think the accuracy of the battery level is deeper down in the system, may be in the kernel?
If you try different types of battery widget on Galaxy Player, they all have very bad accuracy.
Click to expand...
Click to collapse
Kernel battery driver is very simplistic and only has 5% increments in the numbers it returns.
On my list to look at once I finish CWM - no guarantees.
thhhhhhhhhhhhhhanxx

[Q] APK Creation

Well as many of you know we're over most of the hurdles we needed to jump with the CM7 build for Nook tablet.
Updates for the internal version are simple via CWM, the SD version is not so simple of course.
I'm assuming that it should be possible to built an APK that gains superuser permissions then copies the new files to the system. Can anybody confirm this is possible please?
We need to know that we can tell our SD user that they can update their version just as easy as the internal user
Thanks in advance for your help again everyone!
Well presumably this is how ROM Manager and Metamorph both do their thing, just in a slightly more round about way (as they don't come with the files they need to copy). I'm almost 100% sure this is possible, but I've never tried it personally.
EDIT: Looks like this is how you'd do it: http://developer.android.com/reference/java/io/File.html. Specifically the renameTo() method.
CelticWebSolutions said:
Well as many of you know we're over most of the hurdles we needed to jump with the CM7 build for Nook tablet.
Updates for the internal version are simple via CWM, the SD version is not so simple of course.
I'm assuming that it should be possible to built an APK that gains superuser permissions then copies the new files to the system. Can anybody confirm this is possible please?
We need to know that we can tell our SD user that they can update their version just as easy as the internal user
Thanks in advance for your help again everyone!
Click to expand...
Click to collapse
Well there are about a dozen ways to do this. First of one of the hardest things is comming up with the commands/script. I can defiantly do this. If you want an apk, there are a few guys whom could port my script to an apk. I'm going to make a script here that will format, and create partitions and extract directly from the nook, no need to go through the fancy formatting and such, just go into terminal and run the script. Ill post a prototype for you to have the testers test!
Do you think something like BacksideUpdater inside custom ROM for LG Optimus V?
made by JerryScript
JerryScript i very nice guy, I bet if you ask him, he will let you play with his code
if is it what you looking for
Yes, this is possible. I wrote an app that flashes the recovery partition for my older Froyo phone in the very rudimentary Basic4Android. Copying files under root privileges was part of this process. Fairly easy if you find the right coding examples in whatever your development platform of choice.
xdajunkman said:
Yes, this is possible. I wrote an app that flashes the recovery partition for my older Froyo phone in the very rudimentary Basic4Android. Copying files under root privileges was part of this process. Fairly easy if you find the right coding examples in whatever your development platform of choice.
Click to expand...
Click to collapse
So one of the problems is its not really copying. Its more of an extraction from one place to another. We are required to use dd, and fdisk(for formatting).
GREAT! I was worried updates would be to complicated for people
Sent from my Nook Tablet using xda premium
... and I was worried that I might have to wipe my NT clean again to get the updates. After a week with this wonderful upgrade, I've got a LOT of customization I don't want to lose...
Whoops, wrong button with the thanks. Anyway, it occurs to me you could just have people run a script from a terminal emulator. That would probably be the simplest way to do it. Make an Update folder on the SD card, add it to the PATH by default, and users could just copy over the update files and run the script. Just a thought.
Sycobob said:
Whoops, wrong button with the thanks. Anyway, it occurs to me you could just have people run a script from a terminal emulator. That would probably be the simplest way to do it. Make an Update folder on the SD card, add it to the PATH by default, and users could just copy over the update files and run the script. Just a thought.
Click to expand...
Click to collapse
Has to be simple, something like copy an update.zip onto the SD card then run the apk which will automatically run the update in the zip But my knowledge of such things is limited so I need help there
Same process. With the above method, the user would only have to copy over the file, open a terminal, and type 'update'. With the apk idea you just have to add a little more time for someone to actually write the app (not that it would take too long).
Sycobob said:
Same process. With the above method, the user would only have to copy over the file, open a terminal, and type 'update'. With the apk idea you just have to add a little more time for someone to actually write the app (not that it would take too long).
Click to expand...
Click to collapse
Hmm.... that sounds good.
Anybody know how to actually implement it ?
Dammit, idk why I keep hitting the thanks button thinking it's reply >.>
Anyway, it's just a matter of setting the PATH variable to include /sdcard/Update/ or something similar. To make an actual update, make a folder called Update, fill it with all the files that need to be copied over (probably in a directory structure), and write a script that actually copies everything over. You'll need to make sure sh is in /system/bin (I think it is by default).
You could zip the the files as well, using gunzip (busybox?) to extract them before copying them, then deleting them when you're done, just to keep it cleaner for the user.
The only downside to all this is that I don't know how you would flash a kernel.
Sycobob said:
Dammit, idk why I keep hitting the thanks button thinking it's reply >.>
Click to expand...
Click to collapse
That makes two of us!
Sycobob said:
Anyway, it's just a matter of setting the PATH variable to include /sdcard/Update/ or something similar. To make an actual update, make a folder called Update, fill it with all the files that need to be copied over (probably in a directory structure), and write a script that actually copies everything over. You'll need to make sure sh is in /system/bin (I think it is by default).
You could zip the the files as well, using gunzip (busybox?) to extract them before copying them, then deleting them when you're done, just to keep it cleaner for the user.The only downside to all this is that I don't know how you would flash a kernel.
Click to expand...
Click to collapse
I'm guessing you'd just flash it as usual, surely that one is the easiest? Copying stuff to boot partition would hopefully be just as simple, I was mainly worried about updating system files. I could do with building one for the current update to test the theory!

[Q] How do you change the wallpaper on settings submenus in CM7?

I currently use a HTC HD Mini (Photon) running the SCREAM ROM by Ling Gan. It has a few bugs for most of which there is either a workaround or fix but there is the one problem which has remained unsolved: the default wallpaper on everything BUT the home and lockscreens cannot be changed. It is of a tree in a meadow under a blue sky and when rotated to landscape changes to some smiling chinese lady in the "settings" submenu. Doesn't hamper use much but it is quite annoying.
I have tried a number of solutions some of which resulted in my having to reflash and others did nothing. I post this here because I think it is a CM7 issue. The ROM developers have so far been unable to post a solution within the thread and I am aware that a fix for similar problems on CM9 ROMs exists using ADB to edit framework-res.apk. I felt it was time the problem was tackled by the wider XDA fam. Used google translate to look on the chinese site where the ROM is native to (mobile-kon) but found no help as well. Any help would be greatly appreciated.
i think ur problem lays in the framework-res.apk it contains the look of the rom and the transition effects
you can mod apk with the apkmanager tool for ur computer in the frameworkresapk you should find the images u want to change replace them witch a black picture or something like that
if never done this befoure exept from changing some transition effects and i had a couple of errors among this
the easier way seems to search for the rom on another page cus the images ure stating are not standart in the cm7
SOLVED!
jiffer1991 said:
i think ur problem lays in the framework-res.apk it contains the look of the rom and the transition effects
you can mod apk with the apkmanager tool for ur computer in the frameworkresapk you should find the images u want to change replace them witch a black picture or something like that
if never done this befoure exept from changing some transition effects and i had a couple of errors among this
the easier way seems to search for the rom on another page cus the images ure stating are not standart in the cm7
Click to expand...
Click to collapse
Many thanks!
I started off looking through the "res" folder in framwork-res.apk using Root Explorer to identify the images for the wallpaper. They were
Res/drawable-land-mdpi/screen-background-dark-transparent.png
And
Res/drawable-mdpi/screen-background-dark-transparent.png
I then created a copy of framework-res.apk on my SD card and copied it onto my pc. I created new wallpapers to replace the ones I just mentioned, one in portrait, the other in landscape. They were 320x480 and 480x320 respectively. Using 7zip on the pc, I placed them in the corresponding folders (/drawable-mdpi for protrait and /drawable-land-mdpi for landscape).
I copied framework-res.apk back to my sdcard and then fired up terminal emulator to run the following commands
su
sys -rw
busybox cp /sdcard/framework-res.apk /system/framework
sys -rw
You might get error messages from running apps after this but ignore them and reboot. The idea is to replace the framework-res.apk in system/framework with the one you just edited.
After the reboot, you should have your newly created wallpaper showing up in settings in both landscape and portrait modes.
Please hit "thanks" for both jiffer1991 and I if this was helpful. Big ups to jiffer1991for pushing me in the right direction.
Hi,
i did something wrong.
So my Phone didn´t run.
He show me the Bootsceen and the Animation.
But the he will run again and again and again.
Can i handle my Phone via USB so i can restore the framework.resp.apk on my System? Or i have to reinstall Android again?
I have no backup and i don´t want to erase my system settings.
Thanks
Felix
obstgarten said:
Hi,
i did something wrong.
So my Phone didn´t run.
He show me the Bootsceen and the Animation.
But the he will run again and again and again.
Can i handle my Phone via USB so i can restore the framework.resp.apk on my System? Or i have to reinstall Android again?
I have no backup and i don´t want to erase my system settings.
Thanks
Felix
Click to expand...
Click to collapse
hm u got stuck in a bootloop thats what i meant when i mentioned errors =)
you could make a zip with the old framework res apk or reflash the cm rom
if u dont whipe data/cash ure setting will be safed
read some tutorials how to mod the framework res apk
I have an .zip file on the sd card.
Can i copy it to the Android system somehow?
Felix
P.S. can i zip the framework and remove the ".zip" to ".apk"?
It is most likely that the zip file you have is the ROM image from which you flashed in the first place. Changing the extension to apk is NOT what you want to do. I suggest you create a backup in CWM of you present configuration and after reflashing, you can then do a partial restore of your user data. But its like Jiffer1991 said, read up on CWM, theres an exhaustive guide on xda somewhere.
Thanks,
i installed my modified cm rom without wipe caches data or something.
And now i have my old datas back, with the new Background.

Categories

Resources