Getting rid of the ripple effect - Android Q&A, Help & Troubleshooting

Hey! I cant be the only one who can't stand the ripple effect introduced in Android 5 (though I asked my friends and they don't find this effect that disturbing).
This is what I mean: killem.al/ripple.mp4 - it also shows when you tao on an item in settings or click the back arrow ...
Honestly, the first time I saw it I thought I had enabled something in developer options or accesibility settings by mistake!
Actually what makes this really annoying is that the effect can not be disabled globally (not even in a theme)!
So I spent few days diving into Android source code and build process (that's how annoying this effect is to me). In the end it was enough to just find the right "draw" function and replace it with simple "return true" to make it easier I prepared step-by-step instructions how to do this in smali bytecode so there is no need to recompile framework.jar: github.com/luv/android5_noripple
Unfortunatelly it's not enough to just replace something inside framework.jar in android6 anymore and it's actually easier to just recompile the whole OS so I also prepared a guide how to recompile Cyanogenmod13 with the patch: github.com/luv/android5_noripple/blob/master/ANDROID6_README.md
DISCLAIMER: I have tested this only on cm12 (and cm13) and it's very much possible messing with framework.jar directly will make your device get stuck at boot (happened to me several times!).

eh?

Related

[Q] harder questions on theming

Okay, so i've been playing around with theming for 2 months and i've just about figured it all out, except for one thing.... the VZW banner on the lock screen for the D2 doesnt seem to give two ****s what i put in any of the keyguard .xmls that is supposed to control the layout and keeps on just being white...
im running fission 2.5.7 and i've tried everything that is supposed to do the lockscreen on the xml side (as far as i know) including the colors.xml in the values folder(more on this issue later)... so i started poking around .jar files in the framework but unfortunately i have little understanding still of .smali files because im still on the baby steps side of coding beyond the beginners html stuff i learned in the 6th grade ('99) and i could use some help/pointers toward i should be looking for.
i noticed mentions of wakelock (or something like it, its 2am and im mentally fried right now) in one of the smali files in a telephony folder in framework.jar but im just not sure if it is even close to the right thing because it may just be the phone doing something to the cdma radio on wakeup....
I'm open to try any suggestion you guys are willing to throw at me because finishing this project is important to me.
every guide i have been able to find so far just mentions line 7 and 8 of the .xmls in layout, if you find another idea besides that already posted send those too...
ALSO, when i edit colors.xml and then compile and push framework-res.apk to the phone i get 2 results depending on what i do
1) move the file that values folders gets turned into into the original framework-res.apk and get a boot look
2) use the newly compiled framework-res.apk (in whole) and lose the functionality of lockscreen selection app...
any idea on how to make this work would also be awesome
may end up having to work with the devs in the chatroom on this issue (im sure) but its also somethign i want to do so i can change the text colors of sound on/off (along with a couple other default text colors)

Modify Settings menu

