New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
sagitta5499
Old
#31  
Junior Member
Thanks Meter 2
Posts: 18
Join Date: Jun 2012
Quote:
Originally Posted by pankaj88 View Post
Do you have some basic knowledge of apk's compiling decompiling, using apk manager/tool, comparing two apks ??
I thik i have
i can do some icons change of framework-res and systemui by myself
comparing two apks is mean what?
the icons different or other??
 
pankaj88
Old
#32  
pankaj88's Avatar
Recognized Contributor - OP
Thanks Meter 719
Posts: 453
Join Date: Jan 2012
Location: Delhi
Quote:
Originally Posted by sagitta5499 View Post
I thik i have
i can do some icons change of framework-res and systemui by myself
comparing two apks is mean what?
the icons different or other??
you need to learn how to use these tools :
winmerge
remapid

My Guides -

Developer Of -
FIRST EVER ROM WITH AROMA INSTALLER FOR
Samsung Galaxy R GT i9103
The Following User Says Thank You to pankaj88 For This Useful Post: [ Click to Expand ]
 
sagitta5499
Old
#33  
Junior Member
Thanks Meter 2
Posts: 18
Join Date: Jun 2012
Quote:
Originally Posted by pankaj88 View Post
you need to learn how to use these tools :
winmerge
remapid
OK!!
i know what you mean
i use notepad++ to comparing two diff apk's
about remapid i will learn how to use
and hope you teach me how to change lockscreen
 
pankaj88
Old
#34  
pankaj88's Avatar
Recognized Contributor - OP
Thanks Meter 719
Posts: 453
Join Date: Jan 2012
Location: Delhi
Quote:
Originally Posted by sagitta5499 View Post
OK!!
i know what you mean
i use notepad++ to comparing two diff apk's
about remapid i will learn how to use
and hope you teach me how to change lockscreen
(1) we need to edit two files in our ROM:
/system/framework/framework-res.apk
/system/framework/android.policy.jar

(2) grab these two files from the ROM from which you want to port lockscreen.

In my case, I ported GLX-R lockscreen(ZCLA1) to my NEO ROM(ZSLE5)

(3) decompile framework-res.apk of both the ROMs
compare /res/drawable, /res/layout, /res/values, /res/drawable-hdpi
using notepad++ & winmerge tool

(4) add missing fields from the other ROM's framework to your framework

(5) compile your own framework-res.apk

(6) now decompile android.policy.jar of both the ROMs. Add missing .smali files from other ROM to your own ROM

(7) now comes the hardest part
use tool remapid to map resource ids from other ROM's framework to your own ROM's

(8)compile android.policy.jar & make a cwm flashable zip for both framework-res.apk & android.policy.jar

My Guides -

Developer Of -
FIRST EVER ROM WITH AROMA INSTALLER FOR
Samsung Galaxy R GT i9103
The Following 2 Users Say Thank You to pankaj88 For This Useful Post: [ Click to Expand ]
 
sagitta5499
Old
#35  
Junior Member
Thanks Meter 2
Posts: 18
Join Date: Jun 2012
Quote:
Originally Posted by pankaj88 View Post
(1) we need to edit two files in our ROM:
/system/framework/framework-res.apk
/system/framework/android.policy.jar

(2) grab these two files from the ROM from which you want to port lockscreen.

In my case, I ported GLX-R lockscreen(ZCLA1) to my NEO ROM(ZSLE5)

(3) decompile framework-res.apk of both the ROMs
compare /res/drawable, /res/layout, /res/values, /res/drawable-hdpi
using notepad++ & winmerge tool

(4) add missing fields from the other ROM's framework to your framework

(5) compile your own framework-res.apk

(6) now decompile android.policy.jar of both the ROMs. Add missing .smali files from other ROM to your own ROM

(7) now comes the hardest part
use tool remapid to map resource ids from other ROM's framework to your own ROM's

(8)compile android.policy.jar & make a cwm flashable zip for both framework-res.apk & android.policy.jar
i'm use stock rom
so...my andriod.policy.jar not have classes.dex
i try to de-odex to creat classes.dex but always error
show about "Could not find superclass Ljunit/framework/TestCase"
so i can't creat classes.dex to decompile
the stock rom how to change the lockscreen?

i'm use your android.policy.jar and framework-res.apk's /res/drawable, /res/layout, /res/values, /res/drawable-hdpi to replace my framework-res.apk's /res/drawable, /res/layout, /res/values, /res/drawable-hdpi
than compile succes and flash it,but my lockscreen is no change
i think perhaps cause the android.policy.odex
so i rename .bak and reboot
but can't starup
could only be flashed flashale zip before my maked
Now...i don't know what to do.....
 
pankaj88
Old
#36  
pankaj88's Avatar
Recognized Contributor - OP
Thanks Meter 719
Posts: 453
Join Date: Jan 2012
Location: Delhi
Quote:
Originally Posted by sagitta5499 View Post
i'm use stock rom
so...my andriod.policy.jar not have classes.dex
i try to de-odex to creat classes.dex but always error
show about "Could not find superclass Ljunit/framework/TestCase"
so i can't creat classes.dex to decompile
the stock rom how to change the lockscreen?

i'm use your android.policy.jar and framework-res.apk's /res/drawable, /res/layout, /res/values, /res/drawable-hdpi to replace my framework-res.apk's /res/drawable, /res/layout, /res/values, /res/drawable-hdpi
than compile succes and flash it,but my lockscreen is no change
i think perhaps cause the android.policy.odex
so i rename .bak and reboot
but can't starup
could only be flashed flashale zip before my maked
Now...i don't know what to do.....
first use dsixda's kitchen for deodexing the stock ROM

dont use NEO ROM's folders /res/drawable etc
compare and add missing fields to your ROMs framework-res
you need to do the same thing with android.policy.jar

dont use NEO ROM's files as it is (they are framework dependent)

My Guides -

Developer Of -
FIRST EVER ROM WITH AROMA INSTALLER FOR
Samsung Galaxy R GT i9103
The Following User Says Thank You to pankaj88 For This Useful Post: [ Click to Expand ]
 
sagitta5499
Old
#37  
Junior Member
Thanks Meter 2
Posts: 18
Join Date: Jun 2012
Quote:
Originally Posted by pankaj88 View Post
first use dsixda's kitchen for deodexing the stock ROM

dont use NEO ROM's folders /res/drawable etc
compare and add missing fields to your ROMs framework-res
you need to do the same thing with android.policy.jar

dont use NEO ROM's files as it is (they are framework dependent)
thx!!
i'm deodex complete!!
and added missed smail of android.policy

about remapid...can you give me example code?
i don't konw how to use this code "java -jar remapid.jar [source.xml] [target.xml] [directory] or [file.smali]"
and this step is not the last step?
about compile android.policy can be early do it?
how about framework-res compile error? in public.xml, the id behind every row will be manual enter it?
beause i copy the missed row to my public.xml, i discern some id repeat in public.xml
so that is must be manual enter change or by other methods?

sorry ....my question is very lots....
 
pankaj88
Old
#38  
pankaj88's Avatar
Recognized Contributor - OP
Thanks Meter 719
Posts: 453
Join Date: Jan 2012
Location: Delhi
Quote:
Originally Posted by sagitta5499 View Post
thx!!
i'm deodex complete!!
and added missed smail of android.policy

about remapid...can you give me example code?
i don't konw how to use this code "java -jar remapid.jar [source.xml] [target.xml] [directory] or [file.smali]"
and this step is not the last step?
about compile android.policy can be early do it?
how about framework-res compile error? in public.xml, the id behind every row will be manual enter it?
beause i copy the missed row to my public.xml, i discern some id repeat in public.xml
so that is must be manual enter change or by other methods?

sorry ....my question is very lots....
you need to add/edit fields in /res/values/strings, ids, drawable
then when you compile, the missing ids are automatically added in public.xml

public.xml should not be edited

otherwise manually copying rows will generate a lot of errors

now use of remapid.jar is:

source.xml = public.xml of source ROM's framework-res.apk
target.xml = public.xml of your ROM's framework-res.apk (after you have successfully modified thye fields/entries/rows)

fol = decompiled android.policy.jar folder of source ROM which contains a no of .smali files

My Guides -

Developer Of -
FIRST EVER ROM WITH AROMA INSTALLER FOR
Samsung Galaxy R GT i9103
The Following User Says Thank You to pankaj88 For This Useful Post: [ Click to Expand ]
 
sagitta5499
Old
(Last edited by sagitta5499; 29th June 2012 at 03:20 PM.)
#39  
Junior Member
Thanks Meter 2
Posts: 18
Join Date: Jun 2012
Default set duchesa

Quote:
Originally Posted by pankaj88 View Post
you need to add/edit fields in /res/values/strings, ids, drawable
then when you compile, the missing ids are automatically added in public.xml

public.xml should not be edited

otherwise manually copying rows will generate a lot of errors

now use of remapid.jar is:

source.xml = public.xml of source ROM's framework-res.apk
target.xml = public.xml of your ROM's framework-res.apk (after you have successfully modified thye fields/entries/rows)

fol = decompiled android.policy.jar folder of source ROM which contains a no of .smali files
so in the drawable-hdpi,add the missed picture is behind compile or before compile?
because add the missed picture like some circlelock needs picture in framework-res.apk when compile seem happen some error
show error about no define previously that i do compile occurred error
i will do compile again with you suggestion
and if had some trouble i will ask you for advice

sorry,i still don't know how to use the code
can you give me a example?
this code "java -jar remapid.jar ..............."
behind "remapid.jar" should enter what?
i copy the source public.xml to the same directory of remapid,and rename to source.xml
the target public.xml same do it
my enter code is "java -jar remapid.jar source.xml target.xml",but nothing happen
i think my enter code is wrong
 
JoJo2012
Old
#40  
Member
Thanks Meter 7
Posts: 36
Join Date: Jun 2012
I downloaded and flashed the attached lock.zip but then when i reboot the phone it takes ne to showing me my homescreen which has no background for some reason and den going back to the nvidia boot screen.... Any ideas how i might rectify that??

Sent from my GT-I9103 using xda app-developers app