folder/directories in internal Filesystem - Bada Software and Hacking General

Any ideas how to remove folders? For instance here somewhere:
SystemFS\Osp\test
Such an folder I can create for instance with PSAS.
Other Tool for folder creation should be Broker.exe from SDK... I will attach soon in other Thread as for install Apps via Cable...
Best Regards

It seems folder User is not so protected...
I can create and remove folder in User... with PSAS 1.15
I created test folder in Osp...
Osp/1234567
PSAS nor other Filemanager can remove/delete as protected. BUT we can do this with Multiloader and *.pfs files.
Debug/PfsDeleteList.txt
Here you can edit files/folder to remove them.
More details:
http://forum.xda-developers.com/showpost.php?p=10618380&postcount=42
Under progress. I used other *.pfs ... 20 MB... but successfully.
Best Regards

I've created template + example for 1024 Byte big Debug/PfsDeleteList.txt
With PSAS I've created folder:
Osp\Applications\jnh2vwwny6\Bin\test
Now with PFS_S8500DeleteListExample1KB.pfs in Multiloader I can remove this folder.
WARNING!
At your own risk create Delete List. As you can nuke every system file/folder you wish...
You can check my example via TriX. Seems Header also correct...
MD5 check at End of file is removed.
Best Regards
Code:
FS Image: PFSBIN
Files: 3
Total size: 1.0 KB
Size in image: 16.0 KB
---------------------------
<1.> List Files
<2.> Dump files
<3.> Upload files
<0.> Quit
/Debug
/Debug/PfsDeleteList.txt
/Debug/pfsdummy

Related

Extract img,bin !!!!!!

Hello.
I have with rom image. Now I want change some files.
How can I extract files to edit resources ?
I download resoures using TestWM5 from SGH-i600 and some files dosen't have.
example: bbres.dll.
I wrote program in C# to read file to memory using MemoryStream, when
i want read file i have error : UnauthorizedAccessException - it's problem with privileges?
if the system you wanna dump is WM5.0, it's a easy work. Use grab_it or other util to dump the rom to raw BIN image file, then take IMGFS_TOOLS to extract files.

Extracting shellres.192.dll.mui (0410) does not work.

Hello, i'm trying to extract the 0410 italian version of that mui but it just don't want to be extracted. I mean, i tried ROM Extractor and i get the error unable to copy. Now i'm trying to use Total commander, but each time i try to paste the copied file into storage memory, first i get the prompt that target file already exists, owerwrite? (the target file on the storage memory is 0 byte, 1.01.1601 1:00:00) If i choose yes, it says unable to copy/move file.
Any idea?
You'll only be able to do it with ROM Extractor. Just make sure you have a path in the Save To field as by default it doesn't have one (\ will save it to the root directory of the device) and a name in the Save as field.

[Tool] Mod of Suiller'UC -> SUPER EASY Auto restore (Like UC/UC2) Just by copy/paste

