yashsingh1/xdaforums huggingface dataset:
[Android Software Development] yinfox:
I have already ported miui v4.1 to Optimus Black.Everything is perfect except the wifi hotspot! I turn on the WLAN hotspot in System settings,It has been showed "Turning WLAN on......",But in fact, it isn't working,and the wifi could not open unless restart.sorry for my poor english

log:

D/WifiService(1578): setWifiEnabled: false pid=1951, uid=1000

D/CommandListener(1312): Clearing all IP addresses on wlan0

I/wpa_supplicant(1796): CTRL-EVENT-TERMINATING - signal 0 received

I/wpa_supplicant(1796): CTRL-EVENT-STATE-CHANGE id=0 state=0 BSSID=00:00:00:00:00:00 SSID=ChinaNet-yinfox

D/ConnectivityService(1578): ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED

D/ConnectivityService(1578): Attempting to switch to mobile

D/ConnectivityService(1578): Attempting to switch to BLUETOOTH_TETHER

D/NetUtils(1578): android_net_utils_resetConnections in env=0x50e72070 clazz=0xa0900001 iface=wlan0 mask=0x3

D/ConnectivityService(1578): resetConnections(wlan0, 3)

W/Smack/Packet(2426): notify conn break (IOEx), close connection

W/Netd(1312): No subsystem found in netlink event

D/NetlinkEvent(1312): Unexpected netlink message. type=0x11

I/qtaguid(2426): Failed write_ctrl(u 63) res=-1 errno=22

I/qtaguid(2426): Untagging socket 63 failed errno=-22

W/NetworkManagementSocketTagger(2426): untagSocket(63) failed with errno -22

D/ConnectivityService(1578): handleInetConditionChange: no active default network - ignore

D/audio_hw_default(1318): [do_output_standby] (0x40cdbad0)

D/audio_gain(1318): [get_output_setting] target_device(1) device(0)

I/vsnet(3216): Starting vsnet0(10.224.160.95) for cid=1

I/vsnet(3218): ifconfig for vsnet0 finished successfully

D/ConnectivityService(1578): ConnectivityChange for mobile: CONNECTED/CONNECTED

D/ConnectivityService(1578): NetTransition Wakelock for WifiStateMachine released by timeout

D/SoftapController(1312): Softap fwReload - Ok

E/SoftapController(1312): Softap set - failed: -1

E/WifiStateMachine(1578): Exception in softap start java.lang.IllegalStateException: command '64 softap set wlan0 wl0.1 AndroidAP wpa2-psk 8b14bd1d8ca9' failed with '400 64 Softap operation failed (Operation not supported on transport endpoint)'

E/SoftapController(1312): Softap already stopped

D/SoftapController(1312): Softap driver stop: 0

D/SoftapController(1312): Softap fwReload - Ok

D/SoftapController(1312): Softap fwReload - Ok

E/SoftapController(1312): Softap set - failed: -1

E/WifiStateMachine(1578): Exception in softap re-start java.lang.IllegalStateException: command '69 softap set wlan0 wl0.1 AndroidAP wpa2-psk 8b14bd1d8ca9' failed with '400 69 Softap operation failed (No such device)'

D/Tethering(1578): MasterInitialState.processMessage what=3
[Android Software Development] Lens_flare:
change wifi_tether_regexs interface to one in cm, see stage 4 for more details.
[Android Software Development] CosmicDan:
Those are the same wifi errors I was having once, and I discovered that CM10 does not have wifi tether driver/support yet. Apparently many devices don't. So make sure it works in your CM base.
[Android Software Development] yinfox:
I have done so!

But the problem still exists!

---------- Post added at 03:11 PM ---------- Previous post was at 03:07 PM ----------

Of course it works in my cm10 base.
[Android Software Development] CosmicDan:
Then your wifi hardware/framework is too different for the device you're porting to. Use Barnacle or Wifi Tether from the Play Store instead. If they still don't work then you've ported wrong or your CM10 ROM doesn't support it.
[Android Software Development] Lens_flare:
yinfox

E/WifiStateMachine(1578): Exception in softap re-start java.lang.IllegalStateException: command '69 softap set wlan0 wl0.1 AndroidAP wpa2-psk 8b14bd1d8ca9' failed with '400 69 Softap operation failed (No such device)'

anyway, "no such device" means that tether device isn't provided by kernel/wifi driver/somewhat

hey just a minute, I know you __-

I said you have to check all thing twice ;]
[Android Software Development] mscreater:
yes , i have a stock isc rom about 4.0.4, but i don't know which miui should do base

Yes, my device is huawei u8825D, so i will try to use patchmiui on hornor do you think it is fine?here is the url:https://github.com/MiCode/patchrom_honor
[Android Software Development] yinfox:
I can use WIFI tether.apk and it works well
[Android Software Development] AdhvanIt:
You Sir, have made your way to my credits. Thanks for this.

http://xdaforums.com/showthread.php?p=31615247

Sent from another galaxy [S2]
[Android Software Development] CosmicDan:
You're welcome... though Facebook will soon be releasing a native app that won't depend on webkit anymore. A slight shame because it was a good app to test the webkit when used by other apps. I don't know of any other popular apps that use Webkit.
[Android Software Development] Lens_flare:
gmail uses webview :P
[Android Software Development] ak0r:
Thanks all for your help. I am able to boot now. But no network. Here is radio log

http://pastebin.com/7wLKnJ9h
[Android Software Development] Lens_flare:
E/GSM ( 430): [IccCard] Invalid Subscription Application index:8

and then

D/RILJ ( 430): [0010]< OPERATOR error: com.android.internal.telephony.CommandException: OP_NOT_ALLOWED_BEFORE_REG_NW

looks like you should also change iccCardStatus*.smali.
[Android Software Development] Lens_flare:
yes, some string don't have default translation, miui uses english instead.
[Android Software Development] irberserk:
So the error

W: Could not find sources

it's normal better so :eek:
[Android Software Development] Lens_flare:
by source apktool means smali, framework-res.apk doesn't have any smali.
[Android Software Development] irberserk:
Ok..then when i recompile and then compile i must place new resources and .xml file modified in original apk?
[Android Software Development] Lens_flare:
yes. Most resources are compiled in resources.arsc so you may replace only it.
[Android Software Development] ak0r:
Thanks. Should I replace only IccCardStatus*.smali or whole IccCard* tree?
[Android Software Development] irberserk:
I have follow the guide for the usb subsystem. I have replaced storage_list.xml file. My question is one i must put in the original.apk also the storage_list.xml file file or only resources?
[Android Software Development] Lens_flare:
try cardstatus first, it's minimal invasion.

after you replaced storage_list.xml in framework-res, compile apk, then grab storage_list.xml from build/apk/res/xml and place to res/xml in archive
[Android Software Development] irberserk:
Thanks man you are the best! i must only modified services.jar and try :)
[Android Software Development] _polimorph_:
I observed in the last 2.10.26 version the pressence of a new file in the MIUI's zip file: "data\media\preinstall_apps\reinstall_apps". Anyone knows what's this about?
[Android Software Development] irberserk:
I have modified services.jar follow the guide, i have changed all id's but usb still not works.When i change connection type Settings crash.
[Android Software Development] Lens_flare:
log?
[Android Software Development] irberserk:
Here i have also no notification of adb or prompt at connection:

Logcat
[Android Software Development] :
Yes, I'm using adb. I boot into recovery, check with "adb devices", and see that it is connected. I then "adb logcat > logcat.txt", and issue "adb reboot" or reboot system through recovery and my logcat.txt just says a few lines like "daemon service not running. starting it now on port 5037" and "daemon started successfully" and that's all.

If I try to initiate adb while in the boot loop, I get nothing in the list of devices attached.

When I have another working ROM loaded, adb doesn't recognize the device as connected in the list of devices attached. What am I doing wrong?

