Decompiled att ion framework-res.APK? - Sony Xperia S, Acro S, Ion

So I noticed we didn't, or I didn't see, a decomplied framework-res and I was looking up some stuff about it and tried a few things and here is the folders I got when I "decomplied" the res,
Assets
Images
Sounds
Webkit
res
508 folders, no reason to list them here
AndroidManifest.XML
From that I feel like something is missing from the decomplie and I wanted to ask before I pursue this more because I want to move in the right direction, I'm not a dev but I like to dawdle and who says an extra person playing with stuff will hurt?

According to Ganesh it's the recompile that hasn't worked out yet. Maybe that's because of what your saying, something is missing from the decompile.
Sent from my LT28i using xda app-developers app

Yes I did have a problem there if I recall but I had more progress when I put the apktool on the root of my hdd and then run cmd as admin
Sent from my LT28at using xda premium

I have another question, different topic but I didn't feel like making another topic and spamming the page, in sys/ Module/ restart/ parameters there is a file called Download_mode and its value is set to 1, does this file, if set to 0, stop the phone from rebooting out of download mode after a set period of time? If so then we should theoretically be able to find one for fast boot?

thanitos said:
So I noticed we didn't, or I didn't see, a decomplied framework-res and I was looking up some stuff about it and tried a few things and here is the folders I got when I "decomplied" the res,
Assets
Images
Sounds
Webkit
res
508 folders, no reason to list them here
AndroidManifest.XML
From that I feel like something is missing from the decomplie and I wanted to ask before I pursue this more because I want to move in the right direction, I'm not a dev but I like to dawdle and who says an extra person playing with stuff will hurt?
Click to expand...
Click to collapse
decompiling framework-res.apk
./apktool if SemcGenericUxpRes.apk ion
./apktool d -f -t ion framework-res.apk out
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Loading resource table from file: /home/ganesh/apktool/framework/2-ion.apk
I: Loaded.
I: Done.
I: Copying assets and libs...
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Compiling framework-res.apk (Without making any changes)
./apktool b out new.framework-res.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'BaMmi' has no default translation in /home/ganesh/test/out/res; found: ar bg ca cs da de el en_GB es es_US et fa fi fr hi hr hu in it iw ko lt lv ms nb nl pl pt pt_PT ro ru sk sl sr sv th tl tr uk vi zh_CN zh_TW
I: Building apk file...
Click to expand...
Click to collapse
Click to expand...
Click to collapse
The Original size = 21 mb
The Decompiled-Recompiled Size = 15 mb.
Now if you try and push it to /system/framework you get boot loop.
And if you change resources, like adding pngs, it will not even compile.
We are missing something else here? Don't know what!

ganeshbiyer said:
decompiling framework-res.apk
Compiling framework-res.apk (Without making any changes)
The Original size = 21 mb
The Decompiled-Recompiled Size = 15 mb.
Now if you try and push it to /system/framework you get boot loop.
And if you change resources, like adding pngs, it will not even compile.
We are missing something else here? Don't know what!
Click to expand...
Click to collapse
C:\apk>apktool b framework-res unchanged/framework-res.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\apk\framework-res\res/drawable-sw600dp-hdpi
invalid resource directory name: C:\apk\framework-res\res/drawable-sw600dp-mdpi
invalid resource directory name: C:\apk\framework-res\res/drawable-sw600dp-xhdpi
invalid resource directory name: C:\apk\framework-res\res/layout-sw600dp
invalid resource directory name: C:\apk\framework-res\res/layout-w600dp
invalid resource directory name: C:\apk\framework-res\res/values-h720dp
invalid resource directory name: C:\apk\framework-res\res/values-sw600dp
invalid resource directory name: C:\apk\framework-res\res/values-sw600dp-land
invalid resource directory name: C:\apk\framework-res\res/values-sw600dp-w1024dp
invalid resource directory name: C:\apk\framework-res\res/values-sw600dp-w1280dp
invalid resource directory name: C:\apk\framework-res\res/values-w360dp
invalid resource directory name: C:\apk\framework-res\res/values-w480dp
invalid resource directory name: C:\apk\framework-res\res/values-w500dp
invalid resource directory name: C:\apk\framework-res\res/values-w600dp
invalid resource directory name: C:\apk\framework-res\res/values-w720dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Jesse\AppData\Local\Temp\A
PKTOOL8244304813261978902.tmp, -x, -I, C:\Users\Jesse\apktool\framework\2-nozomi
.apk, -S, C:\apk\framework-res\res, -M, C:\apk\framework-res\AndroidManifest.xml
]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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:\U
sers\Jesse\AppData\Local\Temp\APKTOOL8244304813261978902.tmp, -x, -I, C:\Users\J
esse\apktool\framework\2-nozomi.apk, -S, C:\apk\framework-res\res, -M, C:\apk\fr
amework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
Click to expand...
Click to collapse
for me when I decompile Im missing folders after it

thanitos said:
for me when I decompile Im missing folders after it
Click to expand...
Click to collapse
Are you doing this first:
apktool if SemcGenericUxpRes.apk

Yup
Sent from my LT28at using xda premium

what version of APKTOOL you use?
Currently I am using version 1.5, I have no problem to compile or decompile (no error), but when I install framework-res.apk, my phone goes into bootloop.
I tried several utility to sign my file, but so far no result.

The newest version also talking about the att version just to be clear
Sent from my LT28at using xda premium

Hello !
Have anything find a solution to compile correctly framework-res.apk. ???

just found one from Xperia S/Sola forums and it works for our ION :good:
http://forum.xda-developers.com/showthread.php?t=1943855
Followed the steps and changed the showNavigationBar value to true re-compiled the framework-res.apk and copied the resources.arsc from the compiled apk to original apk and pushed it to the Ion, and it worked. Can see the Navigation bar buttons now. The only catch is you cannot change the application backgrounds using the themes.

