[CM7/9] Ported Stock TW Apps

Search This thread

rm2488

Member
Apr 11, 2012
5
0
Hello people
Technically, this post may be in the wrong section. Anyway... here goes. Bought Samsung Galaxy Ace, blah blah, nightly build of CM 7.2 running fine. Now, there were some things about CM7 that I disliked, preferring the TW apps for certain things. The dialer does not "look up" the numbers being dialed, you cannot swipe left or right for message\call in the call list, etc. I figured I'll fix them slowly, porting them from the stock firmware to CM. Of course, the install fails... then I chanced upon this thread. I tried to port the memo app, but wasn't really successful (I extracted twframework-res.apk, but twframework.jar came up empty). So my question is, where do I find the latter file? I have the CWM backup for the stock fw.
Also, I'm not really sure why the zip thing is preferred for installs. Of course the zip install fails on my phone, but I installed the memo.apk from the op directly, and it works just fine...
If someone could point me to the right twframework.jar, much appreciated. I'm looking to port the file explorer, music player (seek to current song in playlist is convenient, artwork display is nice), and the dialer\contacts. This is the only thread on xda I found where the HOW part of the process is being discussed.
 

rm2488

Member
Apr 11, 2012
5
0
Err... you don't mean #142? 'cause that's the apk I have, not the jar I need. Either that, or I've horribly misunderstood the entire thing. I need the one with SMALI. And I need a way to extract it from the ace firmware, I have one from Epic that.... could work, who knows. I get those color001 errors EVERYTIME.
 
Thanks for the clock package! Nice and clean timer/stopwatch. Only problem I've ran into is that the app force closes when i press on "create alarm". I had to retain the original clock app to set my alarms. Everything else with the clock app works great! Running CM9, Beta2 that was install off a fresh wipe of data and cache. Even went through the settings -> apps -> clock to make sure there wasnt data/cache.

if you can't get this one to work properly try the one in this thread
 
  • Like
Reactions: omair2005

drakenabarion

Senior Member
Dec 13, 2010
1,164
199
Kildare
OnePlus Nord 2T
Nothing Phone 2
Running CM9, in theory, Tw apps which have their tw framework dependencies removed (well looks more like internalized by the method in op) should be able to run independently on any rom where the minimum api is available.

I have got 3 of the apps in the op installed (calculator, taskmanager and clock, although I am using a different ported click at the moment.). These work great on a nightly build of i9000 cm9.

However, I can't seem to get the calendar working at all. No matter what I tried, it just fc's.

Here is a logcat from one of the crashes. I hope it might help work out where issues are happening

http://pastebin.com/GsT5xDzz

I really prefer the Samsung calendar over the asop ICS one so it is really great that it can be possible.

And thank you for all the work put into porting these apps!

Sent from my GT-I9000 running ICS using XDA premium app
 
  • Like
Reactions: JohnnyQ1964

gmorf33

Senior Member
Oct 15, 2010
138
7
nice thread, thanks for the work on some of these :D

One question that bares repeating... anyone have any luck on the TW camera? I miss its amazing anti-shake and sexy pictures. I forget about my tremors until i try to take a pic on CM9 :(
 
  • Like
Reactions: zman519

rm2488

Member
Apr 11, 2012
5
0
I finally got my hands on the SMALI from tw-framework.jar- I didn't find it in the ACE firmware, but I swiped it from an EPIC rom. I followed the instructions from the OP guide, and was able to get a successful build on the Samsung DLNA\AllShare app. It doesn't install if it's not signed. I ran it on an emulator, and got the following in logcat. Can anyone make head or tail of this? AFAICT, it's a ClassNotFound exception in something called PresetModeActivity:
Code:
04-20 22:37:32.470: I/ActivityManager(70): Start proc com.sec.android.app.dlna for activity com.sec.android.app.dlna/.ui.PresetModeActivity: pid=410 uid=10034 gids={3003, 1015}
04-20 22:37:32.720: D/szipinf(410): Initializing inflate state
04-20 22:37:32.730: D/AndroidRuntime(410): Shutting down VM
04-20 22:37:32.730: W/dalvikvm(410): threadid=1: thread exiting with uncaught exception (group=0x40015560)
04-20 22:37:32.740: E/AndroidRuntime(410): FATAL EXCEPTION: main
04-20 22:37:32.740: [COLOR="Red"]E/AndroidRuntime(410): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.sec.android.app.dlna/com.sec.android.app.dlna.ui.PresetModeActivity}: java.lang.ClassNotFoundException: com.sec.android.app.dlna.ui.PresetModeActivity in loader dalvik.system.PathClassLoader[/data/app/com.sec.android.app.dlna-1.apk][/COLOR]
04-20 22:37:32.740: E/AndroidRuntime(410): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1569)
04-20 22:37:32.740: E/AndroidRuntime(410): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
04-20 22:37:32.740: E/AndroidRuntime(410): 	at android.app.ActivityThread.access$1500(ActivityThread.java:117)
04-20 22:37:32.740: E/AndroidRuntime(410): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
04-20 22:37:32.740: E/AndroidRuntime(410): 	at android.os.Handler.dispatchMessage(Handler.java:99)
04-20 22:37:32.740: E/AndroidRuntime(410): 	at android.os.Looper.loop(Looper.java:123)
04-20 22:37:32.740: E/AndroidRuntime(410): 	at android.app.ActivityThread.main(ActivityThread.java:3683)
04-20 22:37:32.740: E/AndroidRuntime(410): 	at java.lang.reflect.Method.invokeNative(Native Method)
04-20 22:37:32.740: E/AndroidRuntime(410): 	at java.lang.reflect.Method.invoke(Method.java:507)
04-20 22:37:32.740: E/AndroidRuntime(410): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
04-20 22:37:32.740: E/AndroidRuntime(410): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
04-20 22:37:32.740: E/AndroidRuntime(410): 	at dalvik.system.NativeStart.main(Native Method)
04-20 22:37:32.740: E/AndroidRuntime(410): Caused by: java.lang.ClassNotFoundException: com.sec.android.app.dlna.ui.PresetModeActivity in loader dalvik.system.PathClassLoader[/data/app/com.sec.android.app.dlna-1.apk]
04-20 22:37:32.740: E/AndroidRuntime(410): 	at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
04-20 22:37:32.740: E/AndroidRuntime(410): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
04-20 22:37:32.740: E/AndroidRuntime(410): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
04-20 22:37:32.740: E/AndroidRuntime(410): 	at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
04-20 22:37:32.740: E/AndroidRuntime(410): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1561)
04-20 22:37:32.740: E/AndroidRuntime(410): 	... 11 more
04-20 22:37:32.760: W/ActivityManager(70):   Force finishing activity com.sec.android.app.dlna/.ui.PresetModeActivity
04-20 22:37:33.270: W/ActivityManager(70): Activity pause timeout for HistoryRecord{407c0e10 com.sec.android.app.dlna/.ui.PresetModeActivity}
04-20 22:37:36.600: I/Process(410): Sending signal. PID: 410 SIG: 9
04-20 22:37:36.640: W/InputManagerService(70): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@4077fb78
04-20 22:37:36.770: I/ARMAssembler(70): generated scanline__00000177:03515104_00001001_00000000 [ 91 ipp] (114 ins) at [0x446f1520:0x446f16e8] in 643769 ns
04-20 22:37:36.900: I/ActivityManager(70): Process com.sec.android.app.dlna (pid 410) has died.
04-20 22:37:43.378: W/ActivityManager(70): Activity destroy timeout for HistoryRecord{407c0e10 com.sec.android.app.dlna/.ui.PresetModeActivity}
 
Please port the TW Music Player to CM9.

I am working on the TW music player, but have come up with some unexpected errors with the 'almost' finished product, I have my logcat results in this post if anyone is able to help me fix the errors. I'm trying to figure out where I went wrong and how to fix it.
I haven't had any real responses and I have spent a lot of time working on this apk so far and would be really happy to be able to get it to work, I'm not ready to give up on this....

Help! :)
 
  • Like
Reactions: pdappcgeek

ghpk

Senior Member
Dec 29, 2010
472
132
India
I am looking for a working Daily briefing app. like it was in eclair/froyo/.
I need it for kyrillos 10.2

Does it even exists ? i needed the facility where you were able to add the weather and stock market to it.
 
Here are some stock TouchWiz apps that have had TouchWiz removed to work with other Roms, specifically CM7.

If you have any issues, just let me know.

