yashsingh1/xdaforums huggingface dataset:
[Optimus One, P500 Android Development] 4silvertooth:
About the log.

The error so.lcddensity(something) is in build.prop you have to add it, it's using 160 by default.

All the missing class will have to be taken from the decompiled framework.
[Optimus One, P500 Android Development] popdog123:
I'm redoing framework.jar... See what i missed... Then i'll get to build.prop

Also using boot.img from mik's cm port now
[Optimus One, P500 Android Development] fdkgenie:
Breaking news of the day! I'll one of the first tester ;) Keep going, heroes!
[Optimus One, P500 Android Development] 4silvertooth:
Will have to replace some smali. Merge the missing wont do.

@jazuk which one mainly.
[Optimus One, P500 Android Development] xuso:
Great news! :D
[Optimus One, P500 Android Development] WhizKins:
+1 for this, it would be easier to download for people with a slow connection like me.
[Optimus One, P500 Android Development] popdog123:
ok ok... will do that... but for now we have to make a good base to start off of...
[Optimus One, P500 Android Development] jazux:
Whaaat??? :confused::D:confused::D:cool:
[Optimus One, P500 Android Development] Bytecode:
Nice to see another dev porting some other firmwares to our phone :) if you want help then I'm in :)
[Optimus One, P500 Android Development] 4silvertooth:
Never mind back to that later.
[Optimus One, P500 Android Development] 4silvertooth:
Yaa we shall need that help once the launcher starts.
[Optimus One, P500 Android Development] SWEATTAIMI:
dude galaxy 3 is much older, and galaxy 5 also, sgs2 is the most best galaxy so far, :p
[Optimus One, P500 Android Development] SWEATTAIMI:
already been converted to mdpi :P
[Optimus One, P500 Android Development] 4silvertooth:
They are froyo miui apps with converted PNG I think , we need that for gingerbread miui (current version). But it would be nice if we could just fake hdpi. Because if you look at the mtz(theme files used in miui, they r just renamed zips) files of miui you'll go crazy converting.
[Optimus One, P500 Android Development] SWEATTAIMI:
http://xdaforums.com/showthread.php?t=858935
[Optimus One, P500 Android Development] SWEATTAIMI:
to fake hdpi i think as toold earlier we must set higher resolution in build prop

converter: http://xdaforums.com/showthread.php?t=743295 for hdpi -> mdpi
[Optimus One, P500 Android Development] 4silvertooth:
Any post you say here about miui and I have read them all. Byall I mean really all.

Just check the date of mdpi miui apk.

And Mac script for converting png is good but it doesn't change the corsponding XML file for that pngs.
[Optimus One, P500 Android Development] SWEATTAIMI:
and what do you mean? :confused:
[Optimus One, P500 Android Development] 4silvertooth:
I mean all the converting PNG and all miui threads on xda and outside I have read them all.
[Optimus One, P500 Android Development] SWEATTAIMI:
yeah and, you came up with somehting ?
[Optimus One, P500 Android Development] 4silvertooth:
I think we should first solve the ui boot problem, its not due to hdpi mdpi thing its a different problem.

Flash the latest and look at logcat and try to fix those things, all other things can be done later.
[Optimus One, P500 Android Development] SWEATTAIMI:
ye ill try to se what tthe prob is :)
[Optimus One, P500 Android Development] SWEATTAIMI:
ok i came into "launcher" i can see force closes;

com.android.phone has stopped

after that phone freezed :P

now creating a logcat ! -> logcat added!