kapil4wm said:
just found one from Xperia S/Sola forums and it works for our ION :good:
http://forum.xda-developers.com/showthread.php?t=1943855
Followed the steps and changed the showNavigationBar value to true re-compiled the framework-res.apk and copied the resources.arsc from the compiled apk to original apk and pushed it to the Ion, and it worked. Can see the Navigation bar buttons now. The only catch is you cannot change the application backgrounds using the themes.
Click to expand...
Click to collapse
Thanks for the find and letting us know about it, much appreciated now I wana play with it!
Edited- after reading the linked topic I noticed that step 4 makes me feel stupid for not thinking of that lol but I dont fully understand step 5 and what those two lines of code are for, maybe if I was at my pc I could open it and see but I'm not so in the context what do they do?
Sent from my LT28at using xda premium

I want to bring this thread back to life ... Since I can't find a solution to my problem after modding the Framework-res.apk.
In addition to known problem that you can't changed theme. My dialer is now became transparent. This is very annoyed and make it hard to read the number pad. Can anyone please help ?
Here is the screenshot:
{
"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"
}

That's a deep necro, just flash the original ftf. Easy quick fix
Sent from my LT28at using xda app-developers app

thanitos said:
That's a deep necro, just flash the original ftf. Easy quick fix
Sent from my LT28at using xda app-developers app
Click to expand...
Click to collapse
I could simply restore my backup of framework-res.apk. I post the question here if any one successfully recomplile framework-res without the problems I mentioned above.
Sent from my Ion* using Tapatalk 2

Related

[Q] How to decompile/compile Arc Apks

