[Galaxy S I9000 Themes and Apps] kage00:
Hello,

I've already posted this in --> Android Development and Hacking --> Android Apps and Games>

but it hasn't had any replies there so I thought I'd post it here too.

I've been working on porting the sgs3 clockpackage.apk

I've gotten to a point where all the touchwiz dependencies are removed/internalized and it should install (in theory) but it doesn't. I'm wondering if it is because of hardware limitations on my i9000 as I've noticed that the world clock is now a 3d model on the sgs3.

Maybe if there is someone with a Sgs2 or another phone a little bit more powerful might be able to try it out please.

I was wondering if someone with a bit of knowledge in apks and smali might be able to look at it for me, or if anyone is willing to work together to get this to work.

Just so you know I've been working by following this thread by Tortel1210 http://xdaforums.com/show...php?p=21540104 his instructions are here http://epiccm.blogspot.fr/2012/01/po...s-for-cm7.html

And before you ask, yes, I have tried contacting Tortel1210 but he hasn't responded to any of my messages or thread replies.

Like I said, it is not yet working for me, so please don't post "It's not working" because I already know that.

The goal is to find out WHY it isn't working and to fix it.

Here is a link to the apk. It is CWM flashable, but if you have any trouble with the package, take out the apk and push it across manually and set your permissions.

http://www.mediafire.com/download.php?v6183n77n6xn336

and if anyone is having trouble decompiling ICS apks there is a program here I've been using http://xdaforums.com/show....php?t=1577025 AutoAPKTool 2.0.4 by xavierjohn22 and edited by agat63 to work more successfully with ICS apks

Here is the android manifest if anyone wants to take a look at that too. Maybe there is something obvious that I missed...

<?xml version="1.0" encoding="utf-8"?>

<manifest android:versionCode="1" android:versionName="1.0" package="com.sec.android.app.clockpackage"

xmlns:android="http://schemas.android.com/apk/res/android">

<permission android:label="READ_WCCONTENT" android:name="com.sec.android.app.clockpackage.per mission.READ_WCCONTENT" androidrotectionLevel="normal" />

<permission android:label="WRITE_WCCONTENT" android:name="com.sec.android.app.clockpackage.per mission.WRITE_WCCONTENT" androidrotectionLevel="normal" />

<permission android:label="READ_ALARM" android:name="com.sec.android.app.clockpackage.per mission.READ_ALARM" androidrotectionLevel="normal" />

<permission android:label="WRITE_ALARM" android:name="com.sec.android.app.clockpackage.per mission.WRITE_ALARM" androidrotectionLevel="normal" />

<application android:label="@string/app_name" android:icon="@drawable/icon">

<activity android:theme="@style/Theme.CustomTheme" android:label="@string/app_name" android:name=".ClockPackage" android:configChanges="orientation|screenSize">

<intent-filter>

<action android:name="android.intent.action.MAIN" />

<action android:name=".TIMER_ACTION" />

<category android:name="android.intent.category.LAUNCHER" />

</intent-filter>

</activity>

<activity android:label="@string/alarm" android:name=".alarm.Alarm" android:configChanges="orientation|screenSize" android:windowNoTitle="true">

<intent-filter android:label="alternativelistCreate">

<category android:name="android.intent.category.ALTERNATIVE" />

<category android:name="android.intent.category.SELECTED_ALT ERNATIVE" />

<category android:name="android.intent.category.DEFAULT" />

<data android:scheme="content" android:host="com.sec.android.app.clockpackage" androidath="/alarmlist/" />

<data android:scheme="content" android:host="com.sec.android.app.clockpackage" androidath="/alarmcreate/" />

<action android:name="android.intent.action.VIEW" />

</intent-filter>

</activity>

<activity android:theme="@style/ClockTheme" android:label="@string/set_alarm" android:name=".alarm.AlarmDetail" android:taskAffinity="" android:excludeFromRecents="true" android:configChanges="keyboardHidden|orientation| screenSize" android:windowSoftInputMode="stateAlwaysHidden|adj ustPan" />

<activity android:theme="@android:style/Theme.NoTitleBar" android:name=".alarm.AlarmAlert" android:taskAffinity="" android:excludeFromRecents="true" android:launchMode="singleInstance" android:configChanges="keyboardHidden|orientation| screenSize" />

