for camera i dint patch anything , its working fine for me but try this out , m not sure but i hope its works for you
Hello,
I've successfully ported Android 4.2.1 from ZTE V987 to Lenovo A820. So far I was able to fix modem and storage mounting when connected to PC and manually modified boot.img.
What is not working: auto rotation of screen, camera, fm radio, audio, gps. Is that normal for a ported ROM or I need to try to port it from another device?
I actually have 3 different ported versions - ZTE 987, ZTE V967S and Amoi N828, but the one from 987 is the cleanest version, very much like stock JB 4.2.1 and tha's the version I want to use.
Tried to fix audio and camera, but always get bootloop. Changing sensors in /system/lib/hw doesn't fix the autorotation issue. Capacitive touch buttons work, the light is not quite right, but they are functional. Touchscreen works ok, wi-fi works, light sensor also works.
W/Resources( 734): Preloaded drawable resource #0x1080183 (android:drawable/btn_radio_off_focused_holo_dark) that varies with configuration!!
D/skia ( 734): Flag is not 10
W/Resources( 734): Preloaded drawable resource #0x1080182 (android:drawable/btn_radio_off_disabled_holo_light) that varies with configuration!!
D/skia ( 734): Flag is not 10
W/Resources( 734): Preloaded drawable resource #0x1080181 (android:drawable/btn_radio_off_disabled_holo_dark) that varies with configuration!!
D/skia ( 734): Flag is not 10
W/Resources( 734): Preloaded drawable resource #0x1080180 (android:drawable/btn_radio_off_disabled_focused_holo_light) that varies with configuration!!
D/skia ( 734): Flag is not 10
W/Resources( 734): Preloaded drawable resource #0x108017f (android:drawable/btn_radio_off_disabled_focused_holo_dark) that varies with configuration!!
I/Netd ( 2508): Netd 1.0 starting
E/BandwidthController( 2508): runIptablesCmd(): failed /system/bin/iptables -t raw -N bw_raw_PREROUTING res=256
E/BandwidthController( 2508): runIptablesCmd(): failed /system/bin/ip6tables -t raw -N bw_raw_PREROUTING res=256
D/MDnsDS ( 2508): MDnsSdListener::Hander starting up
D/MDnsDS ( 2508): MDnsSdListener starting to monitor
D/MDnsDS ( 2508): Going to poll with pollCount 1
I checked the logcat and had tons of errors mentioning surfaceflinger. Replaced that lib and now I get the following (many of these):
Code:W/Resources( 734): Preloaded drawable resource #0x1080183 (android:drawable/btn_radio_off_focused_holo_dark) that varies with configuration!! D/skia ( 734): Flag is not 10 W/Resources( 734): Preloaded drawable resource #0x1080182 (android:drawable/btn_radio_off_disabled_holo_light) that varies with configuration!! D/skia ( 734): Flag is not 10 W/Resources( 734): Preloaded drawable resource #0x1080181 (android:drawable/btn_radio_off_disabled_holo_dark) that varies with configuration!! D/skia ( 734): Flag is not 10 W/Resources( 734): Preloaded drawable resource #0x1080180 (android:drawable/btn_radio_off_disabled_focused_holo_light) that varies with configuration!! D/skia ( 734): Flag is not 10 W/Resources( 734): Preloaded drawable resource #0x108017f (android:drawable/btn_radio_off_disabled_focused_holo_dark) that varies with configuration!!
Any idea what I need to change?
i've download a 4.2.1 miui v5 rom, but after checking build.prop, fingerprint is 4.1.2, can i port this to a 4.2.1 device?
Fingerprint doesn't imply anything...i can give u link to a rom with 4.2.1 fingerprint ... which is actually 4.1.2...BTW what is ro.build.version.sdk ? ... for 4.2 it should be 17....
@yuweng do you know what is the needed file for the magnetic sensor to work? for the MTK phones?
Il check on that, so i tried porting firefly v50 miui v5 from needrom, it has a version of 4.2.1 but stuck in bootlogo, and downloaded other roms with 4.2.1 miui v5 all of them did'nt boot, so im thinking that maybe all of them are just 4.1.2
Got it further, but for the last 2-3 hours I've patched everything connected with ip, route, iptables and so on. Still it stops on this:
Code:I/Netd ( 2508): Netd 1.0 starting E/BandwidthController( 2508): runIptablesCmd(): failed /system/bin/iptables -t raw -N bw_raw_PREROUTING res=256 E/BandwidthController( 2508): runIptablesCmd(): failed /system/bin/ip6tables -t raw -N bw_raw_PREROUTING res=256 D/MDnsDS ( 2508): MDnsSdListener::Hander starting up D/MDnsDS ( 2508): MDnsSdListener starting to monitor D/MDnsDS ( 2508): Going to poll with pollCount 1
I've attached the whole logcat.
----------------------------------------------------------------
i've been seeing roms that is downgrade because of miui, how did they do that?
example s920 have 4.2.1 version, but in needrom, they have miuiv5 4.1.2, how did they downgrade? cuz mine does'nt boot
hmm I already patch that but its seems still didn't worked I am not sure if it's on the hardware issue?i think copy system/lib/hw folder of your stock rom to port its worked for me
Sent from my ZP980 using xda premium
---------- Post added at 12:35 AM ---------- Previous post was at 12:33 AM ----------
try goophone g9 MIUI V5 JB2 4.2.1 rom from needrom.com its working for me in my UMI X2
Thanks
Hardy
Sent from my ZP980 using xda premium
---------- Post added at 12:36 AM ---------- Previous post was at 12:35 AM ----------
m very poor in understanding logcat or dmesg status but i might this is framework error !
Sent from my ZP980 using xda premium
---------- Post added at 12:38 AM ---------- Previous post was at 12:36 AM ----------
yes its possible but i dont know how ? MIUI Devs Team Unofficially Port MIUI V5 for Gionee Dream D1 and that device running on JB2 (4.2.1) out of box still they port miui v5 unofficially 4.1.2 version n its working fine i dont know how ? i wish i know cuz i want it in my umi x2 :banghead:
Sent from my ZP980 using xda premium
ro.secure=[COLOR="Blue"][B]0[/B][/COLOR]
ro.debuggable=[COLOR="blue"][B]1[/B][/COLOR]
persist.service.adb.enable=[COLOR="blue"][B]1[/B][/COLOR]