Hi!
I want to know how can I decompile and compile any Arc apk (calculator, home, conversation, settings, phone, contacts....)
​
First, I have Windows 7 64bits, Adb, java, apktool, Apk_manager 4.9 and 5.0.2, Apk_multitool.
Second I was following a lot of tutos and guides
For example:
[mod / theme] [cm6 / 2.2] [20-05-2011] WORKING Transparent contacts/phone/mms apks
[GUIDE]Enable more homescreens on default launcher
[Windows XP/VISTA/7][UTILITY][TOOL] APK Multi-Tool
[UPDATED 24.03.2011] X10 Theme Reference
.9.pngs figured out. New thread!
[Android 4.0][GUIDE]Port ICS transition animations on EVERY ROM & EVERY PHONE
[HOW TO] Extended Power Menu with no header (reboot / download / recovery)
[MOD] [Guide How To] SystemUI.apk for Transparent notifications background
[GUIDE][MOD] Transparent Background of Arc System App
Click to expand...
Click to collapse
Thirth, I have properly installed Arc framework on pc
And the tools worked correctly with the X10 apks when install an original X10 framework
But when I try to decompile an arc´s apk with the original Arc framework (C:\Users\Julio_Ton\apktool\framework\1.apk) I get this log from "Apk_multitool" or/and "apk_manager":
Code:
java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode)
No se pudo encontrar C:\android-sdk-windows\Apk_Multi-Tool\place-apk-here-for-modding\../place-apk-here-for-modding/signedCalculator.apk
No se pudo encontrar C:\android-sdk-windows\Apk_Multi-Tool\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedCalculator.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Julio_Ton\apktool\framework\1.apk I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
Presione una tecla para continuar . . .
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
El sistema no puede encontrar el archivo especificado.
Presione una tecla para continuar . . .
Please Help ME!!!!!
excuse me for my english I'm from Costa Rica and I speak spanish
is there no more to the log ???
but you need to install the semcgeneriduxpres.apk
aswell
java -jar apktool.jar SemcGenericUxpRes.apk
will install it as "2.apk"
i have made a tool for swapping frameworks. but if you install the other framework you should be fine.
Pvy.
pvyParts said:
is there no more to the log ???
but you need to install the semcgeneriduxpres.apk
aswell
java -jar apktool.jar SemcGenericUxpRes.apk
will install it as "2.apk"
i have made a tool for swapping frameworks. but if you install the other framework you should be fine.
Pvy.
Click to expand...
Click to collapse
PvyParts, you're awesome!!! thanks a lot!!
I never had saw this tip in a thread thanks
Now I think that the decompile proccess is finished successfull.
This is my new log now
Code:
java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode)
No se pudo encontrar C:\android-sdk-windows\Apk_Multi-Tool\place-apk-here-for-mo
dding\../place-apk-here-for-modding/signedCalculator.apk
No se pudo encontrar C:\android-sdk-windows\Apk_Multi-Tool\place-apk-here-for-mo
dding\../place-apk-here-for-modding/unsignedCalculator.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Julio_Ton\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Loading resource table from file: C:\Users\Julio_Ton\apktool\framework\2.apk
I: Loaded.
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
El sistema no puede encontrar el archivo especificado.
Presione una tecla para continuar . . .
And one more question, is normal that when I decompile an apk and I make a little change in a xml, then compile the apk, the size of the apk is reduced??
for example;
Calculator.apk Original 102,10K
unsignedCalculator.apk Modified by me 65,72K
signedCalculator.apk Modified by me 71,79K
julio_ton said:
PvyParts, you're awesome!!! thanks a lot!!
I never had saw this tip in a thread thanks
Now I think that the decompile proccess is finished successfull.
This is my new log now
Code:
java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode)
No se pudo encontrar C:\android-sdk-windows\Apk_Multi-Tool\place-apk-here-for-mo
dding\../place-apk-here-for-modding/signedCalculator.apk
No se pudo encontrar C:\android-sdk-windows\Apk_Multi-Tool\place-apk-here-for-mo
dding\../place-apk-here-for-modding/unsignedCalculator.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Julio_Ton\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Loading resource table from file: C:\Users\Julio_Ton\apktool\framework\2.apk
I: Loaded.
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
El sistema no puede encontrar el archivo especificado.
Presione una tecla para continuar . . .
And one more question, is normal that when I decompile an apk and I make a little change in a xml, then compile the apk, the size of the apk is reduced??
for example;
Calculator.apk Original 102,10K
unsignedCalculator.apk Modified by me 65,72K
signedCalculator.apk Modified by me 71,79K
Click to expand...
Click to collapse
what you'l find is APKmanager compresses the images and xmls more than the sdk does you can turn compresion off in apkmanager.
if you do the framework it almost halfs it's size lol
i dont compress apps that were not compressed to start with thats my rule of thumb but all in all i dont think it matters too much. but i dont really know
Pvy.
Ops other problem
When I try to Compile SemcGenericUxpRes.apk get an error
Log:
Code:
I: Copying assets and libs...
C:\android-sdk-windows\Apktool>java -jar apktool.jar b SemcGenericUxpRes SemcGen
ericUxpResmod.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\JULIO_~1\AppData\Local\Tem
p\APKTOOL3188190371594837753.tmp, -x, -I, C:\Users\Julio_Ton\apktool\framework\1
.apk, -S, C:\android-sdk-windows\Apktool\SemcGenericUxpRes\res, -M, C:\android-s
dk-windows\Apktool\SemcGenericUxpRes\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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:\U
sers\JULIO_~1\AppData\Local\Temp\APKTOOL3188190371594837753.tmp, -x, -I, C:\User
s\Julio_Ton\apktool\framework\1.apk, -S, C:\android-sdk-windows\Apktool\SemcGene
ricUxpRes\res, -M, C:\android-sdk-windows\Apktool\SemcGenericUxpRes\AndroidManif
est.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
C:\android-sdk-windows\Apktool>
julio_ton said:
Ops other problem
When I try to Compile SemcGenericUxpRes.apk get an error
Click to expand...
Click to collapse
Join the club...
I can't even decompile this apk, even though pvyParts can!
iridaki said:
Join the club...
I can't even decompile this apk, even though pvyParts can!
Click to expand...
Click to collapse
May i ?
julio_ton said:
Ops other problem
When I try to Compile SemcGenericUxpRes.apk get an error
Log:
Code:
I: Copying assets and libs...
C:\android-sdk-windows\Apktool>java -jar apktool.jar b SemcGenericUxpRes SemcGen
ericUxpResmod.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\JULIO_~1\AppData\Local\Tem
p\APKTOOL3188190371594837753.tmp, -x, -I, C:\Users\Julio_Ton\apktool\framework\1
.apk, -S, C:\android-sdk-windows\Apktool\SemcGenericUxpRes\res, -M, C:\android-s
dk-windows\Apktool\SemcGenericUxpRes\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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:\U
sers\JULIO_~1\AppData\Local\Temp\APKTOOL3188190371594837753.tmp, -x, -I, C:\User
s\Julio_Ton\apktool\framework\1.apk, -S, C:\android-sdk-windows\Apktool\SemcGene
ricUxpRes\res, -M, C:\android-sdk-windows\Apktool\SemcGenericUxpRes\AndroidManif
est.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
C:\android-sdk-windows\Apktool>
Click to expand...
Click to collapse
*Note that that error is stupid and says nothing. This is annoying me atm. ;-) but alas thats a job for next week
iridaki said:
Join the club...
I can't even decompile this apk, even though pvyParts can!
Click to expand...
Click to collapse
That's cause I rock. ;-) and apktool fears me.
mundy725 said:
May i ?
Click to expand...
Click to collapse
Ofcourse. :-D
Back on topic,
I have found that Sony have some strange entries in the styles.xml (of the semcuxpres) if you look you'll see the ones I mean
I cant recompile the semcuxpres either. But tbh Ive not put much time into it yet as the error was useless... I'm more worried about getting some cool features atm. ( and partying ) I will figure out what's it is and get back to you. ;-)
You can drag drop compiled images and XMLs into the apk with 7zip or winrar etc. If you need more youll have to edit each app separately to bypass the styles.
Pvy.
Have a great new years everyone see you on the flip side.
*** edit *** maybe try installing the x10 framework-res.apk to recompile The semcuxpres. Don't ask why but it had fixed some of my issues b4.
Sent from my TEAM Powered Arc S
YOU ROCKS PVY I'm going to try it
I was using 3.0...142 uxpres and works but with few errors
I note in .142 uxpres much more archives than in .42 or newer... And I was think that's the problem....
I modify some xml of apks to make 40% transparent
Btw I even have problems compiling phonebook.apk :'(
Sent from my JT LT18a using xda premium
AND OF COURSE HAVE A GREAT NEW YEAR EVERYONE!!!!! :-D
Sent from my JT LT18a using xda premium
julio_ton said:
YOU ROCKS PVY I'm going to try it
I was using 3.0...142 uxpres and works but with few errors
I note in .142 uxpres much more archives than in .42 or newer... And I was think that's the problem....
I modify some xml of apks to make 40% transparent
Btw I even have problems compiling phonebook.apk :'(
Sent from my JT LT18a using xda premium
Click to expand...
Click to collapse
can you share the code that make transparent?
thanks
selaludiam said:
can you share the code that make transparent?
thanks
Click to expand...
Click to collapse
Make what transparent?
What app do you want to work on.
Pvy
Sent from my TEAM Powered Arc S
pvyParts said:
Make what transparent?
What app do you want to work on.
Pvy
Sent from my TEAM Powered Arc S
Click to expand...
Click to collapse
status bar
{
"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"
}
on ongoing item i want to change color and transparency 50%
status bar in landscape view
and transparent system>>SemcGenericUxpRes
i've got same problem>>aapt.exe crash
i've tried with x10 framework-res and a lot of xml code fail>>as like your post
thanks

[Request] Notification bar mods

