[Android Apps and Games] TheMentalGoose:
Hi XDA

CM App Installer

NEW UPDATE! Added 6.0 downloads and migrated all source to Github

Download Here

New features include:

Ability to download different versions of the apk for different versions of android you run

Better server management

More compact install process

This application was on the play store originally, but at the end of 2014, it got banned due to a overlap in the developer policy

Just thought i'd share it here in case anyone was looking to still use it! The server is still available, I just released a material design update as well and considering I have brought the server space for 3 months it seems like a waste to let this one go

For those interested, CM App Installer will pull the latest versions of the apps available that CyanogenMod exclusively develop, and give you the option to install them to your system either rooted or non-rooted. I cannot guarantee success with this, I don't develop the application, my job is simply to make it easier for you guys to get your favourite CyanogenMod apps on your own ROMs!

Use carefully! As ever, I do not take responsibilty for any damage done to your device as a result of this! The root features use the code specified in "code" in the options menu, or it's listed below. If you're paranoid, please give it a read

I have to emphasise, please try the non-root method first!. The root method is designed as a last ditch attempt to get it working, it does backup and restore your old versions but errors do happen, expect this as a possibility if you're rooted!

The list of apps available in the application are:

Apollo

Calculator

CM File Manager

Torch

Messaging

DSP Manager

Voice+

News and Weather Widget

Trebuchet Launcher

cLock Widget

Movie Studio

CM Wallpapers

Let me know if you have any more suggestions to add!

The source is hosted on Github

Source code on Github

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 - Creating backups)

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

And that is it. The process commands get pushed over the course of about two seconds, and should work. Again, I can't promise everything

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! :)

If you fancy buying me a drink, see here!

Previous post

Small update to fix one bug reported by a few users, and added adverts. Lost the keystore again (apologies), so it's made with a new one which has been backed up everywhere :)