[Tool] Mod of Suiller'UC -> SUPER EASY Auto restore (Like UC/UC2) Just by copy/paste
Hi everyone,
I started the thread because I wanted to "promote" a nice way to restore cabs and regs after flashing.
I found this script way more useful than UC or UC2 as you don't have to edit files, convert reg to xml files etc. just put the file you want in folders and launch one script
... how this can be more simple ?
This nice script was just missing a script to copy files and folders to the device or the storage card.
This script should be device independent, so please test and report.
The first version of this script has been extracted from an other script created by Suiller for the rom Macadam V1.2. (discontinued)
I ripped the restore part of this script to use it on other roms
INSTALLATION/USE
Just Un-zip the attached file and place the folder "Backup and Restore" in the root of your storage card.
Then you just have to copy:
- .cab you want to install in the folder cab (cabi for those you want to install on storage card)
- .reg in the folder reg
- .exe for files you want to execute
- Files and folders in the folder "Files"
Files included in the zip:
- # Create Folder structure.mscr
- 1 install MortScript420 if needed.cab
- 2 Start Restore.mscr
- Config.mscr
- config.txt
- PimBackup.exe
- TaskMngr.exe
How to use:
1) Extract the zip into the root of your storage card
you will have a structure like:
\internal storage\Backup and Restore\CAB
\internal storage\Backup and Restore\CAB\CABi
\internal storage\Backup and Restore\EXE
\internal storage\Backup and Restore\Files
\internal storage\Backup and Restore\REG
...
2) install mortscript (if not already installed on your rom)
3) run the script "# Create Folder structure.mscr" if you want the "default" suiller UC structure (not mandatory)
4) populate the folders with .cab, .reg, .exe and files to match your needs
5) start the script "2 Start Restore.mscr"
6) be patient and note the the CABi script is not perfect (already installed cabs, errors etc... will fail)
Explanation for the folder "Files":
All files and folders in the folder "Backup and restore\files" will be copied to the divce starting from the root of the device.
Example:
\Backup and Restore\Files\Windows\Start Menu\Programs\Tomtom.lnk
\Backup and Restore\Files\Program Files\Home2\Db.xml
\Backup and Restore\Files\Internal Storage\Program Files\Opera Mobile\profile\opera6.adr
Will be copied to:
\Windows\Start Menu\Programs\Tomtom.lnk
\Program Files\Home2\Db.xml
\Internal Storage\Program Files\Opera Mobile\profile\opera6.adr
Note: The *.cab and *.reg execution is by alphabetical order, so if some cabs/regs need to be restore before others rename them (for example A_Resco explorer, B_Resco registry Etc ...)
Enjoy !
The only thing this script misses is:
- a copy folder where to put files and folders to be restored to device and internal storage(for shortcuts, ringtones, folders to copy/create automatically) - Done, thanks to Myself ... found inspiration around
- support of other roms for other phones (the name of "internal storage" for example) - done, thanks to Suiller - need feedback now
----------------------------------------------------------------------------------------------------------------------------------------------------
Edit:
V3.1 Added create folder "Files" in script "# Create Folder structure.mscr"
V3.0 Added Copy files and Folders
V2.1 Bug, not importing *.Reg - fixed
Changed some timings and paths
V2.0 Some improvements and auto detection of the name of the storage card
http://forum.xda-developers.com/showpost.php?p=3988330&postcount=9
V1.0 Simple restore Cabs and Exe
more infos:
daeshawn said:
sounds like an idea..personally i was never good with scripts etc..but looks like this simplifies it...i might give it a try tonight after work!! thanks
Click to expand...
Click to collapse
thanks !
this link can help:
http://forum.xda-developers.com/showthread.php?t=440683
for the usefulness of a COPYi, i think it's still interresting to be able to copy files from "internal storage" to "internal storage" for example to overwrite config files, or patch installed programs etc.
I think this function has been already written but not integrated with the actual script.
more info on what the previous version of this script was able to do, extracted from the link given before:
suiller said:
The previous version of this script was able to:
- after rom installation an automated procedure will ask you: configure general speed & GPS profiles; remove ActiveSync time change queue (stop popup every 5 min); left/right softkey configuration; CAB & CABi + REG + EXE installation/execution (as mentioned above) + upx compression phase, then choose backup method & eventually load a restore, restore previous saved Start Menu + tweakPers script and for finish reboot to apply changes
- once your cab installation is completed and the reboot phase is done you can open tweakPerm under Scripts folder (simple notepad is enough) and read carefully the comments inside, take inspiration & make changes (copy/paste) in the tweakPers script (an example is here); all these scripts are independent, so for example you can use tweakPers at any time, after every hard reset or a new flash the only one that wont touched is that script (this is the reason why your personalization should go in that file)
- then you can re-organize shortcuts in your "\windows\Start Menu" directory to fit your needs, then run the script "backupStartMenu", this will make a copy of your "final" start menu directory, useful to preserve your original Start Menu structure (in this way it can be restored automatically on next flash)
- the last important folder (always under "Backup and Restore" directory) is "pimbackup", under this directory will be saved automatic pim backups during night(contacts/sms/call logs/et cetera)
Click to expand...
Click to collapse
Tuto: How to format your diamond (not internal storage) before flashing:
Why this procedure ? : Because it works and because it's easier than flashing the original HTC stock rom before flashing a cooked rom... and also because flashing an original htc stock rom was not enough sometimes to stop my strange problems on my diamond when flashing rom's.
Here we go:
1. bring the device to bootloader. in diamond: (Volume down + reset)
2. Launch ActiveSync on PC
3. Go to connection settings
4. Uncheck the Allow USB Connection
5. Now, run mtty 1.42_538 on your PC.
- Select USB from the "Port" drop-down on the upper left corner of the dialog box and hit OK
- another screen will come up. Hit enter and that will show "USB>"
6. CMD>task 29
- wait untill finished then exit.
7. Flash the ROM of your choice.
Download executable and Infos: see attachment
Just one question. Has Suiller or Danny_and_2 given you permission to release this independently?
shaks1979 said:
Just one question. Has Suiller or Danny_and_2 given you permission to release this independently?
Click to expand...
Click to collapse
Hi Shaks,
I've sent previously PM to Suiller, if he disagree, I will remove it.
for me it's ok... and in the meanwhile I prepared a separate sUC.cab to use for high-personalizations also on uncapable UC roms, I haven't tried at 100%, but it worked perfectly in a couple of roms (for ex. the last I tested was the one made by Dazzza); the cab includes ALL the functions enabled by default on Dia Duit rom series, plus I removed stuff touching the SYS, so it should work on every diamond rom; I added also the auto recognition of "Storage" name... so should work without troubles also on NON WWE roms
attachments:
sUC.cab (is the pre-compiled, ready to run cab)
sUC.zip (is the source)
tweakPers.zip (is an example of personal tweak script, the only one the wont be touched on future upgrades, so put there all your very personal stuff)
MortScript420.cab (guess??)
if the rom is UC compliant simply your sdconfig.txt will look like:
Code:
LOCK:Enabled
CAB :\Internal Storage\MortScript420.cab
CAB :\Internal Storage\sUC.cab
LOCK:Disabled
RST: Reset
in this way at 1st boot will be installed both mortscript & sUC, then at 2nd boot will start standard sUC procedure
if the rom isn't UC compliant simply after rom flash run 1st mortscript cab & then sUC cab, it will ask to restart & automated procedure will start
If you have time, starting from this thread I can pass all the info you need, for example could be useful write a better guide for using this way, I tried but not so able to explain in few words perhaps making some real life examples... anyway good idea... I think a sort of unification must be made (sUC + UC + UC2, or whatever)
bye,
davide
ps: in the nataly rom series even if mortscript is yet installed the full version is required too, so reinstall the mortscript cab also in those roms
ps2: I added also the folder CPY always under "Backup and Restore" master folder, all files putted there will be copied (without overwrite) under \windows folder... for example I use it to install in a fresh rom my personalized icon dll, my background, etc... so after restoring the "Start Menu" the system will find without trouble the needed icon dll
Hi Davide,
Thanks A LOT for all this, there is a lot of work in those attachments ...
I'm not a developer but I can read a script.
This script contains a lot of changes since the one I use.
On the scripts you uploaded there is a lot of customisations and registry tweaks.
I think a lot of people will not want to modify the settings made by their "chef".
So, with your permission, I will try to remove all what is not related to the restore/auto install of cabs, regs and files.
I will also extract the script to create the folders on the internal storage for an initial setup of the solution
I prefer also to have for example pimbackup.exe in the folder "backup and restore" so nothing needed on the /windows folder.
If you agree, I will do those extraction of your code to make things simple:
- no installation (just copy)
- maybe extract the script to create folders architechture
- 1 script to start the restore of what is in the backup and restore folder.
- If users want to customize, they will extract registry keys in .reg files and put them in the /reg folder
This may take time as tomorrow I'm going to Greece for 2 weeks (for work :-s)
for me it's ok... you can make all the changes you feel/need
anyway the tweakPerm is just a base from where take "inspiration" for not skilled users, all personal stuff should go instead into tweakPers script
for example, I suppose, that many don't know how to setup a default ring, or sms sound, or alarms, etc... without a single touch by reading tweakPerm (copied into Back and Restore) they can have an idea
good job friend & have a nice trip
Ok,
Here is the "new" restore script based on the updated file received from Davide.
I removed all that's not related to the restore (many customisations of the rom); this script need no installation (except mortscript if not available in your rom)
What's included:
- # Create Folder structure.mscr
- 1 install MortScript420 if needed.cab
- 2 Start Restore.mscr
- Config.mscr
- config.txt
- PimBackup.exe
How to use:
1) Extract the zip into the root of your storage card
you will have a structure like:
\internal storage\Backup and Restore\CAB
\internal storage\Backup and Restore\CAB\CABi
\internal storage\Backup and Restore\CPY
\internal storage\Backup and Restore\EXE
\internal storage\Backup and Restore\REG
...
2) install mortscript if needed
3) run the script "# Create Folder structure.mscr" if you want the "default" suiller UC structure, but it's not mandatory
4) populate the folders with .cab, .reg and .exe files to match your needs
5) start the script "2 Start Restore.mscr"
6) be patient and note the the CABi script is not perfect (already installed cabs, errors etc... will fail)
Note:
The content of the CPY folder will be copied to the /windows folder.
TO DO:
If someone is able to create a copy routine (with overwrite) who can take in charge a complete structure it will be appreciated a lot.
Example:
(Using a new subfolder Backup and Restore\Files)
\Backup and Restore\Files\Windows\Start Menu\Programs\Tomtom.lnk
\Backup and Restore\Files\Program Files\Home2\Db.xml
\Backup and Restore\Files\Internal Storage\Program Files\Opera Mobile\profile\opera6.adr
Will be copied to:
\Windows\Start Menu\Programs\Tomtom.lnk
\Program Files\Home2\Db.xml
\Internal Storage\Program Files\Opera Mobile\profile\opera6.adr
Enjoy
sjauquet said:
Ok,
Here is the "new" restore script based on the updated file received from Davide.
I removed all that's not related to the restore (many customisations of the rom); this script need no installation (except mortscript if not available in your rom)
What's included:
- # Create Folder structure.mscr
- 1 install MortScript420 if needed.cab
- 2 Start Restore.mscr
- Config.mscr
- config.txt
- PimBackup.exe
How to use:
1) Extract the zip into the root of your storage card
you will have a structure like:
\internal storage\Backup and Restore\CAB
\internal storage\Backup and Restore\CAB\CABi
\internal storage\Backup and Restore\CPY
\internal storage\Backup and Restore\EXE
\internal storage\Backup and Restore\REG
...
2) install mortscript if needed
3) run the script "# Create Folder structure.mscr" if you want the "default" suiller UC structure, but it's not mandatory
4) populate the folders with .cab, .reg and .exe files to match your needs
5) start the script "2 Start Restore.mscr"
6) be patient and note the the CABi script is not perfect (already installed cabs, errors etc... will fail)
Note:
The content of the CPY folder will be copied to the /windows folder.
TO DO:
If someone is able to create a copy routine (with overwrite) who can take in charge a complete structure it will be appreciated a lot.
Example:
(Using a new subfolder Backup and Restore\Files)
\Backup and Restore\Files\Windows\Start Menu\Programs\Tomtom.lnk
\Backup and Restore\Files\Program Files\Home2\Db.xml
\Backup and Restore\Files\Internal Storage\Program Files\Opera Mobile\profile\opera6.adr
Will be copied to:
\Windows\Start Menu\Programs\Tomtom.lnk
\Program Files\Home2\Db.xml
\Internal Storage\Program Files\Opera Mobile\profile\opera6.adr
Enjoy
Click to expand...
Click to collapse
it's a good idea & above all not so difficult to implement... the overwrite thing depends, of course, if you want overwrite a file flashed inside the rom... in this case, as you know, it's not possible... better on some files could be possible but it's very complex
for the same speech upx compression works only with EXE files installed post the flashing phase, for example it will work with exe files from extra cab installation
suiller said:
it's a good idea & above all not so difficult to implement... the overwrite thing depends, of course, if you want overwrite a file flashed inside the rom... in this case, as you know, it's not possible... better on some files could be possible but it's very complex
for the same speech upx compression works only with EXE files installed post the flashing phase, for example it will work with exe files from extra cab installation
Click to expand...
Click to collapse
Yes, if someone can write this it will be mostly to copy/overwrite installed application with settings or shortcuts.
Hi,
is this method better than sashimi? just ive had sashimi fail once or twice recently with certain cabs.
thanks in advance
MG
Excelent thread - I tested and work correctly. Save a lot of time!
COPY> Maybe it will be easier create simple .bat for windows and 3 phaze will be on pc: copy files from PC to special folders in Diamond. What do you think? It is easy to wrote I think.
REG> Is one thing that not work correctly. I exported registry key from Rasco Explorer. Put this to reg folder but it was not imported to system Do you know why?
s2007 said:
Excelent thread - I tested and work correctly. Save a lot of time!
COPY> Maybe it will be easier create simple .bat for windows and 3 phaze will be on pc: copy files from PC to special folders in Diamond. What do you think? It is easy to wrote I think.
REG> Is one thing that not work correctly. I exported registry key from Rasco Explorer. Put this to reg folder but it was not imported to system Do you know why?
Click to expand...
Click to collapse
COPY ... yes, of course it's possible, but you can also do it easily with mortscript...
And the main goal of this script is to make all install automatic, so everyone can restore his PocketPC if he can copy/paste )
REG In my case it works perfectly, probably because I install resco registry before (via cab)
> REG In my case it works perfectly, probably because I install resco registry before (via cab)
I too but not work. Anyway it is not a lot of addiotional work for me.
And I used v1 your script not v2.
s2007 said:
> REG In my case it works perfectly, probably because I install resco registry before (via cab)
I too but not work. Anyway it is not a lot of addiotional work for me.
And I used v1 your script not v2.
Click to expand...
Click to collapse
You can try with the V2.0, just rename your backup and restore folder et create a new one with only a .reg file inside.
I just made a second test now and it was flawless (with bsb 6.5L)
Please ask me how can I do backup/restore settings of Today screen Panels/Pages (I use all time Chrome Editor to customize it but it take a lot of time ). Is there key in registry or config file that can I restore after reinstalation? I need fast restore after HR or rom update rom my Today (WM6.5) screen.
s2007 said:
Please ask me how can I do backup/restore settings of Today screen Panels/Pages (I use all time Chrome Editor to customize it but it take a lot of time ). Is there key in registry or config file that can I restore after reinstalation? I need fast restore after HR or rom update rom my Today (WM6.5) screen.
Click to expand...
Click to collapse
Sorry, I do not use Titanium, but you should find easily the keys in the registry
Hi this sounds great. I was always scared of by the normal UC or even SASHIMI. Your version is probably as easy as it gets.
Can I include PIMBackup with this?
The main goal is to restore my contacts/SMS/Call logs and then restore the manila favourite contacts tab. I thought this should be possible by just restoring the registry entries for the contacts tab, is that correct?
Cheers
konrad.schafers said:
Hi this sounds great. I was always scared of by the normal UC or even SASHIMI. Your version is probably as easy as it gets.
Can I include PIMBackup with this?
The main goal is to restore my contacts/SMS/Call logs and then restore the manila favourite contacts tab. I thought this should be possible by just restoring the registry entries for the contacts tab, is that correct?
Cheers
Click to expand...
Click to collapse
PIMBackup is included and if put in the folder EXE it will lauch automatically at the end.
The contacts are not stored in the registry, but in db files