<activity android:theme="@android:style/Theme.NoTitleBar" android:name=".alarm.AlarmSmartAlert" android:taskAffinity="" android:excludeFromRecents="true" android:launchMode="singleInstance" android:configChanges="orientation|screenSize" />

<activity android:theme="@android:style/Theme.NoTitleBar" android:name=".alarm.AlarmBriefingAlert" android:taskAffinity="" android:excludeFromRecents="true" android:launchMode="singleInstance" android:configChanges="orientation|screenSize" />

<activity android:label="@string/alarmrepeat" android:name=".alarm.AlarmRepeat" />

<activity android:theme="@style/ClockTheme" android:label="@string/snooze" android:name=".alarm.AlarmSnooze" android:configChanges="keyboardHidden|orientation| screenSize" />

<activity android:theme="@style/ClockTheme" android:label="@string/alarm_smartalarm" android:name=".alarm.AlarmSmartAlarm" android:configChanges="keyboardHidden|orientation| screenSize" />

<activity android:theme="@style/ClockTheme" android:label="@string/delete" android:name=".alarm.AlarmDelete" />

<activity android:label="@string/alarm_setting_title" android:name=".alarm.AlarmSetting" />

<activity android:label="@string/alarm_setting_title" android:name=".alarm.SettingsActivity" android:taskAffinity="" android:excludeFromRecents="true" android:configChanges="orientation|screenSize" />

<activity android:label="@string/auto_power_up_setting" android:name=".alarm.AutoPowerupSetting" />

<activity android:theme="@android:style/Theme.Translucent" android:name=".alarm.HandleSetAlarm" androidermission="com.android.alarm.permission.S ET_ALARM" android:taskAffinity="" android:excludeFromRecents="true" android:launchMode="singleInstance" android:configChanges="orientation|screenSize">

<intent-filter>

<action android:name="android.intent.action.SET_ALARM" />

<action android:name="com.samsung.sec.android.clockpackage .alarm.NOTIFY_ALARM_DIRECTSAVED" />

<category android:name="android.intent.category.DEFAULT" />

</intent-filter>

</activity>

<receiver android:name=".alarm.AlarmReceiver">

<intent-filter>

<action android:name="android.intent.action.BOOT_COMPLETED " />

<action android:name="android.intent.action.TIME_SET" />

<action android:name="android.intent.action.TIMEZONE_CHANG ED" />

<action android:name="com.samsung.sec.android.clockpackage .alarm.ALARM_ALERT" />

<action android:name="android.intent.action.SET_ALARM" />

<action android:name="com.samsung.sec.android.clockpackage .alarm.NOTIFY_ALARM_DIRECTSAVED" />

<action android:name="com.samsung.sec.android.clockpackage .alarm.START_INFO_ALARM" />

<action android:name="com.sec.android.clockpackage.ALARM_A PPWIDGET_EDIT" />

<action android:name="android.intent.action.LOCALE_CHANGED " />

<action android:name="com.android.calendar.preference.CscR eceiver" />

</intent-filter>

</receiver>

<provider android:name=".alarm.AlarmProvider" android:authorities="com.samsung.sec.android.clock package" />

<service android:name=".alarm.AlarmAlertInCallService" />

<service android:name=".alarm.AlarmSmartAlertInCallService" />

<service android:name=".alarm.AlarmBriefingAlertInCallServi ce" />

<receiver android:label="@string/alarm" android:name=".alarmwidget.AlarmWidgetProvider">

<meta-data android:name="android.appwidget.provider" android:resource="@xml/alarmwidget_info" />

<meta-data android:name="com.sec.android.appwidget.widgetinfo " android:resource="@xml/alarmwidget_provider_info" />

<intent-filter>

<action android:name="com.sec.android.widgetapp.APPWIDGET_ RESIZE" />

<action android:name="android.appwidget.action.APPWIDGET_U PDATE" />

<action android:name="com.sec.android.clockpackage.ALARM_A PPWIDGET_UPDATE" />

<action android:name="com.sec.android.clockpackage.ALARM_A PPWIDGET_SELECT" />

<action android:name="com.samsung.sec.android.clockpackage .alarm.NOTIFY_ALARM_CHANGE" />

</intent-filter>

</receiver>

<service android:name=".alarmwidget.AlarmWidgetService" androidermission="android.permission.BIND_REMOTE VIEWS" android:exported="false" />

<receiver android:name=".alarmwidget.AlarmWidgetProxy" android:exported="false" />

<activity android:label="@string/worldclock" android:name=".worldclock.WCMain">

<intent-filter>

<action android:name="android.intent.action.MAIN" />

</intent-filter>

<meta-data android:name="com.samsung.3dlist.disable" android:value="true" />

</activity>

<activity android:theme="@android:style/Theme.NoTitleBar" android:name="com.samsung.stri.s1worldclock.Ui3dMa inActivity" android:screenOrientation="portrait" android:configChanges="locale" />

<activity android:theme="@style/ClockTheme" android:name=".worldclock.WCCities" android:configChanges="orientation|screenSize" android:windowSoftInputMode="stateAlwaysHidden">

<intent-filter>

<category android:name="android.intent.category.ALTERNATIVE" />

<category android:name="android.intent.category.SELECTED_ALT ERNATIVE" />

<category android:name="android.intent.category.DEFAULT" />

<data android:scheme="content" android:host="com.sec.android.app.clockpackage.wor ldclock" androidath="/worldclock/" />

<action android:name="android.intent.action.VIEW" />

</intent-filter>

</activity>

<activity android:theme="@style/ClockTheme" android:label="@string/wc_delete" android:name=".worldclock.WCDelete" android:configChanges="orientation|screenSize">

<meta-data android:name="com.samsung.3dlist.disable" android:value="true" />

</activity>

<activity android:label="@string/wc_dst_settings" android:name=".worldclock.WCDST" android:configChanges="orientation|screenSize" />

<activity android:theme="@style/ClockTheme" android:label="@string/wc_reorder" android:name=".worldclock.WCReOrder" android:configChanges="orientation|screenSize">

<meta-data android:name="com.samsung.3dlist.disable" android:value="true" />

</activity>

<provider android:name=".worldclock.common.DataContentProvid er" android:readPermission="com.sec.android.app.clockp ackage.permission.READ_WCCONTENT" android:writePermission="com.sec.android.app.clock package.permission.WRITE_WCCONTENT" android:authorities="com.sec.android.provider.stri _s1_worldclock" />

<activity android:label="@string/stopwatch" android:name=".stopwatch.Stopwatch" />

<activity android:theme="@android:style/Theme.NoTitleBar" android:label="@string/timer" android:name=".timer.Timer">

<intent-filter>

<action android:name="android.intent.action.MAIN" />

</intent-filter>

</activity>

<activity android:theme="@style/ClockTheme" android:label="@string/setting" android:name=".timer.TimerDetail" android:configChanges="orientation|screenSize" android:windowSoftInputMode="stateAlwaysHidden|adj ustPan" />

<activity android:theme="@android:style/Theme.NoTitleBar" android:name=".timer.TimerAlarm" android:taskAffinity="" android:excludeFromRecents="true" android:launchMode="singleInstance" android:configChanges="keyboardHidden|orientation| screenSize" />

<service android:name=".timer.TimerService">

<intent-filter>

<action android:name=".timer.popup" />

<action android:name=".timer.playsound" />

</intent-filter>

</service>

<receiver android:name=".timer.TimerReceiver">

<intent-filter>

<action android:name=".timer.popup" />

<action android:name=".timer.playsound" />

</intent-filter>

</receiver>

<activity android:theme="@android:style/Theme.DeviceDefault.NoActionBar" android:label="@string/desk_app_name" android:name=".deskclock.CradleMain" android:launchMode="singleTask" android:configChanges="orientation|screenSize">

<meta-data android:name="android.dock_home" android:value="true" />

<intent-filter>

<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.DEFAULT" />

<category android:name="android.intent.category.DESK_DOCK" />

</intent-filter>

</activity>

<activity android:theme="@android:style/Theme.Wallpaper" android:label="@string/desk_app_name" android:name=".deskclock.CradleMainTab" android:launchMode="singleTask" android:configChanges="orientation|screenSize">

<meta-data android:name="android.dock_home" android:value="true" />

<intent-filter>

<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.DEFAULT" />

</intent-filter>

</activity>

<activity android:theme="@style/ClockTheme" android:label="@string/cradle_home_settings" android:name=".deskclock.CradleHomeSettingsTab" android:launchMode="singleTask">

<intent-filter>

<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.DESK_DOCK" />

</intent-filter>

</activity>

<activity android:theme="@style/ClockTheme" android:label="@string/cradle_home_settings" android:name=".deskclock.CradleHomeSettings" android:launchMode="singleTask">

