Related
this is an updated* version of my framework mod that adds reboot (normal, hboot, recovery) option to the power-button menu on htc sense based desire roms
*: a new option ('hot restart') has been added that will allow you to respawn android's system server process, thereby starting with a "clean system" w/o actually rebooting the device (credits to xda member appelflap for the idea, you can have a look at his app 'hot reboot' here. i took a slightly different approach to killing the process but the basics remain the same)
enjoy
requirements:
htc sense based desire (froyo) rom (HD VERSION HERE)
deodexed framework libs
busybox with pkill support (or any other pkill implementation, accessible in $path)
how to install:
please make sure your device/setup meets the requirements above
check your framework build number (settings >> about phone >> software information >> build number)
download the archive that matches your build number
copy it to your sdcard and flash it in recovery mode (as always, it is advisable to do a nandroid backup prior flashing)
impact:
a framework lib (/system/framework/android.policy.jar) will be overwritten
the first boot after flashing this may take a (long) while (dexopt will be busy)
--
--
sense_powermenu_rebootdlg-4in1_2.09.405.8.zip
sense_powermenu_rebootdlg-4in1_2.10.405.2.zip
sense_powermenu_rebootdlg-4in1_2.12.911.1.zip
sense_powermenu_rebootdlg-4in1_2.13.707.1.zip
sense_powermenu_rebootdlg-4in1_2.14.207.1.zip
[Mod Edit]
Sense powermenu-4u1-v2.29.zip Submitted by PrinzEisenherz1
source code, porting to other htc devices:
due to the nature of the hack (patching a htc-modified, closed source framework lib) there is no "source code" for it
obviously, i also can't provide a smali patch applicable for any framework version / htc device
for reference, i've attached the smali patch for my own device/setup
it doesn't take a great deal to understand it, porting should be relatively straightforward. you should also take into account that string/icon resource ids may vary between different framework versions, and that some versions don't support com.android.internal.app.ShutdownThread.reboot()
sense_powermenu_rebootdlg-4in1_bravofx2.x.patch.7z
hd version:
here
/// reserved
this is a repost of the original thread that was lost due to a h/w failure
Amazing stuff! Thanks for the update snq-!
Cheers mate
I have a quick question, do i need the whole /framework deodexed or just the android.policy.jar?
Great stuff man... Can i know which of the files is meant for AuraxTSense v7.6.1 please??
styr said:
do i need the whole /framework deodexed or just the android.policy.jar?
Click to expand...
Click to collapse
i'm afraid you can't have single deodexed libs (stale odex dependencies)
blu3angel said:
which of the files is meant for AuraxTSense v7.6.1
Click to expand...
Click to collapse
afaik it is based on 2.10.405.2
Very nice man, i love your modded menu Thank you very much!
i will add it in the next RCMixHD
Thanks again !
robocik said:
i will add it in the next RCMixHD
Click to expand...
Click to collapse
hey robocik
just be sure to add the hd version
Works on my Desire with LeeDrOiD V2.1a with Base HTC RUU 2.10.405.2.
But: after every hot reboot the function keys remain lit after the first power off (automatic or manual). After the 2nd, 3rd etc. power off not anymore. Very odd.
it works great man...thanks!!! i added it to my rom if you want to remove it please tell me
Thanks, great work! I just want to mention it the boot after flashing took a long time here, like 4 minutes which is strange.
shoemeistah said:
Thanks, great work! I just want to mention it the boot after flashing took a long time here, like 4 minutes which is strange.
Click to expand...
Click to collapse
Well he did mention on the first post it would take a long time to boot so not sure what you mean about strange.
Sent from my HTC Desire using XDA App
I want to add it to the kitchen so I just have to replace android.policy.jar? Thanks
PS. Of course credits will be given
BTW what languages are supported?
Is it a way of adding this mod to non sense roms like Cyanogen has ?
michal_banszel said:
I want to add it to the kitchen so I just have to replace android.policy.jar? Thanks
Click to expand...
Click to collapse
yes. just make sure you add the version matching to your framework build number
michal_banszel said:
BTW what languages are supported?
Click to expand...
Click to collapse
main menu entry, dialog header, buttons are localized, radio items aren't:
shoey-n said:
Is it a way of adding this mod to non sense roms like Cyanogen has ?
Click to expand...
Click to collapse
cyanogenmod is an opensource project, there is no need for hacks like this (dalvik bytecode injected into a closed source lib) to implement missing features
snq- said:
yes. just make sure you add the version matching to your framework build number
main menu entry, dialog header, buttons are localized, radio items aren't:
Click to expand...
Click to collapse
Ok, thanks. Just to make sure - not whole deodexed is required, just android.policy.odex, right? Is it possible to edit this jar file and change the language of "Normal" etc... and here footprint is also required as in 3in1?
What is ODEX and DEODEX?
In Android file system, applications come in packages with the extension .apk. These application packages, or APKs contain certain .odex files whose supposed function is to save space. These odex files are actually collections of parts of an application that are optimized before booting. Doing so speeds up the boot process, as it preloads part of an application. On the other hand, it also makes hacking those applicationsdifficult because a part of the coding has already been extracted to another location before execution.
THEN COMES DEODEX
Deodexing is basically repackaging of these APKs in a certain way, such that they are reassembled into classes.dex files. By doing that, all pieces of an application package are put together back in one place, thus eliminating theworry of a modified APK conflicting with some separate odexed parts.
In summary, Deodexed ROMs (or APKs) have all their application packages put back together in one place, allowing for easy modification such as theming. Since no pieces of code are coming from any external location, custom ROMs or APKs are always deodexed to ensure integrity. So:
Odex = +speed -customization
Deodex = -speed +customization
I think that you like more speed and less customization (less costumization for dev because is to difficult mod an odex file)
So that's why I just odex my Google edition rom with this and you can read the whole thread.
http://forum.xda-developers.com/showthread.php?t=2390162
Note, it's wise to odex just your system apps. Not data but that's up to you.
I was always under the impression that deodexed apks are only slower on first boot/run. After that, everything is loaded into cache and deodexed is the same speed.
Is that incorrect?
Lsd-Pulsar said:
I was always under the impression that deodexed apks are only slower on first boot/run. After that, everything is loaded into cache and deodexed is the same speed.
Is that incorrect?
Click to expand...
Click to collapse
Anyone able to elaborate on whether this is true or not ?.
Lsd-Pulsar said:
I was always under the impression that deodexed apks are only slower on first boot/run. After that, everything is loaded into cache and deodexed is the same speed.
Is that incorrect?
Click to expand...
Click to collapse
Most of the sources I googled about odex and deodexed came up with this explanation. So we could probably assume that it's correct. I've run a couple of odexed roms on my Gnex and most recently, the S4. My personal opinion? I really see no difference at all in terms of UI, there's probably a difference when it comes to loading apps but if there is I hardly notice it at all.
In addition most deodexed roms are zipaligned and the result being the apps consuming less ram. More ram = more cached apps, cached apps = faster loading of apps.
Again this is all just my opinion.
chickentuna said:
Most of the sources I googled about odex and deodexed came up with this explanation. So we could probably assume that it's correct. I've run a couple of odexed roms on my Gnex and most recently, the S4. My personal opinion? I really see no difference at all in terms of UI, there's probably a difference when it comes to loading apps but if there is I hardly notice it at all.
In addition most deodexed roms are zipaligned and the result being the apps consuming less ram. More ram = more cached apps, cached apps = faster loading of apps.
Again this is all just my opinion.
Click to expand...
Click to collapse
And framework is odexed
Great tutorial!! I was never 100% sure about odexed and deodexed, but now i am,
Question:
OS editen by manufactures, samsung, lg, htc are those system files always odexed or deodexed??
Verstuurd van mijn GT-I9505 met Tapatalk
great infomation. :good: :good:
coolnessQ said:
Great tutorial!! I was never 100% sure about odexed and deodexed, but now i am,
Question:
OS editen by manufactures, samsung, lg, htc are those system files always odexed or deodexed??
Verstuurd van mijn GT-I9505 met Tapatalk
Click to expand...
Click to collapse
This would be interesting to know for me as well.
coolnessQ said:
Great tutorial!! I was never 100% sure about odexed and deodexed, but now i am,
Question:
OS editen by manufactures, samsung, lg, htc are those system files always odexed or deodexed??
Verstuurd van mijn GT-I9505 met Tapatalk
Click to expand...
Click to collapse
Samsung always releases a firmware ODEX based.
Basically ODEX is always faster, but as the S4 is really quick anyway you will not notice if you are running a deodexed firmware/rom i.m.h.o.
Another personal opinion is that all mods can be converted to odex again, just look at the released framework of JKAY. Heavy mods on that and still he releases a deodexed and odexed based version.
If the maker of a mod cannot provide you with a odexed version then maybe he is not that good..... (no bashing intended)
Brotuck said:
Samsung always releases a firmware ODEX based.
Basically ODEX is always faster, but as the S4 is really quick anyway you will not notice if you are running a deodexed firmware/rom i.m.h.o.
Another personal opinion is that all mods can be converted to odex again, just look at the released framework of JKAY. Heavy mods on that and still he releases a deodexed and odexed based version.
If the maker of a mod cannot provide you with a odexed version then maybe he is not that good..... (no bashing intended)
Click to expand...
Click to collapse
Thnx for explaining!
Verstuurd van mijn GT-I9505 met Tapatalk
[TYPE][ANDROID VERSION][NAME][OTHER INFO][DATE]
This ROM is a fully AOSP build of Android 4.4 KitKat. The source was downloaded and compiled by me.
It is exactly what Google will release in “a few weeks” for the 2012 Nexus 7 when they release KitKat
This ROM is based off of Baldwinguy77's work on 'Shiny' for Toro, and uses his vendor. I did all the bring up for Grouper(with a ton of help from Baldwinguy77) The difference is that some of the changes he has made to the system aren't here, this is AOSP with a few modifications to make it run, Hence the Unofficial Tag.
There will be changes coming to fix bugs and remove redundancies between AOSP and Google Proprietary files. Also, changes will be made to the system to include some other small features in time. This ROM will branch out from baldwinguy's initial work to something a little bit different.
Google Apps are included in this build.
Bugs:
Boot Animation
You tell me
I, nor Baldwinguy77 is responsible for anything that goes wrong during the installation.
Special Thanks goes to Baldwinguy77 for helping me out and supplying his vendor files, as well as answering all my questions in the past 72 hours. Please consider donating to him as most of the initial bringup was his work: Paypal Donate Link for Baldwinguy77
Also, please note that this does not contain root. You are responsible for adding root at the moment.
Feel free to let me know if anything goes wrong. This is my first public posting of a ROM I have built from source.
Also note that the first boot is extraordinarily long.
Download links:http://d-h.st/DPJ
MIRROR: https://www.dropbox....ta-eng.neel.zip
Enjoy!
If you really like my work, and you haven't donated to baldwinguy77, consider donating to me: here on paypal
Reserved
does camera work on this build?
popup keyboard and rotating fixed ??
otherwise it's the same as all the other 4.4 roms / ports outthere
Forget keyboard popup, are you fixed rotation and gradient glitch problem ?
Let him feel special for releasing this, after all he did all the work. Who cares if there are 3 other similar ROMs
Sent from my Nokia Lumia 920 using Tapatalk
I tested ROM, everything is same with other similar ROMS...
Can you please add this bugs to your thread:
-Rotation
-GPS
-Camera
-Launcher Keyboard Popup
I will add those. I have an idea on GPS and should have it working be end of day. The keyboard issue seems proprietary, but I have ideas about it.
everesee said:
I tested ROM, everything is same with other similar ROMS...
Can you please add this bugs to your thread:
-Rotation
-GPS
-Camera
-Launcher Keyboard Popup
Click to expand...
Click to collapse
GPS is working for me.
MidnightNinja said:
I will add those. I have an idea on GPS and should have it working be end of day. The keyboard issue seems proprietary, but I have ideas about it.
Click to expand...
Click to collapse
If you fix them, you will be a hero
MidnightNinja said:
[TYPE][ANDROID VERSION][NAME][OTHER INFO][DATE]
Google Apps are included in this build.
Click to expand...
Click to collapse
Well, first, my understanding is that you should separate the GAPPS from the ROM, per Google's license... that being said, included or separate, can you deliver them ODEXED so we can try Art instead of Dalvik?
thanks,
jf
everesee said:
If you fix them, you will be a hero
Click to expand...
Click to collapse
+1
Sent from my HTC6435LVW using xda app-developers app
friedsonjm said:
Well, first, my understanding is that you should separate the GAPPS from the ROM, per Google's license... that being said, included or separate, can you deliver them ODEXED so we can try Art instead of Dalvik?
thanks,
jf
Click to expand...
Click to collapse
Please explain what you are talking about with regards to Art.
I include google apps for convenience, and several ROMs have done this same method. At the end of the day, I plan on providing what Google will eventually provide for the N7.
FWIW, the CM 11.0 source has dropped, and I've posted some quick stuff about it in the build thread.
My n7 is down for the moment (loose charger slot thing) but that doesn't mean y'all should have to wait
Good luck, we're all counting on you.
This ROM unrooted my N7 and is giving me constant acore.process issues. Think I'll go back to koko98's version, seems more stable.
PAULO76 said:
This ROM unrooted my N7 and is giving me constant acore.process issues. Think I'll go back to koko98's version, seems more stable.
Click to expand...
Click to collapse
Please provide more than constant acore issues. I also do not include root, as I state in the OP.
fattire said:
FWIW, the CM 11.0 source has dropped, and I've posted some quick stuff about it in the build thread.
My n7 is down for the moment (loose charger slot thing) but that doesn't mean y'all should have to wait
Good luck, we're all counting on you.
Click to expand...
Click to collapse
The source is downloaded....just trying the get the vendors set up for i605 and grouper .
I will see about getting a release out sometime today/tomorrow,when I know that its stable. I also don't know how to fix some of the binary issues,but I know they'll be fixed soon
MidnightNinja said:
Please provide more than constant acore issues. I also do not include root, as I state in the OP.
Click to expand...
Click to collapse
Ooops, my bad. Need to read a bit more thoroughly. Thanks for the instant reply.
MidnightNinja said:
Please explain what you are talking about with regards to Art.
Click to expand...
Click to collapse
ART is Google's runtime replacement for Dalvik - you can enable it under settings, but if you install 'normal' GAPPS, i.e., deodexed ones, it conflicts and they keep FC'ing
My understanding is that won't happen with odexed gapps; with them, we could try ART instead of dalvik.
jf
friedsonjm said:
ART is Google's runtime replacement for Dalvik - you can enable it under settings, but if you install 'normal' GAPPS, i.e., deodexed ones, it conflicts and they keep FC'ing
My understanding is that won't happen with odexed gapps; with them, we could try ART instead of dalvik.
jf
Click to expand...
Click to collapse
Now that I understand and have researched it, I'm going to take this idea for right now:
I will not be distributing a seperate gapps package that is odexed. This ROM, anyways is deodexed out of the box and as such, probably breaks all compatibly with ART.
Android ships with dalvik, and for now, I will not be offering support for something which requires me to redo the rom and provides no benefit. In fact, it appears to break many apps on the app store right now.
If in time, ART is shown to be stable and has all the issues ironed out, I will begin odexed builds and provide odexed gapps.
What's the simplest way to switch the back button on the navigation bar with the task manager one??
tuNgaz said:
What's the simplest way to switch the back button on the navigation bar with the task manager one??
Click to expand...
Click to collapse
I'm assuming you are talking about swapping positions of the two buttons. I'm sure there are other ways of doing this but that is one of the Many options that you have in GravityBox. You'll have to be rooted, have Xposed Framework installed and if I remember right an updated version of busybox installed.
wantabe said:
I'm assuming you are talking about swapping positions of the two buttons. I'm sure there are other ways of doing this but that is one of the Many options that you have in GravityBox. You'll have to be rooted, have Xposed Framework installed and if I remember right an updated version of busybox installed.
Click to expand...
Click to collapse
Which is still Dalvik only, fwiw.
wideasleep1 said:
Which is still Dalvik only, fwiw.
Click to expand...
Click to collapse
You're absolutely right! I forgot about that! But... I'm not personally going to worry about a few milleseconds or 10ths of a second enough to give up using Xposed Framework. I think we can't lose sight of the fact that the performance we see now even when using dalvik instead of art is at this point in time substantially better than what it was not that long ago. Just my opinion of course!
wantabe said:
You're absolutely right! I forgot about that! But... I'm not personally going to worry about a few milleseconds or 10ths of a second enough to give up using Xposed Framework. I think we can't lose sight of the fact that the performance we see now even when using dalvik instead of art is at this point in time substantially better than what it was not that long ago. Just my opinion of course!
Click to expand...
Click to collapse
Agreed! For the time being, some of us are split into two camps.
I thought the new optimized libraries brought Dalvik up to Art's speed.
________________________
Sent from my Nexus 5
PhilipTD said:
I thought the new optimized libraries brought Dalvik up to Art's speed.
________________________
Sent from my Nexus 5
Click to expand...
Click to collapse
The latest I've read indicate Dalvik Bionic boosts Quadrant and Antutu scores but does virtually nothing else of worth. I saw such a change on ART that I'm done with Dalvik, both on my N4 and N5.
Sent from my Nexus 4 using Tapatalk
wideasleep1 said:
The latest I've read indicate Dalvik Bionic boosts Quadrant and Antutu scores but does virtually nothing else of worth. I saw such a change on ART that I'm done with Dalvik, both on my N4 and N5.
Sent from my Nexus 4 using Tapatalk
Click to expand...
Click to collapse
Is Art stable?
________________________
Sent from my Nexus 5
PhilipTD said:
Is Art stable?
________________________
Sent from my Nexus 5
Click to expand...
Click to collapse
Remarkably. Hard to believe because it's so new. Haven't had a FC or self reboot since going ART.
Sent from my Nexus 4 using Tapatalk
wideasleep1 said:
Remarkably. Hard to believe because it's so new. Haven't had a FC or self reboot since going ART.
Sent from my Nexus 4 using Tapatalk
Click to expand...
Click to collapse
Maybe I should jump in. Thanks.
________________________
Sent from my Nexus 5
wantabe said:
I'm assuming you are talking about swapping positions of the two buttons. I'm sure there are other ways of doing this but that is one of the Many options that you have in GravityBox. You'll have to be rooted, have Xposed Framework installed and if I remember right an updated version of busybox installed.
Click to expand...
Click to collapse
Thanks for all of the replies! I'm new to android and I've only so far rooted the phone, installed a custom recovery and unlocked the bootloader!
I understand the proceedings to install the Xposed Framework and Gravity box but I'm not sure about busybox.
I've just followed the through with the installation without 'busybox' and everything seems to work fine. Thanks very much guys
wideasleep1 said:
The latest I've read indicate Dalvik Bionic boosts Quadrant and Antutu scores but does virtually nothing else of worth. I saw such a change on ART that I'm done with Dalvik, both on my N4 and N5.
Sent from my Nexus 4 using Tapatalk
Click to expand...
Click to collapse
I suspect that you are right again at least about the benchmarking. And it could absolutely be my imagination but some apps (not many) do seem faster in operation with the dalvik bionic patch and the one that comes to mind is Feedly. I could be wrong. Anyway.. having the choice to use either one is pretty nice.
---------- Post added at 12:32 PM ---------- Previous post was at 12:27 PM ----------
tuNgaz said:
Thanks for all of the replies! I'm new to android and I've only so far rooted the phone, installed a custom recovery and unlocked the bootloader!
I understand the proceedings to install the Xposed Framework and Gravity box but I'm not sure about busybox.
I've just followed the through with the installation without 'busybox' and everything seems to work fine. Thanks very much guys
Click to expand...
Click to collapse
Been using Xposed for a while now so I could just be remembering wrong! Maybe it depended on what modulus you were using. Busybox Free (Stericson) is in my opinion the best app for installing busybox if you ever need it, I use the pro version myself. Might want to make a backup if you start modifying system files, flashing kernels or roms.
wantabe said:
I suspect that you are right again at least about the benchmarking. And it could absolutely be my imagination but some apps (not many) do seem faster in operation with the dalvik bionic patch and the one that comes to mind is Feedly. I could be wrong. Anyway.. having the choice to use either one is pretty nice.
Click to expand...
Click to collapse
If you want to spend the time swapping/comparing, use a common lag 'test' and see for yourself.
http://forum.xda-developers.com/showthread.php?p=47533904
I haven't tried the patched Dalvik myself since ART, but if it can do what ART does (not placebo), then it's another way to the same goal.
Apologies to OP, I certainly didn't mean to turn this into a Dalvik/ART thread...just that Xposed currently is Dalvik only, but that the dev wants it to be ART compliant in the future.
Oh and seconded on Stericson Busybox Free! Cheers!
Hello...I need help.
Why I can't play game :
1. Shadowrun Return
2. Mutants : Genetic Gladiators
My Moto G have kitkat 4.4.4 and ART runtime. Even i will play that game, notification unfortunately has stopped.
Please help me. :crying:
@Vegastroy .... Try changing your runtime back to dalvic
ART and Dalvik
metpolds said:
@Vegastroy .... Try changing your runtime back to dalvic
Click to expand...
Click to collapse
Thanks metpolds
But i don't know, what different ART and Dalvik?
Please give information about both of them.
Vegastroy said:
Thanks metpolds
But i don't know, what different ART and Dalvik?
Please give information about both of them.
Click to expand...
Click to collapse
@Vegastroy .... ART is the new Android Runtime which was first introduced with the release of the KitKat O/S, it replaces Dalvik Runtime. The main purpose of ART is to improve performance and smoothness of the core Android platform and battery life. You can enable/disable it by going to :::: Settings>Developer Options>Select Runtime ::::
There have been some posts in motor g forum that complain that using "Art" causes several games to F/C or not run at all. The full benefit of having "Art Runtime" will probably not be seen until a future release of Android O/S which has been optimized for Art and then there will be Apps which are also optimized for Art, so things will get better.
For now , whilst there is still a choice in Settings to use either Art or Dalvik, there is nothing to stop you swapping about