[Q] thumbdata3 file 1.5 gb Need Help

Hay guys
I am facing some strange issues on my galaxy nexus 4.2.2 unrooted
I have notice that in my phone there is a file name THUMBDATA3-1763508120 in DCIM--->thumbnail folder of size 1.5 GB.
And even after deleting this file no space of my sdcard is released . Means my SDCARD is still showing the same space as before .
and after some time it recreate again with same size when i use camera for some time.
One more thing in my phone I have 9.35 GB of data content but SDCARD is showing 11.5 GB of space out of 13.3 GB
This may help , please confirm
Using a disk space analyzer, I was surprised to see that my Android tablet had 1.03GB of photos. This was odd to me, because I knew there were only a couple of photos on the device.
I pinpointed the problem to thumbnails. These are tiny copies of photos used by some apps to more quickly display pictures. Specifically, the 1GB was being taken up by a thumbnail index file, and I didn't need to lose that 1GB to a function I don't use on the tablet. I erased the file as follows:
1. Open a file manager on Android. I use File Manager from Rhythm Software.
2. Ensure that it can display system or hidden files. This is an option somewhere under Settings. In File Manager, tap Menu > Settings > Show Hidden Files.
3. Navigate to \mnt\sdcard\DCIM\ .thumbnails. By the way, DCIM is the standard name for the folder that holds photographs, and is the standard for pretty much any device, whether smartphone or camera; it is short for "digital camera IMages." Another BTW: when a folder name is prefixed with a period, then it is a hidden folder in Android (such as .thumbnails).
4. Select and erase the file that's about 1GB and contains the word 'thumbdata." The exact file name will vary.
After I did this, image viewing apps like Gallery operated just fine, with no apparent slowdown from the loss of this file.
In this way I freed up 1GB on my Android v4 tablet, 1GB on my Android v4 phone, and 750MB on an older Android v2 phone.
Keeping the 1GB Free
Because .thumbdata is a system file, Android recreates it. Indeed, you may find more than one copy in the .thumbnails folder, if you have reinstalled Android or similarly redid the system in some way.
To keep Android from creating the 1GB file anew, we need to create a dummy file that fools Android. In short, we create a text file with a text editor, and then move it to the thumbnails folder. Here are the steps to doing this:
1. Use File Manager to determine the exact name of the thumbnail index file. On one of my Android devices, the name is .thumbdata3--1967290299. Write it down.
2. Start a text editor or word processor on the Android, and then create a new text file.
3. Use the Save As command to save the file in the DCIM folder. (We move it to the .thumbnails folder in a later step.) Save it with the same name at that index file, such as ".thumbdata3--1967290299". Now, depending on the text editor's capabilities, it might not allow the "." prefix or a blank extension. Thus, you might end up with thumbdata3--1967290299.txt as the file name. We fix this in a later step.
4. Exit the text editor, and then switch to File Manager. Now, it is important you use a file manager like Rhythm Software's File Manager app, because it does what some others cannot: it can (a) rename file extensions and (b) access hidden folders.
5. In File Manager, navigate to the \DCIM\ .thumbnails folder. If the thumbdata3 file is there again, erase it again.
6. Move up a level to the \DCIM folder, and then right-click the thumbdata3--1967290299.txt file name. ("Right click" means hold your finger down on the name until a menu appears.)
7. From the menu, choose Rename, and then rename thumbdata3--1967290299.txt to .thumbdata3--1967290299 -- (a) add the dot (.) to the start of the file name, and (b) erase the ".txt" from the end of the file name.
8. Click OK (or Rename) to finish renaming.
9. Right click the file name, and then choose Move (or Cut).
10. Navigate down to the .thumbnails folder, and then tap Paste.
The dummy file will now prevent Android from creating the huge index file.
simplymonis said:
Hay guys
I am facing some strange issues on my galaxy nexus 4.2.2 unrooted
I have notice that in my phone there is a file name THUMBDATA3-1763508120 in DCIM--->thumbnail folder of size 1.5 GB.
And even after deleting this file no space of my sdcard is released . Means my SDCARD is still showing the same space as before .
and after some time it recreate again with same size when i use camera for some time.
One more thing in my phone I have 9.35 GB of data content but SDCARD is showing 11.5 GB of space out of 13.3 GB
Click to expand...
Click to collapse
I just answered this in another post but check it
I have root on my device, so I did the following.
Using Root explorer I went to the folder /DCIM/.thumbnails (hidden) and deleted the huge file. Then with the "+" I chose "New file" and named it the same as the previous .thumbdata3-.... it created a file that is 0 Bytes and then I went and used the camera and the apps, so far the file stays the same size, so maybe that trick will work for others too. Good luck.

