App crashing on launch on Android Shield TV - Shield Android TV Q&A, Help & Troubleshooting

My App (XDA Labs link) is crashing on launch with the following stack.
I don't currently have one of these devices, and was wondering if
I provided the debug version of the APK, someone could get me a logcat.
Anyone has any experience of porting to Android TV, as this seems to be an "at launch" crash, before I have even got some of my code running.
Crash from field
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2691)
at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2752)
at android.app.ActivityThread.-wrap12 (ActivityThread.java)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1461)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:154)
at android.app.ActivityThread.main (ActivityThread.java:6120)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:755)
Thanks in advance

Related

[Q&A] How to debug Android apps loaded on Windows 10 Mobile

My local public library uses an app to distribute its eBooks and Audiobook. The app is called Hoopla digital. I have contacted them about their plans to port the app to W10. They said they have no plans to do so.
I downloaded the APK of the app and installed it onto my phone. It launches, initializes, and then immediately crashes.
I'm a pretty decent developer, however, I know next to nothing about android. Is there any way to capture the crash and investigate if it's something Windows related or if it's simply relying on Google Play APIs? Are there any resources available to do some basic troubleshooting of the crash? It would be great to not have to buy a cheap android in order to listen to my Audiobooks in the car.
Thanks for any guidance
Do:
Open Settings enable debug mode, and pairing, then on the computer load wconnect.exe usb in a command prompt (you need the Project Astoria PC zip found in another post.) and then debug like normal: adb logcat
Perfect. I'll take a crack at it. Hopefully it's something easily fixable!
Thanks!
donot install apk to your phone,use the stores app
dugu1248 said:
donot install apk to your phone,use the stores app
Click to expand...
Click to collapse
Stores app does not work with APKs yet

Spoofing/Modding - Device/apps Help

I am trying to get all4 on my shield, I've tried many things but failing to do it lol.
OK so I've tried installing the apk I got from someone who backed it up for me from a fire tv but it seems like the apk was just a wrapper so it didnt work.
I have the amazon appstore installed but it recognises my device is not a fire TV device and won't let me install.
Is there a way we could spoof the amazon appstore to see the device as a fire tv or maybe spoof the device so apps think its a fire TV (if that makes sense).
So spoofing the amazon appstore I have an idea -
Using "app cloner" it has a build prop option to where you can modify the apk to see the device as what you wish by filling in the right build prop details for the device you want to spoof to.
Only thing is - I don't have a fire TV device to get the details so I can't try this yet. (If anyone had the details please let me know so I can try - just need to install app cloner and it will show you the info)
Can anyone help with this?
I also have a second problem I've been trying to deal with for years now lol.
There is an app called "notifications for android TV", what it does, is it send notifications from apps on your phone and displays them on the TV in a way where when you install the app on android TV the app auto installs as a server, when you install the same app on phone it asks you if you want to set up this phone as a server or client.
I used to run full android custom ROM on my shield TV, when I did I used app cloner to install 2 versions of this app and installed one as server and one as client so all the notifications were handled by my shield TV and I did not need a phone connected to send notifications - this is ideal. I'm love look ing to try do the same thing on stock nvidia firmware but every time it detects the app as android TV and doesn't you the option to install as a client.
I just need a way to spoof/mod the app to think its installing on a phone instead of android TV.
Can anyone help with this stuff, been bugging me for soo long now lol.
I just side loaded the mobile all4 application from apkpure.
Sure, you need to use a mouse to navigate it, but it works fine for me.
I should have mentioned I am looking for the fire TV version specifically as it is remote friendly. I have the version you are using already.

Any way to force an app to mobile mode?

