Replacing Sense Browser with Stock Browser - Droid Incredible Themes and Apps

I have the "official" froyo build installed currently, and i tried replacing the HTC Sense Browser.apk with the Stock Browser.apk found in CM 6 RC3. This resulted in a force close when trying to run the app, however, the icon showed up correctly.
I'm wondering if there are tools to show what exactly is causing the force close, so i can maybe figure out a work around?
Any help would be greatly appreciated. Thanks

Twisted politiks said:
I have the "official" froyo build installed currently, and i tried replacing the HTC Sense Browser.apk with the Stock Browser.apk found in CM 6 RC3. This resulted in a force close when trying to run the app, however, the icon showed up correctly.
I'm wondering if there are tools to show what exactly is causing the force close, so i can maybe figure out a work around?
Any help would be greatly appreciated. Thanks
Click to expand...
Click to collapse
I have been wondering about this as well, I like Sense but I prefer the AOSP browser because it's faster and more tabs.
I extracted the browser and html viewer from CM6 but I get a force close after I install them. I'm guessing there is something missing. I have read about other people with the issue but no solutions yet.

The only other relevant thread I found was this one and they have the same issue.
http://forum.xda-developers.com/showthread.php?t=750527
Right now I'm looking though the apk files to see what's different but it can be anything really so I don't think I will have much luck this way.
I will try to get some logs of the crash. I'm hoping the error is something high enough level to know what's wrong.
I haven't used skyraider vanilla but I believe it's based on the sense source so that would be someone who may know what's required. Is there one place that shows all these application dependencies? I don't know if any developers document this stuff but my searches turned up nothing.

