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

Deletion failure if file names contain emoji/glyphs #408

Closed
d4rken opened this Issue Jun 12, 2016 · 0 comments

Comments

1 participant
@d4rken
Owner

d4rken commented Jun 12, 2016

Sample device, but this is unlikely device related:

Fingerprint: samsung/jfltexx/jflte:5.0.1/LRX22C/I9505XXUHOB7:user/release-keys
Detected: pkg: com.android.settings, version: 6.0.1(23) - path: /system/priv-app/Settings/Settings.apk
SuBinary(type=CYANOGENMOD, version=null, extra=cm-su, raw=16 cm-su)
BusyBox Version:BusyBox v1.23.2-sdm4000

All current versions are likely affected (<=v4.2.5).

Files are read correctly, also stored correctly internally, but the character is lost when written back as shell command.

1465745751993 V/SDM:StreamHarvester: Output:600:regular file:45853:396167:10078:10078:3662:512:8:1465492554:/data/user/0/com.touchtype.swiftkey/cache/emoji_cache/🐊
1465745787474 D/SDM:SmartDeleter: Delete: {/data/user/0/com.touchtype.swiftkey/cache/emoji_cache/🐊}(recursive:false)
1465745787475 V/SDM:SmartDeleter: determineWriteAccess([/data/user/0/com.touchtype.swiftkey/cache/emoji_cache/🐊]):ROOT
1465745787475 D/SDM:HybridDeleteTask: Deleting: /data/user/0/com.touchtype.swiftkey/cache/emoji_cache/🐊
1465745787478 V/SDM:InteractiveShell: Running next command:eu.thedarken.sdm.tools.shell.a@946fe5
1465745787479 V/SDM:InteractiveShell: outStream|$BUSYBOX ls -lnRA \/data\/user\/0\/com\.touchtype\.swiftkey\/cache\/emoji\_cache\/\?\? | $BUSYBOX awk '{total += $5} END {printf "%16.0f SDMTotal\n", total}'
1465745787479 V/SDM:InteractiveShell: outStream|$BUSYBOX test -f \/data\/user\/0\/com\.touchtype\.swiftkey\/cache\/emoji\_cache\/\?\? && $BUSYBOX rm \/data\/user\/0\/com\.touchtype\.swiftkey\/cache\/emoji\_cache\/\?\? || $BUSYBOX rmdir \/data\/user\/0\/com\.touchtype\.swiftkey\/cache\/emoji\_cache\/\?\?
1465745787481 V/SDM:InteractiveShell: Waiting for callback
1465745787492 V/SDM:StreamHarvester: Error:ls: /data/user/0/com.touchtype.swiftkey/cache/emoji_cache/??: No such file or directory
1465745787492 V/SDM:StreamHarvester: Output:               0 SDMTotal
1465745787507 V/SDM:StreamHarvester: Error:rmdir: '/data/user/0/com.touchtype.swiftkey/cache/emoji_cache/??': No such file or directory
1465745787510 V/SDM:StreamHarvester: Output:5c6ebdfb-fbaf-48e4-b68f-afe89a900afb 1
1465745787511 V/SDM:InteractiveShell: Processing marker
1465745787511 V/SDM:StreamHarvester: Error:5c6ebdfb-fbaf-48e4-b68f-afe89a900afb
1465745787512 V/SDM:InteractiveShell: Marker processed.
1465745787513 V/SDM:InteractiveShell: Processing marker
1465745787513 V/SDM:InteractiveShell: Marker processed.
1465745787514 V/SDM:InteractiveShell: Task done, notifying.
1465745787518 V/SDM:InteractiveShell: Notified!
1465745787518 V/SDM:InteractiveShell: callbacks finished
1465745787520 V/SDM:HybridDeleteTask: Exitcode: 1
1465745787521 V/SDM:HybridIO: Callbacks is now 0
1465745787521 V/SDM:HybridIO: Notified runTask waiters
1465745787531 V/SDM:HybridIO: callbacks finished
1465745787531 D/SDM:SmartDeleter: Delete result: HybridDeleteResult(state=ERROR,affectedsize=0,affectedcount=0)

@d4rken d4rken closed this Jun 13, 2016

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