I'm quite familiar with sideloading regular Android apps that don't have an Android TV version, but is there any way to force an app that supports both to use it's mobile version for the Shield TV? I have a VPN through SurfShark that only provides a single apk, and the UI changes depending on if you install it on a phone or Android TV. Problem is on the Shield I'm missing a few features that the app has on my phone, namely the reverse whitelist (selecting only a few apps that use the VPN, everything else is left alone). Also in the SurfShark whitelist options it shows all the installed apps on my phone, but on the Shield many apps aren't listed (Prime TV, NHL, etc).
Apart from waiting for their dev team to fix the Android TV UI, the easiest fix would be to just install the mobile version on the Shield but I can't figure out a way to do that since it's just a single apk, and Google isn't helping either.
Hemi-Cuda said:
I'm quite familiar with sideloading regular Android apps that don't have an Android TV version, but is there any way to force an app that supports both to use it's mobile version for the Shield TV? I have a VPN through SurfShark that only provides a single apk, and the UI changes depending on if you install it on a phone or Android TV. Problem is on the Shield I'm missing a few features that the app has on my phone, namely the reverse whitelist (selecting only a few apps that use the VPN, everything else is left alone). Also in the SurfShark whitelist options it shows all the installed apps on my phone, but on the Shield many apps aren't listed (Prime TV, NHL, etc).
Apart from waiting for their dev team to fix the Android TV UI, the easiest fix would be to just install the mobile version on the Shield but I can't figure out a way to do that since it's just a single apk, and Google isn't helping either.
Click to expand...
Click to collapse
Soome app with that allinone package usually changed with how you launch it. Try launch it through sideload launcher usually load mobile one.

Android Wear app debugging with mobile application connectivity issue

Hey guys
I've created an android application with a wearos module contained within it. This might be a rookie issue given that I'm new to android development (I'm from a web dev background) but I'm struggling to get my wear and mobile apps to communicate, when they are in debug mode.
Basically, I have written some code in the mobile application to detect if the wearOS app exists on a connected watch, and if it does, allow the user to monitor the sensor activity on the watch.
When I run the mobile application debugger on a physical device through USB, I see it doesn't package the wear application with it and so I cannot install the linked watch application on my watch (which is linked to android studio through ADB over wi-fi). While the mobile device debugger is running, I run the debugger for the watch app too and the app then runs on the watch, but it doesn't look like the code in the app is actually detecting the watch. This functionality does work though when downloading the published app through the play store, and then installing it on the watch through the play store too using the 'apps on your phone' menu on my watch.
How can I achieve the connectivity between the watch and phone apps through the debugger? This is a massive pain point for me and I can't seem to find anything online that addresses this and that describes how best to set up debug environments so that these apps are linked on the 2 devices and can communicate in debug mode. My mobile device app is heavily dependent on detecting watch sensors and interacting with them and so I need an efficient way to test this.
Thanks!

Are not-standalone (companion) Wear OS apps still allowed for submission on the Play Store, or are they always rejected?

Hello.
Our Wear OS application, which is not a standalone application (it is a companion app of our smartphone app, it cannot be used without the smartphone app) keeps getting rejected by Google Play Policy team for the following reason : "Your application requires phone interaction for the watch version to function." even if we have clearly explained in our Play Store description that it is not a standalone application and cannot work when the smartphone app is not available.
Our application was previously accepted and published on the Play Store but we suspect a Google policy change even if we haven't found it clearly anywhere (we have only found recommendations which encourage standalone apps).
=> Are not-standalone Wear OS apps still allowed for Play Store submission or must our Wear OS app include at least a standalone feature ?
Thanks in advance for your help.
Best regards
I am not sure, but I know there are some apps that are embedded in the phone app to deploy to a WearOS watch (like the Hyundai Blue Link App and the Genesis Intelligent Connect App). If your phone is paired with a WearOS watch, it loads the app onto the phone. Maybe you can try something like that.
Funny thing is the apps right now do not load the app to the Watch4. I think it is because the Watch4 is on WearOS4. I had a different watch at one time that was plain Jane WearOS and the app loaded just fine. I am looking for Hyundai/Genesis to correct this issue. I hope.
I also got a wear os companion app update reject on 6.Jul. My last update was successful on 30.May.2022. Did not see any policy regarding to the companion app issue. It is just weird and I have also appealed to get more info. Did you appeal the reject?

Categories

Resources