How To Guide [GUIDE] Swap Back and Recent_Apps Icons on Navigation Bar (3 button navigation). Should work for most any rooted phone. - Google Pixel 6 Pro

This is a simple Mod that can be done without decompiling, editing, and recompiling the SystemUI.
1. Grab the SystemUIGoogle.apk (or SystemUI.apk if you are on a custom Rom). system/system_ext/priv-app/SystemUIGoogle folder for those on Android 11, 12, or 13.
2. Unzip the apk. I do it on my file explorer app (I highly recommend X-plore by lonelcatsgame). The files you need are back.xml and recent_apps.xml. Those are found in the res/layout folder. Switch the names by renaming them.....back.xml to recent_apps.xml......recent_apps.xml to back.xml.
3. Replace the original ones with the edited ones and zip the apk back up. If you use X-Plore, your apk remains apk. If you use a zip program you will need to rename it from .zip to .apk.
You are done. No need to flash, just put the new SystemUIGoogle.apk/SystemUI.apk in the appropriate folder in the module below (contains module for both UI's) and copy to the root drive on your phone:
data/adb/modules
Reboot and your icons should be switched.....as always, I'm not responsible for anything that happens, etc, etc.
This can also be applied to other SystemUI mods you might already have applied on your phone. Find the module where your SystemUI is located. Copy the SystemUI, apply the mod, then copy the SystemUI back to the original module.

I gave up on pixel and switched back to my OnePlus 8 Pro primarily because of the nav buttons... I absolutely can NOT do gesture navigation, far too many issues! And no solution i found worked... It either failed to install or soft bricked the phone...
I'm booting my P6P back up to give this a go!

This did not work for me.

PMad said:
This did not work for me.
Click to expand...
Click to collapse
If this doesn't work, or the attached, and you are flashing via magisk app, I don't know what to say.... other than, do you have anything else installed? It isn't a question whether these work (they do ).

Tulsadiver said:
If this doesn't work, or the attached, and you are flashing via magisk app, I don't know what to say.... other than, do you have anything else installed? It isn't a question whether these work (they do ).
Click to expand...
Click to collapse
Maybe I misread a portion of your instructions? All I did was prior to this was a factory reset, updated Android (I was 2 versions behind), rooted it, installed Nova launcher and Root Explorer, updated all the existing apps in the play store, then went through your instructions. Here's what I did:
I went to the following folder and copied SystemUIGoogle.apk to my downloads folder: system/system_ext/priv-app/SystemUIGoogle
I used Root Explorer to extract it. In the extracted folder, I renamed both files. back.xml to recent_apps.xmll, recent_apps.xml to back.xml, and finally recent_apps.xmll to recent_apps.xml
Went back to the Root folder and zipped up the files, then renamed it from SystemUIGoogle.zip back to SystemUIGoogle.apk. I did notice this file is now 15mb instead of the original 37mb. Maybe I need to verify there's no compression in the zip?
Downloaded your navbar and extracted it.
Placed the apk into the system/system_ext/priv-app/SystemUIGoogle folder that I extracted.
Zipped it back up to navbarswap.zip
Moved the zip over to data/adb/modules
Rebooted
After that, no change. I tried to install it with Magisk and that failed too

PMad said:
Maybe I misread a portion of your instructions? All I did was prior to this was a factory reset, updated Android (I was 2 versions behind), rooted it, installed Nova launcher and Root Explorer, updated all the existing apps in the play store, then went through your instructions. Here's what I did:
I went to the following folder and copied SystemUIGoogle.apk to my downloads folder: system/system_ext/priv-app/SystemUIGoogle
I used Root Explorer to extract it. In the extracted folder, I renamed both files. back.xml to recent_apps.xmll, recent_apps.xml to back.xml, and finally recent_apps.xmll to recent_apps.xml
Went back to the Root folder and zipped up the files, then renamed it from SystemUIGoogle.zip back to SystemUIGoogle.apk. I did notice this file is now 15mb instead of the original 37mb. Maybe I need to verify there's no compression in the zip?
Downloaded your navbar and extracted it.
Placed the apk into the system/system_ext/priv-app/SystemUIGoogle folder that I extracted.
Zipped it back up to navbarswap.zip
Moved the zip over to data/adb/modules
Rebooted
After that, no change. I tried to install it with Magisk and that failed too
Click to expand...
Click to collapse
On step 3, by Root folder I mean the Root of that package I extracted

PMad said:
Maybe I misread a portion of your instructions? All I did was prior to this was a factory reset, updated Android (I was 2 versions behind), rooted it, installed Nova launcher and Root Explorer, updated all the existing apps in the play store, then went through your instructions. Here's what I did:
I went to the following folder and copied SystemUIGoogle.apk to my downloads folder: system/system_ext/priv-app/SystemUIGoogle
I used Root Explorer to extract it. In the extracted folder, I renamed both files. back.xml to recent_apps.xmll, recent_apps.xml to back.xml, and finally recent_apps.xmll to recent_apps.xml
Went back to the Root folder and zipped up the files, then renamed it from SystemUIGoogle.zip back to SystemUIGoogle.apk. I did notice this file is now 15mb instead of the original 37mb. Maybe I need to verify there's no compression in the zip?
Downloaded your navbar and extracted it.
Placed the apk into the system/system_ext/priv-app/SystemUIGoogle folder that I extracted.
Zipped it back up to navbarswap.zip
Moved the zip over to data/adb/modules
Rebooted
After that, no change. I tried to install it with Magisk and that failed too
Click to expand...
Click to collapse
You don't move a zip to data/adb/modules....you move one of the folders from that zip. One is for custom roms (systemui), the other for stock pixel (systemuigoogle). You can't upload folders here so I zipped the two together.

Like this?

PMad said:
Like this?
View attachment 5633585
Click to expand...
Click to collapse
Exactly.

Tulsadiver said:
Exactly.
Click to expand...
Click to collapse
That did it right there. As you could see in the screenshot, I switched over to the app you recommended and that didn't reduce the file size. I'm pretty sure that would have become an issue if I didn't swap.

PMad said:
I gave up on pixel and switched back to my OnePlus 8 Pro primarily because of the nav buttons... I absolutely can NOT do gesture navigation, far too many issues! And no solution i found worked... It either failed to install or soft bricked the phone...
I'm booting my P6P back up to give this a go!
Click to expand...
Click to collapse
I thought the same. I have big muscular hands and right it would be an issue. Been using it over 16 months now and when I use any other phone, I think using the navbar is clumsy. Can't hurt to try it for a weekend.

Related

Request: change lockscreen

i love the modaco custom rom but would like to add the lockscreen from drizzys custom rom. (or any plain android looking lockscreen)
is there a way to extract the files i need and simply replacing them in the MRC? i guess its just an html file or something like that to replace, right?
I guess this is the HTCLockScreen.apk and .odex but since it's a system app, it cannot be installed or unistalled, and overwirting the apk in the system/app folder doesn't do anything.
If someone knows how to do it I will be very interested too.
im not sure if it will work but you can download my rom go to
system/framework
grab com.htc.resource.apk
now adb push com.htc.framework.apk /system/framework/
then reboot!
steps:
adb remount
adb push com.htc.framework.apk /system/framework/
adb shell
reboot
then if your phone loops then it didnt work, but if you go straight to you home screen then it should be fine!
good luck
"im not responsible for any wipes that you will have to do if you phone loops"
piflechien said:
I guess this is the HTCLockScreen.apk and .odex but since it's a system app, it cannot be installed or unistalled, and overwirting the apk in the system/app folder doesn't do anything.
If someone knows how to do it I will be very interested too.
Click to expand...
Click to collapse
its not in the lockscreen!
its in the framework!
Or you could do what I did, pull com.htc.resources.apk from the phone, extract it with 7zip edit the .png files in res/drawable-land-480x320/ and res/drawable-port-480x320/ then zipped it and built the apk using apkbuilder.
Then push it to the phone, as usual make backups.
soulehmoo said:
Or you could do what I did, pull com.htc.resources.apk from the phone, extract it with 7zip edit the .png files in res/drawable-land-480x320/ and res/drawable-port-480x320/ then zipped it and built the apk using apkbuilder.
Then push it to the phone, as usual make backups.
Click to expand...
Click to collapse
Thank you very much.
It works perfectly.
BR. Simemu
Thx it worked perfectly
I just pushed com.htc.resources.apk into the /system/framework folder.
Now is it also possible to change the notification bar with a similar method ?
I love the one from your Rom Drizzy Drake Rogers.
They are in framework-res.apk
A few jpg and png named status* in res/drawable-480x320/
Same method should apply.
As usual, would be smart to back up.
Edit: When I get some time off I may have a day messing with these files see about some different coloured UI's etc.
for me this does not work
what ive done is:
1. get the com.htc.resources.apk
2. extract it with rar
3. changed the mentioned png files
4. then i put them back into the archive (apk file, renamed as a zip file)
5. renamed the zip back to its original name
6. put the file as mentioned to the correct folder
there is no change.. is it a MUST to use apk builder, if yes, how to use that bat?
felikz said:
for me this does not work
what ive done is:
1. get the com.htc.resources.apk
2. extract it with rar
3. changed the mentioned png files
4. then i put them back into the archive (apk file, renamed as a zip file)
5. renamed the zip back to its original name
6. put the file as mentioned to the correct folder
there is no change.. is it a MUST to use apk builder, if yes, how to use that bat?
Click to expand...
Click to collapse
reboot and see if that works!
yes i did that, its not the case..
did you guys do it my way, or did you use adk builder?
Yeah use apk builder. Should work.
Edit: you sure its named right and in the right place?? It should have overwritten your old one.
and how to use apk builder??
okay, i signed the new apk with this http://www.anddev.org/signing_your_apk-application_for_release_keytooljarsigner-t3069.html
but that didnt work (the sign process worked, but then the hero looped)..
can anyone please tell how to sign the apk with apkbuilder??
Did you sign the .apk or the .png ????
Sorry...but i didn´t got a solution...i´m standing in front of the same problem like you
easier method here
http://forum.xda-developers.com/showthread.php?t=536271
no need to bother with apk builder with this method.
boomshaker said:
Did you sign the .apk or the .png ????
Sorry...but i didn´t got a solution...i´m standing in front of the same problem like you
Click to expand...
Click to collapse
signed the apk
soulehmoo said:
easier method here
http://forum.xda-developers.com/showthread.php?t=536271
no need to bother with apk builder with this method.
Click to expand...
Click to collapse
also this does not work for me --> phone loop
any idea, what i could do wrong? i am using windows paint (windows 7) to edit the files.. then i put the edited png files back into archive (thus, overwrite the files there) and push that apk file again back to its path.. after phone reboot the phone goes into endless loop
soulehmoo said:
Or you could do what I did, pull com.htc.resources.apk from the phone, extract it with 7zip edit the .png files in res/drawable-land-480x320/ and res/drawable-port-480x320/ then zipped it and built the apk using apkbuilder.
Then push it to the phone, as usual make backups.
Click to expand...
Click to collapse
I want to change my lockscreen, it all seems to make sense apart from editing the .png files..
What am I supposed to be changing in the files? Maybe I missed something, but that doesn't seem to have been explained
pookie1 said:
I want to change my lockscreen, it all seems to make sense apart from editing the .png files..
What am I supposed to be changing in the files? Maybe I missed something, but that doesn't seem to have been explained
Click to expand...
Click to collapse
tha background image of your lockscreen can be changed easily in the phone settings, but if you wanna change the other parts of the lockscreen, then you need to do it like told here ;-)
felikz said:
also this does not work for me --> phone loop
any idea, what i could do wrong? i am using windows paint (windows 7) to edit the files.. then i put the edited png files back into archive (thus, overwrite the files there) and push that apk file again back to its path.. after phone reboot the phone goes into endless loop
Click to expand...
Click to collapse
common guys, just a feedback!

