yashsingh1/xdaforums huggingface dataset:
[Redmi Note 2 Android Development] asusm930:
Yep i changed it to the echo values. I'll be trying this for a day and I'll report. Phone does feel more responsive with the 2 lines earlier
[Redmi Note 2 Android Development] vaselor:
[MENTION=5952980]jajk[/MENTION] Would you mind posting what res apk files did you use when decompiling Xiaomi's apks? I'm really interested in the process you followed to get to know this phone so deeply. I'm using tickle my android and installed mediatek-res.apk, framework-res.apk and framework-ext-res.apk on my PC but I'm still unable to decompile FindDevice.

Thank you very much.
[Redmi Note 2 Android Development] jajk:
[MENTION=7117356]vaselor[/MENTION] There are 2 more hidden frameworks: miui.apk and miuisystem.apk. Rename these to miui-res.apk and miuisystem-res.apk so that TMA will pick them up as framework. Update the included apktool to the latest 2.2.2 release. If you get errors trying to recompile with no edits, edit the apktool.yml file in the working folder and add references to all framework files (you'll figure out the syntax by looking at other files).

You may have to switch back to earlier apktool versions for apks that report as SDK version 17 in apktool.yml - I have a collection of about 5 versions of apktool to overcome some of the errors.

Some apks still will not recompile no matter what you do - it is not a perfect science with MIUI.

Once you have the setup working, take a look at https://translate.googleusercontent...fid=60&usg=ALkJrhg2Pfdijf9ToPSo9DA88pBSvEcyTA for a quick start into the world of modding;)
[Redmi Note 2 Android Development] jajk:
SuperSkinnySU-v2.79-SR3-arm64.zip uploaded.

Only for arm64 and lower resolutions removed otherwise the way chainfire made it.

This works for RN4, RN3, RN3Pro and maybe RN2 but I don't get feedback from RN2 guys so all I can say is it works on my phone:rolleyes:
[Redmi Note 2 Android Development] Gyovany96:
It's working on my RN2 ! Good job , like always !:good:
[Redmi Note 2 Android Development] vaselor:
[MENTION=5952980]jajk[/MENTION] Thank you very much, will look at it closely.
[Redmi Note 2 Android Development] DarthJabba9:
I do try to provide feedback

if

I install something

and

find a

noticeable

difference (whether positive or negative). I guess people tend to operate that way? I do not install every mod (e.g., your busybox or this skinny supersu) since I often have my own home-brews that I am satisfied with (e.g., I build my own busybox, which I package together with my own build of bash).
[Redmi Note 2 Android Development] jajk:
I wasn't trying to solicit responses - it just gets so one sided some times and I know there are many that will sit on the fence waiting to see what others say.

The difference between a forum and a blog site is???
[Redmi Note 2 Android Development] DarthJabba9:
I know the feeling ...
[Redmi Note 2 Android Development] vaselor:
[MENTION=5952980]jajk[/MENTION] I followed your instructions and successfully decompiled some MIUI apks including Settings.apk, where I found a folder called "pushads" and every files talks about listening to get ads. Wow, I never imagined this could be so bad. I already downloaded AFWall+ and blocked Settings.apk from connecting to the internet.

Do you think it's possible to modify the apk to make every method inside just return something to /dev/null instead of doing its business?

Thank you very much in advantage, I'm sorry if I said something too unrealistic.
[Redmi Note 2 Android Development] jajk:
[MENTION=7117356]vaselor[/MENTION] You will find every single MIUI app is loaded with adware/spyware. If you really want to get paranoid, decompile download manager and try and work out what percentage is app functionality vs adware/spyware:mad:

Yes you could try to edit the apps but Xiaomi have gone to such great lengths to prevent you from doing that - so much so, that they have no time left to support our device it seems:confused:

I was at first confused as to why my Moto G 7.1.1 ROM included a very old QuickPic 3.4.9.1 until I noticed this is the last version prior to including cloud services. I was using the last version prior to being acquired and bastardized by Cheetah Mobile. Then I noticed this old version is very small (558kB) and does not have the explosion of running services etc. found in later versions. It meets the skinny test 100% so now is the only version I would recommend:good:
[Redmi Note 2 Android Development] vaselor:
[MENTION=5952980]jajk[/MENTION] I noticed the .smali files generated by apktool have a java-like structure but it's not java. How do you read them? I can only guess which ones are the main files by their name and the number of other files calling them.

Thank you.
[Redmi Note 2 Android Development] jajk:
[MENTION=7117356]vaselor[/MENTION] There are tools to re-interpret the smali as java that I have seen somewhere on my travels........it doesn't really interest me so I didn't pay much attention to it. I am sure that Google will figure it out for you;)

