Must encode Samsung OMC/CSC feature XMLs? - Android Q&A, Help & Troubleshooting

In Android 10+ / OneUI 2+ era Samsungs, if an OMC/CSC XML file originally came encoded, does it need to stay that way, or can a plaintext XML be used in its stead?
I noticed that even the original files aren't all encoded: cscfeature.xml and cscfeature_network.xml are encoded, customer.xml isn't.

Answering myself:
No need to encode. Plaintext works.

Related

Guide To Modifying SPB Mobile Shell 3.5

This thread will serve as a bottom-up guide to modifying SPB Mobile Shell 3.5. Any help and links is appreciated and will be incorporated.
Last updated: 10/24/09
*Basics of SPB Mobile Shell 3.5*
Areas of the program that can be modified are based on an XML architecture.
Entering the Program Files folder, one finds many files named *.dat. Many of these correspond to concepts or widgets that are easily familiar: clocks and etc., and several of them are responsible for the larger structure and feel (qa_layouts, for example). A more comprehensive listing of all the include files is:
[To come]
*.DAT Structure*
.dat files that can be modified are actually standard .zip archives. Simply copying them over to your PC, changing the file extension from .dat to .zip, then opening the archive and extracting the files inside, shows you all that comprises a given widget or layout.
assword: In extracting files from the .zip, one will be prompted for a password, which is universally b0fm18zq .
The files contained in an archive are generally a mix of .xml files (determination layout, composition and functionality) and .bmp (image files that correspond to the different looks a widget may have). The .xml files may be viewed and edited in any standard text editor, like Notepad++, and the .bmp files can be viewed and edited in anything from Photoshop to Microsoft Paint (though, for exactitude, Photoshop or similar is best).
*What Goes Into a Widget*
A widget is defined by three specific files (with filename containing the three prefixes qa_, va_, and ma_), as well as by XML references in files like qa_layouts.dat and qa_layouts_bup.dat.
*Simple Widget Appearance Modification*
Luiggi's 9 Icon Build Guide: http://rapidshare.com/files/101365258/9_Icon_Build_Guide.zip
Just making a quick link here to another forum thread for Vostradamus Mobile Shell Manager. Besides the app there's also a lot of information there on how to modify widgets:
http://forum.xda-developers.com/showthread.php?t=689087

Xml editor

Hello,
Can somebody give me xml editor?
With notepad ++ i get strange letters.
Its for editor yhe centre cloxk.
Thx
Verstuurd van mijn GT-I9300 met Tapatalk
TEXT EDITOR: PSPad (version 4.5.4 ). Supports different languages, including Italian, is free and compatible with Windows. Main Features: ftp client to edit files remotely, project management, hex editor full, the library tidy integrated allows you to format and check the HTML code and convert it to XHTML, XML, CSS, automatic correction, editing text files of any size and comprises a recorder of macro ... This is a HTML editor advanced, on the site is available in trial version, it supports Windows 64-bit, supports various languages, is available at Linux version and is developing a version for Mac. Main Features: hex editor, supports other languages (PHP, Perl, Java and Javascript), syntax highlighted output, unicode support, ftp client to edit files remotely toolbar with HTML features preconfigured, has template and list of functions like a tree, with parameters, variables and properties .... VISUAL EDITOR: Nvu (version 1.0 ).
Completely free, compatible with Windows, and a WYSIWYG editor also ideal for those who do not know HTML. Supports XML, Javascript and CSS, is available in italian, is equipped with an attractive interface and contains all the features of its main competitors (which all require license).
It is possible to download the source code since the editor is open source and you can make all the changes you want ..... ONLINE EDITOR: Ecoder (version 0.4.8 ). Open source, and has the function of syntax highlighted output (in real-time), contains a file manager and a file uploader, allows you to edit multiple pages simultaneously.
Supports all browsers except for Microsoft Internet Explorer 6, and great for making small changes to the code and does not require any registration to be used..

Share Your Boot Battery_scale

This is your battery view when your device is turned off and plugged in.
This thread is Made for the S5 specifically (though these images can be used if rescaled to the right size.
The file can be known as Battery_scale.PNG
The file can be Located at. /res/images/charger
The file is a Multi surface image. Basically a zip png
To extract All the ".PNG" files use. https://github.com/Aaahh/Battery-Images-Replacer
Thanks to @Aaahh for making this a lot easier
Originally posted by cunha17 @ https://forum.xda-developers.com/showthread.php?t=1609059&page=5
Battery-Images-Replacer (forums.oneplus.net/threads/battery-charging-image-replacer.186460) is a way to easily change the battery boot animation. You can use Aaahh provided images or change them and make your own flashable zip. There are 2 problems in that solution, first it is directed to a specific platform (oneplus) and second, it does not work in Marshmallow (CM13).
I figured out a way to make Battery-Images-Replacer to work in Android 6 (Marshmallow) and problably in 5 (Lollipop). Just stating that I'm using CM13 in a Galaxy S3 (i9300) phone, but the code is the same one Aaahh provided with two minor changes:
The battery_?.png and battery_charge files are deprecared in 6.0, and replaced by battery_scale.png (multi surface image) with mandatory 6 frames (hardcoded in Android). To make Battery-Images-Replacer work with previous Android versions, the deprecated files are kept; and
The block device in anykernel.sh file needs to be generalized to work in i9300 (my case) and maybe others, so it was replaced at line 9 with: block=`find /dev/block/platform -name BOOT`;
Warning: be shure to do the 2nd step above, or the flashing will not work, but also, you may brick your phone!!!
But the catch is the creation of the new battery_scale.png file. In this case, we have the 6 single surface images (battery_?.png files) and want to make a "Multi Surface Image" file compliant with Android 6.0.
I made the following script (create_multi_surface_image.sh) that convert multiple PNG to a single "Multi Surface Image", you just need to change the FILES and SCALEFILE variables if needed. This script uses ImageMagick, exiftool and pngcrush to do the job. Just run the script where the battery_?.png files are.
create_multi_surface_image.sh
Once the battery_scale.png is created, you need to copy it to the Battery-Images-Replacer-ak-opo-anykernel/charger/ directory if you didn't run the script there. Go to the base directory (Battery-Images-Replacer-ak-opo-anykernel) and run "zip -r ../Battery-Images-Replacer.zip ." and you should get the flashable zip file at the parent directory.
Now transfer the zip file to your phone (adb push, usb file transfer, etc) and make shure that the file is available to TWRP ou CWM. Boot into recovery and flash the zip file. Turn off the phone and start charging. Enjoy your new battery animation.
I will attach the battery_surface.png file if you just want the final result using the source files (battery_?.png) provided by Aaahh and available at github.com/Aaahh/Battery-Images-Replacer.
Thanks Aaahh for the great job!
And what you have waited for
(Please note this is from my device which is running RR9.0)
(Edit will upload via computer as labs doesn't let edit an add images)

Problems uploading folder from computer to Android 7.1.1

Hello, I posted this question in smartwatch section https://forum.xda-developers.com/smartwatch/other-smartwatches/problems-uploading-folder-kospet-prime-t4134253/post83076165#post83076165 but no answer so I'm going to try in general Android questions.
I'm trying to upload a folder (from windows 10 pro 2004 to Kospet Prime firmware 1.8 and Android 7.1.1)with watch faces that contains 869 elements as you can check in my windows 10 pro computer screenshot: Folder elements number to upload https://ibb.co/cvfcHsd
When I finish uploading through Windows 10 copy folder or compressing and uploading that folder with windows 10 copy native tool or I upload all those 869 elements with clockskin transfer, and I check clockskin folder in smartwatch, I can only see 445 elements so I'm missing half of information, check screenshot: Clockskin smartwatch folder number elements https://ibb.co/KbCsZs7
I checked in windows 10 with treesize to see how many files I have and uploading folder has 28710 files as you can check in screenshot: Treesize file number in computer uploading folder https://ibb.co/BKHRSwR
My question is without any windows copy failure, can I be reaching file number limit in Kospet Prime?
I finnaly achieved compressing computer watch faces folder, uploading to smartwatch and uncompressing it but in a different folder of clockskin because everytime I tried to uncompress inside clockskin folder, I only got like 400 watch faces but this time I uncompressed in a different folder and copy from there and I "patched" the problem but it should have works with other methods. Could it be Xiaomi file explorer and his integrated uncompressor? Could it be android file system that doesn't support like 30.000 files? I don't know which file system will be using but as is based in linux should have higher file number supported.
Regards and thanks
knopfler1980 said:
Could it be android file system that doesn't support like 30.000 files? I don't know which file system will be using but as is based in linux should have higher file number supported.
Click to expand...
Click to collapse
The number of files basically isn't restricted on Android but of course limited by partition size.
BTW: Android's storage is partitioned, each partition is formatted with a specific FS ( i.e. ext3, ext4, fat32 ):
ext3 supports file size up to 16 GB, ext4 supports filesize up to 16 TB & fat32 supports file size up to 4 GB.
jwoegerbauer said:
The number of files basically isn't restricted on Android but of course limited by partition size.
BTW: Android's storage is partitioned, each partition is formatted with a specific FS ( i.e. ext3, ext4, fat32 ):
ext3 supports file size up to 16 GB, ext4 supports filesize up to 16 TB & fat32 supports file size up to 4 GB.
Click to expand...
Click to collapse
Thanks a lot and sorry for my unknowledge about it, I knew like in any linux should be limited by file system type. I believed that number of files is limited by inodes limit number which in ext4 according to this link https://ext4.wiki.kernel.org/index.php/Ext4_Disk_Layout should be:
64-bit mode
Item 1KiB 2KiB 4KiB 64KiB
Inodes 2^32 2^32 2^32 2^32
I guess that Android 7.1.1 should have a default block size which I think is 4KiB so it should have 2^32 inodes limit which according to this online calc https://planetcalc.com/313/ it should be 4.294.967.296 millions of inodes (like 4.300 millions) so real high to be limited by file system so I don't know what it's happening. Now that I upload a zip folder and uncompress with Xiaomi file manager uncompressor but uncompressing it in a different folder instead of clockskin smartwatch folder and copying from there to clockskin folder I get now like 900 elements, so now "it's working" but not the times I uploaded uncompressed or through clockskin transfer app that creates a web server in smartwatch (even more, in that web server I can only see like 600 watch faces when I should have more)
Thanks a lot for your help, I appreciate it!! No idea what's happening, I even found folders that I uploaded with deleted content in computer so I used treesize to check every folder with low files number and compare with original watch faces folder file number (the uploading folder I use is in desktop while downloaded watch faces are saved in another disk) so theorically now I don't see in clockskin web app any watch face incomplete (it happened several times I found watch faces image not complete and was missing information in desktop watch face folder so I have to look for it in other partition where I had watch faces or even in the website because I didn't found them!!! ) so weird thins are happening. I checked for computer hacking closing chrome that I have lot of opened tabs, and I used current ports and I didn't see any strange connection, maybe 7zip is corrupting source folders during compressing and upload incomplete folders because of 7zip compression deleting source folder content? It happened with several folders and several times as I said fortunatelly now I don't see any of the 600 watch faces incomplete (although I should be seeing around 1000 watch faces). Well, I will discard file system problem and I will focus more in 7zip, xiaomi file explorer applications of a source of problem.

Attempting to pull assets, images, and resources from an APK

I am attempting to extract the images from the game Summoners War to use for wallpapers and such.
I am able to get the APK file and have the image files in question in the assets folder, however they are not able to be opened in any image editor or photo viewer, I believe that they are encrypted. I do have access to the source code through Jadax, but I am not sure how to locate the key to decrypt them, or how exactly to decrypt them even if I had said key.
How does one go about extracting the images so I can use them for PC/phone wallpapers?
Solved.
Delete the first 16 bytes of hex data, then change the file extension to .jpg.

Categories

Resources