Listing of manufacturer's clock / alarm package and class name, Please add

给你一囗甜甜゛ 提交于 2019-11-27 11:42:25
Kenny Seyffarth

Here some munifactures and actions, plus thirdparty actions (thirdparty alarm apps)

// Stock alarms
// Nexus (?)
"com.android.deskclock.ALARM_ALERT";
"com.android.deskclock.ALARM_DISMISS";
"com.android.deskclock.ALARM_DONE";
"com.android.deskclock.ALARM_SNOOZE";
// stock Android (?)
"com.android.alarmclock.ALARM_ALERT";
// Stock alarm Manufactures
// Samsung
"com.samsung.sec.android.clockpackage.alarm.ALARM_ALERT";
// HTC
"com.htc.android.worldclock.ALARM_ALERT";
// Sony
"com.sonyericsson.alarm.ALARM_ALERT";
// ZTE
"zte.com.cn.alarmclock.ALARM_ALERT";
// Motorola
"com.motorola.blur.alarmclock.ALARM_ALERT";

// Thirdparty Alarms
// Gentle Alarm
"com.mobitobi.android.gentlealarm.ALARM_INFO";
// Sleep As Android
"com.urbandroid.sleep.alarmclock.ALARM_ALERT";
// Alarmdroid (1.13.2)
"com.splunchy.android.alarmclock.ALARM_ALERT";

This are broadcast actions, which you can receive with a receiver.

Edit: I've found the alarm action for the LG phones:

com.lge.alarm.alarmclocknew

Thank you for sharing the information!

Sony Ericsson XPERIA X10 Mini Pro, Android 2.1:
Package name: 'com.sonyericsson.alarm',
Activity name: 'com.sonyericsson.alarm.Alarm'

Samsung Galaxy S Vibrant, Android 2.2:
Package name: 'com.sec.android.app.clockpackage',
Activity name: 'com.sec.android.app.clockpackage.ClockPackage'

This information based on AVD:

Stock Clock, Android 2.1:
Package name: 'com.android.alarmclock',
Activity name: 'com.android.alarmclock.AlarmClock'

Stock Clock, Android 2.2:
Package name: 'com.android.alarmclock',
Activity name: 'com.android.alarmclock.AlarmClock'

Stock Clock, Android 2.3 (2.3.1):
Package name: 'com.android.deskclock',
Activity name: 'com.android.deskclock.DeskClock'

Stock Clock, Android 2.3.3:
Package name: 'com.android.deskclock',
Activity name: 'com.android.deskclock.DeskClock'

SALMAN
{"HTC Alarm Clock", "com.htc.android.worldclock", "com.htc.android.worldclock.WorldClockTabControl" },
{"Standar Alarm Clock", "com.android.deskclock", "com.android.deskclock.AlarmClock"},
{"Froyo Nexus Alarm Clock", "com.google.android.deskclock", "com.android.deskclock.DeskClock"},
{"Moto Blur Alarm Clock", "com.motorola.blur.alarmclock",  "com.motorola.blur.alarmclock.AlarmClock"}

// HTC One

"com.htc.android.ALARM_ALERT";

Dragan Marjanović

Small addition to previous answers (I think no one mentioned LG):

{"LG Alarm Clock", "com.lge.clock", "com.lge.clock.AlarmClockActivity"} // newer devices e.g. LG G3
{"LG Alarm Clock", "com.lge.clock", "com.lge.clock.DefaultAlarmClockActivity"} // older devices e.g. LG-E610

It would be really cool to have this for Sony or other manufacturers too. It's easy to find out, only grep your logcat when starting Alarm Clock app like this:

adb logcat *:v | grep "android.intent.category.LAUNCHER"

and the output looks like:

I/ActivityManager(  466): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.lge.clock/.DefaultAlarmClockActivity u=0} from pid 735

EDIT: For Sony it should be like here:

{"Sony Ericsson Xperia Z", "com.sonyericsson.organizer", "com.sonyericsson.organizer.Organizer_WorldClock" }   
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!