(NOTE LOGCAT IS AN APK; JUST RENAME TO .txt (was forced to rename, the .txt is limited to 89 kbs
[Optimus One, P500 Android Development] ert69:
What if u replace the phone.apk with the stock one from official 2.3.3? I am not a dev in no way whatsoever but its just a thought.. :P
[Optimus One, P500 Android Development] andy572:
com.android.phone has stopped

it dies because of wrong RIL functions - do u get a FC with removed SIM card?
[Optimus One, P500 Android Development] SWEATTAIMI:
status bar, launcer all kind of stuffs force closes 0_0 phone still do a force close

keyboard

systemui

and more :/
[Optimus One, P500 Android Development] SWEATTAIMI:
LOGCAT!: is named as logcat.apk due to something with .txt can only be 89 when up, this is a clean apk just rename it to .txt

another logcat
[Optimus One, P500 Android Development] 4silvertooth:
Use pastebin.com for logcat.

Copy the log paste it in pastebin.com post the link.
[Optimus One, P500 Android Development] SWEATTAIMI:
hey you hasnt downloaded it, just rename it to .txt :)

anyway: http://pastebin.com/sKK04VbR
[Optimus One, P500 Android Development] popdog123:
Sorry guys, i'm just super busy these days, working and studying for some upcoming exams...

Anyway i'm glad to see that more people are interested in this.

Now about the issues... i'm pretty sure that apps fail because of framework issues. Most of them null pointer exceptions. I tried to fix them by comparing different smali files from the cm7 framework and miui but i just can't figure it out.

The rild problems are not there when using new baseband but they appear in logcat with old one, so pretty sure it's because of kernel. I can't seem to find a good kernel for testing right now, but if you can get one please post it.

Hdpi can be faked with build.prop lcd.density value but that is not very important right now.

If i get the time i'll try to fix the framework but i'm just super busy right now...
[Optimus One, P500 Android Development] SWEATTAIMI:
isnt there a lot of odex we need? or am i just wrong, and good you are back atm, but what in framework can be crashing all this, ??

and btw what kernel we using?
[Optimus One, P500 Android Development] andy572:
as i see in the logcat, it seems that there are mixed libraries from miui and LG proprietary libs.

this cant work, because many apps are crashing at boot time because of missing functions for layout.

at first, remove the fu** LG drmserver - no one but LG need this.

second, try the surfaceflinger, surfaceflinger_client, libpixelflinger and liblayout from another rom,

these from LG rom cant work here - miui has patched many libraries, so these installed

cant work properly.
[Optimus One, P500 Android Development] popdog123:
There is no odex... all apks and jars are deodexed. So all the code that was supposed to be in odex files is already in the main files.

I've notice many errors coming from TextView class. I'm not sure where that was in the framework but i think it's android/widget/TextView.smali not sure though. I know for sure i replaced the whole TextView.smali with one from cm7 and added miui methods on the way. But now there are some null pointer exceptions coming from it so i messed something up there.

There might also be some other classes that throw errors but i didn't look into them for now.

As for the kernel, the entire boot.img is from overflow rom which is a 2.3.3 rom (new baseband). Libs on the other hand are cm7.
[Optimus One, P500 Android Development] 4silvertooth:
Hey man can u just update the first post where we left off.
[Optimus One, P500 Android Development] SWEATTAIMI:
ah ok i see, [you can mix files, its already proofed, u can use miui camera on cm7, but you cant mix odex files, that one is so wrong +___+

dont see what we are missing, or anything. i try too look for it
[Optimus One, P500 Android Development] popdog123:
Well the only thing that's changed since then is the init.d script. I'll post that with your zip file that i read has all the changes so far + the script
[Optimus One, P500 Android Development] 4silvertooth:
All the VFY Dead Code in the logcat is the problem right now. Missing methods in framework.
[Optimus One, P500 Android Development] SWEATTAIMI:
ok, now i cant do anything, i do not get whats not working so i just try to see after stuffs thats wrong
[Optimus One, P500 Android Development] andy572:
as is wrote ... look for the right library "*.so" files ... CM7 != CM7 if something was changed.

my rom is based on CM7 too, but libs cant be used on mik's rom.
[Optimus One, P500 Android Development] popdog123:
First post updated
[Optimus One, P500 Android Development] 4silvertooth:
@Andy

How about that kernel I requested?
[Optimus One, P500 Android Development] andy572:
i answered allready, use sysctl command to tell the kernel the loglevel, u cant configure that in kernel directly.
[Optimus One, P500 Android Development] SWEATTAIMI:
i think we can get knowledge from: http://xdaforums.com/showthread.php?t=1032550

http://xdaforums.com/showthread.php?t=1133741

http://xdaforums.com/showthread.php?t=1049846

http://xdaforums.com/showthread.php?t=1133407

http://xdaforums.com/showthread.php?t=1085298 [PATCHES FOR DIAL MMS AND LAUNCHER!

[Camera And MMS Patch worked IN CWM 3.1.0.0 but i dont know if they will do anything,]

Did we do; Well, short story is that we ported MIUI frameworks using smali and backsmali
[Optimus One, P500 Android Development] 4silvertooth:
We can't use any of their framework, it wont work. We have to do that with our phone what they have done with theirs and that's exactly(not exactly but similar) what popdog is doing.
[Optimus One, P500 Android Development] 4silvertooth:
sysctl doesn't show loglevel variable.

Ok we will just edit the init.rc from boot.img ramdisk for loglevel and adb.(mik Franco kernel)
[Optimus One, P500 Android Development] SWEATTAIMI:
i ment we get knowledge what theyve done, also they did merge files not changing em at all,

also i fixed some force closes :D
[Optimus One, P500 Android Development] andy572:
good luck, i think it brings nothing if you only modify the framework-res layout files - you need the functional javacode too, and these cant be "hacked" in - so you stay on a missing function call every time in a FC dialog...
[Optimus One, P500 Android Development] SWEATTAIMI:
Nope no force closes :D

but the thing is added CM7 phone,

And system UI CM7 (no force close)

Zeam Launcher No Force Close, but flashing screen u cant do a thing,

And the other one is with Launcher2 MIUI, it do force close but no flashing screen :D
[Optimus One, P500 Android Development] 4silvertooth:
But if you replace those things from cm7 to solve the FC you will landup in cm7 and not miui.
[Optimus One, P500 Android Development] 4silvertooth:
Here are some miui apps working on our phone.

Camera app is with all functions no FC.

None of the work is mine.
[Optimus One, P500 Android Development] SWEATTAIMI:
i know, but this was for testing and see if it started, [For now, the MIUI Launcher works best] but phone and stuffs is loaded for Cm7
[Optimus One, P500 Android Development] andy572:
depends on what is loaded. possibly some libs from miui, some libs from cm7 are needed to get functions work. but, i see a problem in loading these libraries - what,

when miui needs a miui library, and cm7 the same but from cm7 and not from miui project? these conflicts cant be solved i think...
[Optimus One, P500 Android Development] SWEATTAIMI:
we need to merge files (they did so in galaxy 3)

HEY!

Ive lookin on your port, and you say you got Launcher working and so on, how?

Well, short story is that we ported MIUI frameworks using smali and backsmali
[Optimus One, P500 Android Development] andy572:
a dumb question:

can libraries be merged???
[Optimus One, P500 Android Development] 4silvertooth:
No. But we can fake it.

By fake I mean code some stuff needed by miui.

All the jni lib should be usable though I think.
[Optimus One, P500 Android Development] 4silvertooth:
By merging they mean merge the decompiled smali. Not apk or lib.
[Optimus One, P500 Android Development] SWEATTAIMI:
yupp i cant do that, but at least i know that it can be done

(andy) theres no dumb question's =)
[Optimus One, P500 Android Development] SWEATTAIMI:
i dont know where the smali file is, if i knew i may be able to help more
[Optimus One, P500 Android Development] andy572:
you get smali files when decompiling the apk file - mostly in the process of deodexing,

but u can do that in every time with baksmali/smali:

http://code.google.com/p/smali/
[Optimus One, P500 Android Development] SWEATTAIMI:
decompime with? nvm got it
[Optimus One, P500 Android Development] 4silvertooth:
Decompile both framework.jar miui (HTC desire) and current one from our zip,then copy smali from HTC miui to ours. Then recompile and test.

So for error like this one in logcat

D/dalvikvm(1598):

VFY:deadcode

0x0024-0024in

Landroid/content/pm/

RegisteredServicesCache;.readPersistentServicesLocked

()V

will have to be solved by.. getting

RegisteredServicesCache.smali from htc miui to our frame work.

You find that smali in <the folder where you decompile>/android/content/pm/

You can also use apktool for decompiling and recompiling.
[Optimus One, P500 Android Development] SWEATTAIMI:
Im on my way :D (using Linux Mint, Changed from xp)
[Optimus One, P500 Android Development] 4silvertooth:
Windows is also good for this stuff.
[Optimus One, P500 Android Development] SWEATTAIMI:
ye but android loves Linux, btw what desire framework=??
[Optimus One, P500 Android Development] 4silvertooth:
Download the miui HTC desire develop build zip from miui site. You will find the framework.jar in /system/framework folder.

The HTC desire miui zip is our refrence.
[Optimus One, P500 Android Development] SWEATTAIMI:
okok, i already had that on my pendrive (got all stable and unstable from their site)

so no i need to work on stuffs :P

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file

at brut.androlib.Androlib.readMetaFile(Androlib.java:142)

at brut.androlib.Androlib.build(Androlib.java:159)

at brut.androlib.Androlib.build(Androlib.java:154)

at brut.apktool.Main.cmdBuild(Main.java:174)

at brut.apktool.Main.main(Main.java:59)

Caused by: brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file

at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:55)

at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:38)

at brut.androlib.res.util.ExtFile.getDirectory(ExtFile.java:55)

at brut.androlib.Androlib.readMetaFile(Androlib.java:138)

... 4 more

Caused by: java.util.zip.ZipException: error in opening zip file

at java.util.zip.ZipFile.open(Native Method)

at java.util.zip.ZipFile.<init>(ZipFile.java:127)

at java.util.zip.ZipFile.<init>(ZipFile.java:144)

at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:53)

... 7 more
[Optimus One, P500 Android Development] 4silvertooth:
www.miui.com/development.html
[Optimus One, P500 Android Development] SWEATTAIMI:
i used the one; miuiandroid_Desire-1.7.22.zip that one is right?

or shall i use the one you provided desize z or g7 ?
[Optimus One, P500 Android Development] 4silvertooth:
bigota.d.miui.com/1.7.29/miui_Desire_1.7.29_fl72yszb49_2.3.zip

Ok you are using apktool correct in Linux. Which Jre?
[Optimus One, P500 Android Development] SWEATTAIMI:
was i using wrong framework file from htc desire? maybe that caused the problem?

fixed problem; the error was caused by: wrong insert;

i wrote apktool b framework.jar.out when it was supposed to be

apk tool b out framework.jar

i dont know if its right, but the .jar is only half size of original, i will put it in zip and see if we will get better progress for launcher
[Optimus One, P500 Android Development] SWEATTAIMI:
Write full name so i can download it, i not installed any jre in linux, thats the problem
[Optimus One, P500 Android Development] 4silvertooth:
No the error you posted is of apktool and not from Decompiling.
[Optimus One, P500 Android Development] 4silvertooth:
bigota.d.miui.com/1.7.29/miui_Desire_1.7.29_fl72yszb49_2.3.zip
[Optimus One, P500 Android Development] SWEATTAIMI:
sorry my bad, didnt have jre installed ^__^