Hi guys!
I'm a proud owner of the Samsung Galaxy Nexus.
First day, unlocked, rooted and Android Revolution HD rom installed!
I'm now trying to get my perfect setup and I need your help!
I'm trying to mod the notification bar like in the Black Exodus theme by Nitroz.
I'd like all icons in white with the black notification bar and the clock in the center of the bar. Next thing I want is when the bar is expanded to get all words in white instead of ICS blue.
Problem is, I'm not able to get it to work.
I've got my systemUI.apk and my Framework-res.apk ready.
Got my apktool installed to decompile and recompile the apk and signapk to sign it.
I've managed to get my SystemUI to decompile and put in a line of code in the status_bar.xml file to get the clock centered.
I then try to recompile it but that's where I fail. It freaks out and gives me a few errors that I don't understand.
I was wondering if the people of XDA would be kind enough to help me out here!
Thanks in advance!
diSke
If you changed number of images for battery animation, you'll have to edit "stat_sys_battery.xml" and "stat_sys_battery_charge.xml" in "SystemUI.apk/res/drawable/" otherwise battery icon won't show up. Other icons are just png files.
Dont know where the color of the text is but its somewhere in framework-res.apk. My advice is to do one thing, compile, push and see how it works. If it works, do another edit.
What edits you've made exactly?
AlisCZ said:
If you changed number of images for battery animation, you'll have to edit "stat_sys_battery.xml" and "stat_sys_battery_charge.xml" in "SystemUI.apk/res/drawable/" otherwise battery icon won't show up. Other icons are just png files.
Dont know where the color of the text is but its somewhere in framework-res.apk. My advice is to do one thing, compile, push and see how it works. If it works, do another edit.
What edits you've made exactly?
Click to expand...
Click to collapse
I've tried to get the clock centered (which is my main goal)
White icons and white text is a big plus!
I found quite a few tutorials on how to get the clock centered so I guess my code should be solid.
But since I can't recompile my SystemUI file I couldn't see if it worked or not.
It gives me this error message.
Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Joris>cd \
C:\>cd apktools
C:\Apktools>apktool d SystemUI.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Joris\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\Apktools>apktool b SystemUI
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Apktools\SystemUI\res/drawable-sw600dp-xhdpi
invalid resource directory name: C:\Apktools\SystemUI\res/layout-sw600dp
invalid resource directory name: C:\Apktools\SystemUI\res/values-sw600dp
invalid resource directory name: C:\Apktools\SystemUI\res/values-sw600dp-port
invalid resource directory name: C:\Apktools\SystemUI\res/values-sw720dp
invalid resource directory name: C:\Apktools\SystemUI\res/values-sw720dp-port
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Joris\AppData\Local\Temp\A
PKTOOL6571312919530206705.tmp, -I, C:\Users\Joris\apktool\framework\1.apk, -S, C
:\Apktools\SystemUI\res, -M, C:\Apktools\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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:\U
sers\Joris\AppData\Local\Temp\APKTOOL6571312919530206705.tmp, -I, C:\Users\Joris
\apktool\framework\1.apk, -S, C:\Apktools\SystemUI\res, -M, C:\Apktools\SystemUI
\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
C:\Apktools>
You could try AOKP. You can center clock in setting of the rom.
For apktool try to decompile SystemUI.apk over 10. Thats decompiling with dependence and you can install your framework this way.
Over 22 choose your SystemUI.apk. Press 10, some blabla will write in the terminal and you will be asked to put your dependency file. Just drag your framework-res.apk in the window or put the full path to it and that should do it. Then you can decompile with 9.
Yeah I knew you could manually do it in AOKP but I really like the ROM i'm on now.
Oké, I'll try that! Thanks!
It doesn't work. When I try to drag my framework-res.apk when it asks for my dependee apk it says:
"Sorry that's not the dependee apk, try again"
Any ideas?
Damn I'm sure I had the same problem but I can't remember how I fixed it
Well this is what I did and it worked for me. Make sure your apktool is in C:
AlisCZ said:
Damn I'm sure I had the same problem but I can't remember how I fixed it
Well this is what I did and it worked for me. Make sure your apktool is in C:
Click to expand...
Click to collapse
Yes I did all that.
I stopped messing with it and used a gentle approach and I managed to get it to work. Got my new SystemUI to compile and sign and pushed it back to the phone.
Rebooted my phone and *sign* status bar and softkeys were gone.
changing some .png files aren't the problem. That's easy.
Messing with the code isn't! Any help would be appreciated to get my clock centered with the Android Revolution HD ROM!
Thanks AlisCZ for your help so far!
diSke said:
Yes I did all that.
I stopped messing with it and used a gentle approach and I managed to get it to work. Got my new SystemUI to compile and sign and pushed it back to the phone.
Rebooted my phone and *sign* status bar and softkeys were gone.
changing some .png files aren't the problem. That's easy.
Messing with the code isn't! Any help would be appreciated to get my clock centered with the Android Revolution HD ROM!
Thanks AlisCZ for your help so far!
Click to expand...
Click to collapse
Sorry. I don't know what you should do now. Statusbar and navbar disappear when you do wrong edit in code. Thats only thing I cant tell you right now. I dont have to sign SystemUI for my AOKP btw

[MOD][15 Toggles] How to mod Lidroid framework

Before you get the idea please consider to thank Препод, poppuri and sk0t (from 4pda.ru) for their time and hard work, all credits go to them.
Here we go, the idea is simple , decompile "lidroid-res.apk", open "apktool.yml", you will find this :
Code:
version: 1.4.5
apkFileName: lidroid-res.apk
isFrameworkApk: true
usesFramework:
ids:
- 1
If you keep the "- 1" it will uses only one framework, you have to add "2", like this :
Code:
version: 1.4.5
apkFileName: lidroid-res.apk
isFrameworkApk: true
usesFramework:
ids:
- 1
- 2
Done, make your changes and re-compile, use my Apk_Manager if you have any trouble with ICS files.
Thanks again to Препод & poppuri & sk0t, don't forget to credit them.
as 2.apk - do I need to install twframework-res.apk or lidroid-res.apk?
firefds said:
as 2.apk - do I need to install twframework-res.apk or lidroid-res.apk?
Click to expand...
Click to collapse
i think you will need twframework-res.apk.
So, now we can translate to own languages the lidroid toggles, right?
Krendelrus said:
So, now we can translate to own languages the lidroid toggles, right?
Click to expand...
Click to collapse
Yes, it should work.
Very useful, thanks.
Lovely bit of info, cheers Wanam - works perfect
I can't thank you enough for this sir!
yoderk said:
I can't thank you enough for this sir!
Click to expand...
Click to collapse
You are welcome.
sorry for beeing noob, but after editing apktool.yml and compiling (11) i get an error "An error occured, please check the log..."
Schneckmeier said:
sorry for beeing noob, but after editing apktool.yml and compiling (11) i get an error "An error occured, please check the log..."
Click to expand...
Click to collapse
Get me the log.
I used your Apk_Manager_ICS:
Code:
|11.04.2012 -- 18:31:21,04|
--------------------------------------------------------------------------
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
I: Framework installed to: C:\Users\Schneckmeier\apktool\framework\2.apk
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Schneckmeier\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
at brut.androlib.Androlib.parseUsesFramework(Androlib.java:399)
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)
Schneckmeier said:
I used your Apk_Manager_ICS:
Code:
|11.04.2012 -- 18:31:21,04|
--------------------------------------------------------------------------
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
I: Framework installed to: C:\Users\Schneckmeier\apktool\framework\2.apk
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Schneckmeier\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
at brut.androlib.Androlib.parseUsesFramework(Androlib.java:399)
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)
Click to expand...
Click to collapse
Maybe because you used the second solution, i removed it from the first page.
Use this one instead :
Code:
version: 1.4.5
apkFileName: lidroid-res.apk
isFrameworkApk: true
usesFramework:
ids:
- 1
- 2
re-installed newer java runtime environment 1.7.0_03 and used your second method now it works! Thanks wanam for help!!
Schneckmeier said:
re-installed newer java runtime environment 1.7.0_03 and used your second method now it works! Thanks wanam for help!!
Click to expand...
Click to collapse
It should work with jre 1.5 too.
is there anyway to change the "hamster" text in the values folder as everytime i recompile, i get a systemui error? im assuming i need to edit the text in strings.xml but still not working. any ideas? thx
dead0 said:
is there anyway to change the "hamster" text in the values folder as everytime i recompile, i get a systemui error? im assuming i need to edit the text in strings.xml but still not working. any ideas? thx
Click to expand...
Click to collapse
Any logs?
wanam said:
Any logs?
Click to expand...
Click to collapse
there were no errors in the log after compiling but i didn't edit the apktool.yml. everytime i edit *.yml i get compile error as posted above
tried again by just editing the apktool.yml as per your suggestion but get a compile error:
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b05)
Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)
Could Not Find C:\Users\Administrator\Desktop\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-for-modding/signedlidroid-res.apk
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Administrator\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.err.CantFindFrameworkResException
at brut.androlib.res.AndrolibResources.getFrameworkApk(AndrolibResources.java:366)
at brut.androlib.Androlib.parseUsesFramework(Androlib.java:400)
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)
Hi Wanam, how do you mod it so it doesn't say 'wanam lite' on the shut down dialog?
dead0 said:
there were no errors in the log after compiling but i didn't edit the apktool.yml. everytime i edit *.yml i get compile error as posted above
tried again by just editing the apktool.yml as per your suggestion but get a compile error:
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b05)
Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)
Could Not Find C:\Users\Administrator\Desktop\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-for-modding/signedlidroid-res.apk
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Administrator\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.err.CantFindFrameworkResException
at brut.androlib.res.AndrolibResources.getFrameworkApk(AndrolibResources.java:366)
at brut.androlib.Androlib.parseUsesFramework(Androlib.java:400)
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)
Click to expand...
Click to collapse
Push framework-res.apk (apktool if framework-res.apk).
kowcop said:
Hi Wanam, how do you mod it so it doesn't say 'wanam lite' on the shut down dialog?
Click to expand...
Click to collapse
Edit /res/values/strings.xml.

[Q] compiling systemUI and framework-res with apktool

Hi everyone
I wanna start modding and i have decompiled a systemUI.apk from ice cold sandwich rom and I have replaced some png and xml files and every thing is done but i dont know how to compile it into an APK file to use it in rom
Can enyone help me?
by the way i have also changed the framework-res.apk but again i cant compile it
Galliture said:
Hi everyone
I wanna start modding and i have decompiled a systemUI.apk from ice cold sandwich rom and I have replaced some png and xml files and every thing is done but i dont know how to compile it into an APK file to use it in rom
Can enyone help me?
by the way i have also changed the framework-res.apk but again i cant compile it
Click to expand...
Click to collapse
What do you mean by can't compile. What error are you getting we need more detail!
Sent from my Desire HD using XDA
scaryshark said:
What do you mean by can't compile. What error are you getting we need more detail!
Sent from my Desire HD using XDA
Click to expand...
Click to collapse
When i wanna compile both files it tells me that i didnt pulled the framework-res
I have replaced some files from systemui and framework from primo s rom to ice cold sandwich but i just replaced the png files and some small xml files from layout folder and i didnt add any thing ...
sorry for my bad english
Galliture said:
When i wanna compile both files it tells me that i didnt pulled the framework-res
I have replaced some files from systemui and framework from primo s rom to ice cold sandwich but i just replaced the png files and some small xml files from layout folder and i didnt add any thing ...
sorry for my bad english
Click to expand...
Click to collapse
Now were getting somewhere, but could you be more cleat.
What is the exact error, what are you using to compile/decompile have you installed the framework files?. Without being clear nobody has any idea how to help!
Sent from my Desire HD using XDA
OK these are the exact things i do:
In apktool I installed the ice cold sandwich framework and I decompiled the SystemUI and framework to make some changes
and when I wanna compile the framework-res folder i get this error:
D:\Mohammad\Android\AndroidTools\apktool>apktool if ics\framework-res.apk
I: Framework installed to: C:\Documents and Settings\Galliture\apktool\framework\1.apk
D:\Mohammad\Android\AndroidTools\apktool>apktool b icesense\framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-sw600dp-w1280d
p
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w500dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-sw600dp-land
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-sw600dp-w1024d
p
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w600dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w360dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-h720dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w480dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w720dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-sw600dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/layout-w600dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/drawable-sw600dp-hdpi
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/layout-sw600dp
(skipping index file 'D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res\drawable-hdpi\Thumbs.db')
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -
F, C:\DOCUME~1\GALLIT~1\LOCALS~1\Temp\APKTOOL2548111907806272492.tmp, -x, -S, D:\Mohammad\Android\AndroidTools\apktool\ice
sense\framework-res\res, -M, D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\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:\DOCUME~1\GALLIT~1\LOCALS~1\Temp\APKTOOL2548
111907806272492.tmp, -x, -S, D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res, -M, D:\Mohammad\Android\
AndroidTools\apktool\icesense\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
what should I do?
Galliture said:
OK these are the exact things i do:
In apktool I installed the ice cold sandwich framework and I decompiled the SystemUI and framework to make some changes
and when I wanna compile the framework-res folder i get this error:
D:\Mohammad\Android\AndroidTools\apktool>apktool if ics\framework-res.apk
I: Framework installed to: C:\Documents and Settings\Galliture\apktool\framework\1.apk
D:\Mohammad\Android\AndroidTools\apktool>apktool b icesense\framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-sw600dp-w1280d
p
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w500dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-sw600dp-land
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-sw600dp-w1024d
p
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w600dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w360dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-h720dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w480dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w720dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-sw600dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/layout-w600dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/drawable-sw600dp-hdpi
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/layout-sw600dp
(skipping index file 'D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res\drawable-hdpi\Thumbs.db')
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -
F, C:\DOCUME~1\GALLIT~1\LOCALS~1\Temp\APKTOOL2548111907806272492.tmp, -x, -S, D:\Mohammad\Android\AndroidTools\apktool\ice
sense\framework-res\res, -M, D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\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:\DOCUME~1\GALLIT~1\LOCALS~1\Temp\APKTOOL2548
111907806272492.tmp, -x, -S, D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res, -M, D:\Mohammad\Android\
AndroidTools\apktool\icesense\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
what should I do?
Click to expand...
Click to collapse
If your using primo in there make sure to use com.htc.resources.apk and framework-red.apk as the framework files, that seems to be the problem.
Sent from my Desire HD using XDA
b4 you decomp your files, u need 2 do:
apktool if framework-res.apk
Then u kan decomp, chang things nd compile

Google Keyboard Height

