Closed sebastianst closed 5 years ago
I completely forgot about using echo
so thanks for the fix.
What device is this on? Could you change __end__
to some other random value (like I had) so there's virtually no chance of a collision?
OK did it. That's on a Pixel 2, rooted stock rom.
Looks good to me, thanks.
I'd like to see why my original approach didn't work on a Pixel 2, though, so more glitches like this don't happen. What exact version of Android are you running on it?
Thanks for merging. It's running Android 9.
With the old logic, it never printed the weird
sentinel
for me, so it just threw theValueError
instead of returning... I changed it instead toecho __end__
and detect that__end__
token. There will probably never be a file called__end__
in your phone's root directory...