If you’re an app developer and want to test Android 14’s improved predictive back gesture animation (w/ support for cross-task & in-app transition previews) as shown in the below video, here’s how.
You’ll need a device running Android 14 DP1, of course. You’ll also need root access, though, so if you don’t/can’t root your Pixel, then the Android Emulator will suffice as it allows for adb root.
All you have to do is run these commands in an elevated shell:
1) Enable new predictive back animations:
setprop persist.wm.debug.predictive_back_anim 1
2) Restart system_server:
stop && start
And voila! You should see the new animations. That’s provided you also have “predictive back animations” enabled in Developer Options, as otherwise, even the back-to-home animation is disabled. If your app targets API 33, you’ll also need to opt in.
In future Android 14 previews, you probably won’t have to enable this new predictive back animation using root, but I don’t know if that’ll happen in DP2, Beta 1, or later.