I'm trying to compile the source from HTC :
Droid Incredible by hTC – Froyo MR3 – 2.6.32 kernel source code 82.1 MB
http://dl4.htc.com/RomCode/Source_and_Binaries/incrediblec-MR3-2.6.32-g9a2fc16.tar.gz
Using heyitslou's kernel .config the kernel compiles, the only thing I'm changing is:
[*] Android gadget RNDIS ethernet function
after that the kernel no longer compiles. I get the following error.
Code:
:~/android/sources/dinc$ make
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
CC drivers/usb/gadget/f_rndis.o
drivers/usb/gadget/f_rndis.c: In function 'rndis_bind':
drivers/usb/gadget/f_rndis.c:703: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:704: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c: In function 'rndis_function_bind_config':
drivers/usb/gadget/f_rndis.c:880: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:880: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:881: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:881: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:882: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:882: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:884: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:886: error: dereferencing pointer to incomplete type
make[2]: *** [drivers/usb/gadget/f_rndis.o] Error 1
make[1]: *** [drivers/usb/gadget] Error 2
make: *** [drivers] Error 2
Can someone help me track down how to fix/get around this... all I'm looking for is a Froyo kernel with RNDIS (wired-tether) support. Unfortunately everyone likes wireless tether only, which doesn't work reliably enough for me over extended periods of time.
Hopefully someone can help me.
Thanks,
B
https://github.com/getitnowmarketing/Incrediblec-mr3/commit/d80716254f7c444955c3948a1fad97b052400883
This is from my personal non-released kernel. Its not a clone of ziggy's like most every other kernel is.
billygoat32 said:
I'm trying to compile the source from HTC :
Droid Incredible by hTC – Froyo MR3 – 2.6.32 kernel source code 82.1 MB
http://dl4.htc.com/RomCode/Source_and_Binaries/incrediblec-MR3-2.6.32-g9a2fc16.tar.gz
Using heyitslou's kernel .config the kernel compiles, the only thing I'm changing is:
[*] Android gadget RNDIS ethernet function
after that the kernel no longer compiles. I get the following error.
Code:
:~/android/sources/dinc$ make
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
CC drivers/usb/gadget/f_rndis.o
drivers/usb/gadget/f_rndis.c: In function 'rndis_bind':
drivers/usb/gadget/f_rndis.c:703: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:704: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c: In function 'rndis_function_bind_config':
drivers/usb/gadget/f_rndis.c:880: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:880: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:881: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:881: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:882: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:882: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:884: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:886: error: dereferencing pointer to incomplete type
make[2]: *** [drivers/usb/gadget/f_rndis.o] Error 1
make[1]: *** [drivers/usb/gadget] Error 2
make: *** [drivers] Error 2
Can someone help me track down how to fix/get around this... all I'm looking for is a Froyo kernel with RNDIS (wired-tether) support. Unfortunately everyone likes wireless tether only, which doesn't work reliably enough for me over extended periods of time.
Hopefully someone can help me.
Thanks,
B
Click to expand...
Click to collapse
Can you post the patch your trying to apply
Hey thanks for the quick reply, I appreciate your interest.
All I'm doing is downloading the source available from HTC, pulling the config.gz from my phone (which is running your kernel) moving it into the kernel source directory, `make menuconfig`, load the .config, * the android RNDIS option and then trying to make kernel from there.
Let me know if there is anything else I can do to assist.
Thanks again,
B
On a side note, I've tried this will all the available froyo sources from HTC, the Verizon ones, stock, etc
drellisdee said:
https://github.com/getitnowmarketing/Incrediblec-mr3/commit/d80716254f7c444955c3948a1fad97b052400883
This is from my personal non-released kernel. Its not a clone of ziggy's like most every other kernel is.
Click to expand...
Click to collapse
It seems that you need to apply the patches outlined in drellisdee's post.
shoot, I missed that. Thanks for pointing that out <face-palm>
HeyItsLou,
can you include the rndis support + patch from the post above into your kernel?
https://github.com/getitnowmarketin...0716254f7c444955c3948a1fad97b052400883#diff-0
RNDIS Support
For anyone that is interested I recompiled HeyItsLous kernel with rndis support. I didn't change anything other than adding rndis support for usb wired tether. Let me know if you want it and I'll post it somewhere.
when i build it throws me the following and stops ...
/home/creator/cm11/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/creator/cm11/out/target/product/i927/obj/ETC/sepolicy_intermediates/policy.conf
device/samsung/i927/selinux/device.te":3:ERROR 'duplicate declaration of type/attribute' at token ';' on line 7490:
type nv_device, dev_type, mlstrustedobject;
type tegra_device, dev_type, mlstrustedobject;
checkpolicy: error(s) encountered while parsing configuration
make: *** [/home/creator/cm11/out/target/product/i927/obj/ETC/sepolicy_intermediates/sepolicy] Error 1
please any help appreciated...thank you...
DISCLAIMER: I ACCEPT NO RESPONSIBILITY WHATSOEVER IF YOU BRICK YOUR PHONE, LOSS OF DATA OR YOU HAVE BOOTLOOPS USING THIS MOD. THE INFORMATION SHARED FOR HELPING THOSE HELP THEMSELVES. MADE ONLY FOR THE XDA PRINCIPLE OF "SHARING KNOWLEDGE". FOR ROOTED PHONES ONLY & OBVIOUSLY
Everyone is requested not to post unnecessary questions. I am making the OP very clear so you need no further assistance. Critics will be ignored and use of foul language and ungrateful words will be reported.
As seen very often network data speed in statusbar is a nice mod to have but it involves some editing of your smali and xml files. This mod aims to make it very simple for people to incorporate the mod yourself.
FEATURES
1. Speed shown only when connected.
2. Unit in Bytes/Kilobytes/Megabytes selected automatically....no need to worry.
3. Speed shown for data / wifi.
4. Speed indicator vanishes the moment you disconnect.
For making it simple I have made all necessary changes to the files attached. So you need not break your head in making smali edits....Simply cut-copy paste....
THIS METHOD WORKS 100% ON ANY G2...ANY ROM & ANY VERSION OF ANDROID GB/ICS/JB/KK...
STEP I
> DECOMPILE YOUR SYSTEMUI.APK (MUST BE DEODEXED VERSION)
> DOWNLOAD AND UNZIP THE ZIP ATTACHED. SIMPLY COPY ALL THE FILES TO THE FOLLOWING FOLDER
"/smali/com/android/systemui/statusbar/policy"
STEP II
EDIT /res/layout/status_bar.xml with notepad ++ and find the following line
"
HTML:
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
"
SIMPLY ADD THE FOLLOWING LINE EXACTLY ABOVE IT AND SAVE
[SIZE="2"[I]][HTML]<com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="11.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />[/HTML][/I][/SIZE][/COLOR]
[B][U][SIZE="2"]NOTE: IN THE ABOVE LINE[/SIZE][/U][/B]
android:textColor="#ffffffff"----CHANGE HEX CODE TO HAVE THE COLOR OF YOUR CHOICE
android:textSize="10.0dip"-----CHANNGE THE DIP FOR SIZE OF SPEED INDICATOR
REMOVING THE ABOVE LINE FROM YOUR STATUS_BAR.MAL WILL DEACTIVATE/REMOVE DATA SPEED
STEP III
>>>>>>>RECOMPILE AS NewLGSystemUI.APK . OPEN THE ORIGINAL LGSystemUI.apk in 7zip.
>>>>>>>Drag and copy the META-INF folder and AndroidManifest.xml to your NewLGSystemUI.APK also opened in 7zip.
>>>>>>>Rename the file to LGSystemUI.apk and push to /system/priv-app with 644/-rw-r--r-- permission.
REBOOT AND ENJOY THE MOD.
I HOPE THIS SIMPLE GUIDE HELPS EVERYONE WHO WANT THE MOD WITHOUT WANTING TO USE XPOSED
DO NOT FORGET TO PRESS THANKS IF YOU LIKED THIS TUT/GUIDE. YOU PRESSING THANKS MAKES ME HAPPY
THIS WORK IS FREE FOR USE BY ANYONE IN ANY ROM. YOU HAVE MY PERMISSION. I DONT DO THIS FOR MONEY OR DONATION. I WOULD BE VERY HAPPY TO GET CREDIT FOR THIS....BE GOOD STAY GOOD AND BE SAFE
STEP I
> DECOMPILE YOUR SYSTEMUI.APK (MUST BE DEODEXED VERSION)
so it means first we need to learn how to deodex
then how to decompile
can u post some easy links for these ? or apps u use to deodex and decompile
rastigo said:
EDIT /res/layout/status_bar.xml with notepad ++ and find the following line
""
SIMPLY ADD THE FOLLOWING LINE EXACTLY ABOVE IT AND SAVE
[SIZE="2"[I]][/I][/SIZE][/COLOR]
[/QUOTE]
okay so the first question is what lines because they are not written there[COLOR="Silver"]
---------- Post added at 10:44 AM ---------- Previous post was at 10:41 AM ----------
mor_1228 said:
STEP I
> DECOMPILE YOUR SYSTEMUI.APK (MUST BE DEODEXED VERSION)
so it means first we need to learn how to deodex
then how to decompile
can u post some easy links for these ? or apps u use to deodex and decompile
Click to expand...
Click to collapse
you can check out universaldeodexer for deodexing apps and ticklemyandroid for decompiling/recompiling which can both be found on xda with many guides on how to use; I prefer to use virtoustenstudio but there are no guides on how to use and a little troublesome for beginners but everyone uses something that works for them
Click to expand...
Click to collapse
Oh ok. I did type them.... Where did they go. Am i supposed to put a text box or something. Those lines just vanished mate,
ok in the meantime I found the traffic line since I still had the yellow systemui with speed mod but when recompiling I get an error recompiling smali folder below is a little log which may help since all the errors are traffic smali related also I am working with cloudyg3 systemui on d800:
Code:
11:33:29.718: [Normal] - SmaliTool.Smali: 'Compiling folder: C:\Users\Ivan\AppData\Local\Temp\6A57BE\smali'
11:33:29.718: [Debug] - SmaliTool.Smali: 'Smali args: -Xmx512m -jar "C:\Program Files (x86)\Virtuous Ten Studio\External\Smali\smali-2.0.3.jar" --api-level 19 --output "C:\Users\Ivan\AppData\Local\Temp\6A57BE\classes.dex" "C:\Users\Ivan\AppData\Local\Temp\6A57BE\smali"'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$1.smali[24,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$1.smali[39,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$1.smali[40,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$1.smali[39,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$2.smali[24,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$2.smali[39,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$2.smali[39,15] mismatched input '"msg"' expecting END_METHOD_DIRECTIVE'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$3.smali[27,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$SettingsObserver.smali[24,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$SettingsObserver.smali[25,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$SettingsObserver.smali[25,15] mismatched input '"handler"' expecting END_METHOD_DIRECTIVE'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$SettingsObserver.smali[57,15] no viable alternative at input 'resolver''
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$SettingsObserver.smali[57,24] no viable alternative at input 'Landroid/content/ContentResolver;''
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$SettingsObserver.smali[74,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$SettingsObserver.smali[74,15] mismatched input '"selfChange"' expecting END_METHOD_DIRECTIVE'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[39,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[39,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[53,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[54,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[53,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[68,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[69,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[68,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[70,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[124,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[124,15] mismatched input '"x0"' expecting END_METHOD_DIRECTIVE'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[135,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[135,15] mismatched input '"x0"' expecting END_METHOD_DIRECTIVE'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[163,15] no viable alternative at input 'connectivityManager''
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[163,35] no viable alternative at input 'Landroid/net/ConnectivityManager;''
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[208,15] no viable alternative at input 'resolver''
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[208,24] no viable alternative at input 'Landroid/content/ContentResolver;''
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[212,15] no viable alternative at input 'newColor''
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[327,15] no viable alternative at input 'filter''
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[327,22] no viable alternative at input 'Landroid/content/IntentFilter;''
11:33:33.040: [Normal] - SmaliTool.Smali: 'Smali failed, see log for further information.'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Exitcode: 1'
11:33:33.062: [Error] - SmaliModule.ExecuteInternal: 'LGSystemUI -> Assemble smali files : Assembling smali failed!'
11:33:33.063: [Error] - Script.ExecuteScript: 'Executing LGSystemUI -> Assemble smali files failed!'
edit:might be smali related on my side, what smali/backsmali did you use to decompile/recompile?
Op updated
rastigo said:
> DECOMPILE YOUR SYSTEMUI.APK (MUST BE DEODEXED VERSION)
> DOWNLOAD AND UNZIP THE ZIP ATTACHED. SIMPLY COPY ALL THE FILES TO THE FOLLOWING FOLDER
"/smali/com/android/systemui/statusbar/policy"
STEP II
EDIT /res/layout/status_bar.xml with notepad ++ and find the following line
"
HTML:
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
"
SIMPLY ADD THE FOLLOWING LINE EXACTLY ABOVE IT AND SAVE
[SIZE="2"]
HTML:
<com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="11.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
[/SIZE][/COLOR]
Click to expand...
Click to collapse
this confusing me which line above and which line below ? its like this ?
i cant find this also
> DOWNLOAD AND UNZIP THE ZIP ATTACHED. SIMPLY COPY ALL THE FILES TO THE FOLLOWING FOLDER
"/smali/com/android/systemui/statusbar/policy"
---------- Post added at 12:45 PM ---------- Previous post was at 12:33 PM ----------
bro i guess u forgot to mention we need to deodex both LGSystemUI & lge-res
and then we need to decompile both LGSystemUI & lge-res
because /smali/com is in lge-res folder
i found this lge-res\smali\com\lge
so got these files below : now what ?
mor_1228 said:
bro i guess u forgot to mention we need to deodex both LGSystemUI & lge-res
and then we need to decompile both LGSystemUI & lge-res
because /smali/com is in lge-res folder
i found this lge-res\smali\com\lge
so got these files below : now what ?
Click to expand...
Click to collapse
no, after you decompiled LGSystemUI.apk, this is the exact path
LGSystemUI.apk\smali\com\android\systemui\statusbar\policy\
mor_1228 said:
i cant find this also
> DOWNLOAD AND UNZIP THE ZIP ATTACHED. SIMPLY COPY ALL THE FILES TO THE FOLLOWING FOLDER
"/smali/com/android/systemui/statusbar/policy"
---------- Post added at 12:45 PM ---------- Previous post was at 12:33 PM ----------
bro i guess u forgot to mention we need to deodex both LGSystemUI & lge-res
and then we need to decompile both LGSystemUI & lge-res
because /smali/com is in lge-res folder
i found this lge-res\smali\com\lge
so got these files below : now what ?
Click to expand...
Click to collapse
@mor_1228,..you should be knowing that for decompiling any apk from stock rom, both framework-res.apk and lge-res.apk are required,
rastigo said:
@mor_1228,..you should be knowing that for decompiling any apk from stock rom, both framework-res.apk and lge-res.apk are required,
Click to expand...
Click to collapse
you mean to say bro when decompling i need to paste all 3 files together ramework-res.apk and lge-res.apk & lgsystemui.apk
and when i get option to decompile then i have to decompile only lgsystemui.apk
i will make a video soon for the whole process from deodex to decompile to the end then u can tell me mistakes. :highfive:
mor_1228 said:
you mean to say bro when decompling i need to paste all 3 files together ramework-res.apk and lge-res.apk & lgsystemui.apk
and when i get option to decompile then i have to decompile only lgsystemui.apk
i will make a video soon for the whole process from deodex to decompile to the end then u can tell me mistakes. :highfive:
Click to expand...
Click to collapse
You require framework-res.apk and lge-res.apk for resources.Then decompile the LGSystemUI.apk
rastigo said:
You require framework-res.apk and lge-res.apk for resources.Then decompile the LGSystemUI.apk
Click to expand...
Click to collapse
now i got my mistakes done.
1. deodex both files lge-res and systemui
2. TO decompile first we need to install framework-res.apk and lge-res.apk with this command apktool if framework-res.apk and lge-res.apk
( i was missing this step as i was only installing framework-res.apk and left lge-res)
3. it will decomplie properly now. finally got it properly. :highfive:
now i can see all folders.
while recompile after doing all steps i faced this problem
Code:
C:\apktool>apktool b LGSystemUI
I: Using Apktool 2.0.0-Beta9 on LGSystemUI
I: Checking whether sources has changed...
I: Smaling...
LGSystemUI\smali\com\android\systemui\statusbar\policy\Traffic$1.smali[24,4] Error for input '.parameter': Invalid directive
LGSystemUI\smali\com\android\systemui\statusbar\policy\Traffic$1.smali[39,4] Error for input '.parameter': Invalid directive
LGSystemUI\smali\com\android\systemui\statusbar\policy\Traffic$1.smali[40,4] Error for input '.parameter': Invalid directive
LGSystemUI\smali\com\android\systemui\statusbar\policy\Traffic$1.smali[39,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/systemui/statusbar/policy/Traffic$1.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:72)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:338)
at brut.androlib.Androlib.buildSources(Androlib.java:299)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)
That is quite strange I make it every now and then. No such errors. Try apktool 1.5.2. I read somewhere that 2.0 handles small differently
Sent from my LG-D802 using XDA Premium 4 mobile app
rastigo said:
That is quite strange I make it every now and then. No such errors. Try apktool 1.5.2. I read somewhere that 2.0 handles small differently
Sent from my LG-D802 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
after using apkttool 1.5.2 i got this error. please check ur pm also sent a video :
C:\apktool>apktool b LGSystemUI
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'compat_mode_help_body' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
aapt: warning: string 'compat_mode_help_header' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
aapt: warning: string 'jelly_bean_dream_name' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
aapt: warning: string 'quick_settings_wifi_display_label' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
aapt: warning: string 'quick_settings_wifi_display_no_connection_label' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
aapt: warning: string 'status_bar_help_text' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
aapt: warning: string 'status_bar_help_title' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
I: Building apk file...
C:\apktool>
and in the end i got a apk file in dist folder LGSystemUI
mor_1228 said:
after using apkttool 1.5.2 i got this error. please check ur pm also sent a video :
C:\apktool>apktool b LGSystemUI
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'compat_mode_help_body' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
aapt: warning: string 'compat_mode_help_header' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
aapt: warning: string 'jelly_bean_dream_name' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
aapt: warning: string 'quick_settings_wifi_display_label' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
aapt: warning: string 'quick_settings_wifi_display_no_connection_label' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
aapt: warning: string 'status_bar_help_text' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
aapt: warning: string 'status_bar_help_title' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
I: Building apk file...
C:\apktool>
and in the end i got a apk file in dist folder LGSystemUI
Click to expand...
Click to collapse
That is not an error mate...congrats you did it. Now drag the meta-inf and the androidmanifest.xml from the original apk to the new one using 7zip. Then replace your file in /system/priv-app with 644 permissions.
Those lines are warnings where apktool cannot find translations to the code in framework-res.apk. Then it looks for the same in lge-res.apk and thus it says found.....
All said and done... You have successfully compiled the mod.... :good:
Well, after a hard work finally got it xD but for remove speed indicator thx for your help
Lol thnkx it means finally I did it will test soon as i am on your stock 20b flashable file from ur thread.
I extracted system . IMG. But fails in deodex
Sent from my LG-D802 using Tapatalk
Thanks @rastigo but I did have some issues on my side but it's all good since my small amount of knowledge on modding helped out and was able to get it working
Sent from my PIKACHU powered LG G3 D800
in CM12.1 for Xiao mi Read Mi 1s, now I have the error as bllow:
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: out/host/linux-x86/obj32/SHARED_LIBRARIES/libjavacore_intermediates/luni/src/main/native/android_system_OsConstants.o: file is empty
libcore/luni/src/main/native/Register.cpp:36: error: undefined reference to 'register_android_system_OsConstants(_JNIEnv*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [out/host/linux-x86/obj32/lib/libjavacore.so] Error 1
who can help me?
Recommendation
Hello,
to get an answer you should at least:
Name the thread appropriately
Elaborate when you are getting this error - after which step and procedure
Put code into
Code:
environment
[/LIST]
jiang18109913 said:
in CM12.1 for Xiao mi Read Mi 1s, now I have the error as bllow:
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: out/host/linux-x86/obj32/SHARED_LIBRARIES/libjavacore_intermediates/luni/src/main/native/android_system_OsConstants.o: file is empty
libcore/luni/src/main/native/Register.cpp:36: error: undefined reference to 'register_android_system_OsConstants(_JNIEnv*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [out/host/linux-x86/obj32/lib/libjavacore.so] Error 1
who can help me?
Click to expand...
Click to collapse
I think u might ve installed 64 bit os. I ve no idea. Just tell me when this error occur. Best way try changing ur rom. Thats it. This might be helpful
http://forum.xda-developers.com/redmi-1s/general/guide-unbricking-redmi-1s-bricked-t2905426
Is it resolved ? How ?
I am compiling cm 14 for core prime ve 3g (sm-g361h).
i am getting these error after executing mka bacon command (i have skipped all log above errors). I am building rom from source first time so i ain't got any clue what this error says (maybe a little bit but that ain't helping).
Code:
device/samsung/coreprimeve3g/ril/SamsungSPRDRIL.java:276: error: method does not override or implement a method from a supertype
@Override
^
device/samsung/coreprimeve3g/ril/SamsungSPRDRIL.java:314: error: method processSolicited in class RIL cannot be applied to given types;
return super.processSolicited(p);
^
required: Parcel,int
found: Parcel
reason: actual and formal argument lists differ in length
device/samsung/coreprimeve3g/ril/SamsungSPRDRIL.java:366: error: method does not override or implement a method from a supertype
@Override
^
device/samsung/coreprimeve3g/ril/SamsungSPRDRIL.java:422: error: method processUnsolicited in class RIL cannot be applied to given types;
super.processUnsolicited(p);
^
required: Parcel,int
found: Parcel
reason: actual and formal argument lists differ in length
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
[ 3% 1018/28725] host C++: libLLVMCor...2 <= external/llvm/lib/IR/Function.cpp
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/hamza/cm14'
#### make failed to build some targets (27:37 (mm:ss)) ####
bump