[How to] Modify Onscreen Navbar Buttons in HTC 10 Leedroid Rom - HTC 10 Guides, News, & Discussion

I'm one of a few who prefer using Onscreen Navbar Buttons and as i'm using them in Leedroid Rom, i need to modify them to my liking.
And as i have seen others with the same question, how to do that, i make a short, quick tutorial, what you have to do!
Overview:
- Second post deals with changing the images of the buttons
- Third post shows you, what to do to change the behavior if you push the buttons (based on xposed)
Disclaimer:
This part is modifying SystemUI.apk. If you make it wrong, or if you flash an outdated apk, your System/Phone might get unusable!
Make a backup in recovery and from everything which is important to you,just in case of. Better save than sorry
So, let's start!
Just want to thank some guys before, for their suggestions and for their input which i learned a lot from:
- LeeDroid
- Mr Hofs
- ckpv5
- xpirt
- baadnewz

Changing the images of the buttons
You need:
- WinRar or 7zip
- SystemUI.apk (must be deodexed, the apk from Leedroids rom is)
- your new button images as .png
How to:
Copy your SystemUI.apk from System/priv-app/SystemUI folder to your computer. Now you can open it with WinRar or 7zip. Make sure you just open it, do not extract it! Go to \res\drawable-xxxhdpi-v4 folder, there you will find the files to replace. And these files are:
- navigation_icon_back
- navigation_icon_down
- navigation_icon_home
- navigation_icon_recent_apps
I want the buttons to look like on my M8, so i used the png files from it. These are in size 76x76 and look a bit small. The google images are 88x88. I used an online png converter to resize the png's without loosing quality to 90x90 which is a good size for my liking.
So make sure, that your png files are named correctly, then drag and drop them into the opened apk file, into the drawable-xxxhdpi-v4 folder. Close the open apk window, thats it. Now you should be able touse this file for your Leedroid Rom.
Notice:
If you want the same images as i use, you can use for the actually Leedroid Rom (v4.0.0 svn119) the zip file from attachment and flash it in recovery.
You can also take my zip from attachment and replace the SystemUI.apk in \system\priv-app\SystemUI with your modded apk file and flash it with recovery (do it the same way like we replace the png's, drag and drop the apk and it will replace my SystemUI.apk).
But be aware: if Lee changes things in SystemUI.apk the file may need to be modded again! Otherwise it can cause an unusable System! Keep that in mind please. If you use svn, you can check what files are modded.
So, that's all. Nothing new or serious groundbreaking, but as i have seen the question if it's possible a couple of times, i felt it is time to write some words about it.
Maybe i'll add some pictures later on.
Have fun!

Change the behavior if you push the buttons (based on xposed)
This part is not really modding, as we use existing solutions. But i asked myself a long time, if its possible to do on Sense Rom while i'm on Resurrection Remix (where this is an basic feature). And it wasn't that easy way, until xposed for Nougat was released. But now i know that it will work and maybe this will help others, thats why i'll write here what to do.
You need:
- XposedInstaller (latest right now is 3.1.4, https://forum.xda-developers.com/showthread.php?t=3034811)
- Xposed framework as in recovery flashable zip from here (at the moment, for Leedroid Rom sdk24/arm64/)
- GravityBox [N] for Nougat
- if you want to remove it, the xposed uninstaller
How to:
Flash the xposed framework with the zip file in recovery. Reboot (may take a while) and intall the XposedInstaller.apk and the GravityBox [N] modul.apk.
Open xposed, go to module and tick the checkbox for GravityBox [N] (or activate the module from statusbar directly after you have installed it). A reboot is needed.
Open GravityBox, go to Navigation bar tweaks, enable the "Master switch" and make sure the checkbox by "Enable navigation bar" is ticked. A reboot may be needed.
Go back, scroll down and enter Navigation keys actions. Here you can set the actions for each button (Home, Back, Recents and if you use Menu). Also Long-press or Double-tap actions. It is very self explanatory here. If you scroll down, you can also set speed or dely for some actions. As far as i remember, again a restart is necessary.
Thats it.
I hope that helps some people to find their way around!

xstansa lets you change on screen nav buttons without modifying systemui as well

Related

[MOD][XXKI3] Remove VIBRATE icon from status bar

Hi,
Here's a patch for stock odexed XXKI3 to remove vibrate icon from status bar. I don't know whether it's a bug or a feature but I hated it and removed according to instructions from this thread
Thanks to tripc1 for instructions.
RAWI.NO_VIBRATE_ICON.MOD.zip
This one is with:
- CRT Effect
- % Circle Battery mod
RAWI.NO_VIBRATE_ICON.MOD_2.zip
If the first doesn't work then try the second file. I removed the icon having already crt and battery mode applied, so SystemUI.apk was different than stock.
PLEASE DO BACKUP PRIOR TO INSTALLING!
As I can't post in Android Development section (I haven't made 10 posts requirement) I'm posting it here.
This Mod is by vintozver
Removing vibrator icon on ODEXED roms. If you have deodexed one - you will not need to odex the apk again, you will need to sign the apk instead.
The method works for ANY android version actually. You SHOULD backup your device prior doing this. You SHOULD think what you do.
Patch may not work for your device. I did this for SGS2 2.3.6 KI4 (stock).
===
We need:
0. jre/jdk
1. adb
2. apktool (for looking for resources if they differ in your version).
3. smali/baksmali tools
4. dexopt-wrapper (on Device)
Process:
1. Download SystemUI.apk and SystemUI.odex on your computer.
2. Download /system/framework to your computer (framework folder for clarity).
3. BOOTCLASSPATH=framework /opt/smali/baksmali -d framework/ -o dx_obj --api-level 9 -x SystemUI.odex
You'll have dx_obj folder filled with dalvik VM source code (dex-source).
4. Apply patch (see below), which strips out unnecessary code and icon updates.
5. /opt/smali/smali dx_obj/
6. Rename out.dex to classes.dex
7. Put classes.dex to SystemUI.apk file
8. copy updated SystemUI.apk to temporary folder on your device like: adb push SystemUI.apk /sdcard/SystemUI.apk
9. adb shell
# cd /sdcard
# dexopt-wrapper SystemUI.apk SystemUI.odex
# cp SystemUI.odex /system/app/SystemUI.odex
# sync
10. reboot the device (you may issue "reboot" command in the shell as well).
Enjoy!
Patch may be different for some roms and some android versions. The best method of searching the code has been explained in http://forum.xda-developers.com/showthread.php?p=18033801 (unpacking apk within apktool and looking for identifiers). PM me for further help.
You haven't packed the apk mate.
Hm, it's not necessary, the change is only in .odex file....
The solution is based not on removing the actual vibrate icon from apk file but on removing lines of code that shows the icon in status bar.
did NOT work ! :s
Ok, I posted the second file. Now it's with SystemUI.apk but also with other tweaks.
The second file works for sure.
Appologise for inconvenience.
Can you tell us what tweaks please? I'd like to know what I'm doing to my device before making any changes.
Tweaks for batt circle mod and crt effects comes from this thread and this.
After that I patched against vibrate icon according to the instructions.
Strange, I'm on KI3 and don't have the issue with the vibrate icon when vibrate is set to always on.
gr8 second file made me lose notification bar ...
Have you installed any other themes/mods that also modifiy SystemUI.apk?
The file I posted works perfect on pure stock xxki3 from samfirmware.com...
I have KI3... dont have the vibrate icon aftet i set it to NEVER in settings->sound->vibration...
is it the same thing we are talking here? why do we needed a modified app to do the same ?
Yes, but the problem occurs when you want to set the option to ALWAYS and you DONT want to see the vibrate icon all the time
You can upload ONLY remove Vibrate MOD without CRT Effect and % Circle Battery mod, cause I don't want change it.
JKay Settings app has a lot of tweaks, including removal of vibro-icon and it works on any rom.
Thanks for trying anyway.
Sent from my GT-I9100 using xda premium
Is this in the Android market? Can't find it.
Sorry, I didn't read carefully. After installing the file from the first link, everything is in ok! Thanks guys.
ikeny said:
Is this in the Android market? Can't find it.
Click to expand...
Click to collapse
You must install the file from the first link by CFW.
There is also a free app "Contact Vibrate". You can set all calls to vibrate even though you don't have it on "Always Vibrate" under general setting.
With the app, you can even customize the vibration pattern for each contact (if you wish to). If not, it will use a master pattern (your choice) for all.
This is good for unrooted users, or those that don't want to mess with the ROM anymore.
It is possible for KI4?
ikeny said:
There is also a free app "Contact Vibrate". You can set all calls to vibrate even though you don't have it on "Always Vibrate" under general setting.
With the app, you can even customize the vibration pattern for each contact (if you wish to). If not, it will use a master pattern (your choice) for all.
This is good for unrooted users, or those that don't want to mess with the ROM anymore.
Click to expand...
Click to collapse
Thx for the tip, works fine and i don't see the vibrate icon anymore.
Remove vibration/silence icon on any android 2.3.x
Removing vibrator icon on ODEXED roms. If you have deodexed one - you will not need to odex the apk again, you will need to sign the apk instead.
The method works for ANY android version actually. You SHOULD backup your device prior doing this. You SHOULD think what you do.
Patch may not work for your device. I did this for SGS2 2.3.6 KI4 (stock).
===
We need:
0. jre/jdk
1. adb
2. apktool (for looking for resources if they differ in your version).
3. smali/baksmali tools
4. dexopt-wrapper (on Device)
Process:
1. Download SystemUI.apk and SystemUI.odex on your computer.
2. Download /system/framework to your computer (framework folder for clarity).
3. BOOTCLASSPATH=framework /opt/smali/baksmali -d framework/ -o dx_obj --api-level 9 -x SystemUI.odex
You'll have dx_obj folder filled with dalvik VM source code (dex-source).
4. Apply patch (see below), which strips out unnecessary code and icon updates.
5. /opt/smali/smali dx_obj/
6. Rename out.dex to classes.dex
7. Put classes.dex to SystemUI.apk file
8. copy updated SystemUI.apk to temporary folder on your device like: adb push SystemUI.apk /sdcard/SystemUI.apk
9. adb shell
# cd /sdcard
# dexopt-wrapper SystemUI.apk SystemUI.odex
# cp SystemUI.odex /system/app/SystemUI.odex
# sync
10. reboot the device (you may issue "reboot" command in the shell as well).
Enjoy!
Patch may be different for some roms and some android versions. The best method of searching the code has been explained in http://forum.xda-developers.com/showthread.php?p=18033801 (unpacking apk within apktool and looking for identifiers). PM me for further help.

[THEME] ICS Lockscreen + ICS Style Pattern Lock

Featured on XDA Portal Thanks guys!
Also, thanks to zhuhang for including this in his CM7 ICS / Jelly bean look and All in One ICS patch thread
UPDATE: You can now choose between ICS blue/ white style colours or the default green/ red colours for the lock rings, etc., I have attached different the applicable zips ("Lockscreen Icons ICS Blue.zip" and "Lockscreen Icons Default.zip")
Hi XDA
This is my first attempt at doing some DIY themeing, this is very simple and did not take very long to do. Before I say anything else, bear in mind you must have root, and I am not responsible if your device is bricked, set alight or abducted by aliens due to this tutorial.
Screenshots are attached
On the G1, by installing CM7 it is possible to end up with a very nice ICS looking UI. You can do this through applying AChep's ICS theme, installing the Roboto font from ICS using an app such as Type Fresh from Pixelpod INTERNATIONAL and finally from finding ports of actual ICS apps, such as Holo Launcher by Mobint.
There is one problem though, which is that the lock screen is untouchable by themes such as Sonny Sekhon's.
And so we realize that we must theme it ourselves!
The actual lockscreen itself shouldn't be a problem, as CM7 has the option to use a holo style lock ring and to be set to "minimal", and once you have installed the ICS clock font for Clockopia (note that this isn't Roboto) found here (it's in the FontPack-Roboto_E2.zip file), you have a pretty clean looking ICS lock screen (See first attachment). Note I have also set the clock, etc. to be on the right side of the screen.
Now that that's done, onto the pattern lock :laugh: .
So, I don't particularly like the Gingerbread pattern lock anyway, and it looks especially horrible when everything around it is nice and ICS-y.
I found a page here which is a tutorial on how to change the look of the pattern lock, but the icons are the wrong colour and the wrong size, and some icons are missing.
For that reason, I've done the "hard" work for you :laugh: , so on to the tutorial ---->
Firstly, make a nandroid backup, although there shouldn't be much risk involved with this.
The apps you will need are Ninjamorph and to make things easy, a good file explorer, I personally use Ghost Commander.
You are now ready! The steps are as follows...
1. Open up Ninjamorph, grant SU permissions. I think you need to select "Start Checks" first.
2. Select "New Project", and locate framework-res.apk, it will be under /system/framework/ .
3. Although it backs up automatically, enter your file browser, go to /mnt/sdcard/AndroidThemes/workspace/framework-resapk/res/drawable-mdpi and copy the following files to a safe location on your sdcard:
btn_code_lock_default.png
btn_code_lock_touched.png
indicator_code_lock_drag_direction_green_up.png
indicator_code_lock_drag_direction_red_up.png
indicator_code_lock_point_area_default.png
indicator_code_lock_point_area_green.png
indicator_code_lock_point_area_red.png
ic_emergency.png
4. I have attached a zip file named "Lockscreen Icons.zip", in here you will find the icons to theme the pattern lock.
5. Unzip "Lockscreen Icons.zip", then copy the contents to /mnt/sdcard/AndroidThemes/workspace/framework-resapk/res/drawable-mdpi . Notice that the icon names are the same as the ones you backed up, and also the same size. If you feel the need to edit them, do not change the name or size and do not save them as anything other than png files.
6. Open up Ninjamorph and select "Start Checks" as usual (you may need to locate back to the main screen first).
7. Select "Finish Project", then select "framework-resapk".
8. It will ask you to verify, to which you say yes, then ask if you want to zipalign, to which you will say no, I repeat: Do NOT zipalign.
9. Blah blah blah, it will do it's thing, extract and recompile the apk.
10. Now you've just got to reboot! , then admire you're ICS style pattern lock .
I've attached some screenshots of the results, the first 3 are blue/ white theme (no interaction, interaction, wrong pattern) then default green/ red theme (no interaction, wrong pattern, interaction). Note that I have swapped btn_code_lock_default.png and btn_code_lock_touched.png as they were the wrong way round. It is too difficult to get a screenshot, but when the corretc pattern is drawn the small rings/ nodes open up (become "o"s instead of filled in circles) again.
I hope this has helped, please thank me if it has and happy theming .
Media icons + emergency call icon
All screenshots attached at bottom and also in zip file.
I have now extracted the media icons (play, pause, etc.) from the CyanogenMod 9 framework-res.apk and put together this guide so you can make your G1 even more good looking. I have done this as, although CM7 themes do change media icons, as previously mentioned, the lockscreen is not effected
but no worries :victory: just read on --->
1. Read the above tutorial so you have everything you need, etc.
2. Once you have gotten up to step 2, stop reading and follow this insead --->
3. Enter your file browser, go to /mnt/sdcard/AndroidThemes/workspace/framework-resapk/res/drawable-mdpi and copy the following files to a safe location on your sd card:
ic_media_ff.png
ic_media_next.png
ic_media_pause.png
ic_media_play.png
ic_media_previous.png
ic_media_rew.png
4. I have attached a zip file named "Media Icons.zip", in here you will find the icons to theme the media icons.
5. Unzip "Media Icons.zip", then copy the contents to /mnt/sdcard/AndroidThemes/workspace/framework-resapk/res/drawable-mdpi . Notice that the icon names are the same as the ones you backed up, and also the same size (as in image size (width, etc.), not file size). If you feel the need to edit them, do not change the name or size and do not save them as anything other than png files.
6. Open up Ninjamorph and select "Start Checks" as usual (you may need to locate back to the main screen first).
7. Select "Finish Project", then select "framework-resapk".
8. It will ask you to verify, to which you say yes, then ask if you want to zipalign, to which you will say no, I repeat: Do NOT zipalign.
9. Blah blah blah, it will do it's thing, extract and recompile the apk.
10. Now you've just got to reboot!
I have also attached "Emergency Call Icons.zip", this themes the emergency call button (transparent background, grey call icon and blue on press). Do the same as above with btn_default_pressed.9.png, btn_default_transparent_normal.9.png and ic_emergency.png .
I will attach some screenshots later. Hope you like it , if you do, thank me and happy theming. :good:
Looks awesome!
galaxyace152 said:
Looks awesome!
Click to expand...
Click to collapse
Why...are you here?
King ACE said:
Why...are you here?
Click to expand...
Click to collapse
and y r u here ?
King ACE said:
Why...are you here?
Click to expand...
Click to collapse
I can be wherever I wanna be!
Anyways, I saw this thread on the Portal!
Thanks!
galaxyace152 said:
Looks awesome!
Click to expand...
Click to collapse
Glad you like it
Nice work. Had to modify the zip for my ldpi Wildfire. Anyone interested in resized zip for ldpi?
Thanks
3RMD said:
Nice work. Had to modify the zip for my ldpi Wildfire. Anyone interested in resized zip for ldpi?
Click to expand...
Click to collapse
Yeah, forgot to say, but obviously anyone feel free to make this better / resize for another device , This isn't all my original work as half the icons are resized and recoloured from another device.
Samsung Galaxy S II T989
Can someone resize the icons for the Galaxy S II T989 PLEASE?
The Dots are to small for my phone can someone teach me to rezsize or do it for me Please?
-Thanks
Found Out how to make them Bigger
USe this online editing tool h_tt_p://_pixlr.c_o_m/editor/ Without underscores , It wouldnt let me post the link...
Any who just use the lockscreen download which is provided in this thread, and open up the link...Locate the folder and one by one in the editing tool, go under IMAGINE and under imagine click on Imagine size to 120Pixels or what ever you like for every picture EXCEPT these two "indicator_code_lock_drag_direction_green_up" & "indicator_code_lock_drag_direction_red_up" I Did these for my Galaxy S II T989 using NinjaMorph...
Sorry for Double posting
I was looking for a guide like this, because I don't like the pattern lock of cm7 the dots are overlapped, etc. But I follow your steps and all, and after ninjamorph rebooted my phone, it went onto a bootloop. Why? What did I do wrong? Luckily, I made a backup before doing this, but I wonder why I can't have the ICS pattern style...
rolo143 said:
I was looking for a guide like this, because I don't like the pattern lock of cm7 the dots are overlapped, etc. But I follow your steps and all, and after ninjamorph rebooted my phone, it went onto a bootloop. Why? What did I do wrong? Luckily, I made a backup before doing this, but I wonder why I can't have the ICS pattern style...
Click to expand...
Click to collapse
hmm... Did you make sure Ninjamorph had fully finished (there should be a message saying "all done" and if it worked your wallpaper would have reset before a reboot). You say ninjamorph rebooted your phone - do you actually mean this, as it should tell you to reboot, but should not reboot for you; if it froze and rebooted, that means something didn't. work .
I can't remember if there are hdpi etc. folders but also make sure you're sticking everything into the drawable-mdpi folder and that you're replacing files as opposed to just making copies (filename.png, filename-1.png etc.).
The only other thing I can think of is that I've made a typo (unlikely as obviously I tested these myself first) or your framework-res is weird (I practicaly pulled that idea out my ar*e - I highly doubt this is the case). I think all you can do is tell me what rom you're on and which theme (blue or green) you used..... it would help alot if you could PM me your unthemed framework-res.apk if at all possible.
I hoped this helps and sorry for the late reply, but if all goes well you might want to check out post 2: I've got stuff for media icons + emergency call button
One last thought... I've been assuming you're trying this on a g1... if not then the sizing is probably incorrect (sorry, just checking )
HTCDreamOn said:
hmm... Did you make sure Ninjamorph had fully finished (there should be a message saying "all done" and if it worked your wallpaper would have reset before a reboot). You say ninjamorph rebooted your phone - do you actually mean this, as it should tell you to reboot, but should not reboot for you; if it froze and rebooted, that means something didn't. work .
I can't remember if there are hdpi etc. folders but also make sure you're sticking everything into the drawable-mdpi folder and that you're replacing files as opposed to just making copies (filename.png, filename-1.png etc.).
The only other thing I can think of is that I've made a typo (unlikely as obviously I tested these myself first) or your framework-res is weird (I practicaly pulled that idea out my ar*e - I highly doubt this is the case). I think all you can do is tell me what rom you're on and which theme (blue or green) you used..... it would help alot if you could PM me your unthemed framework-res.apk if at all possible.
I hoped this helps and sorry for the late reply, but if all goes well you might want to check out post 2: I've got stuff for media icons + emergency call button
One last thought... I've been assuming you're trying this on a g1... if not then the sizing is probably incorrect (sorry, just checking )
Click to expand...
Click to collapse
Thanks for your reply, I'm not using a G1 I tried this on a Live with Walkman, but for what I know I think it's the same resolution, (320x480) and I followed every step in order, I even tried replacing files with the ninjamorph app, and with the root explorer too, but nothing seems to work, when my phone reboots it always goes into a bootloop, is it possible for you to upload the framework-res.apk? If you need mine I can upload it, just tell me, I'm using CM7.2 official rom, with the default kernel that comes with the rom. I don't know where did I go wrong. :/
rolo143 said:
Thanks for your reply, I'm not using a G1 I tried this on a Live with Walkman, but for what I know I think it's the same resolution, (320x480) and I followed every step in order, I even tried replacing files with the ninjamorph app, and with the root explorer too, but nothing seems to work, when my phone reboots it always goes into a bootloop, is it possible for you to upload the framework-res.apk? If you need mine I can upload it, just tell me, I'm using CM7.2 official rom, with the default kernel that comes with the rom. I don't know where did I go wrong. :/
Click to expand...
Click to collapse
If you're using a different phone then perhaps there is a different naming scheme or dimensions or something (but probably not because you're using the same ROM) not entirely sure but it would help alot if you uploaded / PMed me your (unmodded) framework-res.apk . Thanks
what about drag path
do you maybe know how to make drag path (trace) thinner...? like this
???
filix97 said:
do you maybe know how to make drag path (trace) thinner...? like this
???
Click to expand...
Click to collapse
No, sorry, I believe this is probably coded into an xml somewhere.
HTCDreamOn said:
No, sorry, I believe this is probably coded into an xml somewhere.
Click to expand...
Click to collapse
thanks for information
Will this method work for CM9.1? If not, is there a thread that details how to?
Thanks
HTCDreamOn said:
Featured on XDA Portal Thanks guys!
Also, thanks to zhuhang for including this in his CM7 ICS / Jelly bean look and All in One ICS patch thread
UPDATE: You can now choose between ICS blue/ white style colours or the default green/ red colours for the lock rings, etc., I have attached different the applicable zips ("Lockscreen Icons ICS Blue.zip" and "Lockscreen Icons Default.zip")
Hi XDA
This is my first attempt at doing some DIY themeing, this is very simple and did not take very long to do. Before I say anything else, bear in mind you must have root, and I am not responsible if your device is bricked, set alight or abducted by aliens due to this tutorial.
Screenshots are attached
On the G1, by installing CM7 it is possible to end up with a very nice ICS looking UI. You can do this through applying AChep's ICS theme, installing the Roboto font from ICS using an app such as Type Fresh from Pixelpod INTERNATIONAL and finally from finding ports of actual ICS apps, such as Holo Launcher by Mobint.
There is one problem though, which is that the lock screen is untouchable by themes such as Sonny Sekhon's.
And so we realize that we must theme it ourselves!
The actual lockscreen itself shouldn't be a problem, as CM7 has the option to use a holo style lock ring and to be set to "minimal", and once you have installed the ICS clock font for Clockopia (note that this isn't Roboto) found here (it's in the FontPack-Roboto_E2.zip file), you have a pretty clean looking ICS lock screen (See first attachment). Note I have also set the clock, etc. to be on the right side of the screen.
Now that that's done, onto the pattern lock :laugh: .
So, I don't particularly like the Gingerbread pattern lock anyway, and it looks especially horrible when everything around it is nice and ICS-y.
I found a page here which is a tutorial on how to change the look of the pattern lock, but the icons are the wrong colour and the wrong size, and some icons are missing.
For that reason, I've done the "hard" work for you :laugh: , so on to the tutorial ---->
Firstly, make a nandroid backup, although there shouldn't be much risk involved with this.
The apps you will need are Ninjamorph and to make things easy, a good file explorer, I personally use Ghost Commander.
You are now ready! The steps are as follows...
1. Open up Ninjamorph, grant SU permissions. I think you need to select "Start Checks" first.
2. Select "New Project", and locate framework-res.apk, it will be under /system/framework/ .
3. Although it backs up automatically, enter your file browser, go to /mnt/sdcard/AndroidThemes/workspace/framework-resapk/res/drawable-mdpi and copy the following files to a safe location on your sdcard:
btn_code_lock_default.png
btn_code_lock_touched.png
indicator_code_lock_drag_direction_green_up.png
indicator_code_lock_drag_direction_red_up.png
indicator_code_lock_point_area_default.png
indicator_code_lock_point_area_green.png
indicator_code_lock_point_area_red.png
ic_emergency.png
4. I have attached a zip file named "Lockscreen Icons.zip", in here you will find the icons to theme the pattern lock.
5. Unzip "Lockscreen Icons.zip", then copy the contents to /mnt/sdcard/AndroidThemes/workspace/framework-resapk/res/drawable-mdpi . Notice that the icon names are the same as the ones you backed up, and also the same size. If you feel the need to edit them, do not change the name or size and do not save them as anything other than png files.
6. Open up Ninjamorph and select "Start Checks" as usual (you may need to locate back to the main screen first).
7. Select "Finish Project", then select "framework-resapk".
8. It will ask you to verify, to which you say yes, then ask if you want to zipalign, to which you will say no, I repeat: Do NOT zipalign.
9. Blah blah blah, it will do it's thing, extract and recompile the apk.
10. Now you've just got to reboot! , then admire you're ICS style pattern lock .
I've attached some screenshots of the results, the first 3 are blue/ white theme (no interaction, interaction, wrong pattern) then default green/ red theme (no interaction, wrong pattern, interaction). Note that I have swapped btn_code_lock_default.png and btn_code_lock_touched.png as they were the wrong way round. It is too difficult to get a screenshot, but when the corretc pattern is drawn the small rings/ nodes open up (become "o"s instead of filled in circles) again.
I hope this has helped, please thank me if it has and happy theming .
Click to expand...
Click to collapse
richdav1971 said:
Will this method work for CM9.1? If not, is there a thread that details how to?
Thanks
Click to expand...
Click to collapse
No need, this is attempting to emulate the look of the ICS lock rings, which is what you've got already
btw please don't quote the entire OP thanks

[fix] s5 port dwnld booster toggle [fix]

I've been using @ktetreault14's and @cdmvirt's S5 port ROMs for some time now (which by the way, are both amazing, I honestly salute your guys' work), and being extremely particular with regards to small details, I noticed that the Download Booster toggle, though it does show up in the Settings under notification panel, never actually makes to the SystemUI - statusbar toggles. I'm not sure as to whether this was just an issue I was experiencing, perhaps I was doing something wrong while setting up the ROM, however, being new and not being able to post on the development forum, I wasn't really able to see if anyone else was experiencing this.
Nevertheless, I managed to figure out how to enable it, if indeed you were not able to get the 'NetworkBooster' toggle to show up in the statusbar toggles.
---------INSTRUCTIONS--------
1. Go to the Google Drive links below and download the noti_pane_netw_boos.zip AND the SystemUI(corrected toggles).apk.
2. Rename your current SystemUI.apk in system/priv-app/ to SystemUI.apk.bak, or simply back it up just in case.
***MAKE SURE TO DO NANDROID BACKUP BEFORE NEXT STEP IN CASE FOR WHATEVER REASON A PROBLEM ARISES***
3. Reboot into recovery mode (I was using Philz), clear dalvik cache, and flash the 'noti_pane_netw_boos.zip'.
4. Reboot your device.
***NOTE: YOU MUST ADD THE 'WifiCalling' TOGGLE INTO THE 'Settings.db' 'system' TABLE, NOT 'NetworkBooster'. ***
i.e. If you use the SQLite method to add/remove quick toggles, go to SettingsStorage.apk in SQLite Editor, go to Settings.db, then go to 'system' table, then for the value of 'notification_panel_active_apps_list', add 'WifiCalling;', making sure to not add any spaces and to end the line with a ';' (semi-colon).
----> If you use the method of going into csc/feature.xml or csc/others.xml and adding the quick toggles in the <CscFeature_Settings_DefNotificationPanelOrder> and <CscFeature_Settings_DefQuickPanelOrder> tags, simply do the same. Add 'WifiCalling;' at the end of the list.
5. Reboot device once again in order to allow the above changes to take place, and you should have the download booster toggle in the statusbar.
Let me know if you have any issues or questions.
Regards
Downloads:
https://drive.google.com/file/d/0B9pnKfhbmNouaXFMOTc5THpLbm8/edit?usp=sharing
https://drive.google.com/file/d/0B9pnKfhbmNouZEh3TUF6MlRUUjA/edit?usp=sharing
Screenshots:
amazing man. Can i include this in the next release?
For sure, no problem man haha I was using your ROM to test also so hopefully should work properly
Sent from my SM-G900T using XDA Free mobile app
Hey man very strong favor. I have a system ui that i will ask you to do the corrected toggle mod to? I would like to add to rom
Hey man can you mod that system ui to bring sfinder and quick connect buttons off
sahkha_92 said:
I've been using @ktetreault14's and @cdmvirt's S5 port ROMs for some time now (which by the way, are both amazing, I honestly salute your guys' work), and being extremely particular with regards to small details, I noticed that the Download Booster toggle, though it does show up in the Settings under notification panel, never actually makes to the SystemUI - statusbar toggles. I'm not sure as to whether this was just an issue I was experiencing, perhaps I was doing something wrong while setting up the ROM, however, being new and not being able to post on the development forum, I wasn't really able to see if anyone else was experiencing this.
Nevertheless, I managed to figure out how to enable it, if indeed you were not able to get the 'NetworkBooster' toggle to show up in the statusbar toggles.
---------INSTRUCTIONS--------
1. Go to the Google Drive links below and download the noti_pane_netw_boos.zip AND the SystemUI(corrected toggles).apk.
2. Rename your current SystemUI.apk in system/priv-app/ to SystemUI.apk.bak, or simply back it up just in case.
***MAKE SURE TO DO NANDROID BACKUP BEFORE NEXT STEP IN CASE FOR WHATEVER REASON A PROBLEM ARISES***
3. Reboot into recovery mode (I was using Philz), clear dalvik cache, and flash the 'noti_pane_netw_boos.zip'.
4. Reboot your device.
***NOTE: YOU MUST ADD THE 'WifiCalling' TOGGLE INTO THE 'Settings.db' 'system' TABLE, NOT 'NetworkBooster'. ***
i.e. If you use the SQLite method to add/remove quick toggles, go to SettingsStorage.apk in SQLite Editor, go to Settings.db, then go to 'system' table, then for the value of 'notification_panel_active_apps_list', add 'WifiCalling;', making sure to not add any spaces and to end the line with a ';' (semi-colon).
----> If you use the method of going into csc/feature.xml or csc/others.xml and adding the quick toggles in the <CscFeature_Settings_DefNotificationPanelOrder> and <CscFeature_Settings_DefQuickPanelOrder> tags, simply do the same. Add 'WifiCalling;' at the end of the list.
5. Reboot device once again in order to allow the above changes to take place, and you should have the download booster toggle in the statusbar.
hi i unable to boot the phone. i must go back.
thanks
Click to expand...
Click to collapse