OK... so I'm running this Froyo Rom and I want to remove a couple of options from my/the settings menu (it's a bit cluttered for my tastes).
I think that I remember that there was just such a way to modify a rom so that it can show less settings options, but I don't seem to find it. If anyone can help on this front it would be really appreciated...
(In two words can I modify the "settings .apk" so that it shows less?)
Thanks for your attention.
Stevethegreat said:
OK... so I'm running this Froyo Rom and I want to remove a couple of options from my/the settings menu (it's a bit cluttered for my tastes).
I think that I remember that there was just such a way to modify a rom so that it can show less settings options, but I don't seem to find it. If anyone can help on this front it would be really appreciated...
(In two words can I modify the "settings .apk" so that it shows less?)
Thanks for your attention.
Click to expand...
Click to collapse
Of course you can, but you run a very real risk of breaking your rom, you would have to decompile the apk and poke around in the xml and smali files to find the option you wanted to remove. you would also probably have to make some adjustments in your framework.apk but like i said you run a very real risk of breaking the rom you are using.
shreddintyres said:
Of course you can, but you run a very real risk of breaking your rom, you would have to decompile the apk and poke around in the xml and smali files to find the option you wanted to remove. you would also probably have to make some adjustments in your framework.apk but like i said you run a very real risk of breaking the rom you are using.
Click to expand...
Click to collapse
Yeah, I know, but I'm a total noob to those.
I did find this: http://forums.androidcentral.com/op...-how-edit-settings-apk-solved.html#post905109 but decompiling throws me an error.
Even when I put the framework-res file in the right directory apart from taking ages to decompile it still throws an error towards the end of the process (I've lost about a day trying to decomile the settings.apk but it was to no avail as -in the end- it threw an error again).
In fact that must be quite easy for someone with experience in this if I could post (to him) my settings.apk and framework.apk I may have had results in a few minutes (instead of having to learn sth from scracth in my limited time). But I guess it's a bit hard to find someone around here who would voluneer, no?
Anyhow thanks for your reply .
edit: OK I was able to clear out the errors. So I decompiled, made the appropiate changes and then recompiled (as per the instructions), but all I got was an apk half its original size which would FC whenever I was trying to run it (upon placing it on the system/app folder and rebooting).
What makes things even weirder is that merely the act of decompiling are recompiling (the apk) without making any changes at all rendered the -new- apk useless. So it seems recompiling in general ruins the apk -period- (no matter whether I've made changes or not). That is very troubling indeed... like I said I am a noob at these, any help at all would had been greatly appreciated...
When you placed it in the system/app folder, did you set permissions?
It is not as easy as decompiling the settings.apk picking out what you don't want and then recompiling it. Think of it as a web. The Settings.apk uses bits and pieces from Framework-res.apk, services.jar, androidpolicy.jar,...
We understand that you are a self-proclaimed noob, but you have to realize that it just isn't that simple to just delete something that you don't use. I mean, just because YOU don't use it, your ROM probably does. Are you always in the Settings page anyways? I doubt it.
It is good though that you took the initiative to somewhat learn how to de/recompile apks as that is a fantastic basis to start from. You can also learn smali and baksmali to modify apps as well.
Here is a good thread about theming and using APKtool to change things in an apk (such as /framework/framework-res.apk/res/drawable-hdpi where you can change the icons images for custom icons---but you can also do this by installingADWex or LPP and an icon pack).
Long story short, no need to change your settings.apk as it will bork your ROM and your next thread will be, "I think I bricked my phone...Halp!!!"
To clear some things up: I regard myself an enthusiast user. That is to say that I have considerable experience with modding my devices, what I am a "noob" at is actually creating or reverse engineering the code *which* mods my devices (I have little experience with C but that's about it). So do not be worried I am not going to brick my device and if I do I would know how to "debrick" it ( as I have done numerous times to my devices)...
With that out of the way I have to say that I want to modify my settings APk not for aesthetic but for practical purposes. See I have written a basic script on tasker that doesn't play well with froyos settings.aPk (but it does in ICS or GB), I've tried to rewrite the script but i found a dead end which was what lead me to wish to modify the settings APk....
All I wanna do is -basically- to hide some options not actually *delete* them (i am aware what havoc that may cause...). So if there is any advice relevant to my case I would welcome it very much...

[Tips] Some tips for theming some S4 apps

This is just a small thread i thought i would start and offer a few tips for theming apps on the S4.​
Q: How can i change backgrounds without having to modify the image inside of framework?
A: This is something i call "untying things from framework", which essentially means making the background pull locally (from the particular app you're working on) rather than getting it from framework. The way this is done is searching for backgrounds that have "android:background="@*android" Searching for this should help you find where the background is being pulled from.
Q: How can i untie everything from framework to have a standalone app theme that doesn't rely on including the 30mb+ of the framework?
A: The above can also be used in this situation. For a text color, you can search the same thing as above but replace the "background" with "textcolor". For an image, it's usually called by "android:background="@*android:drawable/". To get them called locally, remove the "@*android:" so that it becomes just "android:background="drawable/"
Q: When compiling, i get a list of errors so long that i can't see the top.
A: You're probably using the traditional apktool which can't display long enough errors to be able to see the original. When you have a long list of errors, don't fret. Usually if you just have one error, it will produce a crap ton of them. Just use a tool like apk-multi-tool and go to the very first error, fix it, then try compiling again. It can sometimes takes a few fixes to make it compile correctly.
Q: I get an error of a 9-patch image. What does that mean?
A: A 9-patch is a type of image that android uses to draw something on the screen, pretty much. It works by using a 1 pixel border of either pure black or transparent pixels/lines. If even on pixel on the border is messed up, it will throw out an error. The log will tell you which image it was and where to fix it. Just be careful when editing any image with a .9 in it.
I hope these general tips help some of you out I will add more tips to this if i think of any. If you would like to contribute any of your ideas, feel free to message me and i will include you ​
Thanks for this.
Sent from my SCH-I545 using Tapatalk 4 Beta

[Q] using same dot twice on android unlock screen

I Have a Rooted android and ive done some looking into and cant seem to find any apps or information into what im trying to do.... I am trying to use the one of the dots on my android twice in an overlapping patter that i believe would make a cool looking pattern that ive come up with and that will still secure my device. has anyone tried this or found a way to do it or, maybe even change the color of the doubled dot from green to purple or some drastic color change like that so that the difference can be seen. any links to guides on how to do it or apps would be helpful. PS i have no android coding experience only a basic class in C++
I looked at the lockscreen replacements on Google Play, but I didn't see any that have that feature. There might be a custom ROM you could flash that has that, although I've never encountered one. The only other way to do that would be to edit the source code of a ROM, specifically the source for Keyguard.apk (although I may be wrong on that part), add that functionality, and then build it yourself, which, in my opinion, would be a very large amount of work for a feature that small, and it would require you to know Java.

Theming Omniroms system apk gone wrong?

So I decided to port Material 4.3 by FateNozomi to Omni 4.4..4 framework,UI and Settings,and everything went smooth (at least I thought).After porting,I recompiled all apps without any error.First time I signed them with testkeys provided with singapk.jar and system wouldn't install them,so later I found platform keys with which system would allow installation.
Short after I activated AD in Settings options to realize that I can't read notification nor unlock phone through AD (when ever I click on unlock button nothing happens).Also tried to change Lockscreen shortcuts but when I have to drag unlock ring to assign shortcut nothing happens (ring doesn't expand),and lastly when I activate contextual notif header it just get stuck on one image (if I activate it in morning ,morning.jpg will remain untill the next reboot,wont change throughout the day).
to decompile I used apktool 2.0.3 and as I told,I recompiled with 0 errors (except usual translation missing).
I didn't mod any of these options that are malfunctioning,I even stayed away from every xml that could potentially lead to breakage of any options (hah and in the end got breaks on options I regularly use).
If someone could help I'd be more than happy to listen as I've searched xda through and through and haven't found any bugs or problems that could cause this.
Could it be the platform keys?Apktool mistranslated some strings or resources I honestly have no ****ing clue and its driving me crazy.
Id really need some help being that this is my first "project".
Fixed Lockscreen but not AD
I cross referenced my modded Settings with original and found a miss match in dimensions that fixed LS shortcuts.
I had no luck with AD,so if someone is familiar with omnis active display Ill be more than happy to try any suggestions !!!!!
I also cross referenced modded SystemUI xml related to AD and all matched with originals.
Fixed AD
I found out that I did change some sensitive values for AD,which led to it breaking so I fixed it all.All things that were broken,broke because of my limited to non knowledge of android so I apologize to moderators for clogging this section.
Feel free to delete this thread!!

Categories

Resources