[Nexus 4 Themes and Apps] TheMentalGoose:
CLOSED

Please see here for the new version!

Install DSP Manager, CM Messaging and others on all 4.2.x, 4.3 and 4.4.x ROM's !!

It's now on the play store! :D Check it out here

For all those that want Cyanogenmod apps on any AOSP-based 4.1 or above ROM, I have made this quick app "CM App Installer"

All apps here are pulled from a CM10.1 zip and tested and should be working on all 4.2.x and 4.3 AOSP roms.

I also tried it on my rooted HTC Desire Z I have lying around running 4.1, so it should work on there as well. Only released for the Nexus 4 because that's all it's really been tested on; if you want to test it out on other ROM's and Devices, please feel free, but again, I do not take responsibility if it goes wrong

This application is designed to add more automation to the process of replacing / installing cyanogenmod apps as system applications, or the regular way, however it is slightly less likely to succeed.

This app installs like any other app.

In addition, it has root permissions to install if you're rooted, so you should be granted SU when you first boot, and it does write to system partition - Read the Code section if you're worried about exactly what gets executed. Installing the regular way will obviously not require this, but sometimes as these are pulled straight from the System partition, they require to be installed as a system app.

The process is pretty simple, hit the app, hit install, and then reboot your device.

You can go into more than 1 app at a time and hit install, the restart will refresh your system apps list no matter how many you've added.

At the moment, the following apps are supported

- CM File Manager

- CM Messaging

- CM Torch

- CM DSP Manager

- CM Apollo

- CM Calculator

- Voice +

- CM Focal

Code

This information is also available from within the application.

There are a number of commands that this application uses, it executes certain processes through the code to copy apps to the system directory.

These commands are ran as if they were ran inside the terminal emulator, and always consist of

process, remount to read-write, transfer/copy/rename, remount to read-only, close. (In this order).

I use a Process to get a SU Runtime instance

Process p = Runtime.getRuntime().exec("su");

And then I use a PrintStream to issue the commands listed below to it.

Remount the system partition as read-write

mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system

Rename an app (use move command to move with a different extension

mv /system/app/AppOfChoice.apk /system/app/AppOfChoice.bak

Copy an app from SD card to System directory

cat /sdcard/CMApps/AppOfChoice.apk > /system/app/AppOfChoice.apk

Remove an app from system partition

rm -r /system/app/AppOfChoice.apk

For permissions, I use chmod

chmod 644 /system/app/AppOfChoice.apk

Remount the system partition as read-only

mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system

Changelog

Version 1.0.0

- Application built and released

- CMFileManager included in app

- CM Messenger

- CM Torch

- CM DSP Manager

- Added settings menu

- Added changelog

- Upgraded icon

- Improved Root access algorithm

- Moved methods to UI Threads (increase speed)

- Confirmed working on Nexus 4 on any AOSP-based 4.2.x or 4.3 ROM

Version 1.0.1

- Optimised replace code for extension

- Added Apollo apk functionality

Version 1.0.2

- Added scrolling support for settings dialogs

- Tweaked app layout in order to support smaller devices

Version 1.0.4

- Added "Clear SD" option to delete buffer files used in transfer

- General bug fixes

- Fixed issue with CM Messaging crashing when pressed

- Fixed issue with crashing if root access isn't granted.

- Fixed issue with app not detecting installed if original exists (now pushed two version, one backup, one original)

- Added CM Calculator apk functionality (replaces old calculator)

- Testing the application

- > DSPManager confirmed working, enable in Settings > Sound after install and reboot.

- > CMFileManager confirmed working

- > CM Messaging confirmed working

- > CM Torch confirmed working

- > CM Apollo music player confirmed working

- > CM Calculator confirmed working

Version 2.0.1

- Recoded entire app (Behind the scenes stuff)

- Improved logic behind if app is installed

- Added multiple installer feature in settings (not working currently)

- Added ability to delete just backups

- Added ability to restore original backup if app isnt installed

- Added Focal app support!

- Improved logo

- Fixed issue with updating on list

- Improved expandability logic

- Speed enhancements

Version 3.0.1

- Introduced networking!

- > App will now download apk from server space, then push to system

- > Dynamically updatable, no need for client-app update if cyanogenmod app is updated

- Error with streaming images available to the app - bug is reported and being looked into.

- Removed Focal support (error with server-side apk upload)

- Speed enchancements

- Redesigned UI (trying to keep up with Android UI Guidelines)

Version 3.0.2

- Removed Image View

- Increased title size

- Removed the multi-select option from the menu

- Cleaned up toast notifiers for the individual processes

Version 3.0.3

- Cleaned up and commented code

- Modified Greeting text

- Modified the project setup, cleaned up strings file for possible language translations

- Added version code in "about" selection

- Changed handler code for root access - Will restrict options entirely if root isn't granted (or crash device)

Version 3.0.4

- Fixed issue with crashing if root access isn't granted

- Removed refresh button when root access isn't granted

- Optimised startup code

Version 3.0.5\n

- Added installation progress bar\n

- Synced download messages\n

- Added more useful error messages\n

Version 3.0.6\n

- Fixed issue with Server (shouldn't happen again)

- Removed GenieWidget (News and Weather Widget) due to some incompatability

- Migrated to new server (plus backup installed) to avoid issues experiences

Version 3.1.0\n

- Migrated server to dropbox (and using their downloading system)

- Downloads take a little longer to start, but should be FAR more reliable!

- Added GenieWidget back in (open for suggestions again, due to dropbox file limit being increased:D)

- Not compatible with ART!

Version 3.1.1

- Bug fix (I overlooked! Sorry!)

Version 3.1.4

- Bug fixes (With the execution of installing)

- DSP Manager Modification!

> Now there's an option, DSP Manager Libs. This will install the lib to make DSP manager work!

Version 3.5.1

- Major UI over-haul (including some custom theming and finally image support!)

- More intelligent installation process

- Non-root support!

- Miscellaneous info

Version 3.5.3\n

- Minor bug fixes + greater device compatibility

- Some graphical glitches solved

Obviously I don't take any credit for the applications, they were pulled from the CM flashable zip. All credit for the apps goes to the CyanogenMod Team

Credit also goes to the Reddit member /u/wchill, his code helped with the system code (shown in the Code section above)

Similarly, I do not take any responsibility if this app causes your phone to be bricked, corrupted, broken, or to encounter an unfortunate case of spontaneous combustion. Use at your own risk.

In the mean time, enjoy!

Donate if you like : here

It's now on the play store! :D Check it out here