Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It fails to install with LineageOS Recovery #338

Closed
2shrestha22 opened this issue May 10, 2023 · 21 comments · Fixed by #420
Closed

It fails to install with LineageOS Recovery #338

2shrestha22 opened this issue May 10, 2023 · 21 comments · Fixed by #420
Assignees
Labels
bug/limitation elsewhere Bug/limitation in the ROM or another project

Comments

@2shrestha22
Copy link

When installing through LineageOS Recovery it fails.

@chenxiaolong
Copy link
Owner

chenxiaolong commented May 10, 2023

Please grab the recovery's logs (adb pull /tmp/recovery.log) immediately after flashing (but before rebooting) and upload it here.

@chenxiaolong chenxiaolong self-assigned this May 10, 2023
@SebJansen
Copy link

Same problem here, running the latest LineageOS on this device: https://wiki.lineageos.org/devices/lemonade/

I get the error message: "Invalid footer", see photo below

adb pull didn't work for me, I got the error 'unauthorized'

PXL_20230519_142159688

@chenxiaolong chenxiaolong added the bug/limitation elsewhere Bug/limitation in the ROM or another project label Jul 20, 2023
@cao-
Copy link

cao- commented Sep 5, 2023

Also in the recovery of Pixel Experience (which is almost the same as the recovery of Lineage OS) the installation fails, and the only error I see after the message "Mountain system" is
Error: recovery: Error in /sideload/package.zip (status 1)

@cao-
Copy link

cao- commented Sep 5, 2023

Here are my recovery logs
IMG_20230906_001552_126
Thanks

@chenxiaolong
Copy link
Owner

Please grab /tmp/recovery.log with adb and upload the file. It'll contain more information about why the installation failed than what is shown on screen.

@alxv-su
Copy link

alxv-su commented Sep 9, 2023

I have exactly the same problem on Lineage 20 on Redmi 9.
Here is /tmp/recovery.log

chenxiaolong added a commit that referenced this issue Sep 10, 2023
The source field for dm-linear block devices in the recovery's fstab is
not an actual file path.

Fixes: #338

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
@chenxiaolong
Copy link
Owner

I have exactly the same problem on Lineage 20 on Redmi 9. Here is /tmp/recovery.log

Thanks for the logs! I think #420 might fix this. Can you give this debug build a try? BCR-1.50.r5.ge461578-debug.zip

If it still fails, please upload the recovery log again.

@alxv-su
Copy link

alxv-su commented Sep 10, 2023

I have exactly the same problem on Lineage 20 on Redmi 9. Here is /tmp/recovery.log

Can you give this debug build a try? BCR-1.50.r5.ge461578-debug.zip
If it still fails, please upload the recovery log again.

It fails. I am unable to get recovery log, because phone stuck after error and do not return to recover menu. After I press Power for a few seconds it open recovery, but with new recovery log.
IMG_20230910_110636

@cao-
Copy link

cao- commented Sep 10, 2023

Sorry for the late reply. Here is my recovery log, where I first tried installing the standard version of BCR, and after that the debug version you sent here: recovery.log
Thanks for looking into this!

chenxiaolong added a commit that referenced this issue Sep 10, 2023
The source field for dm-linear block devices in the recovery's fstab is
not an actual file path.

Fixes: #338

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
chenxiaolong added a commit that referenced this issue Sep 10, 2023
The source field for dm-linear block devices in the recovery's fstab is
not an actual file path.

Fixes: #338

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
@chenxiaolong
Copy link
Owner

chenxiaolong commented Sep 10, 2023

@alxv-su

It fails. I am unable to get recovery log, because phone stuck after error and do not return to recover menu. After I press Power for a few seconds it open recovery, but with new recovery log.

Hmm, I have no idea why it would crash like that. Have you flashed anything else that modifies /system before? I wonder if your ROM enforces that the system partition is read-only and unmodified.


@cao-

Thanks for the log! Can you give this new debug build a try? BCR-1.50.r5.g2f5f0b6-debug.zip (EDIT: Updated link to the new test build below)

@alxv-su
Copy link

alxv-su commented Sep 10, 2023

It fails too, with exactly the same text on the screen.

Have you flashed anything else that modifies /system before?

Probably not. I install lineage os, mindthegapps, org.fdroid.fdroid.privileged.ota_2130.zip.

adb shell ls -R /system > /tmp/ls-system.txt
ls-system.txt

chenxiaolong added a commit that referenced this issue Sep 10, 2023
The source field for dm-linear block devices in the recovery's fstab is
not an actual file path.

Fixes: #338

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
chenxiaolong added a commit that referenced this issue Sep 10, 2023
The source field for dm-linear block devices in the recovery's fstab is
not an actual file path.

Fixes: #338

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
@chenxiaolong
Copy link
Owner

Probably not. I install lineage os, mindthegapps, org.fdroid.fdroid.privileged.ota_2130.zip.

