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

App size not correctly determined #820

Closed
d4rken opened this Issue Mar 26, 2017 · 0 comments

Comments

1 participant
@d4rken
Owner

d4rken commented Mar 26, 2017

Probably happens on most unrooted 6.0+ devices running some verison of SD Maid v4 up until v4.6.4.

When SD Maid tries to determine the apk size (i.e. /data/app/some.app), we can encounter a permission error which would result in a non-ok exit code causing us to ignore the determined size from the files that are readable.

See ./oat in the following logs.

03-26 22:17:55.043 10040-10713/eu.thedarken.sdm D/SDM:SmartIO: size(files=[/data/app/com.google.earth-2])
03-26 22:17:55.044 10040-10713/eu.thedarken.sdm V/SDM:SmartIO: determineReadAccess([/data/app/com.google.earth-2]):NORMAL
03-26 22:17:55.045 10040-10713/eu.thedarken.sdm D/SDM:Shell:Interactive: runCommand(Command(commands=[$SDMBOX du -kLs '/data/app/com.google.earth-2']))
03-26 22:17:55.047 10040-10713/eu.thedarken.sdm V/SDM:Shell:Interactive: Input : $SDMBOX du -kLs '/data/app/com.google.earth-2'
03-26 22:17:55.048 10040-10713/eu.thedarken.sdm V/SDM:Shell:Interactive: Input : echo c7f031b6-ad03-4e29-9782-a016722b2722 $?
03-26 22:17:55.049 10040-10713/eu.thedarken.sdm V/SDM:Shell:Interactive: Input : echo c7f031b6-ad03-4e29-9782-a016722b2722 >&2
03-26 22:17:55.051 10040-10713/eu.thedarken.sdm V/SDM:Shell:Interactive: Waiting for callback
03-26 22:17:55.054 10040-30727/eu.thedarken.sdm V/SDM:Shell:Interactive: Error : du: No /data/app/com.google.earth-2/oat: Permission denied
03-26 22:17:55.055 10040-30728/eu.thedarken.sdm V/SDM:Shell:Interactive: Output: 33000	/data/app/com.google.earth-2
03-26 22:17:55.056 10040-30728/eu.thedarken.sdm V/SDM:Shell:Interactive: Output: c7f031b6-ad03-4e29-9782-a016722b2722 1

@d4rken d4rken modified the milestones: Next Tasks, v4.6.5 Mar 26, 2017

@d4rken d4rken closed this Apr 2, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment