Comments (4)
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.
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.
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.
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)
- smali don't support dex which included link section HOT 6
- Error loading boot class path files HOT 4
- Problem deodex core.jar HOT 3
- After deodexing some functions are broken HOT 13
- handle for non-ASCII file/class names HOT 2
- wrapper script progdir retrival HOT 2
- Differences when decompile with Baksmali 1.2.6 and 1.2.8 HOT 5
- This is not an issue is a doubt HOT 1
- Decompiling error - ArrayIndexOutOfBounds HOT 6
- Problem with a some dex HOT 6
- Why the dex file changed? HOT 1
- Errors decompiling SystemUI.apk from a Sense 3.5 ROM. HOT 4
- Is there possible to disassemble a dex file on Android device? HOT 1
- Baksmali is broken for Ice Cream Sandwich HOT 14
- error in 2.3.5: regCount does not match the number of arguments of the method HOT 4
- happy rainbow ponies or how i learned to story worrying and deodex bluetooth.apk HOT 1
- Strange unavailable API references after dodexing Browser.odex HOT 6
- baksmali.jar - Invalid method index: 22 HOT 13
- Add an option to enable partial code analyzing which doesn HOT 2
- Add an option to enable partial code analyzing which doesn't require full class path HOT 1
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.