yashsingh1/xdaforums huggingface dataset:
[Redmi Note 2 General] Xabadou:
I tried init.d and 01_tweaks script (whith correct permissions).

The system is more time in 806 Mhz., deep sleep not works properly.

I use Stable 7.1.1 .

Deleting script, deep sleep works fine.

Need I install or update busybox for resolve my issue?
[Redmi Note 2 General] jajk:
[MENTION=6199310]Xabadou[/MENTION] This script is the starting point. If you do not "skinny down" MIUI, there are so many things running in the background that you will find it difficult to sit on idle frequency.

How far into skinnying down have you gone?

Also, if you have a 2.2GHz cpu, the 2nd line below frequencies in bold must be modified to valid frequency for that cpu.

If you are not going to skinny down to a great extent, then it helps to bump some of the load settings up a touch.

These are the original lines:

echo 80 > /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load

echo 90 403000:70 806000:81 1183000:84 1326000:87 1469000:90 1625000:93 1781000:96 1950000:99 > /sys/devices/system/cpu/cpufreq/interactive/target_loads

# for 2.2GHz cpu: echo 90 403000:70 806000:81 1183000:84 1326000:87 1482000:90 1664000:93 1885000:96 2158000:99 > /sys/devices/system/cpu/cpufreq/interactive/target_loads

Modify to:

echo 85 > /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load

echo 95 403000:75 806000:81 1183000:84 1326000:87 1469000:90 1625000:93 1781000:96 1950000:99 > /sys/devices/system/cpu/cpufreq/interactive/target_loads

This is enough to get it to sit on 403MHz idle in most cases. If you go higher, you will start compromising smoothness. There are no problems at all with entering deep sleep.

If you are still having problems, you have an app running that is badly behaved - identify it and deal with it.

Refer back post #10, I mention why you should upgrade busybox.

I am running my phone beyond Super Skinny and loving it. Super stable and battery friendly while still being a performance beast. You should notice even at the point of trimming down to Skinny, this phone really starts to liven up.
[Redmi Note 2 General] DarthJabba9:
Do you have a list of the apks (and directories) that you deleted in order to get the skinny ROM? Such a list would be useful for writing a script to automate the task.

P.S.: you might have noticed that I am a script fanatic - I generally find that it is less error-prone to automate such tasks with a script - and you only need to get the script right once.
[Redmi Note 2 General] Xabadou:
I use stable 7.1.1 by xiaomi.eu whith your modded kernel and a lot of apps frozen (App Quarantine).

Modified kernel works very good.

Just now I have updated busybox.

I have 2.0 ghz version.

I will try again the script.

Clear Motion mod works fine in MIUI roms but you must use MX Player for play videos.

---------- Post added at 01:20 PM ---------- Previous post was at 01:11 PM ----------

persist.sys.use_qualcomm_performance_features_inst ead=1

Works qualcomm tweaks whith mediatek processors?
[Redmi Note 2 General] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] The lists ares already mentioned - 1 to get to skinny, 1 to get to super skinny but if you do this in a script on a live system you will likely end up in a bootloop because there are too many odex and cache entries orphaned for Android to handle in one hit. If you intend to apply a script to the ROM files before installation, that is a different story. It takes a bit of effort to figure out how and where MIUI is loading a lot of its components from but is doable.

Why I have not offered a complete ready to go package? It is too easy for users to do it themselves and add their preferences along the way. For those that have actually followed through with the process, I can guarantee that they will instantly loose interest in any other custom ROM.

[MENTION=6199310]Xabadou[/MENTION] Thanks for the clarification on ClearMotion. I run VLC set to hardware acceleration and can't see the split screen test mode. Video looks fine regardless, so really hard to tell if anything has changed.

Do the apps that you quarantine stay not running? I had problems with quite a few apps running regardless of being frozen or not so had to uninstall.

You, along with everyone else are not running a modified kernel - the kernel remains intact since we do not decompile and recompile or compile it from source.