Thanks, the gapps and fdroid packages gave me some hints on what might be wrong. Looks like the recovery expects the system partition to be mounted at /mnt/system for Android 10+. Can you give this debug build a try? BCR-1.50.r5.g2f5f0b6-debug.zip

@cao-
Copy link

cao- commented Sep 11, 2023

For me this last build worked! Thank you :)
If you need the logs, when I can I send them

@alxv-su
Copy link

alxv-su commented Sep 11, 2023

BCR-1.50.r5.g2f5f0b6-debug.zip

It is successfully installed and even autorecord my call, but the audio file contains silence.

@cao-
Copy link

cao- commented Sep 11, 2023

BCR-1.50.r5.g2f5f0b6-debug.zip

It is successfully installed and even autorecord my call, but the audio file contains silence.

Just for information, mine woks fine, it successfully records calls and the audio of the recordings is great

@chenxiaolong
Copy link
Owner

For me this last build worked! Thank you :)
If you need the logs, when I can I send them

Great, thanks for testing!

It is successfully installed and even autorecord my call, but the audio file contains silence.

If that still happens when you select the WAV/PCM output format (which just dumps the raw audio to a file), then unfortunately, that's beyond the control of BCR. You're probably out of luck outside of trying a different ROM (that might have a working audio driver and mixer configuration).

@cao-
Copy link

cao- commented Sep 11, 2023

I tried the new version 1.51, but strangely enough it happens that the installation script succeeds while the app does not appear in the list of apps, so it is not effectively installed. I tried again with flashing again the rom first so to have a clean system and flashing that version of BCR afterwards, but the app was still not present. Instead, the last debug version here works just fine, the app appears. Do you have any idea why it happens?

@chenxiaolong
Copy link
Owner

I tried the new version 1.51, but strangely enough it happens that the installation script succeeds while the app does not appear in the list of apps, so it is not effectively installed. I tried again with flashing again the rom first so to have a clean system and flashing that version of BCR afterwards, but the app was still not present. Instead, the last debug version here works just fine, the app appears. Do you have any idea why it happens?

Can you try this?

  1. Install 1.51
  2. After Android boots, run adb shell pm uninstall com.chiller3.bcr
  3. Reflash 1.51

This might be happening because the debug build is signed with a different key than the release build.

@cao-
Copy link

cao- commented Sep 12, 2023

I tried the new version 1.51, but strangely enough it happens that the installation script succeeds while the app does not appear in the list of apps, so it is not effectively installed. I tried again with flashing again the rom first so to have a clean system and flashing that version of BCR afterwards, but the app was still not present. Instead, the last debug version here works just fine, the app appears. Do you have any idea why it happens?

Can you try this?

  1. Install 1.51
  2. After Android boots, run adb shell pm uninstall com.chiller3.bcr
  3. Reflash 1.51

This might be happening because the debug build is signed with a different key than the release build.

That might be the problem. Anyhow, I tried it and the ADB command fails saying:
failure [DELETE_FAILED_INTERNAL_ERROR]
In case you have something else to suggest trying, that's welcome; Otherwise by now I can keep the debug version that is working great. Thank you anyway!

@chenxiaolong
Copy link
Owner

failure [DELETE_FAILED_INTERNAL_ERROR]

Huh, that is really interesting. I've never seen the command fail like that before. Do you happen to be using work profiles, app cloning, or any similar feature that might allow two instances of an app to be installed at the same time?

If you don't mind tinkering, I'd suggest trying these steps a try:

  • Using a root file manager, manually delete the /system/priv-app/com.chiller3.bcr folder.
  • Reboot.
  • Android should automatically notice BCR's apk is gone and delete the app data, but just to make sure: Using a root file manager again, navigate to /data/user. There will be a directory named 0 and possibly more numbered directories. Inside each of them, delete com.chiller3.bcr if it exists.
  • Reboot again.
  • Flash BCR.

@cao-
Copy link

cao- commented Sep 13, 2023

failure [DELETE_FAILED_INTERNAL_ERROR]

Huh, that is really interesting. I've never seen the command fail like that before. Do you happen to be using work profiles, app cloning, or any similar feature that might allow two instances of an app to be installed at the same time?

If you don't mind tinkering, I'd suggest trying these steps a try:

  • Using a root file manager, manually delete the /system/priv-app/com.chiller3.bcr folder.
  • Reboot.
  • Android should automatically notice BCR's apk is gone and delete the app data, but just to make sure: Using a root file manager again, navigate to /data/user. There will be a directory named 0 and possibly more numbered directories. Inside each of them, delete com.chiller3.bcr if it exists.
  • Reboot again.
  • Flash BCR.

I tried to delete the app with different root file managers but I didn't succeed with all of them, because they all say that the priv-app folder is read-only. I guess I'll stick with this debug version by now, until it happens I flash anew my rom. Thank you so much for your time and BCR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/limitation elsewhere Bug/limitation in the ROM or another project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants