Anyone successfully deodex stock oreo systemUI? - Google Pixel XL Questions & Answers

I'd like to get 3minit battery mod on my pixel XL. I'm rooted and on the latest Oreo October build.
On my 6p running 7.1.2 I was able to deodex the systemui so I could decompile smali code and make the required edits.
On Oreo in the GoogleSystemUI folder not only do I find the apk and odex files but now there's a googlesystemUI.vdex.
From the little I could find on the web, the vdex file is just the dex code. I have no idea where to start with deodexing the app now that I have this vdex file in there.
Any tips or tutorials out there on how to deodex Oreo system apps?
Thanks!

Well, for the systemui I used the updated apktool to decompile and recompile ( renaming .9.png ).

If the 3minit mod is all your looking for, go check the "oreo aroma mods" in the themes apps and mods section.

noidea24 said:
If the 3minit mod is all your looking for, go check the "oreo aroma mods" in the themes apps and mods section.
Click to expand...
Click to collapse
I got it working with those mods...I'd still like to know how to deodex the systemui so I can work on some other mods. Can't find anything on the web however.

Pain-N-Panic said:
I'd like to get 3minit battery mod on my pixel XL. I'm rooted and on the latest Oreo October build.
On my 6p running 7.1.2 I was able to deodex the systemui so I could decompile smali code and make the required edits.
On Oreo in the GoogleSystemUI folder not only do I find the apk and odex files but now there's a googlesystemUI.vdex.
From the little I could find on the web, the vdex file is just the dex code. I have no idea where to start with deodexing the app now that I have this vdex file in there.
Any tips or tutorials out there on how to deodex Oreo system apps?
Thanks!
Click to expand...
Click to collapse
I know it's been a few months but I was wondering if you've been able to deodex your files?
I have a theming tool that can, in theory, deodex Oreo but I don't have a phone with Oreo on to test it with. If you're willing, it'd be great if you could give it a try..
Sent from my Sony Xperia XA1 using XDA Labs

Ticklefish said:
I know it's been a few months but I was wondering if you've been able to deodex your files?
I have a theming tool that can, in theory, deodex Oreo but I don't have a phone with Oreo on to test it with. If you're willing, it'd be great if you could give it a try..
Click to expand...
Click to collapse
Are you speaking of Tickle My Android? If you are, I sure do have it and will gladly try. I was under the impression it couldn't be done on Oreo yet but I can give it a shot.
Also, @Ticklefish, I found a guide you wrote years ago on XML editing. I've read it probably fifty times now, it's been really good to me in learning how to theme my own device. Just wanted to say thanks!

Pain-N-Panic said:
Are you speaking of Tickle My Android? If you are, I sure do have it and will gladly try. I was under the impression it couldn't be done on Oreo yet but I can give it a shot.
Also, @Ticklefish, I found a guide you wrote years ago on XML editing. I've read it probably fifty times now, it's been really good to me in learning how to theme my own device. Just wanted to say thanks!
Click to expand...
Click to collapse
I do mean TMA, yes. Always good to see somebody using it! I've been doing research into the VDEX files that were introduced with Oreo and I think I've got a solution for them. I just need somebody who actually has an Oreo rom to try it out.
And I'm glad you find the guide useful. That's exactly what I wrote it for. I'm very happy now!
Sent from my Sony Xperia XA1 using XDA Labs

Ticklefish said:
I do mean TMA, yes. Always good to see somebody using it! I've been doing research into the VDEX files that were introduced with Oreo and I think I've got a solution for them. I just need somebody who actually has an Oreo rom to try it out.
And I'm glad you find the guide useful. That's exactly what I wrote it for. I'm very happy now!
Sent from my Sony Xperia XA1 using XDA Labs
Click to expand...
Click to collapse
Hey, @Ticklefish! Gave it whirl on Oreo 8.1 but no luck. It just cannot be deodexed at this time it seems. I've tried lots of different methods but no luck. I'm going to try 8.0 next. I have been able to deodex that.
Edit: Looks like it handled 8.0 just fine. I just deodexed the priv-app folder but it looks good.

