Forcing external sdcard on android with cordova and file plugin - Galaxy tab 10.5 - Web App Development

In a cordova android app (scroll to the bottom for device,version, plugin list, all of it quite up-to-date as of this writing) I want to preferentially store file on the external SDCard and use internal storage if SDCard not there. I am setting my save path to:
persistentFS= cordova.file.externalDataDirectory||cordova.file.DataDirectory||fileSystem.root.toURL();
Its eventual value is file:///storage/emulated/0/Android/data/com.fubar.app/files/, same as cordova.file.externalDataDirectory.
I have set:
<access origin="cdvfile://*" />
...
<preference name="AndroidPersistentFileLocation" value="Compatibility" />
<preference name="AndroidExtraFilesystems" value="files-external,sdcard,files,documents,cache,cache-external,root" />
in config.xml,
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
in AndroidManifest.xml and set various enchantments in index.html Security metatag. I add that a SDcard is inserted, write-enabled and I confirm that I can write to it with - for example - a file manger. It contains the Android/data/com.fubar.myapp/files/ folder, as it should.
All for nothing: files get written to - and read from - the internal device storage. I have read all google could scavenge on this topic but nothing has brought me closer to the task (some folks suggest using the file-system-roots plugin, but it appears to have been subsumed by the file plugin).
Using adb shell, I can see that the external sdcard files folder for the app has an absolute path of:
/storage/extSdCard/Android/data/com.fubar.myapp/files
and calling resolveLocalFileSystemURL on
file:///storage/extSdCard/Android/data/com.fubar.myapp/files
happily succeeds. I do not think that is the way to go, as that path is device dependent.
Any hints? TIA, alf
Edit:
Device: Samsung Galaxy tab 10.5, lollipop 5.0.1 using cordova 5.3.1, with plugins: cordova-plugin-device 1.0.1 "Device" cordova-plugin-dialogs 1.1.1 "Notification" cordova-plugin-file 3.0.0 "File" cordova-plugin-file-transfer 1.3.0 "File Transfer" cordova-plugin-media 1.0.1 "Media" cordova-plugin-whitelist 1.1.0 "Whitelist"
Build host is Linux FC21

I have the same problem. Did you resolve it?

Related

[TUT] YOU want to cook? Here is how to do - in 5 Minutes using NATALY!

Okay,
in this example we are going to use genious Bepe's PlatformRebuilder Kitchen and Mondilv's Nataly ROM. You get this in one package from Nataly Projektpage, just download the latest stable Nataly Kitchen. While no one else seems to have problems, on my Diamond 2.7 makes weird device behaviour, so i recommend 2.6
Bepe's new kitchen is not limited to Diamond devices, the more it is able to port foreign OS into your kitchen very easy and very well, more the more it is able to manage different language versions in one and only kitchen and most the more it can simultaniously manage different ROM Versions, as Lite, Premium, etc. Take a look at the kitchen tutorial, alternativly found here as file - you'll be surprised !!! With some luck he is gonna publish a grafical GUI for his kitchen in a while - so stay tuned.
Preparation: Make shure you got unsigned HardSPL installed!!!
First step: Unpack Nataly kitchen directly to your C-Drive e.g.: "C:\nataly\..."!
Second step: Remove all packages/folders from underneath EN_KITCHEN you think you won't need.
Third step: If you want to add packages/apps from folder "_ADDS/EXT/Diamond" you just have to drag and drop them back to "EN_KITCHEN/EXT/Diamond". If you want to add packages/apps from folder "_ADDS/SYS" you may drag and drop them to "EN_KITCHEN/SYS" or you may convert them to the new package format Bebe is using and afterwards drag and drop them to "EN_KITCHEN/EXT/Diamond". Ervius did write us a tool EXT_PAckages_rebuilder.exe to do this by simply letting the folder drop onto it and all other is done automatically. After this you can cut/copy and paste the directory to path EXT/Diamond/...! It will get included by platformrebuilder automatically too. *
Fourth step: If you want to include other apps you like, you need to use Ervius (yes again) genious Ervius_Package_Creator found in the kitchen under path UTILS/.... Open the cab file and MSCEInfen will get opened automatically. Click "Extract CAB files with original names in folder" - Button (CAB and this folder MUST have the same path!) and close MSCEInfen, you get returned to package creator and may further correct things or not, at this stage of knowhow, maybe better leave all to Package Creator, it will do the rest the right way. So just click DONE and COMPLETE PACKAGE. Now you need Ervius EXT_PAckages_rebuilder again to get package converted into new format and thereafter you may add it to EXT/Diamond/...! *
Last Step: Click "build_rom.bat" under path EN_KITCHEN and wait - when finished there will be the file "OS-new.nb" which you have to select in automatically opened HTCRT.exe under item OS and further select the platform from dropdown, etc., fill in Version number etc. and thereafter you will get a file "OS-new.nbh" or whatever you named it in HTCRT. [see screenshot below]
* If your application now does not work correctly (quite a few will not do by now ) you should dump your registry with e.g. dotfreds FDCSoft Taskmanagers builtin RegistryEditor. "Export All" found in context menu, do this before and after manual installation of the app, copy both dumped reg files to PC and compare them with e.g. Advanced Registry Tracer (Elcomsoft), export the differences and clean hives (keys) that you don't need (e.g. application foreign keys) add the rest to your corresponding app.reg file!
You are ready to flash your own ROM with DiamondCustomRUU.exe now. Got it?
DONT FORGET: ALL YOU DO IS AT YOUR TOTALLY OWN RISK!
Your own SOURCE for ROM?
This has been simple, didn't it? So if you'd like to use other source ROM (maybe that of your provider or country) you should download Bepe's Basic Kitchen and the Toolset from darkforcesteam-forum and watch his video tutorial, as this shows everything you need to know step by step. After another 5 minutes you got your own source kitchened what else do you need?
Upgrading your OS? That's far as simple. Watch this video and you'll laugh because of simplicity.
Hope i did not forget something, lol!
Have fun...
P.S.: If you find this useful, you may vote the thread and the more you could post a reply, as this may keep the thread up in list and therefore findable to others, as it is not sticky!
Read on further customization of your ROM in posts beneath (2/3)!​
Further customizing your ROM!
RADIO
You can find recommended Radio 1.14.25.05 for latest Nataly ROM here: http://customroms.com/diam_radio_1.14.25.05.rar - Mondilv did include the corresponding rilphone.dll already in Nataly Rom! Be shure your device is Security unlocked, which is not the same as SIM-Unlocked!!! Read this thread please: http://forum.xda-developers.com/showthread.php?t=470306! and thereafter this thread: http://forum.xda-developers.com/showthread.php?t=414835!
To not let you get confused at this point a short tip to security unlock: First flash the Radio 1.00.25.05 on your phone, after that start DiamondSecUnlocker.exe from your PC and click Step 1 button. Now the flashing gui of the DiamondCustomRUU will pop up and let you flash the Radio 1.20 Olinex (which you did not see in the zip-package before ) after that is done you will be able to complete Step 2 of the still running SecUnlocker on your PC and you will get order to complete unlock on your device. There you have to set the wanted options and close it on device. Now the SecUnlocker on PC comes to end and after this all you will be able to flash any radio onto your device you want (as long as you see text "Security Unlocked on your three colored bootup screen before flashing process). Beware of what you flash, you could even flash $¥%¢¤#in Nokia radio firmware now onto your device and brick it!!! To lock security again you will need this tool: http://forum.xda-developers.com/attachment.php?attachmentid=155646&d=1234206431!
Comment: At the same day and weather conditions inbetween one hour with Radio 1.09.25.23, GPS needed about ~40 seconds to get 4/5 satellites fixed - with Radio 1.14.25.05 i got 9/10 satellites fixed in about ~30 seconds, which is quite a difference.
-----------------------------------​
Custom Folders
If you want to make custom folders and sort your programs in YOUR way do it this way:
make new unique named directory under path EXT/Diamond/ eg. "xyzYOURdir"
make new directory named "files" in that directory [EXT/Diamond/xyzYOURdir/files]
in "files" directory create new file named: "mxipupdate_xyzYOURdir_100.provxml"
in that file put code:
Code:
<wap-provisioningdoc>
<characteristic type="FileOperation">
<characteristic type="%CE11%\YOURdir" translation="install">
<characteristic type="MakeDir" />
[COLOR="Blue"] <characteristic type="icon.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="Source" value="\Windows\shellres.192.dll,-8216" translation="install" />
</characteristic>
</characteristic> [/COLOR]
<characteristic type="Streaming Media.lnk" translation="install">
<characteristic type="[B]Shortcut[/B]">
<parm name="Source" value="\Windows\StreamingPlayer.exe" translation="install" />
</characteristic>
</characteristic>
<characteristic type="Windows Media.lnk" translation="install">
<characteristic type="[B]Copy[/B]">
<parm name="Source" value="\Windows\WMPlayer.lnk" translation="install" />
</characteristic>
</characteristic>
<characteristic type="Calculator.lnk" translation="install">
<characteristic type="[B]Move[/B]">
<parm name="Source" value="%CE11%\Calculator.lnk" translation="install" />
</characteristic>
</characteristic>
[COLOR="Red"] <characteristic type="%CE11%\Pictures [B]&[/B] Videos.lnk" translation="install">
<characteristic type="[B]Delete[/B]">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>[/COLOR]
</characteristic>
</characteristic>
</wap-provisioningdoc>
Did you notice the blue part, this is creation of shortcut which is assigned with special icon like told here beneath -->
Okay you can move links or copy and later delete the source! Pay attension on paths and spelling, if special characters are used in name of link use html code as in sample, for paths there is no way to mask those, then make new shortcut from exe and delete old original, but that has to take place later and NOT here, put that delete (red) section in EXT/Diamond/zconfig/finish.provxml! Microsoft even recommends to put each command in own dir-tags (remember ONE mistake/mistype/etc. and the whole prv-file is ignored/rejected!) so the prov-file in Office oem package is nice commented file to learn. Here is listing of %CE%-commands!
-----------------------------------​
Folder Icons
You can customize every folder in startmenu by adding an icon to it (likewise Office or Games folders) In those directories there is an "icon.lnk" file which has a string inside, eg: 33#"\Windows\shellres.192.dll,-8216"
the number before # is the stringlength behind it
By changing the number and or referenced dll you can assign different icons to the folder the file is in. There are even several cabs to install whole folder-themes in the forum to find.
-----------------------------------​
Add email account to ROM
Add this eg. in your custom folders "mxipupdate_xyzYOURdir_100.provxml"
Code:
<characteristic type="EMAIL2">
<characteristic type="{[COLOR="red"]XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX[/COLOR]}">
<parm name="SERVICENAME" value="Bobs Mail Account" />
<parm name="SERVICETYPE" value="POP3" />
<parm name="INSERVER" value="mail.northwindtraders.com" />
<parm name="OUTSERVER" value="smtp.northwindtraders.com" />
<parm name="NAME" value="Bob Kelly" />
<parm name="REPLYADDR" value="[email protected]" />
<parm name="AUTHNAME" value="bobk" />
<parm name="AUTHSECRET" value="bobs_password" />
<parm name="DOMAIN" value="" />
<characteristic type="NAMEDPROPS">
<parm name="MyNamedProp#0003" value="1" />
<parm name="AnotherNamedProp#0003" value="200" />
</characteristic>
<characteristic type="TAGPROPS">
<parm name="8128000B" value="1"/>
<parm name="812C000B" value="1"/>
</characteristic>
</characteristic>
</characteristic>
<GUID>
Defines one specific e-mail account. This is a globally unique identifier (GUID --> example: {1b57531a-54a0-4f2e-ab75-3b015628da62}) that you must generate for each new account, use your imagination or maybe OEMizer - section popEmail - just copy the content of prov-file .
-----------------------------------​
MANILA
To edit Manila grafical files you may search for this cool tool, coded by Chainfire, at this thread CFC GUI - THE Manila/TF3D Image Editor. With this tool you are able to get files directly from device, decompress them for beeing able to edit (and save to local disk), afterwards recompress them and send them back to device again (to check)- what more could we need?
To edit the manila language files you may use most text editors - i use simply notepad , for configuration files u may use mode9 editor
Or if you do not plan to integrate them in ROM you may use TF3D Config!
I've done some files for Manila icons and clock to customize Nataly Design you find attached below.
Add weather city to Manila
Simply edit app.reg file in "EXT/Diamond/Manila ...." (Notepad) and add this way: ""Weather.CityList"="EUR|DE|GM001|BERLIN""
In same reg file you may define your program links manila displays:
Code:
[HKEY_LOCAL_MACHINE\Software\HTC\Manila\ProgramLauncher\0]
"DispName"="Album"
"IconPath"=""
"IsReadOnly"=dword:0
"Path"="\Windows\Start Menu\Programs\Album.lnk"
Further customizing your ROM
Add owner info to ROM
This is better to write down in device/settings/owner info and the export reg key with PHM because Adress are hex values
looksalike this:
Code:
[HKEY_CURRENT_USER\ControlPanel\Owner]
"Owner"=hex:59,00,6F,00,75,00,72,00,20,00,4E,00,61,00,6D,00,65,00,00,00,00,00,00,\
...
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,39,00,39,00,39,00,39
"Notes"="If you find this device and return it to me, you'll shurly get rewarded! Tnx!"
"E-mail"="[email protected]"
"Telephone"="9999-9999-9999"
"Name"="Your Name"
Add this to an "app.reg" file (create one if needed) for example in path "EXT/Diamond/xyzYOURdir/" !
Now adding registry infos should be clear, use your imagination to expand !
Want to localize your ROM
Now we are getting deeper,lol. In Nataly ROM you find it in "zconfig\app.reg" under TZ & RU LOCALE looks alike (for germany eg.):
Code:
;TZ0 Berlin
[HKEY_LOCAL_MACHINE\Time]
"TimeZoneInformation"=hex:c4,ff,ff,ff,57,00,2e,00,20,00,45,00,75,00,72,00,6f,00,\
70,00,65,00,20,00,53,00,74,00,61,00,6e,00,64,00,61,00,72,00,64,00,20,00,54,\
00,69,00,6d,00,65,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,0a,00,00,00,05,00,03,00,00,00,00,00,00,00,00,00,00,00,57,00,2e,00,20,\
00,45,00,75,00,72,00,6f,00,70,00,65,00,20,00,44,00,61,00,79,00,6c,00,69,00,\
67,00,68,00,74,00,20,00,54,00,69,00,6d,00,65,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,03,00,00,00,05,00,02,00,00,00,00,00,00,00,\
c4,ff,ff,ff
;RU LOCALE
[HKEY_LOCAL_MACHINE\nls]
"DefaultACP"=dword:000004e4
"DefaultLCID"=dword:00000407
"DefaultOCP"=dword:00000352
[HKEY_LOCAL_MACHINE\nls\overrides]
"S1159"="AM"
"S2359"="PM"
"LCID"=dword:00000407
[HKEY_LOCAL_MACHINE\Security\ColdInit]
"Locale"=dword:00000407
Too you may change clock appearance and maybe add your personal alarms (<-- although they don't work reliable) already (very useful for hardcore-flashers):
Code:
[HKEY_LOCAL_MACHINE\Software\Microsoft\Clock]
"AppState"=hex:12
"GMT_OFFSET"=dword:ffffffc4
"TZIndex"=dword:00000055
"AppInfo"=hex:01,00,00,00,e8,00,00,00,6e,00,00,00,00,00,00,00,01,00,00,00,3a,01,\
00,00,69,00,00,00,00,00,00,00,01,00,00,00
"HomeDST"=dword:00000001
"Home"=dword:000000e8
"AutoDST"=dword:00000001
"SoundAlarmAlways"=dword:00000001
"NetworkTimeNotifyUser"=dword:00000001
"NetworkTimeSync"=dword:00000001
[HKEY_LOCAL_MACHINE\Software\Microsoft\Clock\0]
"AlarmText"="Wecker"
"Len_AlarmText"=dword:00000006
"AlarmHandle"=hex:24,00,00,3e,15,00,00,3a,23,00,00,33,17,00,00,39,25,00,00,32,00,00,00,00,00,00,00,00
"AlarmSnd"="[COLOR="Red"]iiih[/COLOR]"
"Len_AlarmSnd"=dword:00000006
"AlarmDays"=hex:1f
"AlarmTime"=hex:0e,01
"AlarmFlags"=hex:01
"AlarmNotFlags"=hex:1f,00,00,00
Don't use this settings otherwise you'll get up very early in future , just configure your alarms and export the registry settings with PHM!
You have to put corresponding file in path EN_KITCHEN\OEM\OEMDrivers!
-------------------------------------------------------------​
Boys, this all is not my work, it is the work of several developers, coding for our pleasure and please don't think this would be done in some minutes, not even some hours, at least days and often months of work and investigation is behind those tools and apps, so be that fair and donate to show your appreciation and honor for them and their work and spent lifetime, otherwise go buy $¥%¢¤#in stuff at $¥%¢¤#in developers sites with $¥%¢¤#in apps full of $¥%¢¤#in nag or splash screens and full of $¥%¢¤#in not workin code. The guys here spent a lot of their lifetime (i mean this exactly: LIFETIME) developing tools to satisfy our all needs. So please be that fair and donate some money to keep developers able to develop furthermore...you should really not hesitate about donating some bucks. This all here is not possible being payed by us, because the real price would be hundreds and thousands of dollars..believe me.
So go donate and begin feelin better on all what you get deserved here at xda-devs! And furthermore why not donate every month some bucks, as i am shure you throw away a lot more money for $¥%¢¤#in things like cigarettes, tv, music, cars, women or whatever...
Did ya $¥%¢¤#in get me?!
After reading this and using those tools you saved a vast array of hours, days or even months of lifetime, so go $¥%¢¤#in donate to those who spent theirs for you!​
Hey , i can´t download BEPE´S , because i don´t have permission !
Can you upload it at rapidshare for example ?
GahhTheBig said:
Hey , i can´t download BEPE´S , because i don´t have permission !
Can you upload it at rapidshare for example ?
Click to expand...
Click to collapse
Just register (it's free) at the board and you will have permission!
Hi thanks for the info. I have tried for myself but when flashing I get INVALID MODEL ID after 1%, any ideas ?
col laughton said:
Hi thanks for the info. I have tried for myself but when flashing I get INVALID MODEL ID after 1%, any ideas ?
Click to expand...
Click to collapse
Did you really follow the instructions, did you install unsigned HardSPL?
Check this out: http://forum.xda-developers.com/showthread.php?t=409425 or search for your problem and read answers as i don't know what you did exactly!
question
When i've reached the last step (htc rom tool appears), i'm writing the version image etc and by the time i press build it gives me an erro "You need to assign at least one firmware block". i press B and i try to find one,but i don;t know where.
What i'm i doing wrong?
I found the solution.
nsourm said:
When i've reached the last step (htc rom tool appears), i'm writing the version image etc and by the time i press build it gives me an erro "You need to assign at least one firmware block". i press B and i try to find one,but i don;t know where.
What i'm i doing wrong?
I found the solution.
Click to expand...
Click to collapse
I added screenshot for other to see easier what do do where.
Updated manual folder customization ... nice feature!
Updated new features!
figured out folder customization nice feature
question by pm:
ok now....i want to add cabs in kitchen/rom..i have read your tut but havent understand it...so i need to put cab in EXT/Diamond and than open MSCEInf drag cab in and press "Extract CAB files with original names in folder", than cab is in kitchen and it will be cooked in rom??
Click to expand...
Click to collapse
no place cab anywhere on c-drive, then open ervius package creator and select cab, through this msceinf gets opened, click the folder-icon to save all original named files (and stay on the suggested path - a folder directly under drive c) close msceinf by the rightest button on button bar and you get back to package creator, there adjust/review shortcut and click done, click complete package. this package is old style like to use under oem/sys folders, for adding it to EXT/Diamond convert it by ervius package converter and then copy to ext/diamond.
i should make a video from this one day
regards
peet
Steps taken to change the dialer to NON-slider: (Waiting for confirmation and then I'll flash)
1. Extracted Nataly's Kitchen to C:\NATALY
2. I go to _ADDS - EXT - Diamond
Copy PhoneCanvas 3_50_32466_0_noLand to EN_KITCHEN - EXT - Diamond
Remove PhoneCanvas_Slider 3_50_33348_0
3. That's all I wanted to change to the kitchen so I go to Nataly EN_KITCHEN and I click build_rom.bat (creating it)
After that it opens HTCRT.exe as in the screenshot under the tab ROM builder I change device to Diamond *, it automatically changes Model ID, Country ID, Version, Language, which are all unchanged
Firmware contents I select the OS-new.nb
4. Click build! And I named it OS-NATALY-NEW.nbh
Can you confirm to me that I did everything perfect as it should and that I can flash this thing!
Thanks in advance!
One little question after this as well,
The things I install after flashing are:
HTC_Keyboard_PanEU.cab
and a 14 languages update cab (T9 Input 14 Languages Update.cab) which allows to see dutch t9 language.
How to insert that in a rom?
And how to include an installer of TomTom for example (also cab)?
If it's really not possible, I can install those afterwards but it would be great to already have the dutch t9 in the rom, TomTom I could install when it's flashed Thanks in advance!
you did everything right by now, u can flash this and should nake no problems.
if you want to include further cabs follow the instructions one post above, that the procedure to include cabs in rom, if you read second post of thread "further customizing your rom" there is some more told about it. as some apps don't work if only made oem package from cab. so first make backup of registry, install cab, make backup again, copy to pc and compare. differences should reflect installation, put that in app. reg in addition to the contents from cab and then insert in rom...i'll make a video as soon as possible
benko try this
peetx said:
you did everything right by now, u can flash this and should nake no problems.
if you want to include further cabs follow the instructions one post above, that the procedure to include cabs in rom, if you read second post of thread "further customizing your rom" there is some more told about it. as some apps don't work if only made oem package from cab. so first make backup of registry, install cab, make backup again, copy to pc and compare. differences should reflect installation, put that in app. reg in addition to the contents from cab and then insert in rom...i'll make a video as soon as possible
Click to expand...
Click to collapse
Hmmm I'll try to read some more tomorrow and a video would be great indeed! I'll try to flash my rom tomorrow and test thé thing!
WH33LSONFiRE said:
Hmmm I'll try to read some more tomorrow and a video would be great indeed! I'll try to flash my rom tomorrow and test thé thing!
Click to expand...
Click to collapse
i try to make one soon
peetx said:
question by pm:
no place cab anywhere on c-drive, then open ervius package creator and select cab, through this msceinf gets opened, click the folder-icon to save all original named files (and stay on the suggested path - a folder directly under drive c) close msceinf by the rightest button on button bar and you get back to package creator, there adjust/review shortcut and click done, click complete package. this package is old style like to use under oem/sys folders, for adding it to EXT/Diamond convert it by ervius package converter and then copy to ext/diamond.
i should make a video from this one day
regards
peet
Click to expand...
Click to collapse
ervius package converter ?
Look, I have a cab lets say its "HTC_Album_V_2.5.1820.4127.cab"
So I:
1. use packages creator and open cab, then I press the button to extract it with msceinf and then I get a file and windows folder.
Then I select this package by"open package" and press done & complete package.
Then I take the folder I used to store this files I just extracted and so, and rename it to "HTC_Album_V.....4127", and place it in the EXT/Diamond folder?
Just like that? I see a different pattern in this folder than the others in the ext/ folder, mine is loaded with tons of files, the others has first reg file, 0409 and files folder.
Does it mater?
the way I just described...is good? is there anything else supposed to be done in order to add a cab file to the rom?
eranyanay said:
ervius package converter ?
Look, I have a cab lets say its "HTC_Album_V_2.5.1820.4127.cab"
So I:
1. use packages creator and open cab, then I press the button to extract it with msceinf and then I get a file and windows folder.
Then I select this package by"open package" and press done & complete package.
Then I take the folder I used to store this files I just extracted and so, and rename it to "HTC_Album_V.....4127", and place it in the EXT/Diamond folder?
Just like that? I see a different pattern in this folder than the others in the ext/ folder, mine is loaded with tons of files, the others has first reg file, 0409 and files folder.
Does it mater?
the way I just described...is good? is there anything else supposed to be done in order to add a cab file to the rom?
Click to expand...
Click to collapse
No - when files are extracted by msceinf you close this app and get back to ervius package creator, there click done and afterards complete package. this will get you folder in path of cab, this folder convert by ervius package converter and this will reflect same folder structure as ohter packages in ext/diamond, so place new package there and youre done

Auto Installer Tool

Auto Installer V1.0
Synopsis:
I've written a small utility with a whole mix of features, primarily designed to enable easy setup of your favourite cabs, shortcuts, icons etc...
It's written in Mortscript, but you don't need to worry about that... everything is installed from a plain text INI file:
Features:
-Specify which cab files to install automatically (silently, or with user interaction)
-Specify which registry entries to create / modify
-Specify Hi-Res custom icons for your applications and tools (WM6.5 Only)
-Specify which shortcuts to create in the Start/Program Files menu
-Specify the Start/Program Files menu structure (groups/folders etc)
-Specify TF3D shortcuts for Manila 2 and 2.5
-Specify TF3D weather locations for Manila 2 and 2.5
-Specify HTC Task Manager 'x' button options
-Specify Windows Screen Font Size
-Choose to execute every item in your setup config, or just execute specific sections.
Coming Soon Features:
-Specify files you'd like to back up
-Specify tasks to kill before install
-Specify tasks to start after install
Installation Instructions:
-Download zip file here: AutoInstaller V1.0
-Extract the zip file to a folder of your choice on your device (preferably on the SD Card so that it's not lost after a hard reset!
-Read the usage guidelines
-That's it
Usage Guidelines
Usage Guidelines:
The application contains 3 files:
1) AutoInstaller.exe (this is the main executable file)
2) AutoInstaller.mscr (this is the source code for the script. Do not modify this file unless you're a script programmer)
3) AutoInstaller.ini (this the file that you edit to configure)
All three files MUST reside together in the same folder (any folder)
AutoInstaller.ini and how to:
Cab File Installation
You can install multiple cab files using the [Cab Install] section of the ini file.
The format of each entry in the section must be as follows:
<Unique Friendly Name>=<Cab filename>,<Silent install>
<Unique Friendly Name> MUST be unique, but is just any friendly string identifying the cab to be installed.
<Cab filename> is the full path to the cab file to install
<Silent install> determines if the installation should be silent (TRUE) or interactive (FALSE). Note: Most cab files will install silently, but some will still force user interaction. This is not a problem, but be aware that some files do this.
Also be aware, that if a cab file forces a reboot of the device without asking, then this cab is not suitable for installation via this script, since a reboot will terminate the script.
Example:
[Cab Install]
Facebook =\Storage Card\Setup\Install Cabs\Facebook\Facebook_v1.0.0.7p.cab,TRUE
Google Maps=\Storage Card\Setup\Install Cabs\Google Maps\GoogleMaps.cab,TRUE
My Mail Settings=\Storage Card\Setup\Install Cabs\My Mail Settings\MyMailSettings.cab,TRUE
SPB Wireless Monitor=\Storage Card\Setup\Install Cabs\SPB Wireless Monitor\SpbWirelessMonitor3.arm.cab,TRUE
Total Commander=\Storage Card\Setup\Install Cabs\Total Commander\tcmdpocketarm.cab,TRUE
WunderRadio=\Storage Card\Setup\Install Cabs\WunderRadio\wunderradio_ppc.cab,TRUE
Panoramic Calc Pro=\Storage Card\Setup\Install Cabs\Panoramic Calc Pro\PanoramicCalcPro.cab,TRUE
Neos Driver Pack=\Storage Card\NeoS2007_Driverpack_3.cab,TRUE
Registry Writes
Registry entries to be created/written can be specified in the [Registry_Writes] section of the ini file.
The format for each entry in the section must be as follows:
<RegistryKey>=<>,<Value>
<RegistryKey> is the full path of the key to be written
<Type> is the type of value to be written to the registry, it may be STRING, DWORD or BINARY
<value> is the actual value to be written
Example:
[Registry_Writes]
HKCR\CLSID\{DD9B73F6-9EED-4ED0-84CF-422AF83512DB}\fileext=STRING,6a5KkkrKKwKK
HKLM\Software\jeyo\WunderRadio\regcode=STRING,12345678931B
HKLM\Software\jeyo\WunderRadio\regver=STRING,151W14
Usage Guide
Create Shortcuts
Shortcuts to be created can be specified in the [Create Shortuts] section of the ini file.
The format for each entry in the section must be as follows:
<shortcut file to create>=<file to link to>
<shortcut file to create> is the full path of the shortcut file to be created
<file to link to> is the full path of the target file being linked to
Example:
[Create Shortcuts]
\Windows\Start Menu\Programs\iGO8.lnk=\Storage Card\igo8\iGO8.exe
\Windows\Start Menu\Programs\Reboot.lnk=\Storage Card\Scripts\reboot.mscr
Move Files
Files to be moved may be specified in the [Move Files] section of the ini file.
The format for each entry in the section must be as follows:
<Source File>=<Destination File>
<Source File> is the full path of the file you wish to move
<Destination File> is the full path of the file you wish to move it to
Example:
[Move File]
\Windows\Start Menu\Programs\iGO8.lnk=\Windows\Start Menu\Programs\Navigation\iGO8.lnk
\Windows\Start Menu\Programs\reboot.lnk=\Windows\Start Menu\Programs\Utils\iGO8.lnk
Create Custom Icons (WM6.5 Only)
Custom Hi Res Icons in PNG (with transparency) may be specified in the [Custom Icons] section of the ini file.
The format for each entry in the section must be as follows:
<Start menu link file>=<png file>
<Start menu link file> is the path of the lnk file RELATIVE to the \Windows\Start Menu\Programs folder
<png file> is the full path of the desired png file to use for the custom icon. NOTE: the png file MUST be exactly 90x90 pixels.
Example:
[Custom Icons]
iGO8.lnk=\Storage Card\Custom Icons\iGO8.png
Google Maps.lnk=\Storage Card\Custom Icons\Google Maps.png
TF3D Shortcuts
TF3D V2 or V2.5 shortcuts can be specified using the [TF3DV2 Shortcuts] or [TF3DV2.5 Shortcuts] section of the ini file.
The format of each entry in the section must be as follows:
<shortcut index>=<friendly name>,<shortcut target>
<shortcut index> is the position / index of the shortcut entry (0 to 17 for TF3D V2) or (0 to 8 for TF3D V2.5)
<friendly name> is the friendly name of the shortcut that will be displayed on the TF3D screen
<shortcut target> is the full path of the target file
Example:
[TF3DV2 Shortcuts]
0=Igo8,\Storage Card\igo8\iGO8.exe
[TF3DV2.5 Shortcuts]
0=Igo8,\Storage Card\igo8\iGO8.exe
3=Google Maps,\Google\Google Maps.exe
TF3D Weather Locations
TF3D (V2 or V2.5) weather locations can be specified in the [TF3D Weather Locations] section of the ini file.
The format of each entry in the section must be as follows:
<weather index>=<weather location>
<weather index> is a value from 0 to n representing the order/index of the weather locations
<weather location> is a specially formatted location string identifying the location (more in this later, there's a utility to 'grab' them included in the installer!
Example:
[TF3D Weather Locations]
0=EUR|UK|UK001|ABERDEEN
1=EUR|UK|UK001|LONDON
2=EUR|UK|UK001|BRISTOL
3=EUR|UK|UK001|LIVERPOOL
Screen Options
Screen option can be specified using the [Screen Options] section of the ini file.
The format of each entry in the section must be as follows:
<option name>=<value>
<option name> is either TextSize or TrueType
<value> depends on the <option name> for TextSize it can be Tiny, Small, Medium, Large or ExtraLarge. For TrueType it's either True or False.
Example:
[Screen Options]
TextSize=Tiny
TrueType=True
Reserved 3
Reserved for even more instructions
I'll give it a bash next time I flash a rom but it sounds a lot like Sashimi
crankshaft said:
I'll give it a bash next time I flash a rom but it sounds a lot like Sashimi
Click to expand...
Click to collapse
I strongly suspect it is... although I'm guessing a lot smaller and simpler...
I wasn't aware of Sashimi until you mentioned it, and I'm checking it out, although it looks pretty comprehensive, it also looks quite daunting.... meaning you may as well have written the installation in Mortscript in the first place by the time it's all configured!
However, I suspect there's a couple of nice little things in my script (like the custom icons, and TF3D weather etc that folks might find useful... I wrote it for myself, but thought I'd share!
have a little problem
when i run the AutoInstall.exe this error comes
There is no application associated with "AutoInstaller". Run the application first, then open this file from within the application
abzza,
You need MortScript installed.
I did tried. For some of my application which required manual interaction,
runwait doesn't do the proper thing as it continue on next cab installtion when some
manual dialog popped up.

[HACK] HTC Hub Theme

I just edited the images of the HTC HUB. I know this has been done before by eiting the XAP before install, but my method was after install. With this method you should be able to edit images for any installed app. The hard part is finding the app as they are not in a folder named after the app. You need a Unlocked Device & Windows Phone Device Manager. Using the file manager built into WPDM. Different apps will have they images in different folders depending on how the XAP was setup. For HTC HUB, browse to \Applications\Install\*\Install\Res\Generic\images\ and copy in the files from the zip.
* = a random Hexadecimal value (In my case, 1A0EE8C2-48B1-DF11-8A2F-00237DE2DB9E)
They will always be in the \Applications\Install\ folder.
Thank to Dinik for his Glass Icon Image
drkfngthdragnlrd said:
I just edited the images of the HTC HUB. I know this has been done before by eiting the XAP before install, but my method was after install. With this method you should be able to edit images for any installed app. The hard part is finding the app as they are not in a folder named after the app. You need a Unlocked Device & Windows Phone Device Manager. Using the file manager built into WPDM. Different apps will have they images in different folders depending on how the XAP was setup. For HTC HUB, browse to \Applications\Install\*\Install\Res\Generic\images\ and copy in the files from the zip.
* = a random Hexadecimal value (In my case, 1A0EE8C2-48B1-DF11-8A2F-00237DE2DB9E)
They will always be in the \Applications\Install\ folder.
Click to expand...
Click to collapse
you have made a touch of glass skin,nice and thanks for the info
djcedric said:
you have made a touch of glass skin,nice and thanks for the info
Click to expand...
Click to collapse
Actually, it's Dinik's glass image, not from Touch of Glass. Thanks for reminding me to make note of that in the OP.
drkfngthdragnlrd said:
Actually, it's Dinik's glass image, not from Touch of Glass. Thanks for reminding me to make note of that in the OP.
Click to expand...
Click to collapse
ok from the nice guy ,i hope you have ask it to dinik because we all know him...no problem i will made a touch of glass skin
succes.
Do you know what the boxes around each forecast are called. Id like to remove them
Edit: Its called forcast_tile if anyone is interested
drkfngthdragnlrd said:
* = a random Hexadecimal value (In my case, 1A0EE8C2-48B1-DF11-8A2F-00237DE2DB9E)
They will always be in the \Applications\Install\ folder.
Click to expand...
Click to collapse
Actualy its not a random Hexadecimal value...
Its the unique application ID that is hardcoded in the file WMAppManifest.xml in the xap of every application.
The WMAppManifest.xml for the HTC hub is this ...
Code:
<?xml version="1.0" encoding="utf-16"?>
<Deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" AppPlatformVersion="7.0" xmlns="http://schemas.microsoft.com/windowsphone/2009/deployment">
<App Author="HTC Corporation" Description="HTC Hub" Genre="apps.normal" [B][U]ProductID="{1a0ee8c2-48b1-df11-8a2f-00237de2db9e}"[/U][/B] Publisher="HTC Corporation" RuntimeType="Silverlight" Title="@AppResLib.dll,-100" Version="1.0.0.0" xmlns="">
<IconPath IsRelative="true" IsResource="false">ApplicationIcon_s.png</IconPath>
<Capabilities>
<Capability Name="ID_CAP_NETWORKING" />
<Capability Name="ID_CAP_INTEROPSERVICES" />
<Capability Name="ID_CAP_SENSORS" />
<Capability Name="ID_CAP_WEBBROWSERCOMPONENT" />
<Capability Name="ID_CAP_PUSH_NOTIFICATION" />
<Capability Name="ID_CAP_LOCATION" />
</Capabilities>
<Tasks>
<DefaultTask Name="_default" NavigationPage="MainPage.xaml" />
</Tasks>
<Tokens>
<PrimaryToken TokenID="Weather_WP7Token" TaskName="_default">
<TemplateType6>
<BackgroundImageURI IsRelative="true" IsResource="false">ApplicationIcon.png</BackgroundImageURI>
<Count>0</Count>
<Title>@AppResLib.dll,-200</Title>
</TemplateType6>
</PrimaryToken>
</Tokens>
</App>
</Deployment>
Τhe product id is in the 3rd line and is
ProductID="{1a0ee8c2-48b1-df11-8a2f-00237de2db9e}"
I know this because is use a similar method to sideload big size xaps on my phone....
colossus
colossus_r said:
Actualy its not a random Hexadecimal value...
Its the unique application ID that is hardcoded in the file WMAppManifest.xml in the xap of every application.
The WMAppManifest.xml for the HTC hub is this ...
Τhe product id is in the 3rd line and is
ProductID="{1a0ee8c2-48b1-df11-8a2f-00237de2db9e}"
I know this because is use a similar method to sideload big size xaps on my phone....
colossus
Click to expand...
Click to collapse
Thanks for the info. And how you do that ?

Sniffing HTTPS traffic of some app like youtube on Fire tv 4K

Hello guys,
I'm pretty new here and I've seen that there lots of experienced people here who might be able to help me out.
I have an unrooted fire tv 4k updated to the latest software version FOS 6, and I'm trying to sniff https traffic of some apps.
I've tried to follow that guide in : https://developer.amazon.com/docs/fire-tv/system-xray-developer-tools.html
what I did was the following :
0) downloaded the cert and installed it as shows in the URL
1) I used adb to pull the apk
2) then used apkeasy tool to decompile the apk
3) edited the mainfest.xml using notepad++ and added something like:
<application android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:label="@string/app_name" android:icon="@drawable/launcher_icon" android:name=".WKFapplication" android:debuggable="true" android:allowBackup="false" android:networkSecurityConfig="@xml/network_security_config" android:banner="@drawable/banner">
4) added the following res/xml/network_security_config.xml to your Android project to explicitly trust all installed certificates:
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<debug-overrides>
<trust-anchors>
<!-- Trust the following CA while debuggable only -->
<certificates src="user"/>
</trust-anchors>
</debug-overrides>
</network-security-config>
5) compiled pack using apkeasy tool
6) then signed the apk
7) used adb to install it again to my device
Now, whenever I run the app I get "unauthorized request", please keep in mind that I have had allowed installing apps from unknown sources if that matters.
Can someone tell me what am I doing wrong and what is the reason for this error?

