yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 Themes and Apps] sorg:
Hi,

Since android started to use keyguard as separate package, one bug always disturbed me: When device boots, it shows the launcher with home screen and then in couple of seconds the lockscreen.

To my surprise, when i start to work with Note 4 ROM I've discovered the absence of such bug! Lockscreen shown first after animated boot logo.

So, here is the fix.

You need to decompile Keyguard.apk by Apktool and then in AndroidManifest.xml replace:

<application android:label="@string/app_name" android:largeHeap="true" android:persistent="true" android:process="com.android.[B][COLOR=Red]systemui[/COLOR][/B]" android:supportsRtl="true">

to (note the red part)

<application android:label="@string/app_name" android:largeHeap="true" android:persistent="true" android:process="com.android.[B][COLOR=Red]keyguard[/COLOR][/B]" android:supportsRtl="true">

Then compile Keyguard.apk and push it to device (/system/priv-app).

From now, keyguard will have its own process and won't affect SystemUI even if FC (the same SystemUI won't crash Keyguard if FC).

Probably, this bug belongs to Samsung. I think most pre-Note4 devices with KitKat are affected and can be fixed as shown above. The line can look a little different, but you should find the first red part and replace by second red part without touching anything not red.

Devs can freely use this fix without permission. Just give a proper credit.
[Galaxy S 4 Themes and Apps] rickyy22:
big thanks [MENTION=334644]sorg[/MENTION], finally someone tried to fix this problem that only a few users note.. so now the lockscreen appears immediatly? :P
[Galaxy S 4 Themes and Apps] sorg:
As i've wrote above, lockscreen is the first thing u see after animated boot logo.
[Galaxy S 4 Themes and Apps] ocd_amp:
Will report to you when I get around to Testing this.

I cannot believe so many ROM Devs over look this. This happened to me today after a Dalvik/Cache wipe.

After "Android is Upgrading" message was over, the Phone showed the Launcher/HomeScreen and then the Lock Screen show after 2 seconds.

This is very unprofessional. ROMS with this issue should never be allowed to ship with this "feature". This is akin to your arrive at your house, your front door opens, so everyone can see inside, then quickly closes, and then you have to use your key to get in.

Thanks for your post,

Kind Regards.
[Galaxy S 4 Themes and Apps] cstayton:
just tested on Keyguard.apk from OEM G900FXXU1ANJ1 build, unfortunately this doesn't work it kills the keyguard completely and causes errors with the fingerprint sensor.
[Galaxy S 4 Themes and Apps] ocd_amp:
Had trouble even compiling the apk, something about my machine and java not liking each other perhaps. But the rest of my stuff works so...if I'm not sure what's broke.... Then what I thought was done (compiling process froze), looks like it didnt work here either on CM 11, Complete fail to even boot the first time. No message, nothing. Wipe Dalvik, Put backup APK, then Force closes next time around. I may have more than 1 problem though. Whatever this bug is, its a major oversight on the way KitKat works, and it looks unprofessional in the face of competing products. Why do you think they let this Slip?
[Galaxy S 4 Themes and Apps] sorg:
Since you are "recognized developer", i think you should have more experience to track the problems than just describe what you see. At least you can look into logcat to check what exactly causes the problem. May be old settings (data folder) of keyguard conflicts with new process id.

Generally speaking, my SHV-E330S is the same as your SM-G900F. Even ROMs from G900F with some tweaks can work on my E330S device. Thus, I think this tweak should be compatible. There is a little chance that fingerprint service prevents it from working, but i really doubt.

If you believe you made the change correctly, then make full backup of device (in TWRP or CWM), then do a master reset and check if problem still exists. Sometimes, if i see strange things, i do this way to make sure where the problem comes. And without checking logcat there is a little (if none) chance to understand where is the problem.
[Galaxy S 4 Themes and Apps] cstayton:
OK, first off log cats are eronious and rarely provide accurate reflection of issues that's why using the app log created in /data/log is prefered. Second your assuming I didn't check any logs. Third I did none where created. Fourth I am well aware of processes and how things work I have been a developer by profession for nearly 20 years.

I merely posted as a note that it did not work I did not ask for nor do I need support from you for your mod.

Thanks for your reply. :thumbdown:
[Galaxy S 4 Themes and Apps] ocd_amp:
Ok, so aside from the little skirmish, if you fix this problem can you wake up the CM team and let them know about it?

It seems an overall KitKat CM based issue. It is not working in my Galaxy S2 Skyrocket, and not working in my Galaxy S3 D2LTE. I cannot even decompile the apk now, even though I have the proper tools and I can even use zipsigner to sign this thing right on the device if needed. However, I am having Java issues. So if you've got something that works, please post and make it known.

btw, no logs were created in /data

Phone simply stuck on boot is the result. CM Keyguard = Kaput.
[Galaxy S 4 Themes and Apps] ionutmaruta:
Hello.

My device device boots, it shows the lockscreen, before launcher with home screen.

So this issue has been solved, right ? :)
[Galaxy S 4 Themes and Apps] slimshouki:
There is no keyguard.apk in lollipop 5.0.1 for e330s !!
[Galaxy S 4 Themes and Apps] ocd_amp:
Wipe Dalvik, Wipe Cache, Reboot. Then let us know. This happens from JB to KitKat. Not sure about Lollipop.
[Galaxy S 4 Themes and Apps] AxAtAx:
deleted
[Galaxy S 4 Themes and Apps] ocd_amp:
deleted
[Galaxy S 4 Themes and Apps] ocd_amp:
This method does not work. The information in OP is completely wrong.
[Galaxy S 4 Themes and Apps] Geris:
how to make the galaxy s5 has Keyguard.apk ?
[Galaxy S 4 Themes and Apps] ocd_amp:
I can see this is bothering a lot of people. I am still working on it. If I have good news I will post it here. The OP of this thread gave VERY little information on what is to be actually done. If I get this figured out, I will post a whole new thread with instructions on how to do it.
[Galaxy S 4 Themes and Apps] Geris:
thank waiting
[Galaxy S 4 Themes and Apps] ocd_amp:
After spending close to 3 hours on this, and meticulously looking at every line, every resource, I think this is a closed source issue. I am coming to a conclusion that Cyanogenmod steals, borrows, hacks, bribes, whatever it takes to get their product out as fast as possible without proper testing. I am willing to bet this issue affects thousands of CM11 users that are out there. Every single person I know on Kitkat with a Samsung phone has this problem. I am sorely disappointed with this and I find it hard to believe that many ROM devs have been quiet about it. For now, there is nothing I can do unless someone with higher knowledge comes in here and guides me so I can fix this problem for everyone.
[Galaxy S 5 Q&A, Help & Troubleshooting] climbak:
Anyone have any idea how to view sequence shot slow motion videos from outside the app? I know they're being stored as a gif, but the extra frames seem to be stored as additional data within the frames that standard viewers don't understand. Super frustrating that Samsung did this.
[Verizon Galaxy Note 3 Q&A, Help & Troubleshooting] mike82caddy:
Hello guys new to the forum I was wondering if you guys can help me out.

I want to switch my note 3 (verizon) to page plus. I have took my note 2 to a cell phone shop and they changed it over for 50 bucks and can do the same for my note 3. So my question is can I learn to do it myself or should I just pay the 50.

Thanks in advance
[Verizon Galaxy Note 3 Q&A, Help & Troubleshooting] mike82caddy:
Actually figured it out way simpler than expected page plus now has Sim cards for Verizon phones so no need to flash or anything took it to phone shop and got it hooked up for 19 bucks
[Galaxy Y GT-S5360 General] halnovemila:
In /data/app folder make a new folder with name com.google.android.gms-1.apk

(to make the folder use a file manager app or the command "su" followed by "mkdir /data/app/com.google.android.gms-1.apk" with a Terminal Emulator app and Busybox installed.

NOTE: Making a new folder in /data partition require root permissions so the Andriod system must be rooted first)

That's it! :D

------------------------------------------------------------------

Hello everyone,

owners of smartphone with very limited internal storage, like Galaxy Y, will likely end up to be concerned of every single MB of free space lost; and the more the concern as the free space is getting closer to zero.

So there I am too.

I've put lot of effort to optimize the use of my Galaxy Y internal storage (/system, /data and /cache partitions all together) and I'm proud to have more than 50% of internal storage free and I like to have it that way for as long time as possibile.

Yesterday I had a very bad surprise... I suddenly lost 55% (actually 55MB) of free space for some unknow reason :eek:

Later, it turned out that the reason was that the Google Play Service had been silently updated in the background without any notification.

Actually the footprint of newer version of Google Play Service has a huge increase of 28MB... almost +78%! :eek:

The new apk size is 15MB bigger and a system integration of the update not only might likely eats up all the free space available in the /system partition, but still will need to use additional 13MB in /data partition.

Uninstalling the update was just a matter of tapping one button... but then another background update would have happen soon after.

So, to prevent the update from happening again, I used the same kind of trick used to avoid the self update of Google Play Store, as explained here [TRICK] How to stop Google Play Store self update - easy!

That's all folks!

Bye!

;)
[Galaxy Y GT-S5360 General] TheFixItMan:
What I used to do was uninstall the Google play services

Then open YouTube

It will say you have to install Google play services

Click the link to install it & it will allow you to download it from the playstore

You can then move or link it to sd card with link2sd

I prefer always having the latest versions of apps as they tend to eliminate bugs - yes it might be a larger file size but you can move or link the apk to sd
[Galaxy Y GT-S5360 General] halnovemila:
Thanks for the hint Marcus :)

I simply hate when my device is modified without my previous consent.

I want to be the one who decide what to update and when to update because each update might have a cost (in terms of storage space, in terms of data plan usage, in terms of risks of unexpected apps or system errors).

Furthermore I've put lot of effort to make my phone system configuration in such a way that it can still be fully functional even without SD (as in case of a SD failure) or with a brand new empty one; so I've put all the most important applications (Internet browser, Youtube, Google Play Store, Google Play Service, Shake Calc, QuickPic, Maps, GMail, QuickOffice, FM radio, Camera, Root Explorer, Tethering Widget, Terminal Emulator, Flashlight, VNC_Server, SSHDroid, VoipCheapGlobal and few others) in /system and /data partitions and there I want them to stay ;)

All the best!
[Galaxy Y GT-S5360 General] rahul54321:
how to stop play services auto update???????????
[Galaxy Y GT-S5360 General] garbb:
What I found was that on my custom rom (cm 10.1.3) google play services was installed as /system/app/GmsCore.apk which was the version that I had installed when I flashed a gapps zip file right after I had initially installed the rom. If I only had this version installed then the play store app would not auto-update google play services. However as soon as I updated google play services from the play store manually it was installed as /data/app/com.google.android.gms-1.apk and as long as it was installed here the play store would auto-update it whenever it wanted without asking or informing me. I even tried doing chattr +i com.google.android.gms-1.apk as some other people have mentioned but then it would just install the new version as com.google.android.gms-2.apk, etc...

I clicked on "uninstall updates" for the google play services app and it removed the /data/app/com.google.android.gms-1.apk file and went back to not auto updating. The problem is that I wanted to use some google apps that would not work with the older /system/app/GmsCore.apk version but I wanted to install a slightly newer version but not have it get auto-updated.

So what I ended up doing was to get the slightly newer version and copy it to /system/app/GmsCore.apk. As long as there is no google services apk in /data/app/ it seems that it will not get auto-updated. This allows me to maintain control over when/if It ever gets updated.

Also note that I have applied a no self-update patch from lucky patcher to my google play store (v4.3.11). I don't know if this is also needed to prevent googleplay services from auto updating.

The reason that I do not want to use the recent (>=4.4) versions of google play services is that they now include a firmware updater service that was transferring a ton of data in the background for no reason as mentioned here. The slightly older version that I am now using (4.3.25) does not have this.

I could have just disabled the service but if it is allowed to auto-update itself then it is possible that it will just get re-enabled or some other battery draining/data using feature will get added.

I would rather maintain control over all the software that is installed on my device instead of allowing google to do whatever they want without asking or even informing me.

Basically if you have the google play store app installed on your phone it allows google to install whatever they want on your phone whenever they want without your consent or notification. (unless you do a lot of hacking to disable it)

This seems pretty crazy to me and I am not sure if most people realize this. Who owns your phone? Is it you or google?

Sorry about the rant...
[Galaxy Y GT-S5360 General] halnovemila:
Hi garbb,

thanks for posting your rant ;) it provides some interesting infos on different scenario than mine which is stock rom with Google Play service installed in system folder.

I also like to express my agreement on the reasons you stated that had led you to find a way to stop the self auto update.

I guess that the patch you applied with lucky patcher is what prevents the auto update to work.

But basically the trick that I posted here should work on your system too as it actually prevent the update process to copy the new updated version of the app in the destination folder that is /data/app

If Google Play Service is been updated once already (so there's a apk in /system and one in /data/app) then the the latest installed version is already named com.google.android.gms-1.apk and placed in /data/app so the update process will name the new updated apk as com.google.android.gms-2.apk.

So, in order to make the update process to fail you just have to make a /data/app/com.google.android.gms-2.apk folder.

Or you might want to integrate to /system the updated version that you like to have (eventually by using link2SD or Titanium Backup), then make /data/app/com.google.android.gms-1.apk folder to make to fail future auto update attempts.

:)
[Galaxy Y GT-S5360 General] Verrocio:
Trick doesn't work.
[Galaxy Y GT-S5360 General] halnovemila:
Well, it's possible that the trick doesn't work for you (there's also a chance that as for garbb user you have to change the folder name digit to something greater than 1) but that doesn't mean that it doesn't work for everyone.

For me it works and I proved it on a youtube video that shows how to use the same trick to make the Google Play Store update to fail.

It would be nice if you can provide some more infos on your smartphone OS and Google Play Service version, just for the record and to get some clues on why eventually the trick doesn't work for you.
[Galaxy Y GT-S5360 General] Verrocio:
I've tried both 5.0.89 and 6.1.88 (034) , nexus one, with latest euroskank rom from october. Also tried disable from play store on top of this "trick". The gms updates itself every time. I wouldn't mind it so much but it doesn't ask me and i want full control over whats happening on my device but still keep access to device manager.

edit: also tried with stock cm and marketupdater frozen on both, same result. :(
[Galaxy Y GT-S5360 General] halnovemila:
Well, I'm not really an expert on custom roms, and I never heard of euroskank so I did what I always do... a Google search ;)

What I found is a site that provides cyanogenmod roms, so if that's the case we can wait for garbb and see if he has any good news that can be useful for you too Verrocio :)

In my case I'm using stock rom for Galaxy Y, and Google Play Service ver. 5.0.89 hasn't got an auto update anymore since I used the trick I posted above.
[Galaxy Y GT-S5360 General] Verrocio:
You may want to consider going to 6.1.88 since it was the last cleanup version in its "class" to include http>>s<< api support. (from what we can tell by the changelogs)

But the jury is still out on that.
[Galaxy Y GT-S5360 General] halnovemila:
Well, actually on devices as Galaxy Y with only 222MB storage space for system partition and only 190MB for data partition, apps footprints (use of storage space) is a concern and that's actually why I didn't like the update in first place as I stated in my 1st post here.

Moreover I don't really need much Google Play Services api(s) as I have only three apps that can't work properly if Google Play Service isn't available and I almost never use those apps so I even keep Google Play Service in "disabled" state (frozen) so it doesn't even use RAM and CPU for its many background services that I don't need.
[Galaxy Y GT-S5360 General] Verrocio:
Well the next two cleanup versions after are 6.5 and 6.7(which just came out last week). Both are more memory hoggy than 6.1.88

If you don't want to install it i might suggest keeping a archived copy of it around with system panel.

My device has limited re-sources same as yours so i FEEL YOUR PAlN.

EDIT: By the way i retried the folder trick with both -1 and -2 + disabled hopefully this time it sticks!
[Galaxy Y GT-S5360 General] ElwOOd_CbGp:
This is a very interesting topic to me. Subscribing. I currently have all google apps disabled or uninstalled and using exchange for calendar and contacts sync. No report yet on how well it works tho. I dont like googles tactics in keeping hold of my android so I hope to see more from this thread.
[Galaxy Y GT-S5360 General] halnovemila:
Hi Elwood,

nice to see you are interested on the topic but I wonder what more you could find on this thread as it's just about a trick that makes to fail the automatic background updates of Google Play Service app.

I suppose the posts you'll find here will be somewhat like "Good! it works" or "too bad, it doesn't work" ;)

My personal choice is to use the same trick for both Google Play Service and Google Play Store.

Then I usually keep Google Play Service "disabled/frozen", and I unfreeze it at the need.

I made a couple of Terminal Emulator app shortcuts so that with a single touch I can have the following commands executed

Freeze

clear ; pm disable com.google.android.gms ; echo ; echo Press any key to continue... ; read anykey ; exit

UnFreeze

clear ; pm enable com.google.android.gms ; echo ; echo Press any key to continue... ; read anykey ; exit

Those commands have to be executed as root so Terminal Emulator must have the "Initial command" preference set as

su ; exit

;)
[Galaxy Y GT-S5360 General] Failed Root Advocate:
You'll cry after you read this

My Google Play Services app got a whopping internal memory of 114 MB!

Can i still updates apps if i do this TRICK? Not rooted tried with KingRoot but failed at least 3 times hence the name of my username/profile.

Was before but unrooted and uninstalled a few weeks earlier.
[Galaxy Y GT-S5360 General] halnovemila:
I'm sorry but as stated in the 1st post you need root priviliges in order to make a new folder in the internal memory /data partition.

Anyway the answer to your question is "yes"; you can still update all other apps because making the empty folder in /data/app that exactly matches the app package filename will make the update to fail only on that one app only.
[Galaxy Y GT-S5360 General] Soft Phan:
Hello,

I've been searching for days to find out where GooglePlayServices apk located but failed. But i could not find it anywhere, even in /system/app/ folder and /system/pri-app/

Could you help me with this?

Thanks with best regards,
[Galaxy Y GT-S5360 General] ElwOOd_CbGp:
/system/priv-app/GmsCore
[Galaxy Y GT-S5360 General] Soft Phan:
Gratefully thank you, you save my time. In Android 6.0, it is PrebuiltGmsCore.
[Galaxy Y GT-S5360 General] ElwOOd_CbGp:
friendly tip. the "thumbs up" button is how to thank someone for helping in the forums
[Galaxy Y GT-S5360 General] halnovemila:
Oh, I've overlooked the notification e-mail and I didn't know till today that there was this new post on the thread.

Thought I can't provide the exact reply (that anyway is been given already in the meanwhile) I think it still worth to mention a "way" to get the path of the apk file related to any installed app.

I suggest to install and use Link2SD app, which is also useful for a number of other things :)
[Galaxy Y GT-S5360 General] Doc_Samson:
sorry for necroing, but this post in nowday still actual for meizu users; where can i find the apk gms in meizu devices ? ( so we are talking avout flyme )
[Galaxy Y GT-S5360 General] Doc_Samson:
anyhow this trick does not work anymore, any update ?
[Galaxy Y GT-S5360 General] ariscma355:
it's work...thank a lot
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] phamoui:
I know that everyone now is flashing to WM6, but this is very interesting because MS probily will make WM6 and Photon able to run Vista gagdets....

