CypherpunkArmory / UserLAnd

Main UserLAnd Repository
Other
3.44k stars 382 forks source link

Bug report - secondary android acct apt install failure #1982

Open michaelsalisbury opened 3 weeks ago

michaelsalisbury commented 3 weeks ago

Describe the bug

Environment: Debian minimal terminal deployment (deploys debian 11)

Bug: When using Userland in an Android secondary profile/account/workspace (not 100% sure what the proper term is for these) the Debian deployment will not perform any apt installs or upgrades.

Remember: The below steps work correct and vim installs without issue when using my android's primary user account, aka the first google account I use when setting up my personal devices.

Context: Getting Userland to work in a secondary user account is mission critical for me as the secondary account is my work gmail account and that profile also handles thinks like dual auth apps and the like. I can't be switching profiles back and forth to use this app. And I can't make a work account the primary account on a personal device for what should be obvious reasons.

Additional Info: I tried using the Ubuntu minimal terminal which deploys a 22.04 LTS but this profile will not execute any apt-get upgrade or install commands in any Android user account, primary or secondary.

Steps to reproduce the behavior:

  1. Switch Android to secondary user account.
  2. Clear all support files
  3. stop all sessions
  4. delete all file systems
  5. select Debian, select minimal, select terminal
  6. sudo su -
  7. apt clean all
  8. apt install vim
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    The following additional packages will be installed:
    libgpm2 vim-common vim-runtime xxd
    Suggested packages:
    gpm ctags vim-doc vim-scripts
    The following NEW packages will be installed:
    libgpm2 vim vim-common vim-runtime xxd
    0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
    Need to get 8067 kB of archives.
    After this operation, 37.0 MB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    E: Method gave invalid 400 URI Failure message: Could not switch saved set-user-ID
    E: Method http has died unexpectedly!
    E: Sub-process http returned an error code (112)

Notes: I'm sure to stop any sessions and delete any file systems on my android primary account before switching users to my secondary account and executing the above test.

Screenshots

Let me know if this is really necessary, the above replication instruction should be sufficient, probably.

Device Information

Tested on 2 devices, same results.

Device: Samsung Galaxy Tab s6 Lite.
Android Version: 13.
UserLAnd Version 24.04.03.
Whether the device is rooted. NOT Rooted Whether the device is running LineageOS: NO

Device: Pixel 6
Android Version: 14.
UserLAnd Version 24.04.03.
Whether the device is rooted. NOT Rooted Whether the device is running LineageOS: NO