yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Lens_flare:
Huh, seems you found a way how to enable buttons, congrats :D now check if they are depend on autobrightness.

You,meant webkit folder?

Are you using d3fault browser then?
[Android Software Development] AdhvanIt:
You replaced the entire WebKit?

You should just be replacing HTML5•.smali and patch in a couple of others in there.

Search the thread for Facebook, it should come up with two posts by Dan outlining the exact procedure.

Sent from another galaxy [S2]
[Android Software Development] CosmicDan:
Don't blindly mass-replace files, do one-by-one to resolve each bug you find. From memory you need to patch some files instead of copy, I just can't remember what. But if you do one-by-one you will find which file causes useragent to break.
[Android Software Development] thetrisatria:
well, i replaced webkit folder and entire files within.

lol luckily, user agent workin' fine for me :highfive:
[Android Software Development] a1exander:
Am I the only one that is getting bug where you cant hang up in dialer? :s Galaxy S2 CM10 official + Nexus s miui 2.10.26!
[Android Software Development] CosmicDan:
Well that works, but then you practically replace MIUI Browser with AOSP Browser and lose a lot of functionality.
[Android Software Development] thetrisatria:
nope, i still have MIUI browser.

btw, what functionality did you mean?
[Android Software Development] _polimorph_:
I also had this. I hope I remember well that for solving this I had to use PhoneFactory.smali and BaseCommands.smali from CM. Make sure the line ro.telephony.ril_class= (whatever ril you use) is present in your CM base. You might want to copy it in your build.prop.
[Android Software Development] AdhvanIt:
Not really. The WebKit essentially is the browser. Just because the app looks like MIUI browser doesn't mean it functions like the MIUI browser.

Sent from another galaxy [S2]
[Android Software Development] Hamodi:
i didnt take any credit for miuiandroid rom i just was point to my first rom posting not porting or cocking !!

any way the thread moved and my goal wasnt to steal others work i just make a thread because there wasnt one for xperia S miui :(

so im here on this thread trying to learn how to port or **** a rom :( to make my rom

sorry again for miss understood
[Android Software Development] thetrisatria:
could you tell me what's the different between the miui browser and the aosp browser? thanks
[Android Software Development] Hamodi:
What this mean ?? i didnt get any framework file after inserting decompile framework-res with apktool !!!

---------- Post added at 01:18 AM ---------- Previous post was at 01:01 AM ----------

sorry i cant answer you because i didnt test aosp rom

but i think they are diffrent ( miui using new browser desing ) wait for somebody who knows better than me.....
[Android Software Development] CosmicDan:
Mainly visual. Can't remember. But I did what you did once and realized my browser was much like CM10 (AOSP) browser, didn't have MIUI features. It's been so long I can't remember.

apktool.yml is missing, you're not (de)compiling it properly.
[Android Software Development] ak0r:
Not entire webkit folder. Only webkit* tree. But this seems to causing issue for me. Facebook application just get opened and I cannot see anything. I should check only for diff then. Also I still struggling with headphones to get them working. Anyone knows working of app toggleheadset?
[Android Software Development] AdhvanIt:
As for the headphones, logcat.
[Android Software Development] Hamodi:
i think its there ?!! do i need to compiling apktool.yml with apktool cmd ?!!

i have this on the folder
[Android Software Development] Lens_flare:
it should be IN frameres..
[Android Software Development] Hamodi:
what IN mean ?? im lil bit noob bro

if you mean the framers folder that in the pic ! then no i dont have it there ,, i dont have nothing there sorry
[Android Software Development] Lens_flare:
pff.. it means that in frameres there should be res folder, apktool.yml and AndroidManifest.xml, if it supposed to be compiled as framework-res.apk
[Android Software Development] Hamodi:
i think something went wrong with me !! because i dont have any thing on the framers folder !!
[Android Software Development] Lens_flare:
then read guides about how apktool works.

I only must point that to recompile something you should decompile something, else apktool will have nothing to do.

PS: framework-res.apk is not first file you should mod to make rom boot.

show a full log. And specify choosen base.
[Android Software Development] Hamodi:
after putting all the files on the same folder ,, the first thing i post on CMD is ( java -jar apktool.jar if framework-res.apk )

or i need to somthing before ??

i followed this thread http://xdaforums.com/showthread.php?t=1752201

but i get the error i mention before
[Android Software Development] Lens_flare:
answered in PM.

in short, you should apktool d framework-res.apk then.
[Android Software Development] Hamodi:
i will delete and try clean folder :D

---------- Post added at 05:41 PM ---------- Previous post was at 05:24 PM ----------

ok this is good or bad ??

C:\apktools>java -jar apktool.jar if framework-res.apk

I: Framework installed to: C:\Users\Mohamad\apktool\framework\1.apk

C:\apktools>java -jar apktool.jar d framework-res.apk frameres

I: Loading resource table...

I: Loaded.

I: Decoding AndroidManifest.xml with resources...

I: Decoding file-resources...

I: Decoding values */* XMLs...

I: Done.

I: Copying assets and libs...

C:\apktools>java -jar apktool.jar b frameres NEWframework-res.apk

W: Could not find sources

I: Checking whether resources has changed...

I: Building resources...

I: Building apk file...

C:\apktools>
[Android Software Development] Lens_flare:
good. Hope you done something with it before compiling.
[Android Software Development] Hamodi:
something like what :D :D ???

what you send me on PM inserting it now after this or before ?!!
[Android Software Development] Lens_flare:
it's just a random action representation :D

You should actually understand why are you going to modify file before decompiling it, so that random action will be substituted with one you are actually going to do with file.
[Android Software Development] Hamodi:
so no need to insert them ??

because i insert what i send you on that thread and this what i got !!

so now i shud make the same thing with framwork-miui-res.apk ???

or im out of my mind write now and you say this guy is completley nob :D:cyclops:
[Android Software Development] sorullo_xgrx:
Need help guys can't figure this out.. I'm getting low internal memory when am still have plenty left.. can't I have only install three apps and won't let me install anymore... ICS port..
[Android Software Development] Neurom707:
Trying to port this : http://xdaforums.com/showthread.php?t=1944935

To Xperia U

http://xdaforums.com/showthread.php?t=1876927&page=1 That is base im using

Log in attachments just repeats

That after first section

I/Netd ( 2088): Netd 1.0 starting

I/Netd ( 2111): Netd 1.0 starting

I/Netd ( 2134): Netd 1.0 starting

I/Netd ( 2167): Netd 1.0 starting

I/touchd ( 1463): 'ab8500_usb' is online

I/touchd ( 1463): handling_uevent: event is 1
[Android Software Development] CosmicDan:
Again, wrong libs. Go to adb shell and run system_server to see error.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] ak0r:
Getting error

E/JNIHelp ( 111): Native registration unable to find class 'android/debug/JNITest', aborting

F/libc ( 111): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 111 (zygote)

Any help?
[Android Software Development] Hamodi:
[/COLOR]ok this is good or bad ??

C:\apktools>java -jar apktool.jar if framework-res.apk

I: Framework installed to: C:\Users\Mohamad\apktool\framework\1.apk

C:\apktools>java -jar apktool.jar d framework-res.apk frameres

I: Loading resource table...

I: Loaded.

I: Decoding AndroidManifest.xml with resources...

I: Decoding file-resources...

I: Decoding values */* XMLs...

I: Done.

I: Copying assets and libs...

C:\apktools>java -jar apktool.jar b frameres NEWframework-res.apk

W: Could not find sources

I: Checking whether resources has changed...

I: Building resources...

I: Building apk file...

C:\apktools>

___

i need to do the same thing but with the framwrok-miui-res.apk ??? or no need !!!
[Android Software Development] Hamodi:
C:\apktools>java -jar apktool.jar if framework-miui-res.apk

I: Framework installed to: C:\Users\Mohamad\apktool\framework\6.apk

C:\apktools>java -jar apktool.jar d framework-miui-res.apk framer2

I: Loading resource table...

I: Loaded.

I: Decoding AndroidManifest.xml with resources...

I: Loading resource table from file: C:\Users\Mohamad\apktool\framework\1.apk

I: Loaded.

I: Decoding file-resources...

I: Decoding values */* XMLs...

I: Done.

I: Copying assets and libs...

C:\apktools>java -jar apktool.jar b framer2 NEWframework-miui-res.apk

W: Could not find sources

I: Checking whether resources has changed...

I: Building resources...

aapt: warning: string 'christmas_dad' has no default translation in C:\apktools\

framer2\res; found: en_GB en_US

aapt: warning: string 'description_modifiedtime' has no default translation in C

:\apktools\framer2\res; found: en_GB en_US

aapt: warning: string 'perm_use_pin_security' has no default translation in C:\a

pktools\framer2\res; found: en_GB en_US

I: Building apk file...

C:\apktools>

__

ok is now the two frameworks are ready to the rom or what ???

any buddy can help me pleas !!

---------- Post added at 01:15 PM ---------- Previous post was at 01:15 PM ----------

C:\apktools>java -jar apktool.jar if framework-miui-res.apk

I: Framework installed to: C:\Users\Mohamad\apktool\framework\6.apk

C:\apktools>java -jar apktool.jar d framework-miui-res.apk framer2

I: Loading resource table...

I: Loaded.

I: Decoding AndroidManifest.xml with resources...

I: Loading resource table from file: C:\Users\Mohamad\apktool\framework\1.apk

I: Loaded.

I: Decoding file-resources...

I: Decoding values */* XMLs...

I: Done.

I: Copying assets and libs...

C:\apktools>java -jar apktool.jar b framer2 NEWframework-miui-res.apk

W: Could not find sources

I: Checking whether resources has changed...

I: Building resources...

aapt: warning: string 'christmas_dad' has no default translation in C:\apktools\

framer2\res; found: en_GB en_US

aapt: warning: string 'description_modifiedtime' has no default translation in C

:\apktools\framer2\res; found: en_GB en_US

aapt: warning: string 'perm_use_pin_security' has no default translation in C:\a

pktools\framer2\res; found: en_GB en_US

I: Building apk file...

C:\apktools>

__

ok is now the two frameworks are ready to the rom or what ???

any buddy can help me pleas !!
[Android Software Development] CosmicDan:
Add the missing JNITest.smali

@sparxx4, i suggest you look for a newbie guide to apktool or ask for help elsewhere. This is off topic and nothing to do with porting.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] Neurom707:
Thanks and i got this

C:\Android>adb shell

~ # system_server

system_server

link_image[1965]: 2467 could not load needed library 'libsystem_server.so' for

'system_server' (link_image[1965]: 2467 could not load needed library 'libandro

id_runtime.so' for 'libsystem_server.so' (link_image[1965]: 2467 could not load

needed library 'libtextrendering.so' for 'libandroid_runtime.so' (load_library[

1120]: Library 'libtextrendering.so' not found)))CANNOT LINK EXECUTABLE

~ #
[Android Software Development] Hamodi:
why to look for other !! i finaly had the new framework apk !!

and i think this thread is for porting ! and every body posting his errors !!
[Android Software Development] CosmicDan:
As the error says, you have a missing lib file. Best practice is to take all MIUI libs, the copy CM10 libs into there overwriting all the MIUI ones.

You're asking questions on how to use apktool, framework-res never needs modification for booting a port. Only for fixing wifi tether interface. Read the first three posts fir instructions on how to port, then when you get errors post your log cat. This is not a thread for apktool help.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] v1r0x:
I've a little question about fusionjacks control panel:

Anyone tried to include it?

If I decompile and recompile the files I get many errors (someone posted the same error some pages ago) and it won't boot.

Is this because of using miuiandroid as base and miuiaustralia ControlPanel?
[Android Software Development] thetrisatria:
agree with CosmicDan,

spark, what you really need first is to patch framework.jar and services.jar

you can modify framework-res.apk once you get your port boot-up (to fix tether or disable auto-brightness for example)
[Android Software Development] a1exander:
Is there anyone that has gotten bluetooth audio streaming ( a2dp ) to work on their port?
[Android Software Development] irberserk:
Hi guys thanks for help me with the porting,i released a miui enough stable, the only bug is the Miuigallery that show some artefact.Any trick to fix it?Logcat not show errors.Thanks all :o
[Android Software Development] Lens_flare:
it seems something went wrong after recompiling.. jnitest actually a first file in framework.jar.

Neurom707

you got such a messy log fragment, could you post full one?
[Android Software Development] Lens_flare:
NOTICE: I have started to extend my porting guide to JellyBean miui porting.

Since I have too much material to merge, some guide fragment might look messy in about a day, please use search instead.

Please keep patience until its done.
[Android Software Development] iBotPeaches:
New miui this week has telelocation.idf instead of td don't know if it's here to stay, but yesh
[Android Software Development] Lens_flare:
ehehe, alright, I'll try out new release and fixup some defines.

For now I finished stage 1, and almost-stage 2 (need to add complicated cases such as websettingsclassic).

Name changed to [GUIDE][ICS/JB/common] Definitive FAQ for newest miui porting , sorry for inconvinience.
[Android Software Development] ak0r:
Every time I do full wipe and flash my ported ROM, its gets rebooted 3 times before it get stable desktop. Everything works just normal after that. Network Signals/Data, Wi-Fi, USB, everything is normal after that. I did logcat and here it is. This log also had events for Headsets so any help around that will also be helpful. http://pastebin.com/tn8M1UHe
[Android Software Development] Lens_flare:
hard to say, the most repeating error is about invoke-as, also there is a error about network stats (which is kernel-only thing if all libs are from base, else, there is an iptables binary to change).

Seems inovke-as is more crucial than it used to be in past..

see in source "unsetting h2w flag".
[Android Software Development] ak0r:
All libs are fom base only. I'll check kernel with CM10 devs for HTC Marvel. I am not sure whats wrong with invoke-as. :(
[Android Software Development] Lens_flare:
Guide completed.

Now it contains jellybean defines, same as ics and common moments + some corrections and additions in all stages. Especially:

-SetupWizard eliminating

-WE ALL DIE error (it starts to be annoying)

-new smali in usb subsystem porting

-xperia devices pin prompt fix
[Android Software Development] Lens_flare:
New things on this release:

etc/telocation.idf

lib/libjni_resource_drm.so

android/bluetooth/HeadsetBase*.smali , framework.jar

Provision.apk:

damn chinese even changed a cond_5 to cond_6 (guide have been rewrote for that)..

As you wish guys, but I couldn't maintain that thread anymore, as MIUI for me now is pure crap (having to pay for themes and create new account for them was just a last edge). Plus smalis.. on each release something becomes complicated to work with..

So I'm out, sorry.
[Android Software Development] CosmicDan:
Sad to see you go, but i completely understand. I have not bothered with trying to port MIUI for a while now, there is always something wrong that just cant be realistically solved. And then the lag, OH the lag!

Using the PatchROM method with stock ICS/JB is much better than trying to hack it together with CM9/10 or AOKP.

With that said, I'm also unsubscribing from this thread. It was fine at first and for the learning experience, but with the skill I've gained over the past few months I have much more important things to focus on.

Cheers Lens_Flare, be safe and well!

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] v1r0x:
dafuq? oO pay for themes?? crap...

Maybe I switch to CM. Getting tired of porting errors in the last few months...

Anyway, thanks for your effort and everything lens!
[Android Software Development] iBotPeaches:
Good luck out there in the world. My time might be short lived as well with Xiaomi doing crap to us like this. It seems all fansites at least agree on this: http://en.miui.com/thread-914-1-1.html

Now that they made a mistake, I'm demanding JB JAR source, so we can overlay the MIUI hooks into CM build and remove all need of smali patching. Assuming they fix Theme Manager.
[Android Software Development] imanesaurus:
Hi there.

thanks for ur nice and detailed tutorial i've succesfully ported MIUI v4 to my devices.

but i just follow ur instruction and i've problem after port it.

1. USB mass storage and ADB debug icon don't show. but the adb works fine, not the mass storage.

2. When i open settings-apps-and click 1 of them, the settings get FC

3. Why whatsapp is not work in MIUI that i've ported? cause in CM base is works fine

can u help me?

thanks in advance

regards
[Android Software Development] a1exander:
*Delete this*

Nvm, stupid question!
[Android Software Development] AdhvanIt:
You'll need a logcat to see the issue with settings and whatsapp.

USB storage might be fixed by replacing the mount smali tree in services.jar.
[Android Software Development] imanesaurus:
thank u for respons

so where is in the logcat i can found that issue and how to solve that?

so i just replacing it? don't need to matching the id with the ressources like the @OP said?

sorry for my bad english.

thanks before
[Android Software Development] AdhvanIt:
It'll be wherever the log was when the app FC'd.

