[Q] Media > DownloadService always running - Android Q&A, Help & Troubleshooting

hi guys, I hope you can help.. I really googled a lot about this, and also made many tests on my phone and waste a lot of time, but couldn't find a solution yet.. also this seems to be affecting many other people, so I don't understand how is possible nobody found a fix for that until now..
(I'm posting in general section because this seems to affect any kind of phones running cm10.1 + gapps)
the problem is that if I go to manage apps > running apps, I see Media process (DownloadService) always running! that could drain my battery and/or download data, in any case I don't see a point in having it always running, so I would like to get rid of it!
what I discovered so far is that the process is related to both gapps and Downloadprovider.apk package included in any CM10.1 build, in fact:
1. the process starts appearing only after installing the gapps (I use a very minimal 4.2 gapps package, about 10mb only)
2. if I delete Downloadprovider.apk package from /System/App, the process doesn't appear anymore
The problem is that if I delete the Downloadprovider.apk package then I start getting gapps related FC's and phone becomes unstable (and very probably will not be possible to download anymore things from the browser and/or play store)!
So what could I do to safely get rid of that process? Maybe disable or freeze some other apps/processes? But I wouldn't know what to disable exactly..
guys please help me I am really getting crazy with that! also that could help many other people :good:
thanks a lot in advance
EDIT: maybe it was related to Maps since I installed maps 7.x I don't see that process anymore!

moly82 said:
hi guys, I hope you can help.. I really googled a lot about this, and also made many tests on my phone and waste a lot of time, but couldn't find a solution yet.. also this seems to be affecting many other people, so I don't understand how is possible nobody found a fix for that until now..
(I'm posting in general section because this seems to affect any kind of phones running cm10.1 + gapps)
the problem is that if I go to manage apps > running apps, I see Media process (DownloadService) always running! that could drain my battery and/or download data, in any case I don't see a point in having it always running, so I would like to get rid of it!
what I discovered so far is that the process is related to both gapps and Downloadprovider.apk package included in any CM10.1 build, in fact:
1. the process starts appearing only after installing the gapps (I use a very minimal 4.2 gapps package, about 10mb only)
2. if I delete Downloadprovider.apk package from /System/App, the process doesn't appear anymore
The problem is that if I delete the Downloadprovider.apk package then I start getting gapps related FC's and phone becomes unstable (and very probably will not be possible to download anymore things from the browser and/or play store)!
So what could I do to safely get rid of that process? Maybe disable or freeze some other apps/processes? But I wouldn't know what to disable exactly..
guys please help me I am really getting crazy with that! also that could help many other people :good:
thanks a lot in advance
Click to expand...
Click to collapse
Maybe you have some program/app installed which uses the download manager? Some app trying to download an update outside of the regular mechanism? I don't see DownloadService running on my phone unless I instructed it to download something. Do you notice anything downloadmanager/media related in logcat? If in doubt, attach the phone to a PC, run the following commands and attach the resulting file ('attach_me.txt') here:
Code:
adb shell 'ps; echo -----------;logcat -v time -b main -b system -b events -d;echo -----------;dumpsys;' > attach_me.txt
Use the full path to adb if you need to.
This shows the currently running processes (ps), the contents of the main, system and event logs (logcat) and a snapshot of the current state of your phone (dumpsys). If there is anything there you don't want to show to the whole world edit the resulting file before attaching it here.

thanks a lot for the reply my friend
tonight at home I think I will be able to run the adb command you suggested me (in my home computer I have sdk installed)
so far I checked logcat in terminal ("logcat |grep edia" and "logcat |grep ownload") and this is what I got:
$ su
# logcat |grep edia
D/Vold ( 1197): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
D/Vold ( 1197): Volume sdcard state changing 0 (No-Media) -> 2 (Pending)
W/PackageParser( 1626): No actions in intent filter at /data/app/org.wikipedia-1.apk Binary XML file line #39
I/ActivityManager( 1626): Start proc android.process.media for broadcast com.android.providers.media/.MtpReceiver: pid=1765 uid=10011 gids={50011, 1015, 1023, 1024, 1028, 2001, 3003, 3007}
V/ActivityThread( 1765): android.process.media white listed for hwui
D/SystemUIService( 1701): loading: class com.android.systemui.media.RingtonePlayer
D/SystemUIService( 1701): running: [email protected]
W/ContextImpl( 1626): Calling a method in the system process without a qualified user: android.app.ContextImpl.bindService:1458 android.bluetooth.BluetoothHeadset.:273 android.bluetooth.BluetoothAdapter.getProfileProxy:1155 android.media.AudioService.getBluetoothHeadset:2198 android.media.AudioService.access$2800:104
W/ContextImpl( 1626): Calling a method in the system process without a qualified user: android.app.ContextImpl.bindService:1458 android.bluetooth.BluetoothA2dp.:160 android.bluetooth.BluetoothAdapter.getProfileProxy:1158 android.media.AudioService$AudioServiceBroadcastReceiver.onReceive:4087 android.app.LoadedApk$ReceiverDispatcher$Args.run:758
$ su
# logcat|grep ownload
I/ActivityManager( 1624): Start proc com.google.android.youtube for broadcast com.google.android.youtube/.core.transfer.DownloadService$BootReceiver: pid=2305 uid=10050 gids={50050, 3003, 1015, 1006, 1028}
W/ActivityManager( 1624): No content provider found for permission revoke: file:///data/data/com.android.providers.downloads/cache/downloadfile.apk
W/ActivityManager( 1624): No content provider found for permission revoke: file:///data/data/com.android.providers.downloads/cache/downloadfile.apk
I'm attaching also screenshots of the process I'm talking about
EDIT: I reinstalled everyting from scratch as a new build by quarx came out.. it seems that installing only cm build + minimal gapps, that process doesn't show up. Later after I installed back all my apps (via app2zip flashable zip) the process showed up again.. so probably you are right and there is a certain app using that process.. but how can I understand which one has relation with that service? maybe YouTube as i see it mentioned in logcat?

delete

i could generate the logs you asked without using the pc but using the phone terminal and multiple commands.. i'm uploading them to my dropbox links are below thanks in advance..
http://db.tt/gJLBYeT7
http://db.tt/OahQ8Zf7
http://db.tt/KPUTy4et

YAFU what happened to you?

it seems to me after I installed latest maps 7.x the media > download process is not appearing anymore in running processes.. maybe it was related to sh*tty maps??? :fingers-crossed:

Related

[Q] com.asus.pcsynclauncher

Hello,
thank you in advance for your help.
Facts: rooted ICS 4.0.3 IMLK74K.DE_epad-9.4.2.15-20120221
Problem: Everytime when i like to open Accounts & Syncronisation (don't know the exact translation in german it's called "Kontakte & Synchronisation") the dialog suddenly quits.
I installed log viewer to check what's going on, you can see the error message in the Screenshot.
So i think the problem is, that i deleted Pcsynclauncher.apk from ASUS, my question is, can anyone tell me how to extract that file from the Stock ROM i downloaded from here or can anyone post the file on the board?
THX
DidierSchnee said:
Hello,
thank you in advance for your help.
Facts: rooted ICS 4.0.3 IMLK74K.DE_epad-9.4.2.15-20120221
Problem: Everytime when i like to open Accounts & Syncronisation (don't know the exact translation in german it's called "Kontakte & Synchronisation") the dialog suddenly quits.
I installed log viewer to check what's going on, you can see the error message in the Screenshot.
So i think the problem is, that i deleted Pcsynclauncher.apk from ASUS, my question is, can anyone tell me how to extract that file from the Stock ROM i downloaded from here or can anyone post the file on the board?
THX
Click to expand...
Click to collapse
I'm guessing you did not unlock the bootloader yet Try extracting the zip I have attached to your "C:\" , install adb on your pc then run the following command
Code:
adb push C:\PCSyncLauncher.apk /system/app
Code:
adb push C:\PCSyncLauncher.odex /system/app
Follow this guide if you need help installing ADB (http://www.theandroidsoul.com/how-to-install-adb-on-windows-full-guide/)
Thank your for your help.
Had some problems with adb push (permission denied, adb remount gave me operation failed), so i copied the files on the prime and "installed" them with the terminal!
problem solved.
DidierSchnee said:
Thank your for your help.
Had some problems with adb push (permission denied, adb remount gave me operation failed), so i copied the files on the prime and "installed" them with the terminal!
problem solved.
Click to expand...
Click to collapse
Great job thinking out-side of the box. This is how a Dev is born, hope you will join us soon
thx, but there is only one problem called time
Sent from my Transformer Prime TF201 using Tapatalk 2
And I still have that problem, even after installing files
Code:
[email protected]:/data/system/dropbox # cat *
Process: com.android.settings
Flags: 0x8be45
Package: com.android.settings v15 (4.0.3-WW_epad-9.2.2.6-20120525)
Build: asus/WW_epad/TF101G:4.0.3/IML74K/WW_epad-9.2.2.6-20120525:user/release-keys
java.lang.IllegalArgumentException: Unknown package: com.asus.pcsynclauncher
at android.os.Parcel.readException(Parcel.java:1331)
at android.os.Parcel.readException(Parcel.java:1281)
at android.content.pm.IPackageManager$Stub$Proxy.getApplicationEnabledSetting(IPackageManager.java:2423)
at android.app.ApplicationPackageManager.getApplicationEnabledSetting(ApplicationPackageManager.java:1153)
at com.android.settings.accounts.ManageAccountsSettings.updateUi(ManageAccountsSettings.java:198)
at com.android.settings.accounts.ManageAccountsSettings.onStart(ManageAccountsSettings.java:105)
at android.app.Fragment.performStart(Fragment.java:1532)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:862)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1032)
at android.app.BackStackRecord.run(BackStackRecord.java:622)
at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1382)
at android.app.FragmentManagerImpl$1.run(FragmentManager.java:426)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
1|[email protected]:/data/system/dropbox # ls -la /system/app/PCSyncLauncher.*
-rw-r--r-- root root 44092 2013-05-26 18:01 PCSyncLauncher.apk
-rw-r--r-- root root 18968 2013-05-26 18:01 PCSyncLauncher.odex
adb push didn't work for me either, so copied files randomly. I tried to find the cause but failed. My guess is that somewhere in the system must be written information about this package, but it isn't and I don't know where it should be.
Ok, now I even tried something else but still have negative result:
Code:
pm install /sdcard/Download/PCSyncLauncher.apk
pkg: /sdcard/Download/PCSyncLauncher.apk
Failure [INSTALL_FAILED_DEXOPT]
need a different version
Hi, I just took the poor decision of uninstalling the com.asus.pcsynclauncher package from my TF201 , so I am getting the same exception when trying to access accounts & sync.
I just tried the APK supplied by MasterZen88, however I get error log entries "Package com.asus.pcsynclauncher has mismatched uid: 10003 on disk, 10053 in settings" and a "dexopt failed on .... [email protected]' res = 65280" when installing, which ends up failing.
I assume it is because my ICS version is different: IML74.WW_epad-9.4.2.28-20120525
What do you think? If my assumption is correct, is there anyone that can supply me with the right APK and ODEX?
Thank you for your help.

