Related
Hi,
I'm trying to edit the HTC_IME.apk that came from tha "Deodexed" package to change the FR Azerty keyboard to a QWERTY one.
I extract the APK with apktool: "apktool d HTC_IME.apk c:\HTC_IME\"
I then replace the content of the 2 (portrait and landscape) XML file of the keyboard layout to have what I want.
I repack the APK with apktool: "apktool b c:\HTC_IME\ c:\HTC_IME.apk"
I then re-sign the new package with the autosign.bat utility.
I push it in /system/app to replace the original one that came with the "RodriguezStyle_MoDaCoMoDrOm_V2-3_FIX_Vivid_Sense_A2SD" rom and reboot the phone.
It's all seem ok but as soon as I start the keyboard I get a force close.
I've also try to modify the htc_ime_lo mod by jonasl but it does the same thing. I can install it but as soon as it try to start, force close
Does I have missed something about editing XML file of an APK ? It's the first time I try.
EDIT:
I know it's possible, they do it in the apktool demo!! youtube.com/watch?v=1Aa9zsh6F7A
Thanks !
mr_sarge said:
Hi,
I'm trying to edit the HTC_IME.apk that came from tha "Deodexed" package to change the FR Azerty keyboard to a QWERTY one.
I extract the APK with apktool: "apktool d HTC_IME.apk c:\HTC_IME\"
I then replace the content of the 2 (portrait and landscape) XML file of the keyboard layout to have what I want.
I repack the APK with apktool: "apktool b c:\HTC_IME\ c:\HTC_IME.apk"
I then re-sign the new package with the autosign.bat utility.
I push it in /system/app to replace the original one that came with the "RodriguezStyle_MoDaCoMoDrOm_V2-3_FIX_Vivid_Sense_A2SD" rom and reboot the phone.
It's all seem ok but as soon as I start the keyboard I get a force close.
I've also try to modify the htc_ime_lo mod by jonasl but it does the same thing. I can install it but as soon as it try to start, force close
Does I have missed something about editing XML file of an APK ? It's the first time I try.
Thanks !
Click to expand...
Click to collapse
I'm using it in the hd2 and I installed HTC_ime.apk and clicker.apk
Sent from my HTC HD2 using Tapatalk
Forgot to tell that I have a HTC Legend from Virgin that came with a QWERTY French HTC_IME.
But can't get it with any custom rom since "French (Canada)" is not a choice in the language option. I've downloaded "morelocale 2" to set Fr_CF but it don't give the QWERTY French keyboard.
If I put an umnodified HTC_IME.apk in /system/app or try to instal unmodified HTC_IME_lo.apk (Jonasl mod) it work.
If I try to rebuild one, changing "land_qwery_fr.xm"l and "qwerty_fr.xml" in "/res/xml/" so that when my HTC is in French, my keyboard appear in QWERTY produce the error each time I try.
Just tested it in the Android Emulator. The keyboard still fail with "The application HTC_IME mod (process jonasl.ime) has stopped unexpectedly. Please try again"
Same thing with the original HTC_IME.apk with edited qwerty_fr.xml file.
I don't know what is wrong...
Me again,
Juste tested decompile-recompile-signing without doing anything to the file and the keyboard crash in US and in French.
Why I'm not able to reocompile this APK !
few steps
Did you try to look at the difference of sizes of the .apk package? sometimes a device wants uncompressed apk, when apktool always compress it.
Try to just pull the .apk resign it and push it back, if it crashes it may mean that the rom rejects its signature and you should resign all /system/app and /system/framework directories with the same key.
And you always can look at logcat to identify the problem( by reading the stack trace) which can tell you where there is a problem inside the flow of the program- just in case you edited something you shouldnt
I've just resign HTC_IME_lo.apk without decompile and recompiling it and the apk work.
I will put the log here because I'm not sure what to check !
Ho, and when I compile the apk back, I got some error:
Code:
>apktool b HTC_IME\
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'kb_tutorial_fuzzy_body' has no default translation in C:\Users\SaRgE\Desktop\apktool1.3.2\HTC_IME\res; found: no
aapt: warning: string 'kb_tutorial_fuzzy_title' has no default translation in C:\Users\SaRgE\Desktop\apktool1.3.2\HTC_IME\res; found: no
aapt: warning: string 'kb_tutorial_longpress_body' has no default translation in C:\Users\SaRgE\Desktop\apktool1.3.2\HTC_IME\res; found: no
aapt: warning: string 'kb_tutorial_longpress_title' has no default translation in C:\Users\SaRgE\Desktop\apktool1.3.2\HTC_IME\res; found: no
aapt: warning: string 'kb_tutorial_main_desc' has no default translation in C:\Users\SaRgE\Desktop\apktool1.3.2\HTC_IME\res; found: no
aapt: warning: string 'kb_tutorial_main_title' has no default translation in C:\Users\SaRgE\Desktop\apktool1.3.2\HTC_IME\res; found: no
aapt: warning: string 'keyboard_ime_settings_fqwerty_space_title' has no default translation in C:\Users\SaRgE\Desktop\apktool1.3.2\HTC_IME\res; found: no
aapt: warning: string 'main_menu_title' has no default translation in C:\Users\SaRgE\Desktop\apktool1.3.2\HTC_IME\res; found: no
aapt: warning: string 'vibration_feedback' has no default translation in C:\Users\SaRgE\Desktop\apktool1.3.2\HTC_IME\res; found: no
I: Copying libs...
I: Building apk file...
C:\Users\SaRgE\Desktop\apktool1.3.2>
Here's the log. I didn't touch anything. Only decompile-recompile-sign:
Code:
I/ActivityManager( 67): Start proc jonasl.ime for service jonasl.ime/.HTCIMEService: pid=613 uid=10028 gids={1015}
W/InputManagerService( 67): Window already focused, ignoring focus gain of: [email protected]
D/dalvikvm( 613): Trying to load lib /data/data/jonasl.ime/lib/libt99.so 0x43d0c108
D/dalvikvm( 613): Added shared lib /data/data/jonasl.ime/lib/libt99.so 0x43d0c108
I/XT9_C ( 613): File "/data/data/jonasl.ime/udb" does not exist.
I/XT9_C ( 613): [loadDefaultRUDB] RUDB size = 20480 (loaded)
I/XT9_C ( 613): [RegisterXT9MDB] MDB size=64 (loaded)
I/XT9_C ( 613): Load mdbType=0 time=0.001671(sec)
I/XT9_JNI ( 613): [Java_T9_nativeLoad] Native side initialization done.
W/WindowManager( 67): Attempted to add window with non-application token WindowToken{43d320f8 token=null}. Aborting.
I/HTC_IME ( 613): onCreateInputView
D/ ( 613): unable to unlink '/data/data/jonasl.ime/shared_prefs/jonasl.i
me_preferences.xml.bak': No such file or directory (errno=2)
I/XT9_JNI ( 613): [Java_T9_nativeLoad] Native side is already initiated.
I/XT9_JNI ( 613): [Java_T9_nativeLoad] Native side is already initiated.
W/ResourceType( 613): No package identifier when getting name for resource number 0x00000000
E/Keyboard( 613): Parse error:android.content.res.Resources$NotFoundException:String resource ID #0x0
D/AndroidRuntime( 613): Shutting down VM
W/dalvikvm( 613): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
E/AndroidRuntime( 613): Uncaught handler: thread main exiting due to uncaught exception
D/dalvikvm( 613): GC freed 3558 objects / 280264 bytes in 138ms
E/AndroidRuntime( 613): java.lang.NullPointerException
E/AndroidRuntime( 613): at com.htc.android.htcime.ezsip.EZSIPView.setKeyboard(EZSIPView.java:114)
E/AndroidRuntime( 613): at com.htc.android.htcime.ezsip.PortQwertySIPView.setKeyboardbyLang(PortQwertySIPView.java:129)
E/AndroidRuntime( 613): at com.htc.android.htcime.ezsip.PortQwertySIPView.init(PortQwertySIPView.java:78)
E/AndroidRuntime( 613): at com.htc.android.htcime.util.CodeIMEFinder.loadAllIME(CodeIMEFinder.java:117)
E/AndroidRuntime( 613): at com.htc.android.htcime.HTCIMEService.execOnceAtBoot(HTCIMEService.java:1771)
E/AndroidRuntime( 613): at com.htc.android.htcime.HTCIMEService.onCreateInputView(HTCIMEService.java:176)
E/AndroidRuntime( 613): at android.inputmethodservice.InputMethodService.updateInputViewShown(InputMethodService.java:950)
E/AndroidRuntime( 613): at android.inputmethodservice.InputMethodService.showWindowInner(InputMethodService.java:1303)
E/AndroidRuntime( 613): at android.inputmethodservice.InputMethodService.showWindow(InputMethodService.java:1278)
E/AndroidRuntime( 613): at android.inputmethodservice.InputMethodService$InputMethodImpl.showSoftInput(InputMethodService.java:388)
E/AndroidRuntime( 613): at android.inputmethodservice.IInputMethodWrapper.executeMessage(IInputMethodWrapper.java:148)
E/AndroidRuntime( 613): at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:45)
E/AndroidRuntime( 613): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 613): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 613): at android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime( 613): at java.lang.reflect.Method.invokeNative(NativeMethod)
E/AndroidRuntime( 613): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 613): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime( 613): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime( 613): at dalvik.system.NativeStart.main(Native Method)
I/Process ( 67): Sending signal. PID: 613 SIG: 3
I/dalvikvm( 613): threadid=7: reacting to signal 3
E/dalvikvm( 613): Unable to open stack trace file '/data/anr/traces.txt': Permission denied
I/Process ( 706): Sending signal. PID: 706 SIG: 9
I/ActivityManager( 67): Process jonasl.ime (pid 706) has died.
W/ActivityManager( 67): Service crashed 2 times, stopping: ServiceRecord{43cb4aa8 jonasl.ime/.HTCIMEService}
And here's the log when the apps is working (before I try to decompile/reompile it):
Code:
I/ActivityManager( 67): Start proc jonasl.ime for service jonasl.ime/.HTCIMEService: pid=957 uid=10028 gids={1015}
D/dalvikvm( 957): Trying to load lib /data/data/jonasl.ime/lib/libt99.so 0x43d0c108
D/dalvikvm( 957): Added shared lib /data/data/jonasl.ime/lib/libt99.so 0x43d0c108
I/XT9_C ( 957): File "/data/data/jonasl.ime/udb" does not exist.
I/XT9_C ( 957): [loadDefaultRUDB] RUDB size = 20480 (loaded)
I/XT9_C ( 957): [RegisterXT9MDB] MDB size=64 (loaded)
I/XT9_C ( 957): Load mdbType=0 time=0.001726(sec)
I/XT9_JNI ( 957): [Java_T9_nativeLoad] Native side initialization done.
W/WindowManager( 67): Attempted to add window with non-application token WindowToken{43d320f8 token=null}. Aborting.
I/HTC_IME ( 957): onCreateInputView
D/ ( 957): unable to unlink '/data/data/jonasl.ime/shared_prefs/jonasl.ime_preferences.xml.bak': No such file or directory (errno=2)
I/XT9_JNI ( 957): [Java_T9_nativeLoad] Native side is already initiated.
I/XT9_JNI ( 957): [Java_T9_nativeLoad] Native side is already initiated.
D/dalvikvm( 957): GC freed 3655 objects / 280792 bytes in 147ms
I/HTC_IME_jonasl( 957): Current language not set, defaulting to 0 English
E/ActivityThread( 957): Failed to find provider info for customization_settings
E/ActivityThread( 957): Failed to find provider info for customization_settings
E/ActivityThread( 957): Failed to find provider info for customization_settings
E/ActivityThread( 957): Failed to find provider info for customization_settings
D/dalvikvm( 957): Trying to load lib /system/lib/libsoundpool.so 0x0
D/dalvikvm( 957): Added shared lib /system/lib/libsoundpool.so 0x0
W/Resources( 957): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f090195}
W/Resources( 957): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f090196}
D/dalvikvm( 957): GC freed 4366 objects / 388072 bytes in 41ms
I/XT9_C ( 957): [RegisterXT9MDB] MDB size=22112 (loaded)
I/XT9_C ( 957): Load mdbType=1 time=0.002322(sec)
D/dalvikvm( 957): GC freed 5519 objects / 327536 bytes in 72ms
try to use apktool 1.1
skoperst said:
try to use apktool 1.1
Click to expand...
Click to collapse
1.1 is throwing a lot or erroe like:
Code:
C:\Users\SaRgE\Desktop\apktool1.1.0\HTC_IME\smali\com\htc\android\htcime\R$string.smali[434,49] [smali_file, field, nonvoid_type_descriptor] mismatched input [@3068,14631:14632=':I',<158>,434:49] expecting set null
C:\Users\SaRgE\Desktop\apktool1.1.0\HTC_IME\smali\com\htc\android\htcime\R$string.smali[436,49] [smali_file, field, nonvoid_type_descriptor] mismatched input [@3081,14699:14700=':I',<158>,436:49] expecting set null
C:\Users\SaRgE\Desktop\apktool1.1.0\HTC_IME\smali\com\htc\android\htcime\R$string.smali[438,49] [smali_file, field, nonvoid_type_descriptor] mismatched input [@3094,14767:14768=':I',<158>,438:49] expecting set null
C:\Users\SaRgE\Desktop\apktool1.1.0\HTC_IME\smali\com\htc\android\htcime\R$string.smali[440,49] [smali_file, field, nonvoid_type_descriptor] mismatched input [@3107,14835:14836=':I',<158>,440:49] expecting set null
C:\Users\SaRgE\Desktop\apktool1.1.0\HTC_IME\smali\com\htc\android\htcime\R$string.smali[442,49] [smali_file, field, nonvoid_type_descriptor] mismatched input [@3120,14903:14904=':I',<158>,442:49] expecting set null
C:\Users\SaRgE\Desktop\apktool1.1.0\HTC_IME\smali\com\htc\android\htcime\R$string.smali[444,49] [smali_file, field, nonvoid_type_descriptor] mismatched input [@3133,14971:14972=':I',<158>,444:49] expecting set null
Maybe try apk manager
Already Tried it and it doeas the same thing. I've notified Brutt.All, the apktool creator. He have a bug with the latest version of apktool. see here: http://code.google.com/p/android-apktool/issues/detail?id=100
I will wait for is new version to see if it work.
Thanks
Have you solved the problem. I try to mod HTC_IME and has the same problem - repacked keyboard closes if you try to use it.
hello all
i tried port jb to wildfire
but touch screen not work, i don't know, i try use my devices idc
can somebody help me?
This is logcat
KoolSavas95 said:
Did u replaced all hw folders in lib folder? Maybe need to edit framework.jar
Sent from my LG-P990 using xda premium
Click to expand...
Click to collapse
i will try
I think there are some permissions missing also from etc/permissions
W/PackageManager( 316): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.mail in package com.android.contacts
W/PackageManager( 316): Unknown permission android.permission.ADD_SYSTEM_SERVICE in package com.android.phone
W/PackageManager( 316): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.providers.calendar
W/PackageManager( 316): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.cl in package com.android.providers.calendar
W/PackageManager( 316): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.mail in package com.android.calendar
W/PackageManager( 316): Not granting permission android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS to package com.android.browser (protectionLevel=2 flags=0x9be45)
W/PackageManager( 316): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.providers.contacts
W/PackageManager( 316): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.cp in package com.android.providers.contacts
W/PackageManager( 316): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.settings
W/PackageManager( 316): Unknown permission com.google.android.googleapps.permission.ACCESS_GOOGLE_PASSWORD in package com.android.development
W/PackageManager( 316): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.development
W/PackageManager( 316): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.ALL_SERVICES in package com.android.development
W/PackageManager( 316): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.YouTubeUser in package com.android.development
W/PackageManager( 316): Not granting permission android.permission.DEVICE_POWER to package com.android.deskclock (protectionLevel=2 flags=0x8be45)
Click to expand...
Click to collapse
deba1994 said:
I think there are some permissions missing also from etc/permissions
Click to expand...
Click to collapse
oh no,it is not related to touch screen
it here:
Code:
D/EventHub( 316): No input device configuration file found for device 'compass'.
D/EventHub( 316): No input device configuration file found for device 'curcial-oj'.
I/SystemServer( 316): Bluetooth Service
I/EventHub( 316): New device: id=2, fd=105, path='/dev/input/event6', name='curcial-oj', classes=0x9, configuration='', keyLayout='/system/usr/keylayout/Generic.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false, usingSuspendBlockIoctl=false, usingClockIoctl=false
D/EventHub( 316): No input device configuration file found for device 'lightsensor-level'.
D/EventHub( 316): No input device configuration file found for device 'buzz-keypad'.
I/EventHub( 316): New device: id=5, fd=107, path='/dev/input/event3', name='buzz-keypad', classes=0x1, configuration='', keyLayout='/system/usr/keylayout/buzz-keypad.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=true, usingSuspendBlockIoctl=false, usingClockIoctl=false
D/EventHub( 316): No input device configuration file found for device 'proximity'.
D/AK8973 ( 113): HRET = AKSC_HOF_DSS_START
E/filemap ( 316): mmap(0,4096) failed: No such device
E/OMXCodec( 109): mediacodec list instance returned NULL
E/AudioCache( 109): Error 1, -2147483648 occurred
E/SoundPool( 316): Unable to load sample: (null)
I/EventHub( 316): New device: id=7, fd=108, path='/dev/input/event1', name='atmel-touchscreen', classes=0x55, configuration='/system/usr/idc/atmel-touchscreen.idc', keyLayout='/system/usr/keylayout/Generic.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false, usingSuspendBlockIoctl=false, usingClockIoctl=false
D/EventHub( 316): No input device configuration file found for device 'h2w headset'.
D/AK8973 ( 113): HRET = AKSC_HOF_DSS_REQUEST
I/EventHub( 316): New device: id=8, fd=98, path='/dev/input/event0', name='h2w headset', classes=0x1, configuration='', keyLayout='/system/usr/keylayout/h2w_headset.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false, usingSuspendBlockIoctl=false, usingClockIoctl=false
D/AK8973 ( 113): HRET = AKSC_HOF_DSS_REQUEST
I/BluetoothProfileState( 316): Message:Entering Stable State
I/InputReader( 316): Device added: id=-1, name='Virtual', sources=0x00000301
I/InputReader( 316): Device added: id=8, name='h2w headset', sources=0x00000101
I/InputReader( 316): Touch device 'atmel-touchscreen' could not query the properties of its associated display 0. The device will be inoperable until the display size becomes available.
I/InputReader( 316): Device added: id=7, name='atmel-touchscreen', sources=0x00001503
I/InputReader( 316): Device added: id=0, name='buzz-keypad', sources=0x00000101
D/AK8973 ( 113): HRET = AKSC_HOF_DSS_REQUEST
D/AK8973 ( 113): HRET = AKSC_HOF_DSS_REQUEST
I/InputReader( 316): Device added: id=2, name='curcial-oj', sources=0x00002103
E/Trace ( 316): error opening trace file: No such file or directory (2)
Code:
I/SystemServer( 316): Accessibility Manager
I/InputReader( 316): Reconfiguring input devices. changes=0x00000004
I/InputReader( 316): Device reconfigured: id=7, name='atmel-touchscreen', surface size is now 240x320, mode is 1
I/ActivityManager( 316): Config changed: {1.0 0mcc0mnc en_US sw320dp w320dp h401dp smll port ?uimode ?night finger -keyb/h/h -nav/h s.2}
Ok i'm not that good at this but will try to help....how did you port JB??did you compile from source?
i try port jb of heroc here
i port it by replace my zImage and ramdisk
I think u could try porting from here
and i think as koolsavas95 said..u may need to replace your hw folder in lib with what i am not sure....maybe u can try to use ics build as base ?
EDIT : that last mediafire link that i attached was wrong..sry dont download that !!!
thank you, deba1994
i will try
Best of luck and maybe if you are good at compiling u can maybe contact that x10 mini dev for help
tathanhlam66 said:
hello all
i tried port jb to wildfire
but touch screen not work, i don't know, i try use my devices idc
can somebody help me?
This is logcat
Click to expand...
Click to collapse
Any luck with the port?
I can not port it
my kernel does not work touch screen
If you are able to fix compiling errors you can try to build jb from source, just use sympnotic github: repo init -u git://github.com/sympnotic/android.git -b jellybean
I've tried to build from here but i got errors while compiling and i'm not able to solve them
I am downloading and compiling now from sympnotic. Let u know if it works
edit:
I could get past the bionic error, but the egl and external packads error are too much. Will try another time again.
*delete*
So, i tried to compile V20a kernel and i get this errors:
Code:
CC drivers/power/lge_pm_sysfs.o
drivers/power/lge_pm_sysfs.c:25:38: fatal error: ../../kernel/power/power.h: No such file or directory
compilation terminated.
make[2]: *** [drivers/power/lge_pm_sysfs.o] Error 1
make[1]: *** [drivers/power] Error 2
make[1]: *** Waiting for unfinished jobs....
Code:
LD drivers/net/built-in.o
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
CC net/netfilter/xt_length.o
Anyone tried to compile? How can i solve this error?
i managed to compile it but it doesn't boot . logcat not available.
Please, can you give me some ideea as i am not a developer. I will flash now my original boot img
hmmm is bad
Hint
Hello,
I also discovered that the way the kernel should be compiled according to the readme file is impossible. It does mention a defconfig file that is not available.
However, it is possible to get the config file of an existing kernel, because it is compiled in in the kernel:
Use the following steps, when your PC is connected to your phone with an working v20a kernel:
$adb pull /proc/config.gz
$gunzip config.gz
$mv config YOURKERNELROOT/arch/arm/configs/u2_my_defconfig
$cd YOURKERNELROOT
$make youroptions u2_my_defconfig
de-wolff said:
Hello,
I also discovered that the way the kernel should be compiled according to the readme file is impossible. It does mention a defconfig file that is not available.
However, it is possible to get the config file of an existing kernel, because it is compiled in in the kernel:
Use the following steps, when your PC is connected to your phone with an working v20a kernel:
$adb pull /proc/config.gz
$gunzip config.gz
$mv config YOURKERNELROOT/arch/arm/configs/u2_my_defconfig
$cd YOURKERNELROOT
$make youroptions u2_my_defconfig
Click to expand...
Click to collapse
I built it using my phones defconfig and removed this from makefile "drivers/power/lge_pm_sysfs.o". The build was successful but it doesn't boot. I will start working on it today.
Update: IT BOOTS!
I wasn't packing it correctly:
These are the lines to pack it:
./mkbootimg --kernel zImage --ramdisk boot.img-ramdisk.gz --cmdline androidboot.hardware=u0 --base 0x00200000 --pagesize 4096 -o boot.img
Click to expand...
Click to collapse
kernel version is:
Linux version 3.4.0-perf ([email protected]) (gcc version 4.6.2 20111004 (prerelease) (Linaro GCC 4.6-2011.10) ) #2 PREEMPT Wed Apr 17 23:22:22 EEST 2013
Click to expand...
Click to collapse
i will start patching tomorrow or later because i have to figure out how to OC and how to git
tudorsirb said:
So, i tried to compile V20a kernel and i get this errors:
Code:
CC drivers/power/lge_pm_sysfs.o
drivers/power/lge_pm_sysfs.c:25:38: fatal error: ../../kernel/power/power.h: No such file or directory
compilation terminated.
make[2]: *** [drivers/power/lge_pm_sysfs.o] Error 1
make[1]: *** [drivers/power] Error 2
make[1]: *** Waiting for unfinished jobs....
Code:
LD drivers/net/built-in.o
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
CC net/netfilter/xt_length.o
Anyone tried to compile? How can i solve this error?
Click to expand...
Click to collapse
open lge_pm_sysfs.c and set power.h file to the correct path.
moon61 said:
open lge_pm_sysfs.c and set power.h file to the correct path.
Click to expand...
Click to collapse
i fixed that error, the kernel build and boots from stock sources. Now i'm trying to figure out what to do with the modules as wireless doesn't work, how to apply patches and how to overclock because i can't find freqs in acpuclock. Any sugestions?
How to modify kernel
Once you are able to make a working kerrnel, it is quite easy to modify it.
After you did make a working kernel, you can do from the commandline in the kernel root:
Make [crosscompile options] menuconfig.
Now you can change all kernel options, using a menu.
You have to install ncurses-dev, before you can do a make menuconfig
Once you are ready using the menuconfig, a new config file is created, with the name ,config ([dot]config). Beware that this is a hidden file in linux!. You can rename it and move it to your config dir.
Of course, most of the options are hardware related, and you do not want to change them, but the options you want to change, you can find all in the menu, together with a brief explanation of their usage,
(Excuses for my bad english, it is not my primary language)
de-wolff said:
Once you are able to make a working kerrnel, it is quite easy to modify it.
After you did make a working kernel, you can do from the commandline in the kernel root:
Make [crosscompile options] menuconfig.
Now you can change all kernel options, using a menu.
You have to install ncurses-dev, before you can do a make menuconfig
Once you are ready using the menuconfig, a new config file is created, with the name ,config ([dot]config). Beware that this is a hidden file in linux!. You can rename it and move it to your config dir.
Of course, most of the options are hardware related, and you do not want to change them, but the options you want to change, you can find all in the menu, together with a brief explanation of their usage,
(Excuses for my bad english, it is not my primary language)
Click to expand...
Click to collapse
Thanks, this will be useful after i apply some upstream changes. I know about menuconfig but i haven't got the tine to check it out. Right now i'm trying to overclock this kernel and i keep getting compile errors (took some code from l5). Will come back with info. If you can help me these days PM me with a gtalk ID.
tudorsirb said:
i fixed that error, the kernel build and boots from stock sources. Now i'm trying to figure out what to do with the modules as wireless doesn't work, how to apply patches and how to overclock because i can't find freqs in acpuclock. Any sugestions?
Click to expand...
Click to collapse
Yes I have a problem with wifi too, even I used new compiled modules. Did you fix it?
Sent from my LG-P705 using Tapatalk 2
moon61 said:
Yes I have a problem with wifi too, even I used new compiled modules. Did you fix it?
Sent from my LG-P705 using Tapatalk 2
Click to expand...
Click to collapse
I didn't fix it. I will look into it later (i'm at work ATM).
Logcat is:
Code:
need to unregister
04-22 11:28:19.010 E/WifiStateMachine( 449): Couldn't get getWiFiOffloadingIfaceIface :
04-22 11:28:19.010 E/WifiStateMachine( 449): useWiFiOffloading() : false
04-22 11:28:19.010 E/WifiStateMachine( 449): CONFIG_LGE_WLAN_PATH : true
04-22 11:28:19.010 D/WifiStateMachine( 449): setWifiState: enabling
04-22 11:28:19.010 I/WifiServiceExt( 449): WIFI_STATE_CHANGED_ACTION [2]
04-22 11:28:19.020 D/QuickSettingsReceiverStation( 514): Received: android.net.wifi.WIFI_STATE_CHANGED
04-22 11:28:19.030 E/WifiHW ( 449): nv_cmd_remote status 0
04-22 11:28:19.030 E/WifiHW ( 449): nv_cmd_remote status 0
04-22 11:28:19.030 E/WifiHW ( 449): Modem MAC address: a8 16 b2 93 c8 f6
04-22 11:28:19.030 E/WifiHW ( 449): Set wifi mac address a8 16 b2 93 c8 f6
04-22 11:28:19.030 E/WifiUtil( 449): U0 : CONFIG_LGE_WLAN_U0_JB_PATCH
04-22 11:28:19.030 I/ONCRPC ( 449): Setup RPC Call for task 4049f920
04-22 11:28:19.030 I/ONCRPC ( 449): oncrpc_xdr_call_msg_start: Prog: 3000000e, Ver: 00090001, Proc: 00000009
04-22 11:28:19.030 I/ONCRPC ( 449): xdr_std_msg_send_call: Sent Xid: a68, Prog: 3000000e, Ver: 00090001, Proc: 00000009
04-22 11:28:19.030 I/ONCRPC ( 449): xdr_std_msg_send_call: Received Reply Xid: a68, Prog: 3000000e, Ver: 00090001, Proc: 00000009
04-22 11:28:19.090 E/WifiStateMachine( 449): Failed to load driver!
04-22 11:28:19.090 E/WifiStateMachine( 449): Couldn't get getWiFiOffloadingIfaceIface :
04-22 11:28:19.090 E/WifiStateMachine( 449): useWiFiOffloading() : false
04-22 11:28:19.090 E/WifiStateMachine( 449): CONFIG_LGE_WLAN_PATH : true
04-22 11:28:19.090 D/WifiStateMachine( 449): setWifiState: unknown state
04-22 11:28:19.090 I/WifiServiceExt( 449): WIFI_STATE_CHANGED_ACTION [4]
04-22 11:28:19.090 E/WifiServiceExt( 449): WifiManager.WIFI_STATE_UNKNOWN
04-22 11:28:19.090 D/QuickSettingsReceiverStation( 514): Received: android.net.wifi.WIFI_STATE_CHANGED
Any news about how to fix wifi problem?
Sent from my LG-P705 using Tapatalk 2
any news??
Ok, i think i had find where the problem is. I change the cfg80211 value in the config file to "m". And know wifi work fine.
This is the kernel link
http://db.tt/lfJeyFeY
The kernel also o/c able too
Thanx to @tudorsirb :thumbup: and sorry for my bad english.
Sent from my LG-P705 using Tapatalk 2
moon61 said:
Ok, i think i had find where the problem is. I change the cfg80211 value in the config file to "m". And know wifi work fine.
This is the kernel link
http://db.tt/lfJeyFeY
The kernel also o/c able too
Thanx to @tudorsirb :thumbup: and sorry for my bad english.
Sent from my LG-P705 using Tapatalk 2
Click to expand...
Click to collapse
Did you use pll2 or pll4 for oc? If you use pll4 there's no difference in performance when using the phone becuase our phone does not OC that way.
Your OC code hould look like this:
Code:
{ 1, 1200000, [B]ACPU_PLL_2, 2, 0, [/B]150000, 3, 7, 200000 },
I learned it the hard way . Check out github for more references.
Hello,
i got a D802 phone which apparently has some sensors disabled in some way. When apps try to use them (so the system see them as existent) they fail or crash.
here some example log:
-Orientation:
Code:
W/OrientationEventListener( 957): Cannot detect sensors. Invalid disable
-Calibration:
Code:
E/AndroidRuntime( 7456): java.lang.NullPointerException: Attempt to invoke virtual method 'int android.hardware.Sensor.getType()' on a null object reference
E/AndroidRuntime( 7456): at com.qualcomm.sensors.sensortest.SensorID$SensorTyp e.getSensorType(SensorID.java:61)
E/AndroidRuntime( 7456): at com.android.settings.lge.MotionSensorCalibration$C alThreadRunnable.run(MotionSensorCalibration.java: 228)
E/AndroidRuntime( 7456): at java.lang.Thread.run(Thread.java:818)
-Gravity:
Code:
I/SensorManager(14094): registerListenerImpl() [Sensor: LGE Gravity Sensor, Rate: 200000, SensorEventListener: [email protected]] by com.kfodor.MySensors.SensorView.registerSensorListener():735
D/sensors_hal_SAM( 949): batch:sensor(android.sensor.gravity) handle:29 freq:1 report_rate:1 max:1.000000 min:0.000000
D/sensors_hal_Gravity( 949): enable: handle=29
D/sensors_hal_Gravity( 949): enable: handle=29, freq=1 report_rate=1 batch_rate=0 batched=0 wakeup 0
D/sensors_hal_Gravity( 949): enable: handle=29 synchronous req
I/sensors_hal_SAM( 949): sendEnableReq:sensor(android.sensor.gravity) Sending enable to svc no:20
E/Sensors ( 474): sns_acm_mr.c(776):Request made to disabled service
E/Sensors ( 474): sns_main.c(1331):Error writing request. sns_err 3 error 0 qmi_err 0
E/sensors_hal_Gravity( 949): processResp: Msg 2; Result: 1, Error: 3
D/sensors_hal_Gravity( 949): enable: Received Response: 1
-Acceleration:
Code:
I/sensors_hal_SAM( 949): sendEnableReq:sensor(android.sensor.linear_acceleration) Sending enable to svc no:20
E/Sensors ( 474): sns_acm_mr.c(776):Request made to disabled service
E/Sensors ( 474): sns_main.c(1331):Error writing request. sns_err 3 error 0 qmi_err 0
E/sensors_hal_LinearAccel( 949): processResp: Msg 2; Result: 1, Error: 3
-Rotation:
Code:
I/sensors_hal_SAM( 949): sendEnableReq:sensor(android.sensor.rotation_vector) Sending enable to svc no:18
E/Sensors ( 474): sns_acm_mr.c(776):Request made to disabled service
E/Sensors ( 474): sns_main.c(1331):Error writing request. sns_err 3 error 0 qmi_err 0
E/sensors_hal_RV( 949): processResp: Msg 2; Result: 1, Error: 3
I/SensorManager(14094): removeAllSensors() [Sensor: LGE Rotation Vector Sensor] by com.kfodor.MySensors.SensorView.registerSensorListener():732
I followed a lot of paths to find a solution, different distributions and full revert to all available stock versions. no way.
As my last trial I want to try to compare my NV data with a working one to search for some misconfigured parameter.
I found a great guide on how to access and extract all NV parameters and save to a text file, here:
http://www.droidviews.com/how-to-bac...imei-on-lg-g2/
As you can see, the guide is for changing IMEI, but the application permit to dump all parameters to a file.
I ask some good man to send me his dump. or i can send mine and get the differences. Because this file contains sensitive data, they should be removed (IMEI, S/N, MAC) even if i am not interested in stealing ids!
I have a D802 32GB.
thank you to everyone, hope to receive some useful feedback!.
Fabio T
After a dealing with selling my house and moving into a new one, I've finally got my build system back together and connected to the Internet. This Ubuntu machine has been successfully building OmniROM 4.x for a couple devices and 5.1 for Nexus 5 for some time, but now I have a puzzle.
The "nightly" version of OmniROM boots and runs fine on the hardware. However, when I try to boot the "homemade" version of 5.1, it fails to get very far in the process. I've already pulled down a fresh repo, installed the factory drivers from https://developers.google.com/android/nexus/drivers (originally 5.1 LMY48B, but now have also tried fresh copies of 5.1 LMY48M) and everything appears to build properly.
Looking at the two logcat outputs, the earliest hints of error seem to be the inability to load a key library
NIGHTLY:
Code:
03-31 16:27:29.726 D/QSEECOMD: ( 179): qseecom listener services process entry PPID = 1
03-31 16:27:29.726 E/QSEECOMD: ( 179): Listener: index = 0, hierarchy = 0
03-31 16:27:29.733 D/QSEECOMD: ( 179): Init dlopen(librpmb.so, RTLD_NOW) succeeds
03-31 16:27:29.733 D/QSEECOMD: ( 179): Init::Init dlsym(g_FSHandle rpmb_init_service) succeeds
HOMEMADE:
Code:
03-31 15:07:02.586 E/QSEECOMD: ( 176): Listener: index = 0, hierarchy = 0
03-31 15:07:02.586 E/QSEECOMD: ( 176): Init dlopen(librpmb.so, RLTD_NOW) is failed....
03-31 15:07:02.586 E/QSEECOMD: ( 176): ERROR: RPMB_INIT failed, shall not start listener services
That stanza, or one very similar is spattered throughout the homemade logcat.
Looking at the homemade version, "find / -name librpmb.so" returns nothing.
For the nightly version, it is found at /system/lib/librpmb.so
I don't see it in the output directory, but it is in the vendor source directory
Code:
[email protected]:~/devel/build/hammerhead-5.1/out/target/product/hammerhead$ find . -name librpmb.so
[email protected]:~/devel/build/hammerhead-5.1/out/target/product/hammerhead$ find $ANDROID_BUILD_TOP/vendor -name librpmb.so
/home/jeff/devel/build/hammerhead-5.1/vendor/qcom/hammerhead/proprietary/librpmb.so
Digging further, vendor/qcom/hammerhead/device-partial.mk does not include librpbm.so (but does, for example, include qseecomd)
I don't see anything in vendor/qcom/hammerhead/ that would copy over librpmb.so
Looking at the installed nightly rom, /system/lib/librpmb.so is there (and has the same md5 as that from the qcom driver distributions)
Has anyone seen this before? Any suggestions on resolution? (other than the obvious, "Well, just edit the qcom device-partial.mk")
I'm sort of stuffed on doing any dev work until I can get a working baseline build again...
Thanks,
Jeff
jeffsf said:
After a dealing with selling my house and moving into a new one, I've finally got my build system back together and connected to the Internet. This Ubuntu machine has been successfully building OmniROM 4.x for a couple devices and 5.1 for Nexus 5 for some time, but now I have a puzzle.
The "nightly" version of OmniROM boots and runs fine on the hardware. However, when I try to boot the "homemade" version of 5.1, it fails to get very far in the process. I've already pulled down a fresh repo, installed the factory drivers from https://developers.google.com/android/nexus/drivers (originally 5.1 LMY48B, but now have also tried fresh copies of 5.1 LMY48M) and everything appears to build properly.
Looking at the two logcat outputs, the earliest hints of error seem to be the inability to load a key library
NIGHTLY:
Code:
03-31 16:27:29.726 D/QSEECOMD: ( 179): qseecom listener services process entry PPID = 1
03-31 16:27:29.726 E/QSEECOMD: ( 179): Listener: index = 0, hierarchy = 0
03-31 16:27:29.733 D/QSEECOMD: ( 179): Init dlopen(librpmb.so, RTLD_NOW) succeeds
03-31 16:27:29.733 D/QSEECOMD: ( 179): Init::Init dlsym(g_FSHandle rpmb_init_service) succeeds
HOMEMADE:
Code:
03-31 15:07:02.586 E/QSEECOMD: ( 176): Listener: index = 0, hierarchy = 0
03-31 15:07:02.586 E/QSEECOMD: ( 176): Init dlopen(librpmb.so, RLTD_NOW) is failed....
03-31 15:07:02.586 E/QSEECOMD: ( 176): ERROR: RPMB_INIT failed, shall not start listener services
That stanza, or one very similar is spattered throughout the homemade logcat.
Looking at the homemade version, "find / -name librpmb.so" returns nothing.
For the nightly version, it is found at /system/lib/librpmb.so
I don't see it in the output directory, but it is in the vendor source directory
Code:
[email protected]:~/devel/build/hammerhead-5.1/out/target/product/hammerhead$ find . -name librpmb.so
[email protected]:~/devel/build/hammerhead-5.1/out/target/product/hammerhead$ find $ANDROID_BUILD_TOP/vendor -name librpmb.so
/home/jeff/devel/build/hammerhead-5.1/vendor/qcom/hammerhead/proprietary/librpmb.so
Digging further, vendor/qcom/hammerhead/device-partial.mk does not include librpbm.so (but does, for example, include qseecomd)
I don't see anything in vendor/qcom/hammerhead/ that would copy over librpmb.so
Looking at the installed nightly rom, /system/lib/librpmb.so is there (and has the same md5 as that from the qcom driver distributions)
Has anyone seen this before? Any suggestions on resolution? (other than the obvious, "Well, just edit the qcom device-partial.mk")
I'm sort of stuffed on doing any dev work until I can get a working baseline build again...
Thanks,
Jeff
Click to expand...
Click to collapse
Weird. I still haven't gotten completely back from vacation (have a friend visiting now) so I haven't built Omni in a while...
I'll try to build it when they leave, not sure when that will be though.
@XpLoDWilD and @maxwen - Could this potentially be one of those weird messes where our source trees have an issue but the build server hasn't properly synced? This wouldn't be the first time we've had a "why the hell didn't this break months ago" issues like some issues @Jakew02 had last winter.
More digging reveals that between 5.0 (LRX21O) and 5.1.1 (LMY48M) the following files appear to be added (all in 5.1.0 LMY47D aka 1743759):
vendor/qcom/hammerhead/proprietary/librpmb.so
vendor/qcom/hammerhead/proprietary/libssd.so
vendor/qcom/hammerhead/proprietary/qmi_fw.conf
On the other hand, vendor/qcom/hammerhead/device-partial.mk has apparently not changed since at least LRX21O
fgrep suggests that libssd.so is referenced in qseecomd (as is librpmb.so)
jeffsf said:
More digging reveals that between 5.0 (LRX21O) and 5.1.1 (LMY48M) the following files appear to be added (all in 5.1.0 LMY47D aka 1743759):
vendor/qcom/hammerhead/proprietary/librpmb.so
vendor/qcom/hammerhead/proprietary/libssd.so
vendor/qcom/hammerhead/proprietary/qmi_fw.conf
On the other hand, vendor/qcom/hammerhead/device-partial.mk has apparently not changed since at least LRX21O
fgrep suggests that libssd.so is referenced in qseecomd (as is librpmb.so)
Click to expand...
Click to collapse
Better use the DonkeyCoyote repo, at least this is what Jenkins does afaik: https://github.com/DonkeyCoyote/proprietary_vendor_lge/tree/android-5.1/hammerhead
golden-guy said:
Better use the DonkeyCoyote repo, at least this is what Jenkins does afaik: https://github.com/DonkeyCoyote/proprietary_vendor_lge/tree/android-5.1/hammerhead
Click to expand...
Click to collapse
Didn't realize he wasn't... librpmb was added with https://github.com/DonkeyCoyote/pro...mmit/1a71e5c4d257c4883e1dea461fd893df13e0413c
AOSP's official binary blob distros often are missing stuff that is necessary for some capabilities and CAN be found in the factory images.
We don't mention DC in any official documentation for legal liability reasons... We probably need to update the extract-files scripts for ALL of our devices...