i will try again in windows, and install jre, due to problems with install on linux mint >_>

we got a problem, the link you provided, framework.jar is only 13 kb,

and only one file, +___+
[Optimus One, P500 Android Development] popdog123:
Hey guys if you're gonna mess with smali files, just copying them over from one framework to another won't work... you have to hunt down differences in them and edit them.

As in: if there's a method missing, don't copy the entire smali file from miui to cm7, just copy the method and all it's references.

If you copy entire smali files you won't be doing anything since you will end up with a miui framework that's unusable on our device.
[Optimus One, P500 Android Development] 4silvertooth:
But even though some methods are in framework still log shows missing methods. Any idea?
[Optimus One, P500 Android Development] popdog123:
The log shows null pointer exceptions which means either that the methods are missing or that even though the methods are there, they are called before they are instantiated. I've been looking for a way to solve that but i can't seem to figure it out.
[Optimus One, P500 Android Development] 4silvertooth:
Have you checked port rom option in HTC kitchen? I was trying this totally different approach to porting miui.
[Optimus One, P500 Android Development] andy572:
as i thought, u cant hack in new functions in framework files - might be the method names, but without a function in it... so it will crash every time
[Optimus One, P500 Android Development] Mellexx:
So is there any chance this would work on an Optimus V or would it require some code changes to work?
[Optimus One, P500 Android Development] andy572:
As i wrote earlier, i think its not possible to mix all the miui libs with LG and CM7 libs to get

