Guide how to porting rom for fih-fbo-easy way - Huawei Ideos X6

FIH-FB0
EASY WAY PORTING ROM​
Hye guys,i will shared my mettod how to porting rom for fih-fb0,this mettod is very easy for you all because i will give you all vendor file for need working on device fih-fbo.....
FIRST DOWNLOAD THIS FILE .ZIP
http://d-h.st/tys
-after you finish download you will see on .zip folder like bin,etc,lib,usr and bulid.prop..what you need to do extract first what rom do you want to porting,,after done extract,,put all the file on like the same folder..after done copy-paste the file,,edit the bulid.prop ''see my bulid.prop its is the simple bulid.prop my guide porting''..after done at all use any kernal cm9 and dont forget replace the module..
-if you want need vibrate on touch working edit the framework-res.apk
**complie first the framework-res.apk
-open framework-res
-open res
-go to value
-edit arrays.xml like this
<integer-array name="config_longPressVibePattern">
<item>0</item>
<item>1</item>
<item>50</item>
<item>50</item>
</integer-array>
<integer-array name="config_virtualKeyVibePattern">
<item>0</item>
<item>20</item>
<item>30</item>
<item>50</item>
</integer-array>
<integer-array name="config_keyboardTapVibePattern">
<item>50</item>
</integer-array>
<integer-array name="config_safeModeDisabledVibePattern">
<item>0</item>
<item>1</item>
<item>20</item>
<item>31</item>
</integer-array>
<integer-array name="config_safeModeEnabledVibePattern">
<item>0</item>
<item>1</item>
<item>20</item>
<item>21</item>
<item>500</item>
<item>600</item>
</integer-array>
<integer-array name="config_scrollBarrierVibePattern">
<item>0</item>
<item>45</item>
<item>20</item>
<item>20</item>
</integer-array>
-then save it and recompli again the framework again
**for other mod you want to put at framework-res.apk,,do with you self**
**for handfree need to working**
-complie the service.jar
-then search WiredAccessoryObserver.smali
-edit this line
const-string v2, "DEVPATH=/devices/virtual/switch/headset_sensor"
aput-object v2, v1, v3
const-string v2, "/sys/class/switch/headset_sensor/state"
aput-object v2, v1, v4
const-string v2, "/sys/class/switch/headset_sensor/name"
NOW DONE
-DONT FORGET EDIT THE UPDATE-SCRIPT,,IF YOU LAZY TO EDIT THE UPDATE-SCRIPT JUST TAKE FBO UPDATE-SCRIPT AND REPLACE WHAT ROM DO YOU WANT TO TRYING PORTING..REPLACE 2 FILE..:good::good:
HAPPY PORTING
POST ON THIS THREAD IF NEED SOME HELP,I WILL HELP THE BEST TIME WITH YOU ALL​
SORY IF MY ENGLISH VERY BAD:silly::silly:

Thankx
Sent from my A99 using Tapatalk 2

problem
I am trying to port aurora ics from u8800. i replaced all the files from your zip file. replaced both update and updater script and build property from CM9 RC2 by RCsET. it is flashed but when i boot it give black screen.
elol can you help where i am going wrong
Can I port ICECOLDSANDWITCH 8.8 From above method or can you suggest any rom which will be easy to port.

Tanuj Chhibber said:
I am trying to port aurora ics from u8800. i replaced all the files from your zip file. replaced both update and updater script and build property from CM9 RC2 by RCsET. it is flashed but when i boot it give black screen.
elol can you help where i am going wrong
Can I port ICECOLDSANDWITCH 8.8 From above method or can you suggest any rom which will be easy to port.
Click to expand...
Click to collapse
as far as i remember i think zuk and ck already tried to port aurora ics but never succeeded probably because it was on 3.0.8 kernel.
Sent from my CSL-MI410 using xda app-developers app

nayneshdev said:
as far as i remember i think zuk and ck already tried to port aurora ics but never succeeded probably because it was on 3.0.8 kernel.
Sent from my CSL-MI410 using xda app-developers app
Click to expand...
Click to collapse
yes you right mate,even this device have kernel 3.0..

Icecoldsandwitch 8.8
I have ported 8.8. ICECOLDSANDWITch but the problem is it goes into bootloop and only installs when installing previous rom 8.7 and boot it and then installing 8.8 everything is OK but it lags so much any solution. ?

Tanuj Chhibber said:
I have ported 8.8. ICECOLDSANDWITch but the problem is it goes into bootloop and only installs when installing previous rom 8.7 and boot it and then installing 8.8 everything is OK but it lags so much any solution. ?
Click to expand...
Click to collapse
Try extracting 8.7 and 8.8 in different folders, copy folders from 8.8 to 8.7 and merge folders and replace files. Then use a stable rom like mtdev as base and your new 8.7 folder as port and add v6 supercharger. Zip align and pack via dxdia kitchen.
Hope this helps

Urgent Help
Hi to everyone
I used this Guide
forum.xda-developers.com/showthread.php?t=1598713
and I replace full meta-INF Folder and androidruntime.so (No change to Build. Prop)
But it goes into boot loop.
Can some-one guide which files are missing and what should I DO.
Urgently required as I am Seriously trying to port some serious stuff

Tanuj Chhibber said:
Hi to everyone
I used this Guide
forum.xda-developers.com/showthread.php?t=1598713
and I replace full meta-INF Folder and androidruntime.so (No change to Build. Prop)
But it goes into boot loop.
Can some-one guide which files are missing and what should I DO.
Urgently required as I am Seriously trying to port some serious stuff
Click to expand...
Click to collapse
Do a logcat. Very simple. Download android sdk and googles USB driver from sdk. Then using terminal or command prompt navigate to that folder of the sdk and search for adb file ( for me it is in platform-tools). Then type adb logcat.
While reading logcat code, no matter what errors come, search for the 'error couldn't find native method' and read. It tells you the name of a file in the rom in an archive called framework.jar. You have to replace this file with the one in the framework.jar of the original rom. To unpack framework.jar is a process called backsmaling. Google for tutorials though I use this one :-
http://forum.xda-developers.com/showthread.php?t=1466100
You don't have to sign jar files but you need to sign apk files so its easier to do.
Also don't replace full meta inf folders. Use win merge to compare updated scripts
Hope this helps

nachiketa.ramesh said:
Do a logcat. Very simple. Download android sdk and googles USB driver from sdk. Then using terminal or command prompt navigate to that folder of the sdk and search for adb file ( for me it is in platform-tools). Then type adb logcat.
While reading logcat code, no matter what errors come, search for the 'error couldn't find native method' and read. It tells you the name of a file in the rom in an archive called framework.jar. You have to replace this file with the one in the framework.jar of the original rom. To unpack framework.jar is a process called backsmaling. Google for tutorials though I use this one :-
http://forum.xda-developers.com/showthread.php?t=1466100
You don't have to sign jar files but you need to sign apk files so its easier to do.
Also don't replace full meta inf folders. Use win merge to compare updated scripts
Hope this helps
Click to expand...
Click to collapse
Can I Port using DXIDA Kitchen.
I tried but it is not useful for updater script.

Tanuj Chhibber said:
Can I Port using DXIDA Kitchen.
I tried but it is not useful for updater script.
Click to expand...
Click to collapse
I don't know if apktool is included in dxdia kitchen. It is needed however to unpack apks and jars which is needed to port roms. I think it includes logcat tho
---------- Post added at 06:32 PM ---------- Previous post was at 06:23 PM ----------
I don't think the kitchen includes apktool to unpack and repackage jar and apk files. Most boot loops are caused by incorrect framework.jar services.jar so you can't use kitchen for that. You cannot use the kitchen to logcat either I think. I prefer to use winrar to compile and decompile roms and the kitchen to just zip align and check for errors in updated script.
---------- Post added at 06:33 PM ---------- Previous post was at 06:32 PM ----------
I don't think the kitchen includes apktool to unpack and repackage jar and apk files. Most boot loops are caused by incorrect framework.jar services.jar so you can't use kitchen for that. You cannot use the kitchen to logcat either I think. I prefer to use winrar to compile and decompile roms and the kitchen to just zip align and check for errors in updated script.

Related

[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!

[GUIDE] Dummies guide to port MIUI rom for ideos X6 variant!

Lets discuss about ROM port guidance for dummies like me. Hope it will help others also who want to port it.
Here is my experience for porting several MIUI in my phone, shall other to make it perfect.
First we must have a source rom to port. Desire HD is my chosen since it has some similar hardware.
I replace the source rom using several files from the previous working MIUI rom.
I never mix framework with any other files from previous miui version, I just patch framework.jar and services.jar (decompile and recompile). And for system app files I let them as is, except for torch.apk taken from 1.11.11 and systemUI.apk with manual patch (decompile and recompile).
I use the same driver modules files in every my port (wifi, sensor, light, gps), the rest drivers are compiled in the kernel so we can't touch them except if we can build from source. I use almost the same library in every port. ( You can see the same files from my 2.2.3 and my 2.3.9)
The other files are came from the source dhd rom and additional apps taken from other rom or any mod as long as they're not accessing the hardware directly.
And for the kernel, lately I use SDKernel and mOCK kernel. I've modified both boot image of them. At 2.3.9 as you knew, I use modded SDKernel, I've change default cpu clock and also bringing up the fm radio service in it. And for my current miui (2.3.16) I'm using mOCK kernel, I've change the default cpu clock also, but not bringing up fm service (since I've not succeded yet using FM radio).
Here are some files I don't use from source rom (replace by following files):
- Torch.apk
- hciattach
- netd
- wpa_supplicant
- liba2dp
- libc****
- libcamera
- libcamera_service
- libffmpeg
- libgemini
- libhardware_legacy
- libmmipl
- libmmjpeg
- liboemcamera
- libril
- librpc
- libskia
- libwebcore
- vold
- vold.stab
- btwlancoex
- compassd
- geomagneticd
hci_qcomm_init
hostapd
hostapd_cli
lightd
load_wifi
modempre
netmgrd
nt_password_hash
oem_rpc_svc
orientationd
port-bridge
proximityd
pwgen
qmuxd
rmt_oeminfo
zipalign
all files from system/etc/firmware/wlan
some files in init.d script, I use just hostapd, tweak sdcard read and zipalign. The rest setting I let the default config.
init.qcom.xxx
loca_parameter.ini
wpa_supplicant.conf
all files from /system/lib/hw and /system/lib/modules from previous port ( taken from 1.11.11 and triumph if I'm not wrong... not exactly remembered)
libaudio***
libauth
libcm
libcommondefs
libdiag
libdll
libdsi_netctrl
libdsm
libdsmutils
libgsd**
libidl
libloc***
libmmgsdilib
libnetmgr
libnv
liboem_rapi
liboncrpc
libOpenVG
libpbmlib
libposteffect
libqdp
libqmi
libqueue
libreference-ril
libril***
libwms**
and also all file in /system/usr/keychars and /system/usr/keylayout
If I'll change kernel, then I'll change wifi lib also which work with it.
And add some addons... not related to the core.
wpa_supplicant.conf, gps.conf, build.prop are changed as needed
I think those files are sufficient to make a new port...
Tools to decompile and recompile apk and jar files is apktool, you can use apkmultitool from apkmultitool.com.
How to fix headset:
Decompile services.jar, use this command line;
apktool d services.jar
You'll find services.jar.out folder as output. Find HeadsetObserver.smali file and replace any "h2w" word with "headset_sensor". Use notepad++ to do it. And recompile using this command line:
apktool b services.jar.out
Find the new compiled file at services.jar.out/dist folder.
How to fix native wifi tether and haptic feedback:
The file need to modify is framework-res.apk. You can do the same to decompile and recompile just like fixing headset. Decompile the file and find array.xml in framework-res.out/res/values. Find "wl.0" replace with "softap.*". You'll easily find the level values pattern for haptic feedback in the same file. The pattern values is "off,on,off,on" format to turn off and turn on vibrate in milisecond. Recompile again.
The new compiled file can not be used yet, you should restore the META-INF folder and AndroidManifest file from the original framework-res.apk file. Use 7zip application to open both old and new framework-res.apk and drag META-INF folder and AndroidManifest file to the new compiled framework-res.apk then it ready to use.
Happy porting......!!!
I'll update this post if there are some more useful...
Any suggestion are welcome...
Thank you very much for this. Will surely help newbies like me
FR... I got an idea... if there is an app which will do just like your future release miui kitchen BUT it run in device, so it will have an OTA update, how cool....! I want to help to port it to an android app (apk file), but I just only have several hours in a week for this fun.
I have already scripted what you have written in the first post.
What needs to be done with the framework files?
Free Radical said:
I have already scripted what you have written in the first post.
What needs to be done with the framework files?
Click to expand...
Click to collapse
I think we have to let the original theme and standard apps, the customization is optional due to different need of users. (For example you and me could be like beat audio or maybe not).
For the headset, you have to decompile service.jar, open headsetobserver.smali (i forgot for the exactly name) and change every "h2w" word to "headset_sensor" then recompile, then headset will work.
Sent from my CSL-MI410 with my MIUI 2.3.16 using tapatalk
The kitchen app shall be ready in a day or two.
Shall experiment later when I return home.
Btw, what to change in the framework folder?
Also, you need to mention in your guide that the proprietary hw, keylayout,keychar, module files need to be preserved.
I have pmed zuk regarding his set of proprietary fih/fb0 files so that we can make a skeleton framework to be used for cooking every Rom.
Sent from my Spice MI-410 on my rom!
Free Radical said:
The kitchen app shall be ready in a day or two.
Shall experiment later when I return home.
Btw, what to change in the framework folder?
Also, you need to mention in your guide that the proprietary hw, keylayout,keychar, module files need to be preserved.
I have pmed zuk regarding his set of proprietary fih/fb0 files so that we can make a skeleton framework to be used for cooking every Rom.
Sent from my Spice MI-410 on my rom!
Click to expand...
Click to collapse
Service.jar is in framework folder FR. My prev post mention the change of this file.
Yes, any files in hw,modules,keychar and keylayout folder at the source rom should be deleted and replaced by files from the working rom.
The skeleton for other rom willbe different. You have to make different folder for skeleton files for different rom. Several are the same files, but separating them will make you easier to manage. So the list file names is not too important, just put them in the folder will be enough. Sorry .... Just my though...
Sent from my CSL-MI410 with my MIUI 2.3.16 using tapatalk
AND LADIES & GENTLEMEN... WE HAVE LIFT OFF!!!!!!!!!!!
REJOICE.
I have made an automatic miui rom porter.
I am calling the app F-CuK-R
Thank you CK, edowar, zuk and elol.
Just booted up 2.3.16 successfully. Ported using my app (Testing the rom it churned out. I am hoping native wifi tethering is fixed)
Shall upload after midnight.
Now we can have MIUI GB release the same day after every official release
Although I must confess a lot of the files I am using are missing in this post.
but fear not, I shall make them public as soon as the app is ready for prime time with a nice gui.
Made the list after several failed experiments over the last week. Finally a simple file comparison (using a script I made) between the official MIUI release and the original 1.11.11 release helped.
Free Radical said:
AND LADIES & GENTLEMEN... WE HAVE LIFT OFF!!!!!!!!!!!
REJOICE.
I have made an automatic miui rom porter.
I am calling the app F-CuK-R
Thank you CK, edowar and zuk.
Just booted up 2.3.16 successfully. Ported using my app (Testing the rom it churned out.)
Shall upload after midnight.
Now we can have MIUI GB release the same day after every official release
Although I must confess a lot of the files I am using are missing in this post.
but fear not, I shall make them public as soon as the app is ready for prime time with a nice gui.
Made the list after several failed experiments over the last week. Finally a simple file comparison (using a script I made) between the official MIUI release and the original 1.11.11 release helped.
Click to expand...
Click to collapse
Greaattt FR... Can't wait to taste it....!!!!
Sent from my CSL-MI410 with my MIUI 2.3.16 using tapatalk
I guess I spoke too soon.
My port again has an issue with the headset. :sigh: back to the drawing board
sorry FR, for not replying for your PM. I was away for internet for some time...!!
You have already done a really Good job. I should say, really quick...!!
This will real Good deal for MIUI lover's.
Good Luck...!!
Can someone enumerate changes to be done to systemUI, android.policy, framework.jar and framework-res in different mods so that I can script them for my cooker?
Sent from my Spice MI-410 on my MIUI 2.3.16 port
CacingKalung said:
Lets discuss about ROM port guidance for dummies like me. Hope it will help others also who want to port it.
Here is my experience for porting several MIUI in my phone, shall other to make it perfect.
First we must have a source rom to port. Desire HD is my chosen since it has some similar hardware.
I replace the source rom using several files from the previous working MIUI rom.
I never mix framework with any other files from previous miui version, I just patch framework.jar and services.jar (decompile and recompile). And for system app files I let them as is, except for torch.apk taken from 1.11.11 and systemUI.apk with manual patch (decompile and recompile).
I use the same driver modules files in every my port (wifi, sensor, light, gps), the rest drivers are compiled in the kernel so we can't touch them except if we can build from source. I use almost the same library in every port. ( You can see the same files from my 2.2.3 and my 2.3.9)
The other files are came from the source dhd rom and additional apps taken from other rom or any mod as long as they're not accessing the hardware directly.
And for the kernel, lately I use SDKernel and mOCK kernel. I've modified both boot image of them. At 2.3.9 as you knew, I use modded SDKernel, I've change default cpu clock and also bringing up the fm radio service in it. And for my current miui (2.3.16) I'm using mOCK kernel, I've change the default cpu clock also, but not bringing up fm service (since I've not succeded yet using FM radio).
Here are some files I don't use from source rom (replace by following files):
- Torch.apk
- hciattach
- netd
- wpa_supplicant
- liba2dp
- libc****
- libcamera
- libcamera_service
- libffmpeg
- libgemini
- libhardware_legacy
- libmmipl
- libmmjpeg
- liboemcamera
- libril
- librpc
- libskia
- libwebcore
- vold
- vold.stab
- btwlancoex
- compassd
- geomagneticd
hci_qcomm_init
hostapd
hostapd_cli
lightd
load_wifi
modempre
netmgrd
nt_password_hash
oem_rpc_svc
orientationd
port-bridge
proximityd
pwgen
qmuxd
rmt_oeminfo
zipalign
all files from system/etc/firmware/wlan
some files in init.d script, I use just hostapd, tweak sdcard read and zipalign. The rest setting I let the default config.
init.qcom.xxx
loca_parameter.ini
wpa_supplicant.conf
all files from /system/lib/hw and /system/lib/modules from previous port ( taken from 1.11.11 and triumph if I'm not wrong... not exactly remembered)
libaudio***
libauth
libcm
libcommondefs
libdiag
libdll
libdsi_netctrl
libdsm
libdsmutils
libgsd**
libidl
libloc***
libmmgsdilib
libnetmgr
libnv
liboem_rapi
liboncrpc
libOpenVG
libpbmlib
libposteffect
libqdp
libqmi
libqueue
libreference-ril
libril***
libwms**
and also all file in /system/usr/keychars and /system/usr/keylayout
If I'll change kernel, then I'll change wifi lib also which work with it.
And add some addons... not related to the core.
wpa_supplicant.conf, gps.conf, build.prop are changed as needed
I think those files are sufficient to make a new port...
I'll update this post if there are some more useful...
Any suggestion are welcome...
Click to expand...
Click to collapse
How do you decompile and recompile service.jar n framwork.jar???
nitin1978 said:
How do you decompile and recompile service.jar n framwork.jar???
Click to expand...
Click to collapse
I have added how to fix the headset, haptic feedback and native wifi tether at the first post including how to decompile and recompile files.
Happy porting....!!!
Sent from my CSL-MI410 using Tapatalk
thanks bro...

[Tutorial] How to use Lg Weather Widget on CM7 or Miui beta

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..

auto dim not working on my port

im port cm9.1 latest stable,,,its very good ,,,fast,,smooth too,,,but auto dim isnt not working,,,how to get it working???
great man.
auto brightness not working may be sensor files are missing, I noticed same issue in cm10 by rcset.
elol we need you for solving this
ryan just upload your ROM please
not worried much about auto brightness
reversegear said:
great man.
auto brightness not working may be sensor files are missing, I noticed same issue in cm10 by rcset.
elol we need you for solving this
ryan just upload your ROM please
not worried much about auto brightness
Click to expand...
Click to collapse
my connection is very slow for upload bro,,,but u can try this alone,,its easy,,,,just go to cynanogen site,,,download latest cm 9.1 for xperia arc(anzu) or latest nightly,,,,,next follow my tutorial above,,,take file from cm9 rc2 by rcset
META-INF - delete and replace all folder
edit build.prop or replace
replace boot.img
system/bin - replace and add dif files
applypatch
btwlancoex
geomagneticd
hci_qcomm_init
hlr_auc_gw
hostapd
hostapd_cli
lightd
nt_password_hash
orientationd
port-bridge
proximityd
recovery
rild
rmt_storage
vold
wpa_supplicant
system/etc
firmware - delete and replace all folder
permissions - delete and replace all folder
- add or replace
init.qcom.bt.sh
init.qcom.fm.sh
init.qcom.sdio.sh
init.qcom.wifi.sh
loc_parameter.ini
vold.fstab
system/framework
framework-res.apk - mod vibrate
services.jar - fix headset
system/lib - add or replace
libandroid_runtime.so
libcamera.so
libcamera_client.so
libcm.so
libgps.so
libhardware_legacy.so
libmmjpeg.so
liboemcamera.so
libril.so
libril-qc-1.so
- and add all dif files from base work
system/lib/hw - add
camera.fb0.so
gps.fb0.so
lights.fb0.so
sensors.fb0.so
system/lib/modules - delete and replace all folder
system/usr - replace all folder
idc
keychars
keylayout
its tutorial from rcset,,,if you follow this,,im guarantee you will be sucsess...keep spirit
From what device ROM you have ported??I use crespo device,but failed,stuck on splash.img
Sent from my Spice Mi-410 using Tapatalk 2
Arya_3RDNumber said:
From what device ROM you have ported??I use crespo device,but failed,stuck on splash.img
Sent from my Spice Mi-410 using Tapatalk 2
Click to expand...
Click to collapse
try change libhardware_legacy.so cm9 mtdev latest or take from my ported IceColdSandwicth V8.7....use rom htc Sensation ''pryamid'' base rom to need porting rom cm9,it will easy you..
---------- Post added at 03:18 PM ---------- Previous post was at 03:17 PM ----------
ryanroxx said:
my connection is very slow for upload bro,,,but u can try this alone,,its easy,,,,just go to cynanogen site,,,download latest cm 9.1 for xperia arc(anzu) or latest nightly,,,,,next follow my tutorial above,,,take file from cm9 rc2 by rcset
META-INF - delete and replace all folder
edit build.prop or replace
replace boot.img
system/bin - replace and add dif files
applypatch
btwlancoex
geomagneticd
hci_qcomm_init
hlr_auc_gw
hostapd
hostapd_cli
lightd
nt_password_hash
orientationd
port-bridge
proximityd
recovery
rild
rmt_storage
vold
wpa_supplicant
system/etc
firmware - delete and replace all folder
permissions - delete and replace all folder
- add or replace
init.qcom.bt.sh
init.qcom.fm.sh
init.qcom.sdio.sh
init.qcom.wifi.sh
loc_parameter.ini
vold.fstab
system/framework
framework-res.apk - mod vibrate
services.jar - fix headset
system/lib - add or replace
libandroid_runtime.so
libcamera.so
libcamera_client.so
libcm.so
libgps.so
libhardware_legacy.so
libmmjpeg.so
liboemcamera.so
libril.so
libril-qc-1.so
- and add all dif files from base work
system/lib/hw - add
camera.fb0.so
gps.fb0.so
lights.fb0.so
sensors.fb0.so
system/lib/modules - delete and replace all folder
system/usr - replace all folder
idc
keychars
keylayout
its tutorial from rcset,,,if you follow this,,im guarantee you will be sucsess...keep spirit
Click to expand...
Click to collapse
if you use base ''anzu'' you will not get unmount and mount usb working..
Arya_3RDNumber said:
From what device ROM you have ported??I use crespo device,but failed,stuck on splash.img
Sent from my Spice Mi-410 using Tapatalk 2
Click to expand...
Click to collapse
im take base from xperia arc,,i think ist better because have same gpu
elol said:
try change libhardware_legacy.so cm9 mtdev latest or take from my ported IceColdSandwicth V8.7....use rom htc Sensation ''pryamid'' base rom to need porting rom cm9,it will easy you..
---------- Post added at 03:18 PM ---------- Previous post was at 03:17 PM ----------
if you use base ''anzu'' you will not get unmount and mount usb working..
Click to expand...
Click to collapse
do you mean mount usb on cwm????i dont test it,,but usb storage its working good,,,
buy hey elol,,very nice to see u in fb0 thread,,:good:
elol can u teach me,,how to get auto dim working??
you need complie framework-res.apk then open array.xml compare framework fb0 ics with framework what do you want to porting
oh ...
Sent from my SH8188U using xda premium

[[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