[Q] adding languages in JB keyboard - Android Q&A, Help & Troubleshooting

Hi! At first, I apologise if some thread about this already exists, I hadn't found any.
I have android 4.3 AOSP keyboard, which works nice, but I want to add my language dictionary to it.
Main problem is that I have some brut.Androlib errors when compiling this one (when decompiling, no issues appear), and when I check if the APKTool added my wanted files to the apk I can only see that it almost recompiled the original file ('almost' because when I push it to the system/app dir, my system doesn't see this keyboard).
Another, less important question, can I use dictionary from another keyboard app (I guess I can, but just want to be sure)?
Any help will be appreciated.
Screen os from ics decompiler, and this is what came in cmd using apktool, when I try to install framework-res:
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: drawable-nodpi-v8-ERR0
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: drawable-v8-ERR1
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x010800d3 drawable/btn_cab_done_default_holo_dark, config=-hdpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:39)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:384)
at brut.androlib.Androlib.installFramework(Androlib.java:365)
at brut.apktool.Main.cmdInstallFramework(Main.java:193)
at brut.apktool.Main.main(Main.java:69)
Click to expand...
Click to collapse

I have no idea what you are doing but I would like to suggest a keyboard which is just like jb keyboard with many languages: try Google Keyboard
Sent from my GT-I9082 using XDA Premium 4 mobile app

Screenshot:
Sent from my GT-I9082 using XDA Premium 4 mobile app

adi160699 said:
Screenshot:
Sent from my GT-I9082 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Seems nice, but I want an independent android keyboard developed just by Google which i think is just best for me. So if someone can help me with recompiling this little thing, I'd be really happy

mololol303 said:
Seems nice, but I want an independent android keyboard developed just by Google which i think is just best for me. So if someone can help me with recompiling this little thing, I'd be really happy
Click to expand...
Click to collapse
It is developed just by Google
Please Don't Forget To Press The Thanks Button!! :thumbup:

adi160699 said:
It is developed just by Google
Please Don't Forget To Press The Thanks Button!! :thumbup:
Click to expand...
Click to collapse
Unavalible in my country...
I really need to recompile my file, and I can't

Related

[Mods plz delete this thread]

I just bought a new pc. Now i tried apktool 1.4.3 to decompile and compile apks. But whenever i decompile or try to build them again, it gives an error message. I am using aapt.exe that came with apktool. Will using aapt.exe from sdk solve the problem?I never had that prob in my earlier computer.(windows xp 32 bit)
2)what tool do u guys use?
Sent from my GT-S5830 using XDA
Have you tried 'running (aapt) as administrator'?
U need sp3 to work....
Sent from my GT-S5830 using xda premium
What is APKTOOL???
Sent from my GT-S5830 using xda premium
thespb said:
What is APKTOOL???
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
It is a tool that allows you to decompile an app into its basic code format for you to edit or change, then recompile.
http://code.google.com/p/android-apktool/
Bakuron said:
Have you tried 'running (aapt) as administrator'?
Click to expand...
Click to collapse
Yes i have
Sent from my GT-S5830 using XDA
AashayS said:
Yes i have
Sent from my GT-S5830 using XDA
Click to expand...
Click to collapse
Are you using any external jar files? http://forum.xda-developers.com/archive/index.php/t-1021207.html
I replaced the aapt.exe with the sdk one.
now wen i decompile my fsystemui.apk, i get this code,
Code:
I: Baksmaling...
I: Loading resource table...
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=
sharedUserId, value=0x0000001c
Exception in thread "main" java.lang.NullPointerException
at java.io.Writer.write(Unknown Source)
at brut.androlib.res.util.ExtMXSerializer.writeAttributeValue(ExtMXSeria
lizer.java:38)
at org.xmlpull.mxp1_serializer.MXSerializer.attribute(MXSerializer.java:
673)
at org.xmlpull.v1.wrapper.classic.XmlSerializerDelegate.attribute(XmlSer
ializerDelegate.java:106)
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.decode(XmlPullStreamDe
coder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamD
ecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:1
00)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
ty in advance
Ok it sounds like it could be a) incomplete decompile due to incorrect placement of apktool files and/or b) issue with whatever you recoded. http://forum.xda-developers.com/showthread.php?t=1511730&page=5
Are you using Eclipse?
Bakuron said:
Ok it sounds like it could be a) incomplete decompile due to incorrect placement of apktool files and/or b) issue with whatever you recoded. http://forum.xda-developers.com/showthread.php?t=1511730&page=5
Are you using Eclipse?
Click to expand...
Click to collapse
I am not using eclipse. And i hav placed the files correctly i.e:- C:/windows
Sent from my GT-S5830 using XDA
Hey guys. I got it working . I had made a stupid mistake . Sorry for trouble. MODS , plz delete this thread
Sent from my GT-S5830 using Tapatalk 2 Beta-5
asd