Here is the log of the crash. Ive tried every rom i could find and none have stock browser in sense but there is a sense browser in aosp rom but this isnt much help.
[ 09-23 18:07:13.905 1041:0x746 D/alogcat ]
stopping ...
[ 09-23 18:07:14.975 289:0x121 W/Settings ]
Setting location_providers_allowed has moved from android.provider.Settings.System to android.provider.Settings.Secure, returning read-only value.
[ 09-23 18:07:15.015 289:0x121 W/Settings ]
Setting location_providers_allowed has moved from android.provider.Settings.System to android.provider.Settings.Secure, returning read-only value.
[ 09-23 18:07:15.995 1041:0x411 D/alogcat ]
stopping ...
[ 09-23 18:07:15.995 1041:0x411 D/alogcat ]
paused
[ 09-23 18:07:16.125 1867:0x74b I/ActivityThread ]
Publishing provider browser: com.android.browser.BrowserProvider
[ 09-23 18:07:16.235 1867:0x74b I/dalvikvm ]
Could not find method android.webkit.WebView.startDnsPrefetch, referenced from method com.android.browser.BrowserActivity.onPageFinished
[ 09-23 18:07:16.235 1867:0x74b W/dalvikvm ]
VFY: unable to resolve virtual method 741: Landroid/webkit/WebView;.startDnsPrefetch ()V
[ 09-23 18:07:16.235 1867:0x74b D/dalvikvm ]
VFY: replacing opcode 0x6e at 0x002e
[ 09-23 18:07:16.235 1867:0x74b D/dalvikvm ]
VFY: dead code 0x0031-0031 in Lcom/android/browser/BrowserActivity;.onPageFinished (Landroid/webkit/WebView;Ljava/lang/StringV
[ 09-23 18:07:16.335 1867:0x74b I/dalvikvm ]
Could not find method android.webkit.WebSettings.showZoomControls, referenced from method com.android.browser.BrowserSettings$Observer.update
[ 09-23 18:07:16.335 1867:0x74b W/dalvikvm ]
VFY: unable to resolve virtual method 654: Landroid/webkit/WebSettings;.showZoomControls (Z)V
[ 09-23 18:07:16.335 1867:0x74b D/dalvikvm ]
VFY: replacing opcode 0x6e at 0x0098
[ 09-23 18:07:16.335 1867:0x74b D/dalvikvm ]
VFY: dead code 0x009b-00eb in Lcom/android/browser/BrowserSettings$Observer;.update (Ljava/util/Observable;Ljava/lang/ObjectV
[ 09-23 18:07:16.335 1867:0x74b D/AndroidRuntime ]
Shutting down VM
[ 09-23 18:07:16.335 1867:0x74b W/dalvikvm ]
threadid=1: thread exiting with uncaught exception (group=0x40025a08)
[ 09-23 18:07:18.438 1867:0x74b I/Process ]
Sending signal. PID: 1867 SIG: 9
[ 09-23 18:07:18.455 104:0x137 W/ContentService ]
binderDied() at ObserverNode name show_web_suggestions
[ 09-23 18:07:19.575 289:0x121 W/Settings ]
Setting location_providers_allowed has moved from android.provider.Settings.System to android.provider.Settings.Secure, returning read-only value.
[ 09-23 18:07:19.615 289:0x121 W/Settings ]
Setting location_providers_allowed has moved from android.provider.Settings.System to android.provider.Settings.Secure, returning read-only value.
[ 09-23 18:07:20.705 1816:0x718 D/dalvikvm ]
GC_FOR_MALLOC freed 7694 objects / 604224 bytes in 74ms
[ 09-23 18:07:20.815 1041:0x75e D/alogcat ]
stopping ...
[ 09-23 18:07:20.815 1041:0x411 D/alogcat ]
resumed
[ 09-23 18:07:20.935 1816:0x718 W/IInputConnectionWrapper ]
showStatusIcon on inactive InputConnection
[ 09-23 18:07:20.965 104:0x85 I/ActivityManager ]
Displayed activity org.jtb.alogcat/.LogActivity: 249 ms (total 4959 ms)
Sent from my ADR6300 using XDA App

It seems webkit is missing settings that the stock browser wants. HTC must have modified this.
Does anyone know where android.webkit is located? I looked everywhere I could but no luck finding it. I was assuming this was in Browser.apk or HTMLViewer.apk.

Related

[old thread] 2.3.4 keyboard

Hey,
i succesfully installed the keyboard but something is still missing. kayboard always FC...
EDITED:
Blackwatch89 managed this, go to this thread
_smurf said:
Hey,
i succesfully installed the keyboard but something is still missing. kayboard always FC.
I discovered the necessary files are at least:
com.sonyericsson.uxpres.jar
com.sonyericsson.uxp.jar
com.sonyericsson.uxp.xml
com.sonyericsson.uxpres.xml
textinput-tng.apk
libXT9Engine.so
/usr/xt9
found the FC in bugreport, can somebody help?:
Code:
09-23 14:27:31.966 I/CustomizationProvider( 3089): No configuration file: /system/etc/customization/settings/com/sonyericsson/textinput/uxp/custom_settings.xml
09-23 14:27:32.196 I/MoPub ( 2645): Ad failed to load.
09-23 14:27:32.246 E/XT9Engine( 1314): failed to open(/system/usr/xt9/SEMC_620_CSlsUN_xt9.ldb) error=Permission denied (13)
09-23 14:27:32.246 E/XT9Engine( 1314): Can't load type 5, ldbfile: /system/usr/xt9/SEMC_620_CSlsUN_xt9.ldb
09-23 14:27:32.246 D/AndroidRuntime( 1314): Shutting down VM
09-23 14:27:32.246 W/dalvikvm( 1314): threadid=1: thread exiting with uncaught exception (group=0x4001d560)
09-23 14:27:32.256 E/AndroidRuntime( 1314): FATAL EXCEPTION: main
09-23 14:27:32.256 E/AndroidRuntime( 1314): java.lang.RuntimeException: result:10
09-23 14:27:32.256 E/AndroidRuntime( 1314): at com.sonyericsson.textinput.uxp.model.xt9.XT9Engine.XT9Engine_setActiveLanguage(Native Method)
09-23 14:27:32.256 E/AndroidRuntime( 1314): at com.sonyericsson.textinput.uxp.model.xt9.XT9Engine.setLanguage(XT9Engine.java:407)
09-23 14:27:32.256 E/AndroidRuntime( 1314): at com.sonyericsson.textinput.uxp.model.xt9.XT9Engine.initOptional(XT9Engine.java:539)
09-23 14:27:32.256 E/AndroidRuntime( 1314): at com.sonyericsson.collaboration.ObjectBinder.init(ObjectBinder.java:507)
09-23 14:27:32.256 E/AndroidRuntime( 1314): at com.sonyericsson.textinput.uxp.glue.InputMethodServiceGlue.bind(InputMethodServiceGlue.java:258)
09-23 14:27:32.256 E/AndroidRuntime( 1314): at com.sonyericsson.textinput.uxp.glue.InputMethodServiceGlue.onStartInput(InputMethodServiceGlue.java:211)
09-23 14:27:32.256 E/AndroidRuntime( 1314): at android.inputmethodservice.InputMethodService.doStartInput(InputMethodService.java:1441)
09-23 14:27:32.256 E/AndroidRuntime( 1314): at android.inputmethodservice.InputMethodService$InputMethodImpl.startInput(InputMethodService.java:354)
09-23 14:27:32.256 E/AndroidRuntime( 1314): at android.inputmethodservice.IInputMethodWrapper.executeMessage(IInputMethodWrapper.java:152)
09-23 14:27:32.256 E/AndroidRuntime( 1314): at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:61)
09-23 14:27:32.256 E/AndroidRuntime( 1314): at android.os.Handler.dispatchMessage(Handler.java:99)
09-23 14:27:32.256 E/AndroidRuntime( 1314): at android.os.Looper.loop(Looper.java:123)
09-23 14:27:32.256 E/AndroidRuntime( 1314): at android.app.ActivityThread.main(ActivityThread.java:3701)
09-23 14:27:32.256 E/AndroidRuntime( 1314): at java.lang.reflect.Method.invokeNative(Native Method)
09-23 14:27:32.256 E/AndroidRuntime( 1314): at java.lang.reflect.Method.invoke(Method.java:507)
09-23 14:27:32.256 E/AndroidRuntime( 1314): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:862)
09-23 14:27:32.256 E/AndroidRuntime( 1314): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
09-23 14:27:32.256 E/AndroidRuntime( 1314): at dalvik.system.NativeStart.main(Native Method)
I tried set severral permission for the file but didnt helped
Bugreport attached.
Click to expand...
Click to collapse
Have you tried adding the ime.jar and the smartslider.jar and see if that works. i will give it a goe but not making any promises
Blackwatch89 said:
Have you tried adding the ime.jar and the smartslider.jar and see if that works. i will give it a goe but not making any promises
Click to expand...
Click to collapse
doesnt work, still same error:
Code:
E/XT9Engine( 1314): failed to open(/system/usr/xt9/SEMC_620_CSlsUN_xt9.ldb) error=Permission denied (13)
_smurf said:
doesnt work, still same error:
Code:
E/XT9Engine( 1314): failed to open(/system/usr/xt9/SEMC_620_CSlsUN_xt9.ldb) error=Permission denied (13)
Click to expand...
Click to collapse
Try to use Root Explorer to navigate to the file "SEMC_620_CSlsUN_xt9.ldb" and select Options -> Permissions and check Read, Write, Execute in Others, Group and Owner....and press ok.
Tell me if that works for you
allow all the permissions was the first thing i tried
We can see the custom_settings.xml file?
mancr said:
We can see the custom_settings.xml file?
Click to expand...
Click to collapse
custom_settings.xml? Which one? The appropriate file /system/etc/customization/settings/com/sonyericsson/textinput/uxp/custom_settings.xml is not created yet. I suppose this file will be created after first successful startup.
This file is not present in the dumb filesystem (arc).
Any news about this?
PlayStation®3? Adda psnID: Nagarebozhi
Nagarebozhi said:
Any news about this?
PlayStation®3? Adda psnID: Nagarebozhi
Click to expand...
Click to collapse
No I dont know how to solve the permission problem.
_smurf said:
No I dont know how to solve the permission problem.
Click to expand...
Click to collapse
I hope someone can help you out friend, good work so far. Keep it up.
strix75 said:
I hope someone can help you out friend, good work so far. Keep it up.
Click to expand...
Click to collapse
I hope so. Im not an android developer but going to learn, google and investigate asap
_smurf said:
I hope so. Im not an android developer but going to learn, google and investigate asap
Click to expand...
Click to collapse
I am still looking into this just so yo know. I too have had the same problem as you. I think the whole source code needs to be changed to work with our phones.
Wwwwwweeeeeeeee have keyboard. I have done it!!!!!!!!!!!!!!!!!!!!!1
Blackwatch89 said:
Wwwwwweeeeeeeee have keyboard. I have done it!!!!!!!!!!!!!!!!!!!!!1
Click to expand...
Click to collapse
can you post screenshot? and how to install it?
Blackwatch89 said:
Wwwwwweeeeeeeee have keyboard. I have done it!!!!!!!!!!!!!!!!!!!!!1
Click to expand...
Click to collapse
PLISssssssss How to install it !! XDD
Blackwatch89 said:
Wwwwwweeeeeeeee have keyboard. I have done it!!!!!!!!!!!!!!!!!!!!!1
Click to expand...
Click to collapse
That is great! thx!

