take a look here:
http://forum.xda-developers.com/showthread.php?t=1483332
as of me, am on a awfully slow network to start with and my stupid brother 4matted both of my systems. this nd did away with by linux build environment. not possible for me to download everything to start over. even downloading virtual box will take me two days let alone downloading the maverick
I have a question, are we going to see an official MIUI ROM or do we have to wait someone to port it?
Enviado desde mi LG-P970 usando Tapatalk
I know, it is a veeery noobish question, but how do i get a zipball? I dont get the first step already I already set up Ubuntu, but now I guess, I need your help, then I'll try to build it
-edit-
Do I only need to push download and then download as zip?
Could anyone help me out with the makefile? cause when I follow the steps and after typing: make zipfile
It start doing some stuff, but then aborts and gives out this
Code:
/home/MisterGT/MiCode/tools/apktool d -f /home/MisterGT/MiCode/miui/system/framework/services.jar .build/services_miui
/home/MisterGT/MiCode/tools/apktool: Zeile 77: exec: java: Nicht gefunden.
make: *** [.build/services_miui] Fehler 127
Code:
Translated: ....apktool Line 77: exec: java: Not found.
make: *** [.build/services_miui] Error 127
Hope you can help me, cause then we can get our MIUI quickly, so plsss help me, I am also noob only
I already did this:
Code:
#
# Makefile for P970?
#
# The original zip file, MUST be specified by each product
local-zip-file := ZeusROM.zip
# The output zip file of MIUI rom, the default is porting_miui.zip if not specified
local-out-zip-file := MIUI_P970.zip
# All apps from original ZIP, but has smali files chanded
local-modified-apps := LogsProvider Phone MediaProvider Settings
# All apks from MIUI execept MIUISystemUI and framework-miui-res.apk
local-miui-apps := Contacts ContactsProvider Mms TelephonyProvider ThemeManager Launcher2 \
DownloadProvider TelocationProvider Notes Music Torch DownloadProviderUi Updater
# All apps need to be removed from original ZIP file
local-remove-apps := AccountAndSyncSettings ApplicationsProvider AppWidgetPicker ArcCamera BluetoothOpp BluetoothPbap BrcmBluetoothServices Calender CalenderProvider Camera CertInstaller ChargingTest Clicker_hi Contacts ContactsProvider covertor DefaultContainerService DM_RsupInput DM_RsupSrn DM_RsupUInput DownloadProvider DownloadProviderUi DrmProvider DrmService ExternalMemoryTest FlexProvider.apk FmRadio FmRadioProvider Fonts Gallery3D Gmail GoogleBackupTransport GoogleCalendarSyncAdapter GoogleContactsSyncAdapter GooglePartnerSetup GoogleQuickSearchBox GoogleServicesFramework HTMLViewer JSFontService Launcher2 LGDebug lgeStreamingPlayer lgeVideoPlayer LGSetupWizard LGSetupWizardAid LibFlashPlayer MarketUpdater MediaProvider MediaUploader memo Mms Music NetworkLocation NetworkLocation NetworkUsage OmaDmclient PackageInstaller PCSync Phone PicoTts PowerControl PowerOff RSstarter RsupInput RsupSrn RsupUInput Screencapture Settings SettingsProvider SetupWizard SoundRecorder Stk Superuser SVGBrowserPlugin SystemUI Talk TelephonyProvider Term TtsService UserDictionaryProvider Vending VonService WapService
# To include the local targets before and after zip the final ZIP file,
# and the local-targets should:
# (1) be defined after including porting.mk if using any global variable(see porting.mk)
# (2) the name should be leaded with local- to prevent any conflict with global targets
local-pre-zip := local-zip-misc
local-after-zip:= local-test
# The local targets after the zip file is generated, could include 'zip2sd' to
# deliver the zip file to phone, or to customize other actions
include $(PORT_BUILD)/porting.mk
# To define any local-target
local-zip-misc:
cp misc/com.google.android.maps.jar $(ZIP_DIR)/system/framework/
@echo Add google apks
cp misc/apk/* $(ZIP_DIR)/system/app/
local-test:
echo "an example action"
Hope it is right... I am using Zeus ROM, as a first try, as you can see...
N00BY0815 said:
I know, it is a veeery noobish question, but how do i get a zipball? I dont get the first step already I already set up Ubuntu, but now I guess, I need your help, then I'll try to build it
-edit-
Do I only need to push download and then download as zip?
Click to expand...
Click to collapse
visit the link from linux (even if it's a VM) and push d/l. its a github repo.
setting up sdk on linux has loads of videos in youtube. then follow the instructions.
Yeah, as you can see from the post below, I already made one more step, and also brought it to start, because i just didnt extract the java sdk correctly... but as I read the java error, I thought I might look in there. But can you help me with the makefile? Is it all correct?
here is as far as i could get till now:
Code:
[email protected]:/home/MisterGT/MiCode/p970# make zipfile
/home/MisterGT/MiCode/tools/apktool d -f /home/MisterGT/MiCode/miui/system/framework/services.jar .build/services_miui
I: Baksmaling...
I: Copying assets and libs...
build .build/services.jar...
--------------------------------------------
cp -r services.jar.out/ .build/services
/home/MisterGT/MiCode/tools/add_miui_smail.sh .build/services_miui .build/services
/home/MisterGT/MiCode/tools/apktool b .build/services .build/services.jar
I: Checking whether sources has changed...
I: Smaling...
W: Could not find resources
I: Building apk file...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /home/MisterGT/MiCode/p970/.build/services.jar, /home/MisterGT/MiCode/p970/.build/services/build/apk]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildApk(Androlib.java:355)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /home/MisterGT/MiCode/p970/.build/services.jar, /home/MisterGT/MiCode/p970/.build/services/build/apk]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 5 more
Caused by: java.io.IOException: Cannot run program "aapt": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
at java.lang.Runtime.exec(Runtime.java:610)
at java.lang.Runtime.exec(Runtime.java:483)
at brut.util.OS.exec(OS.java:78)
... 6 more
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
at java.lang.ProcessImpl.start(ProcessImpl.java:81)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
... 9 more
make: *** [.build/services.jar] Fehler 1
Might this be due to failed decompiling of apk's? If so, can you help me out on that?
---------- Post added at 05:41 AM ---------- Previous post was at 05:01 AM ----------
OK, I guess I made any fault while decompiling the .jar files. Can anyone provide the decompiled files, that are needed? See in link in the first post. And check if my makefile is correct pls
N00BY0815
I have similar [error 1], but i use custom rom based on 20a (deodex)...
Decompiling and compiling *.jar is not detects errors and runs fine ... I don't have idea to fix it ... read many forums but the solutions have not found...
Code:
Cannot run program "aapt"
likely a problem in this
achyut...huexxx... redy... any ideas?
mix231 said:
N00BY0815
I have similar [error 1], but i use custom rom based on 20a (deodex)...
Decompiling and compiling *.jar is not detects errors and runs fine ... I don't have idea to fix it ... read many forums but the solutions have not found...
Code:
Cannot run program "aapt"
likely a problem in this
Click to expand...
Click to collapse
Check out the APKTool folder. Maybe there is no aapt file in it. If so, just download apktool again and extract it there.
For aapt error
If i read that guide carefuly ,
you need to make path and add the tool folder in your path.
mix231 said:
achyut...huexxx... redy... any ideas?
Click to expand...
Click to collapse
So sorry, I haven't read it.. Got busy this semester, so I'm not doing any android dev activity for now..
Sent from my Black.
N00BY0815 said:
I know, it is a veeery noobish question, but how do i get a zipball? I dont get the first step already I already set up Ubuntu, but now I guess, I need your help, then I'll try to build it
-edit-
Do I only need to push download and then download as zip?
Click to expand...
Click to collapse
NO,NO,NO~!you need to do amount of works.
It's not easy- -
Is someone trying to create a miui ROM?
timvdhoorn said:
Is someone trying to create a miui ROM?
Click to expand...
Click to collapse
It will come soon,but it's chinese version- -
jackoll said:
It will come soon,but it's chinese version- -
Click to expand...
Click to collapse
how can you say it'll come soon???...u know something we all should know??...and adding translations is no big deal. can be done once the ROM is released.
new, more detailed instructions
http://www.miui.com/thread-431923-1-1.html
pan_ataman said:
new, more detailed instructions
http://www.miui.com/thread-431923-1-1.html
Click to expand...
Click to collapse
I can't read that lol
Isn't there english thread?
DiederikC said:
I can't read that lol
Isn't there english thread?
Click to expand...
Click to collapse
It's just the porting tutorial, but no one ever succeed until now.
Related
Since I don't have much time to keep on updating my BlendMIUI so I decided to writte a program to give you guys the chance to build BlendMIUI for your own with latest MIUI sources in just few minutes!
Q:What is BlendMIUI Speed-Porting Software For XPERIA 2011
Ans:This is a short program trying to help you guys to build your own BlendMIUI rom for Xperia 2011 in just few minutes.
Q:How to use it?
Unlock Bootloader first!
1.Download BMSPS(BlendMIUI Speed-Porting Software) then unpack it to anywhere you like(Windows environment).Btw,you should install JAVA SE JRE first or it won't works because it needs JAVA environment to sign the rom.You can goto oracle.com/java to download the latest Java SE JRE.
2.Download latest MIUI rom for Desire HD from miui.us(or anywhere you want).
3.Rename the rom you just downloaded as MIUI.zip then put it into BMSPS/MIUI_DHD_ROM directory.(Do not rename it as MIUI.zip.zip!)
4.Run BMSPS_luancher.exe to start.
5.Do as follows then it will automatically create update.zip under the BMSPS directory.
Then you have two choices:
=>Help youself:
6.Put the update.zip rom to your SD-card.
7.Flash BlendMIUI kernel(I have put it into \BlendMIUI-kernel directory) or DooMKernel for MIUI.
8.Use CWM-recovery to flash the update.zip rom.
=>Use Auto-Flash Function
You don't need to do anything on your phone,it will help you to do all works automatically and boot into the new system!
Features:
1.Support Devices: Xperia Arc,Xperia Arc S,Xperia NEO,Xperia NEO V,Xperia Ray.
2.Latest CM7.2.0 rebuilted sources as base.
3.Automatically port MIUI for your device then output unpdate.zip and sign the rom to let you flash it into your device directly.
4.Your choice Function (addons)
5.Fully working Auto-Flash Function
P.S: CM7 sources and kernel for XPERIA RAY are come from bheremans.
Changelog for Version 02:
1.Add moded Packageinstall to let you chose where you would like to install your apps including SD-card.
2.Fixed function to remind you to install java-jre if update.zip is not created.
3.Small changes.
Changelog for Version 03:
1.Fixed PackageInstaller and Torch FC problem when using the ROM from www.miui.com as base.
2.Automatically recognize MIUI version (Depends on the MIUI rom you use) and change Build version for porting rom.
3.Add "Your Choice" function to help you customize your own BlendMIUI rom(BlendUI,DSPManager,Tweaks,Audios from SE).
4.[For DEVs] Whole-New Source code:More easy to read,more easy to add new language(I mean the BMSPS itself) and new functions.
Changelog for Version 04:
1.Disable echoing information for better display.
2.Fixes and improve performance of BMSPS.
3.Add "Auto-Flash" function to help you flash BlendMIUI automatically
Changelog for Version 04.3:
1.Add Xperia Ray ST18i support(All sources for Xperia Ray are come from bheremans).
2.Fixed Auto-Flash function.
3.Fixed ADB Detective bug which cause the software stuck at entering into Auto-Flash function when you input "yes".
Changelog for Version 04.7:
1.Add Xperia Neo V support.
2.Fully working Auto-Flash function (You don't need to do anything on your phone now until it boots into the new system.BMSPS will help you to do everything automatically.)
3.Some small changes
WARNING:This is not an update-package and you'd better delete all old files if you have installed early version of BMSPS.
Make sure you have unlocked bootloader before using this tool.Baseband 56 is recommanded.
Download links:
BMSPS V04.7: http://www.mediafire.com/?4xxna5rim6txmmn
Latest Source Code @ github.com/JasonStein
[Credit]
Bheremans,Eamars,FXP,DooMloRd,enzo...
Please report bugs with screenshots!
Great...!!!
Only one question...!!! What about the kernel...???
great tool !
Now everyone can make his own personal miUI !
thanks man
adiktz said:
Great...!!!
Only one question...!!! What about the kernel...???
Click to expand...
Click to collapse
here is what he said for the kernel.
7.Flash BlendMIUI kernel(I have put it into \BlendMIUI-kernel directory) or DooMKernel for MIUI.
Click to expand...
Click to collapse
Sounds so cool! thanks
Just tried it for 1.11.18 and it works perfectly, a million thanks!
EDIT:
Because I'm lazy and I don't wanna boot into Win7 each time (I just have it for gaming), I compiled the BMSPS_launcher for use on my Fedora installation. I thought I'd upload it here, if anyone else using Linux wants to give it a try.
You just need the zip and unzip packages installed, in addition to the pre-requisites mentioned by Jason.
I attached the modified source file and the binaries for 32 and 64-bit installations.
@Jason: I hope this is fine with you. If not, let me know and I'll remove them. Thanks again for all your work.
Wow! So nice of you guy.
Sent from my LT15i using XDA App
crimilde said:
Just tried it for 1.11.18 and it works perfectly, a million thanks!
EDIT:
Because I'm lazy and I don't wanna boot into Win7 each time (I just have it for gaming), I compiled the BMSPS_launcher for use on my Fedora installation. I thought I'd upload it here, if anyone else using Linux wants to give it a try.
You just need the zip and unzip packages installed, in addition to the pre-requisites mentioned by Jason.
I attached the modified source file and the binaries for 32 and 64-bit installations.
@Jason: I hope this is fine with you. If not, let me know and I'll remove them. Thanks again for all your work.
Click to expand...
Click to collapse
Sure,go ahead,it would be much convenient to Linux users.
Btw I have updated my latest sources on github and I will keep on adding more functions to BMSPS.
crimilde said:
Just tried it for 1.11.18 and it works perfectly, a million thanks!
EDIT:
Because I'm lazy and I don't wanna boot into Win7 each time (I just have it for gaming), I compiled the BMSPS_launcher for use on my Fedora installation. I thought I'd upload it here, if anyone else using Linux wants to give it a try.
You just need the zip and unzip packages installed, in addition to the pre-requisites mentioned by Jason.
I attached the modified source file and the binaries for 32 and 64-bit installations.
@Jason: I hope this is fine with you. If not, let me know and I'll remove them. Thanks again for all your work.
Click to expand...
Click to collapse
Btw you can compiled it for Linux and pack whole things into an package like what I did and give me the download link so that I can attach it to my post.
crimilde said:
Just tried it for 1.11.18 and it works perfectly, a million thanks!
EDIT:
Because I'm lazy and I don't wanna boot into Win7 each time (I just have it for gaming), I compiled the BMSPS_launcher for use on my Fedora installation. I thought I'd upload it here, if anyone else using Linux wants to give it a try.
You just need the zip and unzip packages installed, in addition to the pre-requisites mentioned by Jason.
I attached the modified source file and the binaries for 32 and 64-bit installations.
@Jason: I hope this is fine with you. If not, let me know and I'll remove them. Thanks again for all your work.
Click to expand...
Click to collapse
I have checked your file,there is a mistake:
Code:
if( Device==1 )
{
chdir("DATA/LT15i/");
system("zip -r -u ../../temp.zip *");
}
should be:
Code:
if( Device==1 || Device==2)
{
chdir("DATA/LT15i/");
system("zip -r -u ../../temp.zip *");
}
Cuz LT15i & LT18i share most files
WOW really thanks i just updated my BlendMIUI it works like a charm !
thank you soo much
Edit: Thanks for adding DSPManager !! ^_^
it works soo great on my ARC !!
JasonStein said:
I have checked your file,there is a mistake:
Code:
if( Device==1 )
{
chdir("DATA/LT15i/");
system("zip -r -u ../../temp.zip *");
}
should be:
Code:
if( Device==1 || Device==2)
{
chdir("DATA/LT15i/");
system("zip -r -u ../../temp.zip *");
}
Cuz LT15i & LT18i share most files
Click to expand...
Click to collapse
Ooops, you're right, I must've deleted it by mistake. Thanks for pointing it out!
I'll recompile the thing tomorrow morning and send you the package.
Sent from my LT15i using xda premium
Is there any way to edit this rom to something we want like which APKS are installed and default launcher that kinda stuff?
this is great. it would be accelent if i could chose the language that i whant to install instead of english(not in the cmd window, but for the ROM itself).
can you make a feature for this? only then you will not only be A king you will be THE king.
@Jason: Ok so I've compiled the v2 you posted for Linux 32bit/64bit and archived the whole thing:
EDIT: Reuploaded
http://www.mediafire.com/?9uemvociipaopnn
PS - the source code is attached to the post for your reference. I commented out the Windows-specific lines (instead of deleting them) and put the Linux version below for an easier comparison.
Just one thing, I noticed that even if the update.zip was properly signed and created, the program would still display "5. Failed!" but then clear the screen and show that update.zip was successfully created...
I added an extra condition like below in the Show_Progress function and now it's fine:
Code:
if( i==5 && Step==5 && Out_Check()==0 ) printf("Failed!\n");
crimilde said:
@Jason: Ok so I've compiled the v2 you posted for Linux 32bit/64bit and archived the whole thing:
http://www.mediafire.com/?8vz0xxpyq69afo3
PS - the source code is attached to the post for your reference. I commented out the Windows-specific lines (instead of deleting them) and put the Linux version below for an easier comparison.
Just one thing, I noticed that even if the update.zip was properly signed and created, the program would still display "5. Failed!" but then clear the screen and show that update.zip was successfully created...
I added an extra condition like below in the Show_Progress function and now it's fine:
Code:
if( i==5 && Step==5 && Out_Check()==0 ) printf("Failed!\n");
Click to expand...
Click to collapse
Yes,I made a little mistake:
Code:
void Sign_Rom()
{
Show_Progress(4);
system("java -jar signapk.jar testkey.x509.pem testkey.pk8 temp.zip update.zip");
system("del temp.zip");
Show_Progress(5); // Delete this line!!!
}
Code:
Show_Progress(5);
shouldn't be there.Just remove this line and it will be fine.
I will keep on updating my source code to add more useful functions to give you more choices and let it become not only a speed-porting software but also an MIUI rom customization tool.The early version of BMSPS is quite short with some basic functions and it's not written in a standard way.I'm going to do some changes and if you like to contribute to it,you can always fork my source code and add your own things including some useful functions and I will be appreciate.
P.S:
I will release next version of BMSPS with some useful functions before MIUI 1.11.25 released.
JasonStein said:
Yes,I made a little mistake:
Code:
void Sign_Rom()
{
Show_Progress(4);
system("java -jar signapk.jar testkey.x509.pem testkey.pk8 temp.zip update.zip");
system("del temp.zip");
Show_Progress(5); // Delete this line!!!
}
Code:
Show_Progress(5);
shouldn't be there.Just remove this line and it will be fine.
Click to expand...
Click to collapse
Yeah, you're right, it's better to just remove that line instead of adding an extra condition. I'm reuploading now and I'll update the link in my post above once it's done.
crimilde said:
Yeah, you're right, it's better to just remove that line instead of adding an extra condition. I'm reuploading now and I'll update the link in my post above once it's done.
Click to expand...
Click to collapse
And it's done.
Thanks. Updated the MIUI to the latest version. This is so awesome
In JB the bools value is now found in the TeleService.apk...
Code:
<bool name="data_connection_except_mms_show_icon_when_disabled">true</bool>
See attachment for a 368 modified apk.
works great brov..... thanks a mill for tha tut!
You can enable call recording by change one line in SemcPhone.apk\res\values\bools.xml
Code:
<bool name="enable_call_recording">false</bool>
to
Code:
<bool name="enable_call_recording">true</bool>
I created Xposed module to disable data notification and enable call recording.
DOWNLOAD
(English description version)
Now on Xposed Module Repository:
http://repo.xposed.info/module/com.wedy.semcphoneov
RyokoN said:
You can enable call recording by change one line in SemcPhone.apk\res\values\bools.xml
Code:
<bool name="enable_call_recording">false</bool>
to
Code:
<bool name="enable_call_recording">true</bool>
I created Xposed module to disable data notification and enable call recording.
DOWNLOAD
Click to expand...
Click to collapse
it's a APK file
how to use it?
KaKaShiHp said:
it's a APK file
how to use it?
Click to expand...
Click to collapse
You need the Xposed Framework.
Just tried this on the Z's stock 4.2.2 rom. The call recording works..the notification disabling sadly doesn't. Shame, but it was worth a shot! :good:
Ticklefish said:
Just tried this on the Z's stock 4.2.2 rom. The call recording works..the notification disabling sadly doesn't.
Click to expand...
Click to collapse
Strange, I'm on 4.2.2 so the files are from it. I'll have a look over the weekend.
XperienceD said:
Strange, I'm on 4.2.2 so the files are from it. I'll have a look over the weekend.
Click to expand...
Click to collapse
It may be something that's unique to the Z, although I don't see it. I'll have another go at it tomorrow if I can.
Sent from my Xperia Z using XDA Premium
..Have you tried Tickle My Android yet?
Ticklefish said:
It may be something that's unique to the Z, although I don't see it. I'll have another go at it tomorrow if I can.
Sent from my Xperia Z using XDA Premium
..Have you tried Tickle My Android yet?
Click to expand...
Click to collapse
Looks like there's an overlay that resets those bools back to true. Humph...that's annoying.
I've just tried deleting the overlay but it bootlooped my phone. I put it back, with the right permissions...and my phone was still in a bootloop.
So I'm reflashing my rom right now and I won't have any more time today to look into this more. It's my first time dealing with overlays. Sneaky little things!
Ticklefish said:
Looks like there's an overlay that resets those bools back to true. Humph...that's annoying.
Click to expand...
Click to collapse
I know, which is why it needs editing or you can edit the SemcPhone.apk and remove the overlay.
XperienceD said:
I know, which is why it needs editing or you can edit the SemcPhone.apk and remove the overlay.
Click to expand...
Click to collapse
I'm new to using overlays, so I'm kinda taking it slowly. I'm on call today so I can't afford for my phone to be out of action.
I'm assuming I can just mod the overlay in the same way as any normal apk?
Sent from my Xperia Z using XDA Premium
..Have you tried Tickle My Android yet?
Ticklefish said:
I'm assuming I can just mod the overlay in the same way as any normal apk?
Click to expand...
Click to collapse
Correct. Some reading material here on overlays - [INFO] Custom framework-res.apk resources.arsc using vendor overlays.
XperienceD said:
Correct. Some reading material here on overlays - [INFO] Custom framework-res.apk resources.arsc using vendor overlays.
Click to expand...
Click to collapse
And it worked. Now I no longer have those completely pointless notifications. Excellent!
I'm subscribed to that thread, but it's a little over my head currently. Interesting though.
I have constant issues with recompiling the SemcPhone.apk...
Can someone please upload this file with the recording fix applied?
Thanks a lot,
illuminated said:
I have constant issues with recompiling the SemcPhone.apk...
Can someone please upload this file with the recording fix applied?
Thanks a lot,
Click to expand...
Click to collapse
Just delete all the folders apktool lists as an issue and it should build then, that works for me.
...Sent from Zed
Have tried a couple of tools... ApkTool i ApkManager won't event decode the apk properly, I keep getting the following error:
Code:
E:\Xperia\apktool1.5.2\apktool1.5.2>apktool.bat -v d SemcPhone.apk
Aug 01, 2013 2:48:49 PM brut.androlib.res.AndrolibResources loadMainPkg
INFO: Loading resource table...
Aug 01, 2013 2:48:51 PM brut.androlib.res.AndrolibResources loadMainPkg
INFO: Loaded.
Aug 01, 2013 2:48:51 PM brut.androlib.res.AndrolibResources decode
INFO: Decoding AndroidManifest.xml with resources...
Aug 01, 2013 2:48:51 PM brut.androlib.res.AndrolibResources loadFrameworkPkg
INFO: Loading resource table from file: C:\Users\milan.petrovic.SEAVUS-CORP\apkt
ool\framework\1.apk
Aug 01, 2013 2:48:52 PM brut.androlib.res.AndrolibResources loadFrameworkPkg
INFO: Loaded.
Aug 01, 2013 2:48:52 PM brut.androlib.res.AndrolibResources adjust_package_manif
est
INFO: Regular manifest package...
Aug 01, 2013 2:48:52 PM brut.androlib.res.AndrolibResources decode
INFO: Decoding file-resources...
Aug 01, 2013 2:48:53 PM sun.awt.windows.WToolkit <clinit>
FINE: Win version: 0x23f00206 = 602931718 (Windows Vista)
Aug 01, 2013 2:48:55 PM brut.androlib.res.decoder.AXmlResourceParser getAttribut
eValue
WARNING: Could not decode attr value, using undecoded value instead: ns=android,
name=textAppearance, value=0x0209003e
brut.androlib.err.CantFindFrameworkResException
at brut.androlib.res.AndrolibResources.getFrameworkApk(AndrolibResources
.java:544)
at brut.androlib.res.AndrolibResources.loadFrameworkPkg(AndrolibResource
s.java:105)
at brut.androlib.res.data.ResTable.getPackage(ResTable.java:75)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen
ceValue.java:62)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResRefe
renceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResSca
larValue.java:44)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:4
0)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlRe
sourceParser.java:313)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValu
e(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT
ag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Stati
cXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamD
ecoder.java:80)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
coder.java:130)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamD
ecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:1
07)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:9
1)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:238
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
Aug 01, 2013 2:48:55 PM brut.androlib.res.decoder.AXmlResourceParser getAttribut
eValue
WARNING: Could not decode attr value, using undecoded value instead: ns=android,
name=textAppearance, value=0x0209003e
brut.androlib.err.CantFindFrameworkResException
at brut.androlib.res.AndrolibResources.getFrameworkApk(AndrolibResources
.java:544)
at brut.androlib.res.AndrolibResources.loadFrameworkPkg(AndrolibResource
s.java:105)
at brut.androlib.res.data.ResTable.getPackage(ResTable.java:75)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen
ceValue.java:62)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResRefe
renceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResSca
larValue.java:44)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:4
0)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlRe
sourceParser.java:313)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValu
e(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT
ag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Stati
cXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamD
ecoder.java:80)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
coder.java:130)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamD
ecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:1
07)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:9
1)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:238
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
Aug 01, 2013 2:48:58 PM brut.androlib.res.AndrolibResources decode
INFO: Decoding values */* XMLs...
Aug 01, 2013 2:49:01 PM brut.androlib.res.AndrolibResources decode
INFO: Done.
Can't find framework resources for package of id: 2. You must install proper fra
mework files, see project website for more info.
E:\Xperia\apktool1.5.2\apktool1.5.2>
Android Suite can decompile the APK but won't recompile it later.
illuminated said:
Have tried a couple of tools... ApkTool i ApkManager won't event decode the apk properly, I keep getting the following error:
Code:
Can't find framework resources for package of id: 2. You must install proper fra
mework files, see project website for more info.
E:\Xperia\apktool1.5.2\apktool1.5.2>
Android Suite can decompile the APK but won't recompile it later.
Click to expand...
Click to collapse
Its telling you why, you've not installed the second framework, which for us is the SemcGenericUxpRes.apk
...Sent from Zed
Is there a way to deaktivate the network notification?
When my desired operator (which i manually set) is not available then I don't want to see a notification.
Thanks for this mod fellas, works perfectly on latest monX v5 Is it possible the recording to start automatic without us turning it on with every call ?
RyokoN said:
You can enable call recording by change one line in SemcPhone.apk\res\values\bools.xml
Code:
<bool name="enable_call_recording">false</bool>
to
Code:
<bool name="enable_call_recording">true</bool>
I created Xposed module to disable data notification and enable call recording.
DOWNLOAD
(English description version)
Now on Xposed Module Repository:
http://repo.xposed.info/module/com.wedy.semcphoneov
Click to expand...
Click to collapse
creat one for XGO JB 100 please ?
I've been banging my head against the wall on this one. With 4.2.2 I could install the framework, decompile, change, recompile an apk without issue.
With 4.4, I am getting this error when I try and install the framework:
C:\Users\Super\APK-Tools\APKtool>apktool if framework-res.apk
W: Config flags size > 36. Exceeding bytes: 0xFFFF.
W: Invalid config flags detected: style-v17-ERR0
Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:56)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:40)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:562)
at brut.androlib.Androlib.installFramework(Androlib.java:473)
at brut.apktool.Main.cmdInstallFramework(Main.java:250)
at brut.apktool.Main.main(Main.java:81)
Caused by: java.io.IOException: Expected: 0x00000008, got: 0x00000100
at brut.util.ExtDataInput.skipCheckShort(ExtDataInput.java:56)
at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:222)
at brut.androlib.res.decoder.ARSCDecoder.readComplexEntry(ARSCDecoder.java:214)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:182)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:170)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:135)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:110)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
... 5 more
Click to expand...
Click to collapse
Am I just being stupid? Has anyone been able to install the 4.4 framework?
Thanks.
Environment:
Win7
official framework-res.apk from stock att motox 4.4
apktool.jar v 1.5.2
Well, I got it to work.
FWIW I used apktool_2.0.0b7.jar in linux. Worked without issue.
(It didn't work in windows.)
Just to say that I had the same issue. I took the framework-res.apk from another custom rom and it works on Windows 7 64 bits.
Bad installation with CM11 based rom (Beanstalk)
Good installation with an AOSP based rom (Pure Speed X)
Primokorn said:
Just to say that I had the same issue. I took the framework-res.apk from another custom rom and it works on Windows 7 64 bits.
Bad installation with CM11 based rom (Beanstalk)
Good installation with an AOSP based rom (Pure Speed X)
Click to expand...
Click to collapse
Same here :
Win 7 64bit
Hammerhead - slimkat framework
You need apktool 2 beta for 4.4 apks. Older versions don't use new enough smali/baksmali for KitKat
Sent from my Moto X
imnuts said:
You need apktool 2 beta for 4.4 apks. Older versions don't use new enough smali/baksmali for KitKat
Sent from my Moto X
Click to expand...
Click to collapse
I have apktool 2 beta however I wasn't able to install the framework-res.apk from CM11 based ROMs.
No problem with AOSP 4.4 based ROMs though...
BTW the apktool 2 beta creates other folders during the decompilation like "Original".
i'm curious, how'd you recompile? i just got my dev edition today and my first goal was to pull framework-res and remove the wifi tether entitlement check. decompile and making the edit was easy, but on recompile i got the following error:
invalid resource directory name: /xxx/framework-res/res/values-mcc310-mnc-1
Click to expand...
Click to collapse
if i remove the last dash (i.e. change to values-mcc310-mnc1), it works...but i still get a warning on recompile:
aapt: warning: string 'usb_charge_notification_title' has no default translation in /xxx/framework-res/res; found: da de el es fr nb nl pt sv tr zh_CN zh_TW
Click to expand...
Click to collapse
i pushed the new framework to the phone and so far, it seems to work...but does anyone have any idea what's up with the errors? is it something that will cause any issues? is there a way to resolve it and get a clean decompile/recompile? i've tried using both beta7 and beta8 (which came from the apktool thread, i guess it's not publicly available yet?)
crackers8199 said:
i'm curious, how'd you recompile? i just got my dev edition today and my first goal was to pull framework-res and remove the wifi tether entitlement check. decompile and making the edit was easy, but on recompile i got the following error:
if i remove the last dash (i.e. change to values-mcc310-mnc1), it works...but i still get a warning on recompile:
i pushed the new framework to the phone and so far, it seems to work...but does anyone have any idea what's up with the errors? is it something that will cause any issues? is there a way to resolve it and get a clean decompile/recompile? i've tried using both beta7 and beta8 (which came from the apktool thread, i guess it's not publicly available yet?)
Click to expand...
Click to collapse
To recompile I actually use the old apktool.jar.
Apktool beta 2 enables me to only decompile CM11 stuff.
Primokorn said:
To recompile I actually use the old apktool.jar.
Apktool beta 2 enables me to only decompile CM11 stuff.
Click to expand...
Click to collapse
with the old apktool i get even more errors, and they're not as concise. i guess i should also reiterate this is completely stock, the only things i've done to the phone so far is update to 4.4, unlock bootloader, install twrp and root. other than that, the phone is completely stock.
can you (or anyone, really) tell me if changing that directory name and/or the translation warning i get are going to cause issues? if so (even if not), is there a good way to resolve them?
Hi,
i have a Problem with building a Hammerhead Rom from AOSP.
Buildin otapackage went fine.
running: java -Xmx2048m -jar out/host/linux-x86/framework/signapk.jar -w build/target/product/security/testkey.x509.pem build/target/product/security/testkey.pk8 /tmp/tmpHi4Kxb out/target/product/hammerhead/aosp_hammerhead-ota-eng.androidenv.zip
done.
Click to expand...
Click to collapse
But if flash this zip with TWRP, my Nexus 5 stand still at Google boot logo.
how can I check what I have done wrong?
isRaZZe said:
Hi,
i have a Problem with building a Hammerhead Rom from AOSP.
Buildin otapackage went fine.
But if flash this zip with TWRP, my Nexus 5 stand still at Google boot logo.
how can I check what I have done wrong?
Click to expand...
Click to collapse
My guess would be that you are missing some (or all) proprietary vendor blobs.
upndwn4par said:
My guess would be that you are missing some (or all) proprietary vendor blobs.
Click to expand...
Click to collapse
Your right. Do you have a link for me where i get these vendor blobs and how to include them ?
isRaZZe said:
Your right. Do you have a link for me where i get these vendor blobs and how to include them ?
Click to expand...
Click to collapse
https://developers.google.com/android/nexus/drivers
Lethargy said:
https://developers.google.com/android/nexus/drivers
Click to expand...
Click to collapse
Thanks. :good:
How do i include them in a automatic process in building ?
isRaZZe said:
Thanks. :good:
How do i include them in a automatic process in building ?
Click to expand...
Click to collapse
You should check if the path on /device/lge/hammerhead/full_hammerhead.mk is correct
and if, when you extract the zip, the device-vendor.mk works....
btw, my advice is to use some working blobs like AOSPA or CM...some binaries aren't in the source zip
...You can check my source for have an idea...
Crostantin said:
You should check if the path on /device/lge/hammerhead/full_hammerhead.mk is correct
and if, when you extract the zip, the device-vendor.mk works....
btw, my advice is to use some working blobs like AOSPA or CM...some binaries aren't in the source zip
...You can check my source for have an idea...
Click to expand...
Click to collapse
This is considerably more complex than I had imagined before.
Can someone explain me in more detail as I insert the blobs and can build a functioning Images?
isRaZZe said:
This is considerably more complex than I had imagined before.
Can someone explain me in more detail as I insert the blobs and can build a functioning Images?
Click to expand...
Click to collapse
in my opinion, the best way is to clone this in your tree (or add it in a local_manifests)
https://github.com/ThankYouMario/proprietary_vendor_lge_hammerhead
and move files to this path: vendor/lge/hammerhead
then you should make this little modification:
https://github.com/BoostPop/android_device_lge_hammerhead/commit/616c559e9fcfbde0e4fb477c681bc36627d5eb00
Crostantin said:
in my opinion, the best way is to clone this in your tree (or add it in a local_manifests)
https://github.com/ThankYouMario/proprietary_vendor_lge_hammerhead
and move files to this path: vendor/lge/hammerhead
then you should make this little modification:
https://github.com/BoostPop/android_device_lge_hammerhead/commit/616c559e9fcfbde0e4fb477c681bc36627d5eb00
Click to expand...
Click to collapse
Thanks. Will try it this evening.
Another question i have...
My idea is to build my own AOSP-Rom with some little modifikation. One of these modifikation are to include the "Close all Tabs" in the system wide tab view.
Where i can find this Code ?
I need to understand first where the individual parts of code are and was hoping that some of you support.
But first I need an executable Rom.
Edit:
I had checkout from git and copy to working directory. Path is vendor/lge/hammerhead. edit full_hammerhead.mk and remove the line and add
$(call inherit-product-if-exists, vendor/lge/hammerhead/hammerhead-vendor.mk)
then:
source build/envsetup.sh .
lunch aosp_hammerhead-userdebug
make -j4 otapackage
end in error :
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
build/core/Makefile:34: warning: overriding commands for target `out/target/product/hammerhead/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:550: warning: ignoring old commands for target `out/target/product/hammerhead/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/hammerhead/system/lib/hw/gps.msm8974.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `out/target/product/hammerhead/system/lib/hw/gps.msm8974.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/hammerhead/system/lib/libgps.utils.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `out/target/product/hammerhead/system/lib/libgps.utils.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/hammerhead/system/lib/libloc_core.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `out/target/product/hammerhead/system/lib/libloc_core.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/hammerhead/system/lib/libloc_eng.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `out/target/product/hammerhead/system/lib/libloc_eng.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/hammerhead/system/lib/libmmcamera_interface.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `out/target/product/hammerhead/system/lib/libmmcamera_interface.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/hammerhead/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `out/target/product/hammerhead/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
No private recovery resources for TARGET_DEVICE hammerhead
build/core/tasks/vendor_module_check.mk:56: *** Error: Product "aosp_hammerhead" cannot have overlay in vendor tree: vendor/lge/hammerhead/overlay. Stop.
Click to expand...
Click to collapse
Edit2:
Problem solved. Add the repo over local_manifest solution and build succesful and rom flash&boot are okay.
before build i need to set PRODUCT_RESTRICT_VENDOR_FILES := false in full_hammerhead.
soo... next step is to add some tweaks. from cm source... also over manifest?
isRaZZe said:
soo... next step is to add some tweaks. from cm source... also over manifest?
Click to expand...
Click to collapse
IMO best way to add features to your own build is get to know how to cherry-pick.
Then how to deal with conflicts etc.
So best way is to check google "how to cherry-pick" , its really easy when you get it.
Then you check CM github the commits you need.
Sick1 said:
IMO best way to add features to your own build is get to know how to cherry-pick.
Then how to deal with conflicts etc.
So best way is to check google "how to cherry-pick" , its really easy when you get it.
Then you check CM github the commits you need.
Click to expand...
Click to collapse
I now have posited me with cherry pick apart. This works so far very good.Thanks for that tipp !
Now I am facing a problem. I want to integrate Koush superuser settings, but the patch from Koush for this is very old (cm10.1) and does not work with cm12. Does anyone have a link to a patch with which I can integrate superuser in the Settingsapp?
nobody?
isRaZZe said:
I now have posited me with cherry pick apart. This works so far very good.Thanks for that tipp !
Now I am facing a problem. I want to integrate Koush superuser settings, but the patch from Koush for this is very old (cm10.1) and does not work with cm12. Does anyone have a link to a patch with which I can integrate superuser in the Settingsapp?
Click to expand...
Click to collapse
isRaZZe said:
nobody?
Click to expand...
Click to collapse
Every question you have asked, and will ask in the future, has been asked and answered many times. Xda alone has many threads on building from source, so creating this thread was pointless.
Google is your friend. Search, read, learn.
Since you want to cherry-pick CM, then the CM github is a great place to start. But I'll give you a hint...CM doesn't use Koush's superuser anymore.
https://github.com/CyanogenMod
Hello guys ...
Can someone tell me the whole process to compile pure AOSP for hammerhead ?? .. How to extract d blobs and everything ..
It would be great if someone helps me
Hope someone helps ..
Thanx
Hi everyone,
I wanna build old version of Xposed, for Android SDK 16-19, then have tried to compile Xposed fw for hundreds time but still failed.
Environment: Ubuntu 15.10 x64 | tools: JDK 1.6, libc6 ....
AOSP: JZO54L / android-4.1.2_r2 /Jelly Bean ("make app_process" have been run successfully).
My steps:
- Download AOSP into /opt/android/aosp
- XposedBridge.jar: Download Xposed Installer here repo[dot]xposed[dot]info/module/de.robv.android.xposed.installer and detach jar from apk. Put it to /opt/out/java
- Download XposedTools source from github into /opt/xposed/ then make build.conf file:
[General]
outdir = /opt/out
[Build]
# Please keep the base version number and add your custom suffix
version = 58
# makeflags = -j4
[GPG]
sign = release
user = 852109AA!
# Root directories of the AOSP source tree per SDK version
[AospDir]
16 = /opt/android/aosp
# SDKs to be used for compiling BusyBox
# Needs github[dot]com/rovo89/android_external_busybox
[BusyBox]
Click to expand...
Click to collapse
- To integrate Xposed to AOSP, I tried following 2 ways in the instruction (local manifest and manual cloning)
+ local manifest: link [XposedTools]/local_manifests/xposed_sdk16.xml to [aosp]/.repo/local_manifests/ then run repo sync.
+ manual cloning: remove [aosp]/build; clone github[dot]com/rovo89/platform_build/ to replace; clone github[dot]com/rovo89/Xposed into [aosp]/framework/base/cmds/xposed
- Go back to [XposedTools] and run ./build -t x86:16
>>output: cd /opt/android/aosp && . build/envsetup.sh >/dev/null && lunch full_x86-user >/dev/null && make -j8 TARGET_CPU_SMP=true xposed
Click to expand...
Click to collapse
The result I received is a big "app_process_xposed" file (~ 270-350 KBs), it size is as many times as the origin app_process file (~20 KBs). I think there are somethings wrong. I open them by 7z and see some differences:
i.imgur.com/PU80vSV.png
Click to expand...
Click to collapse
I may did some mistakes in these steps. Could you please give me any advice?
Thank so much!
Help me Pls...
Did you actually try the app_process_xposed you got, or did you just assume it was wrong because it was bigger? If you did try it, what did it do?
josephcsible said:
Did you actually try the app_process_xposed you got, or did you just assume it was wrong because it was bigger? If you did try it, what did it do?
Click to expand...
Click to collapse
Thank for your reply. I tried rename app_process_xposed to app_process_sdk16 then push new file to assets folder of XposedInstaller project. When XposedInstaller.apk file installed, i had receive messages not compatible with my sdk 19...
hahalulu said:
When XposedInstaller.apk file installed, i had receive messages not compatible with my sdk 19...
Click to expand...
Click to collapse
What was the exact message that you got? Can you post a screenshot of it?
josephcsible said:
What was the exact message that you got? Can you post a screenshot of it?
Click to expand...
Click to collapse
My message i had received
Update: sdk16.zip file
I'm still stuck at this problem :crying:
hahalulu said:
I'm still stuck at this problem :crying:
Click to expand...
Click to collapse
build duoc chua ban. minh cung dang bi giong ban. khong biet giai quyet the nao
hellboy211 said:
build duoc chua ban. minh cung dang bi giong ban. khong biet giai quyet the nao
Click to expand...
Click to collapse
Please post in English, I have translated this one for you
Regards
Sawdoctor
Build is not acid. You are also welcome. Not the right time