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

Clean up unrooted boot patching log errors #7047

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

osm0sis
Copy link
Collaborator

@osm0sis osm0sis commented Jun 5, 2023

Clean up unrooted boot patching cp errors in log

  • remove call since cp_readlink shouldn't be necessary with installDir getting cleaned up regularly

    cp: can't preserve ownership of 'busybox': Operation not permitted
    cp: can't preserve ownership of 'magisk32': Operation not permitted
    cp: can't preserve ownership of 'magisk64': Operation not permitted
    cp: can't preserve ownership of 'magiskboot': Operation not permitted
    cp: can't preserve ownership of 'magiskinit': Operation not permitted
    cp: can't preserve ownership of 'magiskpolicy': Operation not permitted

See: magisk_install_log_2023-06-04T20.03.33.log

@osm0sis osm0sis changed the title Fix/install errors Clean up patching/installation log errors Jun 5, 2023
cp: can't preserve ownership of 'busybox': Operation not permitted
cp: can't preserve ownership of 'magisk32': Operation not permitted
cp: can't preserve ownership of 'magisk64': Operation not permitted
cp: can't preserve ownership of 'magiskboot': Operation not permitted
cp: can't preserve ownership of 'magiskinit': Operation not permitted
cp: can't preserve ownership of 'magiskpolicy': Operation not permitted

remove call since cp_readlink shouldn't be necessary with installDir getting cleaned up regularly
srcBoot.delete()
"cp_readlink $installDir".sh()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert

Copy link
Collaborator Author

@osm0sis osm0sis Jun 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why though? It produces the errors in the commit message when run on an unrooted device, the actual .img patching happens before the call/errors and all works fine, and the app is continually deleting the internal installDir to start fresh anyway.

This comment was marked as off-topic.

scripts/boot_patch.sh Outdated Show resolved Hide resolved
scripts/util_functions.sh Outdated Show resolved Hide resolved
scripts/util_functions.sh Outdated Show resolved Hide resolved
@osm0sis osm0sis marked this pull request as draft June 7, 2023 19:29
@osm0sis osm0sis force-pushed the fix/install-errors branch 2 times, most recently from c5cd392 to 03b5d16 Compare June 15, 2023 18:22
@osm0sis osm0sis marked this pull request as ready for review June 15, 2023 22:35
@vvb2060

This comment was marked as outdated.

@aviraxp

This comment was marked as outdated.

@osm0sis

This comment was marked as outdated.

@osm0sis

This comment was marked as outdated.

@osm0sis osm0sis marked this pull request as draft June 16, 2023 23:55
@osm0sis osm0sis marked this pull request as ready for review June 29, 2023 23:25
yujincheng08

This comment was marked as resolved.

@osm0sis osm0sis marked this pull request as draft July 18, 2023 02:28
@osm0sis osm0sis changed the title Clean up patching/installation log errors Clean up boot patching log errors Jul 18, 2023
@osm0sis osm0sis changed the title Clean up boot patching log errors Clean up unrooted boot patching log errors Jul 18, 2023
@osm0sis osm0sis marked this pull request as ready for review August 29, 2023 01:41
@osm0sis
Copy link
Collaborator Author

osm0sis commented Aug 31, 2023

I see the new built-in avb 1.0 signing adds a new error/warning to the install logs on all AVB2 (VBMETA) signed imgs, rooted and unrooted:

[boot/sign.rs:241] unexpected ASN.1 DER tag: expected SEQUENCE, got APPLICATION [1] (primitive)

But I don't think I can figure out how to fix that one.

@topjohnwu topjohnwu force-pushed the master branch 3 times, most recently from e46cdcd to 8e7186e Compare January 29, 2024 09:36
@osm0sis osm0sis closed this Feb 13, 2024
@osm0sis osm0sis reopened this Feb 13, 2024
@topjohnwu topjohnwu force-pushed the master branch 4 times, most recently from ec54aed to f61827c Compare May 9, 2024 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app This issue is related to Magisk App
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants