6 way Advanced Power Menu for MIUI8 - Redmi Note 2 Android Development

This work is adapted from info that has been around for some time - originator unknown. So thanks to whoever did the original groundwork:good:
There are 2 files that need to be replaced - backup of originals is your responsibility
Unzip the files first - they are only zipped to allow upload to XDA.
File 1. powermenu gets copied into /system/media/theme/default overwriting the original
This file is common to all MIUI8 versions.
File 2. android.policy.jar gets copied into /system/framework overwriting the original
This file is compiled for each different MIUI version. I will add files for recent and popular versions with the ROM identifier added to the zip filename.
If you want this for a particular ROM, provide me with the version i.e. MIUI EU 61229 and the android.policy.jar from the ROM. No guarantees that I will do it of course
Sorry - I can not do it for odexed ROMs which will have around a 309 byte file size. This means original factory ROMs are out of the question.
MR, EU and SU versions are all de-odexed so no problems with them.

Can you add manual method to edit android.policy.jar?

works fine, thanks. (Es File Explorer won't work, so use Root Explorer)

Very useful!!! Thanks. No need to reboot.
Inviato dal mio Redmi Note 2 utilizzando Tapatalk

@vetriolo You don't need to reboot to see the new menu but you need to reboot to get the new android.policy.jar into dalvik.
@barni090 Why would ES File Explorer not work unless it hasn't got root?
@Dinolek Too much like hard work to write up a how to so I have attached the edited file that goes into android.policy.jar. It is advisable to do a file compare first because we are never sure what changes occur at every new version. So far, in what I have processed, the files start off identical.

I don't know, wasn't working, maybe some problems with my device.

The 8130 jar file plus powermenu doesn't work on my EU-8130. Before rebooting, you just get the 4 icons with no text, and, after rebooting, you get nothing at all (device just reboots if you hold the power button down for long enough). The original 8130 files are in the attached.

@DarthJabba9 Double-checked the original mod - it is correct. Haven't tested your installer but put the appropriate files in the appropriate places for you to try again.

jajk said:
@DarthJabba9 Double-checked the original mod - it is correct. Haven't tested your installer but put the appropriate files in the appropriate places for you to try again.
Click to expand...
Click to collapse
Installing your zip via TWRP did the job. But if the files are exactly the same, why wouldn't a manual installation work, but a TWRP install works?

DarthJabba9 said:
Installing your zip via TWRP did the job. But if the files are exactly the same, why wouldn't a manual installation work, but a TWRP install works?
Click to expand...
Click to collapse
Same here.. integrated this mod into ROMs and Stable 8.1.3.0 it's the only one that doesn't work. Pressing Tap to Recovery in Powermenu does nothing..

@Gyovany96 @DarthJabba9 I have re-uploaded the file for 8130 just in case there was some corruption - decompile -recompile is not 100% perfect for MIUI stuff. Try again on the fresh copy and see if that does the job.

jajk said:
@Gyovany96 @DarthJabba9 I have re-uploaded the file for 8130 just in case there was some corruption - decompile -recompile is not 100% perfect for MIUI stuff. Try again on the fresh copy and see if that does the job.
Click to expand...
Click to collapse
Now it works just fine ! Thanks again:good:

EU 61117 version attached

@gyovanny96 EU 7.2.9 version attached

MR 7550 version attached with added goodness. All debugging and logging of included services is disabled. Reboot may be slow as Dalvik rebuilds.
Remember to pick up the powermenu file from O.P and put it where it needs to be

7.3.16 EU + Spanish strings
Decompress powermenu.zip and replace in /system/media/theme/default
Replace android.policy.jar in /system/framework
↓See attachments↓

Deic said:
Decompress powermenu.zip and replace in /system/media/theme/default
Replace android.policy.jar in /system/framework
↓See attachments↓
Click to expand...
Click to collapse
I have created a flashable zip of this (and also of the stock files in case one needs to revert to stock). I am happy to post if anyone is interested.

7.3.23 EU
Remove .zip of powermenu.zip and replace in /system/media/theme/default
Replace android.policy.jar in /system/framework
↓See attachments↓
I will make a script or flashable zip to patch your android.policy.jar and powermenu, to not need to download patched ones by me (and I can rest xd)...

Deic said:
I will make a script or flashable zip to patch your android.policy.jar and powermenu
Click to expand...
Click to collapse
A script would be nice! :fingers-crossed:

@Deic Thanks for adding updates to this thread:good:

Related

[MOD] Electron Beam / CRT screen off animation for JVP + PNGs optimization

CRT screen off animation for JVP for odexed (stock) and deodexed ROM's.
UPDATE 14.06.2011:
- /framework-res.apk/resources.arsc file isn't compressed (like in stock Samsung ROM's)
- optimized all framework PNGs (with optipng) in framework-res.apk and twframework-res.apk (lower memory footprint, maybe slightly faster)
- autofixing /system/framework permissions in CWM package
10.06.2011:
- fixed CWM package
- enabled animation in /framework-res.apk/res/values/bools.xml
All .apk files all zipaligned, like in stock ROM
Installation:
Download zip and apply via CWM:
CRT_screen_off-optimized-JVP-CWM3-proper.zip (5.71 MB)
OR (if you don't have CWM):
Download framework-res.apk and replace it in /system/framework/ directory by Root Explorer or adb shell. You should have ~6MB free space on /system partition before operation (delete some unneeded apps from system using Root Explorer or nitrality).
framework-res.apk (7.95 MB)
After installation you have to open Settings => Display => Animations and turn them ON to get it working Also don't change speed of animations by Spare Parts or nitrality - it will disable CRT screen off.
thank you so much that was prety fast
BTW what is electron beam ?
can you provide pics pls?
does not work, says installation aborted.
Tested? I Made the same and gives me a bootloop
Edit : cwm3 package Not working.
Sent from my GT-I9000 using Tapatalk
rhadoo04 said:
does not work, says installation aborted.
Click to expand...
Click to collapse
Same here.
Deodexed/zipaligned and dark core kernel 2.7.2 here.
Sorry didn't have CWM3 to test (CF-Root wasn't finished), and there was a problem with update-script. Here's the proper package, should work now:
--links in first post--
Tested on CF-Root for JVP, it works
BTW what is electron beam ?
Click to expand...
Click to collapse
It's other name for CRT screen off animation
Tested? I Made the same and gives me a bootloop
Click to expand...
Click to collapse
Using this framework-re.apk on my phone and it works
Bo$s said:
Sorry didn't have CWM3 to test (CF-Root wasn't finished), and there was a problem with update-script. Here's the proper package, should work now:
CRT_screen_off-JVP-CWM3-proper.zip (5.4 MB)
Tested on CF-Root for JVP, it works
It's other name for CRT screen off animation
Using this framework-re.apk on my phone and it works
Click to expand...
Click to collapse
thanks for the new file, gona try it!
Now i can begin with my new theme for JVP.
edit: Working as i should now, thanks!
CRT animation works a treat on JVP and SpeedMod 15H.
Thanks for doing this so quickly
I'll have to try this later
thanks, working like a charm
thanks great work!!! congratulation
can you please made like this mod for JPJV6 or tell me how to do it
suwidah said:
thanks great work!!! congratulation
can you please made like this mod for JPJV6 or tell me how to do it
Click to expand...
Click to collapse
Download apk_manager 5.0 beta (somewhere in apk_manager thread).
Download apktool 1.4.1 (or newer), extract it, replace apktool.jar in apk_manager/other folder with downloaded version.
Pull framework-res.apk and twframework-res.apk from /system/framework/ and put them in apk_manager (modding folder).
Open apk_manager, choose framework-res.apk as project, decompile it with dependency, as dependency give twframework-res.apk.
After decompile go to projects/framework-res.apk/res/values/.
Open bools.xml in notepad, change value of bool name='config_animateScreenLights' from 'true' to 'false' and save it.
Go to apk_manager, compile, answer Yes for question about system file, answer Yes in next question, go to keep folder, remove resources.arsc, then hit enter in apk_manager.
After successful compile you can choose zipalign options.
You will find unsignedframework-res.apk in modding folder, rename it to framework-res.apk and put in /system/framework/.
Pretty easy
WOW!! very useful and nice step by step.
Thanks Mr. Bo$s I will use your guide after I receive my SGS from repair in Sunday, I will tell you if I successful in this
no I haven't successful it's keep restart on boot animation:confused
I KNOW it says 'CWM3', but will it work with the 'CWM2.5' that comes with speedmod's new kernel?
thx for the response...
WORKED LIKE A CHARM!!!
I ended up using "Super Manager" (free) from the market to install the apk file instead of messing with CWM.
Thanks a lot for that!!
Raman's deodoxed XXJVP with Speedmod kernel k15-t6
DanDroidian said:
I KNOW it says 'CWM3', but will it work with the 'CWM2.5' that comes with speedmod's new kernel?
thx for the response...
Click to expand...
Click to collapse
It should work with CWM 2.5 too.
Sent from my GT-I9000 using Tapatalk
Bo$s said:
Download apk_manager 5.0 beta (somewhere in apk_manager thread).
Download apktool 1.4.1 (or newer), extract it, replace apktool.jar in apk_manager/other folder with downloaded version.
Pull framework-res.apk and twframework-res.apk from /system/framework/ and put them in apk_manager (modding folder).
Open apk_manager, choose framework-res.apk as project, decompile it with dependency, as dependency give twframework-res.apk.
After decompile go to projects/framework-res.apk/res/values/.
Open bools.xml in notepad, change value of bool name='config_animateScreenLights' from 'true' to 'false' and save it.
Go to apk_manager, compile, answer Yes for question about system file, answer Yes in next question, go to keep folder, remove resources.arsc, then hit enter in apk_manager.
After successful compile you can choose zipalign options.
You will find unsignedframework-res.apk in modding folder, rename it to framework-res.apk and put in /system/framework/.
Click to expand...
Click to collapse
after all that make reboot intio cwm recovery and take fix permissions
most of bt wifi drain or any problems come from noobish copying over files via adb, root explorer, cwm flashables that are not setting proper permisions and owners for files... fix permisions should be used 'just in case' after such interference with system
Thanks, works like a charm!
works like a charm, thanks.

A guide to rom cooking, a bit of theming and a bit of modding!

Although it does seem rom cooking is difficult, in fact, it's easy to create a simple rom, with everything you want in it. There are still a few things missing which i'll add in the next few days
Here it goes....
Lets start with a bit of theory:
Needed programs:
Cygwin
7zip
Baksmali/smali
Apk manager
Text editor (notepad ++ for example)
SGS kitchen (https://github.com/rmgeren/Android-Kitchen/tree/galaxy_s)
Autosmali: http://forum.xda-developers.com/showthread.php?t=970728
First of all, download the cwm stock deodexed rom from here http://forum.xda-developers.com/showthread.php?t=948790
This will save a lot of time since you wont need to deodex, nor to extract /system from factoryfs.rfs
There are three folders inside:
META-INF - here is where the updater-script and updater-binary are located. This files are very important, because they are in charge of making the phone copy files from the zip, symlinking etc...
updates - here is were the kernel (zimage) and modem (modem.bin) are located
system - here are all libs, apks and things that will be copied to /system
Explanation of some directories in /system
System/app:
Here are all system apps
System/framework:
By modding files here, you'll be able to theme.
System/lib:
Here are libs needed for many things to work.
System/Build.prop:
Mod this line to change the name of the rom shown in about ro.build.display.id=
System/media -
Ringtones, bootanimations and othet things are stored here
System/etc:
Here are some files you might want to mod, like hosts ( for adfree), files for gps, and you can create an init.d folder for scripts that you want to get executed at startup (if kernel supports it)
Those are all the main directories you'll need to mod
Setting up the kitchen
Download cygwin and install it. Then download rmgeren's sgs kitchen. Create a folder called kitchen wherever you want and copy all files of rmgeren's github into it.
Create a folder inside kitchen called WORKING_111111_111111
Extract the zip of the stock deodexed rom to kitchen/WORKING_111111_111111/
In case you are having any problems with it, please do take a look at this post : http://forum.xda-developers.com/showpost.php?p=5626300&postcount=3
Cleaning up system/app
I usually delete this apks:
Aldiko
Layar
Infoalarm
Dualclock
Protips
Samsung widgets
Minidiary
Writeandgo
Phonesetupwizard
Days
Pressreader
APK Modding:
For theming use method 1, for modding xml use method 2
Method 1 - right click on the apk and select 7zip and extract in /* (* is the name of the apk)
Open the folder, then res, then drawable-hdpi, and then mod the pngs you want.
Once yoy're finished, open the apk with 7zip and replace res/drawable-hdpi with the new one
Method 2-
Place the apk inThe apk modding folder (apk manager)
Open script, choose a project to work on (22 in windows), then decompile (for some apks you'll need dependencies).
Go to projects and the folder of your apk, then mod any xml you need to mod
Recompile it, it will ask if it is a system/app. Just answer Y or N.
You'll be asked another thing, type Y, press enter
Then it'll say something about a keep folder, go to the keep folder and look for the xmls you modded and delete them. In case you cant find one, delete the ones you can find and delete resources.arsc
Now press enter
You'll have an unsigned*.apk just rename it to the old ones name.
Theming
Same process that you use for apks, but this time you mod twframework-res.apk and framework-res.apk, you also mod systemui.apk for status bar
Some xml and pngs you might want to mod (framework-res.apk)
Xml:
Res/values/styles.xml
Res/values/bools.xml
Res/drawable/progress_horizontal (for colour of this bar View attachment 637481)
Png's (drawable-hdpi)
default_wallpaper.png - it's the default homescreen wallpaper
For overscroll glow:
overscroll_glow.png
overscroll_edge.png
For this (the bar you move) View attachment 637482:
seek_thumb_normal.png
seek_thumb_selected.png
seek_thumb_pressed.png
There are many more, but this are a few that are quite useful. You can easily find out about any, but in case you can't, you can just ask here and i'll be glad to answer
If you want to pre-install a theme, just copy the files of the theme into the correct places. For example system/framework to system/framework
For ctr off animation, decompile framework-res.apk, go to res/values/bools.xml
and in the line: config_animateScreenLights, turn it to false. If you want a more step by step guide, try this guide: http://forum.xda-developers.com/showthread.php?t=977501
Using baksmali/smali
To mod classes.dex, i use baksmali/smali
I use ubuntu for this, but you can use another linux distro if you want.
This is what i do in Ubuntu:
Steps to follow:
1. Get the .jar you want to mod. framework.jar for example
2. Open it and get classes.dex
3. I usually copy it to the desktop
4. Open terminal
5. Type sudo su and then your password
6. then cd /home/Coldflid/Desktop ( type the location where you have copied it).
7. java -jar baksmali-1.2.6.jar classes.dex
8. Once you've modded it, type java -jar smali-1.2.6.jar (name of the output folder)
9. A new .dex file will be generated, just replace the old one with the new one
This is what i do in windows
1. Grab the jar you want to mod
2. Open it with 7zip and get classes.dex
3. Copy classes.dex to the same folder autosmali is in
4. Run baksmali.bat
5. Make the desired changes
6. Create AutoSmali_In folder and place the folder of the decompiled classes.dex inside
7. Run smali.bat
8. Rename AutoSmali_Out.dex to classes.dex and replace the old one in the .jar with the new one (using 7zip)
Finishing the rom
Now that you've finished with modding, theming etc... Now replace apks with new ones, add a few that you want, and copy libs if needed.
You can add ringtones from other phones to system/media, bootanimation of sgs ii etc...
Replace the kernel with the kernel you like the most, and the modem with the one that works best for you.
Now it's time to zipalign. Open cygwin, type cd c:/ * (where * is where you have the kitchen). Press enter
type ./menu, then press enter
Now you just select the zipalign option.
When it finished, select all three folders of the rom and right click, 7zip, add to file, zip, name it and then you're good to go.
Install it using cwm.
If you want to make it flashable through odin, follow darky's guide:
http://forum.xda-developers.com/showthread.php?t=960946
If this was useful, hit the thanks button
Hope you like it.
If there's something wrong, tell me and i'll correct it. Also post if it was useful
Thanks
rmgeren for sgs android kitchen
[Ramad] for stock deodexed roms
creator of baksmali/smali and the creator of cygwin
Daneshm90 for apk manager
Thanks to dsixda for cygwin faq, and to gazza1988 for suggesting the idea of including it in this post
Thanks to Daneshm90 for the ctr off animation tutorial i've linked to in this thread
schmittx for autosmali: http://forum.xda-developers.com/showthread.php?t=970728
Reserved...
thanks alot...will try this so how can we make wipe and non wipe? is there a way?
zaanrider said:
thanks alot...will try this so how can we make wipe and non wipe? is there a way?
Click to expand...
Click to collapse
You need to modify the updater-script
Enviado desde mi GT-I9000 usando Tapatalk
There's option for Wipe state in kitchen right?
Not interested in doing this myself, but a very informative guide, much knowledge gained......only one critisism....how about some credits ie ramad for deodexed etc etc....once again many thanks
Insanity cm 015/glitch
Thanks for the guide. Always wanted to try, now this guide make me want to do it. Thanks gain Coldflid! You are Awesome!
Hi Tweaky,
I am not a ROM cooker but hopefully I can pass info to UTO Kitchen. A lot of devs like to add "overscroll glow". Can you tell us how to revert this if possible?
I for one like the default overscroll effect like this http://www.youtube.com/watch?v=dOyWCDhlxv8
And if it is possible I would like to pass the information to UOT.
Thanks.
Hello.. I did exactly what you said in OP. Can you assist me, what if I've to add custom kernel in my custom ROM? There's option for it in Kitchen. I placed zImage into working folder, Kitchen moved it to /updates. I packed the files in zip using menu BUILD ROM in kitchen. I got bootloops..
Can you help me please?
Very nice Cold, GJ m8. Helped me a lot
cenonmin said:
Hi Tweaky,
I am not a ROM cooker but hopefully I can pass info to UTO Kitchen. A lot of devs like to add "overscroll glow". Can you tell us how to revert this if possible?
I for one like the default overscroll effect like this http://www.youtube.com/watch?v=dOyWCDhlxv8
And if it is possible I would like to pass the information to UOT.
Thanks.
Click to expand...
Click to collapse
overglow sux
Fr4gg0r said:
overglow sux
Click to expand...
Click to collapse
Same here I never really liked it.
Rahulrulez said:
Same here I never really liked it.
Click to expand...
Click to collapse
Fr4gg0r said:
overglow sux
Click to expand...
Click to collapse
I dislike it in samsung roms, but i do like it in cyanogenmod.
cenonmin said:
Hi Tweaky,
I am not a ROM cooker but hopefully I can pass info to UTO Kitchen. A lot of devs like to add "overscroll glow". Can you tell us how to revert this if possible?
I for one like the default overscroll effect like this http://www.youtube.com/watch?v=dOyWCDhlxv8
And if it is possible I would like to pass the information to UOT.
Thanks.
Click to expand...
Click to collapse
To get rid of it, get classes.dex from the framework.jar of the rom you're running that has it, and get classes.dex from stock framework.jar
Using baksmali, decompile classes.dex from both.
Then get the overscroll glow source. Open the decompiled classes.dex folder of the stock one and the source. Find the files that have been modded and copy them to the folder of the decompiled classes.dex of the rom that has the overscroll glow.
Then use smali to compile it back to classes.dex and then copy it into framework.jar
This will become easier as soon as i post the baksmali/smali guide.
Anyway, i'm going to upload the JVP original scroll source.
Rahulrulez said:
Hello.. I did exactly what you said in OP. Can you assist me, what if I've to add custom kernel in my custom ROM? There's option for it in Kitchen. I placed zImage into working folder, Kitchen moved it to /updates. I packed the files in zip using menu BUILD ROM in kitchen. I got bootloops..
Can you help me please?
Click to expand...
Click to collapse
I wouldn't use the build rom option, much better if you select the folders and make the zip with winrar or 7zip.
Just extract ramads deodexed stock rom zip, and change the zimage in /updates, then compress META-INF, system and updates into a zip and you have ramad's stock deodexed rom with the kernel you chose. Same process for every rom (location of zimage may vary though, some devs tend to place zimage in other folders)
somberi said:
Thanks for the guide. Always wanted to try, now this guide make me want to do it. Thanks gain Coldflid! You are Awesome!
Click to expand...
Click to collapse
Thanks. there's no problem in trying and seeing what you can do, you may prove to be the best rom cooker
slaphead20 said:
Not interested in doing this myself, but a very informative guide, much knowledge gained......only one critisism....how about some credits ie ramad for deodexed etc etc....once again many thanks
Insanity cm 015/glitch
Click to expand...
Click to collapse
Will add the credits as soon as i add the baksmali/smali part
Rahulrulez said:
There's option for Wipe state in kitchen right?
Click to expand...
Click to collapse
Yup, but it'll work on update-script only, (amend scripting) which you can't use in older versions than cwm 2.x
Wipe/no wipe is just if it deletes /dbdata and /data or not.
Vertumus said:
Very nice Cold, GJ m8. Helped me a lot
Click to expand...
Click to collapse
Thanks, glad it was useful
Thing's i'll add today:
Baksmali/smali tutorial
I'll upload META-INF no wipe and META-INF wipe that you can use
Modding the updater-script tutorial
So wiping data means only recursive deletion of /system, /cache, /data and datadata. am i right??
One more thing. when i zip the rom contents using winrar or 7zip, what compression settings should be used?
Rahulrulez said:
So wiping data means only recursive deletion of /system, /cache, /data and datadata. am i right??
One more thing. when i zip the rom contents using winrar or 7zip, what compression settings should be used?
Click to expand...
Click to collapse
Wiping data means wiping /data (where apks you've installed are stored) and /dbdata (where the data of the apps is stored)
Just use winrar, select the folders, add to file, and you type a name and in file format you choose zip
Hi i have done all my modding and themeing etc, but as i follow instruction to zipalign
i do cd c:/kitchen then ./menu (as instructed) and all i get is constant error messages
ie scripts/check_binaries: line 12: clear: command not found
lots of stuff about asking for help for htc android kitchen
ignore and proceed anyway? y or n
i type y and then get another one saying "gcc" is not installed
y or n to continue?
then perl, then wget, then cpeo, then i get a menu, should i be getting those error messeages and is it safe to continue?
EDIT can i suggest the OP links to this post as it contains info on how to setup the rom kitchen properly, and avoids errors like the ones i am experiencing,
Hey awesome guide. Have been trying to learn.
Heres my question if i wanted to use a premade JVP theme such as crysis or any of those that works on deodexed ROMS such as the ones from that section how would i do that?
Thanks and awesome guide
EDIT: Alright I got it booting finally I just have 4 more questions and then Im done.
1. For the captivate port how did y'all fix the home button fix, I have a flashable zip I created that fixes the home button but I know that used to be a problem on the old i9000 2.3.3 ROMs, so I'm just wondering how you implement that
2. How do you implement the CRT Screen Off Animation
3. If I wanted to use this theme http://forum.xda-developers.com/showthread.php?t=1083188 in my ROM how do I implement it into the ZIP?
THank you so much!
I want to integrate TalonDEV modem in JVP..
I found this in kernel updater-script of JVP zip (CWM flashable)
Code:
show_progress(0.200000, 80);
ui_print(" ");
ui_print("Installing Primary Kernel...");
run_program("/tmp/redbend_ua", "restore", "/tmp/zImage", "/dev/block/bml7");
show_progress(0.200000, 90);
ui_print(" ");
ui_print("Installing Secondary Kernel...");
run_program("/tmp/redbend_ua", "restore", "/tmp/zImage", "/dev/block/bml8");
Whereas, in TalonDev modem's updater-script, it is written like this -
Code:
set_perm(0, 0, 0755, "/tmp/bmlwrite");
ui_print("Flashing kernel...");
run_program("/tmp/bmlwrite", "/tmp/zImage", "/dev/block/bml7");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
ui_print("Done. Please reboot.");
Somehow, I'm finding it difficult to know the different between these two. There's redband_ua in ROM's updater-script. Is it necessary? Or I can replace it with the script from Kernel's updater-script?
Please tell me meaning and difference between following lines -
run_program("/tmp/bmlwrite", "/tmp/zImage", "/dev/block/bml7");
and
run_program("/tmp/redbend_ua", "restore", "/tmp/zImage", "/dev/block/bml7");
run_program("/tmp/redbend_ua", "restore", "/tmp/zImage", "/dev/block/bml8");
totally confused in bml7 and bml8. Kernel needs to be restored in both bml7 and bml8? Because in TalonDev's kernel installation script, it is given ONLY bml7
Please help me
Is there any way to run smali, baksmali on windows?
Rahulrulez said:
Is there any way to run smali, baksmali on windows?
Click to expand...
Click to collapse
Yes. Works a charm. Syntax is:
java -jar baksmali.jar
java -jar smali.jar
Obviously you need java installed

[HOW TO] For beginner| Deodex and Odex back | 3 Way Ext. Power Menu| CRT-OFF| MWC

This kitchen is for begin easily with moding.
this is written for oxeded rom
Remember you need custum kernel (latest siyah or boeffla or perseus......... )
Why I do it? Coz when I flash a new rom I want extended power menu, CRT and MWC immediately so I decide to learn how to do.
This kitchen is done specially for this 3 mod but the scripts are very simple and you can easily modify them.
remember you need custum kernel (latest siyah or boeffla or perseus... )
You must have all drivers installed on your PC, ADB, 7zip, java…
Your phone must be rooted + busybox installed …
Be sure your firewall does not block ADB…
When you install a new rom unzip the archive WORK1.7z and change the name example WORK_XXEMA2 connect your phone then open then follow English menu.bat
You have a script in French
Forgive my English…
I am working under seven 64 bits… I not test it in another system…
If this post helps you push the thank button
You can use it like you want but don’t forget to put a link to this post.
script updated now u can reoxed without quitting first script
Let’s see the job:
Launch english menu (english) or menu (french)
let the script opened all long your mod you just follow all steps
for 1,16 and 17 you must plug your phone
The number 1 is very important without it you can do nothing…
1 = download from phone all the framework, FlashBarServices.apk and init.rc.
Init .rc is saved as init.doc for you open it and manually extract the BOOTCLASSPATH and write it in framework\BOOTCLASSPATH.txt
2= copy android.policy.odex and services.odex and FlashBarServices.odex to the mod directory
3= baskmali android.policy.odex to deoxeded it
4= edit GlobalActions.smali in android.policy (if you search it you’ll lose time!)
5= edit GlobalActions$SinglePressAction.smali in android.policy
6 = edit PhoneWindowManager.smali in android.policy
7 = copy the 3 globalactionsfiles files to android.policy for mod extended power menu
8 = smali android.policy to get classes.dex (the classes.dex is incorporated in the jar) and copy originals files and moded files to auto oxeder
9 = baskmali services.odex to deoxeded it
10 = edit PowerMangerService$ScreenBrightnessAnimator.smali in services
11 = edit MultiWindowManagerService.smali in services
12 = smali services to get classes.dex and copy originals files and moded files to auto oxeder
13 = baskmali FlashBarServices.odex to deoxeded it
14 = edit FlashBarInfo.smali in FlashBarServices
15 = smali FlashBarServices to get classes.dex and copy originals files and moded files to auto oxeder
16 = re-oxed an framework exemple android.policy.jar or Services.jar and send it to phone (plug the phone and be sure your firewall allow ADB)
17 = re-oxed an apk exemple FlashBarServices and send it to phone (plug thephone and be sure your firewall allow ADB)
echo 18 quit
After you connect your phone then open auto oxeder and you run the script (it’s untouched coz perfect) and you follow instructions it’s very simple.
Advices :
do a nandroid backup before all !!!
If you have a box like this
Code:
[LEFT]#getter for: Lcom/android/server/PowerManagerService;->mScreenBrightnessHandler:Landroid/os/Handler;
invoke-static {v7}, Lcom/android/server/PowerManagerService;->access$7300(Lcom/android/server/PowerManagerService;)Landroid/os/Handler;
move-result-object v7
const/16 v9, 0xa[/LEFT]
Push Ctrl then click in the box for select t all or you will just select the visible part of the text.
In documentation.7z you have copy of all mod, an init.rc saved as init.pdf inside you have BOOTCLASSPATH in red, you must remove all path in this text (system/framework) and save the result in BOOTCLASSPATH.txt (you have an exemple of BOOTCLASSPATH.txt)
MWC you take MWC apk here LegendK95 [MOD][4.1.2][Deodex/Odex]MultiWindow Complete Control {Deodex XXELLA Added!}
if u have trouble with Adb didable firewall to see if it is responsable
when you want to mod your phone remember that you often need custum kernel coz stock kernel not allow you to do what you want
Hope I forget nothing. Good moding
CREDITS:
THANKS TO ALL WITHOUT YOUR WORK NO KITCHEN
Sicopat [HOW TO][Windows] Manually Deodex and Odex back
Alkhafaf [UTIL][4/1/13] Auto Odexer Script- Now much easier to mod or theme your odex files
Sorg [Manual] Proper CRT-OFF for JB
magn2o [MOD/HOWTO] [UCALG1/UCALH1] Extended Power Menu
Cristiano Matos [HOW TO] AOSP Lock + Toggle| 3 Way Ext. Power Menu| CRT-OFF| Long Menu Press to Kill
LegendK95 [MOD][4.1.2][Deodex/Odex]MultiWindow Complete Control {Deodex XXELLA Added!}
DOWNLOAD
documentation.7z
WORK1.7z
other download =
work1 https://skydrive.live.com/redir?resid=4AE88384347A26BF!156&authkey=!AK9HeWrP4tz147I
documents https://skydrive.live.com/redir?resid=4AE88384347A26BF!155&authkey=!AO5-StT-l1_4dv4
this one is for de-oxeded rom
You need custum kernel (siyah, boeffla perseus...)
Need testers coz i have not de-oxeded rom
run english_deodex_menu.bat an follow all step as explain in first post
for instructions it's same that the other
when i have time i'll write an how to
download=
work 2 https://skydrive.live.com/redir?resid=4AE88384347A26BF!159&authkey=!AJKyDn6NlNs4Iy0
documents [url]https://skydrive.live.com/redir?resid=4AE88384347A26BF!155&authkey=!AO5-StT-l1_4dv4[/URL]
brave person to try?
another tip:
install PhilZ Touch with aroma filemanager
copy your originals files in sdcard for exemple in sdcard/sauve.
if you have a pbm bootloop... you reboot recovery and open aroma filemanager and restore your originals files to the good place.
if you open /system in aroma and you find nothing = go back and mount system, for next time you tick in aroma the option automount
this tip is valable also for all thing you want to copy in system if you have not root explorer and it is free
another tip:
X-plore Filemanager is free with it you can manage root (be carefull with root files )
I want to try it to enable crt off effect on my s3 with Android Hd Revolution...what happens if i fail?
Will i brick my phone?
Also it's impossible to download your files without registering...
Willy89 said:
I want to try it to enable crt off effect on my s3 with Android Hd Revolution...what happens if i fail?
Will i brick my phone?
Also it's impossible to download your files without registering...
Click to expand...
Click to collapse
no u can, there simple script with adb, one of them is auto oxeder script
very easy to use.
no u can download without registering (perhaps 4 shared change ? ) i'll upload it in my box !
it is very easy to use an i have done an update for reoxeding without quiting first script
do as i say in my tip = install phill recovery and aroma file manager and try it to be sure it work.
create a directory in sdcard and copy (if u have not root explorer do it with aroma)from /system/framework android.policy .odex and .jar and services.odex and .jar go to /system/app and copy flashbarservice.odex and .jar
it u have pbm you reboot recovery and copy these file back to there place and redo your mod to see where u fail
kondronaute said:
no u can, there simple script with adb, one of them is auto oxeder script
very easy to use.
no u can download without registering (perhaps 4 shared change ? ) i'll upload it in my box !
it is very easy to use an i have done an update for reoxeding without quiting first script
do as i say in my tip = install phill recovery and aroma file manager and try it to be sure it work.
create a directory in sdcard and copy (if u have not root explorer do it with aroma)from /system/framework android.policy .odex and .jar and services.odex and .jar go to /system/app and copy flashbarservice.odex and .jar
it u have pbm you reboot recovery and copy these file back to there place and redo your mod to see where u fail
Click to expand...
Click to collapse
You mean that i can't enable crt off effect with this mod? Sorry but i don't get what you mean...
And another question: where can i find the file i need to download in step one? I mean "all the framework, FlashBarServices.apk and init.rc."
Willy89 said:
You mean that i can't enable crt off effect with this mod? Sorry but i don't get what you mean...
And another question: where can i find the file i need to download in step one? I mean "all the framework, FlashBarServices.apk and init.rc."
Click to expand...
Click to collapse
have you an samsung SIII ?
plug it and do english menu (if you speak english) or menu if you speak french.
when you put choose number 1 in the script it will do all that for you,
after you enter2 and it will do what explained ....
it seem you not lauch english menu or menu
for choice number1, 16 and 17 phone must be connected to PC
other thing when you edit files(4,5,6,10,11,14) the file is opened in notepad but you must write in your mod , you have in documentation.7z all mod or you can open cristiano matos guide and follow it....
Willy89 said:
I want to try it to enable crt off effect on my s3 with Android Hd Revolution...what happens if i fail?
Will i brick my phone?
Also it's impossible to download your files without registering...
Click to expand...
Click to collapse
i just see Android Hd Revolution i dont know if it is oxeded or desoxeded ?
my kitchen is for stock (probably it work also with oxed rom without any pbm)
edit= i do a search it seem deoxeded
Hello,
I just tried it and it works just fine.
A word of advice for people who are afraid this can mess up their phone, all the original files are in \framework\ directory, so if something doesn't work simply replace the new modded files with the ones found in that directory and you're good to go
kondronaute said:
have you an samsung SIII ?
plug it and do english menu (if you speak english) or menu if you speak french.
when you put choose number 1 in the script it will do all that for you,
after you enter2 and it will do what explained ....
it seem you not lauch english menu or menu
for choice number1, 16 and 17 phone must be connected to PC
other thing when you edit files(4,5,6,10,11,14) the file is opened in notepad but you must write in your mod , you have in documentation.7z all mod or you can open cristiano matos guide and follow it....
Click to expand...
Click to collapse
Answered to your Pm....
So what my first step?
Could you please make a noob prof step by step tutorial?
Lost.soul said:
Hello,
I just tried it and it works just fine.
A word of advice for people who are afraid this can mess up their phone, all the original files are in \framework\ directory, so if something doesn't work simply replace the new modded files with the ones found in that directory and you're good to go
Click to expand...
Click to collapse
thank you its nice to you to try it
i see a lot of poeple waiting for CRT extended menu and MWC now they can do it in 20 minutes
Willy89 said:
Answered to your Pm....
So what my first step?
Could you please make a noob prof step by step tutorial?
Click to expand...
Click to collapse
belive me the op is very clear :
attach phone to computer
unzip work1 and documments
rename work1 directory with the rom u want to mod exemple work1_xxema2
in this directory lauch english menu.bat (or open a cmd and launch it)
you have 17 options
type 1 and enter = if it work alle framework are dowloaded to work1_xxema2/framework
if not work = your firewall block ADB so disable it and do 1 enter
after that you folow all step 2 to 17
in step where you edit files= 4,5,6,10,11,14 = the files are edited in notepad just make the good change and save (for the good changes in document you have the 3 mods in pdf documents, or you can follow cristiano matos OP )
my job is just for you gain time all take 20 minutes !!!
Trying right now with the support of a paper sheet.
In this sheet i'm writing one by one passage (in italian) so if i'm succesful i could write a step by step ultra noob guide to improve your efforts
Willy89 said:
Trying right now with the support of a paper sheet.
In this sheet i'm writing one by one passage (in italian) so if i'm succesful i could write a step by step ultra noob guide to improve your efforts
Click to expand...
Click to collapse
yesssssss that will help me and others
it seem your rom is deodex sorry i'll try (if i have time ) to do a kitchen for deodex i think it will be easier coz 2 steps removed = deodex and reodex
kondronaute said:
it seem your rom is deodex sorry i'll try (if i have time ) to do a kitchen for deodex i think it will be easier coz 2 steps removed = deodex and reodex
Click to expand...
Click to collapse
Thank you.
If other people is willing to try this but it's afraid to fail just do it.
Kondronaute is one of the kindest person here on XDA and it will help you in every way he can.
I've tried it personally, he's very kind and helpful.
ok Willy89 i put an version for de-oxeded rom for test coz my rom is odex...
kondronaute said:
for de-oxeded rom
Need testers coz i have not de-oxeded rom
run english_deodex_menu.bat as administratror an follow all step as explain in first post
for instructions it's same that the other
when i have time i'll write an how to
download=
https://skydrive.live.com/redir?resid=4AE88384347A26BF!157&authkey=!AMLUm8dx4lFtX-U
[url]https://skydrive.live.com/redir?resid=4AE88384347A26BF!155&authkey=!AO5-StT-l1_4dv4[/URL]
Click to expand...
Click to collapse
Found tester you kind man!!!
I know that is a noob question but what i have to do when i reach step for and it opens "global Action.smali" text file?
I answerr by my self...yhis is the txt for extended power menu
Willy89 said:
Found tester you kind man!!!
I know that is a noob question but what i have to do when i reach step for and it opens "global Action.smali" text file?
I answerr by my self...yhis is the txt for extended power menu
Click to expand...
Click to collapse
i think now you got it
just make all change for what you want to do (3 ext, crt mwc)....
and follow all number one by one
kondronaute said:
i think now you got it
just make all change for what you want to do (3 ext, crt mwc)....
and follow all number one by one
Click to expand...
Click to collapse
Like you said in pm my fail could be caused by stock kernel...

[MOD,7.1.x/7.1.2 ] Network traffic meter ( root required)

[DISCLAIM]
Doing at your own risk, I don't hold any responsibility for any consequence that may have occured.
I personally have tested this mod on my rooted pixel on NOF26v release.
Remember to do a backup first.
I personally recommended to overwrite those files and keep your adb connected and restart the system ui instead of a directly rebooting by install the app. . By this way, if there is something wrong, you could easily revert the change via adb.
[Background]
After a week, accompanied with many bootloop and systemui FCs, I finally managed to make the real network traffic to show in the status bar.
I was inspired by this post post by @Morningstar, however, the code is outdated and does not work with the latest nougat release.
I then extracted all the updated smali files from Resurrect Remix ,specifically the system image for flo device because I personally owned a nexus7 2013.
I modified the scripts provided by @sellsky, actually a lot of changes needs to be done, and you need to add missing code when you see something unusual in 'adb logcat'.
You can find the modded files (SytemUIGoogle.apk, SettingsGoogle.apk ) from here.
You can find the modded trafficcm from here.
Screenshot is also attached.
Updated files for NOF27B: https://drive.google.com/file/d/0Bzu0Zqno-_D7ZzFOckhHSHRZeGc/view?usp=sharing
Updated files for N2G47E : https://drive.google.com/file/d/0Bzu0Zqno-_D7ejRYZU9UeFljTFE/view?usp=sharing
Updated trafficcm script for 7.1.2: https://drive.google.com/file/d/0Bzu0Zqno-_D7a3F6aTU2MDVrdFU/view?usp=sharing
Nicely done.
Great job .
Bro can you give me some instructions so that I can mod on my stock OnePlus 3 rom
Hi,
I would like to ask how apply this mod. Must I copy SettingGoogle.apk and SystemUIGoogle.apk from traffic_mod.tar? Where can I find this *.apk in system.
Thank you very much for your help
kevin.kvik said:
Hi,
I would like to ask how apply this mod. Must I copy SettingGoogle.apk and SystemUIGoogle.apk from traffic_mod.tar? Where can I find this *.apk in system.
Thank you very much for your help
Click to expand...
Click to collapse
They are both in system/priv-app in their own folders.
Tulsadiver said:
They are both in system/priv-app in their own folders.
Click to expand...
Click to collapse
I don´t have this folders in system/priv-app
kevin.kvik said:
I don´t have this folders in system/priv-app
Click to expand...
Click to collapse
Then you don't have a Pixel?
works perfectly, I copied both files to system/priv-app, reboot, magic. Thank you!
This one feature is ~70% of my love for xposed. Thanks for porting this over... greatly appreciate it.
To be clear for others, the script is not required for this to work.
Back up the two files in question, both in system/priv -- then copy the above apks into the respective folders and reboot.
After installing this mod and you want it on the left hand side, flash this.
If someone who is using a OnePlus 3/T is able to make this work please say how you did it because I can't find the files that need replacing on my device.
have no idea on how to use the modification and will this still work on latest security patch
bush911 said:
have no idea on how to use the modification and will this still work on latest security patch
Click to expand...
Click to collapse
Works fine.
The thread has been quite clear.
1.) Download
2.) Copy
3.) Reboot
4.) Enable
bush911 said:
have no idea on how to use the modification and will this still work on latest security patch
Click to expand...
Click to collapse
Should work fine, and you could also try the newest build I made ( I have updated the main OP ).
Scarface1991 said:
If someone who is using a OnePlus 3/T is able to make this work please say how you did it because I can't find the files that need replacing on my device.
Click to expand...
Click to collapse
Are you deodexed?
Tulsadiver said:
Are you deodexed?
Click to expand...
Click to collapse
I'm using a custom ROM that is based on AOSP so I think I am. At least there are no .odex files within my system/app folder.
Scarface1991 said:
I'm using a custom ROM that is based on AOSP so I think I am. At least there are no .odex files within my system/app folder.
Click to expand...
Click to collapse
Upload your systemui.apk, framework-res.apk, and settings.apk or whatever yours is called.
I'm not a pixel user, using clean AOSP on Redmi note 3 snapdragon. Can I use these modded files? Or they are SoC dependent?
I'm pretty much a noob ?
kurogami95 said:
I'm not a pixel user, using clean AOSP on Redmi note 3 snapdragon. Can I use these modded files? Or they are SoC dependent?
I'm pretty much a noob
Click to expand...
Click to collapse
You can't use the finished product but using the script might work if you will change the names of your settings.apk and systemui.apk to match the pixel and run his script on your pc. Afterwards change the names back.
Ops updated for android 7.1.2, there are some change in the android support lib.

Advanced Power Menu Mod Reboot into Twrp/Bootloader

Hi Mixer´s
I made a Rom myself through the Rom Builder,there you can create an extended power menu with Reboot in Bootloader,Reboot in TWRP or Reboot.
There are two files you have to replace,however, the Phone must be rooted.
Download the zip file from Attachment and unpack it.
Use a Rootexplorer or Es Filemanager.
Go to the Folder:system/framework and Search the services.jar file.Make a Backup on PC,Internal Memory or rename it to services.jar.bak.
Copy the services.jar file from the downloaded extracted zip file in the same Folder and give Permission to rw-r-r-
Go to folder system/media/theme/default and search the file powermenu and Make a Backup or rename it to powermenu.bak.
Copy the powermenu file from the unpacked zip file in this Folder and give Permission to rw-r-r-
Reboot the Phone and you have a Advanced Powermenu to boot direkt in Twrp or in Bootloader
Whether it works with other Rom I do not know.
Make a Nandroid Backup before you make this Mod!!!
Works on xiaomi.eu 7.11.2 Beta and xiaomi.eu 7.11.9 Beta Rom Versions
Add the Original Files from 7.11.2 Beta Rom in Attachment
Hey. This is a good tutorial except for Epic rom users. Thanks for your effort.
I just found it out by accident but it works, I tested it.
Maybe someone can make a Flashable version?
xposed module like http://repo.xposed.info/module/tk.ty3uk.miuiextendedreboot does not work on MIUI 9 ?
lesscro said:
xposed module like http://repo.xposed.info/module/tk.ty3uk.miuiextendedreboot does not work on MIUI 9 ?
Click to expand...
Click to collapse
Prolly. I cant try it though since Epic already has got the reboot menu.
Kalisfura1001 said:
Prolly. I cant try it though since Epic already has got the reboot menu.
Click to expand...
Click to collapse
But for People was use the Stockrom.
And working on the new Update xiaomi.eu 7.11.9 Beta,i test it
letschky said:
But for People was use the Stockrom.
And working on the new Update xiaomi.eu 7.11.9 Beta,i test it
Click to expand...
Click to collapse
Absolutely. Appreciate it.
Sendt fra min MIX ved hjelp av XDA-Developers Legacy app

Categories

Resources