Hello I created custom header image to use with omnistyle. But I realised I need a full apk to get it work. There is no option in pure nexus ROM to use custom header image (my own image). So how do I create an app (like this https://play.google.com/store/apps/details?id=com.dirtyunicorns.headers&hl=en )for omnistyle? I tried googling but could not find an answer. I am not a developer but some guidance or template would help.
Hello, i don't know if you still need this? I can make a template for Android Studio with a little guide if this is still relevant.
PONYMODZ said:
Hello, i don't know if you still need this? I can make a template for Android Studio with a little guide if this is still relevant.
Click to expand...
Click to collapse
Do you happen to know where to go to change the OmniStyle QS image collection names? For example, I've replace all of the "Nature" images with pictures of sharks. That was easy enough and the new images show up and work, but the image collection in the list still says "Nature." I would like to change it to say "Sharks." I've dug through the OminStyle.apk up and down, but I can't find where those names are set. I see them in the AndroidManifest.xml, but changing the android:label in the androidmanifest.xml has no effect.
sharkie405 said:
Do you happen to know where to go to change the OmniStyle QS image collection names? For example, I've replace all of the "Nature" images with pictures of sharks. That was easy enough and the new images show up and work, but the image collection in the list still says "Nature." I would like to change it to say "Sharks." I've dug through the OminStyle.apk up and down, but I can't find where those names are set. I see them in the AndroidManifest.xml, but changing the android:label in the androidmanifest.xml has no effect.
Click to expand...
Click to collapse
The names are set in the androidmanifest.xml i have no clue why it does not work for you. But it would be easier if you just add your images with an apk or add them directly to the Omnistyle.apk if you need help with that just contact me.
PONYMODZ said:
The names are set in the androidmanifest.xml i have no clue why it does not work for you. But it would be easier if you just add your images with an apk or add them directly to the Omnistyle.apk if you need help with that just contact me.
Click to expand...
Click to collapse
I've already added my images to the OmniStyle.apk, and that works. I just want the image group text to say what the actual images are rather than whatever the text is by default.
I'd rather work it out in the thread, if that's alright. This way others can find it should they need it.
I'm about to go to bed now, but tomorrow I can upload the AndroidManifest.xml, or the APK I'm working with, if you want to have a look. Let me know how to proceed.
Thank you so much for being willing to help me out with this!
Sent from my moto g(6) using XDA Labs
So here's what I have so far:
- You can see in the attached screenshot (AndroidManifext-xml_Changes.png) that I've changed the text in the "android:lable" section of each activity.
- You can see in the attached screenshot (Screenshot_MiXplorer_20190612-122940.png) taken from the OmniStyle.apk on my phone that the AndroidManifest.xml is there on my phone with my new text changes.
- However, you can see in the attached screenshot (HeaderImageCollectionTitle-NoChange.png) that the changed labels did not actually change anything.
More Information:
- This is the OmniStyle.apk from the 6-4-19 release of the Havoc ROM for the Pixel 2 XL. I've also check this ROM's Setting.apk and SystemUI.apk in case the text was set there, but I don't see any reference to those words anywhere in Settings or SystemUI. The link to that ROM is: https://forum.xda-developers.com/pixel-2-xl/development/pie-havoc-os-t3851780
- Here's a link where you can download my already modded apk as well in case you wanted to have a look at it (It's too big to upload directly): https://drive.google.com/open?id=1N-ivQSa3In1LbD8LZ4QrVrzo1HAB0giT
Let me know what else you need, if anything.
@sharkie405
So i have checked the apk and the Androidmanifest.xml is correct but when i tested the apk, for me it wasn't working at all. I use the same ROM as you on my S7(herolte) and when i replace my apk with yours there it cant be loaded at all i just see my custom Headers, maybe it's an issue with your ROM or the apk itself. Try to update your ROM and edit the new apk again, but best would be to restore your Omnistyle.apk and make custom headers with the Android Studio Template from me, if you need help with it just ask
Related
I have been working on this issue for most of the day over in the Vibrant forums.
I am posting here in hopes of getting someone who knows more about apk editing and fonts then I do to help out.
Link to the post on the XDA Vibrant forum here
Please post your response there. Once the issue is solved I will repost a walk-through on all Galaxy S forums.
Here is the start of my thread, please read the link to see the progress.
I am aware that there are other ways to edit the fonts on our phone, by replacing renaming the default font. This is NOT what I would like to accomplish.
Since the Galaxy S is the first android phone to use Flipfont, I think we should take advantage of it. It gives us a nice preview of the font in the built in menu option and is thus superior to the other methods.
I originally purchased the Bauhaus font from the market and made a backup of it through ASTRO. After pulling the file from my phone and putting it on the computer I started editing the file with Apk Manager 4.8 found here
Steps preformed
Copied original apk into place-apk-here-for-modding folder
Run script.bat and choose option 9 ***this maybe where the issue is as I may need to choose option 10 and include the dependancy if there is one for the flipfont apk.
replace bauhaus.ttf with a .ttf font of my choosing
edit all XML, yml and smali files to include the font name or font.ttf depending on the entry in the original file *** I did not change any of the other coding so again this maybe where the problem is, as I may need to change something else to have the font act properly.
Edit the last folder name in the smali folder tree from bauhaus to the name of my font
Replace font with custom font and replace the preview image with my own
Compile apk
Sign apk
Rename apk
install apk on my phone
After putting the apk on my phone and installing the file, it shows up as expected in settings>Sound and Display>Font style. The font thumbnail shows up properly as does the font preview. The preview does show up a little larger then the other fonts and may be a sign that the font is not optimized properly or that I missed something in the XML.
After applying the font and restarting, the phone is extremely slow, freezing quite often and the font does not show up, it shows the default font instead.
If anyone that knows more about XML or apk editing/creation can help it would be great.
I have included the edited font apk if you would like to download it and run it through Apk Manager 4.8. If you want to try it with the bauhaus or one of the other fonts you will need to buy it from the market and back it up. (trying not to break any rules here.)
[EDIT][More info] Ok I took a closer look at the font that came with the Bauhaus akp
In the discription of the font it list:
OpenType Layout, Digitally Signed, TrueType Outlines
I know that opentype is a new format and that alot of the fonts for OpenType that I find are made by Monotype, the same people that make the fonts available for download. I think this may have something to do with it or maybe Im just grasping. :ºp
Any font guys out there have any info on this?
CAUTION THE FOLLOWING FILE IS NOT MEANT FOR USE AND WILL CAUSE YOUR PHONE TO RUN SLOW!!!
Download Font APK
I have been working on this issue for most of the day over in the Vibrant forums.
I am posting here in hopes of getting someone who knows more about apk editing and fonts then I do to help out.
Link to the post on the XDA Vibrant forum here
Please post your response there. Once the issue is solved I will repost a walk-through on all Galaxy S forums.
Here is the start of my thread, please read the link to see the progress.
I am aware that there are other ways to edit the fonts on our phone, by replacing renaming the default font. This is NOT what I would like to accomplish.
Since the Galaxy S is the first android phone to use Flipfont, I think we should take advantage of it. It gives us a nice preview of the font in the built in menu option and is thus superior to the other methods.
I originally purchased the Bauhaus font from the market and made a backup of it through ASTRO. After pulling the file from my phone and putting it on the computer I started editing the file with Apk Manager 4.8 found here
Steps preformed
Copied original apk into place-apk-here-for-modding folder
Run script.bat and choose option 9 ***this maybe where the issue is as I may need to choose option 10 and include the dependancy if there is one for the flipfont apk.
replace bauhaus.ttf with a .ttf font of my choosing
edit all XML, yml and smali files to include the font name or font.ttf depending on the entry in the original file *** I did not change any of the other coding so again this maybe where the problem is, as I may need to change something else to have the font act properly.
Edit the last folder name in the smali folder tree from bauhaus to the name of my font
Replace font with custom font and replace the preview image with my own
Compile apk
Sign apk
Rename apk
install apk on my phone
After putting the apk on my phone and installing the file, it shows up as expected in settings>Sound and Display>Font style. The font thumbnail shows up properly as does the font preview. The preview does show up a little larger then the other fonts and may be a sign that the font is not optimized properly or that I missed something in the XML.
After applying the font and restarting, the phone is extremely slow, freezing quite often and the font does not show up, it shows the default font instead.
If anyone that knows more about XML or apk editing/creation can help it would be great.
I have included the edited font apk if you would like to download it and run it through Apk Manager 4.8. If you want to try it with the bauhaus or one of the other fonts you will need to buy it from the market and back it up. (trying not to break any rules here.)
[EDIT][More info] Ok I took a closer look at the font that came with the Bauhaus akp
In the discription of the font it list:
OpenType Layout, Digitally Signed, TrueType Outlines
I know that opentype is a new format and that alot of the fonts for OpenType that I find are made by Monotype, the same people that make the fonts available for download. I think this may have something to do with it or maybe Im just grasping. :ºp
Any font guys out there have any info on this?
CAUTION THE FOLLOWING FILE IS NOT MEANT FOR USE AND WILL CAUSE YOUR PHONE TO RUN SLOW!!!
Download Font APK
You only can use .ttf (true type font) any other type will not work,if you have a font u want to use but is not in .ttf then you need to convert it to .ttf, btw i prefer the Type Fresh app to manage and change my fonts is easier than the method you described.
Also, make sure the font has a full latin library. I learned the hard way from the TypeFresh app (which is a way better solution IMO). In its instructions which I only read the second time, one font (i believe its called DroidSansFallback.ttf) needs to have a COMPLETE set, including latin, I believe for certain coding going on somewhere. I bricked my phone within two hours of rooting it. Took three to get it back. (Backup people!)
Anyways, now I use TypeFresh, it gives you options on which system font to replace, and I never replace that one.
Hope this helps.
Hello,
I found this thread :
http://forum.xda-developers.com/showthread.php?t=765419
and I have some questions about this :
1) Is it possible to "tweak" our framework-res.apk with this battery mod.
2) Can I use this method to "tweak my framework-res.apk : http://circle.glx.nl/
3) When I download my new framework-res.apk, how to boot on recover mode on the phone to put the framework-res.apk on the system ?
4) Do you know an other easylier method to tweak icons on the HD2 under android ?
Thanks a lot !
+1 I asked myself to but no time to seach forum
@Karlichon
What is with this batmod? Are you done with them?
karlichon said:
1) Is it possible to "tweak" our framework-res.apk with this battery mod.
2) Can I use this method to "tweak my framework-res.apk : http://circle.glx.nl/
3) When I download my new framework-res.apk, how to boot on recover mode on the phone to put the framework-res.apk on the system ?
Thanks a lot !
Click to expand...
Click to collapse
Ok I think I'll answer this, but bear with me as it's NOT easy or for the faint of heart. If you read this and you DO NOT feel comfortable I would recommend you not giving this a go.
Before you start ANY of these steps below, MAKE SURE YOU BACKUP YOUR FILES BEFORE REPLACING THEM. I WILL NOT BE HELD RESPONSIBLE FOR ANY DAMAGE CAUSED FOLLOWING THESE STEPS! You have been warned.
1) Visit the website above and run through the steps to get the battery images you want. For the purposes of this tutorial/howto I am not covering how to change anything else (KISS: Keep It Simple, Stupid).
2) The easiest ones to change are the Version A-I ones, just choose which battery set would work best for you on your phone and click "Next"
3) Choose "Do not include icons" and click next. The icons it is talking about here are the signal, wifi, usb etc notification bar icons and as I mentioned I will not cover how to change those here.
4) Leave "Do not change notification status bar" selected and click next. Again I'm not covering that here.
5) You can choose a different boot anim if you want, they are very easy to upload to your phone and you can figure out where they have to be put yourself with no problems. IMPORTANT: If you do change the boot animation, make sure you choose the correct type of rom you have from the dropdown selection.
6) Upload your existing framework-res.apk (using something like DroidExplorer, navigate to /system/framework and paste it onto your desktop, then upload here). This will update the relevant files in your framework-res.apk automatically. (If you cannot obtain your existing framework-res.apk I cannot guarantee method 2 will work, sorry but feel free to try)
7) Replace your framework-res.apk (via DroidExplorer or your chosen ADB browser) on your phone and reboot. Voila!
This worked for me on shubcraft 2.0 drop mode but obviously I cannot guarantee it will work for everyone. Please remember my warnings above that this is not guranteed.
hello, thanks for your quick help, but it doesn't work for hyperdroid rom V1.7
any idea ?
karlichon said:
hello, thanks for your quick help, but it doesn't work for hyperdroid rom V1.7
any idea ?
Click to expand...
Click to collapse
there is another far more complicated way around it, but it really does take about half an hour to work out.
Basically, you need to get your framework-res.apk and extract it with winrar or something similar (an apk is basically just a zip file) and find the folder called res/drawable-HDPI. this is where all the icons for things like your battery icons live.
Copy and paste the new icons from someone elses framework-res or even one you download from the website above into this folder and replace the drawable-HDPI folder into your framework-res.apk, replace it onto your phone and reboot.
Again, this is a quick description of a much lengthier way of doing it but it does work. Also, my disclaimer in the post I made before still stands, do this AT YOUR OWN RISK and do NOT complain to me if something breaks. If you don't fully understand, don't do anything.
I tried the kitchen method, but I receive a huge error log after uploading the framework apk
is the page currently partly down?
rafpigna said:
I tried the kitchen method, but I receive a huge error log after uploading the framework apk
Click to expand...
Click to collapse
It doesn't seem to work all that well with frameworks from our current modded builds. I've tried it with a rooted desire framework (from my gf's desire) and that worked. Evidently all the work that the devs do on our hd2's make them very different to other android builds. the second method I posted (adding the png's to your existing framework) works perfectly.
BlackPit666 said:
is the page currently partly down?
Click to expand...
Click to collapse
Nope, seems up to me.
yes its up again
rafpigna said:
I tried the kitchen method, but I receive a huge error log after uploading the framework apk
Click to expand...
Click to collapse
for me the same, desirehd revolution rom of mdj
can anybody help me?
Reno_79 said:
there is another far more complicated way around it, but it really does take about half an hour to work out.
Basically, you need to get your framework-res.apk and extract it with winrar or something similar (an apk is basically just a zip file) and find the folder called res/drawable-HDPI. this is where all the icons for things like your battery icons live.
Copy and paste the new icons from someone elses framework-res or even one you download from the website above into this folder and replace the drawable-HDPI folder into your framework-res.apk, replace it onto your phone and reboot.
Again, this is a quick description of a much lengthier way of doing it but it does work. Also, my disclaimer in the post I made before still stands, do this AT YOUR OWN RISK and do NOT complain to me if something breaks. If you don't fully understand, don't do anything.
Click to expand...
Click to collapse
can you tell me which files i need to replace to get another battery icon? only the files which "batt" in it?
Reno_79 said:
there is another far more complicated way around it, but it really does take about half an hour to work out.
Basically, you need to get your framework-res.apk and extract it with winrar or something similar (an apk is basically just a zip file) and find the folder called res/drawable-HDPI. this is where all the icons for things like your battery icons live.
Copy and paste the new icons from someone elses framework-res or even one you download from the website above into this folder and replace the drawable-HDPI folder into your framework-res.apk, replace it onto your phone and reboot.
Again, this is a quick description of a much lengthier way of doing it but it does work. Also, my disclaimer in the post I made before still stands, do this AT YOUR OWN RISK and do NOT complain to me if something breaks. If you don't fully understand, don't do anything.
Click to expand...
Click to collapse
This method will not work with the battery icons which shows all 100% increments. This method will only work for the standard battery icons, which only involves like 12 battery icons.
In order to add the 1% increment readings in the battery, it involves modifying xml files to read and associate the correct battery icons at each increment.
can you give a tut how to add the version a manually?
nvm, I got it!
I dont know if theres one like this i havent found one if you know of one please tell me
Here it is: the app will open up an apk like ninjamoph does but instead of having to go through manually and select the pngs and change colors in another progam then load them through ninjamorph this app would scan the apk for the png you would nomaly select to theme and present them to you with the option to change the colors, after you set it up the way you want it could replace the png with the ones you changed and put it together for you to install over the original apk
The reason this is just an idea is because i cant make apps ive tried to but the process dosent stick to my brain please if your a developer tell me if this apk is possible
sent from my Awesome MotoMaxx
macroman8807 said:
I dont know if theres one like this i havent found one if you know of one please tell me
Here it is: the app will open up an apk like ninjamoph does but instead of having to go through manually and select the pngs and change colors in another progam then load them through ninjamorph this app would scan the apk for the png you would nomaly select to theme and present them to you with the option to change the colors, after you set it up the way you want it could replace the png with the ones you changed and put it together for you to install over the original apk
The reason this is just an idea is because i cant make apps ive tried to but the process dosent stick to my brain please if your a developer tell me if this apk is possible
sent from my Awesome MotoMaxx
Click to expand...
Click to collapse
While This maybe an option it is not the best option. Trying to edit a system apk while it is being used is asking for it to be corrupted and causing issues. This is the main reason that seemingly random issues popup with CM themes.
Well what if it made a copy of the apk to edit that way the actual app whether it be system or user would not be affected during the editing process that would also make it easier to share the app
sent from my Awesome MotoMaxx
I am on alliance Rom and it is fantastic. Everything is themed just the way I like it. I only need to change one last thing to realize my dream setup. Does anybody have any idea on how to universally change the generic contact pics that shows up in my mms?
cinsity said:
I am on alliance Rom and it is fantastic. Everything is themed just the way I like it. I only need to change one last thing to realize my dream setup. Does anybody have any idea on how to universally change the generic contact pics that shows up in my mms?
Click to expand...
Click to collapse
Yes.
If you like, provide a copy of what you want to change it to. I have a copy of Alliance Build1 on my phone and can make you a flashable. When I post it, I will give you some general instructions on how to add to it, if you like.
Edit: And just to be sure, did you flash a theme at all?
That would be awesome. I did flash all backs black theme. I actually just want a totally black bg pic to sub in. I would be ok with a way to completely remove the contact pic at all. Thanks a ton for your help
Sent from my SM-N900V using XDA Free mobile app
Zip attached. Flash in recovery. It does not replace SecMms.apk, it only replaces thise pngs inside it. It wipes dalvik for you. I will add on a short tutorial on how to add onto this yourself shortly.
View attachment 2906973
Ok. This uses the vr-theme script. Most of the a.b.b. theme uses it as well.
If you unzip flash me.zip, and go inside, you'll see this
Drill down into the vr theme folder. . .
You see a folder with the exact same name as what you're modding. Please note that it has the exact spelling, including the .apk. I'll get to how I chose what's inside in a minute. The way I get what's inside was I unzipped thee abb theme, and got to the SecMms.apk app. In abb it is a full app. So to get into it, use a file explorer. I used es file explorer. Long press it and choose to open it. If you just short press like normal, it will try to install it.
When you open it go into the res folder.
Then I chose this folder to extract (because it had the images I wanted)
And when you back out, you get this
Go into that folder, you'll see a bunch of pngs. I delete the ones I don't want to change. I'm left with
For your zip, I made all these images transparent.
I then placed the SecMms folder to the flash me in the correct folder (vr-theme/system/priv-app, for this mod) and renamed it to include tha ".apk".
Then I zipped it up.
A couple of side notes:
Any .9.png files... don't modify those unless you know how. Google it if you really wanna know.
Any .png files... if you replace it rather than edit it, 1. Make sure the name matches exactly. 2. Make sure the dimensions match exactly to ensure it shows correctly. If it isn't the same, crop or resize.