[Q]How to change clock color from status bar JB 4.1.2

Hi guys i want to know is anyone who can help me to change color of clock,i really don't like,i changed the color for signal,wireless and battery but with clock i have no ideea were to go to change,thanks in advance,i put the systemUI.apk if anyone like this.
mariox26 said:
Hi guys i want to know is anyone who can help me to change color of clock,i really don't like,i changed the color for signal,wireless and battery but with clock i have no ideea were to go to change,thanks in advance,i put the systemUI.apk if anyone like this.
Click to expand...
Click to collapse
Inside "ROM Control" or "AOKP Settings", go to clock and change the color as you want.
mariox26 said:
Hi guys i want to know is anyone who can help me to change color of clock,i really don't like,i changed the color for signal,wireless and battery but with clock i have no ideea were to go to change,thanks in advance,i put the systemUI.apk if anyone like this.
Click to expand...
Click to collapse
just PM this guy's @ vegeta1 or @kroz46 they will do the needfull for u
delawalla said:
Inside "ROM Control" or "AOKP Settings", go to clock and change the color as you want.
Click to expand...
Click to collapse
he is on stock firmware where that option is not available if i am right
I have 4.1.2 stock XXLSJ and no option for what you said
i have no s2 if you can decompile the systemUI and send me then i can surely help mate
vegeta1 said:
i have no s2 if you can decompile the systemUI and send me then i can surely help mate
Click to expand...
Click to collapse
here:https://www.box.com/shared/37ofclatfjpyc2xgpzlb thanks a lot
mariox26 said:
here:https://www.box.com/shared/37ofclatfjpyc2xgpzlb thanks a lot
Click to expand...
Click to collapse
mate recompile this and lemme know if this works
SystemUI_decompiled_changed
vegeta1 said:
mate recompile this and lemme know if this works
SystemUI_decompiled_changed
Click to expand...
Click to collapse
what i do wrong,i recompiled the .apk i signed the apk,copy to phone restart and after i get fc UI,when i recompiled i get error for translation ....can be this the problem?
here is how it's done
1) decompile the systemUI.apk
2) open "\res\layout\status_bar.xml"
3) search for "com.android.systemui.statusbar.policy.Clock"
4) at the end of the line you add " android:textColor="#ff33b5e5" "
5) compile it, but don't sign it
6) put it in /preload/symlink/system/app
7) restart phone
8) done
karotti said:
here is how it's done
1) decompile the systemUI.apk
2) open "\res\layout\status_bar.xml"
3) search for "com.android.systemui.statusbar.policy.Clock"
4) at the end of the line you add " android:textColor="#ff33b5e5" "
5) compile it, but don't sign it
6) put it in /preload/symlink/system/app
7) restart phone
8) done
Click to expand...
Click to collapse
nice guide,thanks but i have a problem when i try to compile,is give me allways this error:
Recompiling SystemUI.apk folder...
W: Could not find sources
I: Building resources...
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/drawable-sw360dp-hdpi
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/drawable-sw600dp
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/drawable-sw600dp-hdpi
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/drawable-sw720dp-hdpi
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/layout-sw600dp
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/layout-sw720dp
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/layout-sw800dp
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/values-sw320dp
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/values-sw360dp
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/values-sw600dp
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/values-sw600dp-land
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/values-sw600dp-port
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/values-sw720dp
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/values-sw720dp-port
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/values-sw800dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\mariox26\AppData\Local\Temp\APKTOOL1873502715595648032.tmp, -I, C:\Users\mariox26\apktool\framework\1.apk, -S, C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res, -M, C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
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, C:\Users\mariox26\AppData\Local\Temp\APKTOOL1873502715595648032.tmp, -I, C:\Users\mariox26\apktool\framework\1.apk, -S, C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res, -M, C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Done!
really i search a lot for this problem with no result.
try decompiling with dependencies firt so framework-res is installed.
then compile again. this should work
the needed images have to be in drawable-hdpi before compiling.
here is the systemui.apk with the mod.
karotti said:
try decompiling with dependencies firt so framework-res is installed.
then compile again. this should work
the needed images have to be in drawable-hdpi before compiling.
here is the systemui.apk with the mod.
Click to expand...
Click to collapse
I used this systemui only cange i see it is for battery
another percentage
vegeta1 said:
mate recompile this and lemme know if this works
SystemUI_decompiled_changed
Click to expand...
Click to collapse
I compiled but no result, clock color is same grey.i tried to change color in layout/color.xml and no effect, i change color in status.bar.xml no effect, i tried to change in value folder and is always same color is don't want to change
Sent from my GT-I9100 using xda app-developers app
I can say the same here. Tried all the same locations were I see that the Clock color might be set, then change the value and recompile, transfer contents from recompiled into the SystemUI.apk using archive manager and load it up through recovery. I just cannot find how it is done. I have ask this questions to devs that have different then stock AOSP color and no reply yet. Hope one of them will guide and I will be glad to pass that info along. I am trying this on my Tablet, but the source is just about the same when it comes down to it.
mariox26 said:
I used this systemui only cange i see it is for battery
another percentage
I compiled but no result, clock color is same grey.i tried to change color in layout/color.xml and no effect, i change color in status.bar.xml no effect, i tried to change in value folder and is always same color is don't want to change
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
Alright bro I stay true to my word and figured out my issue with my ROM which is a AOSP 4.1.2 build as with yours. I was able to change the color of the clock on the Status Bar as well and some others that use the same color hex as the clock. They are within the framework-res.apk and not the SystemUI.apk like other ROMS are. 4.1.2 is a bit different when it comes to these changes. After setting up apktool with framework-res.apk go ahead and Decompile it and guide your way to this path, framework-res/res/value/color. You will see a nice list there with hex colors settings. The ones you need to change are (<color name="holo_blue_light">#ff33b5e5</color>) and (<color name="holo_blue_dark">#ff0099cc</color>). The hex color settings on these examples are for the stock blue that everyone is custom too, but can be changed to any color you wish. After change is complete using texted editor save changes and make sure that you can see hidden files. Some text editor tools will create a backup on the Hidden files and you need to delete that backup before compiling the apk back. To recompile I went ahead and used this command to just compile it back (apktool b framework-res AlmostDone.apk). When complete all you need to do is Open up current framework.res.apk in archive as well as AlmostDone.apk, don't extract either one. Drag and drop the resources.arsc file from AlmostDone.apk over to framework.res.apk. Then load up your framework.res.apk back to your phone using recovery or what ever means you like to use and your all done.
nobe1976 said:
Alright bro I stay true to my word and figured out my issue with my ROM which is a AOSP 4.1.2 build as with yours. I was able to change the color of the clock on the Status Bar as well and some others that use the same color hex as the clock. They are within the framework-res.apk and not the SystemUI.apk like other ROMS are. 4.1.2 is a bit different when it comes to these changes. After setting up apktool with framework-res.apk go ahead and Decompile it and guide your way to this path, framework-res/res/value/color. You will see a nice list there with hex colors settings. The ones you need to change are (<color name="holo_blue_light">#ff33b5e5</color>) and (<color name="holo_blue_dark">#ff0099cc</color>). The hex color settings on these examples are for the stock blue that everyone is custom too, but can be changed to any color you wish. After change is complete using texted editor save changes and make sure that you can see hidden files. Some text editor tools will create a backup on the Hidden files and you need to delete that backup before compiling the apk back. To recompile I went ahead and used this command to just compile it back (apktool b framework-res AlmostDone.apk). When complete all you need to do is Open up current framework.res.apk in archive as well as AlmostDone.apk, don't extract either one. Drag and drop the resources.arsc file from AlmostDone.apk over to framework.res.apk. Then load up your framework.res.apk back to your phone using recovery or what ever means you like to use and your all done.
Click to expand...
Click to collapse
Sorry bro but i don't understead.If this is the stock blue color: (<color name="holo_blue_light">#ff33b5e5</color>) and (<color name="holo_blue_dark">#ff0099cc</color>),why my clock on status bar is still grey?and i look to the file you did and has this setting color,this is the color i am looking.I tried another thing to change in framework this line <color name="darker_gray">#ffaaaaaa</color> to <color name="darker_gray">#ff33b5e5</color> and same color to clock
the file framework.apk need to be signed after i make change?
No after you make your adjustments just recompile as instructed and open both apk files in archive. Then drag and drop the resources.arsc file over only unless you changed any of the files in the res folder then you can drag and drop that into the archived framework-res.apk. The original signature will be fine.
Sent from the Darkside Via ME.
Already make this and not working.The same grey color.The color.xml has the default color blue how you said,so i make no change to this xml.because this is color i like,and why is not changing?
http://forum.xda-developers.com/showthread.php?p=37448994#post37448994
Here

(Q) Apktool for Android decompile error

I'm using Apktool for Android v'4.1.1 on a Verizon SGS3 4.4.2...I'm trying to decompile Systemui.apk in hopes that I can port the card stack view in the recents panel, like in lollipop or the Note 4.
I keep getting an error while decoding the resource files. It's says that it can't decode attr value: using undecoded value instead for numerous things.
I have SELinux set to permissive, apktool if framework, etc...I can decompile AOSPA Systemui.apk no problem. It even creates .yml file as well. But I can't recompile directly after decompile without editing anything either. This is driving me nuts!
HELP!!!!

How do I edit the SDK number of an APK file?

A game I really liked only worked on old phones, not on "new" ones (from 2014). I made a thread asking how to make them work and they said to edit the apk's SDK number.
Hyoretsu said:
A game I really liked only worked on old phones, not on "new" ones (from 2014). I made a thread asking how to make them work and they said to edit the apk's SDK number.
Click to expand...
Click to collapse
Hi...
In order to do this, u need to decompile the app with apktool, then edit the line "min sdk version" in Android Manifest file with notepad++ and just recompile the apk.
Note: If the line is not found in Android Manifest file, it would be in apktool.yml file of same directory.
Check this tool to easily decompile and recompile APK file.
Sent from my ONE A2005 using Tapatalk
Brandon Indar said:
Hi...
In order to do this, u need to decompile the app with apktool, then edit the line "min sdk version" in Android Manifest file with notepad++ and just recompile the apk.
Note: If the line is not found in Android Manifest file, it would be in apktool.yml file of same directory.
Check this tool to easily decompile and recompile APK file.
Sent from my ONE A2005 using Tapatalk
Click to expand...
Click to collapse
Somehow it's missing a classes.dex, so apktool gives
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
when trying to decompile it and http://www.javadecompilers.com gives
"Job Outputcode: -1
Job Output:
File not found: com.vpet_source_from_JADX/classes.dexcom.vpet_source_from_JADX/classes.dex"
Hyoretsu said:
Somehow it's missing a classes.dex, so apktool gives
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
when trying to decompile it and http://www.javadecompilers.com gives
"Job Outputcode: -1
Job Output:
File not found: com.vpet_source_from_JADX/classes.dexcom.vpet_source_from_JADX/classes.dex"
Click to expand...
Click to collapse
Can u send me the APK file.
I will check it out.
There must be a classes.dex file in the APK.
Sent from my ONE A2005 using Tapatalk
Brandon Indar said:
Can u send me the APK file.
I will check it out.
There must be a classes.dex file in the APK.
Sent from my ONE A2005 using Tapatalk
Click to expand...
Click to collapse
This is the one I'm using: https://www.apk20.com/apk/4553/
Hey, did you solve your problem?

compiling error

Hey guy's im going nuts trying to figure out why i can't recompile anymore?
it was working before..
so i tried unistall jdk --re install fresh
but the root in my windows file
apktool in command line
Log Type : Decompiling
Log Recorded At : 2018-04-26 -- 20:16:29.60
Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak
------------------------------------------------------
W: Config flags size > 38. Exceeding bytes: 0x746E00000000000000000000000000000000.
W: Invalid config flags detected. Dropping resources: string-sr-ERR0
Exception in thread "main" java.lang.ClassCastException: brut.androlib.res.data.value.ResStringValue cannot be cast to brut.androlib.res.data.value.ResAttr
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:36)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:369)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:83)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:141)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:33)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:114)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:99)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:323)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:131)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:101)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
apktool application 1.50 same issue. but just tries to compile...never stops.
update the apktool to latets
still no luck?any clue why??
techker said:
Hey guy's im going nuts trying to figure out why i can't recompile anymore?...
Click to expand...
Click to collapse
Since this question is regarding the Advanced Apktool, your best bet is to post this question within the following Advanced Apktool thread.
https://forum.xda-developers.com/showthread.php?t=3608211
I noticed that this question was also posted within the APK Easy Tool thread when your log indicates that it was taken from the Advanced Apktool software.
Also, your log indicates that your using the Advanced Apktool v4.1.0 when the most recent version is v4.2.0...
Good Luck!
~~~~~~~~~~~~~~~
I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
sorry for posting in the wrong place.
ya i posted it there also cause i tried to use it.
but good point for the update.i will try that one to see..

Categories

Resources