Jump to content


Photo

[ROM][4.4.] MIUI v5 (Android 4.1.2)

* * * * * 4 votes

273 replies to this topic

#61
kptr

kptr

    Newbie

  • Members
  • Pip
  • 27 posts
  • Gender:Male
  • Location:Hungary , Budapest
  • Devices:zte blade 3

they are the same thing i guess.

Hangouts is a sh..t

  • 0

#62
kptr

kptr

    Newbie

  • Members
  • Pip
  • 27 posts
  • Gender:Male
  • Location:Hungary , Budapest
  • Devices:zte blade 3
the CM10 gapps good about it?

  • 0

#63
kptr

kptr

    Newbie

  • Members
  • Pip
  • 27 posts
  • Gender:Male
  • Location:Hungary , Budapest
  • Devices:zte blade 3

the CM10 gapps good about it?

yessss working!

  • 0

#64
KonstaT

KonstaT

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 2,531 posts
  • Gender:Male
  • Location:Finland
  • Devices:Moto G, ZTE Open C
  • Twitter:@konstatuomio

and google talk ?? :(

Hangouts is the new Talk! Google Talk is deprecated.

the CM10 gapps good about it?

Does it have gapps linked in the first post? Does it say install gapps in the installation instructions in the second post?

Please don't spam the forum with consecutive posts. Edit your post instead.

  • 0

#65
ratgull

ratgull

    Newbie

  • Members
  • Pip
  • 2 posts
KonstaT: Some apps in play store doesn't support this rom, even if I delete cache for the play app.
Same for you? What to do? Install gapps (if, which one)?

Example of apps: runkeeper, contacts+, sl, yr.no, västtrafik

Thanks for your work and support.

  • 0

#66
thmnss

thmnss

    Newbie

  • Members
  • Pip
  • 37 posts
  • Gender:Male
  • Devices:ZTE BLADE and ZTE SKATE ACQUA
KonstaT can you provide me information about the aapt and apktool.jar used in the MIUI rom, I'm having errors when compiling the frameworkmiui-res to add the portuguese language. I already have all the translations, just need to overcome the errors when compiling.

Appreciate the help, and thank you already.

  • 0

#67
KonstaT

KonstaT

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 2,531 posts
  • Gender:Male
  • Location:Finland
  • Devices:Moto G, ZTE Open C
  • Twitter:@konstatuomio

KonstaT: Some apps in play store doesn't support this rom, even if I delete cache for the play app.
Same for you? What to do? Install gapps (if, which one)?

Example of apps: runkeeper, contacts+, sl, yr.no, västtrafik

Thanks for your work and support.

Idk, I really haven't used this ROM.

Maybe you can edit /system/build.prop and modify the market fingerprint. It's a bit different than what it is in CM10. Or try Market Helper or similar apps.

KonstaT can you provide me information about the aapt and apktool.jar used in the MIUI rom, I'm having errors when compiling the frameworkmiui-res to add the portuguese language. I already have all the translations, just need to overcome the errors when compiling.

Appreciate the help, and thank you already.

Latest apktool version is 1.5.2. You can use the regular aapt that comes with Android SDK. I guess one of the most common mistakes is that you haven't installed framework.

If you want to add translations to MIUI, it basically means that you have to decompile/compile every system apk separately. It's a lot work...

  • 0

#68
thmnss

thmnss

    Newbie

  • Members
  • Pip
  • 37 posts
  • Gender:Male
  • Devices:ZTE BLADE and ZTE SKATE ACQUA
I have access to the files already translated is only a matter of add files and compile their applications again, most of it is done, and also framework-res already has several packages including several languages ​​including Portuguese, it was only a matter of add Portuguese language to frameworkmiui-res, I have also have translated the frameworkmiu.res in order to be able to select the language ... But I'm with errors while compiling.

Here is the log:


[*] C:\Users\Thiago\Desktop\TranslateMIUI\_INPUT_APK\framework-miui-res
recompiling C:\Users\Thiago\Desktop\TranslateMIUI\_INPUT_APK\framework-miui-res...
W: Could not find sources
I: Building resources...
invalid resource directory name: C:\Users\Thiago\Desktop\TranslateMIUI\_INPUT_APK\framework-miui-res\res/drawable-land-xxhdpi
invalid resource directory name: C:\Users\Thiago\Desktop\TranslateMIUI\_INPUT_APK\framework-miui-res\res/drawable-xxhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Thiago\AppData\Local\Temp\APKTOOL3342387551214149770.tmp, -x, -I, C:\Users\Thiago\apktool\framework\1.apk, -S, C:\Users\Thiago\Desktop\TranslateMIUI\_INPUT_APK\framework-miui-res\res, -M, C:\Users\Thiago\Desktop\TranslateMIUI\_INPUT_APK\framework-miui-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Thiago\AppData\Local\Temp\APKTOOL3342387551214149770.tmp, -x, -I, C:\Users\Thiago\apktool\framework\1.apk, -S, C:\Users\Thiago\Desktop\TranslateMIUI\_INPUT_APK\framework-miui-res\res, -M, C:\Users\Thiago\Desktop\TranslateMIUI\_INPUT_APK\framework-miui-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
... 6 more
Unable to open '_INPUT_APK\framework-miui-res\dist\framework-miui-res.apk' as zip archive
O sistema nÆo consegue localizar a unidade especificada.

  • 0

#69
peetu20

peetu20

    Addict

  • Members
  • PipPipPipPipPip
  • 927 posts
  • Gender:Male
  • Location:Finland
  • Devices:Zte Blade, Zte Blade III
you have installed framework-res.apk from this rom??, just type "apktool if framework-res.apk"

The error list says that apktool doesnt find full hd resources from the location(our device doesnt have those files, coz we have hdpi screen) so you need get the framework from rom which is made for hdpi, but I am not sure about this,,,

And of course chack that you have those folders:
drawable-land-xxhdpi and drawable-xxhdpi

Edited by peetu20, 14 June 2013 - 10:40 PM.

  • 0

#70
KonstaT

KonstaT

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 2,531 posts
  • Gender:Male
  • Location:Finland
  • Devices:Moto G, ZTE Open C
  • Twitter:@konstatuomio

I have access to the files already translated is only a matter of add files and compile their applications again, most of it is done, and also framework-res already has several packages including several languages ​​including Portuguese, it was only a matter of add Portuguese language to frameworkmiui-res, I have also have translated the frameworkmiu.res in order to be able to select the language ... But I'm with errors while compiling.

Is that with the framework-miui-res.apk from the 3.6.7 build? I just decompiled it with the latest tools and I get:
invalid resource directory name: /home/xxxxx/android/tools/apktool/framework-miui-res/res/values-largeui-hdpi
invalid resource directory name: /home/xxxxx/android/tools/apktool/framework-miui-res/res/values-largeui-xhdpi
invalid resource directory name: /home/xxxxx/android/tools/apktool/framework-miui-res/res/drawable-largeui-xhdpi
invalid resource directory name: /home/xxxxx/android/tools/apktool/framework-miui-res/res/drawable-largeui-hdpi
After removing those four directories it compiles just fine. You can safely remove any resources that are for bigger than hdpi (xhdpi, xxhdpi) devices. Those resources are not used in our device anyway.

  • 0

#71
thmnss

thmnss

    Newbie

  • Members
  • Pip
  • 37 posts
  • Gender:Male
  • Devices:ZTE BLADE and ZTE SKATE ACQUA
Yes is the frameworkmiui-res from 3.6.7 build, now could compile without errors but I'm stuck in the boot screen, no idea why ..

  • 0

#72
KonstaT

KonstaT

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 2,531 posts
  • Gender:Male
  • Location:Finland
  • Devices:Moto G, ZTE Open C
  • Twitter:@konstatuomio

Yes is the frameworkmiui-res from 3.6.7 build, now could compile without errors but I'm stuck in the boot screen, no idea why ..

Did you sign it? I have no idea what key they've used to sign MIUI so you might have to resign the whole ROM (most of the system apps excluding Google apps as well as the framework apks).

Easier, yet more hacky, way would be to move resources.arsc from the freshly compiled apk to the original framework-miui-res.apk.

  • 0

#73
peetu20

peetu20

    Addict

  • Members
  • PipPipPipPipPip
  • 927 posts
  • Gender:Male
  • Location:Finland
  • Devices:Zte Blade, Zte Blade III

Did you sign it? I have no idea what key they've used to sign MIUI so you might have to resign the whole ROM (most of the system apps excluding Google apps as well as the framework apks).

Easier, yet mory hacky, way would be to move resources.arsc from the freshly compiled apk to the original framework-miui-res.apk.

Theres no need to sign system apps, until AndroidManifest.xml has been modded. So we need just move AndroidManifest.xml and META-INF folder drom ORIGINAL apk to modded and it works fine.

Yes is the frameworkmiui-res from 3.6.7 build, now could compile without errors but I'm stuck in the boot screen, no idea why ..

Just move AndroidManifest.xml and META-INF folder drom ORIGINAL apk to modded and it works fine. Then flash/use adb. If you move apks with root explorer, you need to set right permissons for it(But propably ur phone reboots before you have set permissions :) , so use adb or zip)