I think such a tool was used to step through the autobrightness smali files to see where they were broken.
[Redmi Note 2 Android Development] vetriolo:
What about the xda version?

https://xdaforums.com/android/apps-games/app-quickpic-v4-5-2-classic-version-t3204543
[Redmi Note 2 Android Development] jajk:
[MENTION=7694222]vetriolo[/MENTION] In MyAndroidTools, version 3.4.9.1 has zero services and zero broadcast receivers. It starts when it is needed and stops when it is not - exactly how I like apps to behave. Later versions increased in size to add cloud backup support (initially when it became linked with CM) and services / broadcast receivers blew out exponentially. I had no issue with running a later version with a multitude of services disabled but 3.4.9.1 gives exactly the same Gallery performance minus all the bloat. Compare 3.5.2 to 3.4.9.1 for yourself and choose which one gives you what you need.
[Redmi Note 2 Android Development] vetriolo:
You're right!

I compared 4.5.2 from Xda (3 services and 1 broadcast receiver) and 3.4.9.1 (0 services and 0 broadcast).

Obviously I choose the second one....

As usual.... Thanks
[Redmi Note 2 Android Development] jajk:
[MENTION=7117356]vaselor[/MENTION] look here: https://github.com/skylot/jadx and here: https://dzone.com/articles/reverse-engineering-android-app-binaries-apks-for

[MENTION=7694222]vetriolo[/MENTION] I am always right except when I am wrong;)
[Redmi Note 2 Android Development] vaselor:
[MENTION=5952980]jajk[/MENTION] Will do. Thanks!
[Redmi Note 2 Android Development] cukierkas:
Guys, need some help.

Was playing with Android tools and after reboot I'm not having menu button (I made it as recent) and all long clicks (holds).

Maybe you got the idea what's tapped Ar cleaned too much?

Regards.
[Redmi Note 2 Android Development] jackjt3:
Hello, jajk what skinny pro boot you would recommend to use MIUI 6.11.17 because on your google server driver it is difficult to choose the correct version for my use, I'm waiting for you thanks
[Redmi Note 2 Android Development] Iliyena:
By jajk a few pages back:

From that.. 6.11.17 should be a Beta for MIUI 8.1 or 8.2 right? ;)
[Redmi Note 2 Android Development] jajk:
[MENTION=4584690]jackjt3[/MENTION] Use Skinny_Pro_7112_Tweaked-v25.img for 6.11.17
[MENTION=7442305]Iliyena[/MENTION] I will be more pedantic next time and state MIUI8.x
[Redmi Note 2 Android Development] bigmerlin2001:
[MENTION=5952980]jajk[/MENTION] Hello, on my RN2 standard, I have installed the last stable 8.1.3 skinny V2 of Giovany96 and after tour skinny pro 7112 V25. All is OK but the bluetooth is out. I try to enable but the icon don't stay on. When I delete the init.d file, I can reactivite the Bluetooth... The file is the one on your drive. What can I do for change this ?

Thanks for your great work ! And for your answer !
[Redmi Note 2 Android Development] Gyovany96:
Edit

init.d script

and put an "#" in front of stop mtkbt , this will disable that line.
[Redmi Note 2 Android Development] bigmerlin2001:
[MENTION=5216574]Gyovany96[/MENTION] Thanks for your reply! I 've tried several times to make what you said and finally, it's ok! I'll test for some days to make difference between SOT for this version and the rom without this

Thanks for your work!!!
[Redmi Note 2 Android Development] jajk:
Skinny_Pro_7530_Tweaked-v26.img for all MIUI7.5.xx

Skinny_Pro_7112_Tweaked-v26.img for all MIUI8.xx

Changes:

embedded 99SuperSUDaemon into init.rc for much earlier execution

forcibly remove 99SuperSUDaemon from init.d folder if it exists - it does not need to exist there or run twice!

disable setting of TCP buffers for evdo - our device does not support evdo

disable creating a few more random folders that are not used

remove some more irrelevant sepolicy lines

After Skinny boot image is installed, there are quite a few redundant folders that can be manually removed (if they exist):

/config

/custom

/data/acdapi

/data/amit

/data/nfc_socket

/data/misc/sensors

/data/misc/akmd

/data/misc/radvd

/data/misc/ethernet

/data/data/mcube

/mnt/cd-rom

/system/etc/radvd

/system/etc/jeejen

/storage/emulated/legacy (symlink)
[Redmi Note 2 Android Development] jajk:
[MENTION=3885679]acestars[/MENTION] I looked at the 3G, 4G only mod but the mod is not a very good one as it breaks the 2nd SIM function to 2G only (gives you the feel of CM). There might be a better implementation of it around somewhere but a lot gets lost in translation so it is hard to figure out what is going on some times. Maybe you can find a custom ROM on 4PDA of the correct version with the mod included and then just download TeleService.apk and Settings.apk?
[Redmi Note 2 Android Development] jajk:
Before anybody asks, Skinny_Pro_729_Tweaked-v26.img uploaded.

Only change is rebased on 7.2.9 boot.img;)
[Redmi Note 2 Android Development] acestars:
[MENTION=5952980]jajk[/MENTION] i never found any custom rom for those mod.

This thread explain how to mod but not for RN2.

https://xdaforums.com/redmi-note-3/how-to/guide-enable-4g-lte-setting-t3472069

Or maybe you know how to change network type using shell?

About latest boot image, i feel the charging process is so slow and the discharging is too fast. Maybe just my imagination.
[Redmi Note 2 Android Development] jajk:
[MENTION=3885679]acestars[/MENTION] There is more chance of finding the mod here:

https://translate.googleusercontent...=19540&usg=ALkJrhjHPmVTlnoT9XkDnOygBBJTQaYXiQ

There are a few authors of such mods that make for most EU ROM versions shortly after they come out.

There is nothing in the latest boot images that would alter the charging rate or battery consumption. Maybe your battery is about to become pregnant like mine? Still waiting for it to give birth to a better brand phone or incinerate my house / car / boat or pocket while I wait forever for new batteries that probably got detonated by a bomb squad at some airport facility.
[Redmi Note 2 Android Development] DarthJabba9:
Is 7.2.9 itself any good? I always update to your latest boot images - but I have one question; are Android security patches made in the kernel, or in the kernel+libs or in libs only? Security patches are the main reason why I would want to change my ROM or kernel from 61110, which I find pretty stable and good for battery (with SkinnyPro boot images and modem p37).
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] Some parts of the security updates are sometimes in the kernel, sometimes not. There appears to be no downside in keeping the kernel up to date - I am always on the lookout for increased background activity or memory footprint etc. but the kernel itself contributes nothing more than previous ones. The ramdisk init scripts on the other hand have increased the number of services but I skinny them back into non-existence unless they contribute something useful (which has never been the case so far). 61110 is indeed a good one - almost on par with 7550 which I am back on again;) The Nov security update did some nasty stuff to 61117 so it had to go. I think the latest ROMs are just testing a few more data harvesting and monetizing techniques - no benefit to be had - just more layers of crap to remove. A lot of the code change in MIUI is making it less legacy KitKat and more legacy Marshmallow to suit every phone other than RN2 or RN3:rolleyes:

I had a very good battery cycle today on 7550 + p37 modem. I think the connectivity is better with p58 and battery was better than p51. It is too close to call whether p37 outdoes p58. I suspect it will depend on carrier frequencies and signal quality whether or not you see better battery either way.
[Redmi Note 2 Android Development] DarthJabba9:
[MENTION=5952980]jajk[/MENTION] You must love your 7550.:D In my lineup, p37 clearly beats p58 in terms of battery. However, I agree that connectivity seems slightly better with p58; but there are no connectivity issues with either.
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] Yes, I keep going back to 7550. It is better than most multi-language modded versions for some reason - maybe because it used different tools to deodex, decompile and recompile with languages and maybe MR team had some switched on people at that time? MR7550 was a port from RN3 Pro (Qualcomm not MTK) so maybe it has premium code reserved for Qualcomm devices:laugh:

There is nothing in later MIUIs that help me but there are plenty of things that annoy me after a while so I gravitate back.

I notice p37 looses signal in fringe areas where p58 will hang on just that bit more and make better decisions about when to renegotiate. I would recommend p37 for battery and p58 when performance in weak signal conditions has overriding importance. I was referring to connectivity to mobile networks (not to other devices) ;)
[Redmi Note 2 Android Development] DarthJabba9:
Yes, I know!
[Redmi Note 2 Android Development] shaawjee:
Where to download 7550?
[Redmi Note 2 Android Development] thomasnsr:
[MENTION=5952980]jajk[/MENTION] thank you very much for this excellent project. i am currently using your Skinny_Pro_7112_Tweaked-v26.img and all is fine. i am using gyovany96 skinny 8.1.3 V2 (modem p37). will give update in a few days. appreciate these fantastic work that you guys contribute here. Thanks to you, i still enjoy using my RN2.:good::good::good:
[Redmi Note 2 Android Development] jajk:
[MENTION=5119872]shaawjee[/MENTION] Which version? I am referring to MR 7.5.50 but there are also 2 factory versions called 7.5.50 but these are likely to be more similar to 7530. I can't remember where I got it from - Google and ye shall find (maybe).

Or try one of these links.....

http://4pda.ru/pages/go/?u=https://...684153&usg=ALkJrhhgThaYrY-GYw6sdblWjvmMWM1m4Q

http://4pda.ru/pages/go/?u=https://...684153&usg=ALkJrhhgThaYrY-GYw6sdblWjvmMWM1m4Q
[Redmi Note 2 Android Development] shaawjee:
Yes i mean that MR 7.5.50.
[Redmi Note 2 Android Development] jajk:
[MENTION=5119872]shaawjee[/MENTION] Then the links in previous post will lead you to happiness;)
[Redmi Note 2 Android Development] رامز:
sorry for the noob question but your "premade" file doesn't seem to have a blank line at bottom and do we've to (un-hash) some lines to enable features??
[Redmi Note 2 Android Development] anguslaw:
hi, jajk, may I ask where can I download the modem p37? I have downloaded the rom you posted a few post ago, then, I am wondering where to get the modem p37.

In addition, which version of boot image should I use if I flash the v7.5.5 rom. should I use the latest boot image?

thanks
[Redmi Note 2 Android Development] jajk:
[MENTION=5535456]رامز[/MENTION] The premade file has most lines hashed because the setting is already made in the boot.img. You would only unhash the lines that you want to alter the values away from my default values. The exceptions are that I leave it to you to choose to limit the maximum cpu and gpu frequency and gpu boost plus you can choose which boot-time services you want to stop.

[MENTION=399136]anguslaw[/MENTION] All (useful) modems here: https://xdaforums.com/redmi-note-2/development/best-sot-t3434915

Skinny_Pro_7530_Tweaked-v26.img is the one I would use although Skinny_Pro_729_Tweaked-v26.img will work as well.
[Redmi Note 2 Android Development] nggies:
Hi [MENTION=5952980]jajk[/MENTION], really nice mod and just want to small question for you. This mod can be full implemented for other xiaomi device like redmi pro (this device really need developer) or just half? thanks
[Redmi Note 2 Android Development] jajk:
[MENTION=4412739]nggies[/MENTION] Devices with Qualcomm SoC already have a much cleaner boot.img so do not benefit as much from the mods I do for RN2 and there are devs making modified kernels for most of these devices (of varying quality).

If there is no decent custom kernel for your device, you can add init.d support to stock by the top-secret method of adding a few lines to /system/etc/partition_permission.sh (must have root). The basic implementation adds these lines:

# init.d support
service runparts /system/xbin/busybox run-parts /system/etc/init.d
class core
user root
group root
oneshot