The "persist.sys.use_qualcomm_performance_features_instead=1" tweak is a sarcastic dig at the many tweak offerings that do absolutely nothing:silly:

You asked the question showing you were not ready to accept this at face value:good:

If there is no evidence of a tweak doing something positive, don't blindly use it!!!
[Redmi Note 2 General] jajk:
This is a customized boot image that provides init.d support and has unnecessary entries removed. No tweaks are embedded.

It is built on 7.1.4 and can be used on stock 7.1.1 to 7.1.4.

https://drive.google.com/file/d/0BwdRTuyj12_yR3phb0Zxd05UQjQ/view?usp=sharing

credits to [MENTION=5850987]DarthJabba9[/MENTION] for the alternate init.d support method adopted in this image. It circumvents using busybox run-parts method that appears to have some bugs.
[Redmi Note 2 General] DarthJabba9:
Fair enough ...
[Redmi Note 2 General] DarthJabba9:
Thanks for the image. It cannot be unpacked with standard linux tools, but it unpacks ok with AndroidMasterChef.
[Redmi Note 2 General] jajk:
I have replaced the MIUI provided messenger with Google Messenger v1.7.050 downloaded from here with no problems:

http://www.apkmirror.com/apk/google...-7-050-2625181-40-phone-android-apk-download/

Now trying to replace Contacts and Dialer combo with standard Google / Android versions but not as easy. Can replace the Contacts part with this:

http://www.mediafire.com/download/xa9anc94cxtbf3s/Google+Contacts+1.1+(API+21).apk

But the Dialer/Phone part is still a problem and I won't use 3rd party apps for this critical part.

Any ideas apart from using magic?
[Redmi Note 2 General] DarthJabba9:
Perhaps you can borrow them from CM / AOSP ?
[Redmi Note 2 General] Adam Hui:
[MENTION=5952980]jajk[/MENTION] i think it'll be a good idea if the progress meets a best final super-anoerexic combination (rom+kernel+scripts), if u don't bother ofcuz, u could upload & share yours at OP.

So some people who dont have brain & much time to play with this (like me), can instantly benefit it.

This is really amazing works, tq for ur effort. Maybe i'll continue play with disabling services on many apps of mine to a lighter if u done it. :highfive:
[Redmi Note 2 General] Xabadou:
I have ported 7.1.8 Stable from RN3 to our RN2.

It's based on xiaomi.eu version (is multilanguage).

The kernel is posted on #148.

All working (GPS and init.d too).

Maybe is a good base for Skinny project.

Link to Rom ported:

https://mega.nz/#!fNNEwRrJ!GEBjPMALe3yLoAWVjrZQb_LFSSCTfH4lwoYfb0SBXd8
[Redmi Note 2 General] DarthJabba9:
[MENTION=5952980]jajk[/MENTION] When you are finally happy with your skinny/anorexic ROM, if you feel like sharing it, here is a script that will write the system partition to an image file that can be mounted/unmounted in Linux, and flashed zia a CWM/TWRP update zip file. The system image is 2GB in size - but it compresses down (zip file) to just under 800MB

#!/system/bin/sh
blockdir=/dev/block/platform/mtk-msdc.0/by-name
targetdir=/storage/sdcard0
source="system"
sourcedir="$blockdir"/"$source"
destfile="$targetdir"/"$source".img
echo "Backing up Xiaomi Redmi Note 2 $source to $destfile ..."
dd if="$sourcedir" of="$destfile"
ls -all "$destfile"
echo "done!"

I have already made many such images of my changes, as a I go along, so I can revert to any number of previous system images. I have created several zip install files for this.

By the way, you can do this for any of your partitions by changing "source=system" to something like "source=boot", "source=recovery", "source=data", etc., for boot, recovery, data partitions, etc.
[Redmi Note 2 General] jajk:
[MENTION=6199310]Xabadou[/MENTION] Great job:good: More info please. What apps included? Gapps or no Gapps? Locale set to Brisbane by default? You set the target being first to post;)

