[Tutorial] How to use Lg Weather Widget on CM7 or Miui beta - LG Optimus Black

Tutorial to add Lg classes to the framework.jar in order to make work the original weather widget of LG in every rom.
I have made this process successfully in the CyanogenMod 7.2RC1 and in the MIUI 2.1a.
I discovered this process thanks to doc3000, which created to me the framework.jar of CM7 with Lg classes. After a while researching, I discovered the process.
First of all, make a backup of your rom just in case something goes wrong, be able to recover the terminal restoring it from the recovery, given the fact that a wrong framework.jar will produce a bootlop.
The files you need are:
1) baksmali.jar y smali.jar ,which you can get it from here: http://code.google.com/p/smali/. I have used the .jar files
2) original LG framework.jar file, for example in whatever rom STOCK, available in “/system/framework/framework.jar”
3) framework.jar of the rom to which we want to add the LG classes, available in “/system/framework/framework.jar”
4) WeatherWidget.apk which you can get too from whatever STOCK rom, available in “/system/app/WeatherWidget.apk”
1) Open a console, then cd to the folder where you have the 4 files. Run:
Code:
java -jar baksmali.jar framework.jar -o outlg
This will make a folder named “outlg”, which it will have all the LG Classes of the framework.jar
2) Repeat the same with the framework.jar of the rom that we want to add the LG classes running the command
Code:
java -jar baksmali.jar framework.jar -o out
3) Go to the folder “outlg/com” and make a copy of the “lge” folder to the “out/com” folder.
4) Now run
Code:
java -jar smali.jar out -o classes.dex
5) Open the framework.jar of the rom that we want to add the LG Classes with Winzip / 7zip ... , and replace the file classes.dex from the inside by the one we just have created. (Don't use Winrar, it make an incorrect framework.jar with a bootloop as a result. I don't know if Winzip work, but I confirm 7zip yes)
6) Insert the modified framework.jar to the “/system/framework” overwritting the original file, and checking that it has group and owner “root” and the correct permissions ( To know the correct permissions, look the permissions of any file in the folder “/system/framework/”...)
7) Copy the file “WeatherWidget.apk” in “/system/app/” and put he same permissions as any apk in that directory, check that the group and the owner are “root” too
8) Restart the device, and here we have the original LG weather widget in our favourite rom.
This process should work in every rom in every device, not only in the Optimus Black, but I could not check it because I only have an Optimus Black.
Sorry for my english >.<
Cheers!!!

Thank you i gonna try it out. but why it is in Q&A section? Maybe moderator could move this thread to themes&apps section? xD anyway thank you dude

I have less than 10 posts, I can't post on Development forum, but you are right, apps and themes are the correct forum, sorry >.<
Enviado desde mi LG-P970 usando Tapatalk

It ok maybe moderator can move it some day and more people find it?
Sent from my P970 using XDA

Hang on, i got an idea. i can create thread for you and put link on this thred hows that?

Runtime,
Great toturial on getting stock weather widget to work with cm7.
Any way you could put all this into a flashable zip?
I have abandon stock rom for months now and dont want to go back to extract files. Just too much efforts.
Thanks,
Sent from my LG-P970 using XDA

fongnd said:
Runtime,
Great toturial on getting stock weather widget to work with cm7.
Any way you could put all this into a flashable zip?
I have abandon stock rom for months now and dont want to go back to extract files. Just too much efforts.
Thanks,
Sent from my LG-P970 using XDA
Click to expand...
Click to collapse
If i could make you a flashable zip i would make it for you. But i dont know how to. So ill just make you a zip containing all of needed files c: (btw it seems like the original poster of this left this thread D: )
Sent from my LG-P970 using XDA

Hi all,
I can do a normal zip with all the files needed. This night I will do the zip.
A flashable zip is usseles when developers make a change involving "CyanogenMod/android_frameworks_base" because the framework.jar change. You need to do the process again to get a new framework.jar or you will get a bootlop.

Since u back so i ask qustion again...
Do you want me to open thread for you in themes and apps and give a link to your post... i take no credit for ur work.. so want me to?
P.S. im making zip now
Sent from my LG-P970 using XDA