Edited by peetu20, 15 June 2013 - 11:55 AM.

  • 0

#74
KonstaT

KonstaT

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 2,531 posts
  • Gender:Male
  • Location:Finland
  • Devices:Moto G, ZTE Open C
  • Twitter:@konstatuomio

Theres no need to sign system apps, until AndroidManifest.xml has been modded. So we need just move AndroidManifest.xml and META-INF folder drom ORIGINAL apk to modded and it works fine.

Huh, wtf? That's not true at all. Of course system apps and framework need to be signed at all times. Compiling an apk with apktool leaves it with no signature what so ever! If there is an unsigned core apk (or a core apk with mismatching signature) system will always fail to boot with a clean install.

I guess you're just confused with signing an apk and there being a signature (that's what you're trying to fool with this method). Like I said, this method is very hacky and it should never be done when there are better options available (=signing the apk). And care to explain how is that different from moving the resources.arsc? ;)

  • 0

#75
thmnss

thmnss

    Newbie

  • Members
  • Pip
  • 37 posts
  • Gender:Male
  • Devices:ZTE BLADE and ZTE SKATE ACQUA
The framework's already compiled and signed, but I'm stuck in the boot again.

Also signed to the rom.zip file with the ZipSigner again when I put the framework's ...

  • 0

#76
peetu20