You should follow the OP's procedures. If not everything is solved via reference from that, this is where alternate methods come in. Porting from Crespo to SGS2, the mount smali tree is what fixed USB mass storage for me. If it doesn't work for you, keep looking.
[Android Software Development] sorullo_xgrx:
I'll appreciate some help, I'm getting low internal memory error when I still have enough memory free and can't install any new app. Is there anywhere I could look to fix this...
[Android Software Development] eminent1410:
I has ported MIUI from Galaxy S for LG P970 but I still have a noob question. What device should I choose MIUI base to port?
[Android Software Development] a1exander:
Nexus s (crespo)!
[Android Software Development] irberserk:
Hi all i have created a rom enough stable, i have only a issue with some apps. When install an app (not all) as for example soccerkicks,apk from market the phone restart and have a lot of errors. Here logcat

LOGCAT

Any advice to fix it? Thanks to all :o

Solved i forget to sign system app :|
[Android Software Development] imanesaurus:
I just follow all, but stuck in diff for usb usb system in stage 4.

Have u have a link to download miui ics version for crespo? in miui sites, it has been deleted, cz miui for nexus s is already in Jb.

Thanks before

Sent from my Xperia U
[Android Software Development] robt77:
Hi,

Excellent guide, I manged to port Miui for the zte crescent. The Rom boots :) but when it gets to the android setup page it says keyboard unfortunately has stopped working and then the phone reboots. I tried changing keyboard apps but the same thing happens :( Here is a link to the logcat I grabbed. http://pastebin.com/fvL127VK If anyone has any ideas or can point me in the right direction to solve it I would appreciate it

Thanks
[Android Software Development] ak0r:
You have following error:

Try replacing webkit/HTML5* smali.
[Android Software Development] robt77:
Thanks will give it a try
[Android Software Development] Alex93917:
Hello !

What about this black line :

Thank you :)
[Android Software Development] _polimorph_:
You know these are not the best news for the rest of us, porters. These times are indeed difficult in MIUI international comunity and I understand your points of view. Also, because "nothing lasts forever" is true for bad times as much as it is true for better times I'm hoping some good times will come back one day.

Well, maybe you'll to reconsider your decision and in the meantime I want to thank you both in the most respectful and grateful way for influencing my android knowledge in a very positive way.

Thank you very much.
[Android Software Development] AdhvanIt:
Yeah, I'm not sure what that is. It's present in my Crespo4g build, but not my epic4gtouch build. Both using the same base. I think it might have something to do with the way the screen is rendering colors.
[Android Software Development] robt77:
I tried replacing the webkit/HTML5* smali as suggested and when flashed new rom got stuck in a boot loop and got following logcat http://pastebin.com/MNRSP6gH
[Android Software Development] imanesaurus:
Any suggestions how to fix emoji ?

it's don't show in keyboard messaging.

thanks in advance
[Android Software Development] ak0r:
Are you porting 2.11.2?
[Android Software Development] Megalith27:
I am wondering if it is possible to port ICS rom on top of CM10 to have JB rom? Realising all the debugging and modding that needs to be done.
[Android Software Development] AdhvanIt:
Nope. If you want a JB ROM, you're going to need to port from another JB ROM. Why would you want to use an ICS framework/apps anyway over CM10?
[Android Software Development] Megalith27:
Cuz I want to port Flyme Os and it's only available on ICS but I don't want to downgrade from JB. But, I guess, it's not possible.
[Android Software Development] Hamodi:
this bug on Xperia S officialy miui too !! no fix yet :(

---------- Post added at 02:21 PM ---------- Previous post was at 02:19 PM ----------

Guys

Miui have 3 framwrok.jar !!

miui framework.jar

framework.jar

framework2.jar

!!

wich one i shud edit to and replace the files !!

this is for galaxy nexus JB !!
[Android Software Development] Hamodi:
if i ported from galaxy nexus JB with Xperia S CM 10 based .. the rom shud boot without editing the framework.jar .. i mean it have to boot after step 1 only or i have too go step 2 ??
[Android Software Development] AdhvanIt:
You'll have to go through all of the steps, more than likely. The only way to find out is to try.
[Android Software Development] ak0r:
Anyone know how to add more languages to MIUI ROM?
[Android Software Development] _polimorph_:
E/AndroidRuntime( 328): java.lang.NoClassDefFoundError: miui.os.Environment

It didn't found a smali needed for booting. Search for the file "Environment.smali" from framework base and copy it to port's new framework. Copy that and try to boot again. See it boots clean or throws another error.
[Android Software Development] Hamodi:
to make a logcat .. i have to run ADB then insert : adb logcat >log.txt

then the logcat shud be maked !!???

any help ??