foggydisaster said:
If i could make you a flashable zip i would make it for you. But i dont know how to. So ill just make you a zip containing all of needed files c: (btw it seems like the original poster of this left this thread D: )
Sent from my LG-P970 using XDA
Click to expand...
Click to collapse
thanks for offering me all necessary files.
I've just go through the tutorial again to rehearse all the command that I need to do.... I think I will screw up on this.... I have a busy life and I cant afford to have bootloop on phone. Just too time consuming.

Zip Is Here!
As i promised, ZIP with all STOCK files you need to go Good Luck with this
LINK:
->> http://dl.dropbox.com/u/78691851/StockFiles.zip <<-​ Have fun c:

foggydisaster said:
As i promised, ZIP with all STOCK files you need to go Good Luck with this
LINK:
->> http://dl.dropbox.com/u/78691851/StockFiles.zip <<-​ Have fun c:
Click to expand...
Click to collapse
Have you try this? meaning get the lg weather widget to work on cm7/muiu
The command that RUNTIME listed... do we execute these on the Android Terminal on the phone
thanks,

fongnd said:
Have you try this? meaning get the lg weather widget to work on cm7/muiu
The command that RUNTIME listed... do we execute these on the Android Terminal on the phone
thanks,
Click to expand...
Click to collapse
As i understood you do this in ADB on your PC....ive got an idea, i can do this for ya just send me your framework.jar (/system/framework/framework.jar) And i can try aply this for you

foggydisaster said:
As i understood you do this in ADB on your PC....ive got an idea, i can do this for ya just send me your framework.jar (/system/framework/framework.jar) And i can try aply this for you
Click to expand...
Click to collapse
link below is the framework.jar from my CM7
https://docs.google.com/open?id=0BwQDdoY7L1pGQ1J6MmQ1Y1pRSUU
thanks,

fongnd said:
link below is the framework.jar from my CM7
https://docs.google.com/open?id=0BwQDdoY7L1pGQ1J6MmQ1Y1pRSUU
thanks,
Click to expand...
Click to collapse
Ok dude its night now so ill do this for you tomorow c: but ull have this i promise nighty night
Sent from my GT-I9001 using XDA

Hi all,
@foggydisaster
I apreciate you offer, I you want to do for me, I thanks you.
The commands are for a windows/linux terminal/shell with java installed, no need to have ABD or android SDK installed. On windows do Start->Run->Cmd, on linux simply open a terminal emulator.

runtime_Err0r said:
Hi all,
@foggydisaster
I apreciate you offer, I you want to do for me, I thanks you.
The commands are for a windows/linux terminal/shell with java installed, no need to have ABD or android SDK installed. On windows do Start->Run->Cmd, on linux simply open a terminal emulator.
Click to expand...
Click to collapse
Ill go with ubuntu c:
Sent from my GT-I9001 using XDA

i have a problem... when i run comand to extract LGE framework.jar it shows folowing:
"
Code:
[email protected]:~/Desktop/workfolder$ java -jar baksmali.jar framework.jar -o outlg
UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.DexFile$NoClassesDexException: zip file framework.jar does not contain a classes.dex file
at org.jf.dexlib.DexFile.<init>(DexFile.java:298)
at org.jf.baksmali.main.main(main.java:265)
[email protected]:~/Desktop/workfolder$
Any ideas?

foggydisaster said:
i have a problem... when i run comand to extract LGE framework.jar it shows folowing:
"
Code:
[email protected]:~/Desktop/workfolder$ java -jar baksmali.jar framework.jar -o outlg
UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.DexFile$NoClassesDexException: zip file framework.jar does not contain a classes.dex file
at org.jf.dexlib.DexFile.<init>(DexFile.java:298)
at org.jf.baksmali.main.main(main.java:265)
[email protected]:~/Desktop/workfolder$
Any ideas?
Click to expand...
Click to collapse
I edit my first post with CODE tags, copy again the commands and it will work. It's a problem with the "-" simbol in plain text with browser. My fault.

Still the same itworks with CM7 framework filebut not with LGE..

Related

[UPDATED][INFO]Tips for cooking your own ROM - Now has howto for adding franco.Kernel

Hi there pals! It seems that the actual wish of n00bz is cooking their own rom. Well,i got some tips for you now.
*Kernel:
The Linux kernel is the center of the entire Android system. Today i'm gonna show how to put it in your rom:You'll need the kitchen. Multiupload.com - upload your files to multiple file hosting sites! Extract rom,then go to advanced options. Select option 20 and then option w. You'll find a new folder,BOOT-EXTRACTED. You'll find in this folder a file named zImage. Replace it with the fixed one that you can find in kernel folder of zip file,select option b and cook. THEN copy:
/zipfile/system/lib/modules/tun.ko to /WORKING/system/lib/modules
/zipfile/system/lib/modules/wireless.ko to /WORKING/system/lib/modules
*Frameworks
For customizing your UI and make it cool,you'll need the kitchen.Multiupload.com - upload your files to multiple file hosting sites!
Extract it and go to advanced options. Select option 11,wait and in WORKING open framework-res.apk w/ 7-zip and customize all you want. If you want to put another framework than the stock one,extract the original one and keep META-INF folder. Replace stock one with the custom one in framework folder,and open it with 7zip. Replace META-INF folder in apk with extracted one and cook.
*WiFix
How to apply WiFix?
Download this:http://www.multiupload.com/CVBPXA46DB. Extract downloaded file and extract rom with kitchen. In kitchen go to advanced options and select option 20,then option w. Open BOOT-EXTRACTED folder and in boot.img-ramdisk open init.thunderg.rc and put in this string:
Code:
on property:init.svc.wpa_supplicant=running
exec /system/bin/sh /system/etc/setwifi.sh
then select option b.Copy setwifi.sh in /WORKING/system/etc and iwmulticall in /WORKING/system/xbin .Now,in /META-INF/com/google/android/ open updater-script and add these strings:
Code:
symlink("iwmulticall", "/system/xbin/iwconfig");
symlink("iwmulticall", "/system/xbin/iwgetid");
symlink("iwmulticall", "/system/xbin/iwlist");
symlink("iwmulticall", "/system/xbin/iwpriv");
symlink("iwmulticall", "/system/xbin/iwspy");
set_perm(0, 0, 0755, "/system/xbin/iwmulticall");
set_perm(0, 0, 0755, "/system/etc/setwifi.sh");
in WORKING folder go in system folder. Open build.prop and search for this string:
Code:
wifi.supplicant_scan_interval=20(Replace 20 with 260)
*Enable hardware acceleration
in Working folder go in system folder and open build.prop. Search for this string:
Code:
debug.sf.hw=0(Replace 0 with 1)
Cook it.
*Heap size
In working folder go in system folder and open build.prop. Search for this string:
Code:
dalvik.vm.heapsize=24m(replace 24 with 32 or 40)
Cook.
*ZRam module
Download zram.zip from here and extract it. Copy:
/zram.zip/system/bin/zramconfig to /WORKING/system/bin
/zram.zip/system/etc/zram.sh to /WORKING/system/etc
/zram.zip/system/etc/init.d/00remount to /WORKING/system/etc/init.d
/zram.zip/system/etc/init.d/00zram to /WORKING/system/etc/init.d
*Stagefright player
Open /WORKING/system/build.prop with a text editor(Notepad++) and search for
Code:
media.stagefright.enable-player=false
and replace false with true to enable it,replace true with false to disable it.
More tips are on the way!
Good job. The more we share the more this community will grow. Keep up the good work.
I hope that this thread will be sticky
+1 for sticky. All developer's could share usefull tips in this thead and maybe this way more ppl will get the courage to try and cook their own roms I'm trying to get into the cooking bussiness myself so every little tip is more than usefull
Zecanillis,take a look.
Sent from my LG Optimus One P500 using Tapatalk
I'm going to cook my own rom soon using these instructions
Crap,this thread is going down...
Sent from my LG Optimus One P500 using Tapatalk
ciaox said:
Crap,this thread is going down...
Sent from my LG Optimus One P500 using Tapatalk
Click to expand...
Click to collapse
my vote for u
Is there a list of apps which are safe to remove?
Well,no. You'll need to be careful removing apps in app folder.
http://www.market4android.com/stock-android-2-1-apps-list
Thanks for the list also calould you tell me procedure of porting roms from other devices to our o1? Like how to port cyanogenmod?
Sent from my LG-P500 using XDA Premium App
Well first you need to adapt kernel.
How to do that? Can I use any O1 kernal or have to develop my own?
Sent from my Optimus One
Ask to mik
Ok I will! Thanks anyways! Your tut helped a lot.
Sent from my Optimus One
Just a small revision the the META-INF\com\google\android\update-script syntex. I kept getting errors in my update-script check, and found Ciaox had posted the version below in another forum (that was not english, but I recognized the code!).
Code:
symlink iwmulticall SYSTEM:xbin/iwconfig
symlink iwmulticall SYSTEM:xbin/iwgetid
symlink iwmulticall SYSTEM:xbin/iwlist
symlink iwmulticall SYSTEM:xbin/iwpriv
symlink iwmulticall SYSTEM:xbin/iwspy
set_perm 0 0 0755 SYSTEM:xbin/iwmulticall
set_perm 0 0 0755 SYSTEM:etc/setwifi.sh
I also found the supplicant scan interval bit in the boot.img-ramdisk/init.thunderg.rc file. I made this bit match the code in the build.prop. We'll see how well this goes here soon...
Code:
wifi.supplicant_scan_interval=20#(Replace 20 with 260)
I am moments away from flashing UD4 with the wifi fix incorporated.
Newbees, remember to use Notepad++ or other script editor instead of plain notepad. The language changed to script makes this stuff 100x easier to see and it also edits the script better from what I read about linux scripts. I speak from experience as a newbee myself!
Brian - Atlanta, GA
You're getting errors in update-script because syntax in first post is for Edify,not Amend.
Sent from my LG Optimus One P500 using XDA Premium App
I thought about that last night. Unfortunately, wifi is still draining battery. I'm running Ubuntdroid4, & 3g runs very smooth. If I didn't run wifi so much at home & use internet primarily I wouldn't mess with it so much. Off to do some more research...
Sent from my LG-P509 using XDA App
ciaox said:
You're getting errors in update-script because syntax in first post is for Edify,not Amend.
Can the rom be cooked to use edify? Then the script will work?
Will have to use clockwork to flash then?
Sent from my LG Optimus One P500 using XDA Premium App
Sent from my LG-P509 using XDA App
Click to expand...
Click to collapse
Click to expand...
Click to collapse

