Giter Site home page Giter Site logo

Smali error with FRF83 about smali HOT 4 CLOSED

forprevious avatar forprevious commented on August 27, 2024
Smali error with FRF83

from smali.

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 27, 2024
Did you modify the file at all?

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

Original comment by [email protected] on 25 Jun 2010 at 1:23

from smali.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 27, 2024
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. 



Original comment by [email protected] on 25 Jun 2010 at 9:57

Attachments:

from smali.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 27, 2024
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-clockdatenetwor
k-font-color/msg54854/#msg54854

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

const v6, 0xff00ffff

Original comment by [email protected] on 25 Jun 2010 at 11:39

  • Changed state: Invalid

from smali.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 27, 2024
Sweet!!!! Your code fix worked!!!!!! 

Posted credits for you for helping crack the color code! 

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

Original comment by [email protected] on 26 Jun 2010 at 5:04

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.