Tulsadiver said:
Hey, @Ticklefish! Gave it whirl on Oreo 8.1 but no luck. It just cannot be deodexed at this time it seems. I've tried lots of different methods but no luck. I'm going to try 8.0 next. I have been able to deodex that.
Edit: Looks like it handled 8.0 just fine. I just deodexed the priv-app folder but it looks good.
Click to expand...
Click to collapse
Thanks for that, that's very handy. Is it possible you could share your 8.1 files please?
It looks like it falls over with the first file in the framework folder. The program appears to deodex it once..and then try to deodex it again. The problem is that when the first deodex happens, the original odexed file is deleted. So if it tries to deodex it a second time, there's nothing there to process.
This may be connected to 8.1 or it may be something I need to fix in the code.
Sent from my Sony Xperia XA1 using XDA Labs

Ticklefish said:
Thanks for that, that's very handy. Is it possible you could share your 8.1 files please?
It looks like it falls over with the first file in the framework folder. The program appears to deodex it once..and then try to deodex it again. The problem is that when the first deodex happens, the original odexed file is deleted. So if it tries to deodex it a second time, there's nothing there to process.
This may be connected to 8.1 or it may be something I need to fix in the code.
Sent from my Sony Xperia XA1 using XDA Labs
Click to expand...
Click to collapse
I will give you the files as soon as possible. There was more to it than it stopping though. The files that were supposed to have been deodexed, wasn't. The odex files were gone but the apks we're not deodexed.

Thanks Tulsa. I've been working crazy hours and haven't gotten around to attempting this yet.

Ticklefish said:
Thanks for that, that's very handy. Is it possible you could share your 8.1 files please?
It looks like it falls over with the first file in the framework folder. The program appears to deodex it once..and then try to deodex it again. The problem is that when the first deodex happens, the original odexed file is deleted. So if it tries to deodex it a second time, there's nothing there to process.
This may be connected to 8.1 or it may be something I need to fix in the code.
Sent from my Sony Xperia XA1 using XDA Labs
Click to expand...
Click to collapse
There is a report on Jesusfreaks smali about the out of bounds error when trying to deodex 8.1. Google just released the sources for Android 27 so that should help. I also get an out of bounds error when trying to unpack Pixel 2 and Pixel 2 xl system.imgs
Here are the system files for Pixel 8.1
https://www.androidfilehost.com/?fid=673791459329068735

Tulsadiver said:
There is a report on Jesusfreaks smali about the out of bounds error when trying to deodex 8.1. Google just released the sources for Android 27 so that should help. I also get an out of bounds error when trying to unpack Pixel 2 and Pixel 2 xl system.imgs
Here are the system files for Pixel 8.1
https://www.androidfilehost.com/?fid=673791459329068735
Click to expand...
Click to collapse
Thanks, I'll take a look. Sorry for the delay..Xmas was crazy..

Tulsadiver said:
There is a report on Jesusfreaks smali about the out of bounds error when trying to deodex 8.1. Google just released the sources for Android 27 so that should help. I also get an out of bounds error when trying to unpack Pixel 2 and Pixel 2 xl system.imgs
Here are the system files for Pixel 8.1
https://www.androidfilehost.com/?fid=673791459329068735
Click to expand...
Click to collapse
There doesn't seem to be anything in your framework folder at all...

Ticklefish said:
There doesn't seem to be anything in your framework folder at all...
Click to expand...
Click to collapse
Sorry about that. I must have moved them instead of copying them. I'm extracting them again. I'll upload the framework folder in a bit.
---------- Post added at 10:37 AM ---------- Previous post was at 09:51 AM ----------
Ticklefish said:
There doesn't seem to be anything in your framework folder at all...
Click to expand...
Click to collapse
Here you go!
https://www.androidfilehost.com/?fid=673791459329070410

Tulsadiver said:
Sorry about that. I must have moved them instead of copying them. I'm extracting them again. I'll upload the framework folder in a bit.
---------- Post added at 10:37 AM ---------- Previous post was at 09:51 AM ----------
Here you go!
https://www.androidfilehost.com/?fid=673791459329070410
Click to expand...
Click to collapse
Thanks for that. I'll check it out next year..
Tulsadiver said:
Hey, @Ticklefish! Gave it whirl on Oreo 8.1 but no luck. It just cannot be deodexed at this time it seems. I've tried lots of different methods but no luck. I'm going to try 8.0 next. I have been able to deodex that.
Edit: Looks like it handled 8.0 just fine. I just deodexed the priv-app folder but it looks good.
Click to expand...
Click to collapse
Did your deodexed priv-app folder work? I've been reading more about vdex files and I think I may have got things the wrong way round.
Sent from my Sony Xperia XA1 using XDA Labs

Ticklefish said:
Thanks for that. I'll check it out next year..
Did your deodexed priv-app folder work? I've been reading more about vdex files and I think I may have got things the wrong way round.
Sent from my Sony Xperia XA1 using XDA Labs
Click to expand...
Click to collapse
It worked on 8.0...

Tulsadiver said:
It worked on 8.0...
Click to expand...
Click to collapse
That's good to know. And yet, somehow, a little confusing.
I think, from what I understand of Google's documentation, that VDEX files now contain all the classes.dex information from 8.1 onwards. In the files you kindly shared, the ODEX files are all the same size in "framework\oat\arm64" and the VDEX files are lots of different sizes.
This seems to be backed up by this issue on smali's GitHub: https://github.com/JesusFreke/smali/issues/579
Unfortunately it looks like we have to wait for smali and baksmali to be updated to cope with VDEX files before we can deodex 8.1.
As for TMA...well, that's not really what this thread is about but I'll be updating the code now so it actually reports the error that it was experiencing..

Ticklefish said:
That's good to know. And yet, somehow, a little confusing.
I think, from what I understand of Google's documentation, that VDEX files now contain all the classes.dex information from 8.1 onwards. In the files you kindly shared, the ODEX files are all the same size in "framework\oat\arm64" and the VDEX files are lots of different sizes.
This seems to be backed up by this issue on smali's GitHub: https://github.com/JesusFreke/smali/issues/579
Unfortunately it looks like we have to wait for smali and baksmali to be updated to cope with VDEX files before we can deodex 8.1.
As for TMA...well, that's not really what this thread is about but I'll be updating the code now so it actually reports the error that it was experiencing..
Click to expand...
Click to collapse
Ticklefish, I have managed to deodex the vdex files for 8.1 using a vdex extractor on GitHub. It is Linux based though.
https://github.com/anestisb/vdexExtractor

Tulsadiver said:
Ticklefish, I have managed to deodex the vdex files for 8.1 using a vdex extractor on GitHub. It is Linux based though.
https://github.com/anestisb/vdexExtractor
Click to expand...
Click to collapse
That's promising. Did the extracted vdex files have everything you needed to make your classes.dex files?

Related

Theming questions?

