ImranR98 / Obtainium

Get Android app updates straight from the source.
https://obtainium.imranr.dev
GNU General Public License v3.0
7.4k stars 164 forks source link

[BUG] Apps Not Installed In Non-Root Android. #1617

Closed atikattar1104 closed 4 months ago

atikattar1104 commented 4 months ago

Describe the bug

Any App Cannot Be Installed After Downloading It. Apps Downloads Properly But When It Comes To Installing, Pop Up Occurs Saying Some Error Occured Or Something Like That, Followed By App Name. I Mostly Download Apps From Github, So Maybe That's Why Its Happening. I Didn't Tried With Other Sources Though.

To Reproduce

  1. Install Any App From Obtainium,
  2. See Error.

Logs

2024-05-11 21:47:14.806: info: This is the first ever run of Obtainium.

2024-05-11 21:49:41.778: error: Shizuku service not running

2024-05-11 22:15:00.808: error: [XtMapper]

2024-05-11 22:15:15.049: error: [XtMapper]

2024-05-11 22:15:43.575: error: [XtMapper]

2024-05-12 13:21:43.667: error: Failed host lookup: 'api.github.com' [Obtainium, Image Toolbox, and XtMapper]

2024-05-12 13:23:55.067: error: [OSS-DocumentScanner]

2024-05-12 13:33:13.085: error: Failed host lookup: 'api.github.com' [Obtainium, OSS-DocumentScanner, Image Toolbox, and XtMapper]

2024-05-12 13:33:33.910: error: ClientException with SocketException: Failed host lookup: 'api.github.com' (OS Error: No address associated with hostname, errno = 7), uri=https://api.github.com/repos/T8RIN/ImageToolbox/releases/latest?per_page=100

2024-05-12 13:33:40.205: error: ClientException with SocketException: Failed host lookup: 'api.github.com' (OS Error: No address associated with hostname, errno = 7), uri=https://api.github.com/repos/Akylas/OSS-DocumentScanner/releases/latest?per_page=100

2024-05-12 13:33:58.139: error: ClientException with SocketException: Failed host lookup: 'api.github.com' (OS Error: No address associated with hostname, errno = 7), uri=https://api.github.com/repos/Akylas/OSS-DocumentScanner/releases/latest?per_page=100

2024-05-12 13:34:31.466: error: Shizuku service not running

2024-05-12 13:35:15.850: error: Failed host lookup: 'api.github.com' [Obtainium, OSS-DocumentScanner, and Image Toolbox]

2024-05-12 13:45:30.470: error: Shizuku service not running

2024-05-12 13:48:15.453: error: [OSS-DocumentScanner]

Please complete the following information:

Additional context I Actually Clicked Use Shizuku Or Sui To Install In App's Settings Page Out Of Confusion, That's Why The Shizuku Service Not Running Message In Logs. But, Shouldn't The App Just Call Built-In Package Installer To Install Apps, When Use Shizuku Or Sui Button Is Off? (Just Like How F-Droid Client Works)? Or Probably Obtainium Requires Root To Work, Which I Didn't Found Out.

atikattar1104 commented 4 months ago

Screenshot Screenshot_2024-05-12-14-35-15-629_dev imranr obtainium

atikattar1104 commented 4 months ago

This Also Happens In Installing.

ImranR98 commented 4 months ago

The error log says "shizuku service not running" - that's the issue. Network errors are unrelated.

atikattar1104 commented 4 months ago

Does That Mean, Obtainium Require Root/Shizuku/Sui To Work? If That's The Case Then, Can't It Just Call Android's Package Installer With APK's File Path, So That Package Installer Would Directly Install APK With User Permission?

ImranR98 commented 4 months ago

No, shizuku is optional. You must have switched to the shizuku method in your settings.

atikattar1104 commented 4 months ago

I Can Try Reinstalling App. Maybe That Can Fix.

atikattar1104 commented 4 months ago

Just Tried On Latest Version Release v1.1.8, Clean Install, Made Sure NOT To Accidentally Click Use Shizuku Or Sui Switch (My Bad Last Time😅), But Still Same Outcome :-

Screenshot_2024-05-14-07-49-57-474_dev imranr obtainium

ImranR98 commented 4 months ago

That's weird. Do you have anything shizuku related installed?

ImranR98 commented 4 months ago

Oh wait, I just realized you're on MIUI. You need to disable MIUI's "optimizations" that mess with the package installer. See https://github.com/ImranR98/Obtainium/issues/583#issuecomment-1763106004

atikattar1104 commented 4 months ago

Also, This Time Log Only Says This :-

Screenshot_2024-05-14-07-58-37-748_dev imranr obtainium

Maybe Just Like You Said Above, The App Is Still Looking For Shizuku/Sui To Install App, Even If It Is Not Installed On Device And/Or Not Turned On In Obtainium's Settings Page.

atikattar1104 commented 4 months ago

Oh, Ok. I Get It. Damn MIUI. I Don't Even Have Disable MIUI Optimization Switch Visible In Developer Options. They Have Removed It From There. Anyways, Will Try This App In A New Phone With Lineage OS On It😄.