A bit of other info, I am working with an HP TouchPad running CM9.
[Android Software Development] ak0r:
Looks like that helped. But it doesn't connect to network automatically. I have to select the network manually and then I get signal. What can be solution? Should I provide radio log?

---------- Post added at 09:08 PM ---------- Previous post was at 09:04 PM ----------

I think you have given tip in step 4. I should try that first. :D
[Android Software Development] ak0r:
Is there any short way to make USB working? Somehow I am not able to compile framework-res.apk :(
[Android Software Development] irberserk:
Usb problem solved!
[Android Software Development] ak0r:
Glad that you solved. But I'm looking for any shorter solution :D
[Android Software Development] :
NVM, figured it out....
[Android Software Development] :
So I've been chasing smali errors around all day, but I am stumped now. I tried moving the entire webview*.smali tree for this and get the same result:

W/Zygote ( 258): Class not found for preloading: android.media.IRemoteControlClientDispatcher
W/Zygote ( 258): Class not found for preloading: android.media.IRemoteControlClientDispatcher$Stub
V/MediaProfilesJNI( 258): native_get_num_video_decoders
W/Zygote ( 258): Class not found for preloading: android.text.TextDirectionHeuristics$CharCount
D/dalvikvm( 258): GC_FOR_ALLOC freed 597K, 36% free 1658K/2560K, paused 19ms
W/Zygote ( 258): Class not found for preloading: android.text.method.WordIterator$1
I/dalvikvm( 258): threadid=1: recursive native library load attempt (/system/lib/libwebcore.so)
D/dalvikvm( 258): No JNI_OnLoad found in /system/lib/libchromium_net.so 0x0, skipping init
E/dalvikvm( 258): ERROR: couldn't find native method
E/dalvikvm( 258): Requested: Landroid/webkit/WebViewCore;.nativeGetTextureGeneratorThreadID:()I
E/JNIHelp ( 258): RegisterNatives failed for 'android/webkit/WebViewCore', aborting
F/libc ( 258): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1)
I/DEBUG ( 153): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
[Android Software Development] CosmicDan:
Merge the missing native method in WebViewCore:

E/dalvikvm( 258): ERROR: couldn't find native method
E/dalvikvm( 258): Requested: Landroid/webkit/WebViewCore;.nativeGetTextureGeneratorThreadID:()I
[Android Software Development] :
Okay, I re-ported with a different source and managed to get it booting! However, there are a lot of issues, which I think I'll be able to track down myself, except one in particular:

The input on the screen is not correct and somewhat random. Where can I look to fix this issue?
[Android Software Development] Lens_flare:
kernel or even hardware issue
[Android Software Development] :
The confusing thing is that I am using the same Kernel as in the CM9 ROM, which works fine for any type of input.

I thought it had to be something the framework that wasn't compliant.

What ROM do you suggest basing my port on?

I am porting to an HP Touchpad, Qualcomm snapdragon S3, I've already tried the MiOne ROM and none of the Drawables worked.
[Android Software Development] swapnilraj:
Hey the phone is not booting here is the logcat

I/ServiceManager( 134): service 'media.yamahaplayer' died

I/ServiceManager( 134): service 'SecTVOutService' died

I/ServiceManager( 134): service 'media.audio_flinger' died

I/ServiceManager( 134): service 'media.player' died

I/ServiceManager( 134): service 'media.camera' died

I/ServiceManager( 134): service 'media.audio_policy' died
[Android Software Development] Lens_flare:
please list 40 lines above
[Android Software Development] swapnilraj:
Here you go http://tny.cz/f4f14c51
[Android Software Development] Lens_flare:
E/HAL ( 270): Cannot load library: link_image[1965]: 270 could not load needed library 'libtiutils.so' for 'vendor-camera.t1.so' (load_library[1120]: Library 'libtiutils.so' not found)

E/HAL ( 301): Cannot load library: link_image[1965]: 301 could not load needed library 'libtinyalsa.so' for 'audio.primary.omap4.so' (load_library[1120]: Library 'libtinyalsa.so' not found)

seems like you are trying to merge libs for galaxy nexus and yours.. stop that, or try to add libs I listed above..
[Android Software Development] swapnilraj:
If i copy the libs will these be fixed

I/ServiceManager( 134): service 'media.yamahaplayer' died

I/ServiceManager( 134): service 'SecTVOutService' died

I/ServiceManager( 134): service 'media.audio_flinger' died

I/ServiceManager( 134): service 'media.player' died

I/ServiceManager( 134): service 'media.camera' died

I/ServiceManager( 134): service 'media.audio_policy' died
[Android Software Development] Lens_flare:
THEY might cause even more errors..

where have you found the info you should even touch any lib?
[Android Software Development] CosmicDan:
LOL.

That is all.
[Android Software Development] ak0r:
FINALLY. I got a working MIUI JB rom now. All because all you guys. Thanks a lot. Now I only have two problems :D

1. One first boot, when SIM gets registered to network, device reboots for 'n' number of times. I had to remove SIM and then get it booted. Then put the phone on airplane mode, put SIM again then reboot then make airplane mode off. Finally I get proper network.

2. I cannot apply themes :(
[Android Software Development] Lens_flare:
try to capture radiolog, maybe there are some incompatible smali code.

as usual.. create empty data/system/theme.
[Android Software Development] ak0r:
Thanks Lens_flare. That was quick. I can try theme fix right now.
[Android Software Development] ak0r:
Themes now work. But I discovered another problem. Headsets. Though connected I cannot them detected. I had to use ToggleHeadset widget to get them working. But how can I fix this? I remember somebody posted solution in this thread but not able to find that post.
[Android Software Development] CosmicDan:
It baffles me why so many people have all these weird problems. For Sony devices, once you get it booting nearly everything works already.
[Android Software Development] mscreater:
i enter the system but have no phone signal...

he L_S i have enter the system but it doesn't have a phone signal.i also change framework.jar all RIL*.smali and change framework-res.apk in /res/values/sikp_netwrok_slect. to false ..but it still have no signal ..

here is my log http://pastebin.com/wcYmAbdB
[Android Software Development] Lens_flare:
do a radiolog please:

adb logcat -b radio
[Android Software Development] matrixios:
can someone tell me what is the best option to fix Rom on optimus x2

Sent from high speed cm7 optimus x2
[Android Software Development] Megalith27:
Quick question guys, if am not sure while diffing/modding smali file (i.e. I am in the fear of messing up something) can I replace that smali file from the base?
[Android Software Development] CosmicDan:
Try it and see what happens. There is no one answer for everything. Usually if you replace you will get more errors, and you might fix them by replacing more files. But sometimes not. So keep a log of what you change.
[Android Software Development] Hamodi:
thank you its really help

but i have one question ,, if i want to port miui for xperia S with Cm 9.1 Base do i need to edit framework or something ?? because the rom do not boot up !!

and flashing the rom only takes 2 sec !! ( installing update script ! ) i think i missed somthing !
[Android Software Development] mscreater:
here is the radio log http://pastebin.com/U0H5Ai0p
[Android Software Development] ak0r:
Found my own request with reply from Lens_flare as above. Still I don't get headset working. Lens can you please help me in this?
[Android Software Development] ak0r:
I am finding an error which puts device bootloop after 4-5 seconds when I successfully booted to home.

Here is radio log http://pastebin.com/C9qSkh0r

Radio log has following errors

And here is full log http://pastebin.com/f7UCZzTS

Above log has following errors

I wonder where this came from? I am porting Nexus ROM to HTC :P

But if I put phone immediately on airplane mode and later select network manually I get a perfectly working MIUI JB till next reboot :D
[Android Software Development] irberserk:
I have a little problem. My leds not working, any. Any suggest for fix it?
[Android Software Development] CosmicDan:
@ak0r, most of those errors can be ignored. The iptables error is probably a kernel issue, I've never seen that before. Is your wifi interface wlan0? Is Wifi working?

libwvm.so is usually found in the vendor/appslog partition.
[Android Software Development] Lens_flare:
found a error in log:

W/System.err( 1304): java.io.FileNotFoundException: /data/cust/xml/hw_defaults.xml: open failed: ENOENT (No such file or directory)

and nothing in radiolog ;[

might mean you haven't that file, which is kinda crucial.

if you have jellybean, nexus s is an option.

last version you could port on ics is 2.8.10

package_extract_dir(system, /system); ?

on sony-ericsson we have a hardware incompatibility with headsets which aren't from SE, there might similar issue.

again icccardstatus*.smali..
[Android Software Development] ak0r:
Wi-Fi works perfectly. Even data network works without any issue. But the phone gets restarted 4-5 sec later homescreen is visible. And after restart I get message SIM added.
[Android Software Development] blackwing182:
Theme Manager error ( unable to connect to network )

i know this is a MIUI v4 (ICS) thread suport, but iv ben looking all over google and cant find anything,

i ported miui jellybean and now my theme manager says when i look for an online theme this ( unable to connect to network)

link to a logcat, if any one can help me on this silly bug :)

http://logcat.miui.us/1366001
[Android Software Development] CosmicDan:
Post above yours from Lens:

---------- Post added at 02:29 PM ---------- Previous post was at 02:27 PM ----------

This is the error:

W/System.err( 8636): java.lang.IllegalArgumentException: Illegal character in query at index 114: http://market.xiaomi.com/thm/subject/index?category=Compound&device=SGH-T989&system=miui&version=4.1.2_Miuiandroid 2.10.26&imei=359605045731935&start=0&count=30

Did you change your build.prop? Remove all spaces in the version strings. If you didn't, then it looks like an MIUI bug.
[Android Software Development] Lens_flare:
Above log has following errors :D

D/dalvikvm( 111): DexOpt: couldn't find field Landroid/content/res/AssetManager;.mRedirections
W/dalvikvm( 111): VFY: unable to resolve instance field 8719
D/dalvikvm( 111): VFY: replacing opcode 0x54 at 0x0000

looks familiar :P

I/dalvikvm( 111): Could not find method android.webkit.SelectActionModeCallback.setOpenUrlVisibility, referenced from method android.webkit.WebViewClassic.updateTextSelectionFromMessage
W/dalvikvm( 111): VFY: unable to resolve virtual method 39540: Landroid/webkit/SelectActionModeCallback;.setOpenUrlVisibility ()V

selection in browser issue, as I said.

and that's why your themes are down:

I/DEBUG ( 108): pid: 370, tid: 370, name: invoke-as >>> /system/xbin/invoke-as <<<

should I also add v4.1 to description? :P

As you could see, latest discussion is about JB.

might be an network/server issue no?
[Android Software Development] blackwing182:
dno, i can try another miui port that was made for my device also, but as far as i remember , in the miui.us port is working good,

---------- Post added at 04:51 AM ---------- Previous post was at 04:47 AM ----------

invoke as? but themes apply normaly, well the only thing that is not applaying is bootanimations, could that be the error? wrong symlink, or framework.jar issue?
[Android Software Development] CosmicDan:
Copy the /bin/bootanimation from MIUI to your ROM ;)
[Android Software Development] ak0r:
Thanks Lens/Cosmic. I should look again into smali patches. One quick question :P May be not related to porting but related to MIUI. Which build is more easy to port :D MIUIAndroid or MIUI.us?
[Android Software Development] CosmicDan:
Definitely MIUIAndroid, apart from translations and regional updates they are practically identical to official MIUI builds. MIUI.us change a lot of sh!t and rename classes and stuff.
[Android Software Development] Lens_flare:
it was an answer for ak0r :p
[Android Software Development] acervenky:
Hey Guys,

acervenky from Xperia NXT Section.

I would like to port MIUI to Xperia P,U and Sola.(NovaThor U8500)

Which MIUI rom should I choose as my base:confused:

Thanks in advance.

Regards,

acervenky,

XPT
[Android Software Development] Lens_flare:
FXP CM 10 and nexus S miui.
[Android Software Development] acervenky:
Thanks.

But we don't have CM10 in present:D

Regards,

acervenky,

XPT
[Android Software Development] Lens_flare:
oh, I misread then.

Use arc s miui(or xperia s at last) and stock as base (as I'm aware, it shouldn't be a problem).

Nexus base gone to jellybean ;[
[Android Software Development] CosmicDan:
Stock ICS and MIUI for Xperia S then. If the NXT series are anything like the 2011 Xperia's, you will be able to boot with changing just the hardware objects (lib\hw).
[Android Software Development] acervenky:
Thanks for the info guys.:D

I will start porting.

Regards,

acervenky,

XPT
[Android Software Development] irberserk:
Hi guys I have a problem. I have added in framework-res.apk and framework-miui-res.apk the italian language ( added the value-it folder), but i still can't see it in option language. What i must change?
[Android Software Development] v1r0x:
Little question:

After applying a new theme (only framework is checked in Themes-app) the button lights turned on :confused::confused:

anyone an idea?
[Android Software Development] CosmicDan:
Also in Settings.apk and MiuiSystemUI.apk AFAIK. But download MoreLocale 2 from Play Store and see if you can change first there, because since .19 many devices have a bug that dont show new languages.
[Android Software Development] thetrisatria:
in my experience, at least in Settings.apk and framework-res.apk
[Android Software Development] Lens_flare:
What about changing apk languages?

Any theme? Or exact one?
[Android Software Development] yinfox:
Help！Boot Loop on MIUI！thx!

E/JNIHelp(7304): Native registration unable to find class 'android/nfc/NdefMessage', aborting

Base and MIUI Base have the same NdefMessage.smali!
[Android Software Development] Hamodi:
this work with cm 10 and miui 4.1 jb ???

i want to port miui jb for xperia S
[Android Software Development] Lens_flare:
Deleted nfc.apk?

Yeah it should, for latest fix3s see lat3st pages for now.
[Android Software Development] Hamodi:
galaxy nexus miui 4.1 base will work with xperia S Cm 10 base ??
[Android Software Development] yinfox:
Nope,My phone doesn't support NFC,but I didn't delete nfc.apk.
[Android Software Development] irberserk:
I have solved added in framework-res.apk and framework-miui-res.apk the folder values-rIT not values-it.I have also translate settings.apk and miuihome.apk and all seems work fine.

Inviato dal mio GT-P5110 con Tapatalk 2
[Android Software Development] v1r0x:
seems to happen with most of the themes.

you should delete it ;)
[Android Software Development] yinfox:
Mmmmmmmm,I try to add it and delete it ,but the problem still exists
[Android Software Development] Hamodi:
i have to say im lost on stage 2 :(

i had download the apk tool jar ,, but i dont know what next !! any help pleas !!

maybe some one can do stage 2 for me ? i will upload the files from the rom
[Android Software Development] AdhvanIt:
This guide is meant to teach you how to do it yourself… I think its safe to say that nobody is going to do the work for you. If you don't know how to use apktool, there are plenty of guides that provide the necessary commands.

Sent from another galaxy [S2]
[Android Software Development] Hamodi:
removed
[Android Software Development] Lens_flare:
finally delete it and show log.

is FXP cm 10 is the same for all xperia which supported? you could try out some miui based on guide out there (mine for example) and diff changes, to have a clue what to do next.
[Android Software Development] CosmicDan:
Man, I saw your thread.... you are saying that MIUI for Xperia S is your first ROM? But you just link to MIUIAndroid.com's official release! You have not done anything. That's pretty dodgy, you taking credit for their hard work.
[Android Software Development] ak0r:
While porting MIUI JB, I replaced webkit*.smali, but now browser always renders desktop site. No mobile view is enabled nor I can get mobile view working. Did I patched some extra smali?