Related
Un so um jesusfreke if I understand all this and I'm not shure I fully do, but if I take out thr framework-res.apk un pack it edit it pack it all back up and sign it with thr sighnapk.jar utility and throw it back on my phone which has been moded with your boot recovery and update it will work....well at least in theory????? What's the worst that could happen at a failed attemtp do ya think?
worst that could happen?
brick phone. and I dont mean zack morris.
But assuming you know what everything you just typed actually does, should be fine.
VR4Stryph said:
Un so um jesusfreke if I understand all this and I'm not shure I fully do, but if I take out thr framework-res.apk un pack it edit it pack it all back up and sign it with thr sighnapk.jar utility and throw it back on my phone which has been moded with your boot recovery and update it will work....well at least in theory????? What's the worst that could happen at a failed attemtp do ya think?
Click to expand...
Click to collapse
I think you also have to re-sign all the .apk files in the /system/app folder. I just tried this last night and it all worked. I modified the default background in framework-res.apk. So now my phone is using the default background image with ugly black lines that I painted on it in gimp (see screenshot)
The only caveat is that you may have to reset the phone once you re-sign all the apks (alt+w in recovery mode). You will lose all your installed applications and data, and you'll have to re-enter your google account and password when you boot back up.
Try it without reseting, and if your phone acts weird, then try a reset and it should smooth things back out. After that point, you should be able to modify framework-res.apk without having to reset again.
The worst* that will happen is that you can't boot the phone normally. If that happens, put the modified RC30 update back onto your sd card somehow (external reader, another phone that uses miniSD cards, etc), and then boot into recovery mode and re-apply the modified RC30 update.
*I make no guarantees you won't brick your phone of course . But I can't think of anyway you would by doing this.
This isn't exactly skinning but it might help you start:
I modified the Launcher.apk so I could have my own wallpaper in the wallpaper gallery and take out the ugly stuff. Im sure you could change other resources in this and possibly other apk's as well.
I downloaded the android source from here http://source.android.com/download then slightly changed the source for Launcher.apk and recompiled it (make Launcher). My modified Launcher.apk worked fine on the emulator so I remounted my G1's /system partition as rw and replaced /system/app/Launcher.apk with my version and removed Launcher.odex then rebooted (dont forget to save the originals if you try this). So far its been working great in JesusFreke's modified RC30.
A screenshot of the modified wallpaper gallery is here: http://x8x.us/android/device.png
The signed modified Launcher.apk is here: http://x8x.us/android/Launcher_modified_wallpaper.apk
A tarball of the modified source is here: http://x8x.us/android/Launcher_modified_wallpaper.tar.gz
You can browse the modified source directory here: http://x8x.us/android/Launcher_modified_wallpaper/
The only changes I made were to src/com/android/launcher/WallpaperChooser.java and the res/drawable/wallpaper_*.jpg files.
Hopefully this will help you make similar changes on your own, at least until Google comes up with an easier method for changing skins and such. And maybe a wallpaper gallery thats not static!
Being able to do things like this are what I was hoping for when I bought the G1, sucks that they won't allow people to choose to enable root.
I just saw a detailed post from Living_Sword over at modmygphone on how to make the re-signing thing work. Thought y'all might be interested
http://www.modmygphone.com/forums/showthread.php?p=16871#post16871
JesusFreke said:
I just saw a detailed post from Living_Sword over at modmygphone on how to make the re-signing thing work. Thought y'all might be interested
http://www.modmygphone.com/forums/showthread.php?p=16871#post16871
Click to expand...
Click to collapse
Looks alot like the method you described above... umm... there any way to backup text messages yet.. iv'e got a few hundred that i'd like to keep :*(
VR4Stryph said:
Looks alot like the method you described above... umm... there any way to backup text messages yet.. iv'e got a few hundred that i'd like to keep :*(
Click to expand...
Click to collapse
It is. He took my idea and ran with it.
Re: backing up text messages.. not sure. Let me play with it a bit and get back to you
JesusFreke said:
It is. He took my idea and ran with it.
Click to expand...
Click to collapse
lol I never ran away with your idea. I acknowledge it as yours and thanked you for the idea in the original post here.
I know we are all trying to get the best out of our G1 and stealing ideas isn't the right way to go about it. Hope I cleared all misunderstandings
I didn't mean that in a bad way I saw your article and was like "oh cool! He got it to work."
just to clarify...
the default wallpapers you see in the Wallpaper Gallery activity are embedded in Launcher.apk?
i always thought it read some directory of images.
i guess that explains why the process for converting images from the Pictures activity requires crop/resizing and the gallery activity doesn't.
JesusFreke said:
I just saw a detailed post from Living_Sword over at modmygphone on how to make the re-signing thing work. Thought y'all might be interested
http://www.modmygphone.com/forums/showthread.php?p=16871#post16871
Click to expand...
Click to collapse
If i am just modifying a pic (.png) in the apk, does the apk still have to be resigned?
yes, it does need to be resigned.
Modifying Wallpaper Gallery
ive been trying to find a way to add my own wallpapers to the gallery and it seems its no easy task, isnt there a way to redirect the path to make it look in a directory? im a linux noob (especially on devices like this) so if im asking a dumb question i dont know that i am
also.. if the only route is to modify the launcher package, is it possible to add as many as you want? or is there a limit to how many you can put in/replace?
best bet is to modify the apk (i think it's launcher but it may be framework-res) but as far as i know you can only replace the wallpapers there unless you wanna try some hex edits
Apotheo said:
I downloaded the android source from here http://source.android.com/download then slightly changed the source for Launcher.apk and recompiled it (make Launcher).
Click to expand...
Click to collapse
im trying to create my own Launcher.apk so i can include my own wallpapers into the Wallpaper Gallery. Everytime i type "make Launcher" (im in the /packages/apps/ dir) it just says:
make: Nothing to be done for `Launcher'.
so i figured i would try going into the Launcher dir, then trying it... then i get this:
make: *** No rule to make target `Launcher'. Stop.
how do you compile these things? ive also tried opening it in eclipse with the android plugin but when i try to compile it tells me to fix like 300 something errors first.
I am using Modaco 2.0 Beta
I would love to remove the curved grey bar in the lockscreen apk, which I am led to believe is com.htc.resources.apk and is located in system/framework
within that is a folder res/drawable-port-480x320, which contains the 4 .png files.
Thing is, if I simply remove them, it throws the phone in a continuous loop when booting up, so obviously it is looking for something to go int here.
Is there any way anyone can tell me what should be there if I simply want to remove the grey bar ?
grifforama said:
I am using Modaco 2.0 Beta
I would love to remove the curved grey bar in the lockscreen apk, which I am led to believe is com.htc.resources.apk and is located in system/framework
within that is a folder res/drawable-port-480x320, which contains the 4 .png files.
Thing is, if I simply remove them, it throws the phone in a continuous loop when booting up, so obviously it is looking for something to go int here.
Is there any way anyone can tell me what should be there if I simply want to remove the grey bar ?
Click to expand...
Click to collapse
I am not sure what Modaco's lockscreen looks like but you can get a clear lock screen from fresh and push it in with the pre-kitchen. I dunno exactly what you are wanting to remove though. Just removing pictures isn't a good idea, open it in photoshop or something and make it transparent.
If you don't know how to do that, you can give me your file and Ill see what I can do.
I was wondering the same thing. I moved from fresh 1.1 to test this out, but I liked having one of Noj's lockscreens. I tried to use the kitchen to push it and it worked but that stock gray bar was still there blocking it. any help would be appreciated
wtphoto said:
I was wondering the same thing. I moved from fresh 1.1 to test this out, but I liked having one of Noj's lockscreens. I tried to use the kitchen to push it and it worked but that stock gray bar was still there blocking it. any help would be appreciated
Click to expand...
Click to collapse
Griff emailed me earlier saying he had figured that out. Maybe we can get him to post back his fix.
OK, what you need to do if you are running Modaco is
go here
http://geekfor.me/kitchen/lockscreens/
and download one of the first 2 lockscreens, either (ClearLock w/ 1.1 icons) or (ClearLock w/ Stock icons)
Once you;ve installed the clear lockscreen, you can then update the wallpaper.
grifforama said:
OK, what you need to do if you are running Modaco is
go here
http://geekfor.me/kitchen/lockscreens/
and download one of the first 2 lockscreens, either (ClearLock w/ 1.1 icons) or (ClearLock w/ Stock icons)
Once you;ve installed the clear lockscreen, you can then update the wallpaper.
Click to expand...
Click to collapse
tried this and it got rid of the bar but when I push one of the other lockscreens it doesnt have the bar any more but it shows a wallpaper behind the lockscreen. I tried useing the fresh kitchen to clear the lockscreen cache but still does it.
any ideas?
Maybe try using the lockscreen cache removal tool on the kitchen ?
grifforama said:
Maybe try using the lockscreen cache removal tool on the kitchen ?
Click to expand...
Click to collapse
tried it and still shows the stock wallpaper behind it. I also tried just running it through recovery as an update.zip and still came up that way. im kinda confused on it lol fresh kitchen has worked for stuff like this every other time I have tried it.
edit:ok got it I had to manualy go into system/etc/lockscreen/port/ and clear everything out of it
grifforama said:
OK, what you need to do if you are running Modaco is
go here
http://geekfor.me/kitchen/lockscreens/
and download one of the first 2 lockscreens, either (ClearLock w/ 1.1 icons) or (ClearLock w/ Stock icons)
Once you;ve installed the clear lockscreen, you can then update the wallpaper.
Click to expand...
Click to collapse
wtphoto said:
tried it and still shows the stock wallpaper behind it. I also tried just running it through recovery as an update.zip and still came up that way. im kinda confused on it lol fresh kitchen has worked for stuff like this every other time I have tried it.
edit:ok got it I had to manualy go into system/etc/lockscreen/port/ and clear everything out of it
Click to expand...
Click to collapse
I was gonna say post a screenshot, but I see you got it fixed.
let me know if you need any help with my lockscreens, I can always make a patch to clear just about anything up.
wtphoto said:
tried it and still shows the stock wallpaper behind it. I also tried just running it through recovery as an update.zip and still came up that way. im kinda confused on it lol fresh kitchen has worked for stuff like this every other time I have tried it.
edit:ok got it I had to manualy go into system/etc/lockscreen/port/ and clear everything out of it
Click to expand...
Click to collapse
NM Got it myself.
I am having this same problem I can't seem to get rid of the lockscreen background image I have done:
rm -r /data/misc/lockscreen
and flashed every clear lockscreen .zip I could find if I do what Wtphoto did with system/etc/lockscreen/port/ would I do something like:
rm -r system/etc/lockscreen/port/
I am so used to the clear lockscreen I can't do without it now and it's been so easy to get rid of with Fresh Roms but for some reason any other Rom that I flash will not let me remove the stock backgroung image
Lessthantito said:
I am having this same problem I can't seem to get rid of the lockscreen background image I have done:
rm -r /data/misc/lockscreen
and flashed every clear lockscreen .zip I could find if I do what Wtphoto did with system/etc/lockscreen/port/ would I do something like:
rm -r system/etc/lockscreen/port/
I am so used to the clear lockscreen I can't do without it now and it's been so easy to get rid of with Fresh Roms but for some reason any other Rom that I flash will not let me remove the stock backgroung image
Click to expand...
Click to collapse
im not sure if that command would work or not. I just went into /system/etc/lockscreen/port and manually remonved all the files in it there are 6 wallpaper.jpg's and 1 wallpaper.png. its really not that much work to just go in and remove them all
wtphoto said:
im not sure if that command would work or not. I just went into /system/etc/lockscreen/port and manually remonved all the files in it there are 6 wallpaper.jpg's and 1 wallpaper.png. its really not that much work to just go in and remove them all
Click to expand...
Click to collapse
Sounds like you used Droid Explorer or similar to do so
Is it possible to add the clear lockscreen to AOSP 1.6 after it's on the phone?
athlet1c said:
Sounds like you used Droid Explorer or similar to do so
Click to expand...
Click to collapse
no on the droid explorer I was in adb but I dont know all the different commands that are available in it so I just used the ones that I know. might be the long way but hey it works. lol
I cant seem to get rid of the back round screen behind the clear lock. I might just make a transparent one but i was wondering how you were able too Ill try another thing
Ecit NVM I FInally got it to work... installed the clear lock screen zip from Geeksfor.me and Removed the screens in /system/etc/lockscreen/port then reboot .In Business now
I have never had a problem getting rid of the background lock image before with Fresh's Pre-Kitchen or rm -r /data/misc/lockscreen but on the TTG1.6 Rom and MoDaCo 2.2 I could not remove the image but rm -r system/etc/lockscreen/port worked after looking through about 10 different threads on removing this image thanks to whoever figured that out
wtphoto, how did you remove those images? I am using root explorer but the images say they are read only. did you have to put a command in the terminal? I have better terminal installed so I could use that if I need to, just need the command code. Thanks in advance.
corybucher said:
wtphoto, how did you remove those images? I am using root explorer but the images say they are read only. did you have to put a command in the terminal? I have better terminal installed so I could use that if I need to, just need the command code. Thanks in advance.
Click to expand...
Click to collapse
I wasnt using a terminal I was using adb but I would assume it would be the same in the terminal you need to remount the system as read/write
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
wtphoto said:
I wasnt using a terminal I was using adb but I would assume it would be the same in the terminal you need to remount the system as read/write
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
Click to expand...
Click to collapse
Awesome, got it thanks for the help. Wish I knew more about commands and such but I am trying to learn.
I've been getting a lot of messages asking, 'How do you create ROM's?' Well, I got so many I decided to make this. This process is called cooking a ROM.
The first thing you have to do is get a ROM that's already been created and signed that you'd like to change around. Make sure it's a signed update.zip. Then, you unzip the rom, and you should see directories, like data/ and system/. If you want to add/remove applications in the ROM, you would goto data/app/. In there you will find the apk's of files that will be pre-installed on the ROM. You can add or remove the apk's there. Another place for the apk's is in /system/app. You really shouldn't put new apk's in here, but you can remove the system apk's. So, if you wanted to remove Sprint TV, delete Sprint_tv.apk. Also, the apk's can be treated as zip's; you can unzip them and look inside, and if you wanted to, change around the icon's and stuff like that. After you are done changing around the ROM, you might want to edit the build.prop (This part is optional!) You would find it in system/build.prop. Look for a line that says 'ro.build.description='. You can edit that with the name of your ROM. When your all done, you would zip it all back up, and sign the update.zip. On windows, this is pretty easy. Download flipz pre-kitchen, and use a setting in tools called something like sign apk/update.zip. Navigate to where you put your rom, and sign it. Then, your rom should be ready to flash.
This is also a good post to read:
http://forum.xda-developers.com/showthread.php?t=551711
Notes:
*DO NOT* TRY TO FLASH A GSM ROM TO A CDMA HERO!
If you edited a apk, make sure to sign it before zipping it and signing the update.zip.
If you have any problems, I created a IRC channel for this, so I can give live support:
server: irc.bikcmp.info port 6667 (port 6670 for SSL)
channel #hero-cdma
If you don't have a IRC client, use mibbit:
http://widget.mibbit.com/?server=irc.bikcmp.info&channel=%23hero-cdma
Told ya! But, seriously -- thanks a whole hell of a lot, this is very much needed!!
pseudoremora said:
Told ya! But, seriously -- thanks a whole hell of a lot, this is very much needed!!
Click to expand...
Click to collapse
You're welcome! If you have any problems, get me on IRC.
This should be a Sticky!!! Was thinking about doing it but not best speller.......
Thanks for the guide, what I really like is the irc, I think we should have had one of these up for awhile now, it would help keep the clutter in the forums down.
theoottesen said:
Thanks for the guide, what I really like is the irc, I think we should have had one of these up for awhile now, it would help keep the clutter in the forums down.
Click to expand...
Click to collapse
What's even better is it's being DDoSed. . Anyone got a spare server? LOL.
But seriously, DDoS'es ARE NOT COOL.
Alright, I've got my ROM made and everything -- signed it as well. I put it on my SD Card, and its flashes successfully -- but now I'm stuck at the HTC Screen?
I took the battery out; went back into recovery and Wiped and formatted my SD Card, and flashed again (successful), but still stuck on HTC screen?
Any ideas?
bikcmp said:
What's even better is it's being DDoSed. . Anyone got a spare server? LOL.
But seriously, DDoS'es ARE NOT COOL.
Click to expand...
Click to collapse
I think this is crazy awesome to give a small how to on 'cooking' ROMS....I've always been interested! However what are DDoS'es....if it's all good to ask?
I don't have linux on my windows laptop...but do I need to get a dual boot/OS on my laptop to get this running. Last I knew, Linux and Windows were not friends...?
pseudoremora said:
Alright, I've got my ROM made and everything -- signed it as well. I put it on my SD Card, and its flashes successfully -- but now I'm stuck at the HTC Screen?
I took the battery out; went back into recovery and Wiped and formatted my SD Card, and flashed again (successful), but still stuck on HTC screen?
Any ideas?
Click to expand...
Click to collapse
What ROM did you start with...? Did you do all kinds of crazy stuff to it? I found a ROM, downloaded it and opened it....saw a bunch of stuff in there that the OP described. Not quite sure what is game to pull and what is cool to add...?
Konikub said:
What ROM did you start with...? Did you do all kinds of crazy stuff to it? I found a ROM, downloaded it and opened it....saw a bunch of stuff in there that the OP described. Not quite sure what is game to pull and what is cool to add...?
Click to expand...
Click to collapse
Alright -- this is what I did.
1. I made a new folder called Penguin
2. Took Gumbo1.5c and unzipped it
3. Moved all the stuff from Gumbo to Penguin
4. Began removing apps I didn't want in /system/app
5. Added some apps in /data/app
6. Added a white taskbar to its respective dir
7. Added Espresso -- again to its respective dir
8. Added the 2.1 Icons
9. SIGNED the new zipped folder (Penguin) successfully
10. Copied to SD Card
11. Flashed successfully
12. When I reboot, I stuck at the HTC Screen (I waited about 2 and half minutes)
Steps I've taken to solve:
1. Removed battery
2. Wiped
3. Formatted card
4. Flashed again
5. Stuck again at HTC (again 2 minutes or so, until removing battery again)
5. Stuck again
Konikub said:
I think this is crazy awesome to give a small how to on 'cooking' ROMS....I've always been interested! However what are DDoS'es....if it's all good to ask?
I don't have linux on my windows laptop...but do I need to get a dual boot/OS on my laptop to get this running. Last I knew, Linux and Windows were not friends...?
Click to expand...
Click to collapse
DDoS is a denial of service attack. They are attacking my server and also my home network. I've got a lot of it cleared out, but still a lot of IP's doing it. Also, try Wubi for that Linux and windows issue.
Should you have waited longer than 2 and a half mins? I flashed Godzson Dialer and rebooted and it took 5 or 6 mins to boot, and when it did...I was happy.
Not sure if you took too much out or added something you shouldn't have, or just perhaps didn't wait long enough for it to boot.
...OH Wait, you mean that HTC symbol at the very begining..........gotcha now! I at least was on the nexus bootscreen when I waited.
Hope you get an awnser soon, I am looking forward to playing around and perhaps cooking up something good of my own
Konikub said:
Should you have waited longer than 2 and a half mins? I flashed Godzson Dialer and rebooted and it took 5 or 6 mins to boot, and when it did...I was happy.
Not sure if you took too much out or added something you shouldn't have, or just perhaps didn't wait long enough for it to boot.
...OH Wait, you mean that HTC symbol at the very begining..........gotcha now! I at least was on the nexus bootscreen when I waited.
Hope you get an awnser soon, I am looking forward to playing around and perhaps cooking up something good of my own
Click to expand...
Click to collapse
Exactly what I was saying, 2 minutes isn't enough for the first boot. It takes 5 or maybe even 10!
bikcmp said:
Exactly what I was saying, 2 minutes isn't enough for the first boot. It takes 5 or maybe even 10!
Click to expand...
Click to collapse
Well -- I've reflashed and am now playing the waiting game -- going to wait 15 minutes. Started at 2:17 (central)... we'll see in a little bit.
Here is a good list of Apps/Apks I found to help out some who don't know what to remove without causing a slew of FC's......if anyone knows of anymore that are safe, please keep this "How To" going strong!
APPS that are SAFE to remove
Question....where would the respective 'dir' be for throwing 2.1 icons into a ROM while cooking...? data/apps?
I'm honestly trying to google all my questions as well as search this forums threads....but sometimes I don't get the answer I need
Konikub said:
Here is a good list of Apps/Apks I found to help out some who don't know what to remove without causing a slew of FC's......if anyone knows of anymore that are safe, please keep this "How To" going strong!
APPS that are SAFE to remove
Question....where would the respective 'dir' be for throwing 2.1 icons into a ROM while cooking...? data/apps?
I'm honestly trying to google all my questions as well as search this forums threads....but sometimes I don't get the answer I need
Click to expand...
Click to collapse
The directory that the 2.1 icons should go in is /system/app/
Lets say I want to change the Browser.apk icon. I would pull it, open it as a zip file, look for ic_laucher.png (or something of this sort) -- and replace this file with the newly created icon (has to be the SAME name as the original file), you'll copy this new "icon" into the original dir, overwriting the changes -- and that's it.
If you need some help:
This will help you changing icons:
http://forum.androidcentral.com/htc-hero-roms-hacks/6070-changing-hero-application-icons.html
ROM FAQ/Building
http://forum.androidcentral.com/hacking/6037-general-rom-faq.html
I waited 15 minutes and still nothing -- so I just did a nandroid. I'll work on it some more tomorrow.
pseudoremora said:
The directory that the 2.1 icons should go in is /system/app/
Lets say I want to change the Browser.apk icon. I would pull it, open it as a zip file, look for ic_laucher.png (or something of this sort) -- and replace this file with the newly created icon (has to be the SAME name as the original file), you'll copy this new "icon" into the original dir, overwriting the changes -- and that's it.
If you need some help:
This will help you changing icons:
http://forum.androidcentral.com/htc-hero-roms-hacks/6070-changing-hero-application-icons.html
ROM FAQ/Building
http://forum.androidcentral.com/hacking/6037-general-rom-faq.html
I waited 15 minutes and still nothing -- so I just did a nandroid. I'll work on it some more tomorrow.
Click to expand...
Click to collapse
Any luck...? Anyone out there having success in trying to get this to work?
pseudoremora said:
The directory that the 2.1 icons should go in is /system/app/
Lets say I want to change the Browser.apk icon. I would pull it, open it as a zip file, look for ic_laucher.png (or something of this sort) -- and replace this file with the newly created icon (has to be the SAME name as the original file), you'll copy this new "icon" into the original dir, overwriting the changes -- and that's it.
If you need some help:
This will help you changing icons:
http://forum.androidcentral.com/htc-hero-roms-hacks/6070-changing-hero-application-icons.html
ROM FAQ/Building
http://forum.androidcentral.com/hacking/6037-general-rom-faq.html
I waited 15 minutes and still nothing -- so I just did a nandroid. I'll work on it some more tomorrow.
Click to expand...
Click to collapse
Have you tried just opening the zip,editing the name and files inside the zip,then resign it an flash. I ran into problems when I tried to take the files out and make my own.
[email protected] said:
Have you tried just opening the zip,editing the name and files inside the zip,then resign it an flash. I ran into problems when I tried to take the files out and make my own.
Click to expand...
Click to collapse
What files exactly are you saying I should edit? I'm up for any ideas -- I'm definitely going to get this to work, I want to contribute damn it!!
I just downloaded a ROM and took some apks that were on the "SAFE" list to remove from the link in the above post. Replaced some apk files with the 2.1 icons....using the same name as the ones I replaces (so I'm not 'adding' anything new)
Renaming my ROM and then zipping it up to flash. (doing it now, and if that works....then I will play with it a little more and see how far I can get until it does not boot)
HOPEFULLY this boot with what I've just done....lol. I should, I've done nothing really...
Myself and apparently many others like the AOSP apps better than the sense apps. I find the interface for the AOSP messaging, calendar, browser, calculator, and dialer/contacts applications to be more attractive and in some cases more usable. I really liked Bugless Beast 0.4 since it featured these applications, but I have had a hard time with the bug that keeps disk drive from working, and there are various reports of some syncing and battery issues. The EVO-NonSense series has been great too, but I use HDMI out sometimes and like having some of the sense stuff installed. Big thanks to both BuglessPete and tjohnsonjr for their AOSP work.
(7/18/2010) I have attached some of the files I have been using, see descriptions at the bottom of the post.
So since it took a little digging for me to figure out how to do this (even though to advanced users this is easy) I thought it might come in handy for other new users. Additionally I'm hoping by posting this someone can help me figure out how to get the dialer/contacts stuff working, I have the others working fine.
I've done the below on DamageControl, and I think another (baked snack maybe, can't remember). I'll probably throw together an update.zip that can patch these in place later, but I'd rather get the dialer/contacts part figure out first.
Setup:
1. You will need a fully rooted (toast root part 2, NAND unlocked) phone, and adb up and running. There are several explanations for both parts, but the ones listed in the "useful threads" sticky are joeykrim's for adb and toast's part 1 and part 2 for root.
2. I have been using the apk's from BuglessPete's bugless beast 0.4 ROM. The thread for it is available here.
Once you unzip the file, you will find the needed apks in the /system/app folder.
Note: Please donate to pete, he doesn't even have an EVO yet and is doing some great work. Hopefully if he has a phone to work on he can get some of these small bugs squashed and keep the development for BB going.
3. Backup your phone. If you don't know how to reboot into recovery and restore from a nandroid backup, you do not want to do this yet, especially if you want to try help me figure out how to get the dialer running. The idea with the dialer is to try different things until something works. In all likelihood you will hit a point where things are FCing so much you can't do anything. You will almost certainly need to restore from a Nandroid backup at some point.
Important: More than likely anything I list here can't break a phone in a way that a nandroid restore won't fix, but I can not and will not be accountable for any problems with your phone.
Which files:
One nice thing about adding files this way is you can pick and choose what to use. If you like the stock messaging but want the AOSP calendar, you can do just that.
Calculator: Calculator.apk
Calendar: CalendarProvider.apk and Calendar.apk
Default "Navigator" application: CarDock.apk <- you can keep both
Internet: Browser.apk and HTMLViewer.apk <- doesn't show previews of each tab, but allows up to 8 instead of 4. There may be other functionality gained or lost, I dunno.
Clock: DeskClock.apk (can exist beside HTC clock, and can be installed without this procedure)
Messaging (SMS, Text): Mms.apk <- Many people have trouble with this one.
####### Not Working! See post #2 ########
# Phone: Phone.apk, ContactsProvider.apk, Contacts.apk
###################################
To install:
I think you can use adb to do this install with the files still on the computer, but I go ahead and throw all the needed apks onto my sdcard, typically in a folder. Also, if you need to be in the Android SDK's /tools directory to use adb (this depends on your configuration) do that. Connect your phone, and make sure it is in "Charge Only" so the sdcard stays mounted. To make sure adb sees the phone properly issue:
Code:
adb devices
and you should get a return listing the device ID. If so we will mount the /system partition as read-write:
Code:
adb remount
Log into the phones local shell:
Code:
adb shell
you are now on the phones command line and file system, not on your local machine. Now we can start installing files. I'll use Calculator in this example, and I have the apk in a folder on the sdcard called AOSP_apks:
Code:
install /sdcard/AOSP_apks/Calculator.apk /system/app
You can do a couple at a time, and you must do more than one at a time when installing a provider like CalendarProvider.apk and Calendar.apk.
Once you are done, exit the phone's shell, and reboot the phone:
Code:
exit
adb reboot
The change may show up immediately, but the phone and applications aren't designed to change these core functions on the fly, so make sure to reboot the phone. Once it reboots you will probably notice the AOSP icon has replaced the former, and you have the AOSP skin and/or functionality.
Post #2 will deal with progress so far on the dialer/contacts.
(added 7/17) Notes on different apks: The BB Launcher2.apk has his skin on the google search widget, or grab the apk from something else like DC for stock. Launcher.apk from BB is the one with the wide drawer and (I think) 9 screens.
Music.apk from DC is the modded music app from Cyanogen. It has some very nice UI tweaks.
Attached:
- Music.apk used in Cyanogenmod from DC
- Calendar, CalendarProvider, Browser and HTMLViewer from BB 0.4
- CarDock, Calculator, and MMS from AOSP EVO-NonSense
Contacts/Dialer Progress: I'm sure some of the more advanced developers know the answer to this, so ideally someone can fill me in. In the meantime I'll report my findings here, and if others can add feedback to the thread on what they have done, I'll update this post. Hopefully in the long run there will be a straightforward explanation for this I can add to the above post.
I have installed the three files listed above (ContactsProvider.apk, Contacts.apk, and Phone.apk) which seems to install the right bits, but I get FCs.
Later on I added Telephony.apk and FutureDialService.apk, which didn't improve anything. Finally I noticed that Bugless Beast didn't have HTCDialer.apk, so I removed that as well. I think this was the point things went from the dialer and contacts applications FCing to non-stop FCs that kept me from doing anything on the phone.
Attached are the three apps I'm sure are involved for the Contacts/Dialer, pulled from tjohnsonjr's AOSP EVO. More files may be needed, but I'm still trying to figure out which.
The Dialer/Contacts apk used to work, I believe on ROMs that are not based off the newest OTA. Since it worked for me, but stopped once I started using ROMs based of the newest OTA. Anyways great post.
I installed the files and I cant see them. They're in the folders but its like they're hidden from the OS.
I tried to do this before since I love BB but the wake bug in v4 was killing me. I always got install errors. Did you delete the Mms.apk first.. THEN install Mms.apk and reboot? Or did you just install over it? I got errors either way. Also it totally disabled texting on my phone even after reinstalling the HTC Mms.apk.
I had to clean cache/reset then reflash my Nand backup and even then my texting was still broken until I sent one to my wife and then magically I got the 10-15 test "texts" I had sent.
RikusHaven said:
The Dialer/Contacts apk used to work, I believe on ROMs that are not based off the newest OTA. Since it worked for me, but stopped once I started using ROMs based of the newest OTA. Anyways great post.
Click to expand...
Click to collapse
Thanks and thanks. This is interesting. Of course BB is based on the older ROM, so maybe that is why BB works but this doesn't. I'll have to grab an older ROM and try that. It may be an issue of grabbing a newer build of the dialer or something.
warmachine69 said:
I installed the files and I cant see them. They're in the folders but its like they're hidden from the OS.
Click to expand...
Click to collapse
Did it overwrite the existing files? Or do you totally not have whatever you installed, AOSP or sense? Which ROM and version?
MikeBrWade said:
I tried to do this before since I love BB but the wake bug in v4 was killing me. I always got install errors. Did you delete the Mms.apk first.. THEN install Mms.apk and reboot? Or did you just install over it? I got errors either way. Also it totally disabled texting on my phone even after reinstalling the HTC Mms.apk.
I had to clean cache/reset then reflash my Nand backup and even then my texting was still broken until I sent one to my wife and then magically I got the 10-15 test "texts" I had sent.
Click to expand...
Click to collapse
Were you able to successfully do the adb remount first? The way I did it just overwrote the existing Mms.apk.
Also what ROM and version are you running?
laydros said:
Thanks and thanks. This is interesting. Of course BB is based on the older ROM, so maybe that is why BB works but this doesn't. I'll have to grab an older ROM and try that. It may be an issue of grabbing a newer build of the dialer or something.
Did it overwrite the existing files? Or do you totally not have whatever you installed, AOSP or sense? Which ROM and version?
Were you able to successfully do the adb remount first? The way I did it just overwrote the existing Mms.apk.
Also what ROM and version are you running?
Click to expand...
Click to collapse
BBv3 and yes the remount worked.. I am currently in my 84th hour of a long battery duration test so I can't plug it in and try it right now since it will wipe my stats. However it would give some "parse" error and then fail to install. If I forced it by just cp'ing the apk and chmod'ing the exec permissions it would fail horribly.
84th hour of a battery duration test? details please?
MikeBrWade said:
BBv3 and yes the remount worked.. I am currently in my 84th hour of a long battery duration test so I can't plug it in and try it right now since it will wipe my stats. However it would give some "parse" error and then fail to install. If I forced it by just cp'ing the apk and chmod'ing the exec permissions it would fail horribly.
Click to expand...
Click to collapse
Was it something like
Code:
Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]
If so, I had the same error when I didn't have the /system partition fully mounted as read-write. Did you get any errors from the "adb remount" command?
davebu said:
84th hour of a battery duration test? details please?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=7154719&postcount=993
This is my post talking about it.. I am on hour ~91 of the test.. still running with 8% battery left... BBv3 rocks!
laydros said:
Was it something like
Code:
Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]
If so, I had the same error when I didn't have the /system partition fully mounted as read-write. Did you get any errors from the "adb remount" command?
Click to expand...
Click to collapse
Hmmm maybe I did and didn't notice it.. I am down to 8% right now so by mid day my battery will probably die. I am hoping to make the 100Hr on one charge mark, after that I will try again and note any errors.
MikeBrWade said:
Hmmm maybe I did and didn't notice it.. I am down to 8% right now so by mid day my battery will probably die. I am hoping to make the 100Hr on one charge mark, after that I will try again and note any errors.
Click to expand...
Click to collapse
ok so I just redid your steps and I didn't get the error code this time (maybe my remount didn't work the last time I tried it). But now I get FC everytime I try and launch the text app. I installed over the Htc mms.apk =(
Anyone got an HTC Mms.apk handy they can post so I don't have to restore nand?
If you have the AOSP apps available, could you please post them all in .zip folder in the OP?
MikeBrWade said:
ok so I just redid your steps and I didn't get the error code this time (maybe my remount didn't work the last time I tried it). But now I get FC everytime I try and launch the text app. I installed over the Htc mms.apk =(
Anyone got an HTC Mms.apk handy they can post so I don't have to restore nand?
Click to expand...
Click to collapse
NVM I extracted it from an old nand backup. So, for me at least the Mms.apk from AOSP causes FCs and won't run at all . Put the HTC Mms.apk back and it works fine. =( Urgh any hints?
edited to add the HTC Mms.apk incase someone does what I did and kills it, so they dont' have to go through the process of trying to extract it.
MikeBrWade said:
NVM I extracted it from an old nand backup. So, for me at least the Mms.apk from AOSP causes FCs and won't. Put the HTC Mms.apk back and it works fine. =( Urgh any hints?
edited to add the HTC Mms.apk incase someone does what I did and kills it, so they dont' have to go through the process of trying to extract it.
Click to expand...
Click to collapse
The only issues I've had with the AOSP Mms.apk was the lack of actual mms functionality.
thanks for the apk so I could go back
I[E said:
The only issues I've had with the AOSP Mms.apk was the lack of actual mms functionality.
thanks for the apk so I could go back
Click to expand...
Click to collapse
Interesting that you say that, since I had some MMS texts in my cache. Wondering if when the AOSP version couldn't deal with them so it just FC'ed instead.
So I tried that, deleting ALL my texts so it wouldn't have some MMS collision or something. But that didn't work either, HTC Mms.apk works fine.. the AOSP.apk FC's. Could the OP or something with a working AOSP Mms.apk post it maybe it's my copy. Mine has an MD5 of : 441e3b8863bc3ab88ce6ad9bc1671f22
I have mms messages in my cache too. The AOSP apk shows them fine, just can't send new mms messages. Maybe your file is corrupt?
Sent from my PC36100 using XDA App
I going to upload all the AOSP apks that I include in my ROMs when I get home tonight.
Can you tell us how you got contacts.apk to work? I'm trying with FreshRom and I pulled the Contacts.apk from your Rom and it won't recognize the file when I push it using adbshell. The file is in the app folder but android ignores it.
I[E said:
I have mms messages in my cache too. The AOSP apk shows them fine, just can't send new mms messages. Maybe your file is corrupt?
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
Does does your md5 match mine?
I decided that I didnt like the default CircleBattery in the TPC v3 ROM, so I set out to change it to one i liked better. This would be it. I also hated that the vibrate icon on the status bar was always on. I made it go away. My phone is on vibrate in both the attached screenshots.
THIS HAS ONLY BEEN TESTED ON TPC v3
It may work on other ROMs, but FLASH AT YOUR OWN RISK.
At the very least, you should be on a deodexed ROM! Otherwise funky things WILL happen!
Removing the Vibrate icon SHOULD work on most ROMs, but i have never tried it and have no information telling me either way. The battery mod may work on most Rogers-based rom, but it will almost definitely mess with other things in ROM. I would not install recommend installing it on a different ROM.
How to install
Using flashable zips:
Code:
[LIST=1]
[*]Backup current rom, just in case
[*]Download the zip file you want to flash (attached below)
[*]Flash in CWM recovery
[*]clear dalvik cache
[*]reboot system, wait for long reboot (system is rebuilding dalvik cache, every boot afterwards will be back to normal speeds)
[/LIST]
With adb:
For the Battery Mod:
Code:
[LIST=1]
[*]Create a backup of your current Framework-res.apk
[LIST][*]either make a nandroid or "adb pull /system/framework/framework-res.apk"[/LIST]
[*]Download the attached framework-res.apk
[*]reboot your phone into recovery
[LIST][*]either in terminal enter "reboot recovery" or use "adb reboot recovery"
[*]this MAY not need to be done, but i have never tried it any other way. better safe than sorry[/LIST]
[*]on your phone in recovery, mount the system partition
[LIST][*]mounts and storage > mount /system[/LIST]
[*]on your pc, enter this command, replacing [DOWNLOAD PATH] with the path to where ever you downloaded the framework-res.apk
[LIST][*]adb push [DOWNLOAD PATH]/framework-res.apk /system/framework
[*]there is a space between the .apk and /system
[/LIST]
[*]Clear your dalvik cache and fix permissions
[LIST][*]advanced > clear dalvik cache
[*]advanced > fix permissions
[*]again, this may not need to be done, but i have never tested it without doing it[/LIST]
[*]reboot your phone
[LIST][*]this will take a long time, as your phone is rebuilding the dalvik cache.
[*]each boot after the first will be much faster[/LIST][/LIST]
For the No Vibrate icon
Code:
[LIST=1]
[*]Create a backup of your current SystemUI.apk
[LIST][*]either make a nandroid or "adb pull /system/app/SystemUI.apk"[/LIST]
[*]Download the attached SystemUI.apk
[*]reboot your phone into recovery
[LIST][*]either in terminal enter "reboot recovery" or use "adb reboot recovery"
[*]this MAY not need to be done, but i have never tried it any other way. better safe than sorry[/LIST]
[*]on your phone in recovery, mount the system partition
[LIST][*]mounts and storage > mount /system[/LIST]
[*]on your pc, enter this command, replacing [DOWNLOAD PATH] with the path to where ever you downloaded the SystemUI.apk
[LIST][*]adb push [DOWNLOAD PATH]/SystemUI.apk /system/app
[*]there is a space between the .apk and /system
[/LIST]
[*]Clear your dalvik cache and fix permissions
[LIST][*]advanced > clear dalvik cache
[*]advanced > fix permissions
[*]again, this may not need to be done, but i have never tested it without doing it[/LIST]
[*]reboot your phone
[LIST][*]this will take a long time, as your phone is rebuilding the dalvik cache.
[*]each boot after the first will be much faster[/LIST][/LIST]
These can both be done at the same time if you want to save time and use both. Steps 1, 2, and 5 should be done at the same time, and it doesnt matter which order.
Enjoy!
Great job, but a flashable zip would be so much easier.
True... Well I created flashable zips. only problem is I'm not sure if they work. I tested all of them, they all flash and my phone is still completely usable, so I dont think they are dangerous. But, since my phone already had these installed, I cant tell if they actually changed anything. If someone could test this, it would be quite awesome. Dont want to put it on the main post if it doesnt actually work.
Thanks,
I tested BatteryMod and NoVibrate.zip and it work like a charm,
Great job.
The battery was not exactly my taste then I changed it for this
Thanks for testing it! I'll put the zips on the main post now. What rom were you using? If this works on other roms, I'd like to let people know. That is a cool icon. I personally think any circle mod clashes with the touchwiz theme, which I actually like.
Thanks dude! this was my only gripe with TPCv3! I'll try the zip in the morning. Thanks!
Hey man how did you get the battery percentage to be off-centered like that within the battery icon? And did you use UOT?
Sent from my SAMSUNG-SGH-I727 using XDA App
I use TPCv3
and yes I used UOC to build the new battery.
plwalsh88 said:
Hey man how did you get the battery percentage to be off-centered like that within the battery icon? And did you use UOT?
Sent from my SAMSUNG-SGH-I727 using XDA App
Click to expand...
Click to collapse
well i manually edited the framework-res.apk file. did not use any software besides 7zip. the battery icons are just pictures, so the text isnt overlayed text, its just a .jpg with a number in it. i didnt actually make the battery icons, i took them from a galaxy s2 rom from somewhere.
Pseudonym117 said:
well i manually edited the framework-res.apk file. did not use any software besides 7zip. the battery icons are just pictures, so the text isnt overlayed text, its just a .jpg with a number in it. i didnt actually make the battery icons, i took them from a galaxy s2 rom from somewhere.
Click to expand...
Click to collapse
Ohhh interesting, thank you! Since I'm not running TPC, I wouldn't want to take your framework-res, but I guess I could use the battery images you used and swap them inside my framework-res. I've been wanting to learn how to decompile/recompile those apks, so I guess this would be good practice. I'd have to read up more about where the images go and all though. But that's doable right?
Sent from my SAMSUNG-SGH-I727 using XDA App
its definitely doable! really, all you need to do is open the framework-res from here in 7zip (not extract, just open) and copy all the files that include "stat_sys_battery" from "res/drawable-hdpi" and put them inside your framework-res (same folder, opened in 7zip). then you need to copy "stat_sys_battery.xml" and "stat_sys_battery_charge.xml" from the "res/drawable" into your framework-res.
if i didnt properly explain that, let me know. you definitely should make a backup of your rom before flashing a custom framework-res, just in case you break something.
Wow awesome! That doesn't sound bad at all. I will give it a shot for sure. And will definitely backup everything. I would then just adb push it back to /system/framework as you described in your OP right? That could also be done with root explorer right?
Sent from my SAMSUNG-SGH-I727 using XDA App
i would do it like i said in my original post. you may be able to do it with root explorer, but i wouldnt personally do it, as files are constantly being read from framework-res.apk. dont think it would work, like deleting a file in windows doesnt work when you have in open in another program. i could be wrong, but i think adb at the recovery menu would be much safer.
Yeah that makes perfect sense. I'll let you know how it goes when I finally find the time to do it. Thanks for your help!
zip worked as stated. TPCv3
thanks again
zip working on stock too, only power buttons are not in order..
norbarb said:
zip working on stock too, only power buttons are not in order..
Click to expand...
Click to collapse
full stock or deodexed stock? if it isnt deodexed, i am extremely surprised that it worked. what do you mean by the power buttons being out of order?
Pseudonym117 said:
full stock or deodexed stock? if it isnt deodexed, i am extremely surprised that it worked. what do you mean by the power buttons being out of order?
Click to expand...
Click to collapse
Full stock. When you press power to turn off phone you got Sound off where Power off should be also when Flight mode should be is Sound off. When you press volume buttons you got message something about Text settings, but icons are correct so you know what is for what...
norbarb said:
Full stock. When you press power to turn off phone you got Sound off where Power off should be also when Flight mode should be is Sound off. When you press volume buttons you got message something about Text settings, but icons are correct so you know what is for what...
Click to expand...
Click to collapse
very strange... it may do less things wrong if you were to have a deodexed rom (probably would still have somewhat funky behavior, but not as much). but if youre happy with how it works, by all mean keep it how it is.
floppy__ said:
Thanks,
I tested BatteryMod and NoVibrate.zip and it work like a charm,
Great job.
The battery was not exactly my taste then I changed it for this
Click to expand...
Click to collapse
Just an FYI to you or anyone else that might not be aware (since there are no pics for the Sky ICS ROM additional downloads). This is also available as one of the extra downloads in the Sky ICS ROM thread (post #2). Its the Digital Circle Battery mod.