Comments (4)
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.
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.
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.
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)
- New official version published? HOT 4
- added support for 4rcc in MutableMethodImplementation
- Ive been Hacked please help me HOT 6
- Parsing smali methode HOT 1
- The Fields do not keep their initial values if they're default value
- odex error
- Error while writing instruction at code offset 0x8
- How to calculate the contribution of each class to the dex HOT 2
- Dex file size increases by ~50% without making changes (DexFileFactory.loadDexFile then DexFileFactory.writeDexFile) HOT 7
- missing EOF at '.class'
- any method to replace one String with modifiedString in StringIds section of dex file using dexlib2? HOT 3
- How to create a new method using dexlib2 HOT 2
- Try to run examples/BracketedMemberNames HOT 1
- how to copy class to new dex using dexlib2 HOT 4
- Smali patcher does not support Dex version 039 HOT 1
- java.lang.NoSuchMethodError when calling DexPool.internClass
- smali report error
- how to move the useless classes to a new dex using dexlib2? HOT 1
- [Feature Request] Could we support dex v41? HOT 3
- Won't build under Debian WSL
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smali.