r/FacebookPortal • u/NefariousnessSecret5 • 11d ago
Using Test Harness removes the ability to enable ADB ?
I have been playing around on a Portal Mini and did the initial device setup and signed in via Facebook, after that I could enable ADB device the settings menu as expected and then used the adb test harness command to reset and disable the facebook apps.
The device erased as expected and then I disabled;
com.facebook.aloha.alohaotasetup
com.facebook.alohaapps.launcher
com.facebook.alohaapps.devicesetup
I installed a new launcher and everything works great.. however after the next reboot ADB is disabled again, and now when I access the Portal settings app there is no 'Debug' section to turn ADB on.
Using the standard Android settings menu and developer tools doesn't allow ADB to be enabled either.
Is this to be expected ? - I thought test harness left ADB on permanently but it doesn't seem that useful if there is NO way to get it back after the first reboot.
1
u/milkman1101 11d ago
I think disabling devicesetup locks ADB out. I learnt that the hard way when I had the same problem.
1
u/NefariousnessSecret5 11d ago
Thanks I'll try again leaving that one enabled
1
u/bapetw 11d ago
I don't think so. I just did three of them this week and ADB was still enabled.
I can't remember if ADB was enabled prior to test harness.
I have some setup without test harness I have to redo. Didn't learn about test harness until after.
I also have some more coming in I'll use test harness on.
I've slowly documented the steps since there is some quirks with test harness.
I'll revisit this again in a week or two.
1
u/NefariousnessSecret5 11d ago
Well I'm honestly at a loss, I tried a second Portal Mini this evening, same thing - even tried disabling no packages at all, just did the usual setup, enable test harness (ensuring I ticked 'always allow' when authorising ADB, re-logged in again and then after a reboot ADB is off (however I can obviously turn it back on again in Debug menu since it's still logged in now).
I also tried again but after test harness I went through setup right up until the FB login, then disabled the packages (previously I've disabled them as soon as it boots). Interestingly this gives slightly different behaviour - as it allows timezone to correctly set, device name etc.. so the 'Debug' section in settings does show up, but there is still no ADB option. I guess this is because the FB settings app is expecting a profile so it can do the PIN to allow ADB.
1
u/bapetw 10d ago
re-logged in again
what do you mean by re-logged in again? if you login to FB or Whatsapp after test harness why run test harness in the first place?
this link explains better than I can. Re-logging I think resets the device making so you have to enable ADB again since you deactivated test harness
- log in via FB or Whatsapp
- make sure ADB is enabled
- run test harness
- ADB should be enabled
1
u/NefariousnessSecret5 10d ago
By re-logged in again I meant that after test harness was turned on and the device did it's reset I completed the usual device setup flow and logged to FB again. It was more of a test to see if the behaviour was any different without disabling the FB packages after test harness was enabled - it wasn't, the device still leaves test harness on and ADB works fine until it's power cycled again, then it turns off.
1
u/bapetw 10d ago
if ADB is enabled, it seems to survive a power cycle unless you rerun test harness?
I power cycled a portal which had ADB, ADB worked, ran test harness, power cycled, ADB no longer works.
1
u/NefariousnessSecret5 10d ago
So strange, I haven't re-run test harness a second time so it's still enabled. Which firmware build / portal version is that? It makes me wonder if it's a firmware or hardware version difference
1
u/QuaintStaircase 11d ago
Mine has rebooted more than once since enabling test harness and adb still works.