[MODS] TWRP Flashable Magisk Module Maker-Aroma installer

This is a Magisk Module Maker that converts various Mods of mine into TWRP flashable Magisk Modules.
Flash the Aroma installer in TWRP. Select and flash all the enclosed mods you want (after each selection is flashed and you want more, hit next, tick the check box at the top of the page, hit Finish and it takes you back to select more). When done, hit Finish. You will back in TWRP, hit the back button and go to Install. Find a folder on your sdcard called "Magisk". Inside there is a Magisk module called "Magisk.zip". Flash and reboot. These are the same mods from my other post but are for people using Magisk.
Now an Add-On selection in case you flash several mods but forgot or want to change some. It is the second selection. Flash it after you have flashed any additional mods. Afterwards, find and flash the Magisk.zip
Options
Internet speed - Up over Down- select position far left or to left of Icons on the right side, or center of statusbar. Indicators can be colored individually 6 different colors
Optional internet speed, single line. Strongest signal is shown. Left side, center, and by WiFi placements are available. Same color options.
Clock position - Center Clock not showing on Lockscreen
Dynamic Navbar, 8 sizes
Regular Navbar, 8 sizes
Battery text, with or without Battery Icon
Invisible screen-off Power Menu Button on far right hand side of status bar with option to remove.
Option of Invisible screen-off Power menu button on right side of Navbar in portrait mod and/or on the top side in Landscape mode.
Dpad left and right on the Navbar, poitrait and landscape options.
3Minit Battery
Settings Theme Colors
QS background Theme Colors
Colored Statusbar Icons - 6 to Choose From
Colored Navbar Icons - 6 to Choose From (Matches Statusbar)
Colored notification backgrounds
Colored notification text
Custom one percent battery mod enabler and 7 custom batteries to choose from.
Colored Halo Ring. You can match the other colors if you choose to.
Rainbow Battery
If you are going to install 3Minit Battery, you must install the 3Minit Resources apk, Prior to flashing that module.
I have flashed most of these myself but as always, have a backup. Signature disabling and Black Google bootanimation, loud effect ticks aren't working at this time. Flash at your own risk.
Credits:
topjohnwu for Magisk
https://forum.xda-developers.com/apps/magisk
aureljared for his enhanced VRthemer called Eviltheme
https://forum.xda-developers.com/showthread.php?t=2774436
djb77 for pairing the two together and making an "On the Fly" Module Maker
https://forum.xda-developers.com/apps/magisk/mod-magisk-module-template-eviltheme-t3590766
3 Minit Resources apk
https://www.androidfilehost.com/?fid=529152257862670024
Magisk Module Maker
https://www.androidfilehost.com/?fid=961840155545584994
Mega
https://mega.nz/#!NQJlXZxA!ZoOCKke5wPxPqi432ivDOiNWpYnb0f2ZnBGQAODRWiE
Hi!
Thanks for all your help in the other thread.
I am trying to figure out exactly what steps I need to take as this whole thing is pretty confusing. Lets just say all I want to do is have a day of the week show up in the status bar. What steps am I missing here?
1. decompile the framework framework-res.apk and install it
2. decompile the SystemUIGoogle.apk
3. go into the SystemUIGoogle.apk FOLDER and look for status_bar.xml
4. Change out the code
5. Save the status_bar.xml
6. Place the newly edited status_bar.xml in my eviltheme folder in /system/priv-app/SystemUIGoogle
Now obviously I am way wrong but I thought that was the whole point; that this thing just pulls the XML instead of messing with my APKs? Can you please help me with the steps that I am doing wrong? Or am I not understanding this program correctly?
daddylonglegs said:
Hi!
Thanks for all your help in the other thread.
I am trying to figure out exactly what steps I need to take as this whole thing is pretty confusing. Lets just say all I want to do is have a day of the week show up in the status bar. What steps am I missing here?
1. decompile the framework framework-res.apk and install it
2. decompile the SystemUIGoogle.apk
3. go into the SystemUIGoogle.apk FOLDER and look for status_bar.xml
4. Change out the code
5. Save the status_bar.xml
6. Place the newly edited status_bar.xml in my eviltheme folder in /system/priv-app/SystemUIGoogle
Now obviously I am way wrong but I thought that was the whole point; that this thing just pulls the XML instead of messing with my APKs? Can you please help me with the steps that I am doing wrong? Or am I not understanding this program correctly?
Click to expand...
Click to collapse
1. You do not have to decompile the framework-res.apk unless you want to mod it. Just install it.
2. Yes
3. When I was talking about folders I meant how things were put into the eviltheme folder. Same premise, though once it is decompiled, so yes.
4. Yes using notepad++ or something similar.
5. Yes
6. No, you must recompile your SystemUIGoogle.apk first. Then unzip it with 7zip, take out your status_bar.xml and put it in evilthheme folder like this: system/priv-app/SystemUIGoogle.apk/res/layout
Those are folder names, not your actual SystemUIGoogle.apk. you must tell it the exact pathway to where your modded file goes. Look at your SystemUIGoogle.apk after you decompile it. It is no longer a apk, now it is folders and files.
Flash my Aroma, however many mods you want. Then flash the very first one, the Magisk Module maker. You don't have to install it. Reboot system, in file explorer, go to the new folder on your sdcard called magisk, find the magisk.zip, unzip it and look at the folder structure.
Tulsadiver said:
6. No, you must recompile your SystemUIGoogle.apk first. Then unzip it with 7zip, take out your status_bar.xml and put it in evilthheme folder like this: system/priv-app/SystemUIGoogle.apk/res/layout
Click to expand...
Click to collapse
OK so I did this (my confusion came from the fact that I did not realize that the status_bar.xml was different when the APK is recompiled!)
However, I do not have an eviltheme folder anywhere on my Pixel. Was I supposed to install EvilTheme along with the zip you made for me? Or just your zip?
daddylonglegs said:
Hi!
Thanks for all your help in the other thread.
I am trying to figure out exactly what steps I need to take as this whole thing is pretty confusing. Lets just say all I want to do is have a day of the week show up in the status bar. What steps am I missing here?
1. decompile the framework framework-res.apk and install it
2. decompile the SystemUIGoogle.apk
3. go into the SystemUIGoogle.apk FOLDER and look for status_bar.xml
4. Change out the code
5. Save the status_bar.xml
6. Place the newly edited status_bar.xml in my eviltheme folder in /system/priv-app/SystemUIGoogle
Now obviously I am way wrong but I thought that was the whole point; that this thing just pulls the XML instead of messing with my APKs? Can you please help me with the steps that I am doing wrong? Or am I not understanding this program correctly?
Click to expand...
Click to collapse
Ok. Correct me if I'm wrong Tulsadiver...
But I believe what you want to do is:
1. Pull the required APKs from your phone.
2. Decompile them.
3. Mod them accordingly to what you wish.
4. Recompile them. (Do not push them to the phone)
5. Extract as .zip, find the files you modded, and now put folders accordingly in the eviltheme folder as is to the needs of your device. (For instance, /system/priv-app/SystemUIGoogle.apk/res/anim/your file here.xml(don't quote me on it, I'm guessing that's where things are)).
Don't ask me why it's nessessary to recompile them. Something to do with signature checking if I remember and understand right.
Correct me if I'm wrong Tulsadiver, just trying to help this lost soul with my own understanding.
daddylonglegs said:
OK so I did this (my confusion came from the fact that I did not realize that the status_bar.xml was different when the APK is recompiled!)
However, I do not have an eviltheme folder anywhere on my Pixel. Was I supposed to install EvilTheme along with the zip you made for me? Or just your zip?
Click to expand...
Click to collapse
The eviltheme folder is inside the magisk.zip I gave you. That is a magisk module template.
Truant_Luce said:
Ok. Correct me if I'm wrong Tulsadiver...
But I believe what you want to do is:
1. Pull the required APKs from your phone.
2. Decompile them.
3. Mod them accordingly to what you wish.
4. Recompile them. (Do not push them to the phone)
5. Extract as .zip, find the files you modded, and now put folders accordingly in the eviltheme folder as is to the needs of your device. (For instance, /system/priv-app/SystemUIGoogle.apk/res/anim/your file here.xml(don't quote me on it, I'm guessing that's where things are)).
Don't ask me why it's nessessary to recompile them. Something to do with signature checking if I remember and understand right.
Correct me if I'm wrong Tulsadiver, just trying to help this lost soul with my own understanding.
Click to expand...
Click to collapse
You have to recompile them because that is the way they are on your phone. What Apktool does is decodes the files so you can read them, kind of like decrypts them. They have to be back in their original form or your phone can't read them. The entire apk would need original signature but we are only talking about edited xml's here.
@Truant_Luce Thank you! Yes that is exactly what was confusing me. I thought he was telling me to recompile in order to push the apk back to the device! No wonder I was so confused My fault! I really appreciate your reply.
Tulsadiver said:
The eviltheme folder is inside the magisk.zip I gave you. That is a magisk module template.
Click to expand...
Click to collapse
OK so open the zip you gave me, put the xml file in the magisk folder, zip it up again, and then install the zip?
daddylonglegs said:
@Truant_Luce Thank you! Yes that is exactly what was confusing me. I thought he was telling me to recompile in order to push the apk back to the device! No wonder I was so confused My fault! I really appreciate your reply.
OK so open the zip you gave me, put the xml file in the magisk folder, zip it up again, and then install the zip?
Click to expand...
Click to collapse
Yes, put the xml in the folder order that was discussed. Zip up the contents of the magisk folder, not the folder itself. In other words, select common folder through config.sh, not magisk itself.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Tulsadiver said:
Yes, put the xml in the folder order that was discussed. Zip up the contents of the magisk folder, not the folder itself. In other words, select common folder through config.sh, not magisk itself.
View attachment 4215877
Click to expand...
Click to collapse
OK I did this. Unfortunately when I get to the home screen trying to load it has the default background (mine is removed) and says "Android is starting...." and never loads.
I tried to install the .zip you had uploaded that supposedly fixes the SystemUI if this happens but unfortunately it did not work.
Any advice to get this or my phone booting again would be appreciated. I am not sure how such a tiny modification to the clock could render my phone unusable.
daddylonglegs said:
OK I did this. Unfortunately when I get to the home screen trying to load it has the default background (mine is removed) and says "Android is starting...." and never loads.
I tried to install the .zip you had uploaded that supposedly fixes the SystemUI if this happens but unfortunately it did not work.
Any advice to get this or my phone booting again would be appreciated. I am not sure how such a tiny modification to the clock could render my phone unusable.
Click to expand...
Click to collapse
Upload your zip.
You might have to do a factory reset in twrp. You have to setup your phone like new but I have done it and have not lost data.
Tulsadiver said:
Yes, put the xml in the folder order that was discussed. Zip up the contents of the magisk folder, not the folder itself. In other words, select common folder through config.sh, not magisk itself.
View attachment 4215877
Click to expand...
Click to collapse
Tulsadiver said:
Upload your zip.
You might have to do a factory reset in twrp. You have to setup your phone like new but I have done it and have not lost data.
Click to expand...
Click to collapse
Here you go. I really hope I can manage to get this running without a factory reset. Thank you for helping me.
daddylonglegs said:
Here you go. I really hope I can manage to get this running without a factory reset. Thank you for helping me.
Click to expand...
Click to collapse
You can also fastboot flash your firmware again. First try uploading my Aroma. Select the nexus navbar rainbow battery (selection 64) a navbar height mod (say #28) so you get systemui and frameworks involved. Flash the magisk module. Exit the Aroma and while still in twrp, go back to install, find the magisk.zip in the magisk folder on your sdcard and flash it.
Tulsadiver said:
You can also fastboot flash your firmware again. First try uploading my Aroma. Select the nexus navbar rainbow battery (selection 64) a navbar height mod (say #28) so you get systemui and frameworks involved. Flash the magisk module. Exit the Aroma and while still in twrp, go back to install, find the magisk.zip in the magisk folder on your sdcard and flash it.
Click to expand...
Click to collapse
OK, flash which magisk.zip? xdahelpermagiskFINAL.zip?
daddylonglegs said:
OK, flash which magisk.zip? xdahelpermagiskFINAL.zip?
Click to expand...
Click to collapse
There will only be one called magisk.zip
I noticed in your xml that you took the stock clock completely off and replaced it with a text clock. What I do is leave the stock clock but put in 0.0dip for both the layout width and height so it doesn't show up. I believe you have to have it there though.
I fixed it if you want to try and flash it first.
Tulsadiver said:
You can also fastboot flash your firmware again. First try uploading my Aroma. Select the nexus navbar rainbow battery (selection 64) a navbar height mod (say #28) so you get systemui and frameworks involved. Flash the magisk module. Exit the Aroma and while still in twrp, go back to install, find the magisk.zip in the magisk folder on your sdcard and flash it.
Click to expand...
Click to collapse
I am in a thing that says "Mod options" and I see a bunch listed. None say "navbar rainbow battery". I even counted down 64 lines and 28 lines and they don't match up with what you are saying
---------- Post added at 09:43 PM ---------- Previous post was at 09:20 PM ----------
Never mind. I found the ones you probably meant. I get a "System UI has stopped" and can't do anything when i boot my phone.
daddylonglegs said:
I am in a thing that says "Mod options" and I see a bunch listed. None say "navbar rainbow battery". I even counted down 64 lines and 28 lines and they don't match up with what you are saying
---------- Post added at 09:43 PM ---------- Previous post was at 09:20 PM ----------
Never mind. I found the ones you probably meant. I get a "System UI has stopped" and can't do anything when i boot my phone.
Click to expand...
Click to collapse
Sorry, my Nexus 5X just died about an hour ago and I've been talking with Google about a replacement.
You will probably have to fastboot flash your system firmware again if you don't want to factory reset.
Tulsadiver said:
Sorry, my Nexus 5X just died about an hour ago and I've been talking with Google about a replacement.
You will probably have to fastboot flash your system firmware again if you don't want to factory reset.
Click to expand...
Click to collapse
OK.
So what exactly was the reason this would not work on my Pixel but it worked on yours? :CONFUSED:
daddylonglegs said:
So what exactly was the reason this would not work on my Pixel but it worked on yours? :CONFUSED:
Click to expand...
Click to collapse
It didn't. Just flashed it. I took another look at your status_bar.xml. You left off the original clock and your layout gravity was wrong. Should have been android:gravity not android:layout_gravity

[ROOT HD 10] Enable advanced power menu (global actions) + my other framework mods!

*****ONLY WORKS FOR FIREOS 5.6.2.0 OR LOWER*****
The title says it all. I've activated the stock global actions power menu. The options need tweaking a bit still, but this was too good to wait.
For the moment, without an Xposed module, the stock options are: Airplane Mode, Settings, Lock Now, and volume. With Gravitybox, you can add power (might be stock. I noticed this after gravitybox was installed), restart (which leads to soft reboot, reboot, recovery reboot and boot loader reboot).
How?
One minor edit to the framework was all it took. The menu was disabled, the value set to 0. Change the value to 1, and you get the menu. Simply long press the power button for a couple of seconds and it will pop up.
I have been trying for so long to get this to work. I looked at the configuration dozens of times and didn't figure out what it meant until today. This needs a bit more work and can probably be added to my settings.apk, but that's for another day.
Requirements:
Rooted HD 10 on FireOS ***5.6.1.0 or 5.6.2.0****
Windows PC with ADB
Installation:
1. Download and install adbd insecure.
2. Download and place the attached framework-res.apk in your ADB folder and plug your tablet into your PC.
3. Open adbd insecure and check the top box to make adb insecure. Open an adb window and type the following, hitting enter at the end of each line:
Code:
adb remount
adb push framework-res.apk /system/framework/framework-res.apk
adb reboot
4. Long press power button. Score. :highfive:
P.S. This framework also contains all previous modifications. References:
How to guide: Enable 'ok Google' to work from ANY screen
[ROOT] [HD 10 2017] FireTabletSettings.apk Rewritten [August 22, 2018]
[FIRMWARE] [STOCK] Pre-rooted, optimized, stock firmware for HD 10 Suez [APRIL 2019]
[Root] [HD 10 Suez] Remove parental control applications/restrictions [May 2019]
[TEST] [Flash Zip] [HD 10] [ROOT] All-in-1: The ultimate hacks, tricks & mods zip
[Root] [App] [All tablets] Disable & replace lock screen - set custom wallpaper
NO ROOT REQUIRED: Working Screen Mirroring
UPDATE (for 5.6.1.0):
June 1, 2019
- Increased default system volumes from -6 db to 8
- Set preference for 5ghz wifi to false. Setting this to true only allows 5ghz connections. 2ghz are ignored if set to true.
- Fixed typo in time server I found in the system logs.
- Extend network attributes (I don't know if these actually work but doesn't hurt either way)
- Wpa_supplicant_scan_interval by default is set to 15000.... milliseconds. Raised value to 150000000. This may have been the cause of disconnects on a constant level.
- preferences prefer dual pane set to true
- Bar separating notifications from system messages was narrow (set to true). Set it to false.
- Low battery warning is now 10% instead of 25%. Extreme low battery warning (almost dead battery) set at 5%
DragonFire1024 said:
The title says it all. I've activated the stock global actions power menu. The options need tweaking a bit still, but this was too good to wait.
For the moment, without an Xposed module, the stock options are: Airplane Mode, Settings, Lock Now, and volume. With Gravitybox, you can add power (might be stock. I noticed this after gravitybox was installed), restart (which leads to soft reboot, reboot, recovery reboot and boot loader reboot).
How?
One minor edit to the framework was all it took. The menu was disabled, the value set to 0. Change the value to 1, and you get the menu. Simply long press the power button for a couple of seconds and it will pop up.
I have been trying for so long to get this to work. I looked at the configuration dozens of times and didn't figure out what it meant until today. This needs a bit more work and can probably be added to my settings.apk, but that's for another day.a
Requirements:
Rooted HD 10 on FireOS ***5.6.1.0*** (5.6.2.0 comes soon. Possibly 5.3.x.x)
Windows PC with ADB
Installation:
1. Download and install adbd insecure.
2. Download and place the attached framework-res.apk in your ADB folder and plug your tablet into your PC.
3. Open adbd insecure and check the top box to make adb insecure. Open an adb window and type the following, hitting enter at the end of each line:
Code:
adb remount
adb push framework-res.apk /system/framework/framework-res.apk
adb reboot
4. Long press power button. Score. :highfive:
Click to expand...
Click to collapse
I have updated to the latest, 5.6.3.0 (erroneously called 5.3.6.4). I guess it is risky to do this until someone tries it and says it works? I've been using retyre's prerooted installs for the last couple of releases. So if this screws things up, I would have to adb sideload and root again, which I'd like to avoid.
Ignoring that issue, can the file just be copied into the correct folder with a file manager since I'm already rooted?
sga999 said:
The title says it all. I've activated the stock global actions power menu. The options need tweaking a bit still, but this was too good to wait.
For the moment, without an Xposed module, the stock options are: Airplane Mode, Settings, Lock Now, and volume. With Gravitybox, you can add power (might be stock. I noticed this after gravitybox was installed), restart (which leads to soft reboot, reboot, recovery reboot and boot loader reboot).
How?
One minor edit to the framework was all it took. The menu was disabled, the value set to 0. Change the value to 1, and you get the menu. Simply long press the power button for a couple of seconds and it will pop up.
I have been trying for so long to get this to work. I looked at the configuration dozens of times and didn't figure out what it meant until today. This needs a bit more work and can probably be added to my settings.apk, but that's for another day.a
Requirements:
Rooted HD 10 on FireOS ***5.6.1.0*** (5.6.2.0 comes soon. Possibly 5.3.x.x)
Windows PC with ADB
Installation:
1. Download and install adbd insecure.
2. Download and place the attached framework-res.apk in your ADB folder and plug your tablet into your PC.
3. Open adbd insecure and check the top box to make adb insecure. Open an adb window and type the following, hitting enter at the end of each line:
I have updated to the latest, 5.6.3.0 (erroneously called 5.3.6.4). I guess it is risky to do this until someone tries it and says it works? I've been using retyre's prerooted installs for the last couple of releases. So if this screws things up, I would have to adb sideload and root again, which I'd like to avoid.
Ignoring that issue, can the file just be copied into the correct folder with a file manager since I'm already rooted?
Click to expand...
Click to collapse
There was one report of it working a week or two ago. No one has said anything since. If it doesn't work, worst case is you need to flash back to 5.6.x.x
DragonFire1024 said:
There was one report of it working a week or two ago. No one has said anything since. If it doesn't work, worst case is you need to flash back to 5.6.x.x
Click to expand...
Click to collapse
1. If it fails, and I'm unable to boot, I will have to redo the sideload of the bin file. Then I have to reroot. As I said, I've just been using the prerooted version for the last couple of releases which means I don't have to go through extra steps to root. Since I am rooted, I just use Flashfire to flash the new prerooted version by retyre.
2. I was asking about copying the framework file that you put out there. If I ignore the problems of it possibly messing up my system, and I just want to try it anyway, why is it necessary to use Adb insecure and the PC? Since I'm rooted, can't your framework file just be copied to the correct folder?
3. Finally, can you tell me exactly what you changed in the framework? In your other thread about modifying the framework, you give some good instructions on how to decompile and recompile. I might want to try that instead of using the version that you have created here (since I'm on 5.6.3.0). Is it really just one boolean that needs to be changed?
sga999 said:
1. If it fails, and I'm unable to boot, I will have to redo the sideload of the bin file. Then I have to reroot. As I said, I've just been using the prerooted version for the last couple of releases which means I don't have to go through extra steps to root. Since I am rooted, I just use Flashfire to flash the new prerooted version by retyre.
2. I was asking about copying the framework file that you put out there. If I ignore the problems of it possibly messing up my system, and I just want to try it anyway, why is it necessary to use Adb insecure and the PC? Since I'm rooted, can't your framework file just be copied to the correct folder?
3. Finally, can you tell me exactly what you changed in the framework? In your other thread about modifying the framework, you give some good instructions on how to decompile and recompile. I might want to try that instead of using the version that you have created here (since I'm on 5.6.3.0). Is it really just one boolean that needs to be changed?
Click to expand...
Click to collapse
1. Yes
2. With a root explorer yes.
3. For this? An integer was all. Everything else? That's too much to type. Honestly I spend hours and days reading them testing and mostly failing. I can't tell you the amount of bookmarks i have, maybe close to 500 or more. A lot of times I have to mix together old tricks. you spend most time reading than anything.
DragonFire1024 said:
1. Yes
2. With a root explorer yes.
3. For this? An integer was all. Everything else? That's too much to type. Honestly I spend hours and days reading them testing and mostly failing. I can't tell you the amount of bookmarks i have, maybe close to 500 or more. A lot of times I have to mix together old tricks. you spend most time reading than anything.
Click to expand...
Click to collapse
I don't understand your answer to 3. I'm just interested in what you changed in the framework-res to get the advanced power menu. You said it's just an integer. If I decompile framework-res.apk, where is the integer that must be changed? When you said "everything else", maybe you mean all your changes in the thread about hacks, tricks, and mods? I'm not asking about those. I'm only asking about the advanced power menu that you are talking about in this thread.
sga999 said:
I don't understand your answer to 3. I'm just interested in what you changed in the framework-res to get the advanced power menu. You said it's just an integer. If I decompile framework-res.apk, where is the integer that must be changed? When you said "everything else", maybe you mean all your changes in the thread about hacks, tricks, and mods? I'm not asking about those. I'm only asking about the advanced power menu that you are talking about in this thread.
Click to expand...
Click to collapse
If you decompile it, it would be in res/values/integers. The config would be (paraphrasing) 'long_press_on_power'. Since in this AOSP framework the global actions are active, you have a choice of values of 0 or 1. 0 being no action, 1 being the action. It's a few lines away from 'long_press_on_home' which is supposed to be between 0 and 3. 2 would activate the voice assist. But for some reason I haven't figured out, setting that value does nothing one way or the other but gravitybox fixes it.
You can change around the global action menu too I saw, but didn't have time to experiment with that yesterday.
@DragonFire1024
Nice hack! Like your new power menu - always wanted something like that!
Now, given that it'd be such a burden to update this for every FireOS version, any chance you'd take a stab at putting this together as an Xposed module? Other rooted Fire tablets could use it too.
I recall sometime in the past there were modules designed for FireOS - if you find that on XDA, you could start from that one.
DragonFire1024 said:
If you decompile it, it would be in res/values/integers. The config would be (paraphrasing) 'long_press_on_power'. Since in this AOSP framework the global actions are active, you have a choice of values of 0 or 1. 0 being no action, 1 being the action. It's a few lines away from 'long_press_on_home' which is supposed to be between 0 and 3. 2 would activate the voice assist. But for some reason I haven't figured out, setting that value does nothing one way or the other but gravitybox fixes it.
You can change around the global action menu too I saw, but didn't have time to experiment with that yesterday.
Click to expand...
Click to collapse
Here's what is in my integers.xml file for 5.6.3.0. Are you saying I need to change 2 to 1 in the first one? And no changes to the others?
<integer name="config_longPressOnPowerBehavior">2</integer>
<integer name="config_shortPressOnPowerBehavior">1</integer>
<integer name="config_doublePressOnPowerBehavior">0</integer>
<integer name="config_triplePressOnPowerBehavior">0</integer>
@DragonFire1024, Have you edited smalis? It is for do it in the framework-res.apk of another tablet.
sga999 said:
Here's what is in my integers.xml file for 5.6.3.0. Are you saying I need to change 2 to 1 in the first one? And no changes to the others?
<integer name="config_longPressOnPowerBehavior">2</integer>
<integer name="config_shortPressOnPowerBehavior">1</integer>
<integer name="config_doublePressOnPowerBehavior">0</integer>
<integer name="config_triplePressOnPowerBehavior">0</integer>
Click to expand...
Click to collapse
Correct. First config set to 1 and leave the others as is, unless you want to test them out.
Rortiz2 said:
@DragonFire1024, Have you edited smalis? It is for do it in the framework-res.apk of another tablet.
Click to expand...
Click to collapse
I have not. I rarely touch that at least not Amazon smali. It doesn't translate well at all. And haven't really had to so far. And the framework is odexed...well the .jar in system/framework is, so they don't have smalis.
bibikalka said:
@DragonFire1024
Nice hack! Like your new power menu - always wanted something like that!
Now, given that it'd be such a burden to update this for every FireOS version, any chance you'd take a stab at putting this together as an Xposed module? Other rooted Fire tablets could use it too.
I recall sometime in the past there were modules designed for FireOS - if you find that on XDA, you could start from that one.
Click to expand...
Click to collapse
I was thinking about that however if gravity box works to bring out the rest (reboot etc) I imagine other power menu modules will also work now.
DragonFire1024 said:
I was thinking about that however if gravity box works to bring out the rest (reboot etc) I imagine other power menu modules will also work now.
Click to expand...
Click to collapse
Gravity box might work - AFTER your framework-res.apk replacement (which needs updating after each OS version). As is, for me Gravity does not bring anything out beyond the stock "Power off" option. It seems a module could simply patch framework with the correct flag, and then Gravity will do its thing. Same logic would apply to other features that Amazon might have chosen to disable.
bibikalka said:
Gravity box might work - AFTER your framework-res.apk replacement (which needs updating after each OS version). As is, for me Gravity does not bring anything out beyond the stock "Power off" option. It seems a module could simply patch framework with the correct flag, and then Gravity will do its thing. Same logic would apply to other features that Amazon might have chosen to disable.
Click to expand...
Click to collapse
Install framework in OP then you need to enable the advanced power menu in gravitybox, power tweaks. Then long press power button, tap restart, then you get your options for reboot.
Rortiz2 said:
@DragonFire1024, Have you edited smalis? It is for do it in the framework-res.apk of another tablet.
Click to expand...
Click to collapse
Also for the most part Amazon just moved configurations around maybe changed a few characters or couple of words. But for the most part a significant portion if not almost all of the Android source for this version was left inside these files. There are very few things I actually had to rebuild. The battery stats is one of those things. Other things are more difficult and require other pieces of software, for example specific apks. That took quite a lot of time to hunt down working versions of certain apks. Remember we are working with what is considered a stone age OS version. So we have to literally search for needles and haystacks just to find the one tiny thing that makes it all work... Well at least some of it
Gosh, I tried for a long time to decompile/recompile framework-res.apk (5.6.3.0)...no luck! I'm using your instructions in post 2 in the 7 wallpaper thread as a guideline. I can decompile successfully. Then, even without making any changes at all, recompile does not work. I won't bother to put the error display here unless you're interested. (systemui.apk fails on the recompile also, but in a different way). A "regular application" will decompile and recompile just fine.
So I have no idea what's wrong. I do have xposed/gravitybox installed, and I wonder if that causes the problem (but it sounds like have those also?). Or some change to 5.6.3.0 that you did not encounter with prior releases. I'm wondering if you can upload your framework-res.apk somewhere so that I can try that. At least that would narrow it down to the new release or my error.
There are lots of posts about this kind of problem, but they mostly talk about wrong paths, etc. That is definitely not my issue.
I had downloaded the most recent apktool, 2.3.4. Just for fun, I just tried 2.2.0. There are 4 warnings, but otherwise, it worked. I haven't tried to install the new framework, so I can't be sure all is okay, but it's certainly a good sign. I will also try more recent versions of apktool, i.e. ones between 2.2.0 and 2.3.4, and see where it went wrong.
EDIT: 2.3.2 and earlier are good, 2.3.3 and 2.3.4 are bad.
---------- Post added at 04:58 PM ---------- Previous post was at 04:55 PM ----------
If it ain't one thing, it's another! After changing the integer, I'm trying to drag and drop with 7zip from the new apk to the old, as you described in your other thread. For resources.arsc, it works as you said, i.e. it asks if I'm sure I want to copy. But for the res folder, it doesn't ask me anything and just starts extracting into the old. I cancel it before it can complete.
Do you recall doing something different for the res folder? I could be on a different 7zip version than you, of course. I've used 7zip, but I'm not that familiar with it.
EDIT2: I don't think a notification is done if my edit gets combined with my prior post. I tried both reply and quick reply, and both ended up combining. Can someone tell me how to make it do a new post? Or maybe I'm wrong and another notification occurs, in which case, ignore this!
sga999 said:
I had downloaded the most recent apktool, 2.3.4. Just for fun, I just tried 2.2.0. There are 4 warnings, but otherwise, it worked. I haven't tired to install the new framework, so I can't be sure all is okay, but it's certainly a good sign. I will also try more recent versions of apktool, i.e. ones between 2.2.0 and 2.3.4, and see where it went wrong.
EDIT: 2.3.2 and earlier are good, 2.3.3 and 2.3.4 are bad.
---------- Post added at 04:58 PM ---------- Previous post was at 04:55 PM ----------
If it ain't one thing, it's another! After changing the integer, I'm trying to drag and drop with 7zip from the new apk to the old, as you described in your other thread. For resources.arsc, it works as you said, i.e. it asks if I'm sure I want to copy. But for the res folder, it doesn't ask me anything and just starts extracting into the old. I cancel it before it can complete.
Do you recall doing something different for the res folder? I could be on a different 7zip version than you, of course. I've used 7zip, but I'm not that familiar with it.
EDIT2: I don't think a notification is done if my edit gets combined with my prior post. I tried both reply and quick reply, and both ended up combining. Can someone tell me how to make it do a new post? Or maybe I'm wrong and another notification occurs, in which case, ignore this!
Click to expand...
Click to collapse
Lol it's going to take a bit to get used to everything. I actually had messed around with apktool when I first started all this and got so frustrated I just stopped trying. 6 months after that I tried again and it took me a week or so before I successfully compiled and installed a system apk. My initial goal was to use this method to try and trick a non rooted tablet into thinking it was installing an update to a system app. Though it worked on rooted devices, I could never get it to work for non rooted ones. Don't give up,keep trying and re check everything, especially make sure your PATH to the proper tools is correct. I'll look at the latest fireOS framework tomorrow.
P.S. without any further modifications, I tested APM+ Xposed module and it works too. You can add and remove all the optioions plus add different ones depending on the module. No further tweaking needed on my end.
Okay, when dragging and dropping res, it does finally ask if I really want to copy AFTER it takes quite a while "extracting". I was confusing extracting with unzipping or unpacking...or some other term that would imply it was changing the format. I'm still not sure if it's doing it properly, but I'll keep trying. And I'd still like to know how to make these combined posts cause a notification, and if not, how can I force it to.

Categories

Resources