[Galaxy S I9000 Themes and Apps] kage00:
I've been doing a little bit more work on porting this apk and yesterday I removed the lines from the manifest linking to the various touchwiz widgets, I also disabled the smart alarm from the menus (which is wanting to use the TW widgets).

The apk installs and is visible in the app drawer, I ran a logcat to see what was going on and I got this.

I/dalvikvm( 4088): Could not find method com.sec.android.app.CscFeature.getInsta
nce, referenced from method com.sec.android.app.clockpackage...

So I managed to search and find this thread I noticed a response from wanam saying that it was looking for things in the framework.jar

So I added the missing CscFeature stuff from the framework.jar from the Sgs3, but now I'm getting new errors in the logcat results...

I/ActivityManager( 223): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.sec.android.app.clockpackage/.ClockPackage} from pid 660
I/ActivityManager( 223): Start proc com.sec.android.app.clockpackage for activity com.sec.android.app.clockpackage/.ClockPackage: pid=2450 uid=10011 gids={}
D/OpenGLRenderer( 660): Flushing caches (mode 1)
D/dalvikvm( 2450): GC_CONCURRENT freed 162K, 6% free 8323K/8839K, paused 2ms+3ms
D/dalvikvm( 2450): GC_CONCURRENT freed 154K, 6% free 8704K/9223K, paused 1ms+2ms
D/OpenGLRenderer( 660): Flushing caches (mode 0)
I/ActivityThread( 2450): Pub com.sec.android.provider.stri_s1_worldclock: com.sec.android.app.clockpackage.worldclock.common.DataContentProvider
I/ActivityThread( 2450): Pub com.samsung.sec.android.clockpackage: com.sec.android.app.clockpackage.alarm.AlarmProvider
D/dalvikvm( 2450): GC_FOR_ALLOC freed 33K, 7% free 9030K/9607K, paused 28ms
D/dalvikvm( 2450): GC_CONCURRENT freed 439K, 10% free 9030K/9927K, paused 1ms+2ms
D/dalvikvm( 2450): GC_FOR_ALLOC freed 53K, 10% free 9006K/9927K, paused 17ms
I/dalvikvm-heap( 2450): Grow heap (frag case) to 10.361MB for 1280016-byte allocation
D/dalvikvm( 2450): GC_CONCURRENT freed <1K, 9% free 10255K/11207K, paused 2ms+2ms
D/dalvikvm( 2450): GC_FOR_ALLOC freed 0K, 9% free 10256K/11207K, paused 16ms
I/dalvikvm-heap( 2450): Grow heap (frag case) to 10.887MB for 552316-byte allocation
D/dalvikvm( 2450): GC_FOR_ALLOC freed 0K, 9% free 10795K/11783K, paused 18ms
D/Alarm ( 2450): onResume called
I/dalvikvm( 2450): Failed resolving Lcom/sec/android/touchwiz/widget/TwAbsListView$4; interface 122 'Landroid/hardware/motion/MRListener;'
W/dalvikvm( 2450): Link of class 'Lcom/sec/android/touchwiz/widget/TwAbsListView$4;' failed
E/dalvikvm( 2450): Could not find class 'com.sec.android.touchwiz.widget.TwAbsListView$4', referenced from method com.sec.android.touchwiz.widget.TwAbsListView.<init>
W/dalvikvm( 2450): VFY: unable to resolve new-instance 911 (Lcom/sec/android/touchwiz/widget/TwAbsListView$4;) in Lcom/sec/android/touchwiz/widget/TwAbsListView;
D/dalvikvm( 2450): VFY: replacing opcode 0x22 at 0x0064
I/dalvikvm( 2450): Failed resolving Lcom/sec/android/touchwiz/widget/TwAbsListView$4; interface 122 'Landroid/hardware/motion/MRListener;'
W/dalvikvm( 2450): Link of class 'Lcom/sec/android/touchwiz/widget/TwAbsListView$4;' failed
E/dalvikvm( 2450): Could not find class 'com.sec.android.touchwiz.widget.TwAbsListView$4', referenced from method com.sec.android.touchwiz.widget.TwAbsListView.<init>
W/dalvikvm( 2450): VFY: unable to resolve new-instance 911 (Lcom/sec/android/touchwiz/widget/TwAbsListView$4;) in Lcom/sec/android/touchwiz/widget/TwAbsListView;
D/dalvikvm( 2450): VFY: replacing opcode 0x22 at 0x00cd
I/dalvikvm( 2450): Could not find method com.sec.android.touchwiz.widget.TwAbsListView.CheckStatusBarHide, referenced from method com.sec.android.touchwiz.widget.TwAbsListView.initAbsListView
W/dalvikvm( 2450): VFY: unable to resolve virtual method 5829: Lcom/sec/android/touchwiz/widget/TwAbsListView;.CheckStatusBarHide ()Z
D/dalvikvm( 2450): VFY: replacing opcode 0x6e at 0x0054
I/dalvikvm( 2450): Could not find method android.hardware.motion.MotionRecognitionManager.registerListenerEvent, referenced from method com.sec.android.touchwiz.widget.TwAbsListView.registerMotionListener
W/dalvikvm( 2450): VFY: unable to resolve virtual method 487: Landroid/hardware/motion/MotionRecognitionManager;.registerListenerEvent (Landroid/hardware/motion/MRListener;I)V
D/dalvikvm( 2450): VFY: replacing opcode 0x6e at 0x000f
I/dalvikvm( 2450): Could not find method android.hardware.motion.MotionRecognitionManager.unregisterListener, referenced from method com.sec.android.touchwiz.widget.TwAbsListView.unregisterMotionListener
W/dalvikvm( 2450): VFY: unable to resolve virtual method 489: Landroid/hardware/motion/MotionRecognitionManager;.unregisterListener (Landroid/hardware/motion/MRListener;)V
D/dalvikvm( 2450): VFY: replacing opcode 0x6e at 0x000d
I/dalvikvm( 2450): Could not find method android.hardware.motion.MotionRecognitionManager.setMotionAngle, referenced from method com.sec.android.touchwiz.widget.TwAbsListView.onTouchEvent
W/dalvikvm( 2450): VFY: unable to resolve virtual method 488: Landroid/hardware/motion/MotionRecognitionManager;.setMotionAngle (Landroid/hardware/motion/MRListener;I)V
D/dalvikvm( 2450): VFY: replacing opcode 0x74 at 0x001e
I/dalvikvm( 2450): Could not find method com.sec.android.touchwiz.widget.TwAbsListView.getVelocityPolynomialType, referenced from method com.sec.android.touchwiz.widget.TwAbsListView.onTouchEvent
W/dalvikvm( 2450): VFY: unable to resolve virtual method 5972: Lcom/sec/android/touchwiz/widget/TwAbsListView;.getVelocityPolynomialType ()I
D/dalvikvm( 2450): VFY: replacing opcode 0x74 at 0x0711
I/dalvikvm( 2450): Failed resolving Lcom/sec/android/touchwiz/widget/TwAbsListView$4; interface 122 'Landroid/hardware/motion/MRListener;'
W/dalvikvm( 2450): Link of class 'Lcom/sec/android/touchwiz/widget/TwAbsListView$4;' failed
D/dalvikvm( 2450): DexOpt: unable to opt direct call 0x164e at 0x66 in Lcom/sec/android/touchwiz/widget/TwAbsListView;.<init>
I/dalvikvm( 2450): Failed resolving Lcom/sec/android/touchwiz/widget/TwAbsListView$4; interface 122 'Landroid/hardware/motion/MRListener;'
W/dalvikvm( 2450): Link of class 'Lcom/sec/android/touchwiz/widget/TwAbsListView$4;' failed
D/dalvikvm( 2450): DexOpt: unable to opt direct call 0x164e at 0xd1 in Lcom/sec/android/touchwiz/widget/TwAbsListView;.<init>
D/AndroidRuntime( 2450): Shutting down VM
W/dalvikvm( 2450): threadid=1: thread exiting with uncaught exception (group=0x40a5c1f8)
E/AndroidRuntime( 2450): FATAL EXCEPTION: main
E/AndroidRuntime( 2450): java.lang.RuntimeException: Unable to resume activity {com.sec.android.app.clockpackage/com.sec.android.app.clockpackage.ClockPackage}: java.lang.RuntimeException: Unable to resume activity {com.sec.android.app.clockpackage/com.sec.android.app.clockpackage.alarm.Alarm}: android.view.InflateException: Binary XML file line #15: Error inflating class com.sec.android.app.clockpackage.alarm.CustomListView
E/AndroidRuntime( 2450):	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2444)
E/AndroidRuntime( 2450):	at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2472)
E/AndroidRuntime( 2450):	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1986)
E/AndroidRuntime( 2450):	at android.app.ActivityThread.access$600(ActivityThread.java:123)
E/AndroidRuntime( 2450):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
E/AndroidRuntime( 2450):	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2450):	at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 2450):	at android.app.ActivityThread.main(ActivityThread.java:4424)
E/AndroidRuntime( 2450):	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2450):	at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 2450):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
E/AndroidRuntime( 2450):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
E/AndroidRuntime( 2450):	at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2450): Caused by: java.lang.RuntimeException: Unable to resume activity {com.sec.android.app.clockpackage/com.sec.android.app.clockpackage.alarm.Alarm}: android.view.InflateException: Binary XML file line #15: Error inflating class com.sec.android.app.clockpackage.alarm.CustomListView
E/AndroidRuntime( 2450):	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2444)
E/AndroidRuntime( 2450):	at android.app.LocalActivityManager.moveToState(LocalActivityManager.java:178)
E/AndroidRuntime( 2450):	at android.app.LocalActivityManager.dispatchResume(LocalActivityManager.java:523)
E/AndroidRuntime( 2450):	at android.app.ActivityGroup.onResume(ActivityGroup.java:61)
E/AndroidRuntime( 2450):	at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1154)
E/AndroidRuntime( 2450):	at android.app.Activity.performResume(Activity.java:4539)
E/AndroidRuntime( 2450):	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2434)
E/AndroidRuntime( 2450):	... 12 more
E/AndroidRuntime( 2450): Caused by: android.view.InflateException: Binary XML file line #15: Error inflating class com.sec.android.app.clockpackage.alarm.CustomListView
E/AndroidRuntime( 2450):	at android.view.LayoutInflater.createView(LayoutInflater.java:606)
E/AndroidRuntime( 2450):	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680)
E/AndroidRuntime( 2450):	at android.view.LayoutInflater.rInflate(LayoutInflater.java:739)
E/AndroidRuntime( 2450):	at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
E/AndroidRuntime( 2450):	at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
E/AndroidRuntime( 2450):	at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
E/AndroidRuntime( 2450):	at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:251)
E/AndroidRuntime( 2450):	at android.app.Activity.setContentView(Activity.java:1835)
E/AndroidRuntime( 2450):	at com.sec.android.app.clockpackage.alarm.Alarm.InitAlarmList(Alarm.java:240)
E/AndroidRuntime( 2450):	at com.sec.android.app.clockpackage.alarm.Alarm.onResume(Alarm.java:738)
E/AndroidRuntime( 2450):	at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1154)
E/AndroidRuntime( 2450):	at android.app.Activity.performResume(Activity.java:4539)
E/AndroidRuntime( 2450):	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2434)
E/AndroidRuntime( 2450):	... 18 more
E/AndroidRuntime( 2450): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 2450):	at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 2450):	at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
E/AndroidRuntime( 2450):	at android.view.LayoutInflater.createView(LayoutInflater.java:586)
E/AndroidRuntime( 2450):	... 30 more
E/AndroidRuntime( 2450): Caused by: java.lang.NoClassDefFoundError: com.sec.android.touchwiz.widget.TwAbsListView$4
E/AndroidRuntime( 2450):	at com.sec.android.touchwiz.widget.TwAbsListView.<init>(TwAbsListView.java:7436)
E/AndroidRuntime( 2450):	at com.sec.android.touchwiz.widget.TwListView.<init>(TwListView.java:160)
E/AndroidRuntime( 2450):	at com.sec.android.touchwiz.widget.TwListView.<init>(TwListView.java:156)
E/AndroidRuntime( 2450):	at com.sec.android.app.clockpackage.alarm.CustomListView.<init>(CustomListView.java:26)
E/AndroidRuntime( 2450):	... 33 more
W/ActivityManager( 223): Force finishing activity com.sec.android.app.clockpackage/.ClockPackage
W/ActivityManager( 223): Activity pause timeout for ActivityRecord{41981430 com.sec.android.app.clockpackage/.ClockPackage}
I/ActivityManager( 223): No longer want com.android.vending (pid 2146): hidden #16
I/Process ( 2450): Sending signal. PID: 2450 SIG: 9
W/InputManagerService( 223): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@418f5ab0
I/ActivityManager( 223): Process com.sec.android.app.clockpackage (pid 2450) has died.

if anyone has any ideas let me know...