<intent-filter>

<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.DESK_DOCK" />

</intent-filter>

</activity>

<activity android:theme="@style/ClockTheme" android:label="@string/setting_weather" android:name=".deskclock.CradleWeatherSettings" android:launchMode="singleTask" android:configChanges="orientation|screenSize">

<intent-filter>

<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.DESK_DOCK" />

</intent-filter>

</activity>

<activity android:label="@string/pick_wallpaper" android:name=".deskclock.CradleWallpaperChooser" android:screenOrientation="nosensor" android:configChanges="locale" android:finishOnCloseSystemDialogs="true">

<intent-filter>

<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.DESK_DOCK" />

</intent-filter>

</activity>

</application>

<permission android:label="READ_CLOCK" android:name="com.sec.android.permission.READ_CLOC K" androidrotectionLevel="normal" />

<uses-permission android:name="android.permission.WAKE_LOCK" />

<uses-permission android:name="android.permission.VIBRATE" />

<uses-permission android:name="android.permission.READ_PHONE_STATE" />

<uses-permission android:name="android.permission.RECEIVE_BOOT_COMP LETED" />

<uses-permission android:name="android.permission.STATUS_BAR" />

<uses-permission android:name="android.permission.GET_TASKS" />

<uses-permission android:name="android.permission.WRITE_SETTINGS" />

<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />

<uses-permission android:name="android.permission.ACCESS_FINE_LOCAT ION" />

<uses-permission android:name="android.permission.READ_CALENDAR" />

<uses-permission android:name="android.permission.ACCESS_COARSE_LOC ATION" />

<uses-permission android:name="android.permission.ACCESS_NETWORK_ST ATE" />

<uses-permission android:name="com.sec.android.daemonapp.ap.accuwea ther.permission.ACCU_DAEMON_ACCESS_INTENT" />

<uses-permission android:name="com.sec.android.daemonapp.ap.yahoost ock.stockclock.permission.YAHOO_DAEMON_ACCESS_PROV IDER" />

<uses-permission android:name="com.sec.android.daemonapp.ap.yahoost ock.stockclock.permission.YAHOO_DAEMON_ACCESS_INTE NT" />

<uses-permission android:name="com.sec.android.daemonapp.ap.yahoone ws.permission.YAHOO_DAEMON_ACCESS_PROVIDER" />

<uses-permission android:name="com.sec.android.daemonapp.ap.yahoone ws.permission.YAHOO_DAEMON_ACCESS_INTENT" />

<uses-permission android:name="com.sec.android.daemonapp.ap.kweathe r.permission.KW_DAEMON_ACCESS_INTENT" />

<uses-permission android:name="com.sec.android.widgetapp.ap.edaily. stockclock.permission.EDAILY_DAEMON_ACCESS_PROVIDE R" />

<uses-permission android:name="com.sec.android.widgetapp.ap.edaily. stockclock.permission.EDAILY_DAEMON_ACCESS_INTENT" />

<uses-permission android:name="com.sec.android.daemonapp.ap.yonhapn ews.permission.YONHAP_DAEMON_ACCESS_PROVIDER" />

<uses-permission android:name="com.sec.android.widgetapp.ap.yonhapn ews.permission.YONHAP_DAEMON_ACCESS_INTENT" />

<uses-permission android:name="com.sec.android.daemonapp.ap.sinawea ther.permission.SINA_DAEMON_ACCESS_INTENT" />

<uses-permission android:name="com.sec.android.widgetapp.ap.sinasto ck.stockclock.permission.SINA_DAEMON_ACCESS_PROVID ER" />

<uses-permission android:name="com.sec.android.widgetapp.ap.sinasto ck.stockclock.permission.SINA_DAEMON_ACCESS_INTENT " />

<uses-permission android:name="com.sec.android.daemonapp.ap.sinanew s.permission.SINA_DAEMON_ACCESS_PROVIDER" />

<uses-permission android:name="com.sec.android.widgetapp.ap.sinanew s.permission.SINA_DAEMON_ACCESS_INTENT" />

<uses-permission android:name="android.permission.RECORD_AUDIO" />

<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="15" />

</manifest>

if anyone wants the original clockpackage.apk from the Sgs3 so they can see what things I've edited, let me know and I'll post a link

ps. here is a link to my other thread where I have the touchwiz clockpackage working from a GB build on any ICS rom

http://xdaforums.com/show....php?t=1558337