Problems uploading folder from computer to Android 7.1.1 - Android Q&A, Help & Troubleshooting

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.

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

Info for anyone having touble getting RemixOS to boot from an NTFS drive...

I wanted to put this here as an FYI for anyone having trouble getting RemixOS to load from a Windows NTFS drive...
I was having trouble with this until I found that my "RemixOS" folder (that the OSs was being installed into) was a compressed folder. It had gotten created that way by the RemixOS installer. Note that Windows (in my case Windows 10) will sometimes create a new folder as a "compressed" folder, even if not requested to. (Perhaps it does this if there is less than a certain percentage of disk space.) The UEFI boot routines (that load RemixOS on EFI BIOS systems) do not handle compressed NTFS folders/files well. Once I decompressed these folders/files, RemixOS booted.
@mediawiz
Quote:
"I noticed that if I arranged my documents folder by "date modified" I could not create a folder, only a compressed one. I then clicked, arrange by "folder", and I could add a normal folder."

Backup and restore a Chrome extension?

I have an extension that is no longer available on the Chrome store. I'd like to be able to back it up on my Chromebook and restore it, since I think it will not be restored after I update the Chrome OS (it will presumably fetch the available extensions from the store).
My Chromebook is in developer mode. So I wonder can it be done from the shell?
I tried enabling developer mode in chrome://extensions, but pack extension does not allow me to see any system root directory, and I have the additional challenge of figuring out which extension it is in /home/chronos/user/Extensions/.
I'm not really sure where to go from here. Any help with this would be really appreciated!
beetroot said:
I have an extension that is no longer available on the Chrome store. I'd like to be able to back it up on my Chromebook and restore it, since I think it will not be restored after I update the Chrome OS (it will presumably fetch the available extensions from the store).
My Chromebook is in developer mode. So I wonder can it be done from the shell?
Click to expand...
Click to collapse
Can you see the ID of the extension at the very bottom of its listing in chrome://extensions/? If you can.... I just tested out the following with an extension chosen at random, and it worked fine for me, although I suppose it may depend on the extension...
Copied the ID of the extension (at the very bottom of its listing in chrome://extensions/), then:
sudo su
find / -iname theidoftheextension
cp -a -r /home/chronos/user/Extensions/theidoftheextension /media/removable/UNTITLED/
Back in chrome://extensions/
Clicked Packed extension > chose the folder above the one containing manifest (in my case /media/removable/UNTITLED/theidoftheextension/0.1.2_0/)
Clicked Pack extension
Opened /media/removable/UNTITLED/theidoftheextension/ in file browser
Dragged the newly-created packed extension /media/removable/UNTITLED/theidoftheextension/0.1.2_0.crx over chrome://extensions/
It installed! Actually I tested it three times, resulting in three copies of the extension. Having said that, if you only have one copy of the extension, perhaps it would be better to test the .crx out on another copy of Chrome first, in case it somehow overwrites/breaks the copy you have installed.
Nolirum said:
Can you see the ID of the extension at the very bottom of its listing in chrome://extensions/? If you can.... I just tested out the following with an extension chosen at random, and it worked fine for me, although I suppose it may depend on the extension...
Copied the ID of the extension (at the very bottom of its listing in chrome://extensions/), then:
sudo su
find / -iname theidoftheextension
cp -a -r /home/chronos/user/Extensions/theidoftheextension /media/removable/UNTITLED/
Back in chrome://extensions/
Clicked Packed extension > chose the folder above the one containing manifest (in my case /media/removable/UNTITLED/theidoftheextension/0.1.2_0/)
Clicked Pack extension
Opened /media/removable/UNTITLED/theidoftheextension/ in file browser
Dragged the newly-created packed extension /media/removable/UNTITLED/theidoftheextension/0.1.2_0.crx over chrome://extensions/
It installed! Actually I tested it three times, resulting in three copies of the extension. Having said that, if you only have one copy of the extension, perhaps it would be better to test the .crx out on another copy of Chrome first, in case it somehow overwrites/breaks the copy you have installed.
Click to expand...
Click to collapse
Thank you, Nolirum!
I did as you suggested, and installed Chromium in Crouton to test it. I get the error "This can only be added from the Chrome Web Store" when I try dragging in the .crx.
When I try 'Load unpacked extension' option in chrome://extensions I get the following error:
Failed to load extension from: /Volumes/KINGSTON/theidoftheextension/5.0_0
Cannot load extension with file or directory name _metadata. Filenames starting with "_" are reserved for use by the system.
Click to expand...
Click to collapse
I saw this on Stackoverflow about the error. I deleted the leading underscore from metadata folder and it works! Yay!!
https://stackoverflow.com/questions...ebstore-throws-error-package-is-invalid-detai
No problem!
Out of interest, when you dragged the .crx onto Chromium, and got the error, was that with dragging it directly into the list of extensions in the chrome://extensions/ window (where you see the icons, details, extension IDs etc)? Just wondering, as I get that error if dragging a .crx on to the browser address bar or on a webpage, but not if I drag it into the extensions list directly.
In any case, interesting info about the metadata folder nonetheless. I remember having to do the same (deleting the underscore) for some extension I was trying to edit. It's reassuring to to read that _metadata is just Web store hashes, and that modifying it shouldn't affect functionality.
Nolirum said:
No problem!
Out of interest, when you dragged the .crx onto Chromium, and got the error, was that with dragging it directly into the list of extensions in the chrome://extensions/ window (where you see the icons, details, extension IDs etc)?
Click to expand...
Click to collapse
Yes, I was dragging into the extensions list. When I try it a little popup says something like "drop to install" then the error.
Interesting. I don't get that error (tried on Chromium, too). Perhaps it depends on the extension. Thanks for checking.

Remix OS Hacked Graphics Upgrade!

Well somebody shut down my ramdisk hack it doesn't work anymore. Next I would like to thank the folks at Bliss ROMS for their hard work Electric Juses creative name. This is a MOD for RemixOS Hacked. I recommend installing Mount Image File and EXT4 driver for Windows. It gives you true ROOT! First download and extract Bliss ROMS x86_64 iso then mount your system image. Copy media_codecs and ffmpeg xmls. You will find them in the etc folder and paste them to your etc folder in Remix OS. Then go back to Bliss and open the vendor folder and copy bin, lib and lib64 folders and paste them to your usr folder in Remix. Then to tie it all together open notepad++ and create a text file you will save as userinit.txt. Then rename it to userinit no extension. This is the script.
#!/system/bin/sh
/system/usr/bin/rtk_attach
Their is the script now paste it to etc/init.d folder in Remix OS system image. Then go to the build.prop file and change persist.sys.disp_density=240 then change ro.sf.lcd_density=240. Unmount the image and boot Remix OS it will take a little bit longer than usual to boot but you will notice the difference with the display and audio. KILLZ! I recommend you should check out SET TV it's a APK file and for$20.00 US a month you get 500 channels and here is the kicker you can install it on three devices anyways I figured it out thanks again to Bliss ROMS and this will truly make your Android x86 system image The Green Machine!
bro will videos will work in apps like youtube app etc...
cos remix os hacked 2.0.205 had ffmpeg puilt in but was removed in 3.0.202.
pls tell.
Can you link "Mount Disk Image" and EXT4 Driver For Windows" ?

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