[Xiaomi Redmi 1S] koala990:
Get rid of low space on the System partition by compressing app sizes!​

Hello everyone. I know most of you have been facing the problem of low size of the system partition on your RedMi 1S, I've been facing it too until I came up with this small 'Breakthrough' :D Now we all know that whenever we need to install a GApps package, push an app to the system, install a heavy mod or just to play around with the device, we need some free space on the /system. As our device have a significant low size of /system partition (around 800 MB), people have been looking for several ways to reduce their frustration. I know there's already a solution to re-partition the device to get around 1.2 GB of system size but that's quite dangerous and I've seen it gets back to its original stage when some ROMs are installed.

I have got a small solution for the problem and I hope you all will love it because it doesn't touches any partition stuff and possesses no danger (Unless you have backed up the apps). It just compresses the sizes of the apps on the system partition in order to get more free space. Now, It won't do miracles (that it actually does with the apps :cool::cool:) but it will surely be very helpful for you when you are struggling for some free MBs. Not just this, you can make use of it in many ways once you understand its importance.

Enough talk, lets get started now!

Prerequisites

Rooted RedMi 1S or any rooted Android Device

Frustration for the low size of /system partition. :D

Root Explorer (Any File Manager with root and permission support will work but Root Explorer recommended)

RAR (Get it from the Play Store or any where)

Little experience with the Android System and permissions.

Time and Patience.

The Procedure

Open Root Explorer, scroll down and goto the 'System' directory.

You'll find two folders, 'app' and 'priv-app' (obviously). (Now, it depends upon you that which app you want to compress. Generally the Settings app has huge size and I'll take the Settings app as the example of this tutorial throughout. You can choose any app you think has a huge size that deserves to get slimmed down.)

Goto 'priv-app' -> Settings. Copy the Settings.apk to the Internal storage. (Simply swipe left in Root Explorer and it will open the Internal Storage. Alternatively, from the Root page, you can goto storage -> emulated -> 0 to get to the Internal Storage. Also remember to copy the app on the Internal Storage only to reduce permission issues.)

Make another copy in a different folder to make a backup. (Just in case anything goes wrong.)

Push the home button, open RAR. (Minimize Root Explorer, don't kill it.)

Navigate to the Internal Storage (Open by default) and select the Settings.apk. Hold it and click 'Open As Archive'.

You'll find several files and folders inside the app. Don't touch any other files

(yet). Select the check boxes of 'classes.dex' and 'resources.arsc' and extract them with the extract button on the action bar. (They will be extracted on the Internal Storage with the same directory name as Settings.)

Go back once with the back button, again select both the classes.dex and resources.arsc files and now, delete them.:cool:

Once they are deleted, go to the Settings directory where the files have been extracted, select both of them and cut or copy them by holding one of the files and selecting Cut/Copy.

Head back to the Settings.apk, open it again as archive, and paste the files inside it with the paste button. (This is where the magic has happened. Go back and check the size of the app. It must have now been reduced to 8-12 MBs):cool::cool::cool:

You have compressed the app, now its time to put it back where it belongs with correct permissions.

Open Root Explorer (It should be there where you left it), refresh it once for the changes to take place. Now select the Settings.apk and copy it back to 'priv-app'. (Hold Settings.apk, tap the copy button on the action bar, swipe right, paste it there. Replace it when prompted).

After you've pasted it, you might start getting FCs and errors. Try to ignore them and proceed further.

Once pasted, its time to give correct permissions. Touch and hold the app, tap the three dots button on the action bar (Menu button) and select permissions.

Give the app the 'rw-r-r' or 0644 permission.

Restart the device once the permissions are assigned.

You're done!:laugh: Easy ehh??:laugh:

Please notice that it does not increase your partition size or does anything to the device, it just compresses the app miraculously so that you can save some space. Also notice that this tutorial is not only restricted to the system apps, you can compress any other app too. This is very helpful when you want to transfer those apps, send them to someone or any other similar use. I know you'll start making use of it in many other ways. Do remember that the apps containing only images, audios or videos will not get compressed in any way.

I hope this tutorial will help you and you'll love it.

I've started a new YouTube channel and made a video for your convenience. Please watch, like it and Subscribe to my channel. I will be posting more tricks for our device, MIUI, Android and other Technical stuffs very soon. I need your support folks.:laugh:

ThankYou.

Video Link: https://www.youtube.com/watch?v=sT1EyQ1wr7M&t=14s

If you liked my work or I have helped you in any way, please press the

'Thanks'

button because​