in custom Android ROM (crDroid), fix "Streamed Install" adb bug occurring with macOS

Job ID: 37920476

Budget: €30 – €250 EUR

I'm facing some trouble using crDroid 10.2 custom ROM with my Nokia 6.1 (PL2). There's an issue that arises only when I use adb to install APKs via terminal in macOS, there are no error messages, but 'adb install any.apk' command in Terminal gets stuck at 'Performing Streamed Install' stage. It works well with Windows, other ROMs incl. a previous crDroid version for the same phone, and my Samsung A8 phone.

I'm seeking a freelancer with a good grasp on:

- the Android system
- adb commands and functionality
- Proficiency in macOS troubleshooting

The task here is to identify the anomaly and fix the issue so even the latest crDroid custom ROM for my Nokia 6.1 can again communicate and function seamlessly via adb with macOS on my Intel Mac. In-depth knowledge in the anatomy of - above all - Android and adb, but also of macOS are required towards fixing this issue.

Though not required, recommended optimal dev environment on your site:
- macOS Monterey 12.7.4 or higher (preferably Intel) running
- a Android phone onto which you can install the latest crDroid 10.2 - compatibility see https://crdroid.net/downloads, or an unofficial 10.2 build, to see if you can reproduce this issue

All technical Details:

- Device: Nokia 6.1 "2018" (PL2) TA-1043 https://www.gsmarena.com/nokia_6_1-8972.php
- ROM: latest crDroid 10.2 2024-03-18 build from https://crdroid.net/PL2/10 (all older 10.2 builds from https://sourceforge.net/projects/crdroid/files/PL2/10.x/ are affected by this bug, too)
- Mac arch: Intel
- macOS: my daily driver is still Monterey latest 12.7.4, but the bug also occurs in macOS Sonoma
- adb: latest v.35.0.1-11580240
- 'adb devices' correctly issues
List of devices attached
PL2GAR9842318434 device
- all other adb commands I tested work

Steps which did not help:
- rebooting both, Nokia and Mac
- using all possible USB ports and several cables
- adding the -r switch 'adb install -r path/to/some/android-app.apk'
- trying the install command in a different user account
- adb: downgrading version-by-version down all the way to 5 versions before the current one, and regardless if installed from Google or via homebrew
- tried all the hints and tips from https://stackoverflow.com/questions/23081263/adb-android-device-unauthorized/25546300#25546300 and https://stackoverflow.com/questions/31638582/android-adb-devices-unauthorized, to no avail
- adb logcat -d -b main -b system -b events -v time > logcat.txt
- install and root the ROM with Magisk 27.0

Not affected closely akin ROMs:
- "crDroid 10.0 UNofficial for Nokia 6.1 (PL2)" from https://xdaforums.com/t/rom-unofficial-14-pl2-crdroid-10-vanilla.4645786/
- "[OFFICIAL] LineageOS 21 for the Nokia 6.1 (2018)/6.1 Plus", tested latest nighly from https://download-static.lineageos.org/PL2

Steps to reproduce:

Mobile device:
1. enable dev options > USB debugging
2. connect your device to your Mac via USB > confirm authentication

Mac:
1. install adb
2. in Terminal: adb devices && adb install -r path/to/some/android-app.apk (adapt the path)

Does it get stuck at "Performing Streamed Install", or finish with "Success"?

I've posted this issue into the XDA-forum topic, the Nokia 6.1 PL2 crDroid Telegram group and the general crDroid group, but haven't received feedback (let alone support) yet, so at this point cannot even tell if this bug affects all of crDroid 10.2 in general, or only this particular crDroid 10.2 for Nokia 6.1 build.

Desired Solution:
Find the file(s) in the ROM that requires editing to solve this bug

Alternative solutions:
- either update the crDroid 10.0 UNofficial ROM (link see above) to crDroid 10.2 and verify resolution of the issue
- or mod/ patch the latest "LineageOS 21 for Nokia 6.1 (2018)/6.1 Plus" into crDroid 10.2
Related categories: Android Mac OS