[FIX] systemUI, framework-res, SecPhone compile error

shoman94

Recognized Contributor
Mar 27, 2009
8,902
12,311
0
Maine
This is for those having compiling issues with systemUI.apk and framework-res.apk and the error is a layout error. Here is what I did to fix it.

For example the error in framework-res that pops up: "@layout/keyguard_transport_control" which is in keyguard_screen_unlock_portrait.xml

Just change the line to "[email protected]/keyguard_transport_control"

I did this for all my systemUI and framework-res recompile errors and all is well. Much easier fix and less time consuming then other ways I've seen mentioned.

Errors recompiling SecPhone.apk
Example is this error:
Code:
C:\Users\shoman94\Desktop\ROMS\SHOstock-SGS4\SHOstock\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SecPhone\res\values-es\strings.xml:197: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
C:\Users\shoman94\Desktop\ROMS\SHOstock-SGS4\SHOstock\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SecPhone\res\values-es\strings.xml:198: error: Unexpected end tag string
To fix this error go to (SecPhone\res\values-es\strings.xml)

Go to line 197
This is the line with the error: Just remove what is highlighted red.
Code:
    <string name="throttle_time_frame_subtext">"%1$d[COLOR="Red"]%[/COLOR] del ciclo transcurrido.
Próx período en %2$d días (%3$s)"</string>
I had 3 string.xml's that had this error



Hopes this helps anyone.
 
Last edited:

ktoonsez

Inactive Recognized Developer
Nov 3, 2011
16,263
43,219
0
Tempe
This is for those having compiling issues with systemUI.apk and framework-res.apk and the error is a layout error. Here is what I did to fix it.

For example the error in framework-res that pops up: "@layout/keyguard_transport_control" which is in keyguard_screen_unlock_portrait.xml

Just change the line to "[email protected]/keyguard_transport_control"

I did this for all my systemUI and framework-res recompile errors and all is well. Much easier fix and less time consuming then other ways I've seen mentioned.

Hopes this helps anyone.
Holy crap its show-nuff!!!!!!!!!!!!!!!!!!!!!
 

DocRambone

Retired Recognized Developer
Jan 7, 2010
6,834
3,446
0
Stockholm
I'll check it out tonight.... I'll be posting what to fix on recompiling SecPhone.apk also.

Edit: I could only baksmali/smali SecTelephonyProvider.apk.

Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
Yes, i getting same results:
Output from apk tools:

Code:
|2013-05-19 --  5:06:13,38| 
-------------------------------------------------------------------------- 
java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
Could Not Find C:\Users\Admin\Desktop\S4_Tools\Apk Manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedSecTelephonyProvider.apk
Could Not Find C:\Users\Admin\Desktop\S4_Tools\Apk Manager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSecTelephonyProvider.apk
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" java.lang.NullPointerException
	at brut.androlib.res.decoder.ARSCDecoder.addMissingResSpecs(ARSCDecoder.java:326)
	at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:138)
	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)
	at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:491)
	at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:74)
	at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:66)
	at brut.androlib.Androlib.getResTable(Androlib.java:50)
	at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:189)
	at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
	at brut.apktool.Main.cmdDecode(Main.java:146)
	at brut.apktool.Main.main(Main.java:77)
 

Samer Diab

Senior Member
Sep 4, 2012
1,633
3,141
0
26
Beyrouth
This is for those having compiling issues with systemUI.apk and framework-res.apk and the error is a layout error. Here is what I did to fix it.

For example the error in framework-res that pops up: "@layout/keyguard_transport_control" which is in keyguard_screen_unlock_portrait.xml

Just change the line to "[email protected]/keyguard_transport_control"

I did this for all my systemUI and framework-res recompile errors and all is well. Much easier fix and less time consuming then other ways I've seen mentioned.

Errors recompiling SecPhone.apk
Example is this error:
Code:
C:\Users\shoman94\Desktop\ROMS\SHOstock-SGS4\SHOstock\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SecPhone\res\values-es\strings.xml:197: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
C:\Users\shoman94\Desktop\ROMS\SHOstock-SGS4\SHOstock\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SecPhone\res\values-es\strings.xml:198: error: Unexpected end tag string
To fix this error go to (SecPhone\res\values-es\strings.xml)

Go to line 197
This is the line with the error: Just remove what is highlighted red.
Code:
    <string name="throttle_time_frame_subtext">"%1$d[COLOR="Red"]%[/COLOR] del ciclo transcurrido.
Próx período en %2$d días (%3$s)"</string>
I had 3 string.xml's that had this error



Hopes this helps anyone.
Nice but how do you edit "[email protected]/keyguard_transport_control" i use apktool that uses commands like d for decompiling and b for compiling but i cant edit the line :/
 

Samer Diab

Senior Member
Sep 4, 2012
1,633
3,141
0
26
Beyrouth
Text editor like notepad++. You should research some before asking these questions in a dev section.

Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
sorry mate but what should i edit ?
i mean where should i edit the file ?
i know that its with note pad ++ but where ?
just tell me what to open :)
sorry about the nobby stuff
thanks
 

Samer Diab

Senior Member
Sep 4, 2012
1,633
3,141
0
26
Beyrouth
okay i downloaded apk manager and decompiled then compiled i opend apk multy tool log with note pad ++ added the +signs to @layout .................
now when i save it says log opened in another programm i close apk manager .... and save it then open up the manager and still cant recompile just
Can you please tell me a detailed how to ?
Thanks