Help with UC and xml. - General Questions and Answers

Hello I'm trying to use xmlprovisioning to customize some features of S2U2.
An example of one key I'm having problem with is the following:
<parm name="ShowOwnerInfo" datatype="binary" value="01"/>
I just cannot get the value of 01 to stick. When I go back into S2U2 registry setting it is still showing as value not being set (according to CeRegistryEditor).
I don't have any problems changing other datatypes, such as: integer and string.
Am I don't something wrong?
Thank you in advance for all you guy's help.
Okay, I think I found out the reason:
"Binary values are a PITA since they're encoded Base 64 (see my entry for Owner Information above). If you want to set owner information as I did in the example, then you need to convert Unicode to Base64."
from: http://forum.xda-developers.com/showthread.php?t=366337&highlight=user+customization+binary
Can someone walk me through how to do this?

Is this any good?
Unicode to Base64 Convertor

Thank you for the suggestion.
I have already tried the tool, but what it gives me does not generate the effect that I'm looking for
Maybe I need to manipulate the value some how and then put it into the encoder??

Hi,
just an idea:
Binary data are hex ... so i attached a little txt ... just rename it and import to your registry.
It show how Binary-Values work (as far as i understood them )
In HKLM you'll find a Key (Folderlike) called "fwt"
Therein are three values
1. Capital
2. SmallLetter
3. Test
1. => FWT as binary data => 46,57,54
2. => fwt as binary data => 66,77,74
3. => all signs (letters, numbers, symbols) from 00 to FF
Space is 20
CapitalLetter start with 41
SmallLetters start with 61
Just use CeRegistryEditor and you can see them clearly .
I hope this helps!

Related

reg key!

is possible for you to put in only one topic All the best reg key adjustement?
i'm a newbie but i would learn quikly..
many thx!
Try to use usenet instead of this forum. It's a little bit illegal
I think Bubu try to search Registry key and not Registration key :wink:
You are right. I'm sorry
In that case:
Dunno if you've all seen this before but you can speed up your JAM by doing the following:
1) Go to HKEY_LOCAL_MACHINE\SYSTEM\GDI\GLYPHCACHE
2) Change the value of 'limit' from 8192 to 32768
3) Soft reset.
this was posted at: http://www.ppcsg.com/index.php?showtopic=45733
I did it to my JAM...no problems so far. Does seem to be a tad faster in loading apps...remember to backup before messing with Registry values!
Click to expand...
Click to collapse
Manual at every sms:
Tooltje download: TRE Registry Editor
To start up --> HKEY_CURRENT_USER/Software/Microsoft/Inbox/Setting
(care that those are open)
New - > DWORD
name: SMSDeliveryNotify
value: 1
(Should you nothing see because your keyboard in the way sits, simply blind "SMSDeliveryNotify" type (without quotations mark with
head and small characters) followed by grapple, the value comes afterwards, however, click him 1x (select) and click then on edit - > modify - > "1"
indicate value)
sounds more with difficulty than it is...
Click to expand...
Click to collapse
The last quote is from a translate site. (Dutch --> English). Maybe you can use them eiher. It's works prette good @ me
Take a look at this thread:
http://forum.xda-developers.com/viewtopic.php?t=20119

Making a cab - a small tutorial

