Hi,
I kno I've posted this in Q&A but maybe there is one super developer who can help the community getting there 4 lockscreens?!
Currently there only exist two types of lockscreen for the sgs i9000. AOSP or samsung glass.
For the Vibrant on the other hand, some people (untermensch ) have managed to get 4 lockscreen types:
AOSP lockscreen
Glass lockscreen
Puzzle lockscreen
Epic lockscreen
More info in this topic: http://forum.xda-developers.com/showthread.php?t=838260
It must definitly be possible to port this to a froyo rom on our SGS but it has taken me a lot of time allready and have not progressed one bit.
Frustrating indeed.
I managed to decompile the android.policy.jar using the command: java -jar baksmali.jar -x android.policy.jar -o android.policy
I added the epic classes from the source zip file in the earlier mentioned post.
I recompiled ((java -jar smali.jar android.policy -o classes.dex) it again and at least no errors at this stage.
Next I tried to decompile the framework-res.apk.
Got errors from apktool, saying that it can't decompile a nine patch image. The nine patch image does not contain a nine patch chunk (so not really a nine patch but png with .0.png extension?)
Tried a lot of things, options, google, this forum but failed to find a solution.
The same thing with the Settings.apk, same kind of error, no solution.
I must be doing something wrong here and have come to a point that I cant figure it out anymore.
I believe that a lot of people would be interested in this kind of thing and this is something achievable.
If somebody could take a shot at this modification please, it would be so awesome to have this for Darkys rom or Docrom v9.
ps.i do remember that some id's of resources need to change cause there are some duplicates somewhere but don't remember which one where.
The source codes that untenmensch provided contain all the information. Though haven't tried it, but it is comprehensive enough.
Try using apk manager to decompile the framework-res.apk, and you use baksmali and smali for the settings apk.
Use stock apk, instead of modded ones.
Sent from my GT-I9000 using Tapatalk
laboratik said:
Next I tried to decompile the framework-res.apk.
Got errors from apktool, saying that it can't decompile a nine patch image. The nine patch image does not contain a nine patch chunk (so not really a nine patch but png with .0.png extension?)
Click to expand...
Click to collapse
to decompile framework-res use this: http://forum.xda-developers.com/showthread.php?t=745189
I use it for my personal rom and works better.
apktool or apkmanager don't work better with samsung framework-res,because Samsung don't respect the standard image and there are a lot of errors that can you correct using draw9patch from SDK,but in this way must edit all pngs...and they are a lot.
texture said:
to decompile framework-res use this: http://forum.xda-developers.com/showthread.php?t=745189
I use it for my personal rom and works better.
apktool or apkmanager don't work better with samsung framework-res,because Samsung don't respect the standard image and there are a lot of errors that can you correct using draw9patch from SDK,but in this way must edit all pngs...and they are a lot.
Click to expand...
Click to collapse
doesnt really help as it still uses apktool. I tried to build the lockscreen mod for my ROM with it
just delete them.nothing will be happened
We all at least most of us edit and play with apk's and jar files...so i found the past days a great and i mean GREAT way to edit those files..the app you can used called Virtuous Ten Studio and is developed by Diamondback this app is a great editor for apk's...i just play with it right now to just for curiocity add the navigation bars like the thread by Rittik said...i just open the framework-res.apk to this application it decompiled it i edit what i have with the easy of a explorer...compiled it without any problems by itself and poof...ready to use...great app you who edit apk's should really look at it...the link to the app is here
[IDE] Virtuous Ten Studio - The next level of reverse engineering apps | 2.2.11.8210
Run on Windows only :crying:
Totally perfect i am uaing aince release. Plus if on windows 7 you can reopn kernels and edit some stuffs like boot logo and some scripts without installing the long procedure of Dxdia+cygwin..so its a win win software pretty nice for begginers who are having a problem decompiling and recompiling apk
Just a notice. Please dont try recompiling SystemUI with this..it doesnt recompile the smali correctly which makes the apk corrupt so for that please use apktool
-Rik[Rittik]
I dont know if there is sources for the apps of GT-S5360
I need is the sources for apps (SystemUI.apk)
If you have one please post it here
Thanks:victory:
I already looked at
http://opensource.samsung.com
I dont know if the sources of apps is also available there(I cant download at the server)
Decompile SystemUI.apk with apktool - it will give you all the smali files & xml files
http://forum.xda-developers.com/showthread.php?t=2206938
i don't understand what you mean,
systemui is literally reverse re-engineerable since it only affects a software point of view not hardware unlike framework,
Hello, I'm an owner of XPERIA Z1, using the latest Customized Lollipop firmware (.242), struggling very much to deodex his device. I've tried 2 different methods, which both lead to problems:
1.) Using a flashable zip provided by venkat kamesh, in this thread: link. After flashing, I don't face any prominent problems, like FCs on system apps e.t.c. But whenever I'm trying to launch any app requiring OpenGL ES 2 , I get an error message/toast notification, about that, saying that my device is incompatible. And Google Play refuses to even show these apps in the search results, listing them as incompatible.
2.) Modifying the flashable zip to use my own /app, /priv-app, /framework, and even /vendor/apps fully deodexed folders, leading to a bootloop, and refusing to show more than 2 seconds of the bootanimation before rebooting. I thought that some package may be incompatible with my firmware, but this theory can't be proved yet.
*I've tried fixing permisions using both terminaland adb using this method: link. No result either.
Is there any other solution? Thank you!
NFS_FM said:
Hello, I'm an owner of XPERIA Z1, using the latest Customized Lollipop firmware (.242), struggling very much to deodex his device. I've tried 2 different methods, which both lead to problems:
1.) Using a flashable zip provided by venkat kamesh, in this thread: link. After flashing, I don't face any prominent problems, like FCs on system apps e.t.c. But whenever I'm trying to launch any app requiring OpenGL ES 2 , I get an error message/toast notification, about that, saying that my device is incompatible. And Google Play refuses to even show these apps in the search results, listing them as incompatible.
2.) Modifying the flashable zip to use my own /app, /priv-app, /framework, and even /vendor/apps fully deodexed folders, leading to a bootloop, and refusing to show more than 2 seconds of the bootanimation before rebooting. I thought that some package may be incompatible with my firmware, but this theory can't be proved yet.
*I've tried fixing permisions using both terminaland adb using this method: link. No result either.
Is there any other solution? Thank you!
Click to expand...
Click to collapse
Are you deodexing every odexed file? I normally only deodex those files whose smali I'm going to mod. There's not much point deodexing anything else..
Ticklefish said:
Are you deodexing every odexed file? I normally only deodex those files whose smali I'm going to mod. There's not much point deodexing anything else..
Click to expand...
Click to collapse
Well yes, I just suppose that a fully odexed or deodexed system is more stable than a mix of those two.
Is there any red-line that I must not pass? Like a paricular .apk or .jar file, for example. Also on KitKat, we had to have fully deodexed system for some mods to work (like the 4K Mod by Chocolatetrain). This restriction doesn't exist on Lollipop, which utilises ARM?
NFS_FM said:
Well yes, I just suppose that a fully odexed or deodexed system is more stable than a mix of those two.
Is there any red-line that I must not pass? Like a paricular .apk or .jar file, for example. Also on KitKat, we had to have fully deodexed system for some mods to work (like the 4K Mod by Chocolatetrain). This restriction doesn't exist on Lollipop, which utilises ARM?
Click to expand...
Click to collapse
No. You can, in theory, deodex as many or as few APK and JAR files as you like.
The whole point of deodexing is to make it easy to change smali files. It doesn't affect stability or performance, it's solely for modding. I normally deodex SystemUI.apk, framework.jar and android.policy.jar then leave the rest of the odexed files alone.
(Well, technically a deodexed ROM takes longer to boot if the Dalvik cache has been wiped but that's about it.)
The only reason I ask is that, if you only need to deodex a few files, there are various tools available for deodexing individual files instead of whole ROM's. I could mention that Tickle My Android can do it but that'd be a bit cheeky.
Oh, looking at that 4K mod you mentioned, it doesn't actually need the whole ROM to be deodexed. But there are so many files that are being replaced that do need to be deodexed that it's probably just simpler to say the entire ROM needs to be.
Ticklefish said:
No. You can, in theory, deodex as many or as few APK and JAR files as you like.
The only reason I ask is that, if you only need to deodex a few files, there are various tools available for deodexing individual files instead of whole ROM's. I could mention that Tickle My Android can do it but that'd be a bit cheeky.
Click to expand...
Click to collapse
OK, thank you for the answer, I will try then deodexing just the essentials: SystemUI.apk, framework.jar, framework-res.apk and SemcGenericUxpRes.apk
Final question, as I see in your program's thread, Lollipop editing/deodexing is not supported yet, so do you recommend an automate tool for the deodexing process (like JoelDroidLollipopBatchDeodexe or any other), or the manual method?
NFS_FM said:
OK, thank you for the answer, I will try then deodexing just the essentials: SystemUI.apk, framework.jar, framework-res.apk and SemcGenericUxpRes.apk
Final question, as I see in your program's thread, Lollipop editing/deodexing is not supported yet, so do you recommend an automate tool for the deodexing process (like JoelDroidLollipopBatchDeodexe or any other), or the manual method?
Click to expand...
Click to collapse
TMA does support deodexing of Lollipop APK files...I just can't guarantee that it'll be able to deodex everything. Guess I need to reword the OP....lol
NFS_FM said:
OK, thank you for the answer, I will try then deodexing just the essentials: SystemUI.apk, framework.jar, framework-res.apk and SemcGenericUxpRes.apk
Final question, as I see in your program's thread, Lollipop editing/deodexing is not supported yet, so do you recommend an automate tool for the deodexing process (like JoelDroidLollipopBatchDeodexe or any other), or the manual method?
Click to expand...
Click to collapse
you also can use advance apktool (nice tool) , but you will have to update the apktool to the last one i think its the 2.0.0because is not updated.. cheers
juanpirulo said:
you also can use advance apktool (nice tool) , but you will have to update the apktool to the last one i think its the 2.0.0because is not updated.. cheers
Click to expand...
Click to collapse
Hm... I will try that too if my (already) deodexed apks won't work, thank you.
Please ask in the Q&A section for your device.
Cross device section is for development only
Thread closed
So, i'm new to this entire thing, i'm hoiping im in the correct section. Redirect me if im not. I appreciate any help I can get.
I must be half retarded or full retarded cause I cannot figure out what i'm doing wrong.
I'm trying apk studio, apk tool, like everything. All I want to do is change a package name of my apk, but I cannot decompile it.
I'm not fully understanding the framework-res.apk I guess. I found one online and tried using it but I keep getting errors while trying to install the framework, and I can't find any framework files via google. Where am I supposed to get the Framework???
THis is the error i'm getting trying to install the framework. Am I using wrong framework? All I want to do is decompile dang apk rename package and recompile, this is killing me. Here is the error i'm getting.
Code:
C:\android\apktool>apktool if framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: Could not decode ars
c file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:52)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:39)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:685)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:667)
at brut.androlib.Androlib.installFramework(Androlib.java:642)
at brut.apktool.Main.cmdInstallFramework(Main.java:240)
at brut.apktool.Main.main(Main.java:87)
Caused by: java.io.IOException: Expected: 0x00000008, got: 0x00000000
at brut.util.ExtDataInput.skipCheckShort(ExtDataInput.java:56)
at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:238)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:201)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:189
)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:157)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:11
4)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)
... 6 more
There are a lot more talented people than me but I'll try my best to help you.
1. Make sure your have updated your apktool.jar to the latest version if using apk studio
2. You need to install the correct framework res for the app your trying to decompile. If it is a Google app then you are best using the latest cm framework res.apk so grab it from any cm rom that is the latest release
3. If it is a vendor app like Samsung then you will need the tw framework res.apk and the framework res.apk from the rom the app is from.
If you can tell me the app you want to decompile and the rom it's from I should be able to tell you which frameworks to install
Sent from my SM-N910F using Tapatalk
Well its a custom made app from my buddy, he went away on vacation and my whole goal is to just change the package name so I can run 2 instances. He told me to go ahead, than left on holiday,
He is on stock lollipop, not custom rom.
Syntax323 said:
Well its a custom made app from my buddy, he went away on vacation and my whole goal is to just change the package name so I can run 2 instances. He told me to go ahead, than left on holiday,
He is on stock lollipop, not custom rom.
Click to expand...
Click to collapse
OK then you probably just need the frameworkres.apk from cm 12 to be honest
Sent from my SM-N910F using Tapatalk
Do you have a link to it? Id really appreciate it. I can't find that, maybe i'm looking in wrong place?