Now you need to create a /system/etc/init.d folder with 0755 permissions and add a script with 0755 permissions also.

Do not share this trick with anyone.
[Redmi Note 2 Android Development] nggies:
Thanks again [MENTION=5952980]jajk[/MENTION].. unfortunately redmi pro using MTK helio 25..

Made scrip on init.d folder using file on first page?

hihi ok I wan't tell any one..
[Redmi Note 2 Android Development] DarthJabba9:
You're so funny! :D

---------- Post added at 08:09 AM ---------- Previous post was at 07:59 AM ----------

I wonder why this method is not more popular? It seems more straightforward than unpacking, editing, and repacking boot images!
[Redmi Note 2 Android Development] jajk:
[MENTION=4412739]nggies[/MENTION] You can use that init.d script as a starting point. Not all lines will work without further mods to the boot.img but you can see what works using Kernel Adiutor and by issuing the getprop command in terminal to see what boot services are running. You will have to choose frequencies that suit your SoC, not the ones for MT6795.

[MENTION=5850987]DarthJabba9[/MENTION] Most ramdisk init scripts seem to intentionally step out to an externally accessible script so smart people can inject something back into the init process. It has been known about and used for many years but is too boringly simple to gain any traction. Now if we could make a Playstore app that cannot be stopped to get init.d support and maybe download a ton of advertising to go with it, give it a name like Kernel Interceptor Pro, thanks and praise would be overwhelming. But a simple edit? Even though it is clever to the point of being downright sexy, it never catches on:rolleyes:
[Redmi Note 2 Android Development] DarthJabba9:
Now, I know for sure that tou are really really funny! But I like the idea of a

Kernel Interceptor Pro

app. Perhaps I will write one myself. :victory:
[Redmi Note 2 Android Development] jajk:
Skinny_Pro_7216_Tweaked-v26.img uploaded so stop complaining already.

No changes apart from rebasing on 7.2.16

[MENTION=5850987]DarthJabba9[/MENTION] Make sure it has at least 10 running services, 150 broadcast receivers and checks every 5 seconds for an active network connection to download new ads. Oh, and making sure the phone will never sleep again would be a handy feature:good: I think I just described any Google app:eek:
[Redmi Note 2 Android Development] DarthJabba9:
[MENTION=5952980]jajk[/MENTION] Sad, isn't it? But some of us are stuck with Play services and such ... :(
[Redmi Note 2 Android Development] Gyovany96:
[MENTION=5850987]DarthJabba9[/MENTION] I read something on XDA that trying to get rid of Gplay Services and related apps ! I think it was called ApkUpdater or something like that..of course it is in the Beta stage.
[Redmi Note 2 Android Development] asusm930:
Hey there, annoying redmi note 4 user here again :D

How do I check the supported GPU speeds for my device? I'm trying to limit the GPU speed on my phone. Thanks in advance
[Redmi Note 2 Android Development] DarthJabba9:
Yes, I read it too. But I need Gmail, GDrive and Calendar - so I am not sure that it will help me.
[Redmi Note 2 Android Development] Iliyena:
Most important! Make the app blame another app for the new never-sleep-feature just to get some more days of joy before it's uninstalled by the "advanced users". Oh! A speedcharge-mode is important as well, one that change the lockscreen and decreases the device "heartbeat" to... Nothing ;)

While at it why not actually implement something taking advantage of the never-sleep, AOD! But don't make it so you can double tap to wake or gesture stuffs, only for keeping it on to let people without "tapjacking"-protection follow some ads :)
[Redmi Note 2 Android Development] jajk:
[MENTION=7442305]Iliyena[/MENTION] Someone should start a new thread "The anatomy of the perfect app":laugh:

[MENTION=2078083]asusm930[/MENTION] try taking a dump here: /proc/gpufreq/gpufreq_opp_dump

[MENTION=5850987]DarthJabba9[/MENTION] Let go and you will feel a burden lifted. No more excuses.....:angel:
[Redmi Note 2 Android Development] DarthJabba9:
I shall ponder over it ;)
[Redmi Note 2 Android Development] nggies:
[MENTION=5952980]jajk[/MENTION], thanks a lot. Will try this trick.