I have been theming on the x2 for awhile now building custom themes .. I just got my nexus yesterday so I downloaded the gummy rom and tried to theme first with apktool and also with apk manager.. I see there have been themes made.. I have yet to be able to decompile any system apks successfully.. are there any new tools I'm missing or steps... would love to start theming again if I can get things to work
Sent from my Galaxy Nexus using xda premium
Kevin3328 said:
I have been theming on the x2 for awhile now building custom themes .. I just got my nexus yesterday so I downloaded the gummy rom and tried to theme first with apktool and also with apk manager.. I see there have been themes made.. I have yet to be able to decompile any system apks successfully.. are there any new tools I'm missing or steps... would love to start theming again if I can get things to work
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
yep, you need to update apktool for use with Android 4.0
edit: more specifically...
-Wrong version of apktool (get the latest)
-Wrong verison of apktool dependancies files (same site)
-Wrong version of aapt.exe in Android SDK (get latest SDK)
Alright awesome I'll look into it tonight after work
Sent from my Galaxy Nexus using xda premium
I have the latest version of all of that and can decompile with apktool. The problem is when I build the new apk and copy over the edited files and push back to the phone the app won't work.
A run down of everything I did is here: http://forum.xda-developers.com/showthread.php?t=1452530
Did u try putting it back in the flash able zip with 7 zip? I never use adb push.... in theory if u are able to compile the apk without errors it should work
Sent from my Galaxy Nexus using xda premium
Kevin3328 said:
Did u try putting it back in the flash able zip with 7 zip? I never use adb push.... in theory if u are able to compile the apk without errors it should work
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
I pulled the music apk, edited it, rebuilt it, and put the edited files back in the original apk. I did that because I don't know how to sign my own apk so I just used the already signed one with some edited png and xml files. The thing I don't understand is that I pulled an apk once and opened it via 7zip and edited some things, pushed it back and everything was fine (changed out some icons on the contacts.apk)
Do you know where an up-to-date theming guide can be found? I'm very interested in making my own themes instead of requesting themers to make one. Learning experience and all that jazz.
Thanks.
coverton341 said:
I pulled the music apk, edited it, rebuilt it, and put the edited files back in the original apk. I did that because I don't know how to sign my own apk so I just used the already signed one with some edited png and xml files. The thing I don't understand is that I pulled an apk once and opened it via 7zip and edited some things, pushed it back and everything was fine (changed out some icons on the contacts.apk)
Do you know where an up-to-date theming guide can be found? I'm very interested in making my own themes instead of requesting themers to make one. Learning experience and all that jazz.
Thanks.
Click to expand...
Click to collapse
You can't replace xml's in that way.
Sent from my Galaxy Nexus using XDA App
If u properly recompile the apk then yes u can .. u edit it all the XML s and pngs in the apk then recompile.. then drop the recompiled apk into the system app section of the rom u r using unless its the framework Res apk or other framework apk.. once u do this put the new rom zip back into your phone and flash in recovery ... bottom line I'm not the most experienced themer in the forums I just got the phone yesterday so its gonna take time for me to begin theming anything.. that being said perhaps if this thread stays open and more experienced themers can chime in with some tips and advice
Sent from my Galaxy Nexus using xda premium
coverton341 said:
I pulled the music apk, edited it, rebuilt it, and put the edited files back in the original apk. I did that because I don't know how to sign my own apk so I just used the already signed one with some edited png and xml files. The thing I don't understand is that I pulled an apk once and opened it via 7zip and edited some things, pushed it back and everything was fine (changed out some icons on the contacts.apk)
Do you know where an up-to-date theming guide can be found? I'm very interested in making my own themes instead of requesting themers to make one. Learning experience and all that jazz.
Thanks.
Click to expand...
Click to collapse
Also in my short experience theming u should not have to sign a system app... u should recompile then rename it.. then reinsert into the rom you are using.. reflash the rom without any wiping and u should be good try it that way
Sent from my Galaxy Nexus using xda premium
Kevin3328 said:
Also in my short experience theming u should not have to sign a system app... u should recompile then rename it.. then reinsert into the rom you are using.. reflash the rom without any wiping and u should be good try it that way
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Hey Kev did u figured it out yet? I replied to ur PM...
Sent from my Galaxy Nexus using XDA App
Kevin3328 said:
Also in my short experience theming u should not have to sign a system app... u should recompile then rename it.. then reinsert into the rom you are using.. reflash the rom without any wiping and u should be good try it that way
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Actually, GoogleMusic.apk is found in data/app not in system, at least in the ROM I am on. But, am I correct in assuming that I can do the same thing in this instance?
Furthermore, is there no way to theme a single application? Do I need to always theme an app, place it back into the ROM zip, and reflash said ROM?
Can I make my own flashable zip file for a single app?
Sorry to ask so many questions, I just really like tinkering with things and I would really like to get good at theming.
Kevin3328 said:
If u properly recompile the apk then yes u can .. u edit it all the XML s and pngs in the apk then recompile.. then drop the recompiled apk into the system app section of the rom u r using unless its the framework Res apk or other framework apk.. once u do this put the new rom zip back into your phone and flash in recovery ... bottom line I'm not the most experienced themer in the forums I just got the phone yesterday so its gonna take time for me to begin theming anything.. that being said perhaps if this thread stays open and more experienced themers can chime in with some tips and advice
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Sorry misread what you were saying then.
Sent from my Galaxy Nexus using XDA App
I am at work until 1030 then I am gonna set up shop on my CPU first... gotta get the new sdk and apktool then I will gtalk u from there with issues.. all I know is this should be a learning experience lol.. by the looks of this phone it could be awhile b4 I learn what everything "is" framework will be all the apks will be different than what I'm used to
Sent from my Galaxy Nexus using xda premium
coverton341 said:
Actually, GoogleMusic.apk is found in data/app not in system, at least in the ROM I am on. But, am I correct in assuming that I can do the same thing in this instance?
Furthermore, is there no way to theme a single application? Do I need to always theme an app, place it back into the ROM zip, and reflash said ROM?
Can I make my own flashable zip file for a single app?
Sorry to ask so many questions, I just really like tinkering with things and I would really like to get good at theming.
Click to expand...
Click to collapse
U can make update zips and yes u should b able to do the same.. I usually borrow someone else's at first
Sent from my Galaxy Nexus using xda premium
wut? i've never done what you guys have when it comes to compiling/decompiling and replacing stuff. i'm not so sure that works, but i'll take your word for it for now since i've never tried it either. in theory, you can decompile and change xml, recompile and replace that xml, but not if you're dealing with the actual xml folder in apks. your resources change when you mess with that. this is the same for changing smali, except something else changes (it's been a bit since i've dealt with actual dev stuff).
also, it's a big waste (and sometimes troublesome) to flash an entire ROM to update one or a few apks. making one for just testing out things in \system\ will save you time and frustration. you can also make a backup easier for if something bootloops you
Success!!!
All right, first and foremost, thank you immensely for all the suggestions Kevin and others as well.
Here's what I did. I searched the ROM zip to no avail, but then found the apk in the gapps zip. I took it out of there, decompiled, messed around with just a few png files, recompiled and put it back into the gapps zip. Flashed it and it worked. Problem is, only a couple of the edits I made showed up which brings me to my next issue, ICS optimised apps have a tonne of "drawable-***" folders. Drawable, drawable-hdpi, drawable-hdpi-v8,v9,v11, drawable-xdpi, etc....ad nauseum.
I am not messing with any smali code, xml files, or .9.png files yet as I don't know what smali does, xml is a headache, and I have heard horror stories about .9.png files.
I'm going to dink around and see if I can sort out what items need to be changed for my current dpi setting (241) and will report back any findings, but probably not tonight as I have an early course in the morning followed by work.
coverton341 said:
Success!!!
All right, first and foremost, thank you immensely for all the suggestions Kevin and others as well.
Here's what I did. I searched the ROM zip to no avail, but then found the apk in the gapps zip. I took it out of there, decompiled, messed around with just a few png files, recompiled and put it back into the gapps zip. Flashed it and it worked. Problem is, only a couple of the edits I made showed up which brings me to my next issue, ICS optimised apps have a tonne of "drawable-***" folders. Drawable, drawable-hdpi, drawable-hdpi-v8,v9,v11, drawable-xdpi, etc....ad nauseum.
I am not messing with any smali code, xml files, or .9.png files yet as I don't know what smali does, xml is a headache, and I have heard horror stories about .9.png files.
I'm going to dink around and see if I can sort out what items need to be changed for my current dpi setting (241) and will report back any findings, but probably not tonight as I have an early course in the morning followed by work.
Click to expand...
Click to collapse
Let us know how you (hopefully) succeed. Im a bit tempted to try theming myself but ive cant seem to find a guide that is up-to-date - and im learning somthing with every question you are asking - and with every answer the other nice fellows are providing.
:thumbs up!:
I am still trying to figure out how to setup everything.. I know I need newest sdk and newest apk multi tool which I didn't get yet.. I'm gonna tinker around today/tonite and see what I'm doing wrong
Sent from my Galaxy Nexus using xda premium
mrvirginia said:
wut? i've never done what you guys have when it comes to compiling/decompiling and replacing stuff. i'm not so sure that works, but i'll take your word for it for now since i've never tried it either. in theory, you can decompile and change xml, recompile and replace that xml, but not if you're dealing with the actual xml folder in apks. your resources change when you mess with that. this is the same for changing smali, except something else changes (it's been a bit since i've dealt with actual dev stuff).
Click to expand...
Click to collapse
See this is how I read it too. I believe the OP means that he's making changes and then replacing the apk in the flashable zip. Not actually replacing the edited xmls in the original apk. Glad I'm not the only one that read it that way though
coverton341 said:
Success!!!
All right, first and foremost, thank you immensely for all the suggestions Kevin and others as well.
Here's what I did. I searched the ROM zip to no avail, but then found the apk in the gapps zip. I took it out of there, decompiled, messed around with just a few png files, recompiled and put it back into the gapps zip. Flashed it and it worked. Problem is, only a couple of the edits I made showed up which brings me to my next issue, ICS optimised apps have a tonne of "drawable-***" folders. Drawable, drawable-hdpi, drawable-hdpi-v8,v9,v11, drawable-xdpi, etc....ad nauseum.
I am not messing with any smali code, xml files, or .9.png files yet as I don't know what smali does, xml is a headache, and I have heard horror stories about .9.png files.
I'm going to dink around and see if I can sort out what items need to be changed for my current dpi setting (241) and will report back any findings, but probably not tonight as I have an early course in the morning followed by work.
Click to expand...
Click to collapse
no decompiling is necessary for tweaking pngs.
smali code is for messing with policies, etc.
.9.png files can be a pain if you don't recompile the apk correctly.
and this should help with your dpi as far as what to edit so you can see it...
http://developer.android.com/guide/practices/screens_support.html