I have been searching for a way to keep my DPI down and have a taller Gboard without root/exposed. My banking app will not work with magisk.
I found this article ( https://www.google.com/amp/s/www.xda-developers.com/gboard-tweaks-height-sensitivity/amp/ ) and it worked (before I realized my bank app didn't). Obviously I can't use the same process as I don't have root. In the comments there is a guy GWE who makes a statement about editing the APK.
"Decompile the app, go to res/values/arrays, find the keyboard height entry and add your values (sizes like for ex. 1.25, 1.30 etc. and names).
Then go to res/values/strings and make new entries with the names you put in arrays (in my case I went for "extra tall" and "huge"?).
Recompile, now the new values will show in the settings , done!!!"
I have never done this so maybe I'm wrong, but I opened the APK in Android Studio and I couldn't follow the path he had layed out for me. I was hoping that maybe someone could point me in the right direction?
Any help would be appreciated!
Thank you!
S52Stu said:
I have been searching for a way to keep my DPI down and have a taller Gboard without root/exposed. My banking app will not work with magisk.
I found this article ( https://www.google.com/amp/s/www.xda-developers.com/gboard-tweaks-height-sensitivity/amp/ ) and it worked (before I realized my bank app didn't). Obviously I can't use the same process as I don't have root. In the comments there is a guy GWE who makes a statement about editing the APK.
"Decompile the app, go to res/values/arrays, find the keyboard height entry and add your values (sizes like for ex. 1.25, 1.30 etc. and names).
Then go to res/values/strings and make new entries with the names you put in arrays (in my case I went for "extra tall" and "huge"?).
Recompile, now the new values will show in the settings , done!!!"
I have never done this so maybe I'm wrong, but I opened the APK in Android Studio and I couldn't follow the path he had layed out for me. I was hoping that maybe someone could point me in the right direction?
Any help would be appreciated!
Thank you!
Click to expand...
Click to collapse
I too would like to know if this is possible. Like you, I like having a lower DPI but don't like how small it makes the keyboard. I'm done with the days of rooting so hopefully someone knows of a way.
Decompiling an apk requires Apktool.
You need first to install your framework res using "apktool if framework-res.apk" (read on internet how to do this)
When you want to decompile the apk, you have to type "apktool d <apkname.apk>" so you'll get the folder.
Recompiling is "apktool b <decompiled folder name>" and maybe you need to sign the apk after that.
So, is not a super easy process, I think you need to understand better how to do it reading some posts on xda like this one.
Good luck :good:
APK Tool
TENN3R said:
Decompiling an apk requires Apktool.
You need first to install your framework res using "apktool if framework-res.apk" (read on internet how to do this)
When you want to decompile the apk, you have to type "apktool d <apkname.apk>" so you'll get the folder.
Recompiling is "apktool b <decompiled folder name>" and maybe you need to sign the apk after that.
So, is not a super easy process, I think you need to understand better how to do it reading some posts on xda like this one.
Good luck :good:
Click to expand...
Click to collapse
Thanks for the reply. And I have used APK tool to decompile now as I'm not half asleep messing around I have done a bunch of reading. I have found the files needed to modify and have modified them. Then in the process of the Recompiling I get nothing but errors. (obviously figuring this is me I tested my theory)
If I decompile with apk tool (up to date 2.3.1 and Java 1.8.0) and do not touch the file it still will not recompile. It comes with errors. Now this may be because of framework issues, but in my reading I had found that framework was built into the new apktool? Is that not the case? I will continue reading and I appreciate your reply to me.
Thank you and here is a copy of my log.
Microsoft Windows [Version 10.0.16299.309]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\Users\Jarvis\Desktop\APK Tool>java -jar apktool.jar if framework-res.apk
S: WARNING: Could not write to (C:\Users\Jarvis\AppData\Local\apktool\framework), using C:\Users\Jarvis\AppData\Local\Temp\ instead...
S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable
I: Framework installed to: C:\Users\Jarvis\AppData\Local\Temp\1.apk
C:\Users\Jarvis\Desktop\APK Tool>java -jar apktool.jar d com.google.android.inputmethod.latin_7.0.8.188704572
Input file (com.google.android.inputmethod.latin_7.0.8.188704572) was not found or was not readable.
C:\Users\Jarvis\Desktop\APK Tool>java -jar apktool.jar d com.google.android.inputmethod.latin_7.0.8.188704572.apk
I: Using Apktool 2.3.1 on com.google.android.inputmethod.latin_7.0.8.188704572.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
S: WARNING: Could not write to (C:\Users\Jarvis\AppData\Local\apktool\framework), using C:\Users\Jarvis\AppData\Local\Temp\ instead...
S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable
I: Loading resource table from file: C:\Users\Jarvis\AppData\Local\Temp\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
C:\Users\Jarvis\Desktop\APK Tool>java -jar apktool.jar b com.google.android.inputmethod.latin_7.0.8.188704572
I: Using Apktool 2.3.1
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
S: WARNING: Could not write to (C:\Users\Jarvis\AppData\Local\apktool\framework), using C:\Users\Jarvis\AppData\Local\Temp\ instead...
S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\layout-v21\language_list_entry.xml:4: error: No resource identifier found for attribute 'buttonTint' in package 'android'
W:
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\layout-v21\language_picker_item.xml:4: error: No resource identifier found for attribute 'buttonTint' in package 'android'
W:
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\layout-v21\theme_selector_candidate_builder_launcher.xml:2: error: No resource identifier found for attribute 'outlineProvider' in package 'android'
W:
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\animator\slide_search_candidate.xml:2: error: Error: String types not allowed (at 'valueFrom' with value '0f').
W:
Exception in thread "main" W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\animator\slide_search_candidate.xml:2: error: Error: String types not allowed (at 'valueTo' with value '1f').
W:
brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Jarvis\AppData\Local\Temp\brut_util_Jar_2642557352166116402.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version, 27, --version-code, 26700810, --version-name, 7.0.8.188704572-release-arm64-v8a, --no-version-vectors, -F, C:\Users\Jarvis\AppData\Local\Temp\APKTOOL629891987092943402.tmp, -0, arsc, -0, META-INF/services/com.fasterxml.jackson.core.JsonFactory, -0, META-INF/services/com.google.protobuf.GeneratedExtensionRegistryLoader, -0, zip, -0, binarypb, -0, so, -0, pic, -0, dict, -0, json, -0, arsc, -I, C:\Users\Jarvis\AppData\Local\Temp\1.apk, -S, C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res, -M, C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:492)
at brut.androlib.Androlib.buildResources(Androlib.java:426)
at brut.androlib.Androlib.build(Androlib.java:305)
at brut.androlib.Androlib.build(Androlib.java:270)
at brut.apktool.Main.cmdBuild(Main.java:227)
at brut.apktool.Main.main(Main.java:75)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Jarvis\AppData\Local\Temp\brut_util_Jar_2642557352166116402.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version, 27, --version-code, 26700810, --version-name, 7.0.8.188704572-release-arm64-v8a, --no-version-vectors, -F, C:\Users\Jarvis\AppData\Local\Temp\APKTOOL629891987092943402.tmp, -0, arsc, -0, META-INF/services/com.fasterxml.jackson.core.JsonFactory, -0, META-INF/services/com.google.protobuf.GeneratedExtensionRegistryLoader, -0, zip, -0, binarypb, -0, so, -0, pic, -0, dict, -0, json, -0, arsc, -I, C:\Users\Jarvis\AppData\Local\Temp\1.apk, -S, C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res, -M, C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:456)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:478)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Jarvis\AppData\Local\Temp\brut_util_Jar_2642557352166116402.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version, 27, --version-code, 26700810, --version-name, 7.0.8.188704572-release-arm64-v8a, --no-version-vectors, -F, C:\Users\Jarvis\AppData\Local\Temp\APKTOOL629891987092943402.tmp, -0, arsc, -0, META-INF/services/com.fasterxml.jackson.core.JsonFactory, -0, META-INF/services/com.google.protobuf.GeneratedExtensionRegistryLoader, -0, zip, -0, binarypb, -0, so, -0, pic, -0, dict, -0, json, -0, arsc, -I, C:\Users\Jarvis\AppData\Local\Temp\1.apk, -S, C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res, -M, C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:450)
... 6 more
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\xml-v22\method.xml:129: error: No resource identifier found for attribute 'languageTag' in package 'android'
W:
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\xml-v23\method.xml:131: error: No resource identifier found for attribute 'languageTag' in package 'android'
W:
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\xml-v26\method.xml:131: error: No resource identifier found for attribute 'languageTag' in package 'android'
W:
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\drawable-v21\abc_ratingbar_indicator_material.xml:7: error: No resource identifier found for attribute 'tileModeX' in package 'android'
W:
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\drawable-v21\abc_ratingbar_material.xml:7: error: No resource identifier found for attribute 'tileModeX' in package 'android'
W:
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\drawable-v21\abc_ratingbar_small_material.xml:7: error: No resource identifier found for attribute 'tileModeX' in package 'android'
W:
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\drawable\abc_vector_test.xml:4: error: No resource identifier found for attribute 'fillColor' in package 'android'
W:
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\drawable-v21\bg_ja_key_slide_left_material_dark_theme.xml:4: error: No resource identifier found for attribute 'fillColor' in package 'android'
W:
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\drawable-v21\bg_ja_key_slide_up_material_dark_theme.xml:4: error: No resource identifier found for attribute 'fillColor' in package 'android'
W:
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\drawable\drag_handle.xml:4: error: No resource identifier found for attribute 'fillColor' in package 'android'
W:
C:\Users\Jarvis\Desktop\APK Tool>
Try put apktool folder directly in C:\
backup/download your framework-res.apk file and put it in the apktool folder
remove the previous one (usually in C:\Users\YourName\apktool\framework\1.apk)
browse to c:\apktool folder with cmd and install the framework (apktool if)
decompile (remember .apk at the end)
edit
try recompile
Also note that in the guide it's not used "java -jar apktool.jar d blabla.apk"
Just browse with cmd in the folder and type "apktool d blabla.apk"
Or, search for the error in specific threads, since I think it's not related to apktool, but something on the commands used.
Framework
TENN3R said:
Try put apktool folder directly in C:\
backup/download your framework-res.apk file and put it in the apktool folder
remove the previous one (usually in C:\Users\YourName\apktool\framework\1.apk)
browse to c:\apktool folder with cmd and install the framework (apktool if)
decompile (remember .apk at the end)
edit
try recompile
Also note that in the guide it's not used "java -jar apktool.jar d blabla.apk"
Just browse with cmd in the folder and type "apktool d blabla.apk"
Or, search for the error in specific threads, since I think it's not related to apktool, but something on the commands used.
Click to expand...
Click to collapse
Maybe that is where I'm lost. I have read the apktool framework page (info) and I'm not sure how to find the specific framework I'm looking for? In the mean time I will move to C:/ and try again
thank you
S52Stu said:
Maybe that is where I'm lost. I have read the apktool framework page (info) and I'm not sure how to find the specific framework I'm looking for?
Click to expand...
Click to collapse
The framework res is the file in your phone.
From the official documentation: you need that if you want to decompile proprietary stuff, google keyboard *should not* need this, also because your previous decompilation was succesful, the problem was recompiling.
I always install the framework on every update that comes just to be sure with decompiling things etc, but for now I think you can skip this. But if you're experiencing problems try read that post
TENN3R said:
The framework res is the file in your phone.
From the official documentation: you need that if you want to decompile proprietary stuff, google keyboard *should not* need this, also because your previous decompilation was succesful, the problem was recompiling.
I always install the framework on every update that comes just to be sure with decompiling things etc, but for now I think you can skip this. But if you're experiencing problems try read that post
Click to expand...
Click to collapse
Tenn3r - I have read that and figured the same thing you were saying. I will pull the framework from my phone - but as it should be AOSP I dont think I would need it.
The main reason I was using Java -jar is because it gave me actual prompts like when something was happening. When you dont use it you get this...
Microsoft Windows [Version 10.0.16299.309]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\APK Tool>apktool.jar if com.google.android.gsf_8.1.0-27_minAPI27(nodpi)_apkmirror.com.apk
C:\APK Tool>apktool.jar d com.google.android.inputmethod.latin_7.0.8.188704572.apk
C:\APK Tool>apktool.jar b com.google.android.inputmethod.latin_7.0.8.188704572
C:\APK Tool>
I have spent entirely too long on a Saturday messing around with this and getting no where simply because I want my keyboard to be a little higher
I have to go do some yard work and stop looking at my computer for a little. But I'll be back at it later. Again thank you for humoring me. It is appreciated.
Ok I had some time so I modified the apk for you: download here
I start thinking the problem could be how you set the files of apktool, since at the very beginning I had some problems too.
So I share with you my apktool folder: download here
Extract those files in "C:\Apktool"
Create shortcut of ApktoolStart.bat on desktop (so you just have to double click on the shortcut)
Type commands "apktool blabla" (no more need of "apktool.jar bla bla")
The txt file is the command you need to execute AFTER you build the apk (will be in "decompiled-folder/dist"), for signing, otherwise install error when try to install on your phone.
For more details visit the tutorial I mentioned some posts before.
P.S: I did not test the apk, so in case of errors you may have to uninstall updates in settings > gboard
Thank you!! I'm gonna try to build it again as my reference but you went above and beyond and I appreciate it!
TENN3R said:
Ok I had some time so I modified the apk for you: download here
I start thinking the problem could be how you set the files of apktool, since at the very beginning I had some problems too.
So I share with you my apktool folder: download here
Extract those files in "C:\Apktool"
Create shortcut of ApktoolStart.bat on desktop (so you just have to double click on the shortcut)
Type commands "apktool blabla" (no more need of "apktool.jar bla bla")
The txt file is the command you need to execute AFTER you build the apk (will be in "decompiled-folder/dist"), for signing, otherwise install error when try to install on your phone.
For more details visit the tutorial I mentioned some posts before.
P.S: I did not test the apk, so in case of errors you may have to uninstall updates in settings > gboard
Click to expand...
Click to collapse
Any way you could share the apk again? I've tried modifying it myself but just can't seem to get it.
GBoard now supports a floating keyboard: Link. Just skip to the Floating Keyboard section and enable it. No mucking around, it works on top of your apps, and you can position it anywhere on your screen. You can also resize it to whatever you want.
amartolos said:
GBoard now supports a floating keyboard: Link. Just skip to the Floating Keyboard section and enable it. No mucking around, it works on top of your apps, and you can position it anywhere on your screen. You can also resize it to whatever you want.
Click to expand...
Click to collapse
Thanks for the info. Although it looks like there is an upper limit of how large you can make the keyboard, and that upper limit is actually smaller than when the keyboard is docked. Am I doing something wrong? In the screenshots, it looks like you can stretch it to as large as you want.
joshua1892 said:
Thanks for the info. Although it looks like there is an upper limit of how large you can make the keyboard, and that upper limit is actually smaller than when the keyboard is docked. Am I doing something wrong? In the screenshots, it looks like you can stretch it to as large as you want.
Click to expand...
Click to collapse
I was also under that impression, although personally prefer smaller keyboards so I guess I never pushed the upper bounds. Looks like there is indeed a max limit, and it's roughly the size of the docked one-handed mode. Doh...

Categories

Resources