Kodi Community Forum
Solved SONY AF9 w/ AndroidTV Oreo - Installation via Play Store fails with Error Code -506 - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Android (https://forum.kodi.tv/forumdisplay.php?fid=164)
+---- Thread: Solved SONY AF9 w/ AndroidTV Oreo - Installation via Play Store fails with Error Code -506 (/showthread.php?tid=336272)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


RE: SONY AF9 w/ AndroidTV Oreo - Installation via Play Store fails with Error Code -506 - nycom - 2019-01-08

(2019-01-08, 15:46)fritsch Wrote:
(2019-01-08, 15:41)nycom Wrote:
(2019-01-08, 15:20)fritsch Wrote: We need c) to be installed - so that we 100% can show - that only the APP_PACKAGE_ID change was sufficient to get it going.

Btw. I really hope that you test on an affected TV :-) If the nightly run there before just fine - your device is not the valid testing TV, hehe.
 a) OK
b) OK
c) KO

I tried to install the packages on a Sony KD55-AF9  
 Thanks much! Means, changing the PACKAGE_ID is fully enough, so that kodi runs perfectly fine on those TVS, right?

Could you do me a favor and please uninstall complete kodi again, clear the cache of the Google PlayStore App and try to reinstall the c) again? 
I already tried this solution few weeks ago, it's not working.


RE: SONY AF9 w/ AndroidTV Oreo - Installation via Play Store fails with Error Code -506 - fritsch - 2019-01-08

Okay - so then we can conclude:

Changing JUST the PACKAGE_ID from org.xbmc.kodi to _anything_ else as shown in our tests makes kodi work. Do you agree with this result?

Then let's kindly wait what Sony-Engineers tell us about the reason for this. Would be funny to see it "magically" be fixed after next update ;-)


RE: SONY AF9 w/ AndroidTV Oreo - Installation via Play Store fails with Error Code -506 - goatl0rd - 2019-01-08

So for the moment, we just can install option a) and b), which one is better? Or it doesn´t matter?

Thanks for all this work...


RE: SONY AF9 w/ AndroidTV Oreo - Installation via Play Store fails with Error Code -506 - fritsch - 2019-01-08

It does not matter. Both are from yesterday evening. Let me just for fun build a new one with org.xbmc.sony :-)

Will be the result of: https://jenkins.kodi.tv/view/Automation/job/BuildMulti-Choice/190/ source: https://github.com/fritsch/xbmc/tree/org.xbmc.sony

Let's see if we can assume the block the whole string or just anything xbmc / kodi in the name. Curious.

Please give the resulting org.xbmc.sony a test: http://mirrors.kodi.tv/test-builds/android/ (~ 20 Minutes).


RE: SONY AF9 w/ AndroidTV Oreo - Installation via Play Store fails with Error Code -506 - chrisyu - 2019-01-08

(2019-01-08, 15:18)fritsch Wrote:
(2019-01-08, 15:12)chrisyu Wrote: @fritsch

Test results, I use adb install from network.

a)  $ adb install kodi-20190107-689e9e07-sonyamazon-armeabi-v7a.apk
Success

Runs fine.

b) $ adb install kodi-20190107-689e9e07-sonyamazon-armeabi-v7a.apk 
Success

Runs fine.

c) $ adb install  kodi-20190107-4abe3490-master-armeabi-v7a.apk
adb: failed to install kodi-20190107-4abe3490-master-armeabi-v7a.apk: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE: Failed rename]

Cannot install.
 Thanks very much. Can you perhaps make a bit of "free space"? - and try again?
My TV z9f has enough space.
It always report this error when installing kodi official build. I tried to factory reset my TV , and still same error.


RE: SONY AF9 w/ AndroidTV Oreo - Installation via Play Store fails with Error Code -506 - fritsch - 2019-01-08

(2019-01-08, 16:53)chrisyu Wrote:
(2019-01-08, 15:18)fritsch Wrote:
(2019-01-08, 15:12)chrisyu Wrote: @fritsch

Test results, I use adb install from network.

a)  $ adb install kodi-20190107-689e9e07-sonyamazon-armeabi-v7a.apk
Success

Runs fine.

b) $ adb install kodi-20190107-689e9e07-sonyamazon-armeabi-v7a.apk 
Success

Runs fine.

c) $ adb install  kodi-20190107-4abe3490-master-armeabi-v7a.apk
adb: failed to install kodi-20190107-4abe3490-master-armeabi-v7a.apk: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE: Failed rename]

Cannot install.
 Thanks very much. Can you perhaps make a bit of "free space"? - and try again? 
