Error compile TW SystemUI - Android Q&A, Help & Troubleshooting

Hey everyone !
Every time I try to compile a 5.0.1 TW SystemUI I've got this error : "[Fatal Error] AndroidManifest.xml:1:1: Content is not allowed in prolog"
With all other SystemUI it's fine.. Anyone know how to fix this ?

I resolved the problem myself by extract META-INF and androidmanifest.xml from original apk and not from the "original" folder.

Related

howto de/compile systemui.apk without any error

Hello,
I wanted to de/compile the systemui.apk and got errors.
I installed framework-res.apk with apktool.
After installation I used apktool (Win7) and decompiled the systemui.apk.
But I got the same errors as many others have gotten them.
brut.blahblahblah..
So I tried other apktool.jar (apktoolICS.jar) and it worked fine!
I opened the new systemui folder and there are the following folders:
res and assets
no smali folder. is it right and normal?
Because the compiling with old apktool (not apktoolICS) didn't work, I compiled with the ICS file and it worked. I got the translation message (airplane_mode).. Not interesting for me atm.
When I look at the new built systemui.apk, I wondered about the file size.
The new file: 1.009kb
The old file: 1.338kb
I signed the new file. Now the file size is 1.044kb.
I edited only a xml file (styles.xml)..
The file didn't work on the sgs2..
Could someone tell me what I did wrong?
Please help me
Best regards
Marcus
*push* after moving to correct section
maybe no need to sign your new file,
try to drag the META-INF folder and the AndroidManifest.xml from the older file to the new file you build
BTW, is your old systemui file a deodex one?
if no deodex, the smali code wil include in the odex file~

[Q] Can not decompile SystemUI.apk

I want to decompile SystemUI.apk for editing, but the problem is that it is already themed and decompliling throws many errors at me. Any idea how can I edit that "already edited" SystemUI.apk. It has been taken from Custom Rom (JB 4.1). Thanks

[D.E.V][PORT] MIUI 7 ROM for I8552 delos3geour device