all stuff working. might be the layouts (statusbar, launcher, menus etc) but all without

functionality (phone calls, Wifi, 3G, video) because of missing function calls. its some useless to have a smartphone

without functions...
[Optimus One, P500 Android Development] Mellexx:
Very true, Here's to hoping though!
[Optimus One, P500 Android Development] SWEATTAIMI:
We cant change, we must merge them

(i think we must port the launcher.smali (in framework.jar)
[Optimus One, P500 Android Development] SWEATTAIMI:
What to do!

exactly what files you ported, we only got launcher port left, to get it work

All framework. Jar files

we need to port all framework.jar files,

popdog123 or 4silver, can you provide the link of the files you are using, ??

the Desire,
[Optimus One, P500 Android Development] sweetnsour:
now i dont want to be slowing down the progress of this port, but is there a way this can be implemented to make this a pretty fast rom?

http://www.flexycore.com/androidbooster-zone.html
[Optimus One, P500 Android Development] SWEATTAIMI:
only thing that works in there is the booster (wich mean's its a +

but the - is that i dont know if it working good on our device
[Optimus One, P500 Android Development] sweetnsour:
alright sounds good :D

edit: oh wait, I don't think it's available for download from the market. u have to get it from the site. and as you've said, it may be hard but I think it'll be worth it. thanks for putting it into consideration
[Optimus One, P500 Android Development] SWEATTAIMI:
the booster is working (its suported, now we only need to see if it boosts or not)
[Optimus One, P500 Android Development] jjenkins09:
Any possibility you could do the same for the optimis v?:)
[Optimus One, P500 Android Development] fernando1sg:
Do you have any date for a pre release with incomplete stuff just for testing?
[Optimus One, P500 Android Development] sweetnsour:
i dont think you got the right booster i was talking about. the booster is not a downloadable apk and has to be requested from the site
[Optimus One, P500 Android Development] 4silvertooth:
Well lets first boot, than booster.
[Optimus One, P500 Android Development] 4silvertooth:
http://db.tt/VxJe79B

Can someone try this kernel and see if adb is working?
[Optimus One, P500 Android Development] shhbz:
lol.......:D
[Optimus One, P500 Android Development] Bytecode:
I will help as soon as I get home (5 august) :)
[Optimus One, P500 Android Development] kongyujian:
Wow. Even ciaox is helping :) so many devs. Haha. Have a feeling this might work out after all. :)
[Optimus One, P500 Android Development] SWEATTAIMI:
i guess pre-release is when we got launcher working :D,
[Optimus One, P500 Android Development] 4silvertooth:
Can you just try the kernel I posted?
[Optimus One, P500 Android Development] SWEATTAIMI:
i will try it :D
[Optimus One, P500 Android Development] 4silvertooth:
Ok check whether adb is working or not?

Did you get apktool working?
[Optimus One, P500 Android Development] SWEATTAIMI:
I talked to MIUI, May help us :D

MIUI ROM I Love the rom, so much i trying to help it to get ported! YaY, i learn alot more than i knew before also, Only thing we got to do is get Launcher to start (force closes at start) Any idea, we are preety close to a final Port!

för 12 timmar sedan · Gilla ·

MIUI ROM I'll ask the devs, expecting your port:)

för 4 timmar sedan · Sluta gilla · 1 person
[Optimus One, P500 Android Development] SWEATTAIMI:
yes it was somehow wrong inser by me when trying to build the jar*

[Flashing with new kernel, in progress!]

[Need to reflash, due to bad framework insert by me]

[Reflased, and reset,]

[Doesnt seems to boot up, i dont know if i may done somehting with my zip, or if its the boot.img]
[Optimus One, P500 Android Development] SWEATTAIMI:
If someone esle is able to try it, i have lack of time, i am sort of going out to eat dinner with my girl friends mom, her moms sister, and her granddad,

(and shes not there, i dont know,)

anyhow, please do test the boot.img (do download the zip file and just replace the old one, simply drag new inside the zip and press ok)

oh and make sure u have a !WORKING NANDROID BACKUP! and not a hafl working,!

// thanks

P.S (I May not be able to test today (if i dont get my cable that i think is at my grandma)

so be patient, or i can borow my brother's Cable ^^
[Optimus One, P500 Android Development] SWEATTAIMI:
i dont see why it shouldnt work, Galaxy 3 has got it to work, we just need to do as they done, (marging files and not replace :D)
[Optimus One, P500 Android Development] 4silvertooth:
Due to lack of time.

I m working on a kernel right now. We need old baseband kernel with adb working.

This are the thing we need right now I on the kernel thing.

[*]Need to fix dead code in framework

[*]Need new kernel

[*]Need MDPI apks

[*]Need libs that don't make the apks crash
[Optimus One, P500 Android Development] SWEATTAIMI:
the only thing is that the the MIUI Desire is odexed, and i must deodex the framework [in case to get the file] the other files are also odexed, so we need to get that to, i will try to test your boot.img [As i told the one zip may were messed up]
[Optimus One, P500 Android Development] bl4ck0p5:
wow, keep ut the good work guys :D cheers!
[Optimus One, P500 Android Development] 4silvertooth:
http://www.multiupload.com/5YX9YVIQ43

ok try this one.

I just modified the default.prop (in ramdisk) of mik kernel to enable adb but somethings not working.
[Optimus One, P500 Android Development] popdog123:
I tried to enable adb in mik/franco kernel but adb just quits after a while... quite unusable.

I have no idea why it does that... there's nothing in log before it quits...
[Optimus One, P500 Android Development] SWEATTAIMI:
just send me Download link of the MIUI we are porting from :),

what does catlog says?
[Optimus One, P500 Android Development] SWEATTAIMI:
oh yeah, and if you want to get the kernel, you can take it in a update or a flash able zip, (due to may wrong boot.img)

new boot.img wont boot, get the kernel, and make a update.zip

or link kernel, the boot.img wont boot
[Optimus One, P500 Android Development] 4silvertooth:
Ok I'll make a new one.
[Optimus One, P500 Android Development] 4silvertooth:
I think we will have to compile the kernel modify ramdisk wont do.

Maybe Franco can drop us a kernel for us with adb working.

2.6.35 Debug build old baseband.
[Optimus One, P500 Android Development] sweetnsour:
well you cant blame me, im getting pretty excited :D
[Optimus One, P500 Android Development] shhbz:
truely we all are excited about miui whoever post here,praying for getting it booted and workingg
[Optimus One, P500 Android Development] SWEATTAIMI:
The boot is not a problem. The adb, launcher is