• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [MOD] Extended Power Menu + CMScreenshot-port [v3] [2012/07/21]

Hi jparasite, karendar,

Since it looks like you know what you're doing, any chance you'd be interested in me rolling whatever you consider stable into my rom? Then a user could flash the whole thing in one shot. I'm assuming it's just a matter of dropping the appropriate files into the rom replacing what's there...

I'd just add your patch, list the version number, and add a link to your thread so people could see what's all been done in any given version, rather than recreating your whole feature list.

Thoughts?
 
Upvote 0
Hi jparasite, karendar,

Since it looks like you know what you're doing, any chance you'd be interested in me rolling whatever you consider stable into my rom? Then a user could flash the whole thing in one shot. I'm assuming it's just a matter of dropping the appropriate files into the rom replacing what's there...

I'd just add your patch, list the version number, and add a link to your thread so people could see what's all been done in any given version, rather than recreating your whole feature list.

Thoughts?

Adding the files to your rom worked for me. Ill do more tests to see if all the funtionality is there.

EDIT: Upon testing the functions it seams that the reboot one doesn't work. All other in v1 work as suspected. Going to test v2

EDIT2: More testing with v2 and it seems that reboot or screenshot don`t work.
 
Upvote 0
Mods work excellent for me on jiiliks v008 rom. I really like the ability to reboot to recovery without the awkward button press. It also allows me to boot into recovery with the usb still connected, which normally I couldn't get it to do with just the button press. And a test screenshot of my home screen. Thanks.

screenshot-1324753569565.png
 
Upvote 0
Hi jparasite, karendar,

Since it looks like you know what you're doing, any chance you'd be interested in me rolling whatever you consider stable into my rom? Then a user could flash the whole thing in one shot. I'm assuming it's just a matter of dropping the appropriate files into the rom replacing what's there...

I'd just add your patch, list the version number, and add a link to your thread so people could see what's all been done in any given version, rather than recreating your whole feature list.

Thoughts?

I'm totally cool with that, I kept it seperate for the time being to reduce the file size that users would have to download. I use your ROM as a basis anyway, so I see no difference in having to apply one zip versus two :p

You'll have to overwrite the necessary files as well as set the permissions for certain things. I think that's what damien's missing when attempting to merge it himself. If you examine update-script there's several lines in there dealing with permissions:

Code:
set_perm(0, 0, 644, "/system/framework/framework-res.apk");
set_perm(0, 0, 644, "/system/framework/android.policy.jar");
set_perm(0, 0, 644, "/system/framework/services.jar");
set_perm(0, 0, 644, "/system/app/CMScreenshot.apk");
set_perm(0, 0, 06755, "/system/bin/screenshot");
This is mostly for screenshot, as /bin/screenshot needs to run as superuser/root otherwise it'll blow up spectacularly. I still have some effin' around to do to generate some .odex files and test them on a stock Gingerbread ROM.

Again, :p this is a team effort! So I'd be happy to have you roll in these mods for your next version assuming we can all get it to work.

EDIT:

What I DID notice at one point in testing however, was that unless I had flashed your ROM and let an initial boot happen into Android, flashing your ROM then my MODs wouldn't work properly for some reason. I'll play around with this again tonight and see if something has changed.
 
Upvote 0
I see no problem incorporating this in your ROM, jiilik... ;) Only thing is that this uses stock framework-res.apk and systemui.apk, which means that if you want to theme your phone with UOT kitchen you'll have to use these files, as I've modified the values.xml to enable CRT off anim. ;) Then again, it seems I'm the only one who's been theming... So it's no biggie!

As for the Odex-me solution, I don't think I explained it well. Here's what would need to be done for the mod to work on stock:

jparasite (Or anyone willing):

1 - Nandroid backup current setup
2 - flash Jiilik's ROM with your mod and my mod
3 - Run odex-me on your phone (It will reboot and odex /system then boot back)
4 - Copy all files needed for your mods and my mods (Including the .odex files related to them) and package them in a flashable zip file for stock ROM users.
5 - Nandroid restore back ROM. ;)

Worth a shot!
 
Upvote 0
I flashed the zip file in recovery menu just now and it appears to be successful, however my power off menu did not really change and I still see the same options available to me as before, is there anything I need to do after flashing the zip file?

Are you on a stock ROM? As in not jiilik's v008 ROM? If so, all the files used by the Android framework are 'odexed'. That is they were rebuilt/Dalvik-compiled to load faster at boot.

What this zip file overrides are the original framework files (such as framework-res.apk) and not the odexed versions. Therefore any changes won't show up until those odexed versions are rebuilt.

A few posts above karendar mentioned a tool I could use to build the .odex versions and I may just try doing that later today.
 
Upvote 0
Bump as this has now been updated to use with karendar's V20B R3 custom ROM. CRT-off feature was removed as it is already built into his ROM.

Eeeeexcellent!

Thanks jparasite. I'll add it to my custom ROM as soon as I have the shine plus with me...

I'm finishing my setup for my ubuntu partition with eclipse and the ADT... Not sure I'll get it done before my vacation, but once I'm back, I'll give a crack at the kernel + source.
 
Upvote 0
jparasite, for some reason your edify script doesn't set the right perms when I flash it. Will have to look into this.

I've managed to copy it over manually though and the policy.jar works fine! Shows up, screenshot works, reboot recovery works.

That's very weird, it seemed to be working fine for me. I'll test it again tonight. I didn't change anything about the edify script except to remove the misc files for CRT-off.
 
Upvote 0
That's very weird, it seemed to be working fine for me. I'll test it again tonight. I didn't change anything about the edify script except to remove the misc files for CRT-off.

I think your set perms should be 0644 instead of 644 to get all 4 parameters... Not sure though. They seem to integrate well in my custom ROM.

Sent you a PM about screenshot not working right for me though!

Also, forgot to mention. Did you modify anything in framework-res.apk to get this working?
 
Upvote 0
Hi
I'm wondering how you did this from the lg optimus one (p500)
I'm currently making a rom which includes the extended power menu, i've been trying to port cmscreenshot with no luck.
Do You think you could tell me how you did it? Or help me out?
You can check out my rom here : forum.xda-developers.com/showthread.php?t=2048144
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones