How to remove gapps from stock ROM? (Qualcomm)

musicclar

Member
Jan 28, 2011
26
1
0
Hi, I'm curious if I could get the following: the stock ROM on the xt1768 US unlocked version of the phone, but I only want basically the Google stuff that's included in the Pico or Nano opengapps packages. This would entail removing all the included Google stuff from the stock ROM, installing compatible versions of the plain ol' vanilla Android versions of the apps that Google replaces (Messaging, Calendar, Browser, Launcher, etc), and then flashing one of the minimal opengapps packages on top of that.

Anyone have any insights on this or where to start? Thanks!
 
A

aj2333

Guest
Hi, I'm curious if I could get the following: the stock ROM on the xt1768 US unlocked version of the phone, but I only want basically the Google stuff that's included in the Pico or Nano opengapps packages. This would entail removing all the included Google stuff from the stock ROM, installing compatible versions of the plain ol' vanilla Android versions of the apps that Google replaces (Messaging, Calendar, Browser, Launcher, etc), and then flashing one of the minimal opengapps packages on top of that.

Anyone have any insights on this or where to start? Thanks!
You should be able to remove/replace all the google apps other than chrome, the chrome homepage provider, velvet and anything other than the ones like GoogleExtShared,GoogleExtServices. Play music and google calendar and all those can go with no issues. Chrome and the others I listed can be removed, but if you do a data wipe, you'll have force closes form what I've found. I'm not sure how flashing gapps will work out. That doesn't normally work so good on stock ROMs.
 

musicclar

Member
Jan 28, 2011
26
1
0
You should be able to remove/replace all the google apps other than chrome, the chrome homepage provider, velvet and anything other than the ones like GoogleExtShared,GoogleExtServices. Play music and google calendar and all those can go with no issues. Chrome and the others I listed can be removed, but if you do a data wipe, you'll have force closes form what I've found. I'm not sure how flashing gapps will work out. That doesn't normally work so good on stock ROMs.
Ah OK thanks. How about all the Moto stuff?
 

madbat99

Senior Member
Mar 1, 2014
5,538
3,285
113
And Google I believe replaces the dialer and certain other things like that. Is there any way to revert those to plain Android versions?
Yes, they are in oem/privapp, but you can only modify oem in twrp. You also have to change some xml files. You can't just delete them.
If you're trying to get rid of all that (Google and moto apps, which will strip functionality away) why not just use a custom rom and micro g?
 
A

aj2333

Guest
Yes, they are in oem/privapp, but you can only modify oem in twrp. You also have to change some xml files. You can't just delete them.
If you're trying to get rid of all that (Google and moto apps, which will strip functionality away) why not just use a custom rom and micro g?
Why bother responding with ridicule if you weren't at least going to fully answer the question? Some people like stock without google and moto crap. Especially when there are no custom ROMs fully suitable for a daily driver for everyone.

---------- Post added at 09:53 PM ---------- Previous post was at 09:47 PM ----------

And Google I believe replaces the dialer and certain other things like that. Is there any way to revert those to plain Android versions?
I'm uploading flashable zips to enable the stock dialer and remove the google dialer. I'll post links shortly.
Edit: There's zips to restore everything back to normal just in case. https://mega.nz/#!48BUgaRY!zmPZnFxJmCABdVRrE-chFKObVsWiAhtnxfnonzz8AN0
https://mega.nz/#!lsIBUBzA!VBRH3e-rjloYWwAZ6UDdNyjOsne1IRvcvyAuuwAEMHU
https://mega.nz/#!AgwWyYCA!DC90C58MXiIqYMzixW95yrEC8vcek6HVYpRqDADEwZg
https://mega.nz/#!ch5HmabJ!VCKKt6B0uDOQ4nVnJ2kTFMuFlnHXH887sbQZF7BXmlM
 
Last edited:

musicclar

Member
Jan 28, 2011
26
1
0
Why bother responding with ridicule if you weren't at least going to fully answer the question? Some people like stock without google and moto crap. Especially when there are no custom ROMs fully suitable for a daily driver for everyone.

---------- Post added at 09:53 PM ---------- Previous post was at 09:47 PM ----------



I'm uploading flashable zips to enable the stock dialer and remove the google dialer. I'll post links shortly.
Edit: There's zips to restore everything back to normal just in case. https://mega.nz/#!48BUgaRY!zmPZnFxJmCABdVRrE-chFKObVsWiAhtnxfnonzz8AN0
https://mega.nz/#!lsIBUBzA!VBRH3e-rjloYWwAZ6UDdNyjOsne1IRvcvyAuuwAEMHU
https://mega.nz/#!AgwWyYCA!DC90C58MXiIqYMzixW95yrEC8vcek6HVYpRqDADEwZg
https://mega.nz/#!ch5HmabJ!VCKKt6B0uDOQ4nVnJ2kTFMuFlnHXH887sbQZF7BXmlM
Awesome. Thank you aj2333!

Just to clarify: the links you just added are to enable the stock dialer, or they're to restore the stock ROM to how it was before any modifications..?
 
Last edited:

musicclar

Member
Jan 28, 2011
26
1
0
Yes, they are in oem/privapp, but you can only modify oem in twrp. You also have to change some xml files. You can't just delete them.
If you're trying to get rid of all that (Google and moto apps, which will strip functionality away) why not just use a custom rom and micro g?
Ah yes, good point - though see the other thread wherein you and I had at it regarding WiFi calling and the fact that it isn't working on any custom ROMs yet. I'd far prefer to use Lineage.
 

musicclar

Member
Jan 28, 2011
26
1
0
Why bother responding with ridicule if you weren't at least going to fully answer the question? Some people like stock without google and moto crap. Especially when there are no custom ROMs fully suitable for a daily driver for everyone.

---------- Post added at 09:53 PM ---------- Previous post was at 09:47 PM ----------



I'm uploading flashable zips to enable the stock dialer and remove the google dialer. I'll post links shortly.
Edit: There's zips to restore everything back to normal just in case. https://mega.nz/#!48BUgaRY!zmPZnFxJmCABdVRrE-chFKObVsWiAhtnxfnonzz8AN0
https://mega.nz/#!lsIBUBzA!VBRH3e-rjloYWwAZ6UDdNyjOsne1IRvcvyAuuwAEMHU
https://mega.nz/#!AgwWyYCA!DC90C58MXiIqYMzixW95yrEC8vcek6HVYpRqDADEwZg
https://mega.nz/#!ch5HmabJ!VCKKt6B0uDOQ4nVnJ2kTFMuFlnHXH887sbQZF7BXmlM
And then also is there a way to get long-press back to kill an app, get rid of the double circle and Google bounceys on the home button, and get rid of the text about split screen on the recent apps list?
 
A

aj2333

Guest
And then also is there a way to get long-press back to kill an app, get rid of the double circle and Google bounceys on the home button, and get rid of the text about split screen on the recent apps list?
Yes, learn how to deodex the rom and decompile, theme and recompile apks.
 

madbat99

Senior Member
Mar 1, 2014
5,538
3,285
113
Why bother responding with ridicule if you weren't at least going to fully answer the question? Some people like stock without google and moto crap. Especially when there are no custom ROMs fully suitable for a daily driver for everyone.

---------- Post added at 09:53 PM ---------- Previous post was at 09:47 PM ----------



I'm uploading flashable zips to enable the stock dialer and remove the google dialer. I'll post links shortly.
Edit: There's zips to restore everything back to normal just in case. https://mega.nz/#!48BUgaRY!zmPZnFxJmCABdVRrE-chFKObVsWiAhtnxfnonzz8AN0
https://mega.nz/#!lsIBUBzA!VBRH3e-rjloYWwAZ6UDdNyjOsne1IRvcvyAuuwAEMHU
https://mega.nz/#!AgwWyYCA!DC90C58MXiIqYMzixW95yrEC8vcek6HVYpRqDADEwZg
https://mega.nz/#!ch5HmabJ!VCKKt6B0uDOQ4nVnJ2kTFMuFlnHXH887sbQZF7BXmlM
Dude, that wasn't ridicule, it was a suggestion. I was looking at which xml file I changed to do it. I fell asleep before I got back.

---------- Post added at 12:22 PM ---------- Previous post was at 12:16 PM ----------

Ah yes, good point - though see the other thread wherein you and I had at it regarding WiFi calling and the fact that it isn't working on any custom ROMs yet. I'd far prefer to use Lineage.
I forgot that was you, lol. Hopefully you noticed I wasn't being rude here. I was just posing a query. And letting you know not to try to modify the oem partition unless you're in twrp, the phone will freeze if you do it while booted into Android.

P.S, you can change your nav bar buttons with a substratum theme called navigate. I have a bat symbol as my home key now. You can also use Xposed to change the location of the buttons (gravitybox). I use the systemless Xposed in magisk.
 

musicclar

Member
Jan 28, 2011
26
1
0
Why bother responding with ridicule if you weren't at least going to fully answer the question? Some people like stock without google and moto crap. Especially when there are no custom ROMs fully suitable for a daily driver for everyone.

---------- Post added at 09:53 PM ---------- Previous post was at 09:47 PM ----------



I'm uploading flashable zips to enable the stock dialer and remove the google dialer. I'll post links shortly.
Edit: There's zips to restore everything back to normal just in case. https://mega.nz/#!48BUgaRY!zmPZnFxJmCABdVRrE-chFKObVsWiAhtnxfnonzz8AN0
https://mega.nz/#!lsIBUBzA!VBRH3e-rjloYWwAZ6UDdNyjOsne1IRvcvyAuuwAEMHU
https://mega.nz/#!AgwWyYCA!DC90C58MXiIqYMzixW95yrEC8vcek6HVYpRqDADEwZg
https://mega.nz/#!ch5HmabJ!VCKKt6B0uDOQ4nVnJ2kTFMuFlnHXH887sbQZF7BXmlM
Just flashed first and third zips. Is there a way to verify that it worked? It looks exactly the same.

Also.. any way to get stock versions of keyboard, calendar, calculator, gallery, etc?
 
Last edited:

madbat99

Senior Member
Mar 1, 2014
5,538
3,285
113
Just flashed first and third zips. Is there a way to verify that it worked? It looks exactly the same.

Also.. any way to get stock versions of keyboard, calendar, calculator, gallery, etc?
Google dialer and aosp dialer look very similar. Look in it's settings, or check the package name to confirm.
 
A

aj2333

Guest
Just flashed first and third zips. Is there a way to verify that it worked? It looks exactly the same.

Also.. any way to get stock versions of keyboard, calendar, calculator, gallery, etc?
Look in oem/priv-app and see if you have a folder named GoogleDialerOEM, or something similar. It may be named different on your device, but it should be the same. If you don't see any GoogleDialer at all there, it was uninstalled. Do you see a green dialer icon in your app drawer? It's really not hard to figure out how to change those other apps you mentioned. You just need to delete the ones you don't want from /system/app or /system/priv-app and replace them with what you want. Some apps like some keyboards and galleries require additional files in /system/lib and sometimes symlinks to certain libraries to work properly. If you swap an app and get force closes that is probably why. A little tip, use this file manager: https://forum.xda-developers.com/showthread.php?t=1523691 You can just grant it root permissions and use it to copy the apps you want to system, and it will automatically set all permissions for the app, libs and all folders correctly without having to set the permissions manually. If I do much more for you, I might as well just make you a custom stock ROM.

Edit: make sure any updates for google dialer from the play store were removed. I thought I added lines to remove them no matter what they were named but I may have missed a possibility. I use a different google dialer and don't update it on the play store so I don't know exactly what it is named when it's installed to /data/app.

Edit-2: I just updated my google dialer from the play store, and the correct lines to remove it should be in the updater script of that zip. It should have removed it unless yours is named different in your oem partition.
 
Last edited:

DB126

Senior Member
Oct 15, 2013
15,236
9,949
253
Why bother responding with ridicule if you weren't at least going to fully answer the question? Some people like stock without google and moto crap. Especially when there are no custom ROMs fully suitable for a daily driver for everyone.
Chill - it wasn't ridicule by any reasonable reading. And since when is "fully answer the question" a prerequisite to responding with relevant thoughts in a public thread? An opinion was volunteered; take it or leave it.
 

madbat99

Senior Member
Mar 1, 2014
5,538
3,285
113
Chill - it wasn't ridicule by any reasonable reading. And since when is "fully answer the question" a prerequisite to responding with relevant thoughts in a public thread? An opinion was volunteered; take it or leave it.
I'm pretty sure that's the same dude that's had his account disabled a bunch of times. Keeps coming back with a shiny new name.
 
A

aj2333

Guest
I'm pretty sure that's the same dude that's had his account disabled a bunch of times. Keeps coming back with a shiny new name.
I'm sorry I misenturpreted your post, but you do seem to like to get condescending and short with people an awful lot. I don't know who you think I am, but I have had another account here in the past and left (requested it be deleted) on my own free will. I'm regretting coming back now.
Yeah - there's a couple similar gems lurking in the G4 forums. Must be the neighborhood.
You sir seem awfully rude, condescending and not very helpful for being a recognized contributor.