Recents in Beach

Task Manager For CyanongenMod Custom Rom

UPDATED!!! 2012/05/01
It is very well known to everyone who uses CyanogenMod custom rom that it doesn't come with a task manager. Yes, Cyanogen Mod believes that android is smart enough to manages it's applications and running processes and thus they release a rom without task manager. I too agree with them and I am quite sure anyone who is aware about the state of activities in an android application will probably agree with them. However, many users are unhappy about this situation and they would like to use task manager to manage the process themselves. So, in this post I will guide you through the installation process of task manager in cyanogenmod rom so that you will be able to take control of your running processes.

The method below uses Android Debug Bridge (ADB) to install Task Manager on your smartphone running cyanongemod. This method is tested and works fully with any cyanogen mod rom on Samsung Galaxy Mini/Pop/Next GT-S5570 smartphone. However, I think it will work on other devices running Cyanogen Mod rom. So, you can give it a try on your device and don't forget to inform us if it worked so that other user with the same device can also try it out. And, now without further delay let's proceed to installation.

Method 1

Requirements : Make sure you have everything listed below before you proceed.
Once you have got everything needed. Make sure you enable USB debugging at Settings>Applications>>Development and then connect it to your PC via USB cable. Then follow the instructions below to install Task Manager.
  1. Navigate to the folder where you downloaded TaskManager.apk file.
  2. Press Ctrl + Alt + Left Shift + Right Mouse Click and you will be presented with a context menu.
  3. Now, Select Open command window here option. Command prompt will load setting the current directory as root. 
  4. Once in command prompt window type these commands below one after another. (Make sure you device is connected via USB).
  5. adb push TaskManager.apk /system/app/TaskManager.apk
    adb shell
    chmod 644 /system/app/TaskManager.apk 
  6. That's all. You have successfully used adb push command to install Task Manager on your device. Now you may close the command prompt as well as disconnect your device from PC.
In case you are knew to ADB and are wondering to know what we did in step 4 then here's a short explanation to it.
  • First we use adb push command to push (or copy) TaskManager.apk app folder inside system directory. Since task manager is a system app we pushed it to /system/app directory.
  • Second we navigate to shell prompt. ADB shell lets you access the terminal of you device remotely and operate it with the help of various terminal (Linux) commands that are supported by android. Note that busybox adds support for many new commands that are not supported already. This is a reason why busybox is installed while rooting a device.
  • Task Manager For CM7
  • Thirdly, we ran a Linux command chmod which stands for change mode and is used to change files/folders permissions to set appropriate permission to the TaskManager app we pushed recently. Here we are setting read and write and no execution access for the owner and group, and read, no write & no execute for all other users and group with the help of 644 numerical permission. Without setting permission or setting wrong permission will lead to many error including force closes. Note that every system app should have 644 permission. To learn more about chmod command and it's attributes please visit this Wikipedia page.
Method 2