[Q] Edited framework-res.apk

Can anyone edit a framework-res.apk with no mods other than adding the crt animation? I've found guides on how to edit the bools file in the res/values filder inside the apk, but I can't get it to recompile the apk correctly. Can someone tell me how or send me an edited apk or something?
If you want to post your framework file, I'll do it for you and send it back.
I just posted several of these for Caulkulin's 3.0 rom. What are you using now? His framework, but with a stock battery look.
Sent from my SPH-D710 using XDA
kyamora said:
Can anyone edit a framework-res.apk with no mods other than adding the crt animation? I've found guides on how to edit the bools file in the res/values filder inside the apk, but I can't get it to recompile the apk correctly. Can someone tell me how or send me an edited apk or something?
Click to expand...
Click to collapse
You need to check the error and see whats wrong with the framework file. Also you just want a stock framework file with crt on? Also what are you using to compile and decompile
playya said:
You need to check the error and see whats wrong with the framework file. Also you just want a stock framework file with crt on? Also what are you using to compile and decompile
Click to expand...
Click to collapse
I was using apk manager 4.9, and I have no idea how to read the log.
I attached my framework-res. It's stock from FD19, I probably should have specified.
If no one gets to it, I'll mod it when I get home.
Sent from my SPH-D710 using xda premium
All done. I tested on my phone. After I replaced the apk, I had to manually restart the phone for it to work. I placed your apk in a zip file before I uploaded, so make sure you unzip your apk before putting it back on your phone.
Thank you so much, it works very well.
Now I'd just like to know how you did it. Coming from a clean computer with nothing installed, what would I need to decompile an apk, edit it, and compile it again? I'm trying to get a handle on the whole thing to do some development myself.
Try and upgrade to Apk Manager 5.02 since I just de-compiled and then compiled your apk file without an issue. Also try and update everything associated with it like your java... But it seems quite fine to me
Edit: just tried yours again as well as removing animation I lowered autobrightness which is something I do on all my roms for better battery life.. Try that mod next
playya said:
Try and upgrade to Apk Manager 5.02 since I just de-compiled and then compiled your apk file without an issue. Also try and update everything associated with it like your java... But it seems quite fine to me
Edit: just tried yours again as well as removing animation I lowered autobrightness which is something I do on all my roms for better battery life.. Try that mod next
Click to expand...
Click to collapse
Do I have to do anything to set it up or is it good to go from install? Should I restart my computer?
Also where can I find 5.02? I had a lot of trouble finding 4.9 in the first place.
I've never used apk manager, so I'll check that out also. I used apktool to mod your framework along with all the java runtime files it needed to work.
Sent from my SPH-D710 using xda premium
&roid said:
I've never used apk manager, so I'll check that out also. I used apktool to mod your framework along with all the java runtime files it needed to work.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Apktool confused me so I used apk manager. I can't figure out how to get apktool to work. Do you have a link to a good guide or anything?
There are some good ones on xda. I'll link you one when I get home.
Sent from my SPH-D710 using xda premium
I was apparently using the gingerbread method for an ICS build. Would that have kept it from compiling correctly?
kyamora said:
I was apparently using the gingerbread method for an ICS build. Would that have kept it from compiling correctly?
Click to expand...
Click to collapse
YES
&roid said:
YES
Click to expand...
Click to collapse
Haha, at least I'm learning.
To be fair, no one specified. Thanks for all the help guys.
Hi. Any help me to on crt effect in this framework ? I try apk menager and apk edit, and always some problem when compile, program loop and only exit work
http://db.tt/W2DKqulN

