Android smali question

前端 未结 3 2087
夕颜
夕颜 2021-02-10 06:46

I\'m currently doing some research on smali/\"code obfuscator\" and I\'m trying to get familar with the decompiled source codes at the moment. For this I created a simple app an

3条回答
  •  轮回少年
    2021-02-10 07:22

    I'm doing this from memory, but as far as I remember, floating point numbers are generally stored like this:

    100000000010100
    smmmmmmmmmmmmee
    

    s = sign, m = mantissa, e = exponent. So in your case, the sign must be 1 or positive, the mantissa is 5, and the exponent is zero:

    +5 x 2^0 = 5

    See the Wikipedia article on floating point for more information. Apparently your encoding uses 15 bits which is not a lot for a floating point number, especially with only 2 bits for the exponent, so it might be something else entirely. This is just my educated guess. You might try putting in other numbers and examining the decompiled code to learn more.

提交回复
热议问题