3rd party themes

I found the location where the downloaded themes from the theme app are stored.
These are stored in a folder named .AsusTheme in root of internal storage.
Can anyone find a way to modify those zips to make 3rd party themes work?
After last firmware update , we are be able to using 3rd party themes anymore
It looks like you might be able to replace the zip file contained within. But you'd need the theme you want to replace it with made into a zip file as well. So META-INF folder and all the various apks, jsons and previews.
ASUS Theme App now supports it. Nice >
http://forum.xda-developers.com/zenfone2/general/3rd-party-themes-t3322516
So far I he checked the files, maybe it will help somebody:
this is the file that gets updated when you add/remove themes.
/data/data/com.asus.themeapp/databases/ThemeDatabase.db
It is SQLite database which has a table: downloaded_list that contains three columns:
package_name | size | last_modified
the data looks like:
com.asus.themes.th02111615007 | 3943230 | 1456314579000
In SDCARD there is a folder ".AsusTheme\themes" where stay your downloaded themes :
for example we have com.asus.themes.th02111615007.zip there, so:
In database we get com.asus.themes.th02111615007 as package_name
3943230 is equal to its size in bytes which is 3.75 MB (3,943,230 bytes)
And the last one is UNIX timestamp but three last zeroes should be removed.
http://www.onlineconversion.com/unix_time.htm
1456314579000 > 1456314579 > Wed, 24 Feb 2016 11:49:39 GMT
If you delete the ThemeDatabase.db it get created from scratch and your downloaded themes don't show there.
What I've found out:
You can see themes zip files from android file explorer but if you connect it via usb the directory looks empty for Windows.
If you copy the file/pack it or do anything that you can make it visible and copy back ThemeManager will mark that file as corrupted.
It somehow checks the timestamp and its size vs. existing themes database online or offline, no idea.
What I managed to achieve.
If I change modified date on zip file and keep old timestamp in database = corrupted theme file.
Both must be equal.
Same applies to size.
Howerver I believe it also checks if zip file is signed by their ASUS certificate.
But for that I need to sign theme zip file somehow, and I don't know for sure how to do it.
Not sure If I've explained it right, just got some time to drop my idea here.
TL, DR:
1. Theme Manager checks file name,size, modified date of theme.zip vs its entry in database ThemeDatabase.db
2. It also probably checks if it is signed with ASUS certificate.
First can be fixed easily.
Second is an issue.
Shaliuno said:
ASUS Theme App now supports it. Nice >
http://forum.xda-developers.com/zenfone2/general/3rd-party-themes-t3322516
So far I he checked the files, maybe it will help somebody:
this is the file that gets updated when you add/remove themes.
/data/data/com.asus.themeapp/databases/ThemeDatabase.db
It is SQLite database which has a table: downloaded_list that contains three columns:
package_name | size | last_modified
the data looks like:
com.asus.themes.th02111615007 | 3943230 | 1456314579000
In SDCARD there is a folder ".AsusTheme\themes" where stay your downloaded themes :
for example we have com.asus.themes.th02111615007.zip there, so:
In database we get com.asus.themes.th02111615007 as package_name
3943230 is equal to its size in bytes which is 3.75 MB (3,943,230 bytes)
And the last one is UNIX timestamp but three last zeroes should be removed.
http://www.onlineconversion.com/unix_time.htm
1456314579000 > 1456314579 > Wed, 24 Feb 2016 11:49:39 GMT
If you delete the ThemeDatabase.db it get created from scratch and your downloaded themes don't show there.
What I've found out:
You can see themes zip files from android file explorer but if you connect it via usb the directory looks empty for Windows.
If you copy the file/pack it or do anything that you can make it visible and copy back ThemeManager will mark that file as corrupted.
It somehow checks the timestamp and its size vs. existing themes database online or offline, no idea.
What I managed to achieve.
If I change modified date on zip file and keep old timestamp in database = corrupted theme file.
Both must be equal.
Same applies to size.
Howerver I believe it also checks if zip file is signed by their ASUS certificate.
But for that I need to sign theme zip file somehow, and I don't know for sure how to do it.
Not sure If I've explained it right, just got some time to drop my idea here.
TL, DR:
1. Theme Manager checks file name,size, modified date of theme.zip vs its entry in database ThemeDatabase.db
2. It also probably checks if it is signed with ASUS certificate.
First can be fixed easily.
Second is an issue.
Click to expand...
Click to collapse
Is there an xml file in the ThemeDatabade.db that we can edit the script by removing the lines telling it to check for said certification?

Categories

Resources