SystemUI crashes after installing edited twframework

I need help please. Does anyone know what might be causing my systemui to crash after I install an edited twframework. I am on CNexus' MK3 deodexed rom. I am using ApkMultiTool with compression set to 9. I am able to decompile and recompile the twframework, but after copying to system/framework, changing permissions and rebooting, a persistant message "systemUi has stopped working" keeps popping up. At that point, I have to quickly keep pressing OK while trying to navigate over to ES file Explorer so that I can copy over the backup twframework to the system.
It could be so many things. What did you edit?
---------- Post added at 11:50 AM ---------- Previous post was at 11:48 AM ----------
Did you copy the manifest and resources files from the original apk to the modified one?
metalfan78 said:
It could be so many things. What did you edit?
---------- Post added at 11:50 AM ---------- Previous post was at 11:48 AM ----------
Did you copy the manifest and resources files from the original apk to the modified one?
Click to expand...
Click to collapse
I edited the scrollbar text color in values/color. I didn't copy the manifest over, only the resources. I didn't know I had to copy over the manifest? Is that a mandatory, I never do that and usually never have problems?
I've always had to copy the manifest, it contains the stock signatures needed for the system to verify the apk. Try that first to see if it works.
Grab a logcat. It'll tell you if it can't find a resource or whatever the issue is
metalfan78 said:
I've always had to copy the manifest, it contains the stock signatures needed for the system to verify the apk. Try that first to see if it works.
Click to expand...
Click to collapse
Thanks very much for your help @metalfan78! I'll give it a try and see what happens
CNexus said:
Grab a logcat. It'll tell you if it can't find a resource or whatever the issue is
Click to expand...
Click to collapse
Thanks @CNexus. As usual, I appreciate your help. Give me a little bit, and I'll have something for you.
metalfan78 said:
I've always had to copy the manifest, it contains the stock signatures needed for the system to verify the apk. Try that first to see if it works.
Click to expand...
Click to collapse
I didn't realize until after you asked, I use Apk MultiTool. All you need to do is copy resources from the modded apk to the original. The original manifest remains.
I always used apk tool and I did it the opposite way, copying the manifest over to the new one where I made all the edits.
metalfan78 said:
I always used apk tool and I did it the opposite way, copying the manifest over to the new one where I made all the edits.
Click to expand...
Click to collapse
Hmmm. I didn't know to do that. Do you think it's better that way?
I can't say which way is better, that's just the way I learned. Hopefully cnexus can help more.
I'm a lot out of comfort zone with theming questions so I called in the pros for you. Should get a response or two in a bit
nyfl2004 said:
I need help please. Does anyone know what might be causing my systemui to crash after I install an edited twframework. I am on CNexus' MK3 deodexed rom. I am using ApkMultiTool with compression set to 9. I am able to decompile and recompile the twframework, but after copying to system/framework, changing permissions and rebooting, a persistant message "systemUi has stopped working" keeps popping up. At that point, I have to quickly keep pressing OK while trying to navigate over to ES file Explorer so that I can copy over the backup twframework to the system.
Click to expand...
Click to collapse
Hey buddy. Some edit in your tw framework is clashing with UI. UI is trying to pull a resource from twfw that isn't there anymore. No easy solution. Another reason why tw theming gives people fits and there are so many themes for aosp and not many for tw. I would start over editing small amounts at a time...
[email protected]'$ [email protected]@XY
To be in the safe zone always copy over android manifest and meta inf files. Even when using multi tool. You never know if it is going to do it for you even tho it usually does.
He's what I did for that apk.
1. Decompile
2. Make edits
3. Compile
4. Move original meta inf file to new apk
5. Move original android manifest to new apk
I haven't had any problems this way
CNexus said:
I'm a lot out of comfort zone with theming questions so I called in the pros for you. Should get a response or two in a bit
Click to expand...
Click to collapse
Thebear j koss said:
Hey buddy. Some edit in your tw framework is clashing with UI. UI is trying to pull a resource from twfw that isn't there anymore. No easy solution. Another reason why tw theming gives people fits and there are so many themes for aosp and not many for tw. I would start over editing small amounts at a time...
[email protected]'$ [email protected]@XY
Click to expand...
Click to collapse
calebsb said:
To be in the safe zone always copy over android manifest and meta inf files. Even when using multi tool. You never know if it is going to do it for you even tho it usually does
Click to expand...
Click to collapse
Thanks fellas. I appreciate your help. I will definitely take all your advice and apply it going forward. You all have taught me a great deal. I'm very grateful!!
You may want to, if the previous suggestions haven't helped, throw your apk in a zip. Wipe cache/dalvik, and flash via recovery.
1brainsurgeon said:
You may want to, if the previous suggestions haven't helped, throw your apk in a zip. Wipe cache/dalvik, and flash via recovery.
Click to expand...
Click to collapse
Thanks @1brainsurgeon. I had tried that as well, figured I would cover all bases, but that didn't work either. I finally threw in the towel and borrowed a twframework from another MK3 rom. I was then able to make my edits without any issues. Big thanks to all you guys for all your help!!

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

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

Oos animations port request

Hello XDA community,
Is there anyone here who could port the oos animations to aosp/caf based roms as a flashable framework mod or a substratum theme since substratum support custom animations. I would do it for myself but I dont know how.
I would even be happy if someone eventually has a explanation/guide how to do it then I can try it for myself.
Thanks
Best Regard CroW_D
The animations are located in res/anims within framework-res.apk
To extract them from OOS you need to grab framework-res.apk from OxygenOS (it's in system/framework). I haven't done any mods for a while now, but replacing the anim files inside the framework-res.apk of your rom with the ones from oxygen os should work. I'd do a backup before trying this. I used to be quite nitty so what I used to do was decompile both framework-res.apk with apktool, replace the anim files after decompiling, then recompile your framework-res.apk
If you have the framework-res.apk from your rom i don't mind doing a test zip for you to try
coldflid said:
The animations are located in res/anims within framework-res.apk
To extract them from OOS you need to grab framework-res.apk from OxygenOS (it's in system/framework). I haven't done any mods for a while now, but replacing the anim files inside the framework-res.apk of your rom with the ones from oxygen os should work. I'd do a backup before trying this. I used to be quite nitty so what I used to do was decompile both framework-res.apk with apktool, replace the anim files after decompiling, then recompile your framework-res.apk
If you have the framework-res.apk from your rom i don't mind doing a test zip for you to try
Click to expand...
Click to collapse
Are you in some way available in Telegramm ?
Edit: i manged to make it but only the closing animations is working the app opening animation is still the same can you help me with that ?
CroW_D said:
Are you in some way available in Telegramm ?
Edit: i manged to make it but only the closing animations is working the app opening animation is still the same can you help me with that ?
Click to expand...
Click to collapse
I tried the same thing and got the same result
Origamiman72 said:
I tried the same thing and got the same result
Click to expand...
Click to collapse
Yeah i did some work withh theming devs and we end in the result it must be some oos closed source stuff.... But really would be nice to have it :/
CroW_D said:
Yeah i did some work withh theming devs and we end in the result it must be some oos closed source stuff.... But really would be nice to have it :/
Click to expand...
Click to collapse
also idk if its just me, but did it also cause some systemui crashes for you?
Origamiman72 said:
also idk if its just me, but did it also cause some systemui crashes for you?
Click to expand...
Click to collapse
No systemui crashes for me. Just replaced the anim folder from oos with the current one you have on the custom ROM but make sure you have to redone this every time you flash an update of the custom rom. Meiby you picked always the old framework res apk. And replaced it can causes the issue.
Did this work. Can anyone share the file.

Categories

Resources