People need to know that RN3 7.1.8 is identical to RN2 7.1.4 except for the inclusion of Fingerprint scanner & lock apps that we then delete. The benefit is the multi-language pack which 7.1.4 doesn't have.

It gets confusing with all these release numbers floating around that appear to be newer but are just rehashes of the existing 7.1.4. I think Xiaomi want it to appear that development is continuing at a rapid pace when it is stagnant. I can also tell you that 6.2.25 has nothing newer than 7.1.4 also and most offerings on MIUI forums are bug-ridden pieces of rubbish. The same crap going round and round with different people claiming to be author:mad:

[MENTION=4666525]Adam Hui[/MENTION] [MENTION=5850987]DarthJabba9[/MENTION] I am contemplating the best way to make a clean recovery installable ROM but now I have to beat [MENTION=6199310]Xabadou[/MENTION] by a long margin since I am OP:(
[Redmi Note 2 General] Xabadou:
Gapps included, only Playstore appears on apps screen.

At first boot, I have setting phone in english, then have change to spanish.

Locale set are Spain.

Removed baidu location, notes, yellow pages, whetstone, fingerprint and some more.

ROM it's bug free.

Enviado desde mi Redmi Note 2 mediante Tapatalk
[Redmi Note 2 General] jajk:
[MENTION=6199310]Xabadou[/MENTION] Downloading now...... I will use yours as base since mine is not multi-lang:)
[Redmi Note 2 General] Xabadou:
Apps frozen:
[Redmi Note 2 General] jajk:
[MENTION=6199310]Xabadou[/MENTION] Mega breaking download near 100%. Can you host elsewhere?
[Redmi Note 2 General] DarthJabba9:
That's the purpose of the script that I posted. You can amend it slightly, so that it will take the name of its "source" from the command line - as per this script, which I use to back up any partition I want

#!/system/bin/sh
# ----------------------------------------------------- #
# Write partition to flashable image file;
#
# For Redmi Note 2
# Supply one of these arguments: "boot", "logo", "recovery", "lk", "system", "data"
#
# ----------------------------------------------------- #
syntax()
{
echo "Syntax=$0 <source partition>"
echo "Please supply the name of the source partition."
echo "Valid (case sensitive) choices are between these:"
echo "	boot"
echo "	logo"
echo "	recovery"
echo "	lk"
echo "	system"
echo "	data"
echo ""
echo '*NOTE*: "data" contains all your personal stuff - do NOT share it!'
exit 1
}

# make sure we have an argument
[ -z "$1" ] && syntax

# check stuff
source="$1"
targetdir=/storage/sdcard1 # you can change this to internal SD (/sdcard)
blockdir=/dev/block/platform/mtk-msdc.0/by-name

# rough and ready check that we have a valid argument (avoids a lot of "if"s
case "$source" in
"boot")
;;
"data")
;;
"logo")
;;
"lk")
;;
"system")
;;
"recovery")
;;
# if invalid source, bomb out
*)
syntax
;;
esac

# create the image
# begin
sourcedir="$blockdir"/"$source"
destfile="$targetdir"/"$source".img
echo "Backing up the Xiaomi Redmi Note 2 \"$source\" partition to $destfile ..."
dd if="$sourcedir" of="$destfile"
ls -all "$destfile"
echo "done!"
# end

I can post a copy of the updater-script I use to flash these images if you want. It requires specific versions of update-binary to flash large images such as system.img
[Redmi Note 2 General] Xabadou:
I am uploading file to mediafire.

Link very soon.

Edit:

Upload Failed.

Have you try download with another browser?

Chrome is not the best for MEGA, Firefox works better.
[Redmi Note 2 General] jajk:
[MENTION=6199310]Xabadou[/MENTION] Was using Firefox on PC already. I notice your ROM is based on a deodexed base ROM which has lead to broken functionality for me in 3 different ROMs.

