Is there a way to get the Alarm Application
source code for customizing the existing default source code availble in Android 2.3
.

- 1,267
- 1
- 16
- 30

- 331
- 1
- 2
- 4
-
I am doing something similar HERE!! http://stackoverflow.com/questions/13523350/android-alarm-clock-ui – Etienne Lawlor Nov 23 '12 at 07:14
4 Answers
You can download the app from the Android github mirror.
https://github.com/android/platform_packages_apps_alarmclock
Or on the cyanogen mirror
https://github.com/CyanogenMod/android_packages_apps_DeskClock
And because, you are a nice guy, you are wondering: What is the license of that code?
Glad you asked, because according to the Android documentation and cyanogen's wikipedia page, it's the Apache Software License 2.0
And as we all know, the Apache license 2.0 is a nice license for the all hackers. Even those who intend to make a buck or two. (you little capitalist scoundrels)
Please note that, I didn't come up with that nice cheat sheet. Someone else did.

- 1
- 1

- 5,961
- 3
- 29
- 44
-
@carl: thanks. it was informative. I cloned the source as it is @ https://android.googlesource.com/platform/packages/apps/AlarmClock.git But I couldn't run the app in AndroidStudio. Am I doing something completely wrong? – madu Nov 30 '16 at 06:00
This is the version that's made and maintained by Google now in a move to keep the apps unbundled from the system so as to provide the apps and updates to everyone even if the OEMs don't provide system update.
Hence It's the one that's available from the Play store to download too. The one that's shared previously is the stock App which is quite old.
https://android.googlesource.com/platform/packages/apps/DeskClock/
As the site of the source may keep changing, best way for you to figure it out is by visiting Android Open Source Project (AOSP) page and searching for the URL of the code.

- 811
- 7
- 16
You can download whole android source tree including alarm app from here:

- 57,267
- 35
- 174
- 180
-
Hey @Caner, I have downloaded the source. I was wondering if you could point out where the alarm app's Classes and layouts are located. – Etienne Lawlor Nov 23 '12 at 07:15
-
I believe it is located inside "com.android.deskclock". Have a look from here: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/4.1.1_r1/com/android/deskclock/AlarmClock.java?av=f – Caner Nov 23 '12 at 07:50
-
@Caner: do I need to do everything mentioned @ https://source.android.com/source/requirements.html , in order to only play with Alarm app. I have windows machine with 8GB ram so that Im not sure I have met the requirments they say.Am I doing something wrong here? – madu Dec 09 '16 at 19:19
Cyanogenmod is dead. So, here's the latest Lineage DeskClock (Apache License 2.0) repository:
https://github.com/LineageOS/android_packages_apps_DeskClock

- 826
- 1
- 12
- 30