Because people asked and didn't find the threat on MoDaCo, a small tutorial here. The example is from my Slide Panther theme, there is another one in make.zip. You have to write an *.inf for each cab you want to create. I t contains all files from a specific location and where they will be copied to. You can also specify reg keys.
[Version]
Signature = "$Windows NT$" <-- no changes needed
CESignature = "$Windows CE$" <-- no changes needed
Provider = "frauhottelmann" <-- change to your name
[CEStrings]
Appname="slide panther" <-- the name that will be displayed in the programs menu in settings
[CEDevice] <-- you don't have to change this for the vox
ProcessorType=0
VersionMin=5.2
VersionMax=6.0
[SourceDisksNames]
1=,"Source1",,"Home" <-- specify the name of your source and then the folder with your files (should be in the same location of the *.ini)
[SourceDisksFiles] <-- All files you want to copy have to be here. The 1 stands for Source1 mentioned above, if you have more than one sources (folders) you have to add it above and add an = 2 ... to the end of the corresponding files!
"Slide Panther.home.xml"= 1
"panther.jpg" = 1
"pantherlc.jpg" = 1
[CopyFiles1] <-- Here you have to list the files for one destination folder on the phone. More than one destiantion means more [CopyFiles2] etc.
"Slide Panther.home.xml"
"panther.jpg"
"pantherlc.jpg"
[DestinationDirs] <-- Specify the destinations for the above
CopyFiles1=0,"\Application Data\Home"
[RegData] <-- add reg data, the following is for string values, I don't know how to add dwords, but I never needed it!
HKCU,ControlPanel\Home,Scheme,,\Application Data\Home\Slide Panther.home.xml
[DefaultInstall] <-- Finally specify what you want to be installed, here every destination dir and reg data should be included
CopyFiles=CopyFiles1
AddReg=RegData
Click to expand...
Click to collapse
Once your done with your *.inf, just drag'n'drop it onto the cabwiz.exe and it'll make a cab with the same name as the *.inf! Now you can install it!
Or the alternative, use this program!
BIIIIIIIIIIIIG thx to the german guy ;D
but don't we have to change the versionmax to 6.1 or we will get this stupid "this prog may not display correctly" message??
No, this is the version of WinCE not Windows Mobile, which is still at 5.2...!
Can this be used to install changes to the registry that will be lost after a hard reset?
Roland
Yes everything you install with a cab is lost after hard reset
Nice work...as always...
/**still waiting for german emulator image......same here for italian's one. **/
could you please be a bit more precise about those regkeys? what are all these commas? what are the folder, keys, values?
HKCU,ControlPanel\Home,Scheme,,\Application Data\Home\Slide Panther.home.xml
Click to expand...
Click to collapse
HKCU = HKEY_CURRENT_USER
then after the comma the "folder" path, after the next comma the key name
then after the next comma comes the reg key type, so none is for a string, for others you have to search, because I don't know them. And finally after the last comma comes the value of the reg key!
funny thing, now that i was looking for th value-types i found the tutorial on modaco.
http://www.modaco.com/content/Smart...iscussion/235885/Tutorial-Creating-Cab-Files/
and here are the flags for diferrent types of registry entries:
[add_registry_section]
registry_root_string , subkey,[value_name], flags, value[,value]
[registry_root_string, subkey,[value_name], flags, value[,value]]
registry_root_strings
String that specifies the registry root location. The following table shows the values that are supported by Windows CE.
Root string Description
HKCR The same as HKEY_CLASSES_ROOT
HKCU The same as HKEY_CURRENT_USER
HKLM The same as HKEY_LOCAL_MACHINE
value_name
Registry value name. If empty, the "(default)" registry value name is used.
flags
Numeric value that specifies information about the registry key. The following table shows the values that are supported by Window CE.
Flag Value Description
FLG_ADDREG_NOCLOBBER 0x00000002 If the registry key exists, do not overwrite it. This flag can be used in combination with any of the other flags in this table.
FLG_ADDREG_TYPE_SZ 0x00000000 The REG_SZ registry data type.
FLG_ADDREG_TYPE_MULTI_SZ 0x00010000 The REG_MULTI_SZ registry data type. The value field that follows can be a list of strings separated by commas.
FLG_ADDREG_TYPE_BINARY 0x00000001 The REG_BINARY registry data type. The value field that follows must be a list of numeric values separated by commas, one byte per field, and must not use the 0x hexadecimal prefix.
FLG_ADDREG_TYPE_DWORD 0x00010001 The REG_DWORD data type. Only the non-compatible format in the Win32 Setup .inf documentation is supported.
The following code example shows a typical [AddReg] section.
AddReg = RegSettings.All
[RegSettings.All]
HKLM,%reg_path%,,0x00000000,alpha ; <default> = "alpha"
got it from here http://www.sundialsoft.freeserve.co.uk/cabinfo.htm
could it be that we need to make a .inF (as it says in the instructions) file and not a .inI file?
Is it possible to delete registry entries??
Yes it's inf sorry. And I am not aware of a way to delete reg key with cabs!
Hi frauhottelmann,
It is realy great starting point for CAB maker. I will use this instructions for making my Sliding Panel Default Green cab for 6.1 ver 1.1 ROM.
I have found something really great for cab makers: http://www.gpcarreon.com/?p=524
Haven't tried it though!
EDIT: Under Vista it does, unfortunately, not work!
It DOES work, in compatibility mode!

MortScript Help: Parsing a text file and storing values in the registry