peetu20

    Addict

  • Members
  • PipPipPipPipPip
  • 927 posts
  • Gender:Male
  • Location:Finland
  • Devices:Zte Blade, Zte Blade III

Huh, wtf? That's not true at all. Of course system apps and framework need to be signed at all times. Compiling an apk with apktool leaves it with no signature what so ever! If there is an unsigned core apk (or a core apk with mismatching signature) system will always fail to boot with a clean install.

I guess you're just confused with signing an apk and there being a signature (that's what you're trying to fool with this method). Like I said, this method is very hacky and it should never be done when there are better options available (=signing the apk). And care to explain how is that different from moving the resources.arsc? ;)

I didnt say that moving resources.arsc is different than moving AndroidManifest.xml and META-INf folder. I do not see any reason to sign system app, if I havent modified AndroidManifest.xml. Its much easier and faster to just move mentioned files(or file in your case) than signing apk. I just meant that theres no need to sign system apk, because them can be "signed" by moving files from original to modded :P

  • 0

#77
peetu20

peetu20

    Addict

  • Members
  • PipPipPipPipPip
  • 927 posts
  • Gender:Male
  • Location:Finland
  • Devices:Zte Blade, Zte Blade III

The framework's already compiled and signed, but I'm stuck in the boot again.

Also signed to the rom.zip file with the ZipSigner again when I put the framework's ...

Have you signed it with plattform key? Just read my and KonstaTs posts, move AndroidManifest.xml and META-INF folder from the ORIGINAL apk to your compiled.
No need to sign anything, because you "sign" them when you move mentioned files! Files I mentioned need to be signed with the plattform key, but because we move the original files to modded, we do not need to sign anything, because the files have already been signed with plattform key.

  • 0

#78
KonstaT

KonstaT

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 2,531 posts
  • Gender:Male
  • Location:Finland
  • Devices:Moto G, ZTE Open C
  • Twitter:@konstatuomio

The framework's already compiled and signed, but I'm stuck in the boot again.

Also signed to the rom.zip file with the ZipSigner again when I put the framework's ...

I doubt it's nothing 'adb logcat' wont tell you why...

Have you signed it with plattform key? Just read my and KonstaTs posts, move AndroidManifest.xml and META-INF folder from the ORIGINAL apk to your compiled.
No need to sign anything, because you "sign" them when you move mentioned files! Files I mentioned need to be signed with the plattform key, but because we move the original files to modded, we do not need to sign anything, because the files have already been signed with plattform key.

If you know it needs to be signed with platform key - then sign it with platform key! Apktool is generally used to reverse engineer stock ROMs and proprietary apps etc that are signed with private keys.

You can of course verify which signature is used and compare it to know values, but this is luxury that only linux user have. ;)
keytool -printcert -v -file CERT.RSA | grep "Serial"

  • 0

#79
peetu20

peetu20

    Addict

  • Members
  • PipPipPipPipPip
  • 927 posts
  • Gender:Male
  • Location:Finland
  • Devices:Zte Blade, Zte Blade III

I doubt it's nothing 'adb logcat' wont tell you why...


If you know it needs to be signed with platform key - then sign it with platform key! Apktool is generally used to reverse engineer stock ROMs and proprietary apps etc that are signed with private keys.

You can of course verify which signature is used and compare it to know values, but this is luxury that only linux user have. ;)

keytool -printcert -v -file CERT.RSA | grep "Serial"

Wtf? I do not need to sign nothing at this moment, thmnss needs to. Arent we talking now about how to sign system app, right?? :P
I do not know how does thmnss sign his apks, his not telling it, so its bit tough to help him.

  • 0

#80
thmnss

thmnss

    Newbie

  • Members
  • Pip
  • 37 posts
  • Gender:Male
  • Devices:ZTE BLADE and ZTE SKATE ACQUA
I sign the apk with apktool

  • 0




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users