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.
Related
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...
I applied a theme, and a few of JChi's mods to my ROMs, and was wondering if I could put them all together and either do a .bat or .zip?
I'm not sure about pushing files because of the theme, etc, (which would be done in bat)
Any help is appreciated.
no search results for
combine mod
combining zips
which mods do you want done?
I'm assuming you're asking, cause you'll zip it up for me, and it is appreciated, but is there a thread/tutorial in this? Do I just need to "sign" it?
1. Stock_Espresso - on DC updater
2. JChi - No End Call Button MOD
3. JChi - No Clock in Taskbar
4. Vanilla Lockscreen
5. Custom boot that I have
Thanks for the response!
THanks again
tejasrichard said:
which mods do you want done?
Click to expand...
Click to collapse
I actually grew a pair and am attempting to do this myself.
Nandroid first
Give it a whirl!
awesome man! if you check the 2.1 themes thread, and look for my name in the table of contents, I posted a theme that is pretty much exactly what you are trying to do.....plus some stuff that i liked. If you rip it open, you should be able to see exactly what you need to do to make yours work. Have fun! If you need any help, post over there and someone will give you a hand.
here is a link to that post:
http://forum.xda-developers.com/showpost.php?p=6270952&postcount=5
tejasrichard said:
awesome man! if you check the 2.1 themes thread, and look for my name in the table of contents, I posted a theme that is pretty much exactly what you are trying to do.....plus some stuff that i liked. If you rip it open, you should be able to see exactly what you need to do to make yours work. Have fun! If you need any help, post over there and someone will give you a hand.
here is a link to that post:
http://forum.xda-developers.com/showpost.php?p=6270952&postcount=5
Click to expand...
Click to collapse
Awesome, I had some trouble with the syntax in the update script but got some help from some good posts, and a few failed attempts!
I think I got it working, my custom bootscreen is currently on, but for some reason I think it moved my dalvik-cache from my sd to ROM, not sure how that is going to work out...haha.
See if it all worked once I'm booted.
yeah, update scripts give me fits sometimes. I normally "borrow" mine from others and then modify them to fit my needs. But then, I'm a cheater
tejasrichard said:
yeah, update scripts give me fits sometimes. I normally "borrow" mine from others and then modify them to fit my needs. But then, I'm a cheater
Click to expand...
Click to collapse
Well I messed something up because it tries to load espresso and it just restarts my boot screen again...haha.
I did have a number of failed flash attempts so I'm going to restore my nandroid and restart, make sure we're good, then re-flash my update.zip and see if it fixes itself.
I tihnk it could be the dalvik cache is too much (considering how many apps I have installed, etc.) and its causing problems.
Not sure what would have reset the DC.conf file....Oh well...here's to troubleshooting!
UPDATE
Got it up and running.
First time I've zipped and signed files. Now I just have to get the courage to edit and make themes! LOL.
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 want to play around with Android and see if I can port apks.
I was always curious about motoblur and I want to try it (I have the droidx motoblur). I tried installing BlurHome.apk on an Evo using adb and logcat and it says I am missing the "xyz library" so I look in the framework and found the xyz.jar fill and pushed it to my phone. Then I did a dalvik wipe and a reboot. When I watch the reboot on logcat I see it says it is loading the "xyz.jar" file but when I try and install the apk again, it tells me it can't find "xyz library"
I used apktool to decrypt it and look at the manifest and found a library use tag telling me the xyz.jar is needed. I also see a bunch of permissions pulled from apks I do no hqve installed. Do I need to worry about those too. I know the program with crash when trying to access them, but right now I just want to get it installed to see if it will work.
Sorry I called the library xyz, I'm trying this on my phone.
Any help pointing mie to an article, guide or tutorial about porting or frameworks would be appreciated. I'll end up putting something nice together if I ever figure it out to make it easier for others to figure this out too, or at least understand what is going on when they install a ported apk.
I think I'm on the right path here. I just opened the com.motorola.blur.library.utilities.jar file from the framework (the one that it said didn't exist), copied all the code to the BlurHome.apk and rebuilt it. It installed, but didnt appear in the phone or the app drawer. Then I pushed it to the system/app folder and it force closes on start up! (yay in the right direction)
I wish I could just use the framework.jar's but not sure how to get those to work. There are a few things referenced in the com.motorola.blur.library.utilities.jar that are in other com.motorola.blur.*.jar's so i need to go digging and try to inject those aswell.
Did you have any luck?
Sounds promising how is it going?
trimeijer said:
I think I'm on the right path here. I just opened the com.motorola.blur.library.utilities.jar file from the framework (the one that it said didn't exist), copied all the code to the BlurHome.apk and rebuilt it. It installed, but didnt appear in the phone or the app drawer. Then I pushed it to the system/app folder and it force closes on start up! (yay in the right direction)
I wish I could just use the framework.jar's but not sure how to get those to work. There are a few things referenced in the com.motorola.blur.library.utilities.jar that are in other com.motorola.blur.*.jar's so i need to go digging and try to inject those aswell.
Click to expand...
Click to collapse
Hi, how have you and others been getting on? I'm on that trail myself...either some apps won't appear after installing, or force close.
Gee. I've never seen someone seek out MotoBlur before. If you get this working, I'd like to try it myself, just to see what all the fuss is about.
SO, let me give you a little story.
One day i came up with the lovely idea to use NinjaMorph on my stock rooted BLUR ROM. after experiencing some cool mods, i tried to make my lockscreen back to stock... bad idea. after finding some of what appeared to be stock lockscreen pngs in my framework i changed my lockscreen into what now looks like a peice of ****. i tried to get them back through like a back up but i didnt have a backup made...
SOOOOO.... does anyone have a fix for my issue OR have .PNG'S for the stock android lockscreen i could use????? I wud really appreciate it
P.S. Because of my issues i have sadly been forced into the stupidity of gummyJAR and my phone wont let me install liberty 1.5
bretth18 said:
SO, let me give you a little story.
One day i came up with the lovely idea to use NinjaMorph on my stock rooted BLUR ROM. after experiencing some cool mods, i tried to make my lockscreen back to stock... bad idea. after finding some of what appeared to be stock lockscreen pngs in my framework i changed my lockscreen into what now looks like a peice of ****. i tried to get them back through like a back up but i didnt have a backup made...
SOOOOO.... does anyone have a fix for my issue OR have .PNG'S for the stock android lockscreen i could use????? I wud really appreciate it
P.S. Because of my issues i have sadly been forced into the stupidity of gummyJAR and my phone wont let me install liberty 1.5
Click to expand...
Click to collapse
Ok a couple of things here. When you mess your own phone up because of user error, it's not polite to bash on other's work for no reason, at least that's how your last comment comes across. I'll be nice and help you out but don't be surprised if a little flammage comes your way.
Second, people aren’t going to have random .png files laying around, it would be a long shot for what you are asking for, just being realistic. You are more then likely going to have to back up all your files and do a factory reset in the event someone does not have the .png you need.
If you want to give it a try with Root Explorer or transferring the stock res.apk file to your computer, the file you need will be in your update zip file. Once you find it, go to system, framework, framework-res.apk and find the file name you need. If you are using Root Explorer to find, it will need to be extracted.
sorry i didnt mean to be insulting. i have tried a factory reset but because changed the framework.res.apk it wont change back. im actually now taking some of the pngs from gummyjar and trying to give my blur a gingerbread notification bar
bretth18 said:
sorry i didnt mean to be insulting. i have tried a factory reset but because changed the framework.res.apk it wont change back. im actually now taking some of the pngs from gummyjar and trying to give my blur a gingerbread notification bar
Click to expand...
Click to collapse
You can always sbf and factory reset don't play with things until you know the full extent of ur own actions
Sent from my DROIDX using XDA App
bretth18 said:
sorry i didnt mean to be insulting. i have tried a factory reset but because changed the framework.res.apk it wont change back. im actually now taking some of the pngs from gummyjar and trying to give my blur a gingerbread notification bar
Click to expand...
Click to collapse
here is another way to fix your issue....
Take the attached framework-res.apk (taken from an unmodded gummyjar 2.5) and copy it to the root of your sdcard.
Connect your phone to your computer and put it in charge only mode. Next, do the following from a command prompt in windows. At the end of each line, press enter (not trying to be insulting, just for clarity sake).
adb shell
su
mount -o rw,remount /dev/block/mtdblock4 /system
cp /mnt/sdcard/framework-res.apk /system/framework/framework-res.apk
cd /system/framework
chmod 644 framework-res.apk
next open another command prompt (done to keep the one with shell access open).
Type from 2nd command prompt:
adb remount
adb reboot
Your phone will then reboot, and you should have all your original framework... Note that any theming you have done to the framework images will be undone, but your phone will be fixed.
PS having your phone in a bad state on one ROM should not prevent you from using another ROM. When you install a ROM, most times the new ROM's will format the existing /system partition to ensure that remnants of an old ROM are gotten rid of.
And as stated above, please don't bash on the devs. Kejar31 gives a lot of his time to developing his ROMS (as does any other dev), and they give out their work for free! =)
Hope these steps work for you, post back if you have issues/questions.