I have a text file seperated by several lines. Its sort of like an XML file, just custom made.
It looks something like this:
<Time1>
-Schedule: 8:00 PM
-What: Doctor
<Time2>
etc...
Can someone show me an example of how I would parse this file? What I wanted to do is the following:
I have five time locations Time1, time2, etc... They each have the category -Shedule and -What. I want to sort through all the Times. In each time I want to extract the info that appears AFTER -schedule and AFTER -what (EG: 8:00PM, Doctor) and insert it into the registry. The registry would be formed like:
HKLM Schedulertime\ With sub directories of Time1, time2, etc... In each time there would be a string (I guess) of Shedule and of What. And the script would insert the values into each time in the registry.
Can someone write a script showing me how its done? Thanks in advance.

[HELP]What code should I search

Hello everyone , I'm new here ! I dissasembly the Castle TD.apk but I cant find the code for crystals , I tried notepad++ to search for crystals so I can edit it to 99999 . Can you help me about this ?
Not sure if this is the best place to ask this question, let a mod decide that.
but if your goal is to gain more crystals (? dont know not much of a gammer) i would look HERE
or try THIS
I realize this is an old thread, but nobody posted an answer yet so I thought I'd help.
I don't know the exact logic that the developers used for their hex values, but I do have a hex value where the number of crystals is over one million.
Go to data > data > com.hz.game.cd > shared_prefs > Cocos2dxPrefsFile.xml.
Search for <string name="pa5qf928_0"> <random hex value> </string>
In the <random hex value> change the hex value to 423521871038892. (Make sure there are no spaces inbetween).
This will give you 1,038,892 crystals.
Believe it or not, I had to go to this Russian forum to get this to work. :laugh:
new app???
Geodude074 said:
I realize this is an old thread, but nobody posted an answer yet so I thought I'd help.
I don't know the exact logic that the developers used for their hex values, but I do have a hex value where the number of crystals is over one million.
Go to data > data > com.hz.game.cd > shared_prefs > Cocos2dxPrefsFile.xml.
Search for <string name="pa5qf928_0"> <random hex value> </string>
In the <random hex value> change the hex value to 423521871038892. (Make sure there are no spaces inbetween).
This will give you 1,038,892 crystals.
Believe it or not, I had to go to this Russian forum to get this to work. :laugh:
Click to expand...
Click to collapse
Do I need an app, to do those?
Updated info about money / crystals in CastleTD
NEW PATH (2014 SEP, game version: 1.4.8) for Cocos2dxPrefsFile.xml is:
dbdata / databases / com.hz.game.cd > shared_prefs > Cocos2dxPrefsFile.xml.
HEX Value for crystals given before (423521871038892) doesn't work anymore but I have correct hex value for 9356 crystals which is 208767549356 and second value for 31434 which is 8bfb221531434.
It's not so much but you can set this value, open the game, buy some upgrades, exit the game, open PREFS file again, correct the amount of crystals, save the file and open game again to buy more upgrades. Withing 30 minutes you can buy A LOT in this way
To quickly do the task I use ES File Explorer running in background so after closing the game I'm back again in folder with PREFS file.
And for XML editing I just use text editor which is built in ES File Explorer : ES Note Editor.
The rest of the information is correct - for crystals for player / profile 1 you have to edit this line:
<string name="pa5qf928_0">208767549356</string>
(These hex values cannot be used for the second player - "pa5qf928_1" since they are hashed/encrypted with different key).
And of course for access to dbdata folder you need to root your Android and enable root explorer in ES File Explorer.
Good luck
Not working anymore
I did it with great hopes, but my crystals went to zero. It seems this method is not working anymore. Could someone check too plz?
7cf1a250108667 in the same field works for version 1.6.3 - for 108667 gems
..and it only works for pa5qf928_0 not pa5qf928_1 or _2
i want unlimited health in minimiltia... which string values should i edit in xml file..plz tell

Android ID: How do I change it to a specific number?

I haven't seen this specifically addressed in any thread, and I'm not interested in random number generating apps that can change the IMEI or Mac. This is about the Android ID, the unique phone identifier that is listed in your data under Android Device Configuration Services.
Long story short, I have a couple rooted phones: A Galaxy S3 running KitKat 4.4 and a Moto e6 running Pie.
I also have specific Android ID numbers I would like to change them to, verified that they uniquely identify the phone itself (i.e. they don't identify apps or accounts because it's the same device ID number on different accounts) and are most likely what Google is looking for when judging whether it is a friendly device.
Does anyone know where to find the actual Android ID in the file system so I can change it? I followed a couple posts, like one had an app that pulled a 64 character hex string it said was the Android ID, and another post discussed editing the buildprop, which also had a 64 character hex string.
If that 64 character hex string is the correct ID, how does it get turned into the 19-digit number that shows up in Android Device Configuration?
Thanks in advance. Like, a lot. This has been bugging me for a long time.
If that 64 character hex string is the correct ID, how does it get turned into the 19-digit number that shows up in Android Device Configuration?
Hex is the numerical version of the text you see in configuration. (may/probably encrypted)
Your going about it the wrong way...
Look for Sn Writer. A little awkward, but once you understand that, you wont need to ask
If you need a quick tut on it i'll do one, but Sn writer may not be for your fone, but to understand tis process is to find the app suitable to do same for yours
Edit, In Sn Writer I can edit macs, serials, barcodes, device id, and I know you'd need the attestation key from stock rom, this is your unlocker that allows you to edit pretty much anything, see, once this is running, other apps can access...
It depends on Android version how ANDROID_ID is composed:
https://developer.android.com/reference/android/provider/Settings.Secure#ANDROID_ID
AFAIK ANDROID_ID on a Android 8.1 phone is a 16 chars long string:
Code:
adb shell settings get secure android_id
returns a hexadecimal value as string like this
32ff79aa2427be03
what translates to decimal 20-digits value
3674789592615599619
IMO Android's changeable ID is called "Advertising ID".
jwoegerbauer said:
https://developer.android.com/reference/android/provider/Settings.Secure#ANDROID_ID
Click to expand...
Click to collapse
That was where I was able to find the 64 bit hex string (the second paragraph there relates to what I'm looking for; the device, not an app ID). If I use root explorer, I can go to
/data/system/users/0/settings_ssaid.xml
And pull it up. Actually, you can see all ID's, even for the apps too. It's the only one represented by a 64 bit hex string. The others are all 16 bit and use numbers and lowercase letters. The code also assigns then all a setting ID number and a name, in this case is 4 and 10200.
So that answers one question.
The next is: How do I translate the 19-digit ID number that I have into a 64 bit hex string that Google will read as the right android_id?
I suppose I could try replacing the 64bit with the 19 digit number, reboot three other, and pull the Device configuration data again and see if it stays the same or if a new device pops up with the right Android ID.
Thoughts?
Only to have said it:
A hexadecimal value is a string ( means a sequence of hexadecimal - base 16 - characters ), what may represent a 16-bit and/or 32-bit decimal ( read: base 10 ) value ( 2,147,483,647 is the maximum positive decimal value for a 32-bit integer ) or a 64-bit decimal value ( 9,223,372,036,854,775,807 is the maximum positive value for a 64-bit decimal value ).
16-bit decimal values expressed as hexadecimal are stored as 1 WORD -> FFFF
32-bit decimal values expressed as hexadecimal are stored as 2 WORDS -> FFFF FFFF
64-bit decimal values expressed as hexadecimal are stored as 4 WORDS -> FFFF FFFF FFFF FFFF
A 19-digits number can get expressed as hexadecimal value if it's equal or less the decimal value of a 64-bit decimal as shown above.
BTW: It exist Online convertors. GIYF ...
How to change ANDROID_ID is described here:
[APP][8-13][ROOT] AndroidIDeditor - device ID changer
In Oreo, Android ID (Settings.Secure.ANDROID_ID or SSAID) has a different value for each application and each user on the device. In order to change the ID for an application you need to follow a few simple steps: 1. Make sure that you have ROOT...
forum.xda-developers.com
BTW: It exist Online convertors. GIYF ...
Click to expand...
Click to collapse
We all have our skill sets. I'm not a programmer so not only am I not sure what I'm looking for, I don't know where to find the answer.
I did try quite a few online converters. Nothing worked as far as getting the right number.
I tested using two known numbers: A64 Bit hex string and a 19 digit number, both of which are in a device I currently have operational. These questions about conversions are based on the assumption that the 64 bit hex translates to the 19 digit number because the former is listed as Android ID on the phone and the latter listed on the Takeout.
I couldn't get one to match the other in any conversion. For the ID that I want to change it to, I only have the 19 digit number, hence the reason I was looking for a proper conversion.

Categories

Resources