GSI device signature - unfinished coding experiment

The app Treble Info app is recommended in Introducing /e/OS Generic System Images (GSI)

It provides the information you need in a nice way.

I like to have the same info as text, but my nice script never came good!

Here is the first draft to collect the required information. It is stripped of the necessary “if” lines.


#signature_01.sh
echo 'I expect an Android 10 device, but I will go ahead anyway'
echo 'If treble enabled -- false I will print other zero values'
echo device code --  &&
adb shell getprop ro.product.device &&
echo  Android --  &&
adb shell getprop ro.build.version.release &&
echo Arch -- &&
adb shell getprop ro.bionic.arch &&
echo treble enabled -- &&
adb shell getprop ro.treble.enabled &&
echo -n dynamic partition -- &&
adb shell getprop ro.boot.dynamic_partitions &&
echo -n hardware version -- &&
adb shell getprop ro.boot.hwversion 
echo In Android 10, Q I give true for Seamless updates OK, an empty line means no seamless updates  &&
adb shell getprop ro.boot.slot_suffix &&
echo In Android 10, Q when If give true, use an A image, an empty line means use an A/B image.  &&
adb shell getprop ro.build.system_root_imag
echo 'Thanks for asking for a Treble device signature, Bye :)'

To test it, copy, paste and chmod -x the text as: signature.sh
Connect the phone normally booted, with USB debugging allowed, then

./signature.sh

You can then copy and edit the output to something like this.

device code – merlinnfc; Android – 10; Arch – arm64
treble enabled – true; dynamic partition --true; hardware version --2522.29.0
No seamless updates; Use an A/B image

Just an idea, but with this sort of “device signature” users can share some important details of their device.

Credit and kudos to Penn Mackintosh. Treble Info available in Apps.

1 Like

Here is the output :

BlockquoteI expect an Android 10 device, but I will go ahead anyway
If treble enabled – false I will print other zero values
device code –
ginkgo
Android –
10
Arch –

treble enabled –
true
dynamic partition –
hardware version --1.29.0
In Android 10, Q I give true for Seamless updates OK, an empty line means no seamless updates

In Android 10, Q when If give true, use an A image, an empty line means use an A/B image.

Thanks for asking for a Treble device signature, Bye :slight_smile:

Blockquote