popcorn-official / popcorn-android

Popcorn Time is a multi-platform, free software BitTorrent client that includes an integrated media player ( Android / AndroidTV ) A Butter-Project Fork
https://popcorn-time.site
Other
1.21k stars 275 forks source link

Doesn't load on Fire Stick 4k version 6.2.8.9 #800

Closed NameUnrequired closed 1 year ago

NameUnrequired commented 1 year ago

The app installs, requests permission to access files, appears in the menu, but nothing happens when clicked

ivan1986 commented 1 year ago

version 6.2.8.9 ?

NameUnrequired commented 1 year ago

@ivan1986 I believe that is the version number, yes. the device has updated since I created this issue though, so I can't check for certain

ivan1986 commented 1 year ago

last version number is 0.3.5

NameUnrequired commented 1 year ago

@ivan1986 it is not.

https://en.wikipedia.org/wiki/Fire_OS

ivan1986 commented 1 year ago

a, you about os version, ok

superbonaci commented 1 year ago

Can you run adb logcat on the Amazon Fire Stick?

st-patrick commented 1 year ago

same on a slow Allview 2K. Pretty much any other app runs, I have also developed a screensaver that runs fine

st-patrick commented 1 year ago

And on 2021 Shield it opens up but if you press too many buttons it crashes / freezes and none of the content ever loads, so it is stuck in "loading..."

superbonaci commented 1 year ago

@NameUnrequired @st-patrick can you run adb logcat on device?

fruitypie commented 1 year ago

Same issue, here's the logcat logs starting the app 0.3.6 fresh install no local data:

I/System.out: waiting for debugger to settle...
I/System.out: debugger has settled (1482)
W/System: ClassLoader referenced unknown path: /system/priv-app/MetricsApi/lib/arm
I/MultiDex: VM with version 2.1.0 has multidex support
    Installing application
    VM has multidex support, MultiDex support library is disabled.
D/Sentry: io.sentry.auto-init read: true
I/Sentry: Retrieving auto-init from AndroidManifest.xml
I/Sentry: sentry-debug-meta.properties file was not found.
D/Sentry: SU isn't found on this Device.
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
I/FrameworkJumpTable: Successfully loaded all classes
I/FrameworkJumpTable: Successfully loaded all methods
I/FrameworkJumpTable: Successfully loaded all fields
I/FrameworkJumpTable: Successfully loaded all constructors
W/nAnnotationIntrospector: Unable to load JDK7 annotation types; will have to skip
D/DHT: NotInitializedException
D/ButterApplication: StorageLocations: {sdCard=/storage/emulated/0/Android/data/pct.droid.tv.dev}
I/ButterApplication: Chosen cache location: /storage/emulated/0/Android/data/pct.droid.tv.dev/torrents
W/com.sjl.foreground.Foreground: became foreground
D/TorrentService: onStartCommand
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 2
D/CRLSetManager: getInstance binder: android.os.BinderProxy@731c052
W/com.sjl.foreground.Foreground: went background
I/com.sjl.foreground.Foreground: still background
D/DHT: DHT contains 84 nodes
D/DHT: DHT updated 12
D/RecommendationService: Fetching movies
D/RecommendationService: Fetching movies
D/MediaProvider: MoviesProvider
D/RecommendationService: Waiting on callbacks
D/RecommendationService: Waiting on callbacks
D/CRLSetManager: getInstance binder: android.os.BinderProxy@731c052
D/RecommendationService: Waiting on callbacks
D/RecommendationService: Waiting on callbacks
W/System.err: WARNING: could not load Java7 Path class
D/RecommendationService: Waiting on callbacks
D/RecommendationService: Waiting on callbacks
D/RecommendationService: loaded 30 movies
D/RecommendationService: mShowsCallFinished: true
    mMoviesCallFinished: true
D/RecommendationService: Updating recommendation cards
D/RecommendationService: building movie recommendations
    Recommendation - Top Gun: Maverick