Found Some Interesting Files in system/etc/sysconfig/

I am on SM-G975U1 so needless to say I am not rooted, but whilst perusing the system files I came across 2 Samsung .cert files; both of which are not installed in security certificates, or user certificates, though they can be. The other is nfcee_access.xml, which I'll get into the details of after the first 2 are described.
I tried installing them in User Certificates, first for Apps and VPN, which led to a constant warning in notifications so I removed them and tried installing them for Wi-Fi which got rid of the notification while having them installed. They don't seem to do anything so far, but their name is whats interesting, one is ASKS_INTER.crt, and the other is ASKS_ROOT.crt and they are both signed by Samsung Incorporated.
The subject and issuer details for both of them are -
CN = Samsung Cert INTER/Samsung Cert ROOT
OU = Mobile
O = Samsung Corporation
L = Suwon City
S = South Korea
C = KR
Basic Constraints are -
Subject Type=CA
Path Length Constraint=0
The key usage for both are -
Digital Signature, Certificate Signing, Off-line CRL Signing, and CRL Signing.
I de-compiled an .apk for a file viewer, added them to the existing .cert folder, then rebuilt them from scratch in Android Development, but I know too little about building apps so I was unable to install after compiling it.
I'm not sure what the certifications are for, but they aren't installed anywhere in the phone except the two locations I found them in which weren't app files; they seem to be just be a hidden extra.
The NFC_ACCESS file was found in another folder, I can't recall which, and is not a .cert file, but an .xml file. It contains multiple different signatures (let it be known I do not have a T-Mobile SIM card, nor did I flash to U1 from a T-Mobile variant of U) -
<!-- Samsung nfcextras Signature -->
<!-- Samsung Platform signature -->
<!-- T-Mobile development Signature -->
<!-- T-Mobile production Signature -->
<!-- Mobeewave Signature -->
Under <!-- Samsung Platform signature --> is -
<package android:name="org.simalliance.openmobileapi.service" />
<package android:name="com.android.se" />
<package android:name="com.skms.android.agent" />
<package android:name="com.samsung.android.spay" />
<package android:name="com.samsung.android.spayfw" />
<package android:name="com.sem.factoryapp" />
</signer>
The only package I don't have installed on my phone is <package android:name="org.simalliance.openmobileapi.service" />.
I'm not sure what this file could be for either, the only thing I can think of is adding the .xml signatures to the .apk of NFC or somewhere within the system NFC files. I am unsure of where the ASKS_INTER.crt and ASKS_ROOT.crt would go, maybe they are just for building apps and signing them?
Are any of these files of any value? What could they be for other than signing apps? From what I can tell they are standalones.
The ask_root.crt one is very eye brow raising. Can it be hex edited or decompiled? I know very little about all this. Maybe someone with more knowledge can chime in.

Categories

Resources