Velocity is Like OpenTable on Steroids

We all enjoy a night out with friends or our significant other from time to time. However, there is … more

Android Lollipop Lands for the Sony Xperia Z Ultra

The undisputed king of the beasts–at least in Sony’s current stable,is the … more

Android 5.0 Lollipop in 3D–EVO 3D, That Is!

It is that time of the year once again. Flowers bloom (or snow falls, depending on which … more

Gaming Console with Lollipop? Ouya Gets an Android TV Port

Android is a very flexible platform, and it can be used on a large variety of … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

miui apps port

OP showlyshah

8th March 2012, 06:20 PM   |  #1  
showlyshah's Avatar
OP Senior Member
Flag kerala
Thanks Meter: 564
 
805 posts
Join Date:Joined: Mar 2011
More
do any one know why( exactly which code) makes the miui apps not to run on cm7?
i am in hard checking on how to port miui filemanager to cm7.
i decompiled the miui filemanager, and checked for any miui specific codes in the class files. i cant find anything like that. any one have any idea?
i think that the working of filemanager of miui is strictly dependent on miuis framework and my idea is to change those dependencies to cm7's.
if anybody have some ideas pls help me.

Sent from my HTC HD2 using xda premium
8th March 2012, 06:39 PM   |  #2  
mDroidd's Avatar
Recognized Contributor
Thanks Meter: 1,385
 
1,833 posts
Join Date:Joined: Aug 2011
Donate to Me
Quote:
Originally Posted by showlyshah

do any one know why( exactly which code) makes the miui apps not to run on cm7?
i am in hard checking on how to port miui filemanager to cm7.
i decompiled the miui filemanager, and checked for any miui specific codes in the class files. i cant find anything like that. any one have any idea?
i think that the working of filemanager of miui is strictly dependent on miuis framework and my idea is to change those dependencies to cm7's.
if anybody have some ideas pls help me.

Sent from my HTC HD2 using xda premium

The MIUI and CM7 specific apps use things from that framework.
If thry are not available in yours, it will simply not work.

Greets!
9th March 2012, 03:55 PM   |  #3  
showlyshah's Avatar
OP Senior Member
Flag kerala
Thanks Meter: 564
 
805 posts
Join Date:Joined: Mar 2011
More
the worst thing is miui apk even dont run on android vm, where cm7 ones run. i use android 2.3.3 vm to check both, both apks are taken from 2.3.7 versions of custom roms. only cm7 based one runs the other refused to even install( i checked with many miui apks, same results).
then how miui apks are checked and debugged??

Sent from my HTC HD2 using xda premium
9th March 2012, 09:36 PM   |  #4  
mDroidd's Avatar
Recognized Contributor
Thanks Meter: 1,385
 
1,833 posts
Join Date:Joined: Aug 2011
Donate to Me
Quote:
Originally Posted by showlyshah

the worst thing is miui apk even dont run on android vm, where cm7 ones run. i use android 2.3.3 vm to check both, both apks are taken from 2.3.7 versions of custom roms. only cm7 based one runs the other refused to even install( i checked with many miui apks, same results).
then how miui apks are checked and debugged??

Sent from my HTC HD2 using xda premium

Good one...
I guess that if you clone the MIUIv4 source that it will work...

Greets!
The Following User Says Thank You to mDroidd For This Useful Post: [ View ]
10th March 2012, 07:31 AM   |  #5  
zelendel's Avatar
Moderator Committee - The Dark Knight
Flag Watching from the Shadows
Thanks Meter: 11,581
 
14,980 posts
Join Date:Joined: Aug 2008
Donate to Me
More
Quote:
Originally Posted by showlyshah

the worst thing is miui apk even dont run on android vm, where cm7 ones run. i use android 2.3.3 vm to check both, both apks are taken from 2.3.7 versions of custom roms. only cm7 based one runs the other refused to even install( i checked with many miui apks, same results).
then how miui apks are checked and debugged??

Sent from my HTC HD2 using xda premium

It is most likely the way that CM changes the base android code. As.it will use the Cm framework you will most likely have to rebuild the app using the cm files and frameworks.
The Following User Says Thank You to zelendel For This Useful Post: [ View ]
10th March 2012, 01:16 PM   |  #6  
ajhavery's Avatar
Senior Member
Flag Bangalore
Thanks Meter: 1,011
 
887 posts
Join Date:Joined: May 2011
Donate to Me
More
Quote:
Originally Posted by showlyshah

do any one know why( exactly which code) makes the miui apps not to run on cm7?
i am in hard checking on how to port miui filemanager to cm7.
i decompiled the miui filemanager, and checked for any miui specific codes in the class files. i cant find anything like that. any one have any idea?
i think that the working of filemanager of miui is strictly dependent on miuis framework and my idea is to change those dependencies to cm7's.
if anybody have some ideas pls help me.

Sent from my HTC HD2 using xda premium

It mainly due to /system/framework/com.miui-framework-res.apk which has the framework files for miui apps to run. Also the framework files like android.policy.jar. framework.jar, services.jar are different and are built to support miui apps. You need to dig deep into the framework to see what files are responsible for a particular miui app and incorporate them into miui apk you want to install om CM7 rom.

Sent from my HTC Vision using Tapatalk
12th March 2012, 10:28 AM   |  #7  
showlyshah's Avatar
OP Senior Member
Flag kerala
Thanks Meter: 564
 
805 posts
Join Date:Joined: Mar 2011
More
Quote:
Originally Posted by zelendel

It is most likely the way that CM changes the base android code. As.it will use the Cm framework you will most likely have to rebuild the app using the cm files and frameworks.

thats the thing i already know, and all i want is to know whats the diff in miui, or whats that code which contains in miui and not in cm7 framework. by knowing that, we can replace that code in miui apps and put correspondig cm7 one.
i know apps like miui cam,gallery, music is already ported to cm7. and may be the dev of that port can hint me.

Sent from my HTC HD2 using xda premium
12th March 2012, 10:39 AM   |  #8  
showlyshah's Avatar
OP Senior Member
Flag kerala
Thanks Meter: 564
 
805 posts
Join Date:Joined: Mar 2011
More
Quote:
Originally Posted by ajhavery

It mainly due to /system/framework/com.miui-framework-res.apk which has the framework files for miui apps to run. Also the framework files like android.policy.jar. framework.jar, services.jar are different and are built to support miui apps. You need to dig deep into the framework to see what files are responsible for a particular miui app and incorporate them into miui apk you want to install om CM7 rom.

Sent from my HTC Vision using Tapatalk

i dont think i should dig that much into framework and supporting files of miui, cut those specific codes, put it into cm7 framework and screw up.
but i think to take a diff aproch, dig into apps, find those lines that require miui framework and files, revert it to cm7's framework and files.

and i think i can do it. but i req some help from u people.
can anybody give me the original and ported file of any miui apps like camera,gallery( the best option) or music.

i have all the three, and originals i copied from miui rom. but its not same versions.

so this is i want, same versions of ported and non ported ones. like , if original camera is 2.1.114, i need ported camera too in same 2.1.114 version.

any one have those?

Sent from my HTC HD2 using xda premium

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes