Permanent Save flash API - Windows Mobile Development and Hacking General

Does anyone know how the Permanent Save feature in the settings>System panel works? Is there an accessible API for writing/reading to this flash storage area?
Thanks,
Blair.

Related

Turn off device encryption / decrypt device

Hi all, could anyone who already has the PRIV have a look at the security settings and see if it's possible to turn off phone encryption / decrypt the phone? Please post a screenshot of the settings menu too.
THANK you very much!
No, it's not possible. The build does not provide the option to remove encryption.

How to enter the ServiceMode in T585C?

Hi,
I have a T585C with Android 6.0.1 (version=T585CZCU2AQH2). It seems the well known secret code (e.g. *#...) doesn't work anymore on it. I can enter the Service Mode using Shortcut Master. But I prefer to not using any third-party tools. Anyone who can help me?
Another question is: is there a way to reset all settings in Service Mode? The "NV Rebuild" function seems to have no effect... I did some changes previously. But I'm not sure if they have been all set back to their original values...
Thanks!
regarding the reset settings. I found a simple way that just use the nv_data backup file to replace the current used one in /efs partition.
but still have no idea how to enter the service mode via a graceful way...

Cutomize kernel WiFi/Bluetooth/SD settings

Hey , i want to customize my own kernel/rom with the following specifications:
Disabling wifi/bt/sd card
Whitelisting usb devices.
Any ideas where shouldni search in order to achive this?

[Tutorial] Manually change the watermark for the MIUI Camera (rooted device)

Introduction:
MIUI 10 on MI 9 gives us the ability to “slightly” personalize the Camera Watermark used by stock MIUI Camera, which is stamped on the lower-left corner of each photo when the feature is enabled.
This customization is quite limited since it allows:
- One line of text no longer than 18 letters
- It won’t allow to change nor hide the first line of the watermark (“Shot on MI 9”
- It won’t allow changing the watermark logo
I am well aware there are thousands of third-party applications on PlayStore which will allow editing of the photos, using whatever image as watermark.
However, in my personal experience as a photographer, there are some circumstances where “fast is better” and you do not want to take all the extra steps to watermark a photo intended for quick social consumption.
This is a “dirt” way to overcome the limitations mentioned above while retaining the ease and speed of implementation that I believe can interest a large part of users.
DISCLAIMER:
By following this tutorial, you are going to alter system files: although it is not a “critical” MOD, I am not responsible for any kind of trouble this may cause.
As always, backup is better than restoring. Make a backup copy of the original watermark before doing anything.
Requirements:
You will need a Rooted device since the watermark file is part of system files
You will need a File Explorer of your choice installed on your device
Procedure:
Open the MIUI Camera, enter the Options menu, and if you haven’t done so already enable the Watermark option
Select the “Custom Watermark” from the same menu, and enter some text.
Confirm and save by clicking on the check icon in the top right corner of the screen
Force close the MIUI Camera and Open the preferred File Manager
The original custom watermark files are called “cepheus_main_space_custom_watermark” and "cepheus_main_space_ultra_pixel_custom_watermark"; they are stored in /data/data/com.android.camera/files/
Make a backup copy of this file, then export to your preferred graphics editor for customization.
Default watermark is 1800x195 px @72ppi. I suggest keeping the same specifics for the new file. Remember to export the new watermark as PNG with Transparent Background.
Once your new watermark is ready, you simply need to copy the PNG file to your device, overwriting the original.
Restart the MIUI Camera and voilà, your watermark is now available.
Update for Latest MIUI 11:
With the arrival of MIUI 11 some details are changed regarding the stock Camera app and the “workaround” to change the default watermark.
One major change is that there are now two watermark files:
cepheus_main_space_custom_watermark.png
cepheus_main_space_ultra_pixel_custom_watermark.png
As the name suggests, the second file is used when taking photos using the "48 MP" option.
The second less obvious but quite obnoxious change regards the use of a "remote download" function to replace the original watermark file if tampered.
It took me a bit of trial-and-error to understand that the camera application was actually downloading the default watermark file each time the application was closed and/or the phone was rebooted.
(this is why you might have noticed a strange behaviour where your watermark is initially changed without any issue but then appears to revert back to the original)
In order to solve this issue, you need to prevent the MIUI Camera Application from accessing the internet.
You can do this in any way you like, I prefer using NetGuard by Marcel Bokhorst. (link)
If you use the same method, here are the two process that needs to be blocked:
com.xiaomi.cameratools
com.android.camera
Please Note: If you use the "Short Movie" advanced animations feature I advise to download all the required files before customizing the watermark, thus blocking camera application from internet access.
Firewall Alternative for VPN Users:
If you are using a VPN you might find unpractical to switch between NetGuard and your VPN Profile.
In this case, a good alternative is AFWall+ by ukpriya (available on FDroid).
Just remember to switch to the "Block Selected" operation mode and, after selecting all the checkboxes for Camera App select the "Apply" / "Enable Firewall" button in Settings.
Final Observations:
Editing again the watermark using the “Custom Watermark” option inside MIUI Camera options will probably cause some issues. If you want to revert to the Original Watermark either restore the backup *.png or restore MIUI Camera Data.
Future ROM Updates will, quite certainly, restore the default watermark: keep a copy of your personalized watermark somewhere on your “data” partition so you can easily restore.
Future ROM Updates will not overwrite the custom watermark files, unless you perform a "Full Wipe" or you perform a "Data Wipe" for the Camera App. Anyway, since it's always a good practice to keep a backup of your files, I strongly suggest keeping a copy of your custom watermarks someplace safe.
I have attached the original *.PNG watermark, just in case.
Huawei

So I have a 950XL what should I do next?

Hi All
Just been given a Nokia 950XL. And have to say ugly phone but great camera!!!! But before I go setting it up etc what should I do first??
So please any advice would be appreciated.
Also include if you would recommend dual boot etc and what OS..
Also what app's would you recommend??
Whats the best compass app?
Is there an app that fully uses the Barometer etc?
Whats the Best app for Panoramic photos?
Is there any camera app alternatives etc?
Is there an OSM mapping app?
thank you in advance
regards
Lohtse
Keep it
Hi Lohtse,
This device is unique I spend days wake up without sleep to solve the problem of the apps and I realize something important
The problem is bad target system management by Microsoft development tools
Microsoft store is so dumb there is many helpful app but it want appear just by search
Some of the is apps "on papers" not match with your device system version but in reality you can install it and it will work
Now let me tell you it's not totally bad device if you get the exact apps on it, it will be almost like your laptop with many helpful staff
First
Check the latest updates and then you have to unlock the system so you can do some enhancements like:
Increasing Paging files from 256MB to 1GB
Transfer files via SFTP without using the USB cable
Uninstall official apps preinstalled like (Photos, Calculator..etc) -> you need this
And more..
Second
here list of apps you might have some of it but with old version:
Before you start just install the official AppInstaller to be able to install apps directly from the phone without alternative tool
Get it from here:
drive.google.com/file/d/1HfsBg8hiqlKBTroK0xvB45h_SiSBha_1/view
Also you need to read this because some of the apps need to modify the target system version before install otherwise it will not installed.
Deploy Unsigned APPX/UWP
Utilities:
Perfect Tool (Official Store)
(QR Code, Ruler, Compass, other helpful tools)
microsoft.com/en-us/p/app/9nblggh4r8dw
Microsoft Official
The new versions (you need to uninstall the previous apps using Introp Tools)
Translator (New)
drive.google.com/file/d/1QTcnJFhg2sgoxQsSFJVpLcb6QNUWzyB8/view
Photos (New)
Very very advanced and helpful you can edit videos with it
drive.google.com/file/d/1vW1lXXFo2RBy0UpXeqG1-EryabRPWVWH/view
Alarms & Clock (New)
drive.google.com/file/d/1kAamihWVXSAy70PKayjK21PS-bTbZas8/view
Calculator (New)
drive.google.com/file/d/1BneIdp59XrNtl0fE-inuN74VUr6bHqcw/view
Voice Recorder (New)
drive.google.com/file/d/1EVg1ViAxMn6fEtzZG8ds3rYWQcuTBmZp/view
Photos and Editors
Panorama & Camera app (New)
drive.google.com/file/d/1Vl392MRMXBOtfPM3DF32X4U05nlw6zeB/view
Lumia Cinemagraph (Official Store)
Cool app you can take photo and make part of it alive with repeated motion, just try it
microsoft.com/en-us/p/lumia-cinemagraph/9wzdncrfhx4d
Nokia Creative Studio (XAP APP Need Deployment tool)
published by Hritwik
https://forum.xda-developers.com/attachment.php?attachmentid=4090254&d=1490599831
Multimedia
Movie Maker 8.1 (Official Store)
microsoft.com/en-us/p/movie-maker-81/9wzdncrfhwx8
Lumia Play To (Official Store)
Very good casting app it's working with my old TV which is great
microsoft.com/en-us/p/lumia-play-to/9wzdncrfhx3f
Video Tuner
Video Editing app with very good features
drive.google.com/file/d/1K1p5yxrVYwk9irAVK_czjkj-0sGj8w86/view
Art Tools
Paint 3D
drive.google.com/file/d/112ZYj86t4KY0X84-bItuDur8z6RuVym-/view
View 3D
drive.google.com/drive/folders/1ul3vSzff4hDo3oWM4vded1Iy952WH1Cs
Gaming Emulators
RetriX Universal Emulator (Enhanced)
RetriX (Universal Emulator) Enhanced Version
NES Box (Universal Emulator)
drive.google.com/file/d/16SXF4GXl7-KX0DKbYxSfaJjy_NR1hf91/view
PPSSPP
drive.google.com/drive/folders/1xuz1rCu3ThiLkTrerhWpLuT-SdzH0iDa
EmiNes
drive.google.com/file/d/1tpXx_Tc_8RoCY5bPjrjLotisBhs3nSE2/view
EmiPSX
drive.google.com/file/d/1fmb1JJGyoW9ZZ1fucum7TXaPrg1CVdN9/view
Navigators
Sygic (Official Store)
Works for me
microsoft.com/en-us/p/sygic-gps-navigation-maps-poi-route-directions/9nblggh16nlv
The only thing you might not find it, it's good browser I'm still looking for good option
most of the current browsers including Coc Coc not very good.
Most of the apps I found it on windowsviet.com which they have too many helpful apps.
About Dual Boot & Windows 10 ARM
You know.. I broke my phone system more than 5 times one of them it was completely dead but I was able to recover it again,
the point is if you need to try go ahead it's good to see full windows run on a phone and able to run x86 apps as well.
But
Here is few points why it's not very important
Your mobile internal storage will be filled by 70% because of the windows partition
You need a usable phone to call and send messages, it's not comfortable to switch the boot each time
Windows 10 Mobile is almost the same base of the normal Windows it just Microsoft makes it useless but I hope someone will be able to install a service to run windows apps inside it as I discovered in Windows 10 ARM, I was surprised that some of x86 apps works very well.
If you faced any problem during the installation or you need any assist let me know.
Hi
WOW excellent response thank you so much for taking the time to reply as you have..
Could you possible explain this a little further
First
Check the latest updates and then you have to unlock the system so you can do some enhancements like:
Increasing Paging files from 256MB to 1GB
Transfer files via SFTP without using the USB cable
Uninstall official apps preinstalled like (Photos, Calculator..etc) -> you need this
And more..
As to navigation apps am more looking for OSM mapping as I create my own maps for hiking etc
Regards
Lohtse
Update
If you got a new phone usually many updates need to be installed, this will fix many problems and increase the performance.
Go to "Settings"
Update & Security
Check for update / Windows Update
if there is any update it will appear or you will see a message "Your device is up to date"
If the system need updates this will take some time, and it might be there is many update not only one so keep try until you get "Your device is up to date"
Unlock
Unlocking the system is based on your needs.
If you are using the phone for regular use you may keep it as it is.
What I was meaning with
Increasing Paging: Paging files will help to handle more applications in the background
SFTP: to transfer the data via wireless but it's totally optional you can still use the cable
Uninstall apps
If you tried to install the new version of i.e."Photos" it will not work because it's already installed.
so the solution is to remove the current app, but by default windows will not allow you to do that form the settings because it's built in.
As solution you can use "Interop Tools" by gus33000
Available Here:
Release Interop Tools v1 Version 2.1.7.0 (Legacy) · gus33000/InteropTools
This is the latest release of Interop Tools from its Version 1 source with minor updates.
github.com
More details: Interop Tools v1 Version 2.1.7.0
Install / Sideload it (Check the guide below)
And go to "General"
Then Select "Applications"
Then Navigate to "Package List"
Search for the app you need to remove it.
You will see many packages related to the same app
In the bottom actions bar there is "4 lines" icon click on it to activate it.
Now select the packages you need to remove.
Click on the trash icon and wait until the app removed
Go to main screen to check if the app removed
If it's remove you can now install the new version
Note: I'm not sure if these steps works without unlocking I didn't tried before unlock, just try before to unlock it might work.
Install apps
Now Download the apps form the links and save them in custom folder.
Go to your device Settings
Select "Update & Security"
Select "For Developers"
Select "Developer Mode"
Activate "Turn on remote diagnostics"
Activate "Authentication"
Using your computer: open the browser and enter the link that appeared in the developer page in your phone
if you got security warning message ignore it and continue (it's normal)
On your phone press "Pair" Button you will see pin code
Enter this pin code in your browser page and click "Submit"
Now you can install the app called "AppInstaller" using the web page
Once you able to install "AppInstaller" you can almost install the other apps from you mobile directly.
Note your device and computer need to be on the same network
OSM Mapping
to be honest I never used it before so I will do some search about it.
If I got anything new will let you know.
I wish most of the descriptions is clear, if you need extra details please let me know.
lohtse said:
Hi
WOW excellent response thank you so much for taking the time to reply as you have..
Could you possible explain this a little further
First
Check the latest updates and then you have to unlock the system so you can do some enhancements like:
Increasing Paging files from 256MB to 1GB
Transfer files via SFTP without using the USB cable
Uninstall official apps preinstalled like (Photos, Calculator..etc) -> you need this
And more..
As to navigation apps am more looking for OSM mapping as I create my own maps for hiking etc
Regards
Lohtse
Click to expand...
Click to collapse
I thought I had read somewhere that you can control how the flash functions(eg if all three flashes ar used or just one or two of them) I even thought I saw the setting.. But for the life of me I can't find out how to achieve this... Could someone point me in the right direction!!!!
astifan said:
(...)
As solution you can use "Introp Tools"
Available in store: microsoft.com/en-us/p/interop-tools-preview/9ntgwlc0d3cs
(...)
Click to expand...
Click to collapse
This version requires downloading the extensions after logging in to insidewindows.net because there is no General - Applications option in the menu by default.
Have you tried the open source Interop Tools v1 Version 2.1.7.0 made by @gus33000?
ze7zez said:
This version requires downloading the extensions after logging in to insidewindows.net because there is no General - Applications option in the menu by default.
Have you tried the open source Interop Tools v1 Version 2.1.7.0 made by @gus33000?
Click to expand...
Click to collapse
You right I thought the version in the store same as the one I already have, I update the post with the latest version.
Many thanks for your notice.
right I have now done the introp thing... So how would I do the page file mod and how do you increase the screentime out(5mins is far too short)????
astifan said:
Most of the apps I found it on windowsviet.com which they have too many helpful apps.
Click to expand...
Click to collapse
sadly now closed/domain for sale
lohtse said:
right I have now done the introp thing... So how would I do the page file mod and how do you increase the screentime out(5mins is far too short)????
Click to expand...
Click to collapse
Increase the paging file (required unlocked device):
Open Interop Tools
Go to "Registry"
Select "Registry browser"
Select "HKEY_LOCAL_MACHINE (HKLM)"
Select "System"
Select "CurrentControlSet"
Select "Control"
Select "Session Manager"
Select "Memory Management"
Select "Paging File"
Now In "Registry Value Data" Change The numbers from 256 to 1024
The final value will be "u:\pagefiles.sys 1024 1024"
Click on the "right icon at the bottom" to save the result
To check if the result saved just reopen the "Paging File" again, If the result back to the original "256" maybe your device is not unlocked yet.
Reboot the device to apply the changes.
Change Screen timeout:
Open Interop Tools
Go to "Registry"
Select "Registry browser"
Select "HKEY_LOCAL_MACHINE (HKLM)"
Select "Software"
Select "Microsoft"
Select "Settings"
Select "Lock"
Select "DisableNever"
Set "Registry Value Data" to 0
Then go to settings and check "Never" will be available now with some extra values.
astifan said:
Increase the paging file (required unlocked device):
Click to expand...
Click to collapse
is that boot loader unlocked or interop???
thank you for the information....
what other hacks would you suggest?
lohtse said:
is that boot loader unlocked or interop???
thank you for the information....
what other hacks would you suggest?
Click to expand...
Click to collapse
To be able to edit some of the protected registry values you need to do "Interop Unlock"
"Interop Unlock" will allow you to do almost everything you need.
Don't activate "Full Filesystem Access" In "Unlock" -> "Interop Unlock" it will not work with Lumia 950/XL and it might affect on the usb connection.
If you didn't find a clear guide for "Interop Unlock" let me know I will write a full guide based on my experiment because some of the details online line is very clear.
astifan said:
To be able to edit some of the protected registry values you need to do "Interop Unlock"
"Interop Unlock" will allow you to do almost everything you need.
Don't activate "Full Filesystem Access" In "Unlock" -> "Interop Unlock" it will not work with Lumia 950/XL and it might affect on the usb connection.
If you didn't find a clear guide for "Interop Unlock" let me know I will write a full guide based on my experiment because some of the details online line is very clear.
Click to expand...
Click to collapse
Thank you for that information worked a treat.
I have read that the FM radio is not activated on the 950xl, is this correct is so how do I reactivate it?
also is there away to have a bigger tile other than the three choices we have?
lohtse said:
Thank you for that information worked a treat.
I have read that the FM radio is not activated on the 950xl, is this correct is so how do I reactivate it?
also is there away to have a bigger tile other than the three choices we have?
Click to expand...
Click to collapse
The radio is working by default, try this app (almost the best you could find)
Radio FM Phone
Sadly the tiles sizes are fixed as I know, if you want to add some design to the start page you can use this app
Group Tiles
and this app if you want to add custom tiles based on your needs
edgeTile
Check the attached image to see how I did some titles to organize the start page.
astifan said:
The radio is working by default, try this app (almost the best you could find)
Radio FM Phone
Sadly the tiles sizes are fixed as I know, if you want to add some design to the start page you can use this app
Group Tiles
and this app if you want to add custom tiles based on your needs
edgeTile
Check the attached image to see how I did some titles to organize the start page.
Click to expand...
Click to collapse
Thank you for that... and radio works great... Have to say am loving the 950xl.... only thing I am really missing is a good off route navigation/mapping app if I could find a good one then everything would be nearly perfect.
also is there away to install the original lumia camera app so we can get flash control(number of flashes used ) back?
finally how do I gain full access to the file system on the device???
does any one have the file for this
Lumia Cinemagraph (Official Store)
Cool app you can take photo and make part of it alive with repeated motion, just try it
microsoft.com/en-us/p/lumia-cinemagraph/9wzdncrfhx4d
will not let me download it from store to device as says not compatible with this device
lohtse said:
does any one have the file for this
Lumia Cinemagraph (Official Store)
Cool app you can take photo and make part of it alive with repeated motion, just try it
microsoft.com/en-us/p/lumia-cinemagraph/9wzdncrfhx4d
will not let me download it from store to device as says not compatible with this device
Click to expand...
Click to collapse
It should work, ignore the compatible message just check the following:
the apps updated including "Microsoft Store" from "Menu" -> "Donwloads and updates"
there is no remaining system updates "Settings" -> "Windows update"
check if there is a "Get" button sometimes it's appear even of there is a compatibility message, click on the button if you found it.
If nothing above worked do the following:
Go to your PC
Be sure you are using the same email/account in both "Phone/PC"
Open the browser and be sure you are logged to your account/email
Open the link of the app
click on "Get"
a message will appear "you own this app"
once you get this message go back to your phone
Open Microsoft store -> Menu
Select "My Library"
Check if the app is there (you can sort the library by name which is better)
Click "Install" behind the app icon
The problem is some of the apps does not appear in Phone store but it will appear in PC store
so this trick will help you to get many apps in the same way,
but I think it will work only with the browser not the desktop app.
astifan said:
It should work, ignore the compatible message just check the following:
the apps updated including "Microsoft Store" from "Menu" -> "Donwloads and updates"
there is no remaining system updates "Settings" -> "Windows update"
check if there is a "Get" button sometimes it's appear even of there is a compatibility message, click on the button if you found it.
If nothing above worked do the following:
Go to your PC
Be sure you are using the same email/account in both "Phone/PC"
Open the browser and be sure you are logged to your account/email
Open the link of the app
click on "Get"
a message will appear "you own this app"
once you get this message got back to your phone
Open Microsoft store -> Menu
Select "My Library"
Check if the app is there (you can sort the library by name which is better)
Click "Install" behind the app icon
The problem is some of the apps does not appear in Phone store but it will appear in PC store
so this trick will help you to get many apps in the same way,
but I think it will work only with the browser not the desktop app.
Click to expand...
Click to collapse
did as you suggested.. all I get in store is .this app is not compatible with this device.
nevermind... missed the my library part .... worked a treat,,, thank you
lohtse said:
finally how do I gain full access to the file system on the device???
Click to expand...
Click to collapse
As per my experiments, gain the full access to the file system is not a big deal.
the files are protected anyway and some of the important folders assigned to custom users you can't have access, even if you was able to force replace the ownership of the folder and open it.. it will cause some issues with the system.
if you have something really important in the future it's better to use Mass Storage Mode, but accessing the file system while windows is running almost useless.
just don't use the feature in "Interop Tools" which called "Full Filesystem Access" I tried it before and it caused a problem with the connection with the computer I wasn't able to access the storage
astifan said:
Hi Lohtse,
Gaming Emulators
RetriX Universal Emulator (Enhanced)
RetriX (Universal Emulator) Enhanced Version
Click to expand...
Click to collapse
Trying to install this, Used durect method(filemanager) portal and interop. but always fails after installing net packages say a prerequisite for an install could not be satisfied... any ideas how to oover come this?

Categories

Resources