Hi MIUIers
This was a request for Port Team development. Like me many people have or had a Win Duos device GT-i8552 (delos3geour) and keep using the stock Jelly Bean Android or change this recent device for other.
It's a Quad-core armv7 snapdragon 200 with potential to use most recent API.s I made some customs ROMs based in Stock with AOSP features and lasted used Baidu OS with my own themes to bcloud theme chooser like the DWUI V6 dark and light all inspired on MIUI 6 to keep alive , but we could be MIUI running .
Owners please vote in Pool below to indicate me your interesting
With help and incentive by MIUI Team developers, i decided look at this opportunity to give MIUI for all owners and transform new MIUIers have fun !!
After did many Custosm ROMs, ports and others things for I8552 i decided to make a Full BUILD ROM for delos3geour using a MIUI 7 source from Nexus5.
Update Thread Project (MIUI 7 Patchrom - 7.05.14)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Requirements:
Ubuntu 14.04 or newest 16.04 64-bit. installed or virtualized
Base ROM for your device.
It's better to use a pure AOSP built for your device as base ROM rather than CyanogenMod, this avoid more rejections while patching a MIUI source.
Apktool
Decompile knowledge
Patient
Brain
Carefull
Linux commands
Status: 18.05.2017
Rejections Fixes Step: services.jar.out
Repository - Done
SDK config - Done
JKD config - Done
Libs config - Done
PATCHROM - Done
Worskpace - Done
FirStpatch - Done
delos3geour Patchrom by MJ Rosa
Rejections List 1 level 2 level 3 level 4 level 5 level 6 level 7 level 8 level status Fix date
Folder android.policy.jar.out
Subfolder smali
Subfolder com
Subfolder android
Subfolder internal
Subfolder policy
Subfolder impl
File PhoneWindowManager.smali ok 08/05/17
Folder framework.jar.out
Subfolder smali
Subfolder android
Subfolder accounts
File ChooseTypeAndAccountActivity.smali ok 08/05/17
Subfolder app
File ApplicationPackageManager.smali ok 08/05/17
File ContextImpl.smali ok 09/05/17
File DialogFragment.smali ok 09/05/17
File ResourcesManager.smali ok 10/05/17
Subfolder Backup
File BackupAgent.smali ok 10/05/17
Subfolder content
Subfolder pm
File PackageParser.smali ok 10/05/17
Subfolder res
File Configuration.smali ok 10/05/17
Subfolder database
Subfolder sqlite
Subfolder no fixes
Subfolder graphics
Subfolder drawable
Subfolder no fixes
Subfolder media
File AudioService.smali ok 12/05/17
File MediaFile.smali ok 12/05/17
File MiniThumbFile.smali ok 12/05/17
Subfolder net
Subfolder wifi
File SupplicantStateTracker.smali ok 14/05/17
File WifiConfigStore.smali ok 14/05/17
File WifiStateMachine.smali ok 14/05/17
os
File Build$VERSION.smali ok 17/05/17
File RecoverySystem.smali ok 17/05/17
Subfolder preference
Subfolder no fixes
Subfolder provider
File CallLog$Calls.smali ok 17/05/17
Subfolder telephony
Subfolder no fixes
Subfolder util
Subfolder no fixes
Subfolder view
File ViewConfiguration.smali ok 17/05/17
File Window.smali ok 17/05/17
Subfolder webkit
Subfolder no fixes
Subfolder widget
File TextView.smali ok 17/05/17
Folder framework2.jar.out
Subfolder smali
Subfolder com
Subfolder android
Subfolder internal
Subfolder app
File IAppOpsService$Stub.smali ok 17/05/17
Subfolder os
File ZygoteInit.smali ok 17/05/17
Subfolder statusbar
Subfolder no fixes
Subfolder telephony
Subfolder no fixes
Subfolder widget
File ILockSettings$Stub.smali ok 17/05/17
Folder services.jar.out
Subfolder smali
Subfolder com
Subfolder android
Subfolder server
Subfolder accounts
Subfolder no fixes
Subfolder am
Subfolder no fixes
Subfolder connectivity
Subfolder no fixes
Subfolder content
Subfolder no fixes
Subfolder display
File WifiDisplayController.smali ok 17/05/17
Subfolder input
Subfolder no fixes
Subfolder location
Subfolder no fixes
Subfolder net
Subfolder no fixes
Subfolder pm
File PackageManagerService.smali ok 18/05/17
Subfolder power
File PowerManagerService.smali ok 18/05/17
Subfolder usb
Subfolder no fixes
Subfolder vm
File AlarmManagerService.smali ok 18/05/17
File AlarmManagerService$Alarm.smali ok 18/05/17
File BackupManagerService.smali ok 18/05/17
File BackupManagerService$PerformFullBackupTask.smali ok 18/05/17
File ConnectivityService.smali ok 18/05/17
File ConnectivityService$CheckMp.smali ok 18/05/17
File ConnectivityService$FeatureUser.smali ok 18/05/17
File LightsService$Light.smali ok 18/05/17
File LocationManagerService.smali ok 18/05/17
File MasterClearReceiver.smali ok 18/05/17
File MasterClearReceiver$1.smali
File NotificationManagerService.smali
File NotificationManagerService$6.smali
File ServerThread.smali
File ServerThread$2.smali
Folder telephony-common.jar.out
Subfolder smali
Subfolder android
Subfolder telephony
Subfolder no fixes
Subfolder com
Subfolder android
Subfolder internal
Subfolder telephony
Subfolder cdma
File CDMAPhone.smali
Subfolder gsm
File GSMPhone.smali
File GsmServiceStateTracker.smali
Subfolder uicc
File RuimRecords.smali
File SIMRecords.smali
File UiccCard.smali
File IccProvider.smali
File PhoneBase.smali
================================================================================================================
Port MIUI v5 from K-touch U86
Morning Bro's @gody420, @manojkumar8552
Im open this dev with the objective port MIUI v6 from K-Touch - U86
Im using the Droidwin v3 like base and processing port by kitchen
Step 1
First decompile recovery.img and boot.img to create file with mount points of U86 link post and save with the device name that w find on build.prop
Open Kitchen and put the droidwin ROM (Base zip) and MIUI k-touch.zip ROM (Port zip) on original_update folder
On kitchen menu set Legacy option and type 28 to choose port ROM functions
Step 2
Set base zip like obtain a rom that is currently meant for your device
Wait extract base kernel and extract zip to my_device_working folder created
Step 3
Set Port zip like obtain a rom that iyou want to port from another device
Wait creation of working_folder and extract ROM from Port zip . Rename folder to identify project
On sequency action to this step i selected option 1 - Convert it to update-script ( Amend format) cause this is default option "y"
The option 2 means Do nothing , keep updater-script (Edify format)
Step 4
Now the working_folder ported is craeted and the kitchen merge folders and files of both zip folders ( porting ROM)
In the and appear on NOTE: This device (msm8625) requires an updater-scripit so im stopped process and restart repeating again the steps 2 and 3 just this time selecting on action the option 2
Now this process occurs fine just on NOTE kitchen returns that dont be able to maka dedodex and others stuffs but is ok in moment cause isn't my objective
Follow kitchen steps the Porting ROM is done.....
Returns
setting ro.product.device=delous3geur
setting ro.product.board=MSM8225
setting ro.product.plataform=msm7627a
Step 5
using the notepad++ Open the working Ported folder system/build.prop ported and change the devices name, brand manufactory for I8552 base build.prop especfs
Code:
ro.product.model=GT-I8552
ro product.brand=samsung
[COLOR="Blue"]ro.product.device=delos3geur (keep this created by kitchen)[/COLOR]
ro.product.name=delos3gub [COLOR="blue"]or xx depends of base name[/COLOR]
ro product.manufacturer=samsung
ro.product.product=delos3geur
ro.build.description=[COLOR="Red"]samsung/delos3geub-[/COLOR]:...........keep rest
ro.build.fingerprint=[COLOR="red"]samsung/delos3geub/delos3geur[/COLOR]...........keep rest
On finish im saved file
This time i dont changed the additional properties like ringtones
Step 6
Go back on kitchen menu and select 99 to build new ported ROM zip
===
Well this steps on flash something is diferent and this case im need u help and stopped on bootanimantion
Soon i1ll post attachs by this build.prop and the update-script
MJ
mjraogr said:
Morning Bro's @gody420, @manojkumar8552
Im open this dev with the objective port MIUI v6 from K-Touch - U86
Im using the Droidwin v3 like base and processing port by kitchen
Step 1
First decompile recovery.img and boot.img to create file with mount points of U86 link post and save with the device name that w find on build.prop
Open Kitchen and put the droidwin ROM (Base zip) and MIUI k-touch.zip ROM (Port zip) on original_update folder
On kitchen menu set Legacy option and type 28 to choose port ROM functions
Step 2
Set base zip like obtain a rom that is currently meant for your device
Wait extract base kernel and extract zip to my_device_working folder created
Step 3
Set Port zip like obtain a rom that iyou want to port from another device
Wait creation of working_folder and extract ROM from Port zip . Rename folder to identify project
On sequency action to this step i selected option 1 - Convert it to update-script ( Amend format) cause this is default option "y"
The option 2 means Do nothing , keep updater-script (Edify format)
Step 4
Now the working_folder ported is craeted and the kitchen merge folders and files of both zip folders ( porting ROM)
In the and appear on NOTE: This device (msm8625) requires an updater-scripit so im stopped process and restart repeating again the steps 2 and 3 just this time selecting on action the option 2
Now this process occurs fine just on NOTE kitchen returns that dont be able to maka dedodex and others stuffs but is ok in moment cause isn't my objective
Follow kitchen steps the Porting ROM is done.....
Returns
setting ro.product.device=delous3geur
setting ro.product.board=MSM8225
setting ro.product.plataform=msm7627a
Step 5
using the notepad++ Open the working Ported folder system/build.prop ported and change the devices name, brand manufactory for I8552 base build.prop especfs
Code:
ro.product.model=GT-I8552
ro product.brand=samsung
[COLOR="Blue"]ro.product.device=delos3geur (keep this created by kitchen)[/COLOR]
ro.product.name=delos3gub [COLOR="blue"]or xx depends of base name[/COLOR]
ro product.manufacturer=samsung
ro.product.product=delos3geur
ro.build.description=[COLOR="Red"]samsung/delos3geub-[/COLOR]:...........keep rest
ro.build.fingerprint=[COLOR="red"]samsung/delos3geub/delos3geur[/COLOR]...........keep rest
On finish im saved file
This time i dont changed the additional properties like ringtones
Step 6
Go back on kitchen menu and select 99 to build new ported ROM zip
===
Well this steps on flash something is diferent and this case im need u help and stopped on bootanimantion
Soon i1ll post attachs by this build.prop and the update-script
MJ
Click to expand...
Click to collapse
@GlauberMSP
Look that...
https://github.com/miui-v6/compare?files=1
I searched and found one tool for translate apks but just supports MIUI V5
Its jbart for MIUI roms
Sent from my GT-I8552B using XDA Free mobile app
hi
I downloaded the miui v5 for I8552 but the wifi isn't working, back touch either and some bugs like (not recongnize sim cards and memory card)
And help pls ???
Doom2015 said:
I downloaded the miui v5 for I8552 but the wifi isn't working, back touch either and some bugs like (not recongnize sim cards and memory card)
And help pls ???
Click to expand...
Click to collapse
Hello bro
Unrapply no exists MIUI for I8552 yet. This DEV opened for this and i'm studying way trying port v4 or v5 by other device armv7 and factory
I think this rom that u saying its the transwin ROM was modified by some one with the MIUI express apk. Check this on about settings
Can u confirm? If I m could wrong, please indicate font by us
Tks
Sent from my GT-I8552B using XDA Free mobile app
hi
I sent you a private msg
Link
Here is the download link - http://www.techdroider.com/2015/03/miui-5-for-samsung-galaxy-grand-quattro.html
hi
I was right talking about miui v5 for galaxy i8552 look this site (www.techdroider.com)
Doom2015 said:
I was right talking about miui v5 for galaxy i8552 look this site (www.techdroider.com)
Click to expand...
Click to collapse
Yes bro
I downloaded and tested ,
Really V5 ported but dont works:
wi fi, sdcard instable loosing any times,
Dont recognize the sim 1 just sim 2 on my device. Cant be found Camera and dont have support by languages only CN and US
mjraogr said:
Yes bro
I downloaded and tested ,
Really V5 ported but dont works:
wi fi, sdcard instable loosing any times,
Dont recognize the sim 1 just sim 2 on my device. Cant be found Camera and dont have support by languages only CN and US
Click to expand...
Click to collapse
@robertcarvalho20
Can u please test rom and reports bugs to us. Maybe we can be merge others sammy Jb ported . Im downloaded the git hub portuguese language support for translate with jbart manager apks and Im studying I9300 tree cause its stable.
harsinghal said:
Here is the download link - http://www.techdroider.com/2015/03/miui-5-for-samsung-galaxy-grand-quattro.html
Click to expand...
Click to collapse
Thanks for indicate, Is it your works? can be fix the reports?
Interesting
I think i'll give it a shot
Zhekamas said:
I think i'll give it a shot
Click to expand...
Click to collapse
Cant possible cause the shots didnt save when i tested, but this MIUI its flashable.
Im working now on Baidu 67, cleaning, change stock Baidu recovery and any system apps for pure Google pre-root and performance modules, deodexing, zipalign and translate.
This transformation means to be most closed for global users
MJ
Is audio working???
gody420 said:
Is audio working???
Click to expand...
Click to collapse
Yes, on 67 works everything
lasted night i done many parts of mod and stabilizing the google frame fixes,
The great effort must be work on translation cause didnt find a correct tool for baidu just for MIUI v5 Jbart tools but didnt effect on Baidu apks, so i ll to do decompile and set global language manually
MJ
yes!mjraogr
mjraogr said:
@robertcarvalho20
Can u please test rom and reports bugs to us. Maybe we can be merge others sammy Jb ported . Im downloaded the git hub portuguese language support for translate with jbart manager apks and Im studying I9300 tree cause its stable.
Click to expand...
Click to collapse
Good evening, I 'm rather bro work so stop back and install the rom!
robertcarvalho20 said:
Good evening, I 'm rather bro work so stop back and install the rom!
Click to expand...
Click to collapse
Tks,
Im working on Baidu 67 ,
Everything work just the no have FM Radio application and i trying port the samsung stock cause testing the spirit FM returns didnt find FM chip compatible
Working on mod
Bro's
The results have been very good!!
New face look
New system apps
Google edition inserted with frames apps and stuff... run ok
Now translating application for run test
Important Issues tested:
The Baidu can t be decompile on apktool multi tools so i used the MIUI Jbart Tools for this
No radio FM stook Baidu
The xposed Installer dont works on Baidu cause dont update and fix framework
mjraogr said:
Bro's
The results have been very good!!
New face look
New system apps
Google edition inserted with frames apps and stuff... run ok
Now translating application for run test
View attachment 3199289
Important Issues tested:
The Baidu can t be decompile on apktool multi tools so i used the MIUI Jbart Tools for this
No radio FM stook Baidu
The xposed Installer dont works on Baidu cause dont update and fix framework
Click to expand...
Click to collapse
The new face
Sent from my GT-I8552 using XDA Free mobile app
Log by Apktool
I decompiled Baidu apks with Jbart tools but dont recompile again
Trying with apktoll, or mult tools or apktools advance the error by log is same below
Log For : BaiduInput.apk
Log Type : Decompiling
Log Recorded At : 08 2015-03- 1:43:30,56
Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak
------------------------------------------------------
Exception in thread "main" java.lang.ClassCastException: brut.androlib.res.data.value.ResFileValue cannot be cast to brut.androlib.res.data.value.ResScalarValue
at brut.androlib.res.decoder.ARSCDecoder.readComplexEntry(ARSCDecoder.java:199)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:169)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:157)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:125)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:100)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:606)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:75)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:67)
at brut.androlib.Androlib.getResTable(Androlib.java:61)
at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:206)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:92)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
------------------------------------------------------
Anyone knows what must be done, or I'm loosing to configure?
MJ
mjraogr said:
I decompiled Baidu apks with Jbart tools but dont recompile again
Trying with apktoll, or mult tools or apktools advance the error by log is same below
Log For : BaiduInput.apk
Log Type : Decompiling
Log Recorded At : 08 2015-03- 1:43:30,56
Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak
------------------------------------------------------
Exception in thread "main" java.lang.ClassCastException: brut.androlib.res.data.value.ResFileValue cannot be cast to brut.androlib.res.data.value.ResScalarValue
at brut.androlib.res.decoder.ARSCDecoder.readComplexEntry(ARSCDecoder.java:199)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:169)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:157)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:125)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:100)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:606)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:75)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:67)
at brut.androlib.Androlib.getResTable(Androlib.java:61)
at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:206)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:92)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
------------------------------------------------------
Anyone knows what must be done, or I'm loosing to configure?
MJ
Click to expand...
Click to collapse
Deodex the rom first then decompile apk

help in recompiling

Hey guys plz help me
I used advanced apktool 4.2.0 with apktool 2.0.3 by bdfreak to decompile apks
I decompiled my systemui successfully without and error But when recompiled it i got "syntax of the command is incorrect" (i didnt touched any file)although it said success and there is no log inside 1-BDFreak folder but when i moved my apk to priv-apps it didnt worked
I gave right permissions,deodexed rom,installed framework and java
My android ver is 4.4.2

Can't edit systemui.apk in Alcatel flash6042d

Hi I was trying to decompile and edit xmls in systemui.apk but after decompiling the folder does not have "res" folder contains the xmls so I searched around and found out that the xmls were in systemui-res.apk present in custpack/jrd_custres/apk so I tried to decompile it after trials and errors I decompiled KT and edited the xmls but then while recompiling I get error messages like android manifest not present though they weren't from the start.
So please can anybody help me with this I wanted to remove the transparent codes in status bar_expanded .
Plzzz help

Categories

Resources