GithubHelp home page GithubHelp logo

Smali error with FRF83 about smali HOT 4 CLOSED

jesusfreke avatar jesusfreke commented on July 19, 2024
Smali error with FRF83

from smali.

Comments (4)

JesusFreke avatar JesusFreke commented on July 19, 2024

Comment #1 originally posted by JesusFreke on 2010-06-25T13:23:25.000Z:

Did you modify the file at all?

Also, can you pastebin the snippet of smali code that it is complaining about?

from smali.

JesusFreke avatar JesusFreke commented on July 19, 2024

Comment #2 originally posted by JesusFreke on 2010-06-25T21:57:25.000Z:

Yes, file was modified here on statisbaricon.smalli to modify date text color to cyan:

.line 60
const/high16 v6, -0xff0001

I ran it without editing it and smali worked fine, but once edited to change color it errors.

Attached if both the classout folder zipped. Unzip so you can run smali yourself and see it if gives you the error also. And attached is the statisbaricon.smali file where the code was changed.

from smali.

JesusFreke avatar JesusFreke commented on July 19, 2024

Comment #3 originally posted by JesusFreke on 2010-06-25T23:39:43.000Z:

This is the expected behavior. That instruction takes the specified short value (16 bits) and then shifts it left by 16 bits and loads it into the specified register. But the literal value you are trying to use can't fit into 16 bits, and so it (correctly) errors out.

The literal value for that instruction is limited to 16 bits, because anything more than 16 bits would get shifted off when the left shift is performed. This instruction can obviously only be used when the literal value you want only contains zeros in the low-order 16 bits. But for the cyan color, the low order 16 bits are actually all 1s. So you can't use the const/high16 instruction.

Also: Why do you insist on using a negative value? Color codes are much easier to specify as a positive value. See my comments about this here: http://forum.sdx-developers.com/themes/(how-to)change-lockscreen-clockdatenetwork-font-color/msg54854/#msg54854

If you want a cyan color (i.e. # 00FFFF RGB), you should use

const v6, 0xff00ffff

from smali.

JesusFreke avatar JesusFreke commented on July 19, 2024

Comment #4 originally posted by JesusFreke on 2010-06-26T05:04:40.000Z:

Sweet!!!! Your code fix worked!!!!!!

Posted credits for you for helping crack the color code!

http://forum.xda-developers.com/showthread.php?t=700703

from smali.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.