How to boot Android on A10 tab from SD card (LY_F1/Ainol)

Hi,
The A10 supports SD boot mode but I did not find any Android image that can boot from SD Card. I am not talking about booting using a recovery image but directly from SD card on power on.
The advantage here is to try out new roms without bricking the tab or say dual-booting the Tab.
It has been done on NC and some other devices. Has this been done for A10 based tablets. Can someone kindly give some pointers if yes?
I have tried doing this by formatting the SD and creating the partitions as suggested elsewhere for a SD boot and modified the init scripts to load from SD.However unable to complete full boot Android.
I find that I am able to boot but it eventually loops at the boot animation. The strange thing is on connecting the USB cable, the tab proceeds to Android GUI. So it seems there is a small issue to be resolved.
If some devs have got this successfully working would appreciate their help.
Thanks,
Mano
Anyone can help out the noob here.
I just want to know the correct steps to be followed to have a successful boot from SD Card.
Thanks.
Can you provide some more details like the kernel log and/or the logcat? Either that or the actual build you created would help figuring out what is going wrong
Thanks ithamar. I waited for a long time and then moved on because I could not solve this fully. I will search for the archived logs and post them in a short bit.
Thanks again for the response. It is encouraging
Ok. Here are the brief logs..
[ 19.420000] init: waitpid returned pid 88, status = 00000000
[ 19.430000] init: process 'surfaceflinger', pid 88 exited
[ 19.440000] init: process 'surfaceflinger' killing any children in process group
[ 19.440000] init: service 'zygote' is being killed
[ 19.450000] init: starting 'zygote'
[ 19.460000] init: Created socket '/dev/socket/zygote' with mode '666', user '0', group '0'
[ 19.470000] init: waitpid returned pid 89, status = 00000009
[ 19.480000] init: untracked pid 89 exited
[ 21.480000] init: starting 'surfaceflinger'
[ 21.680000] init: waitpid returned pid 132, status = 00000000
[ 21.680000] init: process 'surfaceflinger', pid 132 exited
[ 21.690000] init: process 'surfaceflinger' killing any children in process group
[ 21.700000] init: service 'zygote' is being killed
My analysis of these logs point me to issue with power management not surface flinger or frame buffer because the kernel was
copy of working one from NAND partitions.
And here are the detailed ones: ( (Add pastebin.com/ infront)
logcat
1GMgDyEC
kernel
R2kDt5ai
(am unable to give full urls because of forum restrictions)
Thanks in advance for looking into these and if you have any suggestions.

how do i debug (system ui crash, stopped)

hi everyone, i'm trying to mod some apk's (systemui and frameworkres)
i get no errors in apktool but when i flash the apk's in cwm, i get systemui has stopped and i have no ui.
i wipe cache and wipe cache partion with no help.
i'm trying to get a logcat but it's pretty much empty, one message about about heapsize.
so my question is whats the best way to find the cause of the errors?
Thanks
my logcat
Code:
--------- beginning of /dev/log/main
[ 05-12 09:25:40.243 4361: 4361 E/Trace ]
error opening trace file: No such file or directory (2)
[ 05-12 09:25:40.243 4361: 4361 D/ActivityThread ]
setTargetHeapUtilization:0.25
[ 05-12 09:25:40.243 4361: 4361 D/ActivityThread ]
setTargetHeapIdealFree:8388608
[ 05-12 09:25:40.243 4361: 4361 D/ActivityThread ]
setTargetHeapConcurrentStart:2097152
any help would be much appreciated.

Moto G WIFI won't turn on (driver load failure)

I have this Moto G XT1040 with wifi always staying "turning on". I don't know what was the origin of the problem since the smartphone was from another person before.
I flashed differents roms. Any kind of solutions with no success and now i'm in a dead end.
I restode a TRWP backup from here and doesnt work either. I think that prima folder was missing and with that zip file was restored, but wifi still doesnt work.
This is the relevant part of log.
Code:
# adb shell dmesg
[ 37.858490] wlan: loading driver v3.8.20.23
[ 37.951448] msm_post_event : timeout cannot be negative Line 715
[ 38.008084] wlan: driver load failure
[ 38.013198] init: Starting service 'p2p_supplicant'...
[ 38.088221] init: Service 'p2p_supplicant' (pid 2037) exited with status 255
[ 41.069372] init: Service 'bootanim' (pid 792) exited with status 0
[ 41.232424] init: cannot find '/system/bin/mpdecision', disabling 'mpdecision'
[ 42.658172] wlan: loading driver v3.8.20.23
[ 42.796157] wlan: driver load failure
[ 42.802152] init: Starting service 'p2p_supplicant'...
[ 42.915522] init: Service 'p2p_supplicant' (pid 2463) exited with status 255
[ 58.009429] init: Untracked pid 2474 exited with status 1
[ 62.954922] wlan: loading driver v3.8.20.23
[ 63.123100] wlan: driver load failure
Any clue?, I searched for a solution for almost two weeks.
Wifi MAC shows 02:00:00:00:00:00
Actual rom is AICP (aicp_peregrine_mm-11.0-NIGHTLY-20160620.zip)
How restore the wifi driver?
I think this is an Android related problem, more than a rom or motorola problem...
Sago7 said:
I have this Moto G with wifi always staying "turning on". I don't know what was the origin of the problem since the smartphone was from another person before.
I flashed differents roms. Any kind of solutions with no success and now i'm in a dead end.
I restode a TRWP backup from here and doesnt work either. I think that prima folder was missing and with that zip file was restored, but wifi still doesnt work.
This is the relevant part of log.
Code:
# adb shell dmesg
[ 37.858490] wlan: loading driver v3.8.20.23
[ 37.951448] msm_post_event : timeout cannot be negative Line 715
[ 38.008084] wlan: driver load failure
[ 38.013198] init: Starting service 'p2p_supplicant'...
[ 38.088221] init: Service 'p2p_supplicant' (pid 2037) exited with status 255
[ 41.069372] init: Service 'bootanim' (pid 792) exited with status 0
[ 41.232424] init: cannot find '/system/bin/mpdecision', disabling 'mpdecision'
[ 42.658172] wlan: loading driver v3.8.20.23
[ 42.796157] wlan: driver load failure
[ 42.802152] init: Starting service 'p2p_supplicant'...
[ 42.915522] init: Service 'p2p_supplicant' (pid 2463) exited with status 255
[ 58.009429] init: Untracked pid 2474 exited with status 1
[ 62.954922] wlan: loading driver v3.8.20.23
[ 63.123100] wlan: driver load failure
Any clue?, I searched for a solution for almost two weeks.
Wifi MAC shows 02:00:00:00:00:00
Actual rom is AICP (aicp_peregrine_mm-11.0-NIGHTLY-20160620.zip)
How restore the wifi driver?
Click to expand...
Click to collapse
Hear is a solution ...... link attached
http://forum.xda-developers.com/moto-g/general/tutorial-fix-wi-fi-problem-pc-t3389538
I did that before. Didn't work.
Did you get the WiFi working? I have the same issue. Tried different roms and nothing. Only one time, after wiping and flashing, the WiFi turned on but only for a few hours...

[SOLVED] Bootloop/kernel panic in meminfo_proc_show() 3.10.65+ trying to port LOS12.1

Hello Android kernel hackers,
I am trying to port the current ASB-patched LOS12.1 (github "cm12-amami") to a Teclast 98 (M1E9) tablet for which kernel sources are missing. My build completes fine, however, I run into a boot loop due to kernel panic with an (at least for me) totally unhelpful stack trace:
During init.rc processing, the kernel panics on logd startup when logd tries to read from /proc/meminfo with the following stack trace:
Code:
[ 126.200788]00:02:29.656321 openat(AT_FDCWD, "/proc/meminfo", O_RDONLY) = 4
[ 126.200956]00:02:29.656496 fstat(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
[ 126.201077]00:02:29.656614 mprotect(0x7faf52b000, 4096, PROT_READ|PROT_WRITE) = 0
[ 126.201187]00:02:29.656726 mprotect(0x7faf52b000, 4096, PROT_READ) = 0
[ 126.202709]00:02:29.656833 read(4,
* KERNEL PANIC HAPPENS HERE!!! *
Code:
[ 126.202739]<1> (1)[949:logd]<1>start....
[ 126.202805]<1> (1)[949:logd]Unable to handle kernel NULL pointer dereference at virtual address 00000016
[ 126.202817]<1> (1)[949:logd]pgd = ffffffc070dee000
[ 126.202828]<1> (1)[949:logd][00000016] *pgd=0000000000000000 (1)[949:logd]
[ 126.202846]<1> (1)[949:logd][KERN Warning] ERROR/WARN forces debug_lock off!
[ 126.202854]<1> (1)[949:logd][KERN Warning] check backtrace:
[ 126.202868]<1> (1)[949:logd]CPU: 1 PID: 949 Comm: logd Tainted: G W 3.10.65+ #1
[ 126.202878]<1> (1)[949:logd]Call trace:
[ 126.202899]<1> (1)[949:logd][<ffffffc000088f50>] dump_backtrace+0x0/0x16c
[ 126.202913]<1> (1)[949:logd][<ffffffc0000890cc>] show_stack+0x10/0x1c
[ 126.202931]<1> (1)[949:logd][<ffffffc0009a69a0>] dump_stack+0x1c/0x28
[ 126.202947]<1> (1)[949:logd][<ffffffc0002f7210>] debug_locks_off+0x40/0x5c
[ 126.202960]<1> (1)[949:logd][<ffffffc00009a260>] oops_enter+0xc/0x28
[ 126.202974]<1> (1)[949:logd][<ffffffc000089100>] die+0x28/0x1d8
[ 126.202989]<1> (1)[949:logd][<ffffffc0009a49ec>] __do_kernel_fault.part.5+0x70/0x84
[ 126.203003]<1> (1)[949:logd][<ffffffc000094260>] do_page_fault+0x348/0x34c
[ 126.203017]<1> (1)[949:logd][<ffffffc000094350>] do_translation_fault+0x40/0x4c
[ 126.203030]<1> (1)[949:logd][<ffffffc0000813fc>] do_mem_abort+0x38/0x98
which does not seem to uncover the root cause, but rather the root cause stack trace seems to be:
Code:
[ 133.341226]<1>-(1)[949:logd]Call trace:
[ 133.341239]<1>-(1)[949:logd][<ffffffc0001f37d8>] meminfo_proc_show+0x50/0x3c4
[ 133.341255]<1>-(1)[949:logd][<ffffffc0001aefb8>] seq_read+0x1a4/0x40c
[ 133.341271]<1>-(1)[949:logd][<ffffffc0001ebeec>] proc_reg_read+0x4c/0x7c
[ 133.341285]<1>-(1)[949:logd][<ffffffc00018e75c>] vfs_read+0x88/0x170
[ 133.341298]<1>-(1)[949:logd][<ffffffc00018ebf0>] SyS_read+0x40/0x8c
[ 133.341310]<1>-(1)[949:logd]Code: 52800001 91326000 97fe67c1 aa0003f3 (f9400c00)
[ 133.341322]<1>-(1)[949:logd]---[ end trace 1b75b31a2719ed20 ]---
[ 133.341332]<1>-(1)[949:logd]Kernel panic - not syncing: Fatal exception
[ 133.341423]<1>-(1)[949:logd]mrdump: cpu[1] tsk:ffffffc073a3e000 ti:ffffffc070e64000
[ 134.241428]<1>-(1)[949:logd]
Most interestingly, the exact same kernel blob can successfully boot stock Android 5.1 and successfully read from /proc/meminfo when booted from stock boot.img while it crashes with my LOS12.1 build boot.img.
bootimg.cfg (using abootimg) is identical in both cases (except the boot size):
Code:
bootsize = 0x780000
pagesize = 0x800
kerneladdr = 0x40080000
ramdiskaddr = 0x44000000
secondaddr = 0x40f00000
tagsaddr = 0x4e000000
name = 1513588375
cmdline = bootopt=64S3,32N2,64N2 androidboot.selinux=permissive
Thanks a million in advance for any ideas or pointers about what might be going wrong with this stock kernel blob and my LOS12.1 build with regards to meminfo_proc_show()! :highfive:
awl14
Issue resolved!
Finally resolved by making changes (a whole number of, so I haven't tracked it down to one particular change) to my CM12.1 build's system partition, making it resemble the stock image more closely.
I still don't have any clues why the kernel would crash on reading from /proc/meminfo due to "wrong"/buggy contents in the system partition (/system file system), but as the issue is resolved, this can be regarded as a proof that such content in system can indeed matter in a critical way for the behaviour of the kernel...
My custom ROM for Teclast 98 (M1E9) runs fine now, I will publish a download link soon on xda.
Panic caused by kernel reading file /system/bin/cpuinfo
I encountered the same issue and was able to find the root cause. The kernel I'm dealing with has been modified by Chinese crooks who fake the amount of memory in the device by intercepting meminfo_proc_show(). In this routine, they read the file /system/bin/cpuinfo, apparently extracting the value to be shown to the user as the memory size from that file. The code does not even test the return code from the file opening routine, and simply crashes the kernel if the file is not present.

Categories

Resources