I've tried posting this in the Q and A section with no luck.. Maybe someone here can help.
I'm trying to make a battery mod for stock lollipop. Of course the ROM is odexed which makes life a lot more difficult when trying to decompile system apps. I'm attempting to deodex my systemUI.odex. However, using the backsmali command "java -jar baksmali.jar -a 21 -x systemUI.odex -d framework -o classout" is giving me an error stating that systemUI.odex is not an apk, jar or odex file
I have everything setup correctly...my whole framework directory is on my :C drive....I was wondering if you could explain why I'm getting this error? It worked for me on KitKat with no issues..
Sent from my Nexus 5 using xda premium
I'm looking to do the same too. but with DeskClockGoogle and WebViewGoogle pulled from the N5 factory image, to finish my Lollipop Gapps pack.
Unfortunately, even with baksmali and smali that I've built from source with the latest changes, I get the same errors. I'm guessing we'll have to wait until they're (hopefully) updated.
I've attached my compiled builds of baksmali and smali with up-to-date changes from source (latest being November 6, 2014) if you or anyone wants to mess with them or whatever.
I made it on my nexus 5 stock rom.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
youland said:
I made it on my nexus 5 stock rom.
View attachment 3036525
Click to expand...
Click to collapse
how you deodexed stock SystemUI ? please give link on HOWTO
how edit smali (as he reached smali) ?
youland said:
I made it on my nexus 5 stock rom.
View attachment 3036525
Click to expand...
Click to collapse
I want this
youland said:
I made it on my nexus 5 stock rom.
View attachment 3036525
Click to expand...
Click to collapse
Youland, seriously....how'd you go about doing that?
Sent from my Nexus 5 using xda premium
Pain-N-Panic said:
Youland, seriously....how'd you go about doing that?
Sent from my Nexus 5 using xda premium
Click to expand...
Click to collapse
My state:
[email protected]:~/Downloads/smali-oat/baksmali/build/libs$ java -Xmx512m -jar baksmali-2.0.3-dev.jar -a 21 -x SystemUI.odex -d ./framework
Error occurred while loading boot class path files. Aborting.
org.jf.util.ExceptionWithContext: Cannot locate boot class path file /system/framework/conscrypt.jar
at org.jf.dexlib2.analysis.ClassPath.loadClassPathEntry(ClassPath.java:227)
at org.jf.dexlib2.analysis.ClassPath.fromClassPath(ClassPath.java:161)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:68)
at org.jf.baksmali.main.main(main.java:298)
Click to expand...
Click to collapse
Seem it know how to deodex but framework file conscrypt only 372 byte. It isn't contain classes.dex.
Link to file
https://mega.co.nz/#!NUoQxSLa!het4J3GXvtGVmI43m_Gl0jqBZ7X9BhHb7xErseEjnUc
hiepgia said:
...It isn't contain classes.dex...
Click to expand...
Click to collapse
Most files contain only META-INF file and folder and have no odex files..
That's art.
So simply decompile odex files, will no longer work.
We need new baksmali and smali tools or similar.
Your uploaded baksmali file works great with KK odex but not with LP odex.
cargobr151 said:
Most files contain only META-INF file and folder and have no odex files..
That's art.
So simply decompile odex files, will no longer work.
We need new baksmali and smali tools or similar.
Your uploaded baksmali file works great with KK odex but not with LP odex.
Click to expand...
Click to collapse
I solved framework miss classes.odex and deodex successful.
I will upload it when i return home. Now im in a trip
Sent from my iPhone using Tapatalk
hiepgia said:
I solved framework miss classes.odex and deodex successful.
I will upload it when i return home. Now im in a trip
Sent from my iPhone using Tapatalk
Click to expand...
Click to collapse
It is not a true .odex. It requires the oat2dex script to strip the oat header. Then you have the classes.dex file. The problem is getting the apk and the dex to happily coexist in the same APK. AOSP can deodex but we are still breaking the same apks just decompiled and recompiled (Stock factory or modded). SystemUI is only one I have been able to lock down as an auto break due to time constraint and ability to visualize the break.
.
Well I'm happy to see discussion being stirred up in this thread finally!!!! I gave up on trying to deodex the system apps.....until Jesus freak can update the smali/baksmali tools I'm in no position to get that working.
On the other hand, I've been working on "work around" to get the battery percentage in the status bar. We can all see the battery percentage in the drop down menu and in the lock screen (key guard.) I'm attempting to modify the keygaurd text view for the battery percentage and add it to the status bar in the "system_icons" XML file. Right now I'm able to compile the mod but its not showing up. If someone would like to help with it feel fee to reply here or shoot me a PM. The theory is to get a working battery percentage in the status bar without deodexing.
Sent from my Nexus 5 using xda premium
Pain-N-Panic said:
I've tried posting this in the Q and A section with no luck.. Maybe someone here can help.
I'm trying to make a battery mod for stock lollipop. Of course the ROM is odexed which makes life a lot more difficult when trying to decompile system apps. I'm attempting to deodex my systemUI.odex. However, using the backsmali command "java -jar baksmali.jar -a 21 -x systemUI.odex -d framework -o classout" is giving me an error stating that systemUI.odex is not an apk, jar or odex file
I have everything setup correctly...my whole framework directory is on my :C drive....I was wondering if you could explain why I'm getting this error? It worked for me on KitKat with no issues..
Sent from my Nexus 5 using xda premium
Click to expand...
Click to collapse
You need to have python installed, but if you have it you can run the oat2dex.py script on your odex file and then you'll be able to baksmali/smali it with the latest versions of those. I just don't know how to turn the dex file back into the original format to pop back into the rom.
Me neither, and I've never messed around with python
Sent from my Nexus 5 using xda premium
Related
I changed the application Contacts mainly for myself. Those brown wooden colors...
I would first have to thank you user agentdr8 for his deodex.
Without his help the apk would not work. Thanks.
How to:
EU-JK5
First, backup your existing Contacts.apk,
then just replace contacts.apk with root explorer (overwrite) and restart Tab. Done
YOU MUST DOWNLOAD contacts.apk as Mirror download (mediafire).
US
First, backup your existing Contacts.apk and Contacts.odex to somewhere else then remove them and replace with the attached Contacts.apk, reboot.
YOU MUST DOWNLOAD contacts.apk as attachment file
Screens:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Download Mirror: EU-JK5
http://www.mediafire.com/?gi4fznd1dgpzjeb
Looks alot better than the wooden effect
Thanks
good thanks
Awesome thanks for sharing, just what I was looking for!
Sent from my GT-P1000 using XDA App
Any chance this can be done with the wood-paneled calendar app as well?
agentdr8 said:
Any chance this can be done with the wood-paneled calendar app as well?
Click to expand...
Click to collapse
Of course, tomorrow.
Well I'm trying to replace it via Root Explorer but when I paste it and overwrite it dont let me overwrite, I try giving all permissions but the same thing.
What step Im could be missing?
Sent from my GT-P1000 using XDA App
That looks awesome.. tried it even though I didn't think it would work with mine lol force closes: ( lol oh well nice work!
Sent from my SPH-P100 using XDA App
Not working on Stock JME (protected loaders)
FC`s. . . .
Can someone confirm ot works?
and can someone make the calendar apk to?
Sent from my GT-P1000 using XDA App
tw1nz said:
Can someone confirm ot works?
and can someone make the calendar apk to?
Sent from my GT-P1000 using XDA App
Click to expand...
Click to collapse
not working with roto jme4
tw1nz said:
Can someone confirm ot works?
and can someone make the calendar apk to?
Sent from my GT-P1000 using XDA App
Click to expand...
Click to collapse
Must working on Euro Tabs. Im not sure for US.
Create backup of your stock contacts.apk, just in case...
Calendar is coming today.
If it FC did u clean dalvik?
JME (roto-4 also) is EU firmware
BuzzFuzz said:
Must working on Euro Tabs. Im not sure for US.
Create backup of your stock contacts.apk, just in case...
Calendar is coming today.
Click to expand...
Click to collapse
JME is EU firmware (device does not matter), so US does not matter either.
nope, I have not cleared the Dalvik Cache - I just reverted back and reboot
The reason for the FCs is because the version BuzzFuzz posted is from the JK5 rom, and does not appear to be deodexed, thus the incompatibility with the JME Contacts.odex file also located in /system/app. I'm trying to build a deodexed version that should work on JME and will post it shortly if I have success.
agentdr8 said:
The reason for the FCs is because the version BuzzFuzz posted is from the JK5 rom, and does not appear to be deodexed, thus the incompatibility with the JME Contacts.odex file also located in /system/app. I'm trying to build a deodexed version that should work on JME and will post it shortly if I have success.
Click to expand...
Click to collapse
Are u working with baksmali -x variant ? or by another procedure
apktool and xUltimate. The issue I'm running into is the signing of the apk. This may only work on a fully deodexed framework & system (like the new Fast & Tabious rom) since the deodexed (and modified) Contacts can't be signed with samsung's cert.
How did you get around that limitation? I noticed your modified contacts.apk is still signed with the samsung cert?
EDIT: Nevermind Buzz, i figured it out. Just placed your modified pngs into the deodexed Contacts and it didn't require resigning. Attached is the deodexed Contacts.apk that should work just fine on JME. Remember to backup /system/app/Contacts.apk and Contacts.odex to somewhere else and then remove them and replace with the attached Contacts.apk, reboot.
Code:
adb push Contacts.apk /sdcard/
adb shell
su
remount rw /system
cd /system/app
cp Contacts.apk /sdcard/Contacts.apk.orig
cp Contacts.odex /sdcard/Contacts.odex.orig
rm Contacts.apk Contacts.odex
cp /sdcard/Contacts.apk .
chmod 644 Contacts.apk
sync
remount ro /system
reboot
EDIT3: Fixed wood header in Edit/New contact page.
Again, I learned something new. Thanks agentdr8.
Worked like a charm. Thanks
Sent from my GT-P1000 using Tapatalk
Glad it worked out. Since it's deodexed, it should work on most JM* roms, but I can't guarantee that.
Next up is the Calendar. Since my graphic editing skills are pretty abysmal, would you be interested in doing the editing work Buzz and I'll pack them into a deodexed apk?
Hey gang. I know a lot of people know of JsChiSurf. You should. That man is one of the main reasons I do what I do today. Buy him some beers or fund his retirement
Anyways. He came up with a mod that can change the Sprint Banner in the Sense Lockscreen. The hack is pretty straightforward yet awesome. I based this mod off of his. Check it out here
His goal was to use a hex editor to modify the text, but I am taking a different approach. We have so many tools available now. Apktool, apk manager, and of course, Android Utility. This is for Sense 1.0 ota 4.54 Evo 4g.
This mod is easy to do.
Tools: Android-Utility, or apktool, Java
Download the attached files below: HtcLockScreen.apk and Testsign.jar
1. Have com.htc.resources.apk and framework-res.apk from your rom ready
2. Decode the apk like this if using apktool, run in command prompt or terminal:
Code:
apktool if framework-res.apk
apktool if com.htc.resources.apk
apktool d HtcLockScreen.apk out
3. Now, you should have a folder called "out"
4. Open the folder and look for res/layout/lock_screen_bar.xml
5. Open the xml in Notepad ++ or Gedit
6. Search for where it says "EVO Classic"
7. Change it to your desired text
8. Save and exit
9. Now, we compile the apk
Code:
apktool b out HtcLockScreen-new.apk
10. Now, we resign the apk.
Code:
Method A:
Open the original apk with 7-zip.
Take out the entire "META-INF" folder.
Open new apk with 7-zip.
Put in META-INF folder.
Method B: (only works on Evo Classic and other roms with signature verification off)
type in this command:
java -jar testsign.jar HtcLockScreen-new.apk HtcLockScreen-signed.apk
11. Download the sample Update.zip Found here, attached at bottom
12. Put the apk (renamed to HtcLockScreen.apk) inside the zip under system/app/
13. Flash and enjoy!
Sorry if this isn't noob-friendly enough. I tried to come up with a different way but this is all I got. The details are all there.
Please try it first.
But if you really can't get it, feel free to request a specific word or banner. I can upload them for you.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Once again, thanks to JsChiSurf for original mod. I took and modified for the latest 4.54
Sincerely,
Tommy Nguyen
Requests
Only changes the Banner Text. Lockbar will not be included.
All to be applied with ZipThemer
-EViL-KoNCEPTz- Banner
Sprint Banner
I'm guessing we can still use sprint apps, because this only changes the banner. Would I be correct?
bcarter2000 said:
I'm guessing we can still use sprint apps, because this only changes the banner. Would I be correct?
Click to expand...
Click to collapse
You sir are correct
Sent from my PC36100 using Tapatalk
The command:
apktool HtcLockScreen.apk out
Doesn't seem to work. I am using the most recent version of apktool on a Windows machine.
Whoops.
apktool d HtcLockScreen.apk out
Typo corrected.
all you need is a lovely signature.
Tommy you are a beast! You write these guides like you wrote the code or something. Do you know of a guide somewhere that breaks down smali code? That's where I need to be lol
Swyped from my Red Hot Razr phone running Tapatalk
i got it all working except building the new .apk
it builds but instead of an .apk its a folder...
edit: i think i might have found it.
mpitcher225 said:
Tommy you are a beast! You write these guides like you wrote the code or something. Do you know of a guide somewhere that breaks down smali code? That's where I need to be lol
Swyped from my Red Hot Razr phone running Tapatalk
Click to expand...
Click to collapse
Being that smali is a hack language there arent any guides...but you can read on java. It will help.
life_420 said:
i got it all working except building the new .apk
it builds but instead of an .apk its a folder...
edit: i think i might have found it.
Click to expand...
Click to collapse
Hope you find it!
Sent from my PC36100 using Tapatalk
just flashed and lockscreen came up with my personal banner, it worked...
screenshot in a minute
nice thanks button is hit.
That was way to easy... LOL
life_420 said:
just flashed and lockscreen came up with my personal banner, it worked...
screenshot in a minute
nice thanks button is hit.
That was way to easy... LOL
Click to expand...
Click to collapse
I thought so too when I posted the guide
Glad you got it! Looking good robert
Sent from my PC36100 using Tapatalk
tommytomatoe said:
Being that smali is a hack language there arent any guides...but you can read on java. It will help.
Hope you find it!
Sent from my PC36100 using Tapatalk
Click to expand...
Click to collapse
Wow I didn't know that lol. Thanks man
Swyped from my Red Hot Razr phone running Tapatalk
I am currently theming the TouchWiz on ICS to look more like ICS. This is what I have so far:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The two things I'm currently having is that
1) I'm not sure how to safely theme the button that says "Clear" when you have notifications. The files look a bit weird and have shadows on them.
2) I want to make the status backgrounds black (Info, USB connected for example). I've looked around, but all the images mentioned don't exist in the SystemUI or framework-res apks.
You'll need to edit /system/framework/twframework-res.apk as well.
I'm more curious how you were able to get the framework files to recompile. I wasn't able to without APKTool spitting out tons of of errors. I've even updated to the most recent aapt.bat file and I still get nothing but errors.
wretchedlocket said:
You'll need to edit /system/framework/twframework-res.apk as well.
I'm more curious how you were able to get the framework files to recompile. I wasn't able to without APKTool spitting out tons of of errors. I've even updated to the most recent aapt.bat file and I still get nothing but errors.
Click to expand...
Click to collapse
I am using APK Manager... It's somewhere here on XDA.
I looked in twframework-res.apk but it didn't look like anything that was it was in there.
Jessical said:
I am using APK Manager... It's somewhere here on XDA.
I looked in twframework-res.apk but it didn't look like anything that was it was in there.
Click to expand...
Click to collapse
I've done a lil theming on GB with the skyrocket. twframework.apk has the images for the status bar. Its going to be a .9.png and remake it the way you want. Going to haves to use draw9patch its with sdk. I can help if needed. Pm me of you want.
Sent from my SAMSUNG-SGH-I727 using xda premium
APK Manager was throwing the same errors. All errors with the public.xml and strings.xml files. I just downloaded the deodexed ROM so I'm going to see if that makes a difference.
Sent from my cm_tenderloin using Tapatalk
By the way, I have themed SystemUI, framework-res.apk and twframework-res.apk for GB if you'd like the files. PM me and I can send them or setup a download for you guys.
Sent from my SAMSUNG-SGH-I727 using Tapatalk
Jessical said:
I am currently theming the TouchWiz on ICS to look more like ICS. This is what I have so far:
The two things I'm currently having is that
1) I'm not sure how to safely theme the button that says "Clear" when you have notifications. The files look a bit weird and have shadows on them.
2) I want to make the status backgrounds black (Info, USB connected for example). I've looked around, but all the images mentioned don't exist in the SystemUI or framework-res apks.
Click to expand...
Click to collapse
ICS has changed a lot of the theming layouts and changed the backgrounds from images to color codes. You can change the color codes by editing the XML in the drawable folders or you can redirect them back to using images. Look at the status bar expanded XML in the layout folder of the system UI and that will lead you to where you need to look
zelendel said:
ICS has changed a lot of the theming layouts and changed the backgrounds from images to color codes. You can change the color codes by editing the XML in the drawable folders or you can redirect them back to using images. Look at the status bar expanded XML in the layout folder of the system UI and that will lead you to where you need to look
Click to expand...
Click to collapse
Most of it is jumbled though...
Jessical said:
Most of it is jumbled though...
Click to expand...
Click to collapse
You need to decompile the apk to see the xmls. Just unzipping them will no longer work.
How are you guys getting the TW apks on ICS to decompile correctly? I have tried to decompile the Camera.apk and Contacts.apk from a deodexed rom and both apktools and APK Multi-Tool just throw me the error "Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00". It always works fine with the GB TW apps... Maybe I will give it a try on Ubuntu quick.
But any insight on this would be wonderful.
bigjp64 said:
How are you guys getting the TW apks on ICS to decompile correctly? I have tried to decompile the Camera.apk and Contacts.apk from a deodexed rom and both apktools and APK Multi-Tool just throw me the error "Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00". It always works fine with the GB TW apps... Maybe I will give it a try on Ubuntu quick.
But any insight on this would be wonderful.
Click to expand...
Click to collapse
Have you installed the proper frameworks with apktool? Also at the moment there is a special set up for working with ICS apks. A search for decompiling ICS will get you there
zelendel said:
Have you installed the proper frameworks with apktool? Also at the moment there is a special set up for working with ICS apks. A search for decompiling ICS will get you there
Click to expand...
Click to collapse
I did have the proper framework installed, I guess I was just using a version of apktool.jar that didnt work with ICS apks. Got it to work though. Thanks!
This is an Easy Tutorial, How to Decompile .apk and Recompile .apk FilesIf u like this Tutorial, Hit THANKS ButtonCREDITS
Memnoc - For Gud Ideas.
Xavierjohn22 - the amazing author of AutoApktool go Here, Hit thanks to Him Too.
Sandy7-For Motivation.
Requirements
Java (last version)
JDK (last version)
JDR (last version, usually included in JDK or Java)
Auto_Apktool 2.0.0 (DOWNLOAD THIS ONE NOT OTHERS)
HOW TO DO
NOTE: before start, select Apktool version with option 21, YOU MUST CHOOSE 1.4.1 version
1) Download and simply unpack Auto_ApkTool
2)Click on "autoapktoolmain.bat", prompt will open
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
3)put the apk you want to EDIT, in "_INPUT_APK"
4) Nw u Should Choose "option 6" for 'decompiling .apk
5) when option 6 is being selected, drag the apk from _INPUT_APK folder into the windows prompt and click enter
6) A Note window will appear, and will show IF the decompiling process has been done properly. Once you close that window, you will see the decompiled folder in _INPUT_APK folder
7) do your edits (xml, smali, or png, WHATEVER)
8) recompile with option 7 (NOTE: this time you MUST drag all the FOLDER, NOT the apk)
9) Once recompiling finished, u will Get a Dcompiled NOTE window that Shows your apk is sucessfully Compiled, Close that Window, Once open the decompiled folder, go to "dist" folder, and here you got your edited apk
10) NOW this is the Last step, since u cannot Sign System app, u will have to Copy the META-INF foldrer frm the Orginal apk to the edited apk, for more Info See the "Screen"
11) Rename the apk if Needed, and push it.
Reserved, for making how to decompile and recompile .jar files,soon
Reserved 2, if I get time I wil add a video tutorial too!
FAQ'sWhy can't we use Apktool???
Well, you can, but it's more difficult, that's it.
Why do you say "must use 1.4.1 apktool version"??
The reason why is that since 1.4.2 version, apktool generate java code while recompiling process is going on, and this lead to errors that 9/10 makes decompile process fail
Nice learning, but Does it only work for editing or changing the user interface (lke smile, png) of apk file?
x.r3y said:
Nice learning, but Does it only work for editing or changing the user interface (lke smile, png) of apk file?
Click to expand...
Click to collapse
That's the decompiling ment for !
StAnLiN
stanlin salu said:
That's the decompiling ment for !
StAnLiN
Click to expand...
Click to collapse
During recompile framework.apk an error. w: could not find sources how fix this error....plz help bro thanks.
Aeron sagar said:
During recompile framework.apk an error. w: could not find sources how fix this error....plz help bro thanks.
Click to expand...
Click to collapse
Just check whether u have got any apk in "dist' folder?????
Sent from my Xperia Live with Walkman using Tapatalk 2
stanlin salu said:
Just check whether u have got any apk in "dist' folder?????
Sent from my Xperia Live with Walkman using Tapatalk 2
Click to expand...
Click to collapse
yes bro apk in dist but it gives bootloop ...
Aeron sagar said:
yes bro apk in dist but it gives bootloop ...
Click to expand...
Click to collapse
Now u have to add META-INF folder from the original .apk !
Sent from my Xperia Live with Walkman using Tapatalk 2
stanlin salu said:
Now u have to add META-INF folder from the original .apk !
Sent from my Xperia Live with Walkman using Tapatalk 2
Click to expand...
Click to collapse
Bro I have added the meta inf folder that's not matter but recompiling W: could not find sources and the system cannot find the drive specificied . Two errors how to fix...
If I want to install android SDK?
Aeron sagar said:
Bro I have added the meta inf folder that's not matter but recompiling W: could not find sources and the system cannot find the drive specificied . Two errors how to fix...
If I want to install android SDK?
Click to expand...
Click to collapse
Haha, don't worry that's not an error, the path of dist was manually set so u get that message, actual 'errors' u will get under these note (if u have committed any error in editing), if get only these messages then ur apk is successfully recompiled :thumbup:
Sent from my Xperia Live with Walkman using Tapatalk 2
Teach me
guys i dont even get a stightest idea to decompile and recompile......... is there any application which can look into .apk files and also allow it to edit???????
Can decompile but can't recompile.
[*] C:\AutoAPKTool2.0.4\_INPUT_APK\BlueTheme
recompiling C:\AutoAPKTool2.0.4\_INPUT_APK\BlueTheme...
I: Smaling...
I: Building resources...
I: Building apk file...
The system cannot find the drive specified.
Have the dist file but the file less 1 MB than the original file.
Ben Ling said:
Can decompile but can't recompile.
[*] C:\AutoAPKTool2.0.4\_INPUT_APK\BlueTheme
recompiling C:\AutoAPKTool2.0.4\_INPUT_APK\BlueTheme...
I: Smaling...
I: Building resources...
I: Building apk file...
The system cannot find the drive specified.
Have the dist file but the file less 1 MB than the original file.
Click to expand...
Click to collapse
i dont see any error in it...its done recompiling ...
ya the size will be reduced based on ur apk tool compression level
while recompiling it shows error,.... "destination could not be found "
Thank you very much for the tutorial.. very helpful... :laugh:
I don't think so it works for JB
Can't decompile SystemUI of JB.
[*] "E:\Android stuff\AutoAPKTool2.0.4\_INPUT_APK\SystemUI.apk"
decompiling "E:\Android stuff\AutoAPKTool2.0.4\_INPUT_APK\SystemUI.apk"...
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
Click to expand...
Click to collapse
androidnerd2 said:
I don't think so it works for JB
Can't decompile SystemUI of JB.
Click to expand...
Click to collapse
try this both update ur aapt or install the proper framework's first
thank her tutorial ata friend
Sent from my Xperia Tipo using XDA Premium 4 mobile app
Guide to changing path thickness of Pattern Lockscreen to ICS style
I wandered places searching this off. I found some traces in direction of my destiny but none of them worked fully correctly
So, as stated, I searched a lot for this mod and came face to face with failures and smali errors. So, I had to figure it out myself some modification to do in it to make it work.
Note: IT is not COMPLETELY my mod but I have done modifications in it to make it work. This is based on a guide for Froyo outside of XDA.
Pre-Requisites:
1. PC with Java JDK or JRE
2. Deodexed ROM
3. 7-Zip
4. classes.dex decompiling tool
5. Notepad++
6. Patience
7. Carefulness for editing smali files
Let's Start
1. First we would have to decompile classes.dex inside framework.jar
For that, you can use my Tool ROM Tool v3
First using 7zip, Right click on your framework.jar and open it as archive and drag and drop classes.dex in input folder of the tool
(Note: If you don't have classes.dex in framework.jar [only META-INF and preloaded-classes.dex], then your framework isn't deodexed)
Now, open Script.bat and choose 1 (Decompile classes.dex)
2. Now, we will make the changes. Go to decompiled folder and go to \classout\com\android\internal\widget and open LockPatternView.smali in Notepad++
Search for mDiameterFactor:F [Ctrl+F]
See the code above it.
It should be like this:-
Code:
const[COLOR="Red"]/high16[/COLOR] v2, 0x3f00
If it is, then you will have to remove red part /high16
Because it will not allow the change of code we will be doing which will have a different hexadecimal value which will not be supported till this code is in effect
Now, it will look like this:-
Code:
const v2, 0x[COLOR="Red"]3f00[/COLOR]
Now, we will change the thickness value 3f00 to 3dcccccd
Final code will look like this
Code:
const v2, 0x3dcccccd
Save it
I am attaching final and before smali for comparison below.
View attachment 1936707
(Note: If you don't have /high16, it's good , then just change the value and save)
3. Go to Script.bat again and choose 2 (Recompile classes.dex) and after it's done, you will get classes.dex
Drop it in framework.jar
4. Push framewotk.jar in /system/framework
Eg:
Copy it in platform-tools folder of android SDK and type following with pressing Enter after each command
Code:
adb remount
adb push framework.jar /system/framework/
adb shell chmod 644 /system/framework/framework.jar
adb shell killall system_server
Last command will Hot Reboot your phone to apply changes. It is fast and better than rebooting phone.
5. Enjoy
Screenshots
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Before
After
Credits
A member from other forum to answer a question to other member of that forum
Google for letting me search somethings
Samsung Galaxy Ace s5830i members for supporting me so much
reserved!!!! :good::good:
zenxus31 said:
reserved!!!! :good::good:
Click to expand...
Click to collapse
For?
Don't post things like this in guide threads atleast. Reporting
A Hero Can Be Anyone.
Bruce Wayne said:
For?
Don't post things like this in guide threads atleast. Reporting
A Hero Can Be Anyone.
Click to expand...
Click to collapse
for question
zenxus31 said:
for question
Click to expand...
Click to collapse
Better go through this post. You need to I say. http://forum.xda-developers.com/showthread.php?p=40990860
A Hero Can Be Anyone.
U arE aWeSOME !!
I hav searched so many threads and forums for this ..!!
Thanks man!!
Sent from my GT-S5360 using xda app-developers app
question:
in the shell command,afaik chmod 777 is rw-r--r--
what is 644 stand for?
because adb and shell command new to me (i never use that,and still know little about that),so i want to apply the framework.jar manually via rootex
Sent by a Schoolar Boy Question? Better go to [Help Thread] by Deadly
Droid_beginner_student said:
question:
in the shell command,afaik chmod 777 is rw-r--r--
what is 644 stand for?
because adb and shell command new to me (i never use that,and still know little about that),so i want to apply the framework.jar manually via rootex
Sent by a Schoolar Boy Question? Better go to [Help Thread] by Deadly
Click to expand...
Click to collapse
alternate version.
4 - read (r)
2 - write (w)
1 - execute (x)
so 777 implies rwx rwx rwx
and 644 rw r r
Working good!
AaaaaaweSoooooomE
Sent from my GT-S5360 using xda app-developers app
Thank you all
Looking forward to learn more
Updated OP with some correction and link to RTv3
Can you pls make a flashable zip
Can't use my PC
Really want this badly
sent from my muffin phone
darkshadow246 said:
Can you pls make a flashable zip
Can't use my PC
Really want this badly
sent from my muffin phone
Click to expand...
Click to collapse
This isn't a universal mod as different ROMs have different framework.jar.
So, it can't be made into Flashable Zip
Sorry
Violaa..
That was my first modification by my self..!!
Thanks OP
sir areeb could help me how to add the pattern lock. in op edit only the thickness. my problems is in sgs3 rom dont have this pattern
ProGTXjay said:
sir areeb could help me how to add the pattern lock. in op edit only the thickness. my problems is in sgs3 rom dont have this pattern
Click to expand...
Click to collapse
It isn't possible(why would someone do that) for a ROM to remove Pattern lock!
It would be there is Settings/Security/Lockscreen
Hey I have changed the path thickness...
But how to change the thickness of those dots? Are they pngs or we have to edit some xmls for that too?
TheStrix said:
Hey I have changed the path thickness...
But how to change the thickness of those dots? Are they pngs or we have to edit some xmls for that too?
Click to expand...
Click to collapse
PNG
But if you edit them heavily and they appear out of place , then xml will come into play
iamareebjamal said:
PNG
But if you edit them heavily and they appear out of place , then xml will come into play
Click to expand...
Click to collapse
Where are those pngs located?? Or which xml to edit?