Strongly advise against providing or loading Preloader in any custom ROM. This is the major source of bricking and is completely unnecessary. While the phone is almost impossible to hard-brick, not too many users can see their way through the process of using SP Flash Tool and Scatter files to unbrick the phone afterwards.

[MENTION=5850987]DarthJabba9[/MENTION] I used your script to generate boot and system images and the doctored up an updater-script to load it. All went amazingly well except I cannot get around an issue with the Settings crashing after selecting language since I have obviously deleted or disabled something it is looking for. I do not think I can get around this problem unless I add back a bit more MIUI which kind of defeats the purpose.

It takes 20 mins to go from a stock install to a full on Skinny install if you are prepared with all the tools you are going to use;)

If nobody is having any problems or can suggest changes to the last boot.img, I will call that final and edit first 3 posts to reflect all changes since last reviewed.
[Redmi Note 2 General] DarthJabba9:
I absolutely agree. I had a discussion with barome about this in January in respect of the latest release of SlimMiui. He said "It's xiaomi.eu's updater-script. So, xiaomi.eu rewrite preloader" - so I left the matter.

But it doesn't defeat the purpose of it stops Settings from crashing... [

edit

: perhaps if you wiped data and all, it might get rid of whatever is lurking around that is causing the crash?]

So far, I haven't had any problems with it.
[Redmi Note 2 General] jajk:
New OP in progress.
[MENTION=5850987]DarthJabba9[/MENTION] I modified your init.d scripts since you suggest I don't do wipes;)
[Redmi Note 2 General] DarthJabba9:
[MENTION=5952980]jajk[/MENTION] My suggestion about wiping data is in respect of testing your skinny mods to see if the crashing Settings can be resolved without your having to restore deleted Miui stuff - the crashing may be due to orphans still lurking around. I wasn't referring to initd stuff!
[Redmi Note 2 General] jajk:
OPs refreshed.

[MENTION=5850987]DarthJabba9[/MENTION] I know all about wipes and I know why Settings has a hernia since it is the MIUI version of settings wanting me to sell my soul to the devil on the next page. It is easier for people to build Skinny to their own liking - if they follow the instructions carefully takes 20 minutes.

I went back through all the scripts before posting the latest boot.img and found a simpler way of achieving the same thing which saves 100 clock cycles on every boot. The example is posted directly above the new init.d section in init.rc;)
[Redmi Note 2 General] exiacruzalta:
The boot.img is good, no problem :good: now i'm cycling through many base rom from 7.1.3 china, global, 7.1.4 china, cutom xiaomi.eu rom and others. as far as ive done, roms based from xiaomi.eu is the least problematic to strip out as they dont have deodex like global and china and no dependence on miui apps like appstore (china rom really wants everything sent to their server,urghh
[Redmi Note 2 General] jajk:
[MENTION=7287632]exiacruzalta[/MENTION] Did you mean the xiaomi.eu ROMs are deodexed not like the china and global ones that are odexed? (Odexed has arm64 folder in each app folder if there is any confusion)

I have tried 3 deodexed ROMs and all broke something critical so I gave up looking and put up with the attempted spying. Can you link to a specific multi lang 7.1.3 or 7.1.4 ROM that is deodexed and is 100% bug free (your recommended best choice)? I would like to rebase mine away from china 7.1.4 but hate doing a big download only to be disappointed over and over again.
[Redmi Note 2 General] exiacruzalta:
Yes, the one i've seen have only apks without the .odex file.

Some that i've used and stripped:

SlimMIUI

http://xdaforums.com/redmi-note-2/development/rom-slimmiui-dev-stable-t3296594

MIUI400DPI

http://xdaforums.com/redmi-note-2/development/rom-mi400dpi-t3306615

SMIUI

http://xdaforums.com/redmi-note-2/development/rom-smiui-rom-kitchen-major-xiaomi-t3225567

but the best i used is MI400DPI coz the rom developer Jo-san made tweaks only in build.prop i guess, no odex (all deodexed) and he retains many stock apps (so if you want to keep some stock, its there) I only tweak the theme back to normal and add your boot image and start stripping :)

but currently I'm on China stable 7.1.4 and i've read about appstore cant be deleted, well in mine i sure deleted it together with other libs. but with it goes all stock apps (music, video, you can see in my attached images)

one 7.1.4 rom ive seen stripped crazily (rom size 400++MB only :silly: ) is the MiYuWi Romboh 7.1.4 in the needrom and yes the apps still deodex :)

thats all that i've tried but based on my liking so i hope you found the one that you maybe interested ;)
[Redmi Note 2 General] jajk:
[MENTION=7287632]exiacruzalta[/MENTION] Can you provide detail of how you managed to delete App Store in china 7.1.4? I always get blackscreen after reboot. Do you still have functional Security Center afterwards?

I would really like to get rid of the whole Security Center but it seems to break things if deleted.
[Redmi Note 2 General] exiacruzalta:
I've deleted the appstore inside the flash zip with no ill effect, maybe it should not be loaded at all?i left the security center as it is as security center controls much of everything including apps permission, the last time it breaks is when i accidentally deleted Authmanager. i also deleted the libweibosdk, libfamily_jni,xmpass_libweibo and edited the update_script to not load those linked them.
[Redmi Note 2 General] jajk:
[MENTION=7287632]exiacruzalta[/MENTION] I too go through and delete the obvious libs but never remember to make a list of them..... Did you find and delete the system/vendor/lib64 fingerprint libs?

Still can't delete App Store - maybe you are right that it shouldn't be installed in the first place and then it is O.K? I take it that you did not uninstall it, just never installed it in the first place?

I have in the past tried to remove security center and replace with the good old AppOps. I think Google has killed off AppOps as a "security" update - it no longer works on my other phone that does not have MIUI but stock 5.1

Here is a preliminary list for those interested.

Libs you can remove:

/vendor/lib64

libcom_fingerprints_productiontestmanager.so (you don't have a Note 3)

libcom_fingerprints_sensor.so (you don't have a Note 3)

/system/lib

libfamily_jni

libjeejenAisound.so

libjeejenmsc.so

libMiraVision_jni.so (if deleted MiraVision App)

libvoicerecognition.so (if voice recognition apps deleted)

libvoicerecognition_jni.so (if voice recognition apps deleted)

libweibosdkcore.so

****libwhetstone_jni.so (if deleted Whetstone App)

****libwhetstone_sdk.so (if deleted Whetstone App)

libxiaomimediaplayer.so (if xiaomi media player deleted)

libxiaomimediaplayerwrapper.so (if xiaomi media player deleted)

/system/lib64

libBankCardRecognizer.so (you are rooted, this won't work anyway)

libjni_latinimegoogle.so (if not using Google keyboard)

libjni_pacprocessor.so (if pacprocessor app deleted)

libMiraVision_jni.so (if deleted MiraVision App)

****libwhetstone_jni.so (if deleted Whetstone App)

*****libwhetstone_sdk.so (if deleted Whetstone App)

xmpass_libweibosdkcore.so

*****deleting whetstone libs will give Battery Saver FC if it is not frozen or deleted.
[Redmi Note 2 General] DarthJabba9:
[MENTION=5952980]jajk[/MENTION] and [MENTION=7287632]exiacruzalta[/MENTION] - I don't have app store at all - or, at least, I can't find it. I don't have any recollection of removing it (I am using SlimMiui Stable 7.1.3), so, I'm not sure what you guys are talking about? :confused:
[Redmi Note 2 General] exiacruzalta:
yes, i deleted it outright and it still boot fine. and no, dont delete those fingerprint lib, those would cause you the bootloop neverland :( also the whetstone libs,the apps can be deleted but the libs will cause battery saver to crash

i've havent tried it yet, so i dont know what the implications but only one component missing had already cause other apps to have problem. eg. if you delete authmanager your whatsapp cannot read your contact and your contact list will be empty.

---------- Post added at 06:48 AM ---------- Previous post was at 06:45 AM ----------

[MENTION=5850987]DarthJabba9[/MENTION] SlimMiui is a xiaomi.eu rom, multilang dont have chinese appstore. rom from china stable will have miui appstore as they dont have playstore (you need to add the google framework as it wont work from the start)
[Redmi Note 2 General] DarthJabba9:
So perhaps the starting point for a skinny ROM should be xiaomi.eu stable ?
[Redmi Note 2 General] exiacruzalta:
the reason im using china 7.1.4 is because i dont want multilang, dont want to be tied by xiaomi or google apps (can remove both, only security apps cant) and 7.1.4 fixed the stagefright exploit, 7.1.3 still have vulnerability last time i check

[MENTION=5850987]DarthJabba9[/MENTION] well from my opinion china stable is the best as its the only rom i freaking remove almost everything (and still going, you can see in my post above only some apps remain from miui and google one i add myself) for the multilang, yes xiaomi eu is the best for most rom i tried
[Redmi Note 2 General] DarthJabba9:
[MENTION=7287632]exiacruzalta[/MENTION] But Stagefright Detector informs me that my device is not vulnerable to stagefright exploits ...
[Redmi Note 2 General] jajk:
I was sitting on an unfinished edit to my previous post so things are a little out of sequence.
[MENTION=7287632]exiacruzalta[/MENTION] I do not understand why I cannot delete App Store from 7.1.4 china and you can:mad::mad::mad:

Also I can delete fingerprint libs no worries at all. The stock boot.img loads fingerprint stuff that would need these but the custom boot image is fingerprint free for a long time. Maybe custom boot image is required before deleting the libs?
[Redmi Note 2 General] exiacruzalta:
Maybe the rom im using is affected or slimmiui had patched it already :o

---------- Post added at 08:22 AM ---------- Previous post was at 08:19 AM ----------

thats what im thinking too, its weird. i use your boot image, but did some editing in all file inside the ramdisk (the factory_init,init_miui,etc) so maybe ive deleted something that linked to the app store. i can upload my boot.img if you want :) or i just upload the whole rom :D
[Redmi Note 2 General] jajk:
[MENTION=7287632]exiacruzalta[/MENTION] Yes please or just the scripts zipped up will be even better.
[Redmi Note 2 General] exiacruzalta:
here, i've uploaded the image already :p
[Redmi Note 2 General] jajk:
[MENTION=7287632]exiacruzalta[/MENTION] Exactly the same behavior on your boot.img but worth a try. When it reboots, it briefly flashes up the launcher home and then goes back to the bootanimation forever. I am not using MIUI launcher which may be the difference? I'll test that theory.

You are 2 versions behind in the boot image......
[Redmi Note 2 General] exiacruzalta:
[MENTION=5952980]jajk[/MENTION] you have removed the fingerprint libs entry in my boot?

then maybe it is something in the rom that is missing, that only happen when it tries to find something that is not there. Ill try flashing your new boot.img. if it does not boot then we know it is in boot.img. if it boot then we know its inside the rom.

Edit:

Mine booted well with the new boot.img. maybe you are right about the miui launcher, worth a try
[Redmi Note 2 General] jajk:
MIUI launcher makes no difference:(
[Redmi Note 2 General] jajk:
Uninstalling Battery Saver and Battery Warning seems to quieten down idle activity which can only be good for the battery - ironic really:p

I will run like this along with deleted Whetstone libs since I don't see much point in all the battery settings anyway.
[Redmi Note 2 General] exiacruzalta:
lol yeah the battery saviour is the battery drainer :P but if you delete that app how is the tab for battery saver in setting?would the app crash if we click on it?

my phone bootloop after removing fingerprint but boots fine if using your boot.image. thats after i compared and edited file by file from my boot with your boot.img. weird