Theme Creating Help

I Downloaded A Theme From The Forum (EnamoRED) But Didn't Like Certain Parts Of It. I Am On A Mac. On My Evo Im Running The Latest Stock Rom W/ Full Root.
I Extracted The Signed Zip File Which Then Revealed Two Folders, "META-INF" & "system".
I The Navigated To "system" and that revealed two files also, "app" & "framework".
I Then Went Into "framework" which revealed two files "com.htc.resources.APK" & "framework-res.APK".
I Extracted Them And Within Those Two Folders Were Plenty In Each Of Them. I Went To "Res" In Each Of The Two Folders (com.htc.resources & framework-res) And Changed A Couple Of PNG's.
Now I Want To "Archive" The Two Folders In "System/Framework" Back To ".APK". Also I Don't Know If I Would Need To Resign Them.
After I Have Everything Ready I Can Zip It Up, But Im Not Sure If Ill Have To Resign The ".Zip"?
Thanks Guys.
WILL DONATE TO SOMEBODY WHO CAN REALLY HELP!!!!!
EDIT:
This Is What I Have. Original On Top, My Edited Files On Bottom. Just Need To Make My Folders ".APK'S" And The Sign The Fianl Zip.
View attachment 362096
Somebody Please Help!!!!! Im Going To Be Away From My Computer Soon And Would Liek To Batch This Up!
I just started getting into theming a bit too. I have a win7 PC so it might be a little different, but the tutorial i was following said to open the zip/apk's with an extractor, drag the drawable folders out, make your changes, drag the modified files back in ( "update" the archive if prompted ) & then sign the original zip file. I forget which thread it was, but they said signing it may not be necessary.
yes, what Veritas06 said. Don't rezip all the files that you extracted, just drag and drop the files you modified into their respective folders in the pre-existing archive. Signing should not be necessary if you do it this way.
With HTC apk's in the /system/app folder, usually you can just remove and reinstall the new apk to change, the ones in /system/framework should work the same way.
Thanks guys, so what im trying to do is re-instate an apk file back to an apk. i extracted it so that i can edit the pngs within. was i supposed to extract it? from what im reading, with 7zip you can change files within an archive without extracting it? is that what im supposed to do to keep my file as an apk? i also have a win 7 pc that i donated to my mom but i still have access to it so may try it.
This Is What I Have. Original On Top, My Edited Files On Bottom. Just Need To Make My Folders ".APK'S" And The Sign The Fianl Zip.
View attachment 362093

Unzipping and zipping apk files?

I unzipped a apk file to change some of the images in the drawable-hdpi folder, how do I zip it back into an apk file to reinstall it on my phone. Or can I flash the zip file? I dunno how that would work...
Sent from my HTC Vision using XDA App
Can you get another copy of the apk?
If you can then the best thing to do is use winRAR or 7zip to open/explore the apk just like with a .zip file. That way you never unzip it and don't run into that issue. Using those allows you to delete and add files. You can also do the same thing on your phone using root explorer or something similar.
As far as correcting what you've done already (assuming you can't get a copy of that apk) I've completely forgotten since I never have to do it. I know if you look on the android sdk's site you can find the answer though.
adamtheindien said:
I unzipped a apk file to change some of the images in the drawable-hdpi folder, how do I zip it back into an apk file to reinstall it on my phone. Or can I flash the zip file? I dunno how that would work...
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
An apk is just a zip file with the apk extension, once you zip it up change it from a .zip to a .apk
Sent from my T-Mobile G2 using XDA App
i changed what i wanted and rezipped, changed the extension, tried to install it, says problem parsing the package?
adamtheindien said:
i changed what i wanted and rezipped, changed the extension, tried to install it, says problem parsing the package?
Click to expand...
Click to collapse
It can also depend on which APK (system vs non-system) and which images (.9 images can be tricky to replace if you don't know what you are doing). Sometimes, you also need to re-sign the APK, depending on what you modified (there are tools to re-sign in the SDK or you can use something like APK Manager).
You should try the opening the APK directly in WinRAR/7-zip and replacing the images method. In my experience, if you are just replacing simple images, you usually don't have to re-sign when doing this (it leaves the existing signature intact).
ok i mainly just replaced images and and edited a couple. i dont know how to use all that adbsdkwhatever stuff.... -_- i know i should but im too lazy. so i dunno how to re sign it...
all im trying to do is edit the quick search bar images. maybe i dont have to do this if there is somewhere to find themed search bars?
If you can then the best thing to do is use winRAR or 7zip to open/explore the apk just like with a .zip file.
Click to expand...
Click to collapse
If your using winRAR click and drag stuff works if its one or two files.
If its a lot of images or a large file like framework-res.apk (I'm thinking your search bar might be in there if I'm not mistaken) then you'll want to make a new ZIP archive with "store" compression (uncompressed pretty much).
(also you shouldn't need to resign the framework-res.apk)
I haven't tested 7zips click and drag but the same principals apply. If its bigger files being recompiled Winrar tends to compress it a bit and sometimes it causes bootloops.
That being said, don't forget to nandroid
82_Z28 said:
If your using winRAR click and drag stuff works if its one or two files.
If its a lot of images or a large file like framework-res.apk (I'm thinking your search bar might be in there if I'm not mistaken) then you'll want to make a new ZIP archive with "store" compression (uncompressed pretty much).
(also you shouldn't need to resign the framework-res.apk)
I haven't tested 7zips click and drag but the same principals apply. If its bigger files being recompiled Winrar tends to compress it a bit and sometimes it causes bootloops.
That being said, don't forget to nandroid
Click to expand...
Click to collapse
Well from my experience, 7zip handles the task like a champ. I've taken every image out and put others back in with no issues. The downside is that some apps set certain dependencies in the .xml files so if you delete the wrong things it won't install and if it does, all you get is a fc all day. In that case it helps to know how to convert the xml binary to something readable (unless you're a king a hex editing).

[Q] Force Close after re-compiling framework-res.apk

Hi,
I'm trying to make some changes to framework-res.apk.
I user APK Manager 4.9 to decompile the file, then made one trivial change to a XML file (changed one auto brightness related value).
I then compiled back to APK without signing and pushed to the phone in recovery mode the deleted Dalvik cache just to be on the safe side.
No matter how I play with it I always get FC from all the system apps immediately after the phone completes the boot process.
Some more information:
1. My original APK had directories like /res/drawable-hdpi-v4 while after decomplie they become res/drawable-hdpi (without the "v4")
2. After I recompile the "v4" directories are not created back and the generated APK contains the directories without the v4
3. If I use the "Reduce errors" feature of the APK manager complie option then I end up with APK that contains both the directories with v4 and those without.
4. I tried with the "reduce errors" option and without it (in which case I manually copied the signature directory into the APK) but got same FC.
5. It seems that once the FCs begin to happen they don't stop until a full nandroid restore. Even if I put the original framework.res.apk file I still get FCs after rebooting.
6. I'm using Revolution HD 2.0.11 ROM
7. The APK file I'm trying to modify was generated by the UOT kitchen.
Any idea what am I doing wrong?
No one knows?
erank said:
No one knows?
Click to expand...
Click to collapse
You dont need to decompile the framework to edit the files, heres the best way, take the the original framework-res.apk, and copy it to your pc, use 7zip to extract the .apk and extract any files you want to edit from the extracted framework, now go back to your original framework-res.apk and right click on it, find 7zip in the contex menu and click open, the contents of the apk will appear in a new window, now just drag and drop your edied files in the right directorys, once done, close 7zip, push the framework back to /system/framework/, wipe the dalvik cache and your done
AndroHero said:
You dont need to decompile the framework to edit the files, heres the best way, take the the original framework-res.apk, and copy it to your pc, use 7zip to extract the .apk and extract any files you want to edit from the extracted framework, now go back to your original framework-res.apk and right click on it, find 7zip in the contex menu and click open, the contents of the apk will appear in a new window, now just drag and drop your edied files in the right directorys, once done, close 7zip, push the framework back to /system/framework/, wipe the dalvik cache and your done
Click to expand...
Click to collapse
The files I want to edit are XML files which are compiled to reasources.arsc, as far as I know 7zip can't extract those, it has to be decompiled.
erank said:
The files I want to edit are XML files which are compiled to reasources.arsc, as far as I know 7zip can't extract those, it has to be decompiled.
Click to expand...
Click to collapse
Too true, the only other thing you could try is to sign the .apk before pushing it....
Sent from my Desire HD using Tapatalk
AndroHero said:
Too true, the only other thing you could try is to sign the .apk before pushing it....
Click to expand...
Click to collapse
Thanks AndroHero.
Everywhere I was looking they always say not to sign system APKs, but just to be sure I also tried signing it and not signing but copying the original META-INF directory - always got the same result - FC in all systems apps after boot.

[Q] HTC Locations' App. on other Custom ROMs

Hi,
I need to install HTC's Locations app on any custom ROM (ie: MyOneV or CM9/CM10)
So any1 can help me with this ?
(i tried it though, by moving these files (from MyOneV5.0FX Removed apks) htclocation.apk,locationpicker.apk,locatiooninstaller.apk in System/app folder bt it didn't worked)
When you move those files to system app manually, you need to put right permission rw-r--r-- then reboot.
Or the simplest way is, open the Removed_Apks_RC5.x.zip with 7-zip (not extract), delete all apks that you don't need and leave those location files in zip.
Then flash the zip in recovery.
And these files will not work on a CM rom.
ckpv5 said:
When you move those files to system app manually, you need to put right permission rw-r--r-- then reboot.
Or the simplest way is, open the Removed_Apks_RC5.x.zip with 7-zip (not extract), delete all apks that you don't need and leave those location files in zip.
Then flash the zip in recovery.
And these files will not work on a CM rom.
Click to expand...
Click to collapse
:good:
Thankz
I tried that too, by removing all apks from zip keeping the said three files & flash it in recovery, still it doesn't appeared in apps!
Though i'll try again may b missed something or some file..
I just tried it, it works.
Your filename looks different, attached here the files from the Removed_Apks_RC5.x.zip, I named it to location.zip. Flash in recovery.
It Worked: Thanx

Categories

Resources