Stock home screen icon dimensions? - Nexus 6P Q&A, Help & Troubleshooting

So I enjoy doing a little theming as small projects. Currently, I am working on changing the app drawer button and animating it once it's pressed. I have the stock launcher decompiled (Velvet.apk) and have found the app drawer image therein that I need to modify/change. However, there are four of them listed and each with different sizes/dimension. The dimensions found were 84x84, 56x56, 112x112, and 168x168. Anyone have any idea which one of those dimensions portray the actual size of the app drawer button on the home screen?
Side note, I have Xposed installed which modifies my framework. I was surprised I was able to install my framework-res.apk in Apktool and decompile the system app without issues. If I edit my velvet.apk and replace the stock one with my modifed one will I encounter issues since Xposed is installed?
Thanks for the help and when I'm finished I can post it here if anyone thinks it's cool lol.

Mod successfully completed. See link below to themes/apps forum for Screenshot and DL link.
http://forum.xda-developers.com/showthread.php?t=3285823

Related

Problem with edited APK's - xpost from General

Hi all,
First of all, apologies for the xpost...
Question re: weird behaviour on APK files I've edited according to http://forum.xda-developers.com/showpost.php?p=23923507&postcount=2
I use a couple of apps regularly and have tried modifying them to make the UI suit me a bit better. For what it's worth, one's a Twitter app and one's a keyboard.
I've used apktool to decompile them, edited certain res .xml files to change the interface and then compiled them again with apktool. I've then signed them using Sigare (obviously it's not signed using the original developers key, but a key that I've made)
I've then replaced the apk in data\app with my modified one.
The problem is that, while the new app works for a little white, after a while it just disappears from my app list. When I go to run it directly, I get a message that the app won't load.
TL;DR: apps I've modified work to start with and then don't. Anyone think of a reason?
have you read this answer of mine?
http://forum.xda-developers.com/showpost.php?p=25205513&postcount=239
spirosbond said:
have you read this answer of mine?
http://forum.xda-developers.com/showpost.php?p=25205513&postcount=239
Click to expand...
Click to collapse
I did thanks. Giving it a go now
Arrow Problem with edited APK's (updated
I've tried a couple of things and got these edited APK's to install and work
...initially.
Fire it up the next morning and find that the app crashes
Ideas?

[Q] how do i remove the favorites icon that sits in the middle of the status bar?

You know that little white word bubble icon in the middle of the thinkpads status bar that you can set favorites to? How can I get rid of it? I am on a us thinkpads tablet that ha been rooted.
It's buried in a system file if you want to try to hack it & cook a new ROM for us. Wed' all be incredibly grateful!
I can provide some insight into this.
It's in the systemui.apk. I've removed the icon itself by making the images associated blank. That way i didnt have to decompile / recompile, however if you press that specific location, it'll still activate.
I can attach my hacked apk for 3.1 HC if you guys like.
Sent from my Lenovo Thinkpad using xda premium
I bet a lot of people would like it!
Let me get this right.... All you did was rename from .apk to .zip, unzip (assuming with 7zip), replace the graphic file, and rezip, un-rename, and it worked?
If that's the case, I'm going to try replacing all of those blasted bar graphics wherever they are with something at least grey. They burn out my eyeballs, especially when I have a screen filter on. Nandroid, here I come....
Yea, that's essential what I did. Just don't remove any of the files. You'll have to decompile and recompile for that.
I've attached my modified SystemUI.apk
rename to SystemUI.apk and push it to /system/apps/ and reboot
i recommend doing a fix permissions after pushing.
Sent from my Lenovo Thinkpad using xda premium

[MOD] N7505 KitKat 4.4.2 TouchWiz 4x5 Home Grid