Hey Tortel1210,
I am having some problems with some apps when I remove the touchwiz dependencies following your tutorial, the app tries to do a media scan and then freezes or returns to the home screen.
Do you have any idea where this is in the apk to do this strange scan? I'm guessing it is trying to look in the vold.fstab for "dev_mount sdcard1 /mnt/sdcard/external_sd" and it isn't working because it sees "dev_mount emmc /mnt/emmc" instead...
Any ideas would be great, I'm working on the music player apk and the voice recorder at the moment, but I'm having the same problem with both apks...
I think it might have something to do with the permission "android.permission.ACCESS_DEV_STORAGE" I'll keep trying to fix it and see what I can come up with


I have the same issue. Tried two clocks already

Sent from my SPH-D700 using Tapatalk 2
I've tried the TwClock ported app on my SGS2 (GT-I9100) running AOKP (http://xdaforums.com/showthread.php?t=1530179) and it install, but the alarms makes FC.

Can I do something to fix it? Can you do something?
Thanks!

I have a working touchwiz clock apk here

It should work on almost every rom :)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 43
    Here are some stock TouchWiz apps that have had TouchWiz removed to work with other Roms, specifically CM7.

    Note: These will not work on Roms other than CM7, except maybe MIUI (Doubtful)


    These are all CWM flashable zips, so download to your SD card and flash.

    TouchWiz Calculator
    Download
    md5 - 52e1eb9387cc738153729bd524ee54b1

    TouchWiz Calendar
    This overwrites the stock CM7 Calendar and CalendarProvider apps.
    Please re-check your calendar sync settings. This also might mess with any exchange accounts you have
    Download Version 2
    md5 - b895dff748526a0a61c1ae2787d16f3d

    TouchWiz Memo
    Download
    md5 - 95dc859e04b216d068a8dcd3544a34fc

    TouchWiz Task Manager
    Download Version 2
    md5 - b2618686b3d2f3de0dfa5034af658312

    Touchwiz Clock Package
    Note: This is the EL30 clock. It leaves the stock clock.
    If you change alarms within one of the clock apps, it will disable the alarms in the other. Make sure your alarms are set before you sleep!
    The smart alarm in this app is also fairly quiet
    Download
    md5 - ac0558ca921644767289dd52aa9112c1



    I might do some more, but this is all for now.
    If your interested in the process, check here

    If you have any issues, just let me know.
    9
    That and the camera are the most requested ones :(

    Sent from my SPH-D700 using xda premium

    Not really the most requested - its all one person.

    Tortel please port the Music Player......

    MUSIC PLAYER PLEASE! I REALLY WANT IT ON CM9. I WENT BACK TO CLEAN GB FOR THIS. PLEASE MAKE IT WORK ON CM9!

    Sent from my SPH-D700 using XDA

    Someone please make a port of the touchwiz music player for cm9!!!!!!!!!!!!!!!!!!!!

    Could you make a flashable zip of the tw music player?

    And 2 threads:

    And 2 private messages to me:

    macb1997 said:
    20th March 2012, 07:14 PM

    Touchwiz Music Player.apk for CM9

    Hey Tortel1210, I was wondering if you de-compile the Music Player.apk from the Stock Epic 4G Slider for me so it can work on CM9 for the OG Epic. I've been trying for days and it doesn't seem to work when I try. Would be greatly appreciated. Thanks.

    macb1997 said:
    30th March 2012, 01:51 PM

    [REQ]Touchwiz MusicPlayer for CM9

    Hey I was wondering if you could port the TouchWiz Music Player from the Epic 4G onto CM9. When I tried, I had a lot of trouble with it and i failed at making a correct port. Thanks.

    I must apologize, because I spend way too much time being a student, with my girlfriend, working, and on my first international trip last week. I should have brought my laptop and gotten on to check right away, because it is so important. A whole 10 days (6 of which I was in Europe), and I didnt get it done, or respond!? Shame on me.
    4
    Sorry it took so long, but I fixed the FC bugs in the Calendar and the Task Manager. OP has links up for the version 2 now
    3
    Just want to stop by and confirm these work on cm9 in case anyone was wondering :)
    2
    Confirmation that the task manager works, anyone? Does it add the 'task manager' button to the task switcher (long press home)? If so, that'll take care of the one thing I dislike about AOSP ROMs...