com.bn.cloud.svc permission issue: What does a healthy ''packages.xml" look like?

com.bn.cloud.svc permission issue: What does a healthy ''packages.xml" look like?
I'm running a rooted Nook 1.4.3, and somewhere in my customization, I've run into an odd permissions issue.
Main question: Can anyone with a Nook 1.4.3 whose B&N Shop is working paste their /data/system/packages.xml here so I can check mine against it?
Main problem: The B&N Shop can't connect to anything. Basically my device has no access to the B&N cloud.
Looking at the logs, I see this a lot:
Code:
W/ActivityManager( 1294): Unable to start service Intent { act=com.bn.cloud.IRequestHandler }: not found
Looking at logcat while the tablet boots, I see this related section:
Code:
I/PackageManagerService( 1294): /system/app/BnCloudRequestSvc.apk changed; collecting certs
W/PackageManagerService( 1294): Signature mismatch for shared user : SharedUserSetting{40597710 com.bn.cloud/10032}
E/PackageManagerService( 1294): Package com.bn.cloud.svc has no signatures that match those in shared user com.bn.cloud; ignoring!
...
W/PackageManagerService( 1294): Unknown permission com.bn.cloud.EXECUTE_REQUEST in package com.bn.nook.drpreader
W/PackageManagerService( 1294): Unknown permission com.bn.cloud.RECEIVE_NOTIFICATION in package com.bn.nook.drpreader
W/PackageManagerService( 1294): Unknown permission com.bn.cloud.EXECUTE_REQUEST in package com.bn.nook.social
W/PackageManagerService( 1294): Unknown permission com.bn.cloud.EXECUTE_REQUEST in package com.bn.nook.quickstart
W/PackageManagerService( 1294): Unknown permission com.bn.cloud.RECEIVE_NOTIFICATION in package com.bn.nook.quickstart
W/PackageManagerService( 1294): Unknown permission com.bn.cloud.EXECUTE_REQUEST in package com.bn.nook.reader.activities
So my best guess is that I borked something in my packages.xml so PackageManager thinks my 'BnCloudRequestSvc.apk' is wrong and completely disables the cloud service that the shop (and other com.bn.* apps) need.
I've tried wiping my dalvik cache and running 'fix_permissions' from the bootable CWM sdcard I used to root the thing, but still no luck.
I'd love to compare my packages.xml to someone who has a working shop, or hear any other suggestions anyone may have about what may be going wrong here, like why does the Package Manager say "/system/app/BnCloudRequestSvc.apk changed; collecting certs"?
Solved!
I solved this issue by doing the following:
Delete /data/system/packages.xml
Reboot -> This regenerates /data/system/packages.xml (ignore all force-closes, they are expected)
Power off
Power on with CWM SD Card, go into "advanced" and "Fix Permissions" (Built my SD Card using these instructions: http://forum.xda-developers.com/showthread.php?t=1466583)
Reboot
Once it came back up, everything was working great!(*)
(*) One small caveat-> After that last reboot, it came up with the 'Homecatcher" app doing something incredibly weird: It was flickering and I couldn't actually choose a launcher... Thankfully I happened to reorient from portrait to landscape, then back to portrait, and it came out of it and began working just fine.
Now that I have the thing working again, I've compared my prevous "broken" packages.xml to the new working packages.xml, and found that my actual original problem was that I was missing a <packace> section for the com.bn.cloud.svc library.
That wasn't *quite* all...
Noting further steps here I had to take to get everything working again after this issue... escapde.
Removing packages.xml and running 'fix permissions' isn't quite the whole story. I also had to:
Reinstall all local apps to re-request their permissions:
Code:
[in adb shell]:
for app in /data/apps/*.apk; do pm install -r $app; done
Modify the permissions of all existing downloaded books and magazines in /data/media so it matches the new B&N UID:
Code:
[in adb shell]:
busybox ps
... Find the UID that all the com.bn.* apps are running with
... In my case this was '10020', aka 'app_20'
busybox chmod 10020.10020 -R /data/media/Books/*
busybox chmod 10020.10020 -R /data/media/Magazines/*

android shell command to check if process is cached

Hello all, I got a quick question and this seemed like the most appropriate section to post it in. In short, I am wondering what terminal command I can use to check if a process has been cached. On my Sprint Galaxy Nexus, rooted, with the latest build of the Paranoid Android jelly bean rom, I can go to my settings, click on apps, swipe to the "Running Apps" list, and click on the button at the top of the screen that says "Show Cached Processes," and that displays the list that I am trying to access. My reasoning for doing this, if anyone cares, is to use "Secure Settings" in conjunction with "Tasker" to check if my "Groove IP" application is running. Initially, I was trying to use "pgrep -l com.*" and check that list for "com.gvoip" too see if "Groove IP" is running in the tray (pull down menu), but if the process is cached, it still shows up in that list. I won't do any more explaining of my intentions, because thats not what I need help with Just need to know how to get a list of cached processes from terminal. Thanks!
You can probably extract this info from the output of the "dumpsys" command.
$ dumpsys activity processes
I will try that out and report back. Thanks for the help!
process cached/not cached state from dumpsys
lahma69 said:
I will try that out and report back. Thanks for the help!
Click to expand...
Click to collapse
I have been experimenting with pgrep which returns the pid - also when process is cached.
How can I distinguish between cached/not cached. Did you manage with dumpsys?
oneearleft said:
I have been experimenting with pgrep which returns the pid - also when process is cached.
How can I distinguish between cached/not cached. Did you manage with dumpsys?
Click to expand...
Click to collapse
I ended up using: cat /proc/$(pgrep com.endomondo.android.pro)/oom_adj
The os default oom_adj threshholds can be found using: getprop | grep "_APP_ADJ"Returned value
For me 0,1,2 is running/background app, and everything >2 is cached/stopped.

Google PlayStore problem on MXQ Pro+ 4k

I have got a Android Box i.e. MXQ Pro+ 4K from China, which is working fine except one problem of Google PlayStore updating itself to an incompatible version again and again.
It came with PlayStore 5.1.x version which was automatically updated to the "7.5.08.M-xhdpi [8] [PR] 146162341" (latest) but 8 is indicating that its for Android TV. Now when I try to run PlayStore it gives message "This app is incompatible with this device....".
Since the box is already rooted so I installed PlayStore version 7.5.08.M-all [0] [PR] 146162341 by downloading and then moving to system apps. This version works fine but with in no time it updates it self again to version mentioned above (8 for TV) and stops working.
I tried couple of methods by creating empty folder with apk name and terminal emulator using chttr command etc but nothing worked till now.
Now every time when I have to use the PlayStore, I used to uninstall updated then run. Please suggest any possible solutions.
Thanks,
Hi, have a look here
http://android.stackexchange.com/qu...-stop-google-play-from-automatically-updating
vpandey said:
I have got a Android Box i.e. MXQ Pro+ 4K from China, which is working fine except one problem of Google PlayStore updating itself to an incompatible version again and again.
It came with PlayStore 5.1.x version which was automatically updated to the "7.5.08.M-xhdpi [8] [PR] 146162341" (latest) but 8 is indicating that its for Android TV. Now when I try to run PlayStore it gives message "This app is incompatible with this device....".
Since the box is already rooted so I installed PlayStore version 7.5.08.M-all [0] [PR] 146162341 by downloading and then moving to system apps. This version works fine but with in no time it updates it self again to version mentioned above (8 for TV) and stops working.
I tried couple of methods by creating empty folder with apk name and terminal emulator using chttr command etc but nothing worked till now.
Now every time when I have to use the PlayStore, I used to uninstall updated then run. Please suggest any possible solutions.
Thanks,
Click to expand...
Click to collapse
Tried all the methods given on that page but it seems nothing is working. PlayStore now makes new folders for updating it self to latest version. Like com.android.vending-2 , ...vending-3, vending-4 and so on.
starkman said:
Hi, have a look here
http://android.stackexchange.com/qu...-stop-google-play-from-automatically-updating
Click to expand...
Click to collapse
I have the same problem but my model is t95n mini m8s(s905x version). Is there a setting that was changed that makes playstore thinks it is an android tv device? The device came with the tv version of youtube.
Edit: Look another guy with the problem. Could this be a problem with the latest play store?
https://forum.xda-developers.com/an...xqpro-google-play-store-giving-error-t3562673
Same problem
I also have the same problem. Any updates on this?
ThuG_PoeT said:
I also have the same problem. Any updates on this?
Click to expand...
Click to collapse
you can try uninstall updated on play services and also on google play, and then maybe it will work. Please get the answer if it's working on not, because is here another solution, you can change some lines on build.prop file in system folder and also added new permission which is included in Android TV, and then you will have playstore like for android TV with android TV content.
Try to find the plalystore apk folder from stock rom for example system/priv-app/phonesky/phonesky.apk (this for h96 pro+) backup it on another folder with rootexplorer...
Use aptoide to update it you will receive an error like app cant install, you will receive this warning every time that try update it, even with the versions most new.
Find downloaded playstore.apk on sdcard .aptoide folder and rename it with the name of the older phonesky.apk.
If you are root try uninstalling playstore with root uninstaller, the folder that contains the old phonesky.apk will be empty (system/priv-app/phonesky/)... you can now copy the new playstore renamed (phonesky.apk) to this folder.
After this, you now try to install newest playstore as system app with root uninstaller with the installer tab, when the process is completed push reboot now.
At this way I have get working the latest version of the playstore 7.9.30 without any errors, you must repeat all process everytime aptoide find new update of playstore
srclooney said:
Try to find the plalystore apk folder from stock rom for example system/priv-app/phonesky/phonesky.apk (this for h96 pro+) backup it on another folder with rootexplorer...
Use aptoide to update it you will receive an error like app cant install, you will receive this warning every time that try update it, even with the versions most new.
Find downloaded playstore.apk on sdcard .aptoide folder and rename it with the name of the older phonesky.apk.
If you are root try uninstalling playstore with root uninstaller, the folder that contains the old phonesky.apk will be empty (system/priv-app/phonesky/)... you can now copy the new playstore renamed (phonesky.apk) to this folder.
After this, you now try to install newest playstore as system app with root uninstaller with the installer tab, when the process is completed push reboot now.
At this way I have get working the latest version of the playstore 7.9.30 without any errors, you must repeat all process everytime aptoide find new update of playstore
Click to expand...
Click to collapse
Thanks!!!!!!! i wasnt able to install the new version of playstore in the same android tv the h96 pro+ but with your steps i was able to update it.
in the step of installing the new version with the instaler i drop me the same error when i was triying to update normally i reboot it and then appeared the mensage of Optimizing applications and then the playstore icon changed to the new and it works!!!
Barquillo said:
Thanks!!!!!!! i wasnt able to install the new version of playstore in the same android tv the h96 pro+ but with your steps i was able to update it.
in the step of installing the new version with the instaler i drop me the same error when i was triying to update normally i reboot it and then appeared the mensage of Optimizing applications and then the playstore icon changed to the new and it works!!!
Click to expand...
Click to collapse
Me alegro mucho de que te funcionara.
TX5/8 Marshmallow Google Play won't update install_failed_package_changed
So I've been struggling with the dreaded constant "Unfortunately, Google Play store has stopped" message on two IPTV boxes, a TX5pro and TX8 both running Marshmallow. The first time it happened, I came to the conclusion that the Google Play Store added a feature which requires an update that fails to install. Prior to this I had no idea that it could NOT self-update, so the problem existed from day one.
The Google Play Store has both a system and update component which exist in different locations. The system one resides at /system/priv-app/Phonesky/Phonesky.apk while the update apk should be located at /data/app/com.android.vending-[#]. In my case the latter does not exist.
Oddly Google Play Services has the same framework of system app at /system/priv-app/Prebuilt-gms-core.apk but it does have an update entry at /data/app/com.google.android.gms-[#]. It's important to note that the Google Play Store app is the only one I've encountered problems with installing or updating.
I've compared directory and file permissions/owners/attributes, from a known working rooted tablet on Marshmallow, and found nothing out of the ordinary.
Using a root terminal emulator with Unknown Sources enabled, if I use the command "pm install Phonesky.apk" the error message is "install_failed_package_changed".
I can use these commands in the terminal to manually update the Play Store:
Code:
su
mount -o remount,rw /system
cp /sdcard/Download/Phonesky.apk /system/priv-app/Phonesky/Phonesky.apk
chmod 644 /system/priv-app/Phonesky/Phonesky.apk
mount -o remount,ro /system
reboot
A more thorough version which clears the dalvik:
Code:
su
mount -o remount,rw /system
rm /data/dalvik-cache/arm/[email protected]@[email protected]@classes.dex
rm /data/dalvik-cache/profiles/com.android.vending
rm /system/priv-app/Phonesky/Phonesky.apk
mount -o remount,ro /system
reboot
(after reboot)
su
mount -o remount,rw /system
cp /sdcard/Download/Phonesky.apk /system/priv-app/Phonesky/Phonesky.apk
chmod 644 /system/priv-app/Phonesky/Phonesky.apk
mount -o remount,ro /system
reboot
While both manual update methods work there is a crucial problem that becomes apparent when one compares the contents of the folders /system/priv-app/Phonesky/Phonesky.apk and /data/app/com.android.vending-[#]. The former contains just Phonesky.apk while that latter has the same as base.apk but it also extracts some of the libraries and other data. I suspect that the libraries are linked so that the ones in the update folder take precedence over those installed in system locations.
With the recent addition of Google's malware detection system "Play Protect", I think updating Phonesky.apk without extracting those libraries and giving them precedence is the cause of the "Unfortunately, Google Play store has stopped" message.
I decided to install an opengapps package using the RTAndroid Linux script https://github.com/RTAndroid/android_vendor_brcm_rpi3_scripts and that's resolved my "Unfortunately, Google Play store has stopped" message for now. The Play Store still won't self update and these appear to be the relevant log events.
Code:
09-08 06:16:30.951 D/DownloadManager( 4671): [1277] Finished with status SUCCESS
09-08 06:16:31.008 I/Finsky ( 7340): [1] com.google.android.finsky.download.DownloadBroadcastReceiver.a(12): Intent received at DownloadBroadcastReceiver
09-08 06:16:31.011 I/Finsky ( 7340): [1] com.google.android.finsky.download.n.a(116): com.android.vending: onProgress 18815483/18815483 Status: 200.
09-08 06:16:31.016 I/Finsky ( 7340): [1] com.google.android.finsky.download.e.a(49): com.android.vending from 2 to 3.
09-08 06:16:31.017 I/Finsky ( 7340): [1] com.google.android.finsky.download.n.e(144): com.android.vending: onComplete
09-08 06:16:31.017 I/Finsky ( 7340): [1] com.google.android.finsky.download.n.i(89): Download com.android.vending removed from DownloadQueue
09-08 06:16:31.018 I/installd( 3807): free_cache(0) avail 25029062656
09-08 06:16:31.020 I/Finsky ( 7340): [1] com.google.android.finsky.cc.a.f.onPostExecute(6): Self-update ready to be installed, waiting for market to close.
09-08 06:16:41.194 I/installd( 3807): free_cache(18815483) avail 25029054464
09-08 06:16:43.410 W/PackageManager( 6154): installPackageLI
09-08 06:16:43.431 I/art ( 6154): Starting a blocking GC Explicit
09-08 06:16:43.533 I/art ( 6154): Explicit concurrent mark sweep GC freed 152350(6MB) AllocSpace objects, 1(244KB) LOS objects, 33% free, 15MB/23MB, paused 1.684ms total 101.885ms
09-08 06:16:43.533 E/installd( 3807): Couldn't opendir /data/app/vmdl1199500518.tmp: No such file or directory
09-08 06:16:43.546 W/Finsky ( 7340): [1] com.google.android.finsky.cc.a.n.onReceive(14): Unable to abandon session 1199500518: java.lang.SecurityException: Caller has no access to session 1199500518
09-08 06:16:43.546 E/Finsky ( 7340): [1] com.google.android.finsky.cc.a.n.onReceive(27): Error -504 while installing com.android.vending: INSTALL_FAILED_PACKAGE_CHANGED: installPackageLI
09-08 06:18:02.318 I/Finsky ( 7340): [769] com.google.android.finsky.flushlogs.FlushLogsReceiver$FlushLogsService.onHandleIntent(10): Flushing event logs for []
09-08 06:18:02.319 I/PlayCommon( 7340): [722] com.google.android.play.a.g.e(244): Preparing logs for uploading
09-08 06:18:02.319 W/art ( 6359): Long monitor contention event with owner method=int libcore.io.Posix.readBytes(java.io.FileDescriptor, java.lang.Object, int, int) from Posix.java:4294967294 waiters=0 for 3.158s
09-08 06:18:02.328 I/PlayCommon( 7340): [770] com.google.android.play.a.g.e(244): Preparing logs for uploading
09-08 06:18:02.329 I/PlayCommon( 7340): [770] com.google.android.play.a.g.e(248): No file ready to send
09-08 06:18:02.339 D/su ( 7455): sending code
09-08 06:18:02.354 D/su ( 7457): child exited
09-08 06:18:02.354 D/su ( 7458): client exited 0
As a final note and warning, using the RTAndroid update script requires editing the bash script to identify the proper TIMESTAMP="20170907" VERSION="6.0" and VARIANT="pico" which can be derived from the list: https://github.com/opengapps/arm/releases/
The final part of the script fails and causes a constant "unfortunately setup wizard has stopped" after reboot which is fixed by enabling all "App Permissions" for the system app "Setup Wizard" (Contacts, Phone).
srclooney said:
Me alegro mucho de que te funcionara.
Click to expand...
Click to collapse
hello! For me doesn't work. The first method I go to the download files (I can't find anywhere the aptoide folder) and when I copy to the play store folder I just get that must be rooted first...
There are a zip with root flashable across the stock recovery for amlogic devices try search it on google.
The metod now is very easy copy playstore or renamed playstore.apk to the system/priv app/folder of play store ....and reboot.
srclooney said:
There are a zip with root flashable across the stock recovery for amlogic devices try search it on google.
The metod now is very easy copy playstore or renamed playstore.apk to the system/priv app/folder of play store ....and reboot.
Click to expand...
Click to collapse
but I must be rooted for that method right?
Yes, must be rooted
Hello, I have similar problem that Google play Store doesn't update itself on MXQ Pro 4K RK3229 Android 7 and I can't update even when installing from apk. I can only update it using root explorer and copying new version to system. I tried running adb logcat while running the update from apk and here is what it says:
11-23 01:38:19.098 515 541 D tangzh : ttttt forbid google play update!
11-23 01:38:19.098 515 541 W PackageManager: installPackageLI
11-23 01:38:19.159 183 183 E : Couldn't opendir /data/app/vmdl68316306.tmp: No such file or directory
11-23 01:38:19.185 3733 3733 D InstallAppProgress: Installation error code: 4
Click to expand...
Click to collapse
What is this "tangzh". Seems that it's blocking the update. Any one knows if it's possible to remove this block?
Hello sir in my phone i downloading any ap from playstore it starting but stock in 95 or 90 please tellme what do i do now

LineageOS update caused permission erros for GApps

Hello together,
I recently made an update of LineageOS for my LG G5 (LineageOS 14.1) as well as my Samsung Galaxy S5 (LineageOS 15.1). They both seem to have serious issues afterwards and I don't know what happened. I assume something has changed within the last month or so and my problem appears with both devices.
It appears as if the permissions for all GApps have changed (or the uids perhaps). All other apps work perfectly fine so far. I also downloaded the latest GApps and installed them via TWRP but that doesn't seem to solve any problem. However I'm not sure that overwrites the old applications or only installs currently not installed ones.
So when ever I use one of these apps (Gmail, Playstore, Maps, some of the system processes), it always crashes and I see the log messages looking like this:
Code:
com.google.android.gms.persistent, PID: 13071
java.lang.RuntimeException: Unable to create application
com.google.android.gms.common.app.GmsApplication:
java.lang.SecurityException: addOnPermissionsChangeListener:
Neither user 10039 nor current process has android.permission.OBSERVE_GRANT_REVOKE_PERMISSIONS.
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5451)
at android.app.ActivityThread.-wrap2(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1564)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6186)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
or
Code:
java.lang.SecurityException: Permission Denial: opening provider
com.google.android.gsf.gservices.GservicesProvider from
ProcessRecord{22a7d3b 23968:com.google.android.youtube/u0a108}
(pid=23968, uid=10108) requires com.google.android.providers.gsf.permission.READ_GSERVICES or com.google.android.providers.gsf.permission.WRITE_GSERVICES
at android.os.Parcel.readException(Parcel.java:1684)
at android.os.Parcel.readException(Parcel.java:1637)
at android.app.ActivityManagerProxy.getContentProvider(ActivityManagerNative.java:4199)
or
Code:
java.lang.SecurityException: tname=Sensors - Permission Denial: opening provider com.google.android.gsf.gservices.GservicesProvider from ProcessRecord{3745b29 6048:com.google.android.apps.maps/u0a179} (pid=6048, uid=10179) requires com.google.android.providers.gsf.permission.READ_GSERVICES or com.google.android.providers.gsf.permission.WRITE_GSERVICES
They all have in common that they tell me that "Neither user [???] nor current process has android.permission.[???] "
It seems to work uninstalling the specific app and reinstalling it. However this is a lot of work and isn't really easy for some apps that are closer to the system.
So what can I do? What exactly is the problem here? Did the UIDs change? Any suggestions please!

Categories

Resources