[SOLVED] Donut's AlarmClock.apk port for Froyo - G1 Android Development

As many of you know, Eclair and Froyo come with the newer DeskClock.apk which includes the alarm clock functionality.
But I prefer the old AlarmClock.apk from Donut.
Copying the apk straight from Donut to Froyo doesn't work. Is it possible to compile the old Donut AlarmClock.apk source with the Froyo SDK and have the old app working how I want?
Has anyone done this before? (or feels like doing it to save me the bother )

Man i use the old DONUT alarm.apk and works great, no need to "recompile" the app, just copy to system/app using the root explorer, and give the permissions to the apk, restart the phone and see if it's works.
only issue i have is some times they gone from notfication bar, but the alarm works great.

Ahh, I didn't notice the permissions were all messed up when copying it from the SD card.
Thankyou so much

Related

[ROM] 11/20 - Gutted Hero 1.5 *Add ons can now be flashed*

Update!!! Add on zip files can now be flashed through recovery to install!
Update!!! Gutted Hero 1.5 Available with the MR Update!
PLEASE READ THIS ENTIRE THREAD BEFORE ASKING QUESTIONS!
Ok. There are many changes in this rom. Some may or may not like the changes. I was thinking that I should really live up to the name "Gutted" so I completely removed anything and everything I possibly could. The change log is going to be in the next post.
Also, as stated above this update includes the MR so any issues that were resolved with the update are resolved in this rom.
Now I removed the clock widget in this release but you can easily add it back and the issue with the location and weather not showing should be fixed. Usually it takes a minute or two to find location once pushed but if it doesnt work also push HTCNew.apk and odex and it should work fine.
Oh and before I forget make sure you remember to go into the settings and do a few things. First go to Settings->Data Sunchronization->Google and set up your Google account. Also you may go to Location to set up your GPS and Display to set up the animations.
Finally, I would like to thank MoDaCo for porting the first custom rom ever to the CDMA Hero and making us all very happy people, Amon_RA for his awesome recovery image, Mlign from the Dream community for guidance and pieces of his rom and everyone here at the XDA Communities for being awesome and never giving up.
Downloads:
Gutted Hero 1.5 Full Update (68.5MB)
HTC Apps (Peep, Teeter, PDF Viewer, etc.)
HTC Widgets
Sprint Apps
Stock Apps (Voice Search, Mail, IM, etc.)
System Files (Such as HTCNew.apk, etc.)
Old Downloads: (Dont flash any of these if you want the MR update to stay in tact. These are for Gutted Hero 1.0 only!)
Gutted Hero 1.0 Full Update (70MB)
Android Apps Mini Update (Contains Voice Dialer, IM, Mail)
HTC Apps Mini Update (Contains Footprints, PDFViewer, Teeter, Weather, World Clock)
HTC Widgets Mini Update (Contains Stocks Widget and Footprints Widget)
Sprint Apps Mini Update (Contains.... Sprint Apps)
Changelog
[Gutted Hero 1.5]
Optimized multiple applications as well as Rosie (also reoptimized Rosie since we have the MR update included) such as the Browser, HTC Albums, Phone and Settings
Optimized additional jpegs and pngs that were located various places in the rom
Added Hosts file to block ads for faster web browsing
Added Sprint Visual Voicemail back into the mix
Removed EVERYTHING. Every single HTC widget is now gone, including the clock widget (Look in above post for more)
Removed all other HTC apps that start up on start up including Teeter and Peep
[Gutted Hero 1.0]
Fast
Optimized apps including Rosie.apk (Rosie was 8MB now it's 1.2MB!)
Optimized htc.com.framework.apk and framework-res.apk files
MoDaCo's great and stable 1.1 rom base
Animations from Moto Blur (I think. They are the zooming fading transitions in Mlign's Dream Hero rom)
New Bootscreen (again from Blur I think, it's from Mlign's Dream Hero rom)
Oh and it's fast too
I'm pretty sure the clock is crashing because you removed the weather. They had seemed to be closely tied when I looked at the original sense ui.
aven_soulgazer said:
I'm pretty sure the clock is crashing because you removed the weather. They had seemed to be closely tied when I looked at the original sense ui.
Click to expand...
Click to collapse
No. I removed Weather many times before and the clock functioned perfectly. At work now so I will have to try and fix it tonight.
# Optimized apps including Rosie.apk (Rosie was 8MB now it's 1.2MB!)
# Optimized htc.com.framework.apk and framework-res.apk files
Mind if I ask how you did this? I'm curious if I can just do that on my phone.
thecodemonk said:
# Optimized apps including Rosie.apk (Rosie was 8MB now it's 1.2MB!)
# Optimized htc.com.framework.apk and framework-res.apk files
Mind if I ask how you did this? I'm curious if I can just do that on my phone.
Click to expand...
Click to collapse
Yeah it's easy really. If you want you can take it from my rom and just replace it. The way I did it though is by opening up /system/app/Rosie.apk in an archive manager of some sort (7zip would work). Then I pulled all the pngs out of it and optimized them with optipng. Then I just dragged them back into the apk and your done. There are also jpegs somewhere in there so I deleted all of them except for the first one and with that one I just resaved it and compressed it a bit. You can look in my Rosie.apk if it helps or like I said, your free to just use that one if you want. Just note if you take my framework-res.apk, that is where the anims are stored so you will want to replace my anims folder with MoDaCo's unless you like the new ones.
I believe it's crashing because you removed WorldClock...
ajones7279 said:
I believe it's crashing because you removed WorldClock...
Click to expand...
Click to collapse
That is definitely why it crashes when you click on it. If you push worldclock.apk and worldclock.odex it will be fixed but I figured thats a bug we could live with
chuckhriczko said:
Yeah it's easy really. If you want you can take it from my rom and just replace it. The way I did it though is by opening up /system/app/Rosie.apk in an archive manager of some sort (7zip would work). Then I pulled all the pngs out of it and optimized them with optipng. Then I just dragged them back into the apk and your done. There are also jpegs somewhere in there so I deleted all of them except for the first one and with that one I just resaved it and compressed it a bit. You can look in my Rosie.apk if it helps or like I said, your free to just use that one if you want. Just note if you take my framework-res.apk, that is where the anims are stored so you will want to replace my anims folder with MoDaCo's unless you like the new ones.
Click to expand...
Click to collapse
The rosie linked here is a scant 732 kilobytes:
http://forum.xda-developers.com/showthread.php?t=532822
I had been toying with installing it for awhile, then I downloaded the dxTop home replacement and I don't think I will be using rosie ever again .
EDIT: Great rom idea btw. I would love to see a real "gutted" Hero rom, including the removal of Rosie. MoDaCo has previously posted a neat little script to accomplish this:
http://forum.xda-developers.com/showthread.php?t=547658&highlight=rosie+modaco
chuckhriczko said:
That is definitely why it crashes when you click on it. If you push worldclock.apk and worldclock.odex it will be fixed but I figured thats a bug we could live with
Click to expand...
Click to collapse
I suppose. But some people use their clock as an alarm.
ajones7279 said:
I suppose. But some people use their clock as an alarm.
Click to expand...
Click to collapse
Does hitting the "Clock" shortcut in your app drawer not work either?
Speaking of weather and location not working in the clock widget, I'm noticing the same behavior from MoDaCo's 1.1 ROM. I've searched for more information about it but haven't come up with anything yet. Do you have any updates as to why this might not be working?
chuckhriczko said:
Yeah it's easy really. If you want you can take it from my rom and just replace it. The way I did it though is by opening up /system/app/Rosie.apk in an archive manager of some sort (7zip would work). Then I pulled all the pngs out of it and optimized them with optipng. Then I just dragged them back into the apk and your done. There are also jpegs somewhere in there so I deleted all of them except for the first one and with that one I just resaved it and compressed it a bit. You can look in my Rosie.apk if it helps or like I said, your free to just use that one if you want. Just note if you take my framework-res.apk, that is where the anims are stored so you will want to replace my anims folder with MoDaCo's unless you like the new ones.
Click to expand...
Click to collapse
Sweet, thanks!!! (I seem to recall learning this before...just completely forgot it until now, and hadn't thought to do this. I wonder what other apps I could apply that too...hmm)
Will your Gutted ROM install if I have MoDaCo 1.1 installed, running Apps2SD with my SD card partitioned with the three partitions? I have had trouble installed Fresh's ROM because of the Apps2SD partitions.
davidboyd said:
Will your Gutted ROM install if I have MoDaCo 1.1 installed, running Apps2SD with my SD card partitioned with the three partitions? I have had trouble installed Fresh's ROM because of the Apps2SD partitions.
Click to expand...
Click to collapse
Since this is based off of MoDaCo's rom yes, Apps2SD works straight out of the box.
post back later if I like it flashing right now, but adding back some of the apps. Many thanks for adding the orginal apps I do use some but others will never be used.
Do I need to wipe then flash?
yeah need to wipe before flashing, ok will live with it for a day then I'll get back and post an update
Flashed with the Gutted ROM and I get "HTC Sense has stopped unexpectedly. Please try again" at startup. Can't fully boot. I powered down and rebooted and I get the same thing.
davidboyd said:
Flashed with the Gutted ROM and I get "HTC Sense has stopped unexpectedly. Please try again" at startup. Can't fully boot. I powered down and rebooted and I get the same thing.
Click to expand...
Click to collapse
Did you wipe?
What is the rosie.ask? What does it do?

Flipping Animations for Us too?!

I was browsing around and found this:
http://forum.xda-developers.com/showthread.php?t=813162
and tried pushing and pulling the anim folder and all worked great, except everything!
the flip animations worked, but every app FC'ed.
so i basically only saw the flipping during the fc screens!
looks great, but doesn't work.
i have NO CLUE how to make it work.
what needs done to the files to get it to work?
and i MAY need the stock anim folder from our phone please!
by MAY i mean i do badly!
thanks!
:scooter:
Back when I was running Zen-ROM I was using Envynet's Elegant Envy theme, seen here: http://forum.xda-developers.com/showthread.php?t=768540
It had very similar animations to what I saw in the video...hopefully you can pull something from that.
i'm going to look into that.
thank you very much
Just wanted to say first time I pulled com.htc.resources.apk and pushed to that (made a backup before I modified) so after I pushed it nothing happened..
Then I pulled framework-res.apk and ploped the anim files in that.
Well now I get some really cool flip style transitions on my status bar up top, but no flip clock... Or is this what it's about? BTW, I got NO fc's on this either. If you want the framework-res.apk file, i'll post it.
Either way at least the flip style status bar will make a great addition to my roms
i could only get the ones from the dark to actually work.
all others wouldn't unzip.
so i'm giving them a go now.
i'll keep you posted.
sure, let me have what you got.
i'll toy around with them a little too.
thanks
so, the aria dark framework-res didn't work.
same thing.
force closes, but they flip!
by the way,
i'm using cm6 with adw launcher.
andro green theme.
i'm going to try LP instead of adw.
I believe envynet has did this before with his Envy Aria theme as I remember the flipping animations when i used that rom and his theme.
http://forum.xda-developers.com/showthread.php?t=768540
i tried those from Envy.
no avail.
still the same FC's as before.
rideascooter said:
sure, let me have what you got.
i'll toy around with them a little too.
thanks
Click to expand...
Click to collapse
Here's my framework-res.apk file:
http://www.mediafire.com/?1xdbf9w9308cwe2
All I did was pull the original from my phone, merge the anim directories with the file you provided and pushed back and voila! flips animations (between screens)
....
I just noticed you said your using cm6...
Well, I guess I better warn you.
I am using HTC Stock 2.1(base). And I am on Cellular South not Sprint, so definitely make a backup of your current framework-res.apk file before pushing this one.. dunno if it will work or not but hope so.
Thanks Hex:
Still gettting FC's.
i'm guessing it doesnt like AOSP.
i haven't had any luck with anything i've come across.
but they have ALL been from sense based roms. i think ....
i think i'm going to need some help on this.
anybody?!
Man this would be cool
it looks great,but ....
i can only see it on the FC screens!
Sounds to me like the xmls in that anim folder have settings pointing to various Sense related stuff (as I am finding out the hard way on my minimalist rom atm)
What you would need to do is decompile the xmls from cm6, and the xmls from the flipping anim folder and go through one by one merging just the flip code related to the animations and remove any sense related links... Which if I remember correctly are going to be addresses AND memory pages. This may prove to be quite tough to decipher.
Yeah I just think the .zip you found doesnt like aosp. I got it to work on my sense rom thanks to Hex. Now I like the animations.
Thanks man, always glad to help!
and how do i edit / decomplile these?
point me in the right direction, and i'm on it.
i want this to happen.
i'll probably hate it after a while, but i keep getting teased with the fc screens.
so for now, i want it!
what do i use to view xmls to edit them?
bump this up for a little help?
Shoot man, mah bad. I was meaning to help you.
#1 you need apktool:
http://forum.xda-developers.com/showthread.php?t=640592
This decompiles apks. I have never used it so... ymmv, but I have heard this is the best tool to do so.
Alternatively you can use xmlprint:http://forum.xda-developers.com/showthread.php?t=514412
This decompiles apks to text files, however it does it 1 by 1 and does not re-compile them into native bytecode, however at the same time since it's just one folder you may prefer this to apktool for decoding (but you still need apk tool to recompile them)
For CM6, instead of decompiling all of them, it may be better to just go grab the source for CM6. You can get that here:http://wiki.cyanogenmod.com/index.php?title=Compile_CyanogenMod_for_Hero_CDMA
This wiki also gives a howto for compiling the code afterwards. The upside is you can tweak CM6 to your liking. The downside is... compiling the whole thing.
If you find a fast easy way of compiling just the files you need, you can just merge them with your current cm6 install.
DO A NANDROID FIRST SO IF YOU MESS IT UP YOU CAN GO BACK!!!!!
Hope this helps man!

OFFICIAL: MIUI - Share your customized icons here and mini-HOWTO.

So miui had been great and allows us to customize our own icon on launcher. So I thought maybe we can share our icons here for theming needs.
Some background for those who are not aware of what this is.
In MIUI, at first boot after flashing, miui will rip through your list of apps in /data/app/ and extract the icon associated with that app and put it into the "/data/system/customized_icons_1" folder. For instance, if I have the appbrain app on my /data/app/, there will be a corresponding PNG file in /data/system/customized_icons_1/com.appspot.swisscodemonkeys.apps.png.
Now what do you do with this PNG file?
First of it's an image file, and if you do theming or for some reason you don't like the default icon, you can certainly replace them with newer icon.
So cool, how do I replace the default icon?
OK, so go find an icon of your choosing in PNG format and specific size (check mine for sample). Rename your new PNG to the exact same name of the app, so in my example the new icon I downloaded named "someofthepic.png", then I'll rename it to "com.appspot.swisscodemonkeys.apps.png" to match with appbrain.
After you renamed it, upload these to /data/system/customized_icons_1/ and reboot your phone. You will then have a brand spanking new icons.
This process can be applied to newly installed apps as well.
CREDIT: these icons are from Suave HD theme I got over miui forum.
I know the app but not sure what is the related "system" name of the app, what do I do?
Head over to http://www.androlib.com/, put in the name of your app, in my example it'll be "appbrain" and search. Scroll to the middle of the page, the section above screenshot will have what is call a "Package Name". This is the one that you need to copy&paste.
EDIT: these customized icons will only work if your apps are located on /data/app and if MIUI launcher parsed it to create an icon in /data/system/customized_icons_1 folder. For maps and other which is system apps, you will have to tinker with the apk itself or the framework-res.apk
Thanks for the write-up, I swapped a couple of icons (Yahoo!, facebook, ScanLife and Spare Parts..) and plan to make more custom icons to match for the others I have installed now..
Great guide. Already been doing this since miui started on the evo, but go od to show others
-Swyped away on my addiction
Thanks for the how to! Already put my newfound knowledge to use!
cool dudes, glad it helps out...
After following the steps to change the icons. It worked after the reboot but after subsequent reboots, Miui reverted back to the original icon. I am using version 11.5 stable. Any thoughts as to why this may be occurring?
robert_ayala said:
After following the steps to change the icons. It worked after the reboot but after subsequent reboots, Miui reverted back to the original icon. I am using version 11.5 stable. Any thoughts as to why this may be occurring?
Click to expand...
Click to collapse
+1
Same here. Some of the ones I changed are still my custom icon, where the others reverted back to the original ones.
I'm trying to change my Google maps app icon and I cant
Yup I got it to work but after a couple of reboots and and some mounts to the computer, some of them reverted back to default and after a check inside the customzied_icon folder they had reverted there to and after a delete of the file and a copy with the new icon it directly reverted back.
Freddan80 said:
Yup I got it to work but after a couple of reboots and and some mounts to the computer, some of them reverted back to default and after a check inside the customzied_icon folder they had reverted there to and after a delete of the file and a copy with the new icon it directly reverted back.
Click to expand...
Click to collapse
I had the icons there and reboots countless of times but not reverting back. What you experience is that might be some of the apps got updated in market and therefore, icons revert back obviously, and yes you have to replace them again.
Maybe I'm missing something, but I couldn't find the folder "/data/system/customized_icons_1" anywhere, not on my phone, or on my sd card

[ICON] Basic Framework Change - Enables HSxPA Icon

I tend to like things to look mostly stock, but I also wanted an H icon when it was in use... so I've knocked up this framework (used my FRG83D one, dunno if it's OK to use on older versions) with only that one change.
Probably not of that much interest to people, but rude not to share all the same.
http://www.multiupload.com/JB9SXZLF1G
Just overwrite (might want to take a backup first etc.) /system/framework/framework-res.apk with the one in the link and reboot.
I noticed that after pushing/rebooting, my accounts had vanished. No idea if that's normal when replacing the framework, but it only took a minute to re-add them.
Or, flashable .zip so you don't lose account details: http://www.multiupload.com/22TNJDP10X
New version, updated for FRG83G: http://www.multiupload.com/1DI1TBZNWA
Rusty! said:
...I noticed that after pushing/rebooting, my accounts had vanished. No idea if that's normal when replacing the framework, but it only took a minute to re-add them.
Click to expand...
Click to collapse
If you make a flashable update.zip your accounts do not vanish
Ahh right, well to save anyone that issue, I'll add one to the OP
Anyone on this side of the pond try this ?
Like the title says....anyone here in the US/Canada try this out yet ?
I'm running 2.2.1 (FRG83D) and the IN/OUT H PNG's icons are already there in the framework-res.apk, so I'm just curious what it is you did to turn them in your update script.
Also...the
Cert.rsa
Cert.sf
Manifest.mf
files you're including are older than the certs that are in the framework-res.apk that's in 2.2.1 (FRG83D). This is both within the update zip, and inside the framework-res.apk that's in your update zip.
Any particular reason you included the older certs in the framework-res.apk ?
Just curious trying to see what you've turned on to get the H to appear.
Decompile framework-res.apk, and look in /res/values for bools.xml
In there you just change config_hspa_data_distinguishable to true, save and recompile.
The reason the certs are in the update are because I just flung my updated framework into an existing update.zip for framework. Worked fine though. No idea why they would be older in my .apk, as I pulled it straight from my phone By product of recompiling perhaps?
So...anyone take the plunge ?
Anyone try this on theirs ?
Update: Works as advertised...ran speedtest.....definitely picks up the difference.
Updated for FRG83G: http://www.multiupload.com/1DI1TBZNWA

[REQUEST][APP] Alarm Clock MOD

Hi,
I recently re-installed Android 2.3.7 Gingerbread on my Google Nexus One and I've been removing stuff that I don't often use, or never have used and I decided that I would remove the official Clock application because it had too much stuff that I didn't need.
I decided to download the Clock application from previous versions of Android, that is the one that launched with Eclair.
I've made some changes to the applications drawable-hdpi and now I'd like to use it on my phone however I'm having some problems when it comes to installing it. I don't want to get into the problems I'm too much but basically I've encountered
- AndroidManifest.xml not valid
- Incompatible version
etc..
This has only happened AFTER I make the changes. I've spent a lot of time on it and now I'm requesting someone else to make the changes for me. I've uploaded the changed drawable-hdpi that I've changed, I swapped out all the old Eclair stuff and optimized it for Gingerbread. =I'm hoping someone can make this application work.
All you need to do is change the drawable-hdpi folder with mine and make it work!
Unless you're a guru and you know how to make it say "Clock" instead of "Alarm Clock" in the application tray.
View attachment drawable-hdpi.zip
I'll buy you a beer!
Thread closed at OP's request.

Categories

Resources