Basic editing of lockscreen - Android Q&A, Help & Troubleshooting

Hi Guys, My phone has any annoying camera shortcut on the lockscreen I keep swiping accidentally, I would like to remove it, my phone is a Nubia running lollipop, its a customised UI so xposed apps/root apps that can change the lockscreen don't work for me.
I have decompiled the systemUI and found the areas where the shortcut is, but I cannot get rid of it, adding visibility gone to the line did nothing, removing the line completely gave a crash and trying to make the camera shortcut have the same target as the unlock also made it crash.
Anyone provide any help?
this file is called "keyguard_bottom_area.xml
http://pastebin.com/F90tKdwx
this is called lockscreen_host_view.xml
http://pastebin.com/QwwKmkSz
any advice would be great!

updated pastebin link to the correct file!

Related

[REQ] Car home automatically changes wallpaper to black

Hey all,
I find it incredibly stupid that car home keeps the standard wallpaper and just dims it. I'm using the album art wallpaper and it makes car home almost unusable.
Would it be possible to force the system to change the wallpaper to a black background when car home is in use and then change it back when you close it?
Thanks!
If your screen is too dark:
Look on bottom right corner, under EXIT CAR MODE. See the little > right arrow?
Hit that and change your screen brightness setting.
Automatic > Night > Day
As for changing the wallpaper. I've never heard about that possibility.
Maybe someone with theming or morphing skillz will come across this thread??!
rickytenzer said:
Hey all,
I find it incredibly stupid that car home keeps the standard wallpaper and just dims it. I'm using the album art wallpaper and it makes car home almost unusable.
Would it be possible to force the system to change the wallpaper to a black background when car home is in use and then change it back when you close it?
Thanks!
Click to expand...
Click to collapse
That should be possible with Tasker.
Unfortunately I use settings profiles and would hate to pay for a software to handle this one thing. I wish CM could incorporate this change into the nightlies!
Would be easy to do with Tasker which is a great app anyway. I recommend getting it and I'm sure you'll find some other useful things you can do with it too (it should easily replace settings profile for you too)
This should be a simple change, but apktool is acting up and won't recompile the apk. Hopefully I will have one available soon.
Cool thanks! You rock.
This is turning out to be significantly harder than it should be. aapt seems to be ignoring the entire res/values folder, so even an empty decompile/recompile fails (but works fine for every other apk I throw at it), and MetaMorph is just flat out having no effect. I will keep working on it, but for now it seems hopeless by divine force.
RoboPhred said:
This is turning out to be significantly harder than it should be. aapt seems to be ignoring the entire res/values folder, so even an empty decompile/recompile fails (but works fine for every other apk I throw at it), and MetaMorph is just flat out having no effect. I will keep working on it, but for now it seems hopeless by divine force.
Click to expand...
Click to collapse
Even if you can't get it, I appreciate the effort!
So you couldn't get it going?
I really haven't looked into it but isn't it possible to theme the app to use a black interface instead of the transparent one it uses now? I mean replace the transparent .png's with black ones.
The background does not use images, it specifies a theme resourse and adds a transparent black color. I have been trying to change that resourse, without apktool playing nice there is no real way to do this. I tried changing the theme by editing the smali code, but that is overridden by the view's style attribute, and the theme can't be set after the view is inflated.
From what I have found, the only two options with out the ability to compile resource files is either to implement the original idea of blacking the wallpaper on run, or editing the compiled binary xml blob manually.
I could always make a simple service app to change the wallpaper on car mode toggle, that would be easiest at this point.
Update: Did some research, its impossible to set a live wallpaper through code using the public API due to security concerns, so that removes all non-resource ideas. This has to be done through the style resources of CarHome itself.

[Q] framework-res.apk & dianxinos-res.apk

Hey there everyone, I am wanting to edit my framework to get a better looking notification bar. I have an android phone called SH7218U, I am rooted with all Gapps.
If you look this up phone on Google, you will see that the notification bar and icons are very similar to stock Android 2.2 ( I am running 2.2.1). The only difference is that the signal bar is located to the left of the bar as well as some icons getting set there as well. You can really see this here: http://www.itechnews.net/wp-content/uploads/2011/03/Sharp-SH7218U-Clamshell-Android-Phone.jpg
When going into root explorer and checking out system/framework I am see the familiar framework-res.apk file, but I also see an apk file called dianxinos-res.apk. It seesm to be able to mess with framework and change the UI and other things, both of these files need to be edited. This is just a guess though since I have been able to find a post on a Chinese forum that gives a new notification bar (the only difference being the battery icon replaced with a numerical battery representation and the (when bar is pulled down) shortcut to the useless built-in task killer is gone. Inside of the package to this new framework I get both framework and dianxinos files so it seems I would have to replace both of the old files with the new ones.
As you can see in the above image there are virtual android buttons on the bottom of the screen as well, for when you want to use the phone normally. I do not think that the dianxinos-res.apk is linked to the virtual buttons as exploring system/media/pics contain.bmp images of the virtual buttons and I have confirmation by another SH7218U user that editing these images will directly effect how they are displayed.
I was just wondering anyone know how to edit the framework when there are two files corresponding to this. I don't know much about editing the framework but even so I am quick to learn but figured I would just ask around before I do anything. Worst comes to worst, like a bootloop for instance, I have a system.img for my phone so flashing that with fastboot will get my phone working again.
Anyway, Ive uploaded both files in case anyone would like to look at them. I am trying to go for a gingerbread-esque notification bar with blue instead of green possibly.
If anyone thinks this thread would get better hits elsewhere I would appreciate any input.

[Q] Removing System Icons from Header?

I've searched and searched through probably 20+ threads on here and on google, I've searched through SystemIU.apk and can't find exactly what i'm looking for, for the most part. I found MOST of the icons in the SystemIU, and know i can resize and make them transparent and put it back into the apk, however once I upgraded to Beans 12, for ever whatever reason I have this freaking DATE on the status bar that drives me CRAZY!
View attachment 1836919
View attachment SystemUI.apk
Since I wasn't editing the xml files, I was extracting the apk and editing the images, then placing the images back into the apk without actually decompling it. I can't find where the WED is, and it's driving me crazy.
I'm thinking I will probably actually have to decompile the APK and edit the XML files. But can anyone else offer any suggests or know what I can do to fix this? Or what xml files most of the system icons are present in so I can go in and remove them completely?
[EDIT]
Upon further exploration...apparently there were new features added to the phone...please disregard. You now have the ability to hide in the date/time section.

Phone APK? And S-Finder

What is the filename and path for the S5 phone apk? I want to theme my friends phone apk for him.
Also, how are you guys getting rid of S=Finder from the pulldown?
i think all the apk files should list under system/app folder and to get rid of S-Finder from pulldown, just install Xposed G-Touchwiz.
You didn't give us enough information to really know what you want.
There are several phone packages e.g. the dialer and the in call screen
/system/priv-app/SecTeleService.apk
/system/priv-app/InCallUI.apk
For S-Finder, you didn't tell us if you meant removing it from the user defined set of Quick Notification toggles.. or permanently remove it. Or if you meant the quick search window. Lots of threads on all of those, so a forum search is always the best place to go first.
http://forum.xda-developers.com/galaxy-s5/help/removing-sfinder-quick-connect-t2827271
http://forum.xda-developers.com/showthread.php?t=2714586
http://forum.xda-developers.com/showthread.php?t=2778145
.

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