lunes, 13 de julio de 2015

Unable to download/upgrade apps with google play, analysis, workaround, not yet good solution...

I began to suffer the next problem:
With a lot of free space on device, Google Play says it is unable to upgrade some apps

Message
"Error
Error downloading "xxxxx". There is insufficient space on the device"

It happens even with the smallest upgrade o new app (for example goo.gl URL Shortener, less than 1 MB, unable to be installed just after uninstall!!!!)

Just googling, I found this link, which points to "Google Play Services" 

http://forums.androidcentral.com/android-4-1-4-2-4-3-jelly-bean/450097-fixed-error-downloading-app-name-there-insufficient-space-device.html#post4054747

I found somewhere that removing Google Play Services upgrade / downgrading to factory version it began to work, and testing it, it works:
-Step 1: remove  Google Play Services upgrades
-Step 2: install app ugrades previously failing
-Step 3: reboot phone and reinstall again Google Play Services upgrades (Google Maps and Google Mail need last version!)

But it seems to be a temporal solution, as the error reappears
(It seems to be the same situation described here, just works for 5-10 mins http://android.stackexchange.com/questions/91840/regarding-the-error-downloading-insufficient-space-error-in-the-google-play-s)

So most times I have a new upgrade I have to do the whole process, so I need a real solution, not just a workaround.

Googling, I found more "patches" like this: http://www.pcadvisor.co.uk/how-to/google-android/how-fix-androids-insufficient-storage-available-error-message-3498845/ which indeed needs to install a new app... this is not a solution, as it seems you are going to have again the same problem, and it is just a tool to solve every time you have it.

This seems a real solution: to resize cache partition

http://android.stackexchange.com/questions/27083/google-play-error-downloading-app-insufficient-space

When I saw the error I checked this
shell@android:/ # df
Filesystem             Size   Used   Free   Blksize
...
/cache                 370M     6M   364M   4096


So it seems cache partition is not full ... and this is not exactly the problem?
I tried to remove just "Google Play Services" cache (663 KB to 0 KB), it took a while, and /cache partition usage did not change, and the error persists.



 
It seems clear it is a Gooble Play Services bug, I will try to search for a Google report about this and a good solution, not just a patch.
In XDA I found this post, somehow related
http://forum.xda-developers.com/showthread.php?t=1766378


Any new idea or new info will be appreciated!
I will edit this post with new info

Edit 2015/07/17: Tested that after five app install, same message appearse and I am not able to upgrade more apps, not just "Google Play Services". After reboot, with old Google Play Services, all apps are installed ok, including Google Play Services upgrade ...

Edit 2015/08/09: Tested that the same app can be installed from Fdroid if available, and even really big apps (like LibreOffice reader, 50 MB), so it is really a Google Play Services bug. Trying to install an app from web google play, it does install ok?

Edit 2015/08/21: It seems finally solved, but not intentionally. It has been working during last week. How? I decided to replace Twitter official client (it was installed as system app, so I removed it with Titanium backup), and I installed twidere (available in Google Play and F-Droid). After that, Google Play updates run smoothly ... maybe Google Play is not ready to find "wrong system apps", like a "system twitter".

Edit 2015/08/26: same problem, but message has changed.
It happened with a whatsapp update, after a lot of updates without problem, and after I installed some new apps from Google Play also without problem. Same workaround has worked with whatsapp update. Today it was happening with gmail update,I  was going to put here error message in english, but after changing language in settings ... it worked!
With spanish language again it fails again !
"Espacio de almacenamiento insuficiente
No hay suficiente espacio en este dispositivo para descargar "(nombre app)". Puedes eliminar aplicaciones o contenido que ya no necesites y volver a intentarlo.
[CANCEAR] [VER ALMACENAMIENTO]"
Somehow some google services are restarted after language change: for example gmail notifications reappear.
But in english again, same error
"Insufficient storage
This device doesn't have enough space to download "(app name). Consider deleting apps or content you no longer need and try again.
[CANCEL] [VIEW STORAGE]"

It will continue ...

sábado, 25 de abril de 2015

Tracking twitter and TTYtter

I would like to know if a special word appears in twitter ...

I found some tools
http://www.socialbrite.org/2011/01/11/guide-to-free-social-media-monitoring-tools/
but most of them are not free, just 30 days free trial.

But in previous link

  • Track is a little-known Twitter feature that lets you track keywords and have them sent directly to your mobile phone as soon as they’re posted.
It seems really old (2007) and it seems SMS is mandatory?
https://blog.twitter.com/2007/tracking-twitter

After some googling I found this
http://www.floodgap.com/software/ttytter/
No problem with ubuntu 14.04 to install with apt-get, and configure it

...
** This wizard will overwrite /home/enrique/.ttytterkey
Press RETURN/ENTER to continue or CTRL-C NOW! to abort.


Request from https://api.twitter.com/oauth/request_token ... SUCCEEDED!

1. Visit, in your browser, ALL ON ONE LINE,

https://api.twitter.com/oauth/authorize?oauth_token=xxxxxxx

2. If you are not already signed in, fill in your username and password.

3. Verify that TTYtter is the requesting application, and that its permissions
are as you expect (read your timeline, see who you follow and follow new
people, update your profile, post tweets on your behalf and access your
direct messages). IF THIS IS NOT CORRECT, PRESS CTRL-C NOW!

4. Click Authorize app.

5. A PIN will appear. Enter it below.

Enter PIN> xxxxx

Request from https://api.twitter.com/oauth/access_token ... SUCCEEDED!
Written keyfile /home/enrique/.ttytterkey

Now, restart TTYtter to use this keyfile.
(To choose between multiple keyfiles other than the default .ttytterkey,
 tell TTYtter where the key is using -keyf=... .)



How to send a track command?
With my first attempt "track" in comand line  ... result is a tweet with "track" text

http://www.splitbrain.org/blog/2008-01/22-list_of_twitter_commands

Trying with "/track word" it says
/track word
*** changed: track => word
*** (transmitting to background)
*** changed: track => word




Maybe is just that.
But how to test it works?

With /track I can't see expected result "Ask twitter to return a list of all currently tracked terms. " but
TTYtter> /track
*** invalid command
*** to pass as a tweet, type /%%





http://www.floodgap.com/software/ttytter/#built

With Ctrl+C I see
cleaning up.
*** you were tracking:
-track='word'

So it seems it is just for that session. Running again ttytter and quiting, it says just "cleaning up."

martes, 3 de febrero de 2015

N9000W malware finally found: com.skymobi.lockframe.iphone , /system/app/mopolocker.3xnote3_v3.032_20131127_suntel.apk

After some time, I noticed again new unwanted installations

http://sesionesfrikis.blogspot.com.es/2015/01/kinguser-replacement-by-superuser-by.html

I include here some screenshots
There is an "i" inside a circle notification 

And this informs a new app was installed "BubbleShoot"... not by me
Another app was installed at the same time "GoLink"
 A long press in "BubbleShoot" notification finally shows the app involved ... where is malware

App name is "SamsungNote3Locker", package "com.skymobi.lockframe.iphone"
with /system/app/mopolocker.3xnote3_v3.032_20131127_suntel.apk
I removed this package with Titanium backup, and I finally hope malware is removed.
I also checked no more com.skymobi.* packages are present with "pm list packages"

I found this package appears in some websites:
- AVG antivirus http://www.avgthreatlabs.com/android-app-reports/app/com.skymobi.lockframe.iphone/ 
Where it says "Active malware!
During the last 7 days potentially active malware was detected for this android app. (updated Feb 03, 2015 GMT) "

- In this forum, also with M-HORSE N9000W
"Aplicación maliciosa que instala aplicaciones sin hacer nada"
http://www.movilesdualsim.com/tema/aplicacion-maliciosa-que-instala-aplicaciones-sin-hacer-nada.85963/

- In this forum, where it appears "baidu browser" and "share it", some apps I also saw installed ...
http://forums.androidcentral.com/samsung-galaxy-s2/453282-mobile-internet-has-coo123-popup-anyone-know-how-fix.html

Edit: testing Sophos security, it find ExpandPointWall.apk "Potentially unwanted app. Category: Adware" in /storage/sdcard0/.1/ExpandPointWall.apk

Looking for *skymobi* files, I found:

/storage/sdcard0/Android/data/com.skymobi.pay.newsdk/
/storage/sdcard0/skymarket/com.skymobi.mopoplay.appstore/

viernes, 30 de enero de 2015

kinguser replacement by superuser by Koush.... but N9000W still has malware

I wrote in XDA (I am hunktb user)
http://forum.xda-developers.com/showpost.php?p=58491927&postcount=27
"I finally managed to replace kinguser with superuser (opensource, com.koushikdutta.superuser), so I have a clean system.
The phone is still rooted and new superuser app works fine."

http://forum.xda-developers.com/showpost.php?p=58492531&postcount=17

But after that (4 days ago,  no kinguser installed), I still have some malware:
In notification appears an "i" and it informs some app has been installed, for example
com.skymobi.oversea.gamecenter
com.skymobi.mopoplay.appstore
Another notification was about Whatsapp, already installed (but I think it would have been installed if it wasn't)

Internet Security detects malware in RomasterSu_1.1.4_140611_1000.apk used, but nothing installed.
Where is malware?
-I removed Cooee Kauncher (com.cooee.launcherS4)
-I removed kinguser

 With titanium backup I found two more apps I also removed:
-com-cooee.digitalclock (Digital Clock)
-com.cooee.floatwindow (FlasBarService)


I see an app with chinese name, package com.mediatek.factorymode
¿I should look for init script and review something not listed as package?
or ... maybe, new idea, ... if it installs app it could be a fake /malware Google Play???

Googling it
https://blog.gdatasoftware.com/blog/article/android-smartphone-shipped-with-spyware.html

Looking with titanium, Google Play Store 5.1.1 package is "com.android.vending", and it has some updates applied
If I remove updates, initial version is 4.6.17, and it updates again to 5.1.1, it seems from Google ...

I need more time, more ideas ...




lunes, 5 de enero de 2015

adbcontrol

Interesting tool
Used with my broken screen phone
http://marian.schedenig.name/2014/07/03/remote-control-your-android-phone-through-adb/
Just edited config.properties to put adb path
A little bit slow in screen refresh, but it works

domingo, 4 de enero de 2015

ijoy stone 4GB root and adb with ubuntu

I used chinese version iRoot2_2.0.6_141122_1811_1000_r.apk
and it intalled chinese root (com.mgyun.superuser in /system/app/irootsu.apk), but I installed superuser from koush using fdroid and it replaced it ok

adb shell does not work, despite setting usb debugging in config and tablet says "USB debugging enabled" when plugged

Some tests

adb shell
error: device not found

adb devices
List of devices attached


lsusb
Bus 002 Device 014: ID 2207:0010  

dmesg output when plugged

[ 7911.216166] usb 2-1: new high-speed USB device number 16 using ehci-pci
[ 7911.350384] usb 2-1: New USB device found, idVendor=2207, idProduct=0010
[ 7911.350396] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[ 7911.350403] usb 2-1: Product: Tablet Stone
[ 7911.350410] usb 2-1: Manufacturer: i-Joy
[ 7911.350415] usb 2-1: SerialNumber: D902013112900035A
[ 7911.352183] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 7911.352403] scsi16 : usb-storage 2-1:1.0
[ 7912.353713] scsi 16:0:0:0: Direct-Access     i-Joy                          PQ: 0 ANSI: 2
[ 7912.354288] scsi 16:0:0:1: Direct-Access     i-Joy                          PQ: 0 ANSI: 2
[ 7912.356480] sd 16:0:0:0: Attached scsi generic sg2 type 0
[ 7912.356918] sd 16:0:0:1: Attached scsi generic sg3 type 0
[ 7912.364920] sd 16:0:0:0: [sdb] Attached SCSI removable disk
[ 7912.365533] sd 16:0:0:1: [sdc] Attached SCSI removable disk


Editing "/etc/udev/rules.d/99-android.rules, adding this and restarting does not solve it

SUBSYSTEM=="usb", ATTRS{idVendor}=="2207", ATTRS{idProduct}=="0010", MODE="0666"

sudo /etc/init.d/udev restart

Nothing new adding 0x2207 in .android/adb_usb.ini

But after all this, I decided to reboot ubuntu ... and then it worked