Related
How to add/remove languages to swype.
Preparation
* Get a tool capable of working in zip files. I use WinRar. WinZip, Total Commander or anything else should also work.
* Get a Swype Version which works on your device (QVGA for Galaxy 3). Install and test it! This is your base - it has to run propperly so you customize it. You can find swype keyboard swype inside a stock rom.
* Check your swype version & download a swype (With any resolution).
* When i refer to "dummyfile.apk", that is always meant without quotation marks.
Customization
* When you find your swype that suits to your device, we start. I refer to it now as "myswype.apk"
* Open "myswype.apk" in WinRar/Total Commander/Winzip/WhateverYouLike - we wont unpack it, we work inside it.
* Delete the "META-INF/" Folder inside "myswype.apk"
* Go to "Assets/Files" inside "myswype.apk"
* Each standard language consists of 3 Files here: "Language.htm", "Language-full.htm", "Language.le" - some complicated languages like korean may consist of up to 5 files.
* Delete the Languages you dont need.
* Dont delete anything else! Important files are "languages.lst", "license.dat", the two "Numbers-XX-Latin1.zkb.le" files, the four "QwertX-XX-Latin1.zkb.le" files and all .png's!
* Now copy additional languages from the other swype with the languages you want here. Of course it is in the same location: "theotherswype.apk/assets/files/" - remember: 3 files per language!
* Open "languages.lst" in any text editor - even notepad will do! (I use Notepad++)
* Write a list of Languages you wanna use here. The name to use is the name of the .htm file without .htm. This is case sensitive!
* The Contents of the original language.lst as an example: "EnglishUS,Spanish,Italian,PortuguesePT,German"
* Open "helplanguages.lst" in any text editor and repeat above steps
* Delete unneeded keyboards from "assets/keyboards/". The "SwypeRef*" are QWERTY default, the rest is self-explaining like QWERTY or AZERTY. There is no way to see what language needs what keyboard. You either know or you have to test.
* Delete chinese help-file from "res/raw/dict_pinyin.mp3". It's only needed if you use chinese.
* Recheck all your steps and close your zip-tool!
Optional: Customize Skin and Sound
* If you wanna change the skin, modify the .png files at "myswype.apk/assets/keyboards" - the other .png files in the .apk are only for tutorial and help.
* There are some skins at XDA forum, which already made it to a custom .apk file.
* The one and only soundfile, played when typing or finishing a word, is located at "myswype.apk/res/raw/beep.mp3" - change this if you like
Finalization
* Download a sign tool from xda (Auto-apk-tool v1.0.7 its nice)
* Open it and press "10". Drag "myswype.apk" to the command and press enter.
* A file will be created (myswype_signed.apk).
* Thats it! you are done! install the .apk and have a nice day!
Troubleshooting
* If you find your language not working, that usually got one of 3 Reasons:
* You messed something up. Recheck your "language.lst" and "helperlanguage.lst" file and see if you have all needed language files in "assets/files"
* Your language is not allowed by our included license file. That happens a lot with new languages like the Chinese in 2.10.52. Users reported workarounds with renaming the language to some supported language. Like renaming Serbian to Croation.
* The language files you got are not supported by the latest swype version. Rule of thumb is, 1.x swype language files wont work with 2.x language files, but 2.x language files are compatible with each other. As far as i know this rule applys in most but not all cases. So search for another swype version containing your desired language and try that file.
* We obtained another license file. Right now, it is unknown which languages it supports, but it is from swype 2.7 asia galaxy s. the license we currently use is 2.4.44 based. give it a try, it might work with your language. please also give feedback, which language works/doesnt work. copy it it "assets/files/" and overwrite the exiting license.dat
* Swype languages from swype 2.XX dont work on swype 3.XX!
kyrillos13 said:
* If you wanna change the skin, modify the .png files at "myswype.apk/assets/keyboards" - the other .png files in the .apk are only for tutorial and help.
Click to expand...
Click to collapse
Kyrillos,
is it enough to resize the keyboard images from the other APK, or is there other trickery?
debaj said:
Kyrillos,
is it enough to resize the keyboard images from the other APK, or is there other trickery?
Click to expand...
Click to collapse
I havent tried it but it will work
I have installed Swype 3.xx from official site and procedure. Licensed.
Worked at first but after reboot, it started giving FCs. Nothing else can be done with anything related to swype now. I do have the apk backed up. Using that backed up apk, i re-installed it but now it says Invalid License and will work with limited functionality. which is basically no swyping at all!!
How do I get it to work again???
I did a search for "Auto-apk-tool v1.0.7" but results showed me only earlier versions.
Where can I get the version you mentioned?
jinxskore said:
I have installed Swype 3.xx from official site and procedure. Licensed.
Worked at first but after reboot, it started giving FCs. Nothing else can be done with anything related to swype now. I do have the apk backed up. Using that backed up apk, i re-installed it but now it says Invalid License and will work with limited functionality. which is basically no swyping at all!!
How do I get it to work again???
I did a search for "Auto-apk-tool v1.0.7" but results showed me only earlier versions.
Where can I get the version you mentioned?
Click to expand...
Click to collapse
Hm, you installed the swype.apk? sign apk with the auto apk tool http://forum.xda-developers.com/showpost.php?p=13254186&postcount=2
Thanks. Will try n let u know...
used your guide to add engish uk to wqvga on us english only. it worked perfectly have now integrated this uk only swype into my jpq! ty!
kyrillos13 said:
Hm, you installed the swype.apk? sign apk with the auto apk tool http://forum.xda-developers.com/showpost.php?p=13254186&postcount=2
Click to expand...
Click to collapse
Not working.
Used AutoApkTool you provided. Signed my Swype 3.xx.apk. Got a resulting Swype 3.xx_signed.apk.
Copied to SD.
Then using Root Explorer, copied apk to /system/app
Went to Locale & Text...
Saw Swype Settings (but the was no "Enable Swype" checkbox)
Tried entering Swype Settings. Gives force close.
Uninstalled!!
Went to SD. Tried installing directly by clicking on the Signed.apk.
Installed like any normal app.
Went to Locale & Text...
Saw Swype Settings (this time, there was "Enable Swype" checkbox also)
Checked it.
Entered Swype Settings. Language, audio & vibration were grayed out, cant select (not that i want them though )
Went to text input box, new message compose.
Selected Swype as Input Method.
BACK TO SQUARE ONE. "Invalid License. Will have limited functionality"
Cant SWYPE at all!!!
Yeah. If you take swype beta, you need a licence (which mean you need a cracked swype 3 qvga). So you can take one from a rom, or you should find one (type "mobilism swype" in google)
kyrillos13 said:
Yeah. If you take swype beta, you need a licence (which mean you need a cracked swype 3 qvga). So you can take one from a rom, or you should find one (type "mobilism swype" in google)
Click to expand...
Click to collapse
haha. Oh. is it? LOL
KK. will try that again.
Would I need to sign the new apk from mobism?
And what install method would you prefer?
Click install or Root Explorer method?
Thanks for previous help and thanks in advance for reply.
kyrillos13 said:
Yeah. If you take swype beta, you need a licence (which mean you need a cracked swype 3 qvga). So you can take one from a rom, or you should find one (type "mobilism swype" in google)
Click to expand...
Click to collapse
haha. Oh. is it? LOL
KK. will try that again.
Would I need to sign the new apk from mobism?
And what install method would you prefer?
Click install or Root Explorer method?
Thanks for previous help and thanks in advance for reply.
EDIT:
It works! It works! It works!!!! Thanks man. U the MAN!!!
But I didnt use the QVGA, I used the WQVGA one.
Didnt sign it again as I saw it was already signed.
Installed it like any other app.
Exellent guide. 5 stars . Thanks
how can I get Swype Keyboard v3.25 from your rom? Do I have to install it first and then find swype on my Galaxy 3? Can sbd upload it here?
I know this thread is probably forgotten (which is a shame, its great) but I feel like responding regardless.
1. Extracting Swype from a rom:
windows- "Disk internals linux reader" can do apparently do it for windows. Thanks -Vinne2-
linux-extract factroryfs.rfs from the rom .tar. in a terminal cd to the folder with the file, then run (as root)
Code:
#mkdir mount
#mount -o -loop factoryfs.rfs mount
now the folder mount will be like the system folder in yourt phone, so go to the folder app and copy Swype.apk somewhere else.
mac - I don't have mac experience, but I think there might be a method similar to the one above for linux
Phone
Flash the rom, copy the file from /system/app/ (of course)
Put factoryfs.rfs on your sd card, do the same as for linux (isn't it great when your smartphone can do something that windows cant )
2. Installing your SwypeIf you want to install it as a system app, you also have to put libSwypeCore.so in /system/lib. You can find libSwypeCore.so in the Swype apk in the lib folder. If you do this you can also delete the lib folder from the apk to save more space!
You can install it like a normal app (will go to data).
3. Signing the apk / -linuxThere is no auto apk tool for linux so I made this script (well I didn't actually make it, I stripped down APK manager, so credits to Daneshm90( java is required, and I guess a chmod 755 may be necessary.
Extract, place the apk as Swype.apk in the "Swype-signing" folder, then run the script
Code:
$chmod 755 Script.sh
$./Script.sh
P.S. There was something else I wanted to say,... oh yeah, I dont know if I can post Swype here so if somebody wants it, I can send them the one from kyrillos's cm7/gingy rom (the 20+mb one with a lot of languages), just pm me and hopefully I'll see it soon afterwards .
I still have the feeling that I'm forgetting something
eidt: forgot the attachment
edit 2: forgot that our phone is linux based, updated the part about getting Swype.apk from a rom
stubborn_d0nkey said:
I know this thread is probably forgotten (which is a shame, its great) but I feel like responding regardless.
1. Extracting Swype from a rom:
windows- I dont know of any method. I dont think windows can access .rfs files.
linux-extract fa(...)
Click to expand...
Click to collapse
Try "Disk internals linux reader". http://forum.xda-developers.com/showpost.php?p=21569967&postcount=298
since I'm using Galaxy Tab 7.7, don't really know where to ask but here goes... My phone have Swype and I'd like to add additional language in Swype. How can I do this?
Followed all the steps, but
getting force close when trying to use
If i am trying to install from apk(and not by file delete and copy) I get "application not installed.
What can I do?
I want to add hebrew to my swype on Galaxy 3
Hey chaps,
the Swype that comes with any Samsung is version 3.26.92.39150, it comes with many language options but with no arabic. This guy has an earleir version of swype with arabic. http://forum.xda-developers.com/showthread.php?t=1588906
Can you please do me an apk file with arabic files from the link above into a swype of version 3.26.92.39150? Thanks. I tried the steps from the 1st post, but it aint working. I even tried this but did not work:
Rename arabic files to greek ones, and replace the original greek files, in a plan to select greek, but get arabic. but it aint working.
Please advise.
I have a Samsung Note 3 with Swype that allows me to download some additional languages, does anyone know where those language files are located? Thanks.
awdrifter said:
I have a Samsung Note 3 with Swype that allows me to download some additional languages, does anyone know where those language files are located? Thanks.
Click to expand...
Click to collapse
same question.
I'm trying to add portuguese language using swype "add language" function but every try show me "error" so I want to download manually the language dictionary and also add manually to the direction/file where could be located and be "readable" by swype.
Thanks in advance for your help
Hello guys,
Since I use a Samsung device, I'm used to the extra number row on top of the keyboard so I modded Swype to have that extra row. However since Swype is to be purchased and not distributed, I'll only tell here how to do it for your legally purchased copy. And this is a bit complicated and for advanced users and you need to be rooted. You also need Root Explorer. Here we go:
1- First buy/download Swype from Google Play.
2- Go to /mnt/asec/com.nuance.swype.dtc-1 folder, copy pkg.apk to your sdcard, rename it to com.nuance.swype.dtc-1.apk.(keep a backup of this file at all times)
3- Go to /mnt/asec/com.nuance.swype.dtc-1/lib folder copy the files (libnmsp_speex.so and libswypecore.so) to your sdcard.
4- Using apktool (I used version 1.52) decompile com.nuance.swype.dtc-1.apk.,
5- Go to decompiled folder\res\xml folder. kbd file pertaining to your language is to be edited, I edit kbd_qwerty.xml for English using Notepad++.
6- Check the attached kbd_qwerty.xml in portrait folder and notice the extra row section I added to the top. You can in fact add secondary characters to numbers or customize the keyboard completely, rearrange letters, add symbols etc.
7- Once done, save the file and go to decompiled folder\res\xml-land folder and edit the landscape for the layout, kbd_qwerty.xml file, notice the attached file in landscape folder.
8- Once done, save the file and go to decompiled folder\res\values folder and edit the dimens.xml file. Here I raise the height of the keyboard and height of the key to 270dip and 54dip respectively, check the top rows of the attached dimens.xml. Also increase the keyboard height for landscape (if you want) by changing the dimens.xml under res\values-land folder.
9- Once done, recompile the folder with apktool, go to decompiled folder\dist folder and copy the apk here to a different folder and rename it to temp.apk.zip
10- Open temp.apk.zip with 7z/winrar and copy the resources.arsc and kbd_qwerty.xml files from res\xml and res\xml-land folders to your PC(obviously keep the 2 files in seperate folders not to overwrite)
11- Then, rename the original apk from step 2 to com.nuance.swype.dtc-1.apk.zip , open with winrar and first delete resources.arsc file, then drag the resources.arsc file from step 10 to the archive, it will be added. Staying in winrar, go to res\xml folder and replace the file with kbd_qwerty.xml from step 10 (the portrait version). Do the same with res\xml-land folder and the landcape file.
12- Once finished rename the file back to com.nuance.swype.dtc-1.apk, don't sign it, don't delete META-INF folder, leave it as it is.
13- Now, on your phone, uninstall Swype. Reinstall it from the apk file on Step 2. Go to /data/app-lib/com.nuance.swype.dtc-1 folder and move the 2 files (libnmsp_speex.so and libswypecore.so) to system/lib folder. You have to mount the System R/W from Root Explorer on this step. Fix the permissions so these 2 files have the same permissions with other files there. If you can't find these files just use the ones from Step 3.
14- Once done, copy com.nuance.swype.dtc-1.apk from Step 12 to /system/app and fix the permissions so that it has the same permissions as other files there.
15- Then delete the com.nuance.swype.dtc-1.apk from /data/app/ folder. Restart your phone.
This should be it if you followed it exactly, tracing and Dragon voice dictation also works. While you're doing all this work (takes 10 minutes by the way), you might also consider changing how Swype looks (theming) and changing many other things like swype thickness, colors etc. Please note that this is for advanced and rooted users and please don't ask me to give you the modded apk, you have to do it on your legally bought version. You might consider doing backups just in case anything goes wrong. Have fun.
And a quick tip: if you swype from swype icon to symbol key(123), arrow keyboard opens up.
You can also add arrow keys by copying arrow keys from kbd_edit.xml, check the 2nd screenshot.
Please hit the thanks button if you think this is useful.
Nice how to. But may u should tell that the latest Android versions store purchased apps in data/app-asec as asec version, this need special procedure to get a apk from the asec format.
Can you please update this tutorial to 4.3 ? I couldn't find the files in the mentioned paths. . I'm on stock rooted 4.3 on gt9500
Sent from my GT-I9500 using XDA Premium 4 mobile app
lesalloum said:
Can you please update this tutorial to 4.3 ? I couldn't find the files in the mentioned paths. . I'm on stock rooted 4.3 on gt9500
Sent from my GT-I9500 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
It works same for me on 4.3 stock rooted i9500, maybe you could do a file search to find the necessary folder. Here is another screenshot with the updated Swype(1.6.2.22328), where I made number buttons smaller like original Samsung Keyboard and hide the suggestions bar to save space.
ozkaya said:
Hello guys...
9- Once done, recompile the folder with apktool, go to decompiled folder\dist folder and copy the apk here to a different folder and rename it to temp.apk.zip
....
Click to expand...
Click to collapse
using the current play store version (1.6.3.22544), i decompiled com.nuance.swype.dtc-1.apk (/mnt/asec/com.nuance.swype.dtc-1/pkg.apk) using APKTool 1.52. i made no changes and attempted to recompile without success.
the first error displayed by apktool is:
"C:\Users\Phil\apktool\com.nuance.swype.dtc-1\res\values\arrays.xml:545: error: Found tag dimen-array where item is expected"
i do use APKTool successfully to mod other apps so i am familiar with the process.
QUESTION: what frameworks file are you using when making your mods? are you using a TW ROM frameworks? that's the only other variable i can think of...
EDIT: well, i just tried using TW framework too without success
PhilDX said:
using the current play store version (1.6.3.22544), i decompiled com.nuance.swype.dtc-1.apk (/mnt/asec/com.nuance.swype.dtc-1/pkg.apk) using APKTool 1.52. i made no changes and attempted to recompile without success.
the first error displayed by apktool is:
"C:\Users\Phil\apktool\com.nuance.swype.dtc-1\res\values\arrays.xml:545: error: Found tag dimen-array where item is expected"
i do use APKTool successfully to mod other apps so i am familiar with the process.
QUESTION: what frameworks file are you using when making your mods? are you using a TW ROM frameworks? that's the only other variable i can think of...
EXIT: well, i just tried using TW framework too without success
Click to expand...
Click to collapse
Latest version of Swype has incompatible tags with Apktool. What you do is go to all the lines that give error and change them to <string-array>. Then it compiles.
ozkaya said:
Latest version of Skype has incompatible tags with Apktool. What you do is go to all the lines that give error and change them to <string-array>. Then it compiles.
Click to expand...
Click to collapse
i'll give this a shot tomorrow, thanks a lot!
ozkaya said:
Latest version of Swype has incompatible tags with Apktool. What you do is go to all the lines that give error and change them to <string-array>. Then it compiles.
Click to expand...
Click to collapse
it works!!!
thanks man, appreciate the help and info!
I've been going nuts trying to edit swype for a week now and still can't seem to get it to work. All I want to do is change the suggested word color and maybe a few other minor color related things. I assumed just changing the color codes in /res/values/styles.xml that seemed to pertain to the holo theme would work but I can't ever get the app to install. Not even sure where to begin to ask for help on this one but if anyone has any advice I'd greatly appreciate it.
Ok I've tried this a hundred times following all the steps completely and it just wont work.
Once I go to install the final apk it always tries to install then sais App Not Installed.
TeknoGodz said:
Ok I've tried this a hundred times following all the steps completely and it just wont work.
Once I go to install the final apk it always tries to install then sais App Not Installed.
Click to expand...
Click to collapse
You don't install the final apk, in fact you can't since the certificate is no longer valid. You copy the final apk in place as in Step 14.
I would love this! I have used Swype for years but I would love a number row. To be honest I have no idea how to follow those instructions! I have a rooted phone - what can I do?
Am I right in concluding that you can't use TB to backup and restore the finished product and this will have to be done manually? I did this on my rooted Note 3 and I keep going back to my stock image because I don't want to have to keep doing the steps when I flash a new ROM or ROM update.
Would I maybe just have to do steps 12 onward every time?
mr.BeBoT said:
Am I right in concluding that you can't use TB to backup and restore the finished product and this will have to be done manually? I did this on my rooted Note 3 and I keep going back to my stock image because I don't want to have to keep doing the steps when I flash a new ROM or ROM update.
Would I maybe just have to do steps 12 onward every time?
Click to expand...
Click to collapse
When you install a new ROM, you install original Swype from apk file then you move the lib files to /system/lib, copy the modded apk to /system/app and delete original apk from /data/app folder. So it is 4 steps once you have the modded apk ready, should take no more than 5 minutes.
thumm138 said:
I've been going nuts trying to edit swype for a week now and still can't seem to get it to work. All I want to do is change the suggested word color and maybe a few other minor color related things. I assumed just changing the color codes in /res/values/styles.xml that seemed to pertain to the holo theme would work but I can't ever get the app to install. Not even sure where to begin to ask for help on this one but if anyone has any advice I'd greatly appreciate it.
Click to expand...
Click to collapse
This is similar. Please go through the steps, you don't (can't) install the modded apk, you move it in place.
ozkaya said:
This is similar. Please go through the steps, you don't (can't) install the modded apk, you move it in place.
Click to expand...
Click to collapse
Yeah I realized that after I posted and still nothing. I'm no programmer but I've never NOT been able to change a few things and recompile. Not sure how just changing a few color codes is causing such a problem. Shame such a nice keyboard has such little customization and few themes. Don't get me wrong I like orange but it really doesn't mesh at all with the rest of the UI. Thanks for the reply though.
ozkaya said:
This is similar. Please go through the steps, you don't (can't) install the modded apk, you move it in place.
Click to expand...
Click to collapse
I did all that and it changed the height of the keyboard, but didn't add any additional number row.
kdb_qwerty or whatever it's called is the default that comes up when you install it, right? Becuase I tried again and specifically made sure to use this one and it just wont give me the extra row, just the height.
TeknoGodz said:
I did all that and it changed the height of the keyboard, but didn't add any additional number row.
kdb_qwerty or whatever it's called is the default that comes up when you install it, right? Becuase I tried again and specifically made sure to use this one and it just wont give me the extra row, just the height.
Click to expand...
Click to collapse
It depends on your system language. Try kbd_qwerty_panlatin.xml.
ozkaya said:
Latest version of Swype has incompatible tags with Apktool. What you do is go to all the lines that give error and change them to <string-array>. Then it compiles.
Click to expand...
Click to collapse
Thank you for this change, this is exactly what I was looking for to compile.
Once again my Swype is blue!!! :victory:
here's my creation, what do you guys think?
the theme is "Lucid" from the pay store: https://play.google.com/store/apps/...lucid&pcampaignid=APPU_8szYUoedK9PNsAThnoDQDQ
Here is a method for editing xml files directly on from your phone (as well as a fully functional Eclipse compatible IDE). I'm going to sleep so I'll post a reply I made in another thread first, and clean up in the morning. Have fun..G'night!
-------------------------------------------------------------------------------------------
Quote:
Originally Posted by Toni5830
You can extract xml but you can't see them (only strange symbols) and you can't edit them from phone.. you must use PC and decompile them.. no other possibility
Inviato con Tapatalk 2 dal telefono di casa
-------------------------------------------------------------------------------------------
No, you can edit them on your phone. Axel is one of the apps to use. The second is an IDE called AIDE which is compatible with Eclipse. You can develop, program and publish complete apps from your phone. I figured out how to edit compiled xml the other day. Ninjamorph is also useful because it unpacks the archives into a project which happens to be near where your AIDE projects are.
Begin by opening ninjamorph and choosing the apk to work on and create a project (can do this manually but keep a back up of the apk). Next, open AIDE and create a new project. As an example I'll be editing the lg_allapps_button_text.xml file in LGHome.apk (LG's launcher on G2, so files may differ for you). Choose the HelloWorld setup as that's the less,cluttered one. After creating the project, open up a file manager (you can do this from within AIDE as well) and create the same directory structure for your xml file (probably doesn't matter if a ../res/color xml file is in ../main..but it's good practice. The xml I'm editing is in /res/color, so I'll go into the project directory and create a ../res/color folder.
Now open Axel up and find the xml in the ninjamorph project that you are editing. Again in my case it'll be in /res/color. Go ahead and open it with Axel. Don't bother editing it here, we're going to just go into settings and "save as" (into our AIDE project directory) ../res/color/lg_allapps_button_text.xml. This adds it into our AIDE project and we can now go back into AIDE. In the oberflow action, choose "Goto Files" or whatever it's named (also an icon at the top for this action). It'll open a pane at the bottom with your project files. At this time you'll probably notice AIDE throwing a lot of errors (errors in your code, not app errors lol).
We have to fix every one of them before finish, so might as well start now before editing. Conversely, you could do this in Axel first once you know what kind of errors to expect and fix. In my case, I see two errors because the file is really small. Once clicking on the xml I want to edit in the files pane, I can see that it's telling me string values aren't allowed in the "color' attribute. The color is black but when Axel decompiled it, it changed it from it's ARGB form. I see this -
Code:
#xml namespace blah blah...
.....
....... android:color="1F000008/0xFF000000"
Of course there is more, I just highlighted the attribute I need to fix. You're going to need to learn how attributes need to be formatted or learn and keep a reference handy. Google has nice guides online for building android apps. In this case we change it to:
Code:
...
.... android:color="#FF000000"
Technically yes it's still a string, and yes the wrong format was hexadecimal (sort of), but now we have one less error. On large xmls, this gets annoying but you'll get fast at it. So, I've fixed,myerrors, so now for simplicity I'll just change the color on one of the attributes..to red ("#FFFF0000"). Now that edits are done and errors done, go back in the ooverflow action and scro,down and either click "Run" or "More" and then "Rebuild Project". We aren't worried about any other file, we just want our xml recompiled. Once it's done, if you want you can install your fancy Hello World app (or Tetris game app), lol but it's just as well if you choose not to.
Next, go back into your file manager and find your way back into your AIDE project directory. Locate the bin folder (where your compiled project will be) and navigate to your xml. Again, in my case, I'll be going to /res/color. Make sure you find the compiled version (the binary one with all the cool symbols). Copy this back into the same structure inside the ninjamorph project folder. If you aren't using ninjamorph and manually doing this then make sure you have a backup apk handy and akip the ninjamorph stuff.
Opem Ninjamorph back up and choose to complete your project. Once it's done repackaging it'll ask you if you want to resign the apk
Follow Steven's directions and dont sign it if its a system apk. Next he'll ask about zipaligning (i think?). I don't choose this option at all. If my mods work, then I'll redo the project and choose that option. Problem is, sometimes it can cause issues and you don't want to add more variables in until you know that all,is working or you'll be asking yourself "wonder if my edits were bad,or the zipalignment".
Ninjamorph will create a backup of the apk for you, and now you'll be given the option of installing the apk. You should know what you're doing already but...if using TWRP you can go ahead and replace the modded apk and reboot. Worst that'll happen is boot loops or force closes and you can manually go into recovery and use TWRP's file manager to copy your backup back (may need to mount /system first, and may need to chmod as well. Then try again. If you boot up and all is well, congrats! If using CWM, make sure you have a recovery plan before making the switch.
I have no clue if,there's any easier way. I'm still working on it. Granted, kf you're just going to edit a color like in my example it'd be MUCH easier just using a hex editor. AIDE is a pretty damn slick app as it also supports native mode C/C++ for developing codecs, drivers,,etc. For $8 you can purchase full version with support for larger projects and github and a few other things.
This method should work on any device that can run all those apps. I'm using a LG G2. I'm not the,developer of any of tbose apps so don't come to me if they aren't working: )
Reserved
MidnightHarvester said:
Reserved
Click to expand...
Click to collapse
Thanks sir really appreciated your work
Also please continue to post apk editing posts
Hello,
As mentioned in the subject I am trying to install an application without success, and need some help understanding how to carry out some of the necessary steps...
The app in question is the S5 accuweather application (with the transparency option for the widget), which I have downloaded from these forums (link below)... in the same post as the link to download, the following is stated:
Delete ChnUnifiedDaemon and CMAWeatherPhone2013 from System/app
Click to expand...
Click to collapse
...this might as well be written in Chinese... I did give it a shot though, but didn't get very far - I found the relevant directory with the current weather app installed (i.e. in the system/app directory), but if I try to delete the app which is there it tells me I don't have the permission... ditto for copying in the downloaded app into that directory - I don't have the necessary write permission in the directory...
also, there is an option for activating Full Screen Settings... for this I have to do the change the following value:
SEC_FLOATING_FEATURE_SETTINGS_SUPPORT_FULL_SCREEN --> To TRUE
...where do I find this string, and how can I edit it??? do I need a specific app for it?
Thanks in advance for your help
________________________
S5 accuweather thread: http://forum.xda-developers.com/showpost.php?p=58370203&postcount=27
You need to be rooted.
Lennyz1988 said:
You need to be rooted.
Click to expand...
Click to collapse
I am rooted, and have flashed a custom ROM (imperium )... and thats about the limit of my capabilities. ...
You need to mount r/w. Any decent file browser can do that.
Lennyz1988 said:
You need to mount r/w. Any decent file browser can do that.
Click to expand...
Click to collapse
Well i have es file browser which im sure will do the trick, but i dont know what mounting r/w means... how do i do that?
platypus78 said:
Well i have es file browser which im sure will do the trick, but i dont know what mounting r/w means... how do i do that?
Click to expand...
Click to collapse
Mounting r/w gives you the permission to write or modify the system files.
You will have to enable the Root Explorer feature of ES.
Press the menu key to bring up the left panel and then scroll down. You should find the option "Root Explorer". It's off by default. Turn it on. It will ask you for root permission. Grant it and you should be good to go.
Now you should be able to delete and copy the specified files.
But you will have to set the right permission for the copied files.
To change the permission, long press on the apk, press "More" and select "Properties"
There should be a line called "Permission" and next to it something like "rw- r-- r--". This varies, depending on what you selected. "r" means read, "w" is write and some have "x" which means execute.
Those vary depending on the app.
Change the permission of the S5 weather app to the same as the other apps have on the /system/app folder. Most of them have "rwx r-x r-x". So that's probably what you want to change them to.
Then you have to reboot. If everything is set correctly you should have the app installed on your phone. Good luck
As for that string, I don't know where it is. Maybe ask in the thread.
Thanks Reaper.. that was just the answer I was looking for!
...can anyone help me find the string? or at least give me an idea as to where I should be looking and what app I can use to edit whatever file it is I will need to edit?
platypus78 said:
Thanks Reaper.. that was just the answer I was looking for!
...can anyone help me find the string? or at least give me an idea as to where I should be looking and what app I can use to edit whatever file it is I will need to edit?
Click to expand...
Click to collapse
http://forum.xda-developers.com/galaxy-s4/themes-apps/mod-extra-s5-features-s4-lollipop-t3033812
Hello fellows XDA, after updating my G928T to marshmallow, I can't seem to find setting.db under sqlite or even searching the file doesn't come up in /data/data/com.android.providers.setting/databases. Does anyone know where I could find this file or what may happen to it? Thanks all!
Sent from my SM-G928T using XDA-Developers mobile app
I found some details here: http://stackoverflow.com/questions/...e-settings-how-to-toggle-ringtone-vibration-i
from that page:
"move system settings from db to xml
/data/data/com.android.providers.settings/../settings.db --> /data/system/users/userid/settings_[system|global|secure].xml"
For me it was "/data/system/users/0/settings_system.xml" and I was able to use Root Browser to find and edit it. The file is very long and hard to navigate (i was just using root browsers editor which has no search function) but I was able to add hotspot toggle on my S5 by editing it, just like I used to with the old settings.db
fredknex said:
I found some details here: http://stackoverflow.com/questions/...e-settings-how-to-toggle-ringtone-vibration-i
from that page:
"move system settings from db to xml
/data/data/com.android.providers.settings/../settings.db --> /data/system/users/userid/settings_[system|global|secure].xml"
For me it was "/data/system/users/0/settings_system.xml" and I was able to use Root Browser to find and edit it. The file is very long and hard to navigate (i was just using root browsers editor which has no search function) but I was able to add hotspot toggle on my S5 by editing it, just like I used to with the old settings.db
Click to expand...
Click to collapse
I was able to find it, but after editing and given the right permission also restarted, the setting reset to default and the new changes didn't stick in the new file.
fredknex said:
I found some details here: http://stackoverflow.com/questions/...e-settings-how-to-toggle-ringtone-vibration-i
from that page:
"move system settings from db to xml
/data/data/com.android.providers.settings/../settings.db --> /data/system/users/userid/settings_[system|global|secure].xml"
For me it was "/data/system/users/0/settings_system.xml" and I was able to use Root Browser to find and edit it. The file is very long and hard to navigate (i was just using root browsers editor which has no search function) but I was able to add hotspot toggle on my S5 by editing it, just like I used to with the old settings.db
Click to expand...
Click to collapse
I dont get this, what do you mean with move setting from db to xml do you mean rename or what could you be more detalied ? Thnx
Sry for asking
astrit1 said:
I dont get this, what do you mean with move setting from db to xml do you mean rename or what could you be more detalied ? Thnx
Sry for asking
Click to expand...
Click to collapse
I mean the setting used to be stored in a .db file, but (because samsung changed it i guess) it is now stored in a .xml file. no need to rename anything, just edit the xml.
I was able to find it, but after editing and given the right permission also restarted, the setting reset to default and the new changes didn't stick in the new file.
Click to expand...
Click to collapse
If i recall correctly there are 2 entries pertaining to the toggles and one seems to overwrite the other on boot. Make sure to change both if anyone is still trying to do this. If that doesn't work then I don't know what I did to make it stick.
If i recall correctly there are 2 entries pertaining to the toggles and one seems to overwrite the other on boot. Make sure to change both if anyone is still trying to do this. If that doesn't work then I don't know what I did to make it stick.
Click to expand...
Click to collapse
if he uses only the xxx_reset one they are going to be overwritten by the normal one when he reboots ,it did this to me
fredknex said:
I found some details here: http://stackoverflow.com/questions/...e-settings-how-to-toggle-ringtone-vibration-i
from that page:
"move system settings from db to xml
/data/data/com.android.providers.settings/../settings.db --> /data/system/users/userid/settings_[system|global|secure].xml"
For me it was "/data/system/users/0/settings_system.xml" and I was able to use Root Browser to find and edit it. The file is very long and hard to navigate (i was just using root browsers editor which has no search function) but I was able to add hotspot toggle on my S5 by editing it, just like I used to with the old settings.db
Click to expand...
Click to collapse
I found that xml, I copied it on my pc, opened in browser but in that xml I couldn't find anything related to mobile data toggling, or notification toggling like this: notification_panel_default_active_app_list. Could you pls tell me how did you manage to add mobbile data toggle using this method? I'm on Sprint N920P. Thanks in advance