Alternatively, you can use Root Explorer or similar other app to install TaskManager on your device.
  • With the help of root explorer copy the TaskManager.apk file from above to system/app/ directory. [You may need to remount system as read/write using the R/W button at the top of the app before you can make changes to system files.]
  •  Now navigate to /system/app/ folder and long press on TaskManager.apk file to get a list of menu options. Select Permissions from the menu (you should see something like below --not exactly the same though.)
  • Then, Set appropriate permissions : Read-write for Owner and Read only for Group and Others. Or more specifically, set permission to rw-r-r. You can also use root explorer permission option to set the permission as shown below.
    Task Manager Permissions
  • Once set, you are done with it. Run, Task Manager app from App Drawer and give it a try. If you don't see the app or if it doesn't appear to work, reboot your device first.
    That's all. Now you have got Task Manager on your Cyanogen Mod based rom and also filled your brain with some important and useful information regarding ADB and permissions. I hope you will enjoy managing your android processes & tasks. However, be aware that instead of prolonging battery life, using any kind of Task manager applications inappropriately, might lead to faster drainage of battery. So, it is suggested to use it at your own risk. However, don't hesitate to ask if you have any doubts regrading any of the topics mentioned above at the comments below.


    UPDATE!!! 2012/05/02
    I've got a much more easier way to install Task Manager on your android device running custom roms at this article. Now, you can simply flash TaskManager.zip file (download from the article mentioned above) in clockwork mod recovery and all is done. No need of any commands neither you'll have to worry about setting permissions. Simply flash the zip and you're done. Enjoy!

    Post a Comment

    38 Comments

    1. it says device offline...what shoud i do... usb debugging is connected (Galaxy Ace CM7.2)

      ReplyDelete
    2. Press Ctrl + Alt + Left Shift + Right Mouse Click and you will be presented with a context menu.   
       not working for me any other way to open command windo

      ReplyDelete
    3. Install the ROM first and then wipe data and cache and install first update and reboot and you are done.

      ReplyDelete
    4. is there another way to install this..alternative of this tutorial??

      ReplyDelete
    5. i do your post that 
      Install the ROM first and then wipe data and cache and install first update and reboot and put the phone to usb debugging and i press 
      Press Ctrl + Alt + Left Shift + Right Mouse Click and you will be presented with a context menu. BUT NOTHING HAPPEN!!!!!

      ReplyDelete
    6. It seems your device is not connected properly. Run adb devices command to make sure your device is listed. And then run the commands from above.

      ReplyDelete
    7. How about manually pasting the apk into /system/app via Root Explorer with R/W permissions.

      ReplyDelete
    8. yeah working fine but its not exactly like samsung task manager.. clear ram option is not so effective as samsung task manager

      ReplyDelete
    9. When i click clear ram does it clear all running apps include battery saver and anti virus..? Im using cyanogen 7 btw..

      ReplyDelete
    10. Yes, that's probably ok, if you select the right permissions. You need to set permissions as rw-r-r Or, in simple terms, tick read and write in Owner, read only in Group and Others using root explorer.

      ReplyDelete
    11. Yes, that's probably ok, if you select the right permissions. You need to set permissions as rw-r-r Or, in simple terms, tick read and write in Owner, read only in Group and Others using root explorer.

      ReplyDelete
    12. Well, that's what we have got for CyanogenMod at the moment. Using it for a while should make you feel it comfortable.

      ReplyDelete
    13. Context menu is same as what you get when you Right Click on your PC. So, don't get confused. But, with above combination you will get a new option added to the menu and you just have to pay close attention.

      ReplyDelete
    14. i tried it many time's yagya but it doesn't work! T_T i followed all the step's from installing adb and samsung usb up to this task manager but i failed. i wonder what's the problem?

      ReplyDelete
    15. few days before i got a new camera app called LG camera .. it works awesome.. video resolution can be increased 640*480..,, i think yagya, you can introduce it to all through a post ..it will be helpful for all.

      ReplyDelete
    16.  Yes, Mbukirin there is. I've just updated the post above with another method. Go, through it.

      ReplyDelete
    17. Ya may be you are right.. anyway can you make a tutorial about to using stock camera in cm7?? cm7 camera is just sucks, no features

      ReplyDelete
    18. Stock apps doesn't work with Cyanongen Mod rom and that rule applies to camera app too. So, you are left with either the one available in CyanogenMod or one from market. MIUI Camera app (you can search Google) is also a great one so try it.

      ReplyDelete
    19. that someone would write me in detail how to do it because it is so I do not understandand could not do thank you very much ....

      ReplyDelete
    20. The steps above are the clearest of all. I've tried to detailed every information needed for doing this. I guess you didn't read it carefully; trying reading it twice or thrice until you get it.
      Also, why don't you try the alternative method 2 (using root explorer) explained above. That one is easier (simply copy and paste.)

      ReplyDelete
    21. you just have to say that one should use the root Explorer

      ReplyDelete
    22. I root explorer it says when you want to copy to:::::you cannot paste here becouse the file system is read-only. 

      ReplyDelete
    23. yes yes working :D:D

      ReplyDelete
    24. Guess you are new with root explorer... Press the Mount R/W button at the top of root explorer and it should let you copy the file.

      ReplyDelete
    25. now it works! thanks yagya for the method 2! ^_^

      ReplyDelete
    26. Thank You Very Much Yagya...!!!!

      ReplyDelete
    27. ya it worked like a charm.....................can u please post a method for installing samsung keypad in cyanogenmod

      ReplyDelete
    28.  @yagya.   will this work with cyanmobile full release??

      ReplyDelete
    29. mr.yagya THANK YOU FOR THIS!!...BUT CAN I REQUEST YOU THAT CAN YOU UPLOAD TO ME THE SAMSUNG GALAXY MINI STOCK GINGERBREAD 2.3.6 STOCK LAUNCHER FOR ME PLSSS??? YOU CAN GET IT BY EXPLORING USING THE ROOT EXPLORER..PLSS CAN U UPLOAD FOR ME THE STOCK LAUNCHER IN 4SHARED OR MEDIAFIRE PLSSS.. BECAUSE IM USING ZTE BLADE NOT SAMSUNG GALAXY MINI COZ MY MINI HAS BEEN STOLEN LAST WEEK..PLSS UPLOAD FOR ME...THANKS!!!!

      ReplyDelete
    30. Yes, this TaskManager will work with any CyanogenMod or CM based rom like Cyanmobile.

      ReplyDelete
    31. will it work for CYANMOBILE REVO also?????????

      ReplyDelete
    32. well thanks for the update!!!!!!

      ReplyDelete

    Please share your view(s) through the comment(s) below.
    Thank You!