yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Lens_flare:
Anybody tried to get MIUI webkit working? It is mostly indepent part of framework and lib which links to it and that's it. In theory, android_runtime won't even mention webkit if both parts will be from miui.

I just have no time to try that..
[Android Software Development] a1exander:
Is that a .patch file? If so, how do I use it? Im on windows.

EDIT: Nvm, iv'e replaced the HTML5* smali tree and done that patch, but now my browser isnt working. And not google login, gmail etc etc. :s How can I fix this?
[Android Software Development] v1r0x:
what's the problem with webkit?

Did this fix your facebook problem?

Seems that I have the same problem :/

Sent from my awesome Desire Z with MIUI JB using the xda-developers app
[Android Software Development] a1exander:
Nope! Facebook fc now, before it just wouldnt load. Hope anyone come up with a solution! :/
[Android Software Development] CosmicDan:
Well you must have a newer CM10 version, we'll need to see logcat.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] v1r0x:
This is the error I get when loading facebook

10-02 01:08:11.099: E/chromium(1146): external/chromium/net/disk_cache/stat_hub.cc:216: [1002/010811:ERROR:stat_hub.cc(216)] StatHub::Init - App com.facebook.katana isn't supported.
10-02 01:08:11.109: E/chromium(1146): external/chromium/net/disk_cache/stat_hub.cc:216: [1002/010811:ERROR:stat_hub.cc(216)] StatHub::Init - App com.facebook.katana isn't supported.

Don't know whats wromg :confused:
[Android Software Development] Lens_flare:
it's *****y to port and causes many side effects like you posted below, that's it :D
[Android Software Development] CosmicDan:
Back when I ported MIUI GB to X10, i could never get native browser working. With every new release some new bug came in, like pinch zoom was broken. A quick fix is to use pure CM10 browser, replace entire webkit tree, and replace libwebcore.so with CM one. Of course then you need to use CM Browser.apk.

EDIT: There's a new CM10 out for my device so ill see how I go with getting it going.

EDIT2: Hey Lens, how are you recompiling your APK's? Whenever I deal with Phone.apk (to disable SIM PIN) or framework-res (to disable navbar), they always rebuild as broken. Are you on Linux using APKTool 1.5.0? I have to manually hack smali code to disable those two things, because APKTool 1.5.0 for Windows can't seem to rebuild MIUI resources properly :(

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] Lens_flare:
using latest Connor apktool and changing 1$ 2$ in plurals.xml, as usual.
[Android Software Development] CosmicDan:
I thought that was fixed. You on Linux or Windows? Because Linux aapt is more up to date. Guess I'll try it and see if my APK's rebuild right.

As for using MIUI's libwebcore.so, yeah I don't think it's possible. I tried randomly replacing some more libs which it depends on, but it results in that Netd loop. I really wish I had time to experiment and find what files I can replace to go with libandroid_runtime and libwebcore, like I did with CM7 MIUI on the X10. But it really sucks without proper error messages and so many libs to try. So i couldn't be bothered.
[Android Software Development] Peteragent5:
Don't ever delete this thread. It's extremely useful. Many Thanks! :D
[Android Software Development] Lens_flare:
I'm on linux :p

aapt from Connor site, android sdk one is now absolutely useless

d'oh.. I do believe it's possible..

most bases we used before has gone.. aosp and patchrom definitely broke a deal

add:

d-a-m-n..

almost forgot about that..

that might be a deal.. if it turns any stock rom to miui, what if stock rom turns into.. cm?
[Android Software Development] Lens_flare:
yAp ;]]

it's so-called advanced debugging and needs some more work then mere smali patch ;)

hAve you ever seen proprietary roms smalis? CM Compared to them such slightly customised :D

mind to share how did you came across that?

of course.. still using nexus build right? ;)
[Android Software Development] CosmicDan:
I came across that with random experimentation :P As I detailed in the manually-running surfaceflinger to see why it crashed, found the function name "_ZN7android12AssetManager12addAssetPathERKNS_7String8EPPv" in a few libs, including libfwloader.so, and I tried that pushing that one first - and it booted.

I'm using Galaxy Nexus build right now. I have updated my last post, check again :) I don't think base will matter, because all current JB devices use PowerVR GPU. But if you have a PowerVR GPU device yourself, you might get it wotking. I also had no touch screen after that first Edit, because surface flinger was rejecting it (I think). In Edit2, replacing libsurfaceflinger and some dependencies resulted in a very unstable system, but the one time I did get it to boot to lockscreen, the touch was working. But again, graphics drivers were constantly crashing. I have an Adreno/Snapdragon board (msm-7x30), very different to PowerVR/OMAP from the Galaxy Nexus. Granted, the Nexus S is Hummingbird A8 (not OMAP), but still its a PowerVR GPU and Samsung Exynos CPU.
[Android Software Development] a1exander:
So do I need to replace whole webkit, libwebcore.so and miui browser with CM10 files before I do this? Or does this work with default miui browser?
[Android Software Development] CosmicDan:
No, same as always. CM10 libs, MIUI APK's. Not whole webkit tree, only what I said. If you still have problems, remember to logcat.
[Android Software Development] Peteragent5:
No not replace. You have to logcat, then add missing methods specified from the logcat.
[Android Software Development] iBotPeaches:
I am looking into a string rewrite for xlif / positional data for v1.5.2. It seems that if you have one variable %s or %d is perfectly acceptable. However then it is non-positional so it must be $1%s etc. Which then depends how Apktool reads a <item> in a strings.xml vs a plurals.xml due to the nasty hacky fix we have for serializeToResValuesXml(), which isn't present in the default handling of strings.xml files.

Then again. I don't really know whats correct or not. So my next step is to generate a test case of about 40 different methods in Eclipse and build an Android project to see what AAPT yells at and doesn't like. Then use those results to recode Apktool all while I go to school & work part time.

With that being said. I merged MIUI AAPT Changes, AOSP & Chainfires FAPPT into new Linux & Windows binaries: http://miui.connortumbleson.com/other/apktool/aapt/

Posted in the /fappt subfolders of your OS.

Might need your help Lens over a port I took over. Some stupid Facebook problem that I can't seem to figure out. http://logcat.miuiandroid.com/105
[Android Software Development] CosmicDan:
Good info. Nice of you to drop in iBotPeaches! *bows*

As for that error, looks a bit strange. Any details on the base/port you can provide? Is it using MIUI's original libwebcore.so?
[Android Software Development] Lens_flare:
CosmicDan

I already said that all good bases were gone (ics bases are also not a deal as full of proprietary frameworks).

have you tried to replace ALL as usual but remain android_runtime and fwloader from miui?

EDIT: or I misread and that's what have you done? :D

iBotPeaches

glad to see you on xda, especially with porting attempts ;]

about error:

dl error message Cannot load library: load_library[1118]: Library 'libtcpfinaggr.so' not found

netstack: Failed to open plugin:libdnshostprio.so

something proprietary there.. seems to be bound to disk_cache(?) binary
[Android Software Development] thetrisatria:
hi everyone (especially Lens_flare)

i have miui running in my xperia ray.

everything sems to be OK, but still have some bugs.

maybe y'all can help me to fix them.

i have LED notification works normally, except for missed call.

on missed call the LED not blinking as it should be.

any idea to fix it?

thanks.
[Android Software Development] Lens_flare:
have you enabled led settings?

that one usualluy provides such interface. By default - one color for all notifications.
[Android Software Development] thetrisatria:
yup, i already enabled it.

system LED notification - works :)

sms LED notification - works :)

missed call LED nottification - not works :crying:
[Android Software Development] CosmicDan:
I noticed it never worked on mine either, probably a Sony thing.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] thetrisatria:
if you use "Light Flow" or other LED management apps, the notification can works normally on missed call.

i'm sure it is framework issue (possibly in services.jar)
[Android Software Development] Alex93917:
Hello !

How can i fix lag on lockscreen ? (It's very laggy on I9001 / I9003 / I8150). I port from Nexus S.

Thank you ! :)
[Android Software Development] CosmicDan:
Its a known issue with most devices, even official builds. Its not laggy on mine but I build with stock ICS now. Use different lock screen.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] Lens_flare:
strange.. it seems worked for me.. will have a look.
[Android Software Development] CosmicDan:
Yeah, it flashes for every other type of notification except missed calls. Maybe it's because we use a custom RIL? I doubt it, but I dunno. Doesn't bother me really since the notification LED on the Xperia Play is hard to see anyway :P
[Android Software Development] Lens_flare:
no, it's powermanager service tweak, I remember it was done in custom way in miui gb, but I swear it worked also on my acer MT(which has separate missed call led) with miui v4.
[Android Software Development] CosmicDan:
Sorry, not sure if I was clear - there is only one LED on the Xperia's, just that CM10 based builds didn't work for missed calls, everything else did though (including custom apps and colors like in Friendcaster).

But on my MIUI Arc S port (on stock ICS for my Xperia Play), it does work 100%. So yeah, it might be a small difference in framework. I would look into it i.e. compare Arc S MIUI with Nexus MIUI power manager, but I couldn't be bothered right now. ICS/JB differences are probably a lot of mess to sort through.
[Android Software Development] Lens_flare:
missed call is not a mere notification, so no matter whether the led is separate or not, it's custom made, that's it ;]
[Android Software Development] sorullo_xgrx:
Help please I'm really a noob on development side. But I'm trying to fix data on a miui v4 port, is sense base with a sense port. Well voice and text message is working but no data. If there is no telephony on com.android.internal where should I look to modify Ril or PhoneFactory and see if that will fix the data issue. Thanks in advance
[Android Software Development] Lens_flare:
oO

you defined that:

in com/android/internal/telephony/ , framework.jar.

Replace RIL*.smali, and your ril class [find on build.prop: ro.telephony.ril_class = ], redefine RIL to your class in PhoneFactory.smali.
[Android Software Development] sorullo_xgrx:
Correct.. but in framework.jar from the miui rom there is no telephony in com.android.internal.. neither on the base rom. I just think is maybe because is a HTC sense base rom.. I'm kind of lost. Can't find any Ril*.smali files anywhere inside framework.jar
[Android Software Development] Lens_flare:
post links, will have a look. Also specify devices you are porting.
[Android Software Development] sorullo_xgrx:
HTC thunderbolt base rom.. using the Evo 3D miui from...

Here is the framework.jar from the thunderbolt rom

http://db.tt/YtQKzG4I
[Android Software Development] Vency77:
Was thinking of porting MIUIv4 again, just wanted to ask, is it still possible to use crespo's Nexus S MIUI.us 2.9.29 as a MIUI base ?
[Android Software Development] Lens_flare:
still? I thought that was never been possible :D

Just keep in mind that miui gone to Jelly Bean, Nexus devices too.
[Android Software Development] Vency77:
It was in the previous versions for the nexus :D

So what do you offer me like a MIUI base?

P.S. We've got MIUI 2.9.21 for my device, although it is based on CM9?
[Android Software Development] Lens_flare:
obvious - htc has immersive devs :D

why not to ask them then?
[Android Software Development] CosmicDan:
We all use miuiandroid.com builds, not miui.us

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] Vency77:
Nevermind, will get the latest version of some device and just try :)

P.S. How are updates going, since there is a new release every week? Can i just replace the applications, or the framework need to be ported again ?
[Android Software Development] hyelife:
Thanks for the guide. Just have one question. If I wanted to port this to SGS2 T-Mobile and used CM10 for base, what which version of MIUI would I need to port from? I can use any phone that its available on or specific ones only?

Edit: Never mind. after a little more careful reading figured it out. Thanks!
[Android Software Development] CosmicDan:
Framework changes are common, mainly resources.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] Vency77:
Ok I'm in a dead end, so i will need help :crying:

I really cant understand how and from what device should I start the port from, since all the devices are very,very,very different from my phone, plus that most of the latest builds are JB I think and we dont have a JB rom, just ICS ones. Plus that, lets say I start porting from Nexus S, what should I do with framework2.jar ? Why is it used, and should I edit or delete it? Can the framework from JB be edited to work with my ICS base?

P.S. If none of these are possible, my last chance is to port from the HTC legend which have just slightly difference with my phone and 2.9.21 MIUI, but its from MIUI.us and I want to update it with the miuiandroid releases, which I'm not sure will work with the MIUI.us framework...Sorry but i thought I know something about this things, although now when i come to try again after some time I feel like everything has changed and I'm some idiot :laugh:
[Android Software Development] v1r0x:
Anyone an idea how to get another language?

In the last builds I could set language in build.prop and third-party and google apps were german.

But since miui has this weird 'first boot thing' I can only choose chinese and uk/us english. After that every app ignores the value in build.prop. :(
[Android Software Development] CosmicDan:
Settings > Language and input - provided you have multilanguage installed.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] v1r0x:
No, I have no multi lang, but in earlier builds at least the third party apps had the language defined in the build.prop. Since the new miui setup I can only choose one of the installed languages (in my case chinese, english (UK) and english (US)).

After choose one of them the definition in build.prop will be ignored and every third-party/google app will have the selected language and not the one I set in build.prop
[Android Software Development] Vency77:
Tried 'more locale' from the market ?
[Android Software Development] v1r0x:
This works. But why? Which setting beside build.prop can set the language?

I don't like it to have many apps I don't really need. So I'd like to know where to set this myself. But thanks
[Android Software Development] Vency77:
Anyone know how can I implement the performance setting from the CM9 base into the MIUI settings, or at least to use both apks ? There is really some important stuff ;d
[Android Software Development] CosmicDan:
With great difficulty. Unlike CM7, the performance menu is now compiled within Settings.apk. I spent a few days trying but couldnt do it.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] Rocky$1:
Help needed

When I try to decode framework.jar of MIUI I am getting the following error due to file length problem on windows, please help to fix this.

Error occured while disassembling class Lmiui.util.UnitedWorldwide_MIUIus_MIUIus_MIUIus_MI UIus_MIUIus_MIUIus_MIUIus_MIUIus_MIUIus_MIUIus_MIU Ius_MIUIus_MIUIus_MIUIus_MIUIus_MIUIus_MIUIus_MIUI us_MIUIus_MIUIus_MIUIus_MIUIus_MIUIus_MIUIus_MIUIu s_MIUIus_MIUIus_MIUIus_MIUIus_MIUIus_MIUIus_MIUIus _MIUIus_MIUIus_MIUIus_MIUIus_MIUIus_MIUIus; - skipping class

java.io.IOException: The filename, directory name, or volume label syntax is incorrect

at java.io.WinNTFileSystem.createFileExclusively(Nati ve Method)

at java.io.File.createNewFile(File.java:883)

at org.jf.baksmali.baksmali.disassembleDexFile(baksma li.java:195)

at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder .java:44)

at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder .java:33)

at brut.androlib.Androlib.decodeSourcesSmali(Androlib .java:68)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85 )

at brut.apktool.Main.cmdDecode(Main.java:128)

at brut.apktool.Main.main(Main.java:65)
[Android Software Development] Lens_flare:
Weird first boot thing could be bypassed :p

Search Provision.apk on that thread, I described how to fully bypass that setup wizard.

About morelocale, it uses setprop command:

pseudocode:

System.executeShellCommand("setprop ro.product.locale.language "+choosenLanguage);
System.executeShellCommand("setprop ro.product.locale.region "+choosenRegion);

don't use miui.us build, that's it.
[Android Software Development] CosmicDan:
Use miuiandroid.com releases. Miui.us seem to intentionally make their files decompile broken.
[Android Software Development] thetrisatria:
miui.us, where's the spirit of open source? :confused:
[Android Software Development] iBotPeaches:
This is all my guess but I believe they compile using the longest sub folder structure to prevent stealing of their toolbox, which is just bloat and prevents others from basing from their rom, or there buld script sucks and does it.

There own fault. In b4, an army of MIUI us comes to insult me and prove me wrong.
[Android Software Development] _polimorph_:
In my latest CM10 based 2.9.28 build for S3 i get only two, but anoying FCs. Can please anyone have a look and share the opinions:

Music's Equalizer FC:

http://pastebin.com/yqFTxesb

(i'ts pretty long, but the activity was started at the end of the log)

Settings->Apps tab (aplications manager) FC:

http://pastebin.com/esajZv9F

Thanks guys!
[Android Software Development] Lens_flare:
E/AndroidRuntime(6061): Caused by: java.io.FileNotFoundException: res/drawable-en-xhdpi/equalizer_adjust_bg.png

E/AndroidRuntime(13752): Caused by: java.lang.NumberFormatException: Invalid int: "@17694779"

resources trouble, seems you was lucky enough to recompile with wrong apktool.
[Android Software Development] Anon9mouz:
Beautiful guide wondering f any of this can e used towards jelly bean but this is so detailed this might help me to learn this native method step on building
[Android Software Development] Lens_flare:
Since september (or even earlier) we are discussing JellyBean roms.

In op I presented a general method (oh damn I should rework it to add some jb-specific features, just need time) and mostly it works with any device which has specific base (CM).
[Android Software Development] Anon9mouz:
I need to brush up on my porting BC me port from maguro to toroplus being the same phone one gsm and one CDMA is not tough at all but if I get this galaxy note 2 for sprint I might need to port from gs3 international since its quad core and all should be about the same but just have to wait for a base BC idk of anyone using a touch wiz ROM as base for miui so yea lol

__________________________________________________
[Android Software Development] Lens_flare:
whether your device is Nexus or not - use Nexus miui base, all other roms are based on stock roms, so official sgs3 MIUI is now based on touchwizz.
[Android Software Development] Anon9mouz:
Are u sure BC I keep up with those threads and I don't think they use touch wiz

__________________________________________________

---------- Post added at 05:08 AM ---------- Previous post was at 05:06 AM ----------

But ne who hopefully this guide can help me get this ported to galaxy note 2:p

__________________________________________________
[Android Software Development] CosmicDan:
Only Nexus builds are based on AOSP code, all other devices - including SGS3 - are based on prebuilt vendor ROM's. MIUI for SGS3 will work as well as any other SGS3-made ROM for your device (i.e. not very well, unless it has identical hardware).

Those of us with Xperia 2011 series devices are really lucky, they nearly all use the same CPU/Board/GPU :P
[Android Software Development] _polimorph_:
Since last week or so I try to port on the newer CM10 bases without luck - my log gets stuck at the begining of boot sequence (before Netd). I read the last 10 pages and saw some of you guys with the same problem (ralated on the libs?). In one of my many random builds I used libandroid_runtime and libandroidfw from MIUI, but with no luck. What do you think, what can one try to patch things up, where should I start?
[Android Software Development] CosmicDan:
Dont overwrite any CM10 bin or lib with MIUI ones. Netd loop can be diagnosed by running

adb shell system_server

Reason for netd loop is that system_server cannot start, usually due to incorrect lib dependency. That code will show exact error.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] _polimorph_:
Thanks. You say no lib copied over from MIUI to new port? Not even the libwebcore.so witch I needed to make Browser work? (I supose content-types.properties and liblbesec.so must be copied)

I would also want to ask how about the duplicates problem, as the contents on etc/terminfo where on windows two files as "ncrvt100wpp" and "NCRVT100WPP" can't coexist. Is there a posibility to work with this kind of builds under windows?
[Android Software Development] CosmicDan:
I have no idea what terminfo is even for, bash maybe.

You cant overwrite libwebcore, you need to use CM10 webkit.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] _polimorph_:
I always overwritten libwebcore instead of replacing webkit and worked flawless :)

The output of "adb shell system_server" is "Segmentation fault". Any ideeas?
[Android Software Development] CosmicDan:
Well youve been lucky to have an out-of-date CM10 or MIUI. As CM10 drifts further from the AOSP tree it becomes more difficult to port.

Segmentation fault means it cant even start to link static objects, i.e. system is seriously stuffed. As I said, use original CM10 libs and bins. Only add the usual new ones that MIUI needs.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] Lens_flare:
Sounds familiar.. like that huge c exception start point, which then shows some memory stack.

this is the only log you got? what about logcat?
[Android Software Development] _polimorph_:
Thanks. I'll use only content-types and liblbesec. Will also have to port the webkit.

Logcat its very short and shows only the first couple of lines "Vold [...]" and just sometimes the "Netd" line.

?:??: W/?(?): --------- beginning of /dev/log/main
10-09 14:20:42.395: I/cm(1892): Welcome to Android 4.1.1 / CyanogenMod-10-20121006-UNOFFICIAL-i9300
10-09 14:20:42.400: I/cm(1893): _
10-09 14:20:42.405: I/cm(1894): __ __ _ ___ _ _ __ ___ __ _ _ _ _ __ __))
10-09 14:20:42.410: I/cm(1895): ((_ \(/'((_( ((\( ((_)((_( (('((\( ((`1( ((_)((_(
10-09 14:20:42.420: I/cm(1896): )) _))
10-09 14:20:42.425: I/cm(1897):
10-09 14:20:42.570: I/DEBUG(1908): debuggerd: Oct 6 2012 18:38:58
10-09 14:20:42.570: I/DEBUG(1908): --------- beginning of /dev/log/system
10-09 14:20:42.670: I/Vold(1906): Vold 2.1 (the revenge) firing up
10-09 14:20:42.700: D/Vold(1906): Volume sdcard1 state changing -1 (Initializing) -> 0 (No-Media)
10-09 14:20:42.700: D/Vold(1906): Volume usbdisk0 state changing -1 (Initializing) -> 0 (No-Media)
10-09 14:20:42.710: I/Netd(1907): Netd 1.0 starting
10-09 14:20:42.715: I/macloader(1919): Writing murata to /data/.cid.info
10-09 14:20:42.715: D/macloader(1919): Setting permissions on /data/.cid.info

Thank you Dan and Lens (I wanted to thank you with the button also, but I ran out of those 8/day).