http://www.youtube.com/watch?v=A-2RjuH3XN4
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] arghness:
Neat. If they get it working on the Today screen, I can see it catching on.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] dutty:
good move.. looks like ms got inspired by apple again ;)
[Galaxy S 4 Q&A, Help & Troubleshooting] mahedisajib:
S4 I9505 kitkat, all hd games are not working say (unfortunately. .....has stopped) I tray to cache clear and wipe data reset but it's still stopped....Please help me
[Galaxy S 5 Q&A, Help & Troubleshooting] Mudiver:
I rooted my S5 model SM G900T using Oden3 v 3.07 plus CF-Auto-Root-kltetmo-kltetmo-smg900t.tar.md5 send donation to chainfire. This was four days ago. All was better than fine until yesterday afternoon, then I tried to connect to a local hot spot. The phone said strong signal but could not connect.

Last thing I did was to run Pry-Fi didn't really understand the app so shut it down or I think I did, then after returning home I noticed while trying to connect to Google play store it said no network available.

Under settings WiFi the on off toggle is grayed out, it will flash green briefly when I go into advanced but it will not turn on.

Under App info WiFi Direct v everything is grayed out data is Zero and no cache is Zero

WiFi Direct Share is OK

I have a full Titanium Backup in Drop Box if that helps.

On the phone its Mobile ODIN Pro v 4.20 showing Kernel none Recovery none and on and on. Would like to have a nice ROM installed, but not there yet.

So I also think I didn't install something right

IMEI is present in software

I do have root that was my goal, but never to lose WiFi Oooh Mii God

What the heck is KNOX? Maybe its my router gosh