[TOOL] [Updated 8/18/11!!] APK_Manager_4.9_Honeycomb_Edition

Just though I'd take the time to update apk_manager_4.9 and call it apk_manager_4.9_Honeycomb_Edition. I've modified a few tools inside apk manager to now work with honeycomb apk's. Hopefully this will come in handy for you all.
Credits:
All credits go to the prior developers of APK MANAGER 4.9 HERE. I just took the time to update it for Honeycomb. Please refer to this link for instructions as well.
Thanks to Daneshm90 for giving me the okay to release this version so hopefully all you themers/developers out there will take this and run with it.
Changelog:
aapt - (From updated SDK)
apktool - (From updated SDK & MAD Industries)
zipalign - (From updated SDK)
Here is the download
APK_Manager_4.9_Honeycomb_Edition
Mirror_1
Mirror_2
MAC USERS:
Please click HERE for everything you need for APK Manager for a MAC courtesy of MAD Industries
Updated 08/18/11
Changelog:
Cleaned up script to and compile settings and systemui apks
Code:
echo Building Apk
IF EXIST "%~dp0place-apk-here-for-modding\%capp%" (del /Q "%~dp0place-apk-here-for-modding\%capp%")
java -Xmx%heapy%m -jar apktool.jar b -f "../projects/%capp%" "%~dp0place-apk-here-for-modding\%capp%"
if errorlevel 1 (
echo "An Error Occured, Please Check The Log (option 21)"
PAUSE
)
(Lines 489-495 if you're using Notepad++)
You can either re-download the APK-Manager_4.9_Honeycomb_Edition.zip from above or you can download the new Script.bat HERE
Just extract the Script.bat and replace the old one.
Some Extra Instructions:
To do this U MUST make a new folder in C:/users/<yourname>/ and call it apktool and a sub folder within it called framework. If you have this there already YOU ROCK!!
Mine reads:
Code:
C:/Users/Thomas/apktool/framework
Now within that framework folder you need a copy of a complete stock framework-res.apk and you need to rename it to 1.apk
You also need a copy of a complete stock twframework-res.apk and rename it 2.apk
So it should read:
Code:
C:/Users/<yourname>/apktool/framework/1.apk
and
Code:
C:/Users/<yourname>/apktool/framework/2.apk
Remember any apk you are attempting to decompile MUST BE COMPLETE STOCK to do so.
I have done all of this and tested over and over again and I am getting no errors whatsoever. If you do get some errors please make sure all your paths for SDK are setup correctly including setting a path for Java JDK as well.
PM me with any questions or concerns regarding all this. I will do my best to respond within a timely manner.
reserved for future
this one too hehe
Nice tool, will be useful.
PhantomHacker said:
Nice tool, will be useful.
Click to expand...
Click to collapse
Just hope more people will use it to it's fullest potential. And this tool does a lot of different things. Thanks PhantomHacker.
Very nice, thanks
Makes work easier
Thanks Doc I found this tool to become very handy when I did some things for the Samsung Epic 4G. I had to be able to use it for the Tab lol. Thanks again. Keep up the fantastic work yourself.
works like a charm Asus eee pad
depulle87 said:
works like a charm Asus eee pad
Click to expand...
Click to collapse
Awesome depulle87 glad to hear
Sent from my Nexus S 4G using XDA Premium App
I was to early with that, it seems to ''shrink'' my framework-res.apk so I can't use it.
It was 6.506kb and after a decompile and than compile it is 4.082kb, no changes made.
I didn't see it yesterday and I ended reflashing my TF
depulle87 said:
I was to early with that, it seems to ''shrink'' my framework-res.apk so I can't use it.
It was 6.506kb and after a decompile and than compile it is 4.082kb, no changes made.
I didn't see it yesterday and I ended reflashing my TF
Click to expand...
Click to collapse
Try after you select your project (Option 22) select (Option 19) Set your compression level and change it to 0.
That shouldn't shrink it at all.
Sorry about that let me know if that works as well so I can update OP
sorry man, it still shrinks my apk
Okay let me look into it. Sorry man.
Thanks man, should I upload my apk file so you can test it ?
yeah pm me with the link
Updated 8/18/2011
I've updated the OP a ton so please read away.
Well, that was easy
One small nitpick: What is the rationale behind overwriting the original files when compiling? Just curious.
And, for us antiquated old geezers building on something like a Windows Server 2003, framework-res.apk and twframework-res.apk should be present as
C:\Docume~1\<username>\apktool\framework\1.apk and 2.apk respectively.
Edit: Which sort of happens automagically, if you ...
java -jar other/apktool.jar if place-apk-here-for-modding/twframework-res.apk
... on that sort of platform.
what's the function of this app?
denis_sianto said:
what's the function of this app?
Click to expand...
Click to collapse
It's not an app
Sent from my MB855 using xda premium
denis_sianto said:
what's the function of this app?
Click to expand...
Click to collapse
It makes creating a theme fairly easy. It allows access to xml's, smali files(****ed up java files lawl!(i know what they are, i just like that version better)), and all the images in whatever apk you put in it. SO you can put in your new images, edit old images, edit xml files, edit smali files.

[UTILITY][TOOL] 9patchPngSuite [Windows&Linux]

Well, i actually cook the ROM MIUI for the SGS I9000 at miui.es and i was having a little fight with themes a few months ago. I allways stop at the same point, its so esay to compile previously decompiled .9.png, but what happens with compiled ones?
So here it's my solution, based on the grat idea of @tommytomatoe and his tool forMac OS X. It's called 9patchPngSuite and it let's you decompile, compile and launch draw9patch without the need of install android SDK.
How it works?
Easy, for every one in miui.es teamwork its not new its similar to other scripts i made, for the rest:
Windows
unzip 9patchPngSuite.zip in your prefered folder and double click on menu.bat
Linux
Unizip 9patchPngSuite.tar.gz in your prefered folder
give execution permissions (usually chmod 777)
type ./menu
Will show us 4 options
****************************
9patchPngSuite
v1 Windows edition
---------------------------------
by kakomalo...
thx @Xxfoc miui.es
and @tommytomatoe xda.com
****************************
1.Decompile *.9.png in Compiled folder (will clean decompiled folder)
2.Launch draw9patch (drag and drop files)
3.Compile RAW *.9.pnd in Decompiled folder (new created in output folder)
4.Info on draw9patch
x.Exit
Select option:
It's no so hard to understand but...
1.Decompile *.9.png in Compiled folder (will clean decompiled folder)
Decompile all .9.png in compiled folder, don't care if it's other kind of png or file, only works with .9.png.​
2.Launch draw9patch (drag and drop files)
Launch draw9patch, drag & drop files on it to edit. It's no needed to be installed android SDK tools, it's on tools folder​
3.Compile RAW *.9.pnd in Decompiled folder (new created in output folder)
Compile all .9.png in decompiled folder, don't care if it's other kind of png or file, only works with .9.png, and let the new compiled ones in output folder.​4.Info on draw9patch
Open thefault browser and goes to http://code.google.com/p/android-apktool/wiki/9PatchImages​
You have seen it's no difficult to use, i hope you like it.
Special thanks to @Xxfoc from miui.es for give me the idea, @tommytomatoe for his Mac OS X tool and brut.all for the work.
Download - Windows
Download - Linux
Spanish thread on miui.es or htcmania.com
Thanks for this! Can't wait to try it out when I'm back at my laptop
Sent from my Nexus S 4G using Tapatalk
Thank brutha
Excellent! Thanks.
Thanks i get a error on compile system cannot find file or folder.
ngagephone said:
Thanks i get a error on compile system cannot find file or folder.
Click to expand...
Click to collapse
Im not sure what do you try but, if its an error compiling .9.png make sure you have the descompiled & patched files in "decompiled" folder, before use option 3 in the menu.
Big thanks !
Very fast to edit .9.png now
This is a huge help, thank you.
The download links are down.
From where I could download?
Un saludo
Interested in working links aswell, as that tool sounds like the solution to my current problems
Link not work. ;(
Sent from my GT-S5830 using xda premium
Found a working link here if the author doesn't mind.
EddieFAF said:
Found a working link here if the author doesn't mind.
Click to expand...
Click to collapse
Thanks!!!
Enviado desde mi GT-I9100
Just like to say a big thanks for the 9patchPngSuite - it's saving me loads of time.
I had no problem recompiling edited .9.pngs using xUltimate-d9pc but it was a pain to have to decompile an apk just to edit a couple of .9.pngs
Working link please
Someone, please give working link to download this tool. Thanks!

[SOLVED] Can't decompile SecSettings.apk

Hey buddys, I found a [HOW TO] for Multi-window port.. I'm going to give a try
Now, my problem is that the environment is setted up, I think, correctly but I can't decompile "SecSettings.apk"
Every time I try with "APK Multi Tool" "Apktool" "Apk Manager" I have errors like this:
This is my ADB Variable:
And my PATH is this:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.7.0_11\bin;C:\Program Files\Java\jre7\bin;C:\Program Files (x86)\Android\android-sdk;C:\Program Files (x86)\Android\android-sdk\platform-tools;C:\Program Files (x86)\Android\android-sdk\tools
The PATH is correct because there are JDK and JRE installed, same for SDK..
How can I fix this? Thanks in advance people!!
Re: [Q] [HELP] Can't decompile SecSettings.apk
Did you install the framework and tw-framework?
Sent from my GT-I9070 using xda premium
I installed correctly the frameworks now and edited the files using the SGS II [HOW TO]..
Bootloop.. Im sure bootloops because I used the SGS II files, I dont know if are the same smali and jar's files of Advance..
I'll study better this later, now im going to find another mods for JB..
Thanks Shaaan!
fedevd said:
I installed correctly the frameworks now and edited the files using the SGS II [HOW TO]..
Bootloop.. Im sure bootloops because I used the SGS II files, I dont know if are the same smali and jar's files of Advance..
I'll study better this later, now im going to find another mods for JB..
Thanks Shaaan!
Click to expand...
Click to collapse
You didn't sign file. Copy Meta-INF from original to the new one. Open files with WINRAR for that.
Still bootlops..
Leave this thread like SOLVED and when you can gimme a hand, if you want of course
Does multiwindow works
Sent from my GT-I9070 using Tapatalk 2
Одг: [SOLVED] Can't decompile SecSettings.apk
fedevd said:
Still bootlops..
Leave this thread like SOLVED and when you can gimme a hand, if you want of course
Click to expand...
Click to collapse
Try to put resurces.arsc from compiled to original file. With WINRAR, and set compression to lowest - storage it is I think. And then try it.
Sent from Galaxy S Advance
shut_down said:
Try to put resurces.arsc from compiled to original file. With WINRAR, and set compression to lowest - storage it is I think. And then try it.
Sent from Galaxy S Advance
Click to expand...
Click to collapse
The problem is completely solved. Merry Christmas.:good::fingers-crossed:

[[Guide]] Apktool Mobile (Setup/Decompile-Recompile/Theme/Sign)

Yo guys! Here I come up with a brief tutorial for using Apktool Mobile! Let's begin!
Requirements:
1.A rooted device
2.Apktool 4.4 : https://storage.googleapis.com/goog.../code.google.com/apktool/apktool4.4_armhf.zip
3.A deodexed app of your phone.
How to deodex? Watch my video tutorial here: https://www.youtube.com/watch?v=n0sfERSqLgA
4.Root explorer and Busybox
5.Brain.apk
6.Patience.jar
How to setup apktool?
1.) Unzip apktool4.4_armhf.zip using root explorer.
2.) Navigate to sdcard0/speedsoftware/extracted/apktool4.4_armhf/apktool folder and install apktool 4.4
3.) Open apktool app,grant root access. Now goto settings and select apktool version 1.5.2. Come back.
4.) Navigate to storage/sdcard0/speedsoftware/apktool4.4armhf folder.
5.) Long press on apktool folder and select Set as apktool data folder.
6.) Navigate to system/framework
7.) Click on framework-res.apk and select import as framework.
8.) In the same folder find twframework-res.apk(for samsung devices) or mediatek-res.apk, click on it->import as framework
9.) Now navigate to system/app, find systemui.apk->click on it and select
10.) Import as framework.
11.) Done.
How to theme SystemUI?
1.) Using root explorer, create a folder named 'A' in apktool folder.
2.) Copy SystemUI.apk to that folder.
3.) Open apktool app, navigate to that A folder, click on SystemUI.apk and select decompile all. Wait till it gets decompiled.
4.) After it gets decompiled, you will get a folder named SystemUI_src
5.) Now minimize apktool, go to root explorer, navigate to SystemUI_src folder, and do any type of modifications you want.
For example, colour the battery icons using Picsay Pro and save with the original name.
6.) After you are done, open apktool app, click on SystemUI_src folder, recompile. Wait till it gets recompiled. Now you will get an app named SystemUI_src.apk. That's your modded apk.
How to Sign SystemUI/Any System app?
1.) Using root explorer, goto A folder, and extract SystemUI.apk and SystemUI_src.apk one by one.
2.) Now navigate to sdcard0/speedsoftware/extracted/SystemUI folder.
3.) Copy Androimanifest.xml and Meta-inf folder from there. Press back and open SystemUI_src folder. Paste those two files there. Click replace when you see the popup.
4.) Come back. Long press on SystemUI_src folder and select zip this folder. Then select goto zip once its finished. Rename the SystemUI_src.zip to SystemUI.apk.
5.) Done. Now you can your push own modified UI to system/app!
Good luck!
Regards,
Aniruddha B.Pathak.
HIT THANKS IF I HELPED YOU!! :laugh:
Thanks to @Ibuprophen for providing me the updated link to apktool.
Nice guide
KeeP it up ..
Thanks for the guide ...... I have apk tool 4.6 can i use it in same way???
arun.negi004 said:
KeeP it up ..
Thanks for the guide ...... I have apk tool 4.6 can i use it in same way???
Click to expand...
Click to collapse
Thanks for the compliment
Of course you can but I personally recommend 4.4 as it has more options is quite faster
Still go ahead with 4.6 :angel:
Ok thanks BRO
Aniruddha_Pathak said:
Thanks for the compliment
Of course you can but I personally recommend 4.4 as it has more options is quite faster
Still go ahead with 4.6 :angel:
Click to expand...
Click to collapse
Ok i also have 4.4 version :3
But why this step secting apk tool version 1.5.2
Ahh...thats for smali
Apktool when set to 2.0 gives errors sometimes while recompiling if you edit smali files hence, set it to 1.5.2 so that you won't face any problem
Thanks...
Aniruddha_Pathak said:
Apktool when set to 2.0 gives errors sometimes while recompiling if you edit smali files hence, set it to 1.5.2 so that you won't face any problem
Click to expand...
Click to collapse
Ok thanks BRO for help..
I m getting this error while recompiling system ui..
[Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
Click to expand...
Click to collapse
---------- Post added at 08:27 AM ---------- Previous post was at 08:17 AM ----------
Does it needs system deodexed?
Follow the guide again
Setup apktool again, then follow the guide carefully
Hi! I'm on a rooted kk tablet running ApkTool mobile v5.
Is this version stable and bugfree? or should I install an older one (e.g. v4.4)
An other question,what should I do to have a signed and/or working app after:
Decompiling>>Adding files>> ??
Because when I add files to the apk and try to compile, errors, errors,...errors!!
Older version would work faster
Wolf Tatoo said:
Hi! I'm on a rooted kk tablet running ApkTool mobile v5.
Is this version stable and bugfree? or should I install an older one (e.g. v4.4)
An other question,what should I do to have a signed and/or working app after:
Decompiling>>Adding files>> ??
Because when I add files to the apk and try to compile, errors, errors,...errors!!
Click to expand...
Click to collapse
1. I would recommend older version of apktool as it would work faster on your tab.
2. Install busybox if its not already installed.
3. If you are replacing a png, then keep in mind that you must replace those pngs with "SAME NAME" as they were before in the SystemUI.
4. Donot touch .9.pngs if you don't know how to play with them.
Aniruddha_Pathak said:
1. I would recommend older version of apktool as it would work faster on your tab.
2. Install busybox if its not already installed.
3. If you are replacing a png, then keep in mind that you must replace those pngs with "SAME NAME" as they were before in the SystemUI.
4. Donot touch .9.pngs if you don't know how to play with them.
Click to expand...
Click to collapse
Thanks for replying.
I already know how to replace pngs inside an apk,and I know that .9.PNG are not. png. But what I can't do is to successfully compile and sign the app after adding-not just replacing-new files to the existing ones inside_let's say package/res/drawable_apk.
Umm...if you want to ADD pngs, then you need to make some changes in xmls, otherwise it won't recompile
Aniruddha_Pathak said:
Umm...if you want to ADD pngs, then you need to make some changes in xmls, otherwise it won't recompile
Click to expand...
Click to collapse
Yes I know, but which ones should I modify?
How about editing xml's using phone, what tool to use?
ApkTool v4.8 Mod (Professional)
by Stewe, full creds to him
Mod Info:
♣ Added ApkTool v2.0.0 RC4.
♣ Added Smali/Baksmali v2.0.5.
♣ Added New Icons.
♣ Apk + Data.
http://www34.zippyshare.com/v/mVx5n21p/file.html
Wolf Tatoo said:
Yes I know, but which ones should I modify?
Click to expand...
Click to collapse
Search around XDA for the guides, you may find one
Notepad++
datsoy said:
How about editing xml's using phone, what tool to use?
Click to expand...
Click to collapse
I use Notepad++, which is a great tool
Link: https://code.google.com/p/openintents/downloads/detail?name=Notepad-1.4.0.7.apk
Thanks for sharing
berryman13 said:
ApkTool v4.8 Mod (Professional)
by Stewe, full creds to him
Mod Info:
Added ApkTool v2.0.0 RC4.
Added Smali/Baksmali v2.0.5.
Added New Icons.
Apk + Data.
http://www34.zippyshare.com/v/mVx5n21p/file.html
Click to expand...
Click to collapse
Thanks for sharing it sir but I personally has used all versions of apktool, from 4.1 to 5.0 and I find 4.4 more useful
Still, thanks for sharing the link, again
Are there any tutorials on how to change the status bar icons (sounds, vibrate, wifi,signal)?
Thanks in advance!
Should I make one?
kushpancake said:
Are there any tutorials on how to change the status bar icons (sounds, vibrate, wifi,signal)?
Thanks in advance!
Click to expand...
Click to collapse
Should I make a guide on it? Or should I tell you here?

Categories

Resources