mer-hybris / libgbinder

GLib-style interface to binder
BSD 3-Clause "New" or "Revised" License
51 stars 40 forks source link

Passing negative numbers to binder-call #101

Closed litew closed 1 year ago

litew commented 1 year ago

Hello,

I'm trying to emulate adb wm overscan 0,0,0,0,-20 call but specifically addressed to aliendalvik (14 => number for setOverscan transaction for android.view.IWindowManager interface): binder-call -v -o -a -d /dev/puddlejumper window 14 '{ 0 0 0 0 4294967276 }' Here I'm using int32 overflow for passing negative number -20, and it works for some applications but not for all of them (seems like they filter out my input and don't allow integer overlow).

Is it possible to pass negative integer values as parameters when performing calls?

UPD: overflow number fix

monich commented 1 year ago

Makes sense

litew commented 1 year ago

@monich it works great now for all apps, thank you very much for implementing this feature.