My TV z9f has enough space.
It always report this error when installing kodi official build. I tried to factory reset my TV , and still same error. 
 I figured after posting. Thanks much. Currently building org.xbmc.sony ... curious if this also works, meaning "if they block", if they do it with == or with contains. Curious. We will find out.


RE: SONY AF9 w/ AndroidTV Oreo - Installation via Play Store fails with Error Code -506 - chrisyu - 2019-01-08

Just to confirm, in post #77, link a) and b) is same url.
Is it meant to install same apk twice?


RE: SONY AF9 w/ AndroidTV Oreo - Installation via Play Store fails with Error Code -506 - fritsch - 2019-01-08

Nope - that was a typo, but did not influence the testing result.

Next try:

Precondition: Remove all kodi applications
A) install http://mirrors.kodi.tv/test-builds/android/arm/kodi-20190107-624d59a1-sonyrandom-armeabi-v7a.apk - run it
B) remove A and install http://mirrors.kodi.tv/test-builds/android/arm/kodi-20190107-689e9e07-sonyamazon-armeabi-v7a.apk - run it
C) remove B and install http://mirrors.kodi.tv/test-builds/android/arm/kodi-20190108-8d666add-org.xbmc.sony-armeabi-v7a.apk - run it

What are the results?


RE: SONY AF9 w/ AndroidTV Oreo - Installation via Play Store fails with Error Code -506 - chrisyu - 2019-01-08

Here is the result.
And my TV is China version, there are no Google Play store on it.

a) $ adb install kodi-20190107-624d59a1-sonyrandom-armeabi-v7a.apk
Success

b) $ adb install kodi-20190107-689e9e07-sonyamazon-armeabi-v7a.apk
Success

c) $ adb install kodi-20190108-8d666add-org.xbmc.sony-armeabi-v7a.apk
Success

All run OK.


RE: SONY AF9 w/ AndroidTV Oreo - Installation via Play Store fails with Error Code -506 - fritsch - 2019-01-08

Perfect. Thanks.

Now please remove all and try: D) http://mirrors.kodi.tv/test-builds/android/arm/kodi-20190104-99374761-nghttp2-armeabi-v7a.apk <- random test-build with org.xbmc.kodi PACKAGE_ID


RE: SONY AF9 w/ AndroidTV Oreo - Installation via Play Store fails with Error Code -506 - goatl0rd - 2019-01-08

And there any difference in performance among this 4 versions?

Thanks


RE: SONY AF9 w/ AndroidTV Oreo - Installation via Play Store fails with Error Code -506 - fritsch - 2019-01-08

Nope - just always latest master - the PACKAGE_ID change picked on top - and the 100% same build job as with the official jobs. Newest is the org.xbmc.sony one ...


RE: SONY AF9 w/ AndroidTV Oreo - Installation via Play Store fails with Error Code -506 - chrisyu - 2019-01-08

(2019-01-08, 17:28)fritsch Wrote: Perfect. Thanks.

Now please remove all and try: D) http://mirrors.kodi.tv/test-builds/android/arm/kodi-20190104-99374761-nghttp2-armeabi-v7a.apk <- random test-build with org.xbmc.kodi PACKAGE_ID
 OK, I create a blank project with android studio, set package id to org.xbmc.kodi .
Only 2.3m in size, https://app.box.com/s/q8o7zzhp8gl3u7c52y6uhd9o21opcz8z

And here it is:
$ adb install tv-release.apk
adb: failed to install tv-release.apk: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE: Failed rename]


RE: SONY AF9 w/ AndroidTV Oreo - Installation via Play Store fails with Error Code -506 - fritsch - 2019-01-08

(2019-01-08, 17:38)chrisyu Wrote:
(2019-01-08, 17:28)fritsch Wrote: Perfect. Thanks.

Now please remove all and try: D) http://mirrors.kodi.tv/test-builds/android/arm/kodi-20190104-99374761-nghttp2-armeabi-v7a.apk <- random test-build with org.xbmc.kodi PACKAGE_ID
 OK, I create a blank project with android studio, set package id to org.xbmc.kodi .
Only 2.3m in size, https://app.box.com/s/q8o7zzhp8gl3u7c52y6uhd9o21opcz8z

And here it is:
$ adb install tv-release.apk
adb: failed to install tv-release.apk: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE: Failed rename] 
 Hurray! This is the 100% PROOF! Can you upload the APK please? (Edit: You did, perfect)

Good - now we know: Sony blocks by PACKAGE_ID ...


RE: SONY AF9 w/ AndroidTV Oreo - Installation via Play Store fails with Error Code -506 - goatl0rd - 2019-01-08

So which is the one we "should" installHuh

This goes very fast...

Thanks