Hi,
Since there's little customization for this device I started messing a bit with the SecLauncher3.apk to resize icons and increase the number of rows on stock TW and avoid using others launchers (I like TW) .
You can find screenshots of the Appdrawer and of the Menu attached (i have less then 10 posts so i'm not able to embed the screenshots on the thread)
Features:
Home with 4x5 grid with smaller icons
Up to 7 icons on the dock bar
AppDrawer with 4x5 grid
Issues:
Stock Weather Widget doesn't look perfect
I don't know how to resize the AppDrawer Shortcut
Folders look a bit bigger then regular icons
If you know how to solve any of this issues please share the solution. I didn't knew nothing about decompiling/editing/compiling until 3 hours ago, so... nothing is impossible.
Instructions:
Download the modded SecLauncher3.apk from here:
Create a backup from your SecLauncher3.apk in /system/priv-app
Copy the modded SecLauncher3.apk to /system/priv-app
Set permissions on SecLauncher3.apk at 644
Reboot to TWRP and clear cache and dalvik cache
Reboot
Cheers
Very small icons
Mod Its good but...
dingila said:
Very small icons
Mod Its good but...
Click to expand...
Click to collapse
Smaller icons is a feature of the mod

[stock] Cm launcher with auto-rotation - no computer needed

Need root. Tested on Z1c with stock deodexed rom.
1) Flash this port, (not my work) - http://forum.xda-developers.com/moto-e/themes-apps/app-cm12-1-trebuchet-rom-t3145576 Now you can use Trebuchet on stock rom.
2) Install apktool for Android here - http://onhax.net/tag/apktool-for-android-5-2-0-apk Choose the right version for your phone. I'm using Z1c, so I installed 'arm7'. After installed, go to settings and check 'device has root', then close the app, and reopen to grant root access.
3) Using a root browser, make a directory in storage somewhere called 'apktool', {or something}, and copy the following to it: /system/framework/framework-res.apk, /system/framework/SemcGenericUxpRes/SemcGenericUxpRes.apk, and Trebuchet.apk, (from the zip you flashed).
4) Open apktool, go to apktool directory, and import all 3 files as framework, by tapping them and choosing the option. Now you can decompile Trebuchet, and you should get a folder called Trebuchet-src.
For auto-rotation - go to /res/values/bools.xml and change 'false' to 'true' in the 'allow rotation' line.
For other tweaks - poke around and figure some stuff out. I was trying to change the background in the app drawer, since I don't like the white, and you can see in screenshots that I changed the background behind the background, but the white is still there around the apps. I did it by changing a color value in 'colors', then adding a line in 'apps_customize_pane', but I haven't figured out the other layer. I think it might be in smali somewhere. I also changed the background in Trebuchet settings.
After saving changes, open apktool app and tap on the Trebuchet-src folder and choose 'recompile'. You should get a new apk called 'Trebuchet-src.apk'. Then tap on that, and choose 'sign', which will create a new apk called 'Trebuchet-src-sign.apk', which you can install normally. Note that you might get an error message on recompile about default translation. Don't worry about it; as long as there is a new apk created, it should be fine.
{Mods: I know I'm not a dev, and I was going to just post in Z1c general, but it seems like it may apply to 'cross-device', so I figured I'd give it a shot. Please judge as you will}
Found a couple more layers...
Got it, (kind of - it's a hack)...
This was an old post so not sure it still applies..found it while searching.
Might be a stupid question..but
Does CM Launcher not work in landscape mode? It's not rotating and no setting for it. Can't imagine it doesn't in 2018..
What am I missing here?

Need Help Trying to Modify and Recompile SystemUI APK [Android 7.1.1] [Stock]

Hey all.
I'm trying to modify my SystemUI.apk on stock Android 7.1.1 to remove the regular system clock and add the text clock, as well as hiding the VPN icon. On previous versions of Android, I simply used apktool to decompile the SystemUI.apk and framework-res.apk, made my necessary modifications to the res folder, and then recompiled with apktool.
However, I couldn't get that to work on Android 7.1.1, and I started following this guide: http://chromloop.com/2016/11/guide-how-to-port-pixel-navigation-bar-animation-to-your-phone/
Except I still can't get my modifications to work. When I follow the necessary steps and replace my SystemUI.apk, the statusbar and navigation bar are no longer rendered on my phone. And flashing back to stock SystemUI causes the phone to crash repeatedly with an error message of "SystemUI failed to start."
Can anyone kindly point me in the right direction?
Thanks!
SiliconMage said:
Hey all.
I'm trying to modify my SystemUI.apk on stock Android 7.1.1 to remove the regular system clock and add the text clock, as well as hiding the VPN icon. On previous versions of Android, I simply used apktool to decompile the SystemUI.apk and framework-res.apk, made my necessary modifications to the res folder, and then recompiled with apktool.
However, I couldn't get that to work on Android 7.1.1, and I started following this guide: http://chromloop.com/2016/11/guide-how-to-port-pixel-navigation-bar-animation-to-your-phone/
Except I still can't get my modifications to work. When I follow the necessary steps and replace my SystemUI.apk, the statusbar and navigation bar are no longer rendered on my phone. And flashing back to stock SystemUI causes the phone to crash repeatedly with an error message of "SystemUI failed to start."
Can anyone kindly point me in the right direction?
Thanks!
Click to expand...
Click to collapse
You'll need to flash stock img, nothing else i tried worked. I was farting around with both files and systemui stopped working for me after as well. I was just trying to change the framework-res colors. But using the recompiled apk crashed the UI even after replacing it.
StarRavier said:
You'll need to flash stock img, nothing else i tried worked. I was farting around with both files and systemui stopped working for me after as well. I was just trying to change the framework-res colors. But using the recompiled apk crashed the UI even after replacing it.
Click to expand...
Click to collapse
Cool, thanks. Did that get your colors working as well, or no?
SiliconMage said:
Cool, thanks. Did that get your colors working as well, or no?
Click to expand...
Click to collapse
I can change them with zips provided here. http://forum.xda-developers.com/nexus-6p/themes-apps/mod-theme-nmf26f-various-framework-res-t3515739
But I want to do it myself at least so i understand how to modify systemui instead of using user provided zips
Same here, man, same here. Thanks.
I received a response from sharkie405 and I was able to fix my issue by simply adding the -c command to the end of the apktool build command. The "-c" preserves the signing of the original jar, which is necessary for validating the recompiled jar file.
So after I made the necessary modifications to my xml files, I did: java -jar apktool b SystemUI -c

Categories

Resources