D/RecommendationBuilder: Building notification - RecommendationBuilder{, mId=-1, mPriority=19, mSmallIcon=2131230868, mTitle='Top Gun: Maverick', mDescription='After more than thirty years of service as one of the Navy's top aviators, Pete Mitchell is where he belongs, pushing the envelope as a courageous test pilot and dodging the advancement in rank that would ground him.', mImageUri='http://image.tmdb.org/t/p/w500/wxP2Mzv9CdjOK6t4dNnFGqIQl0V.jpg', mBackgroundUri='content://pct.droid.tv.RecommendationContentProvider/http%3A%2F%2Fimage.tmdb.org%2Ft%2Fp%2Foriginal%2Fx9jUjY3hcm6StdNEiGfOFDTC3kA.jpg', mIntent=PendingIntent{6b636e9: android.os.BinderProxy@1868f6e}}
D/RecommendationService: Recommendation - Jurassic World Dominion
D/RecommendationBuilder: Building notification - RecommendationBuilder{, mId=-2, mPriority=18, mSmallIcon=2131230868, mTitle='Jurassic World Dominion', mDescription='Four years after Isla Nublar was destroyed, dinosaurs now live—and hunt—alongside humans all over the world. This fragile balance will reshape the future and determine, once and for all, whether human beings are to remain the apex predators on a planet they now share with history’s most fearsome creatures.', mImageUri='http://image.tmdb.org/t/p/w500/kAVRgw7GgK1CfYEJq8ME6EvRIgU.jpg', mBackgroundUri='content://pct.droid.tv.RecommendationContentProvider/http%3A%2F%2Fimage.tmdb.org%2Ft%2Fp%2Foriginal%2Fi86x0AMISxzdcMRPWcVBV5SWGFj.jpg', mIntent=PendingIntent{3cc77ef: android.os.BinderProxy@c7412fc}}
D/RecommendationService: Recommendation - Prey
D/RecommendationBuilder: Building notification - RecommendationBuilder{, mId=-3, mPriority=17, mSmallIcon=2131230868, mTitle='Prey', mDescription='In the Comanche Nation in 1717, a fierce and highly skilled warrior named Naru learns the prey she is stalking is a highly evolved alien with a technologically advanced arsenal.', mImageUri='http://image.tmdb.org/t/p/w500/cv6zBbPfP0MMxgMdve95YrIIQwq.jpg', mBackgroundUri='content://pct.droid.tv.RecommendationContentProvider/http%3A%2F%2Fimage.tmdb.org%2Ft%2Fp%2Foriginal%2Ffl05mRLLFDvk85dxKWZiaer1PX0.jpg', mIntent=PendingIntent{61d0d85: android.os.BinderProxy@e5b77da}}
D/RecommendationService: Recommendation - Day Shift
D/RecommendationBuilder: Building notification - RecommendationBuilder{, mId=-4, mPriority=16, mSmallIcon=2131230868, mTitle='Day Shift', mDescription='An LA vampire hunter has a week to come up with the cash to pay for his kid's tuition and braces. Trying to make a living these days just might kill him.', mImageUri='http://image.tmdb.org/t/p/w500/bI7lGR5HuYlENlp11brKUAaPHuO.jpg', mBackgroundUri='content://pct.droid.tv.RecommendationContentProvider/http%3A%2F%2Fimage.tmdb.org%2Ft%2Fp%2Foriginal%2FqpH6z1e4Lm9O4vWClSfDzSxPnqd.jpg', mIntent=PendingIntent{812a40b: android.os.BinderProxy@96d62e8}}
D/RecommendationService: Recommendation - Elvis
D/RecommendationBuilder: Building notification - RecommendationBuilder{, mId=-5, mPriority=15, mSmallIcon=2131230868, mTitle='Elvis', mDescription='The life story of Elvis Presley as seen through the complicated relationship with his enigmatic manager, Colonel Tom Parker.', mImageUri='http://image.tmdb.org/t/p/w500/b6UjAGzPzOnXhPIASUaSX1BUbXD.jpg', mBackgroundUri='content://pct.droid.tv.RecommendationContentProvider/http%3A%2F%2Fimage.tmdb.org%2Ft%2Fp%2Foriginal%2FrLo9T9jEg67UZPq3midjLnTUYYi.jpg', mIntent=PendingIntent{f25fd01: android.os.BinderProxy@60937a6}}
D/RecommendationService: Recommendation - Luck
D/RecommendationBuilder: Building notification - RecommendationBuilder{, mId=-6, mPriority=14, mSmallIcon=2131230868, mTitle='Luck', mDescription='Suddenly finding herself in the never-before-seen Land of Luck, the unluckiest person in the world must unite with the magical creatures there to turn her luck around.', mImageUri='http://image.tmdb.org/t/p/w500/1HOYvwGFioUFL58UVvDRG6beEDm.jpg', mBackgroundUri='content://pct.droid.tv.RecommendationContentProvider/http%3A%2F%2Fimage.tmdb.org%2Ft%2Fp%2Foriginal%2F8k2vqltt22nNavbRCz1LOtbuTyR.jpg', mIntent=PendingIntent{14575e7: android.os.BinderProxy@c29c594}}
D/RecommendationService: Recommendation - Minions: The Rise of Gru
D/RecommendationBuilder: Building notification - RecommendationBuilder{, mId=-7, mPriority=13, mSmallIcon=2131230868, mTitle='Minions: The Rise of Gru', mDescription='A fanboy of a supervillain supergroup known as the Vicious 6, Gru hatches a plan to become evil enough to join them, with the backup of his followers, the Minions.', mImageUri='http://image.tmdb.org/t/p/w500/wKiOkZTN9lUUUNZLmtnwubZYONg.jpg', mBackgroundUri='content://pct.droid.tv.RecommendationContentProvider/http%3A%2F%2Fimage.tmdb.org%2Ft%2Fp%2Foriginal%2F2gGVdr0BcKzma68SW2jpZfJtOlB.jpg', mIntent=PendingIntent{c74683d: android.os.BinderProxy@1812832}}
D/RecommendationService: Recommendation - The Gray Man
D/RecommendationBuilder: Building notification - RecommendationBuilder{, mId=-8, mPriority=12, mSmallIcon=2131230868, mTitle='The Gray Man', mDescription='When the CIA's most skilled mercenary known as Court Gentry, aka Sierra Six, accidentally uncovers dark agency secrets, he becomes a primary target and is hunted around the world by psychopathic former colleague Lloyd Hansen and international assassins.', mImageUri='http://image.tmdb.org/t/p/w500/l7WN0QfrFKY0CfATNaqgHGYOuf6.jpg', mBackgroundUri='content://pct.droid.tv.RecommendationContentProvider/http%3A%2F%2Fimage.tmdb.org%2Ft%2Fp%2Foriginal%2F7xHgAND6MnGPDrOiHgCemgcRQZa.jpg', mIntent=PendingIntent{6e98983: android.os.BinderProxy@7a7a700}}
D/RecommendationService: Recommendation - Top Gun
D/RecommendationBuilder: Building notification - RecommendationBuilder{, mId=-9, mPriority=11, mSmallIcon=2131230868, mTitle='Top Gun', mDescription='For Lieutenant Pete 'Maverick' Mitchell and his friend and co-pilot Nick 'Goose' Bradshaw, being accepted into an elite training school for fighter pilots is a dream come true. But a tragedy, as well as personal demons, will threaten Pete's dreams of becoming an ace pilot.', mImageUri='http://image.tmdb.org/t/p/w500/xUuHj3CgmZQ9P2cMaqQs4J0d4Zc.jpg', mBackgroundUri='content://pct.droid.tv.RecommendationContentProvider/http%3A%2F%2Fimage.tmdb.org%2Ft%2Fp%2Foriginal%2F6Z64TlW2XO8mt4OpR3dpv5yy5r.jpg', mIntent=PendingIntent{1444b39: android.os.BinderProxy@15957e}}
D/RecommendationService: Recommendation - Orphan: First Kill
D/RecommendationBuilder: Building notification - RecommendationBuilder{, mId=-10, mPriority=10, mSmallIcon=2131230868, mTitle='Orphan: First Kill', mDescription='After escaping from an Estonian psychiatric facility, Leena Klammer travels to America by impersonating Esther, the missing daughter of a wealthy family. But when her mask starts to slip, she is put against a mother who will protect her family from the murderous “child” at any cost.', mImageUri='http://image.tmdb.org/t/p/w500/wSqAXL1EHVJ3MOnJzMhUngc8gFs.jpg', mBackgroundUri='content://pct.droid.tv.RecommendationContentProvider/http%3A%2F%2Fimage.tmdb.org%2Ft%2Fp%2Foriginal%2F8zbyOgl9y7cExmBdMnqdHCsq2mz.jpg', mIntent=PendingIntent{a313adf: android.os.BinderProxy@e60332c}}
D/RecommendationService: building show recommendations
Jaladhjin commented 1 year ago

I came to start this exact issue too also on a 4K Fire Stick but I'll just throw in my #MeToo here.

tv-arm-release-0.3.6.apk this happens to same as the OP I click allow on local files & it won't load from there it doesn't even start to load then crash, no crash message nothing just nothing further happens.

mobile-arm-release-0.3.6.apk does totally work but looks horrible scaling & navigation wise which obviously isn't surprising considering that variant is for mobile phones but just for diagnostic sake you might like to know that version does load.

I apologize I'm not very knowledgeable about pulling logs on a Fire Stick for example that logcat I'm not sure if that's do-able on a Fire Stick.

Llew292 commented 1 year ago

For those still having this issue It is a bug stemming from missing the RECORD_AUDIO Permission

The permission request is automatically denied by the system on launch and it does not appear in the app settings

Applications > Manage Installed Applications > Popcorn Time > Permissions

All That Shows Up Is "Storage"

This is not a bug in the App But In the Fire OS Itself

For a workaround till the devs Find a fix or Amazon Fixes the OS you can grant the permission manually with

adb shell pm grant pct.droid.tv android.permission.RECORD_AUDIO

Tested working on Fire OS 6.2.9.4 And Popcorn Time 0.3.6

superbonaci commented 1 year ago

@Llew292 thank you very much for the clarification. Do you need to enable Developer options on Fire OS 6.2.9.4? Hiw do you do that?

duey commented 1 year ago

@Llew292 thank you very much for the clarification. Do you need to enable Developer options on Fire OS 6.2.9.4? Hiw do you do that?

Yes, you need to turn on ADB Debugging. There's some more information here: https://developer.amazon.com/docs/fire-tv/connecting-adb-to-device.html

Once it's setup, you can enable an option on the Fire Stick to allow you to connect via ADB over WiFi. I can't find a website that details that, so, maybe that automatically turns on? Sorry, going by memory here. If it is a separate option, I believe it's the same screen on the Amazon Fire Stick where you turn on debugging. It'll be something like "allow remote debugging" or "allow debugging over Wifi".

duey commented 1 year ago

adb shell pm grant pct.droid.tv android.permission.RECORD_AUDIO

@Llew292 thank you so much! It worked for me as well

Amazon Fire TV Stick 4K Fire OS 6.2.9.4 PopcornTime tv-arm-release-0.3.6.apk

superbonaci commented 1 year ago

why do you close this issue as completed? Where's the commit which fixes it?

Karanjot-singh commented 7 months ago

adb shell pm grant pct.droid.tv android.permission.RECORD_AUDIO

Operation not allowed: java.lang.SecurityException: Can't change android.permission.RECORD_AUDIO. It is required by the application

Operation not allowed on FireOS 5.2.95 Firestick 1st gen