Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Powerhuman
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 6
Join Date: Jul 2010
Default Decompiling 2.2 files

Hello,

I am trying to edit settings.apk and some of the library files such as libskia.so for the new firmware in order to localize them. apktool isn't succeeding decoding the settings.apk file for 2.2 even though it was fine with 2.1 firmware. Does anyone know how I can decode the 2.2 files by using windows or cygwin? Thanks...
 
supirman
Old
#2  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Apr 2010
Do you have add Froyo's framework-res to the apktool?

Quote:
apktools if system/framework/framework-res.apk
 
syst em
Old
#3  
Junior Member
Thanks Meter 0
Posts: 6
Join Date: Jul 2010
Ask again here ==> forum.xda-developers.com/forumdisplay.php?f=565

or here ==> forum.xda-developers.com/forumdisplay.php?f=456


 
Powerhuman
Old
(Last edited by Powerhuman; 30th July 2010 at 03:12 AM.)
#4  
Junior Member - OP
Thanks Meter 0
Posts: 6
Join Date: Jul 2010
Quote:
Originally Posted by supirman View Post
Do you have add Froyo's framework-res to the apktool?
I did that but I still get errors such as:

Code:
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textColorHint, value=0x02050001
Can't find framework resources for package of id: 2. You must install proper fra
mework files, see project website for more info.

Here is another question, how can I find samsung galaxy s 2.2 resources? I believe that's what I am missing to get it working. I think it might be a file like this com.samsung.resources.apk or similar.

EDIT: I managed to decode settings.apk successfully by adding twframework-res.apk to apktool. Now I just need to figure out how to edit libskia.so for 2.2.
 
zygame
Old
#5  
Member
Thanks Meter 5
Posts: 58
Join Date: Dec 2009
Location: 郑州

 
DONATE TO ME
Quote:
Originally Posted by Powerhuman View Post
I did that but I still get errors such as:

Code:
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textColorHint, value=0x02050001
Can't find framework resources for package of id: 2. You must install proper fra
mework files, see project website for more info.

Here is another question, how can I find samsung galaxy s 2.2 resources? I believe that's what I am missing to get it working. I think it might be a file like this com.samsung.resources.apk or similar.

EDIT: I managed to decode settings.apk successfully by adding twframework-res.apk to apktool. Now I just need to figure out how to edit libskia.so for 2.2.
Have you edited it in firmware 2.1?
 
Brut.all
Old
#6  
Recognized Developer
Thanks Meter 231
Posts: 1,439
Join Date: Jul 2009
Quote:
Originally Posted by Powerhuman View Post
Now I just need to figure out how to edit libskia.so for 2.2.
Nearly impossible: it's native code, you know. Even worst: ARMs aren't so popular as PC, so there aren't too many ARM disassemblers/decompilers for them.

But I think it's just a image processing library, so... what to localize in it?
Me: Google+ profile
My works: apktool - a tool for reengineering apk files | Brut Google Maps
My devices: ADP1 (HTC Dream), Samsung Galaxy S2

If you like me, you could buy me a droidburger! :)
 
Powerhuman
Old
#7  
Junior Member - OP
Thanks Meter 0
Posts: 6
Join Date: Jul 2010
Quote:
Originally Posted by zygame View Post
Have you edited it in firmware 2.1?
it has been done using linux. however, I am trying to use cygwin to do it but I can't seem to have the dpkg command installed in cygwin.

Quote:
Originally Posted by Brut.all View Post
Nearly impossible: it's native code, you know. Even worst: ARMs aren't so popular as PC, so there aren't too many ARM disassemblers/decompilers for them.

But I think it's just a image processing library, so... what to localize in it?
I am trying to add another language to 2.2. We managed to add it to 2.1 but 2.2 seems to use different encryption method which we haven't managed to successfully decode.
 
Brut.all
Old
#8  
Recognized Developer
Thanks Meter 231
Posts: 1,439
Join Date: Jul 2009
Quote:
Originally Posted by Powerhuman View Post
I am trying to add another language to 2.2. We managed to add it to 2.1 but 2.2 seems to use different encryption method which we haven't managed to successfully decode.
Encryption? It's a library file, like .dll on Windows. It's not encrypted, it's just compiled, like any .dll, .exe, etc. on your PC.

Did you succeed in "decrypting" libskia.so from 2.1?
Me: Google+ profile
My works: apktool - a tool for reengineering apk files | Brut Google Maps
My devices: ADP1 (HTC Dream), Samsung Galaxy S2

If you like me, you could buy me a droidburger! :)
 
Powerhuman
Old
#9  
Junior Member - OP
Thanks Meter 0
Posts: 6
Join Date: Jul 2010
Quote:
Originally Posted by Brut.all View Post
Encryption? It's a library file, like .dll on Windows. It's not encrypted, it's just compiled, like any .dll, .exe, etc. on your PC.

Did you succeed in "decrypting" libskia.so from 2.1?
Encryption might not be the correct word. When you "compile" these files, sometimes there are headers associated with them, without them, it would be very difficult to "decompile" them in order to edit it.
 
Brut.all
Old
(Last edited by Brut.all; 30th July 2010 at 03:39 PM.)
#10  
Recognized Developer
Thanks Meter 231
Posts: 1,439
Join Date: Jul 2009
Quote:
Originally Posted by Powerhuman View Post
Encryption might not be the correct word. When you "compile" these files, sometimes there are headers associated with them, without them, it would be very difficult to "decompile" them in order to edit it.
Ok, but Skia is an open source project, it's a part of AOSP :) Of course Samsung may modified something in it, but I doubt it.

EDIT:
And still it's illogical to me, that there is something to localize in image processing library.
Me: Google+ profile
My works: apktool - a tool for reengineering apk files | Brut Google Maps
My devices: ADP1 (HTC Dream), Samsung Galaxy S2

If you like me, you could buy me a droidburger! :)

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Nandroid Manager Receives Major Update

Do you find yourself obsessively jumping from ROM to ROM? And do you hate having to restore a full … more

Careers in Android: Recruiter Reveals How Resumes are Chosen – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more

HttpClient Tutorial to Upload and Download with Your App

Developers wanting to interact with the Internet need to choose a package to do the … more

Profile Flow: A Tasker Alternative

By now, we’re all quite familiar with Tasker, the personal automation app that seems to be able to … more