Huawei hwtTool Theme Creator/Editor - Huawei P20 Themes, Apps, and Mods

Hello, Forum!
After messing around with some Apps for Theme Editing I found the windows programm hwtTool on Huaweis Dev Server and I'm really pleased. For Theme-Noobs like me this Software is pretty fine.
It supports EMUI 5, 8 and 9, can change colors, icons, fonts, and a lot of other stuff. You can download this software here:
https://developer.huawei.com/consumer/en/devservice/doc/30114
Please share your opinion and show us what you have created.

It seems quite an issue to get this HwtTool downloaded (slow download from server) and then installed on Windows 10.
On both my Win10 laptops I get an error almost at the end of the installation.
It's an 'unknown error' or now something about not finding a file. See attachment.
It's always very unclear what the issue is.
Anyone have a solution? I see very few dark color themes and want to edit them myself.

Spardorp said:
It seems quite an issue to get this HwtTool downloaded (slow download from server) and then installed on Windows 10.
Click to expand...
Click to collapse
Resolved.
I disabled Win10 Controlled Folder Access and despite the popup error after install it asked for a reboot.
I then didnot see the shortcut icon on the desktop and installed it again on top of the already existing files and again a reboot
and now the application is working okay.

Problem running theme editor
Spardorp said:
Resolved.
I disabled Win10 Controlled Folder Access and despite the popup error after install it asked for a reboot.
I then didnot see the shortcut icon on the desktop and installed it again on top of the already existing files and again a reboot
and now the application is working okay.
Click to expand...
Click to collapse
I'm having problems with the app. All installed OK but unable to load. Heard some where it might be trying to run on 64 bit windows and conflicts with the 32 bit. Has anyone got a work around

Can anyone mirror hwttool. I am getting speed soo slow it will take DAYS to finish.

http://www.miinaa.com/ss/?a=url&k=256ceb8f&u=aHR0cDovL3d3dy5iYWlkdS5jb20vbGluaz91cmw9NlpHbzloN0dTMEp2WnFOQi1RWlM0MV9SZkF4RHdmV1h6OGtWUTlJalVGUGV5S2lvS1V0V0ZoSElNejJBZWpEX2NUTzNMMDRqa3M1eS1RTENCSWlLQ0smYW1wO3Rva2VuPWU4NzZjMmQ3OThhODI1ODAyMTZlNDcwZjdlM2EzMmFiNWExZmUzODE0NmQ3MzRmZjIyMmFmMjM3ZDZjOTE1MGE=&t=aHd0VG9vbC1od3RUb29sKOWNjuS4uuS4u!mimOW8gOWPkeW3peWFtynkuIvovb0gdjkuMC4yLjMwMeWumC4uLl9wYzbkuIvovb3nq5k=&s=5Y2O5Li65Li76aKY5Yi25L2c5bel5YW3

Here's the solution
I download both Windows version for you(no longer need to download slowly)
Tested on Windows 10 pro and no problem.
https:// mega.nz/#F!SWo1naDR!nv2S8VADmRxm4I8e6PaANA
(xda doesn't allow me to post outside link ,sorry)

hwtTool Theme Creator Error
Hi all.
I have been trying to modify a dark theme for Huawei called Material Dark-v.2.3 by Maurydes. I downloaded it from the Themes Manager app. I edited only its phone keys using the hwtTool because of some inconsistencies of the * and # symbols when pressed (see below).
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
After replacing the images, I tried to export the theme, but this is the error I get (174 lines). I did not touch any other area of the theme editor. Just testing out the theme maker first. Any idea how to solve this? First time trying to edit a Huawei Theme.
EMUI9.1:Material Dark
2020-04-28 09:34:32
1.HWTheme/icons/thirdparty/mode/icon_background_04.png/File does not exist
2.HWTheme/icons/thirdparty/image/icon_background_0.png/File does not exist
3.HWTheme/icons/thirdparty/image/mega.privacy.android.app.png/File does not exist
4.HWTheme/icons/thirdparty/image/org.kman.AquaMail.png/File does not exist
5.HWTheme/icons/thirdparty/image/com.amazon.mp3.png/File does not exist
6.HWTheme/icons/thirdparty/image/com.amazon.mp3.vpl.png/File does not exist
7.HWTheme/icons/thirdparty/image/com.amazon.mShop.android.png/File does not exist
8.HWTheme/launcher/image/Add icon/File does not exist
9.HWTheme/launcher/image/ic_arrow.png/File does not exist
10.HWTheme/icons/thirdparty/image/com.waze.png/File does not exist
11.HWTheme/icons/thirdparty/image/com.amazon.buyvip.png/File does not exist
12.HWTheme/icons/thirdparty/mode/icon_background_03.png/File does not exist
13.HWTheme/icons/thirdparty/image/com.amazon.drive.png/File does not exist
14.HWTheme/icons/thirdparty/image/com.alensw.PicFolder.png/File does not exist
15.HWTheme/icons/thirdparty/image/com.amazon.mShop.android.shopping.png/File does not exist
16.HWTheme/icons/thirdparty/image/com.tiantian.android.player.video.png/File does not exist
17.HWTheme/icons/thirdparty/image/com.xda.labs.png/File does not exist
18.HWTheme/icons/thirdparty/image/com.spotify.music.png/File does not exist
19.HWTheme/icons/thirdparty/image/com.snapchat.android.png/File does not exist
20.HWTheme/icons/thirdparty/mode/icon_background_02.png/File does not exist
21.HWTheme/wallpaper/image/Home wallpaper/File does not exist
22.HWTheme/wallpaper/image/Lock wallpaper/File does not exist
23.HWTheme/icons/system/static/Browser/File does not exist
24.HWTheme/icons/system/static/Vmall/File does not exist
25.HWTheme/icons/system/static/FM Radio/File does not exist
26.HWTheme/icons/system/static/Pollen/File does not exist
27.HWTheme/icons/system/static/SkyTone/File does not exist
28.HWTheme/icons/system/static/HUAWEI Reader/File does not exist
29.HWTheme/icons/system/static/Find My Phone/File does not exist
30.HWTheme/icons/system/static/Honor Reader/File does not exist
31.HWTheme/icons/system/static/Cloud/File does not exist
32.HWTheme/icons/system/static/Item/File does not exist
33.HWTheme/icons/system/static/Huawei Wear/File does not exist
34.HWTheme/icons/system/static/HUAWEI LiveOnline/File does not exist
35.HWTheme/icons/system/static/HUAWEI Wallet/File does not exist
36.HWTheme/icons/system/static/System update/File does not exist
37.HWTheme/icons/system/static/Photos/File does not exist
38.HWTheme/icons/system/static/Sheets/File does not exist
39.HWTheme/icons/system/static/Play Store/File does not exist
40.HWTheme/icons/system/static/Google Play Movies&TV/File does not exist
41.HWTheme/icons/system/static/Shortcut Mask/File does not exist
42.HWTheme/icons/system/static/Smart home/File does not exist
43.HWTheme/icons/system/static/Play Music/File does not exist
44.HWTheme/icons/system/static/YouTube/File does not exist
45.HWTheme/icons/system/static/Docs/File does not exist
46.HWTheme/icons/system/static/Amazon Assistant/File does not exist
47.HWTheme/icons/system/static/Drive/File does not exist
48.HWTheme/icons/system/static/Android/File does not exist
49.HWTheme/icons/system/static/facebook/File does not exist
50.HWTheme/icons/system/static/Gmail/File does not exist
51.HWTheme/icons/system/static/Video/File does not exist
52.HWTheme/icons/system/static/Messages/File does not exist
53.HWTheme/icons/system/static/Maps/File does not exist
54.HWTheme/icons/system/static/Google/File does not exist
55.HWTheme/icons/system/static/Slides/File does not exist
56.HWTheme/icons/system/static/Duo/File does not exist
57.HWTheme/icons/system/dynamic_icons/calendar_background.png/File does not exist
58.HWTheme/icons/system/static/Translator/File does not exist
59.HWTheme/icons/system/static/Instagram/File does not exist
60.HWTheme/icons/system/static/Video/File does not exist
61.HWTheme/icons/system/static/HiVoice/File does not exist
62.HWTheme/icons/system/static/Driving Mode/File does not exist
63.HWTheme/icons/system/static/Browser/File does not exist
64.HWTheme/icons/system/static/Booking.com/File does not exist
65.HWTheme/icons/system/static/Quik/File does not exist
66.HWTheme/icons/system/static/Reader/File does not exist
67.HWTheme/icons/system/static/Honor Club/File does not exist
68.HWTheme/icons/system/static/com.android.hwmirror.png/File does not exist
69.HWTheme/icons/system/dynamic_icons/Optimize Preview Icon/File does not exist
70.HWTheme/icons/thirdparty/mode/icon_mask.png/File does not exist
71.HWTheme/icons/thirdparty/mode/icon_background_00.png/File does not exist
72.HWTheme/icons/thirdparty/mode/icon_background_01.png/File does not exist
73.HWTheme/icons/system/dynamic_icons/Optimize icon/File does not exist
74.HWTheme/launcher/image/Share background pictures/File does not exist
75.HWTheme/launcher/image/Addtion1/File does not exist
76.HWTheme/launcher/image/Lock icon/File does not exist
77.HWTheme/launcher/image/Uninstall background pictures/File does not exist
78.HWTheme/launcher/global setting/image/list_section_divider_emui.9.png/File does not exist
79.HWTheme/launcher/global setting/image/alphaindexerlistview_bg_label.9.png/File does not exist
80.HWTheme/launcher/global setting/image/bg_edittext_item.9.png/File does not exist
81.HWTheme/launcher/global setting/image/Scroll bar-Portrait/File does not exist
82.HWTheme/launcher/global setting/image/Scroll bar-Landscape/File does not exist
83.HWTheme/launcher/global setting/image/scrubber_control_disabled_emui.png/File does not exist
84.HWTheme/launcher/global setting/image/textfield_default_linear_emui.9.png/File does not exist
85.HWTheme/launcher/global setting/image/button_small_bg_stroked.9.png/File does not exist
86.HWTheme/launcher/global setting/image/button_big_bg_stroked_disable.9.png/File does not exist
87.HWTheme/launcher/global setting/image/list_selector_background_focused_middle_emui.9.png/File does not exist
88.HWTheme/launcher/global setting/image/list_selector_background_focused_top_emui.9.png/File does not exist
89.HWTheme/launcher/global setting/image/button_small_bg_stroked_disable.9.png/File does not exist
90.HWTheme/launcher/global setting/image/search_bg_normal.9.png/File does not exist
91.HWTheme/launcher/global setting/image/scrubber_control_pressed_emui.png/File does not exist
92.HWTheme/launcher/global setting/image/textfield_bg_error.9.png/File does not exist
93.HWTheme/launcher/global setting/image/button_big_bg_stroked_pressed.9.png/File does not exist
94.HWTheme/launcher/global setting/image/Spinner list background/File does not exist
95.HWTheme/launcher/global setting/image/button_small_bg_stroked_pressed.9.png/File does not exist
96.HWTheme/launcher/global setting/image/scrubber_control_normal_emui.png/File does not exist
97.HWTheme/launcher/global setting/image/textfield_default_linear_actived_emui.9.png/File does not exist
98.HWTheme/launcher/global setting/image/search_bg_actived.9.png/File does not exist
99.HWTheme/launcher/global setting/image/button_big_bg_stroked.9.png/File does not exist
100.HWTheme/launcher/global setting/image/New input box/File does not exist
101.HWTheme/icon_small.jpg/File does not exist
102.HWTheme/cover.jpg/File does not exist
103.HWTheme/icon_small_1.jpg/File does not exist
104.HWTheme/Messaging/SMS and MMS/(Screenshot picture)/File does not exist
105.HWTheme/Unlock/(Screenshot picture)/File does not exist
106.HWTheme/Notifications/(Screenshot picture)/File does not exist
107.HWTheme/Icon/(Screenshot picture)/File does not exist
108.HWTheme/Contacts/(Screenshot picture)/File does not exist
109.HWTheme/Icon/(Screenshot picture)/File does not exist
110.HWTheme/contacts/global setting/image/Scroll bar-Landscape/File does not exist
111.HWTheme/contacts/global setting/image/list_section_divider_emui.9.png/File does not exist
112.HWTheme/contacts/global setting/image/alphaindexerlistview_bg_label.9.png/File does not exist
113.HWTheme/contacts/global setting/image/Scroll bar-Portrait/File does not exist
114.HWTheme/contacts/global setting/image/bg_edittext_item.9.png/File does not exist
115.HWTheme/contacts/global setting/image/Spinner list background/File does not exist
116.HWTheme/contacts/global setting/image/button_big_bg_stroked.9.png/File does not exist
117.HWTheme/contacts/global setting/image/button_big_bg_stroked_pressed.9.png/File does not exist
118.HWTheme/contacts/global setting/image/button_small_bg_stroked.9.png/File does not exist
119.HWTheme/contacts/global setting/image/scrubber_control_normal_emui.png/File does not exist
120.HWTheme/contacts/global setting/image/textfield_bg_error.9.png/File does not exist
121.HWTheme/contacts/global setting/image/scrubber_control_disabled_emui.png/File does not exist
122.HWTheme/contacts/global setting/image/textfield_default_linear_actived_emui.9.png/File does not exist
123.HWTheme/contacts/global setting/image/list_selector_background_focused_middle_emui.9.png/File does not exist
124.HWTheme/contacts/global setting/image/New input box/File does not exist
125.HWTheme/contacts/global setting/image/textfield_default_linear_emui.9.png/File does not exist
126.HWTheme/contacts/global setting/image/button_big_bg_stroked_disable.9.png/File does not exist
127.HWTheme/contacts/global setting/image/search_bg_normal.9.png/File does not exist
128.HWTheme/contacts/global setting/image/search_bg_actived.9.png/File does not exist
129.HWTheme/contacts/global setting/image/button_small_bg_stroked_disable.9.png/File does not exist
130.HWTheme/contacts/global setting/image/scrubber_control_pressed_emui.png/File does not exist
131.HWTheme/contacts/global setting/image/button_small_bg_stroked_pressed.9.png/File does not exist
132.HWTheme/contacts/global setting/image/list_selector_background_focused_top_emui.9.png/File does not exist
133.HWTheme/messaging/global setting/image/list_selector_background_focused_top_emui.9.png/File does not exist
134.HWTheme/messaging/global setting/image/alphaindexerlistview_bg_label.9.png/File does not exist
135.HWTheme/messaging/global setting/image/scrubber_control_disabled_emui.png/File does not exist
136.HWTheme/messaging/global setting/image/bg_edittext_item.9.png/File does not exist
137.HWTheme/messaging/global setting/image/button_big_bg_stroked.9.png/File does not exist
138.HWTheme/messaging/global setting/image/scrubber_control_normal_emui.png/File does not exist
139.HWTheme/messaging/global setting/image/search_bg_actived.9.png/File does not exist
140.HWTheme/messaging/global setting/image/scrubber_control_pressed_emui.png/File does not exist
141.HWTheme/messaging/global setting/image/search_bg_normal.9.png/File does not exist
142.HWTheme/messaging/global setting/image/Scroll bar-Landscape/File does not exist
143.HWTheme/messaging/global setting/image/list_section_divider_emui.9.png/File does not exist
144.HWTheme/messaging/global setting/image/Scroll bar-Portrait/File does not exist
145.HWTheme/messaging/global setting/image/button_big_bg_stroked_disable.9.png/File does not exist
146.HWTheme/messaging/global setting/image/button_big_bg_stroked_pressed.9.png/File does not exist
147.HWTheme/messaging/global setting/image/button_small_bg_stroked.9.png/File does not exist
148.HWTheme/messaging/global setting/image/button_small_bg_stroked_disable.9.png/File does not exist
149.HWTheme/messaging/global setting/image/button_small_bg_stroked_pressed.9.png/File does not exist
150.HWTheme/messaging/global setting/image/list_selector_background_focused_middle_emui.9.png/File does not exist
151.HWTheme/messaging/global setting/image/textfield_default_linear_actived_emui.9.png/File does not exist
152.HWTheme/messaging/global setting/image/textfield_default_linear_emui.9.png/File does not exist
153.HWTheme/messaging/global setting/image/Spinner list background/File does not exist
154.HWTheme/messaging/global setting/image/textfield_bg_error.9.png/File does not exist
155.HWTheme/messaging/global setting/image/New input box/File does not exist
156.HWTheme/notifications/global setting/image/Scroll bar-Portrait/File does not exist
157.HWTheme/notifications/global setting/image/alphaindexerlistview_bg_label.9.png/File does not exist
158.HWTheme/notifications/global setting/image/bg_edittext_item.9.png/File does not exist
159.HWTheme/notifications/global setting/image/Scroll bar-Landscape/File does not exist
160.HWTheme/notifications/global setting/image/list_section_divider_emui.9.png/File does not exist
161.HWTheme/notifications/global setting/image/button_big_bg_stroked_disable.9.png/File does not exist
162.HWTheme/notifications/global setting/image/textfield_default_linear_emui.9.png/File does not exist
163.HWTheme/notifications/global setting/image/button_small_bg_stroked_disable.9.png/File does not exist
164.HWTheme/notifications/global setting/image/button_small_bg_stroked.9.png/File does not exist
165.HWTheme/notifications/global setting/image/textfield_default_linear_actived_emui.9.png/File does not exist
166.HWTheme/notifications/global setting/image/button_big_bg_stroked_pressed.9.png/File does not exist
167.HWTheme/notifications/global setting/image/button_small_bg_stroked_pressed.9.png/File does not exist
168.HWTheme/notifications/global setting/image/list_selector_background_focused_middle_emui.9.png/File does not exist
169.HWTheme/notifications/global setting/image/list_selector_background_focused_top_emui.9.png/File does not exist
170.HWTheme/notifications/global setting/image/search_bg_normal.9.png/File does not exist
171.HWTheme/notifications/global setting/image/Spinner list background/File does not exist
172.HWTheme/notifications/global setting/image/textfield_bg_error.9.png/File does not exist
173.HWTheme/notifications/global setting/image/button_big_bg_stroked.9.png/File does not exist
174.HWTheme/notifications/global setting/image/search_bg_actived.9.png/File does not exist
Click to expand...
Click to collapse

eriksala said:
hwtTool Theme Creator Error
Hi all.
I have been trying to modify a dark theme for Huawei called Material Dark-v.2.3 by Maurydes. I downloaded it from the Themes Manager app. I edited only its phone keys using the hwtTool because of some inconsistencies of the * and # symbols when pressed (see below).
After replacing the images, I tried to export the theme, but this is the error I get (174 lines). I did not touch any other area of the theme editor. Just testing out the theme maker first. Any idea how to solve this? First time trying to edit a Huawei Theme.
Click to expand...
Click to collapse
I had a similar error and it was resolved after I replaced all the photos in the theme, and it doesn't matter if it is the same icons or different ones.

Related

Tool to edit .CPL files

Hello,
I need a tool to edit CPL files. I have done quite a bit of searching on Google and here, but none of the tools found on the net are actually intended for CPL files, while threads here only mention people editing them, not how.
Why I want to do this - I would like to edit Japanese text inside these CPLs so that I can fully localize my device(s) into English.
These are some of the files:
- ShPowerMng.cpl
- ShUsbCnt.cpl
- ShWrlsMgrRes.cpl
- shutil.cpl
Thanks in advance!
cheeseus said:
Hello,
I need a tool to edit CPL files. I have done quite a bit of searching on Google and here, but none of the tools found on the net are actually intended for CPL files, while threads here only mention people editing them, not how.
Why I want to do this - I would like to edit Japanese text inside these CPLs so that I can fully localize my device(s) into English.
These are some of the files:
- ShPowerMng.cpl
- ShUsbCnt.cpl
- ShWrlsMgrRes.cpl
- shutil.cpl
Thanks in advance!
Click to expand...
Click to collapse
did you try looking in the reg for it... i think its something like HKCU\***\MyCpl
irus said:
did you try looking in the reg for it... i think its something like HKCU\***\MyCpl
Click to expand...
Click to collapse
Yes, of course, I have looked through each registry folder - this is how, for instance, I found out how to translate Today items and Button descriptions (HKLM/Software/MS/Shell/Keys).
Suggested from posts here about HTC devices, I looked for HKEY_LOCAL_MACHINE\ControlPanel\MyCpl --- but I do not have such a registry setting.
Is it a far guess to tell that the files I mention above are used instead of registry settings?
This is why I am looking for a tool to edit these files. Is there one?
Any resource editor would do, try reshacker
stepw said:
Any resource editor would do, try reshacker
Click to expand...
Click to collapse
Thank you! Reshacker does open the files.
How to edit them, though, is less obvious than I thought. I was thinking there'd be strings of text I would just need to replace.
I'd like to ask for more help here, please.
For instance, I have:
Code:
STRINGTABLE
LANGUAGE LANG_JAPANESE, 0x1
{
101, "???????"
102, "Utility Applet"
}
1st Question: how can I see the Japanese text not garbled?
2nd: The two values above - do I just switch them somehow? 101, "???????" is the Japanese correspondent of 102, "Utility Applet".
Similarly here:
Code:
119 DIALOG 0, 0, 200, 110
STYLE DS_FIXEDSYS | WS_CHILD | WS_DISABLED
CAPTION ""
LANGUAGE LANG_JAPANESE, 0x1
FONT 8, "MS Shell Dlg"
{
CONTROL "????????????????\n??????", 1067, STATIC, SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 6, 6, 138, 24
CONTROL "???????(????)", 1006, BUTTON, BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE, 6, 42, 120, 12
CONTROL "???????????????\n(???????????)", 1007, BUTTON, BS_AUTORADIOBUTTON | BS_TOP | BS_MULTILINE | WS_CHILD | WS_VISIBLE, 6, 60, 126, 24
CONTROL "*RGB???????????????", 1068, STATIC, SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 6, 84, 138, 12
}
How do I change the language - LANGUAGE LANG_JAPANESE, 0x1?
And, of course, if I can't see the Japanese text, I can't translate it -- I tried the various fonts available in ResHacker, but none of them seems to support Japanese.
PS. After installing Japanese (East Asian) Languages support on my PC, ResHacker now offers a couple more fonts that have "Japanese" under "Script", e.g. MS Mincho, MS Gothic etc. but they are still unable to properly render the Japanese text of the CPL file, whose font is "MS Shell Dlg".
cheeseus said:
Thank you! Reshacker does open the files.
How to edit them, though, is less obvious than I thought. I was thinking there'd be strings of text I would just need to replace.
I'd like to ask for more help here, please.
For instance, I have:
Code:
STRINGTABLE
LANGUAGE LANG_JAPANESE, 0x1
{
101, "???????"
102, "Utility Applet"
}
1st Question: how can I see the Japanese text not garbled?
2nd: The two values above - do I just switch them somehow? 101, "???????" is the Japanese correspondent of 102, "Utility Applet".
Similarly here:
Code:
119 DIALOG 0, 0, 200, 110
STYLE DS_FIXEDSYS | WS_CHILD | WS_DISABLED
CAPTION ""
LANGUAGE LANG_JAPANESE, 0x1
FONT 8, "MS Shell Dlg"
{
CONTROL "????????????????\n??????", 1067, STATIC, SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 6, 6, 138, 24
CONTROL "???????(????)", 1006, BUTTON, BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE, 6, 42, 120, 12
CONTROL "???????????????\n(???????????)", 1007, BUTTON, BS_AUTORADIOBUTTON | BS_TOP | BS_MULTILINE | WS_CHILD | WS_VISIBLE, 6, 60, 126, 24
CONTROL "*RGB???????????????", 1068, STATIC, SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 6, 84, 138, 12
}
How do I change the language - LANGUAGE LANG_JAPANESE, 0x1?
And, of course, if I can't see the Japanese text, I can't translate it -- I tried the various fonts available in ResHacker, but none of them seems to support Japanese.
PS. After installing Japanese (East Asian) Languages support on my PC, ResHacker now offers a couple more fonts that have "Japanese" under "Script", e.g. MS Mincho, MS Gothic etc. but they are still unable to properly render the Japanese text of the CPL file, whose font is "MS Shell Dlg".
Click to expand...
Click to collapse
Try PE-explorer, this one gives you more power and also will display an example of the form (for certain compilers).
Regards,
EqX
the-equinoxe said:
Try PE-explorer, this one gives you more power and also will display an example of the form (for certain compilers).
Regards,
EqX
Click to expand...
Click to collapse
Thanks! Tried PE explorer as well. Just like ResHacker, it displays the form, but not the form is actually readable - ResHacker displays garbled chars in the script and the form, PE -- only in the script. Sadly, I still can't see, and copy, the Japanese text so that I can have it translated. Tried the various fonts in PE Explorer too...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
cheeseus said:
Thanks! Tried PE explorer as well. Just like ResHacker, it displays the form, but not the form is actually readable - ResHacker displays garbled chars in the script and the form, PE -- only in the script. Sadly, I still can't see, and copy, the Japanese text so that I can have it translated. Tried the various fonts in PE Explorer too...
Click to expand...
Click to collapse
It seems that those scripts can handle only western language .
If you try to edit the form (like moving Tedit boxes etc..), is there any chance to grep the text?
And if you look in the hex editor, any chance to get it from there?
(there is a program that can get the text from a dialog, sadly I forgot it's name.)
Regards,
EqX
the-equinoxe said:
It seems that those scripts can handle only western language .
If you try to edit the form (like moving Tedit boxes etc..), is there any chance to grep the text?
And if you look in the hex editor, any chance to get it from there?
(there is a program that can get the text from a dialog, sadly I forgot it's name.)
Regards,
EqX
Click to expand...
Click to collapse
Couldn't grip the text from the form editor - can move it around, but can't select it.
Can't find out how to see the file in HEX editor mode - this stuff is quite new to me...
The best idea I had was use OCR software to extract the text from a screenshot of the form. Abbyy Fine Reader 9 advertises Japanese/Chinese support but the copy I found doesn't have Japanese in its list of languages... so, I am stuck here, unless you can remember that program;s name
Regards,
Stefan
Little progress
I am having very little progress here...
I started editing the "ShPowerMng.cpl" file by looking at my other device and comparing tabs and options. And so I translated two screens. However, when I upload the file to the device, only the tab names are in English, while the other stuff I translated is still in Japanese
Tried resetting the device... no change.
When I copy back the ShPowerMng.cpl file from the device to the PC - checking if the file was successfully overwritten - it is translated, but why doesn't it show the English text?
cheeseus said:
I am having very little progress here...
I started editing the "ShPowerMng.cpl" file by looking at my other device and comparing tabs and options. And so I translated two screens. However, when I upload the file to the device, only the tab names are in English, while the other stuff I translated is still in Japanese
Tried resetting the device... no change.
When I copy back the ShPowerMng.cpl file from the device to the PC - checking if the file was successfully overwritten - it is translated, but why doesn't it show the English text?
Click to expand...
Click to collapse
Could be that the cpl has a separate "strings" section in the resources, or that the ROM also contains a ShPowerMng.cpl.04**.MUI file (not sure that cpl files can have a mui).
Regards,
EqX
the-equinoxe said:
Could be that the cpl has a separate "strings" section in the resources, or that the ROM also contains a ShPowerMng.cpl.04**.MUI file (not sure that cpl files can have a mui).
Regards,
EqX
Click to expand...
Click to collapse
Excellent point, .mui seems to be supported for .cpl's too. If there's a native mui file, this is where the resources should be translated. If there's none, it could be created for ease of translation, then you won't have to patch up .cpl's.
More details regarding MUI on Windows CE/Mobile are avaiable on MSDN:
http://msdn.microsoft.com/en-us/library/aa913592.aspx
http://msdn.microsoft.com/en-us/library/aa912683.aspx
Most resource editors don't support unicode string resources properly, hence Japanese characters are replaced with question marks. MS Visual Studio resource editors may be able to handle them properly. Another freeware that claims proper unicode support is XN resource viewer, maybe you could get the chars displayed properly using it.
stepw said:
Excellent point, .mui seems to be supported for .cpl's too. If there's a native mui file, this is where the resources should be translated. If there's none, it could be created for ease of translation, then you won't have to patch up .cpl's.
More details regarding MUI on Windows CE/Mobile are avaiable on MSDN:
http://msdn.microsoft.com/en-us/library/aa913592.aspx
http://msdn.microsoft.com/en-us/library/aa912683.aspx
Most resource editors don't support unicode string resources properly, hence Japanese characters are replaced with question marks. MS Visual Studio resource editors may be able to handle them properly. Another freeware that claims proper unicode support is XN resource viewer, maybe you could get the chars displayed properly using it.
Click to expand...
Click to collapse
XN Resource Editor saves the day!
However, because it returns save error for some of the files (write protected), I open the resource in it, copy the caption text in Japanese, paste in Google Translate, take the text and paste it inside the corresponding box in PE Explorer because it has no problem saving the file.
I have made significant progress this way, THANK YOU!
There are still some unknown problems:
- on the Power Management file (ShPowerMng.cpl), everything is translated but only the title and the tab captions are shown in English - the rest is still displayed in Japanese.
- on the Utilities file (shutil.cpl) - again everything is translated, but this time the tab captions are shown in Japanese, while the tab texts are all in English.
- on the USB connection manager (ShUsbCnt.cpl) the situation is as in the Power Management - tab names are in English, texts are in Japanese.
- the ShSystemInfo.cpl file is fully translated but I cannot see its contents in Settings - when I tap "S01SH Firmware", which is this file, I see only one page with some text that I could not see while editing, while the texts I edited are hidden. The text I can see is about the firmware version - 1.05a (upgraded from 1.00) - in Japanese, and the texts I cannot see contain: "Firmware version 0.00 / NAND ver.: / NOR ver.:" and over 10 other screens with texts that I presume are various warning messages displayed by the system, e.g. "An invalid argument was encountered."
Thanks for the help, guys! I hope that I can finish the job...
Some strings, for instance tab captions and window titles may be dynamic and the strings could be manipulated in code. In this case you won't be able to find them in the resource sections.
Use Sisulizer, it correctly displays all the languages, including Japanese
the big question
So, what I am still struggling to grasp is, where exactly are the texts written?
stepw says: "Some strings, for instance tab captions and window titles may be dynamic and the strings could be manipulated in code. In this case you won't be able to find them in the resource sections." --- does this then mean that the texts, written inside the CPL file are just there for no reason:
[above is the resource being edited, below is a screenshot of the resource displayed - tab names are in English, the rest is not displayed...]
Maybe these texts are also written in some other file and when the two files are loaded, the first one has greater weight than the CPL?
I also tried, following your advice to try creating a MUI file - in Windows directory there is also a "ShPowerMng.cpl.409.mui" file but it doesn't seem to change anything.
Maybe there is some other file I need to edit as well?
PS. I realize this thread has changed its original topic - the tool to edit CPL files - but I don't want to start a new thread for something which very few people would be interested in.
----------------------
PSPS. Looking at this thread, I see that the following are displayed from "cplmain.cpl":
Settings>System>Backlight>Brightness = 20#ctlpnl cplmain.cpl,6
Settings>System>Backlight>Battery power= 20#ctlpnl cplmain.cpl,6,1
Settings>System>Backlight>External power = 20#ctlpnl cplmain.cpl,6,2
Unfortunately, this is the only CPL file that I can't copy from my device - I get "cannot copy" in total commander and "access denied" in activesync. Any idea how I can cheat this?
cheeseus said:
...Unfortunately, this is the only CPL file that I can't copy from my device - I get "cannot copy" in total commander and "access denied" in activesync. Any idea how I can cheat this?...
Click to expand...
Click to collapse
try it with ROM Extractor 1.0. with that tool you can copy "non-copyable" files from device to storage card, and from there to your computer (via active sync). you'll have to do these steps on your device off course ;-)
see you
kel187 said:
try it with ROM Extractor 1.0. with that tool you can copy "non-copyable" files from device to storage card, and from there to your computer (via active sync). you'll have to do these steps on your device off course ;-)
see you
Click to expand...
Click to collapse
Thanks! ROM Extractor did manage to copy cplmain.cpl but it cannot be edited - ResHack and XN Resource Editor won't open it, while PE Editor opens it but gives a warning of some errors ("Erros detected! File opened in Safe Mode."). Still, the Resources are not viewable (View > Resources is grey) so even if there is text that should be edited in there I cannot get to it.
So, maybe I am looking in the wrong direction?
Yesterday I managed to completely edit another one of the CPLs, Pointing.cpl, which deals with the pointing device on my S01SH - I still have to fix the sizes of a couple of text boxes because some text is cut off but that isn't difficult.
Where else should I be looking for stuff to edit/translate?

Spoofing iphone client id for Android 2.2 Exchange client

Hi,
My company only allows iphone, wm6 and blackberry to connect to the ActiveSync. They recently blocked all other "unauthorized" cleints.
Is there a way to spoof the client id, making the exchange server think I am connecting from an iPhone?
Maybe somewhere in the build.prop or similar ?
I have the same issue. I am not aware this can be done.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I use touchdown and I think that you can be able to spoof the agent string right here.
Here is a picture of what it looks like from the exchange server side (in case you care)
Yeah, using touchdown if you change the string to iphone it should work. I was trying to get mine setup yesterday, but it wasnt working. Put iphone in there and it worked instantly.
I have the same problem. Can the device type string be modified in the stock mail app? If not, what is the correct entry for Windows Mobile 6.1 or 6.5?
muttley79 said:
Hi,
My company only allows iphone, wm6 and blackberry to connect to the ActiveSync. They recently blocked all other "unauthorized" cleints.
Is there a way to spoof the client id, making the exchange server think I am connecting from an iPhone?
Maybe somewhere in the build.prop or similar ?
Click to expand...
Click to collapse
It probably has more to do with security than phone type...As android 2.1 does not allow complex passwords and remote wipe it is not allowed to sync.
Bumping this as I have the same issue. I would prefer to modify the existing email.apk instead of using touchdown. Anyone have any ideas?
Does anyone know what the entry is for Windows Mobile 6.1 or 6.5? Those are the only two allowable without the required use of a different (inferior) product at my company.
DeviceID, DeviceType, User-Agent
Any new developments in this area?
As I am not an Exchange admin at my company, I have no access to the Exchange or TMG firewall logs, but Outlook Web Access reveals information about the mobile devices I have used in the past (OWA > Options > Mobile Devices)
Each "device" is known by three separate descriptors:
* DeviceID: I have read this: For Symbian devices it's the IMEI number that is used, for iPhones it's the serial number, for Windows Phone it's a GUID and for Android devices it's usually a hash of the IMEI.
* DeviceType: iPhone, htcbravo, Android, iPad, HTC_HD2 T8585, HTC Touch Pro1 T7373, Kaiser, HTC Touch HD T8282, (and for those querying about Windows Mobile: ) PocketPC/PPC/SmartPhone/variation of this, ... (please complete!)
* Web-Agent: Android-EAS/0.1, Apple-iPad1C1/803.148, Apple-iPhone3C1/803.148... (please complete!)
Touchdown allows you to change DeviceType only.
1) Does anyone know of any other alternatives to change the DeviceType, DeviceID or Web-Agent?
2) Does anyone have any idea about how to change the stock app/OS's DeviceID, DeviceType and/or Web-Agent?
bump on this as well, i would like to use the stock email.apk but spoof it to thinking window device....as this would format viewing emails a little better for me
this would be away for us non-Touchdown users how prefer the stock email.apk to get what we would like
any chance someone could decompile the stock email.apk and look for any strings to change
I would also like the built in email.apk to be used. I don't HATE Touchdown, but I don't love it either. The built in e-mail program is simple and I just like it better. My issue is that my company only allows android to have full access with Touchdown. I can get my e-mail with the built in mail.apk program, but I cannot open attachments or forward messages. Upon further research it has to do with the device encryption exchange setting being enforced. Apparently only Touchdown truly supports this. I have tried a few hacked email.apks from a few of the threads here that fake these protocols and it still does not work for me.
My guess is that my company is only allowing attachments to be downloaded with "User Agent: TouchDown(MSRPC)/6.4.0002". Sorry for the long message. What I would like to know is where is the Useragent string stored? Can it be changed? I would change it to Touchdown or whatver Iphone shows up as.
Thanks!
ptdalen said:
I would also like the built in email.apk to be used. I don't HATE Touchdown, but I don't love it either. The built in e-mail program is simple and I just like it better. My issue is that my company only allows android to have full access with Touchdown. I can get my e-mail with the built in mail.apk program, but I cannot open attachments or forward messages. Upon further research it has to do with the device encryption exchange setting being enforced. Apparently only Touchdown truly supports this. I have tried a few hacked email.apks from a few of the threads here that fake these protocols and it still does not work for me.
My guess is that my company is only allowing attachments to be downloaded with "User Agent: TouchDown(MSRPC)/6.4.0002". Sorry for the long message. What I would like to know is where is the Useragent string stored? Can it be changed? I would change it to Touchdown or whatver Iphone shows up as.
Thanks!
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=11356796&postcount=527
Sorry to bring back an old thread ... but has anyone found a working solution ?
k4ce said:
Sorry to bring back an old thread ... but has anyone found a working solution ?
Click to expand...
Click to collapse
Just follow the link in my post above
I had the same issue and used enhanced email from the market without issue
Sent from my X10 using XDA App
I'm also searching for how to do this... such a long time and no clear answer Obviously since we want to use the stock mail client, the last response of using EE isnt what we're looking for... This problem persists even through the latest versions of android, how hard can it possibly be to enable changing the "androidcXXXXXX" device id?
My company block android device and only allow iOS. Is there anyway to spoof
Updates on Spoofing Outlook agent id
Any updates here? I would like to spoof the Outlook agent id from a laptop, on my android. Is there a way to do that?
---------- Post added at 05:25 PM ---------- Previous post was at 05:24 PM ----------
Did you ever figure it out?
secagenus said:
Any new developments in this area?
As I am not an Exchange admin at my company, I have no access to the Exchange or TMG firewall logs, but Outlook Web Access reveals information about the mobile devices I have used in the past (OWA > Options > Mobile Devices)
Each "device" is known by three separate descriptors:
* DeviceID: I have read this: For Symbian devices it's the IMEI number that is used, for iPhones it's the serial number, for Windows Phone it's a GUID and for Android devices it's usually a hash of the IMEI.
* DeviceType: iPhone, htcbravo, Android, iPad, HTC_HD2 T8585, HTC Touch Pro1 T7373, Kaiser, HTC Touch HD T8282, (and for those querying about Windows Mobile: ) PocketPC/PPC/SmartPhone/variation of this, ... (please complete!)
* Web-Agent: Android-EAS/0.1, Apple-iPad1C1/803.148, Apple-iPhone3C1/803.148... (please complete!)
Touchdown allows you to change DeviceType only.
1) Does anyone know of any other alternatives to change the DeviceType, DeviceID or Web-Agent?
2) Does anyone have any idea about how to change the stock app/OS's DeviceID, DeviceType and/or Web-Agent?
Click to expand...
Click to collapse
Sorry for the unburial of this thread...
But those anyone knows at this time any way to bypass this blockage from Exchange?
Any android email app that reports as an iPhone?
Best regards.

[MOD] Add multi-user support to Android 4.2 roms using device overlay (phone)

I dont know if this has already been posted, but I could not find anything that enabled multi-user support directly.
It is fairly simple to add multi-user support to your Android 4.2 rom using the device overlay.
To enable multi-user support you will have to add the following to your config.xml:
<integer name="config_multiuserMaximumUsers">8</integer>
This will enable the Users section in Settings to add/remove new users.
Additionally you will have to modify layout-port/keyguard_host_view.xml, because the layout-port version of keyguard_host_view.xml does not have the multi-user selector.
You will need to add the following to the layout:
<include layout="@layout/keyguard_multi_user_selector"/>
Instead of modifying the layout xml directly you can also just add a modified version of the .xml to your device overlay.
That will add the user selector to the keyguard/lockscreen.
The changes can be found here:
https://github.com/adrian-bl-hox-jb...mmit/ba74d22a7e88f73c0c639ed23aac8617cc9abc9f
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
In case there is just one user it will not show the user selector in the keyguard/lockscreen.
Known issues:
* The dialer only works in the main user and and trying to dial in any other user will result in a crash, because the dialer does not support multi-user yet.
Cool, thanks for sharing! (Although, I think having more users on an android device is kinda useless, but very nice that its possible)
This can be usefull when you have others Using your phone then you can set password for main acc and when others ask your phone they can open guest account or other...
this will get better...
Sent from my GT-S7500 using xda premium
broodplank1337 said:
Cool, thanks for sharing! (Although, I think having more users on an android device is kinda useless, but very nice that its possible)
Click to expand...
Click to collapse
I used to agree about it being useless for phones, but I also share a family gmail account and I like having that completely seperated from my own user so that I don't have calendars etc mixed in one user.
And in case you only have one user everything is the same as without the multiple user ability so it kinda made sense just adding it and let the user decide.
would someone do me a favor and attempt to make a phone call in a user profile that is not the main user, i added this in and i get fc when i attempt to make a call. just wondering what others are experiencing
Edit
So.I've had a few devs including myself add this to a quick build. All of us of different sources have the same issue and I would highly recommend not adding it because if someone had to dial out the phone FC when u press call
So imagine having to call 911. And you can't until your switch users... Probably not a good idea.
Its a great find. But that could cause some real problems
We have implemented this change in our AOSP build on the HTC One X without any issues.
If you could get me a logcat of the crash I can take a look, but I cant think it has to do with multi-user support as it is already baked into JB yet only 1 user is enabled by default.
Are you sure you have only added:
<integer name="config_multiuserMaximumUsers">8</integer>
to your config.xml and did not add anything else?
rogro82 said:
We have implemented this change in our AOSP build on the HTC One X without any issues.
If you could get me a logcat of the crash I can take a look, but I cant think it has to do with multi-user support as it is already baked into JB yet only 1 user is enabled by default.
Are you sure you have only added:
<integer name="config_multiuserMaximumUsers">8</integer>
to your config.xml and did not add anything else?
Click to expand...
Click to collapse
Correct. And that was the only thing I changed. Keep in mind yes its built into aosp but only for phones. No log cat cause as soon as I ran into that problem I didn't bother to continue and just abandoned the changes. I did add the changes to aosp as well as a custom source and both had the same result as did a few other devs I had try it.
No worry's tho.
runandhide05 said:
Correct. And that was the only thing I changed. Keep in mind yes its built into aosp but only for phones. No log cat cause as soon as I ran into that problem I didn't bother to continue and just abandoned the changes. I did add the changes to aosp as well as a custom source and both had the same result as did a few other devs I had try it.
No worry's tho.
Click to expand...
Click to collapse
K if you ever decide to give it another try and run into the same issue just post a logcat and ill be happy to look into it... as said we have this change applied in our aosp build and have no issues with calling or any other crash related to multi-user support
rogro82 said:
K if you ever decide to give it another try and run into the same issue just post a logcat and ill be happy to look into it... as said we have this change applied in our aosp build and have no issues with calling or any other crash related to multi-user support
Click to expand...
Click to collapse
OK I probably still have the zip laying around, I may through it on to.pull a log.
nvm i now know what you mean... trying to call with a user other then the device owner FCs... Ill see if that can be fixed
Just looking at Phone package source:
* Returns the singleton instance of the PhoneApp if running as the
* primary user, otherwise null.
So then it crashes because it has no PhoneGlobals for the non-primary user.
Most probably the Phone app does not support multi-users because it would register the broadcast receiver for handling calls multiple times... If this can be fixed easily I cant answer immediatly
rogro82 said:
nvm i now know what you mean... trying to call with a user other then the device owner FCs... Ill see if that can be fixed
Just looking at Phone package source:
* Returns the singleton instance of the PhoneApp if running as the
* primary user, otherwise null.
So then it crashes because it has no PhoneGlobals for the non-primary user.
Most probably the Phone app does not support multi-users because it would register the broadcast receiver for handling calls multiple times... If this can be fixed easily I cant answer immediatly
Click to expand...
Click to collapse
That's what I was talking about. You only have that problem on none main user and only when u make a call. Ie dial number and press call button.
Indeed... The phone app does check if its running on the first user:
Code:
if (UserHandle.myUserId() == 0) {
// We are running as the primary user, so should bring up the
// global phone state.
mPhoneGlobals = new PhoneGlobals(this);
mPhoneGlobals.onCreate();
}
But instead of throwing a nice message when opening the dialer it crashes when making a call...
If I have some time left Ill see if its possible to add multi-user support to the Phone package
Sorry if this is a dumb question, but could someone point me in the right direction as to where the config.xml file is?
mick3444 said:
Sorry if this is a dumb question, but could someone point me in the right direction as to where the config.xml file is?
Click to expand...
Click to collapse
^^
Would like to know this as well. I have a 2 year old that would greatly benefit from this. If she can do nothing other than use the apps I install, this would be awesome.
config.xml is not something you can edit on your phone.
Its an overlay file that has to be edited when building a custom android 4.2 rom.
Thanks man for letting us all know
Reply removed
is there a way to add this using just the rom's zip ??
Is it possible that this bit of code in system/core/include/private/android_filesystem_config.h might have something to do with it....?
Code:
#define android_id_count \
(sizeof(android_ids) / sizeof(android_ids[0])) ###EDIT: oops, I had it changed to 10 to see what would happen.
struct fs_path_config {
unsigned mode;
unsigned uid;
unsigned gid;
const char *prefix;
Edit: Now that I am looking at it, it may just be the creation of an empy array that will get populated later, I may be wrong though, I am just learning C, kinda becoming a Jack-of-all-Trades-Master-of-Puppets.
it also states this closer to the top...
Code:
/* This is the master Users and Groups config for the platform.
** DO NOT EVER RENUMBER.
*/
#define AID_ROOT 0 /* traditional unix root user */
#define AID_SYSTEM 1000 /* system server */
I believe these setting get baked into the ramdisk during a build, a few lines here also cause new unkown files and folders to be created as 0644 root root I believe and results in them not being executable.
I think I am going to have to edit this file quite a bit, I am trying to get glibc based services to start, some do like apache2 and rpcbind, the nfs-common is giving me trouble as well as postgresql, pgsql complains about not being able to open a listening socket, permission denied, so I added a postgres user to this file and some folder and file permissions for it,
Code:
# ./postgresql start -p 5432
# ./postgresql status
Running clusters:
#pg_lsclusters
Version Cluster Port Status Owner Data directory Log file
9.1 main 5432 down postgres /var/lib/postgresql/9.1/main /var/log/postgresql/postgresql-9.1-main.log
[email protected]:/root$ createuser msf_user -P
could not change directory to "/root"
Enter password for new role:
Enter it again:
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) n
Shall the new role be allowed to create more new roles? (y/n) n
createuser: could not connect to database postgres: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
[email protected]:/root$ createdb --owner=msf_user msf_database
could not change directory to "/root"
createdb: could not connect to database postgres: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Been trying for a while to get this to work but I think I need to create a bridge for Androids User, UID, GID , stuff with Debian's whole /etc/passwd /etc/shadow scheme, one that allows both lists to become synchronized adding to eachother what was missing and preventing user creating with identical uid's. I wonder what init's uid is, cuz I think daemon's is set to 1 in /etc/passwd . Not sure.
It would be greate if we had user authentication to use commands like su or even port over sudo for one shot su service of a command like 'cp'.

[Q] Build CM 10.1 from source - problem

I try build CM 10.1 as it is written in this howto on CM wiki,
but when I try extrac proprietary files from device, I get info that some files do not exist
$ ./extract-files.sh
remote object '/system/etc/firmware/nvavp_os_00001000.bin' does not exist
remote object '/system/etc/firmware/nvavp_os_e0000000.bin' does not exist
remote object '/system/etc/firmware/nvmm_aacdec.axf' does not exist
remote object '/system/etc/firmware/nvmm_adtsdec.axf' does not exist
remote object '/system/etc/firmware/nvmm_h264dec2x.axf' does not exist
remote object '/system/etc/firmware/nvmm_h264dec.axf' does not exist
remote object '/system/etc/firmware/nvmm_jpegdec.axf' does not exist
remote object '/system/etc/firmware/nvmm_jpegenc.axf' does not exist
remote object '/system/etc/firmware/nvmm_manager.axf' does not exist
remote object '/system/etc/firmware/nvmm_mp3dec.axf' does not exist
remote object '/system/etc/firmware/nvmm_mpeg2dec.axf' does not exist
remote object '/system/etc/firmware/nvmm_mpeg4dec.axf' does not exist
remote object '/system/etc/firmware/nvmm_reference.axf' does not exist
remote object '/system/etc/firmware/nvmm_service.axf' does not exist
remote object '/system/etc/firmware/nvmm_sorensondec.axf' does not exist
remote object '/system/etc/firmware/nvmm_vc1dec_2x.axf' does not exist
remote object '/system/etc/firmware/nvmm_vc1dec.axf' does not exist
remote object '/system/etc/firmware/nvmm_wavdec.axf' does not exist
remote object '/system/etc/firmware/nvmm_wmadec.axf' does not exist
remote object '/system/etc/firmware/nvmm_wmaprodec.axf' does not exist
remote object '/system/etc/firmware/nvrm_avp_00001000.bin' does not exist
remote object '/system/etc/firmware/nvrm_avp_0ff00000.bin' does not exist
remote object '/system/etc/firmware/nvrm_avp_8e000000.bin' does not exist
remote object '/system/etc/firmware/nvrm_avp_9e000000.bin' does not exist
remote object '/system/etc/firmware/nvrm_avp_be000000.bin' does not exist
remote object '/system/etc/firmware/nvrm_avp_e0000000.bin' does not exist
remote object '/system/etc/firmware/nvrm_avp_eff00000.bin' does not exist
remote object '/system/lib/libnvcpud_client.so' does not exist
remote object '/system/lib/libnvcpud.so' does not exist
remote object '/system/lib/libnvdispmgr_d.so' does not exist
remote object '/system/lib/libnvmm_misc.so' does not exist
remote object '/system/lib/libnvmm_vp6_video.so' does not exist
remote object '/system/lib/libnvstereoutils_jni.so' does not exist
remote object '/system/lib/omxplayer.so' does not exist
remote object '/system/lib/libsensors.mpl.so' does not exist
So I have a question where is a problem, list of files in proprietary-files.txt is bad
or I do something wrong?
The list is bad. I'll update it later, you can use blobs in TheMuppets/proprietary_vendor_asus GitHub account.
I have the same errors. Did you get this working? If yes would you be kind enough to post the method you used? This is the first time I have attempted anything like this and I would like to resolve the errors and see this to the end.
I found the suggested github ( TheMuppets/proprietary_vendor_asus ) and there are no blobs to download. Looking into the script provided in the download the path is different than my own. I am considering editing the script.
I would prefer not to mess up. I am on my fourth attempt and the first time I have gotten this far. I am amazed at the number of hours required for the download and then four times that is amazing.
Thanks.
I certainly need to change my internet to something faster and with higher download capacity. The first time I tried this went over my download limit and four times means my bill will need to put on a payment plan. LOL.
On the plus side I have learned a lot. I felt it was time to get a better idea what is involved the procedures used just to compile a rom. I can't imagine starting a rom from scratch!

[Beta] Win86emu: list of compatible applications

This post would contain a list of applications that can be run under Win86emu with the instructions on getting them running.
As I can't test all of the applications in the world - feel free to post your findings here.
SilverHedgehog made a list of compatible programs in a form of a spreadsheet, that can be edited by anyone: https://docs.google.com/a/silverblo...1vlWDspVdERIZlFHcnVhLV9EaDZIOEpqN2tQT1E#gid=0
Please do not post your problems here and do not ask questions. This thread should contain only the list of working apps and instructions on getting them running.
Ask questions and post your problems in this thread: http://forum.xda-developers.com/showthread.php?p=36622756
When instructions tell to edit registry - use native (i.e. Windows RT) registry editor unless explicitly stated to use the x86 one.
Version 0.05:
Might and Magic VI. There is a fixed MM6.EXE file here: http://forum.xda-developers.com/showthread.php?p=40959944#post40959944, use it to avoid crashes.
Fallout 2. Notes are here: http://forum.xda-developers.com/showthread.php?p=41292319#post41292319
Version 0.04:
WinAmp 2.95. Installs fine, music is playing correctly. Bugs: winamp browser is not working, visualization plugins crash, "stop bugging me" is not saved.
WinRAR 4.20, 7Zip 9.22. Both install and work, but are too slow.
Pinball from Windows 95. Works fine, but the picture is small (you may lower the desktop resolution to make it look larger).
Heroes of Might and Magic III. Instructions are here: http://forum.xda-developers.com/showthread.php?p=40924235#post40924235
Age of Empires 1. Instructions are here: http://forum.xda-developers.com/showthread.php?p=40924456#post40924456
IrfanView. Checked by GoodDayToDie here: http://forum.xda-developers.com/showthread.php?p=40954195#post40954195, some hints here
Might and Magic VI. Instructions are here: http://forum.xda-developers.com/showthread.php?p=40959944#post40959944
Reserved.
Reserved.
Reserved.
Heroes of Might and Magic III
Both the original and complete/gold editions are working.
You can install a game from the ISO image or copy the installed directory from a PC.
To play in a high resolution - use the heroes 3 hd mod: https://sites.google.com/site/heroes3hd/eng/download, it also contains a no-cd patch. I recommend to set "color mode"=standard, as this should provide the best speed.
If you prefer to play in the native 800x600 resolution and observe large black space on the right and bottom sides of the screen - this is due to a problem in recent Nvidia tegra3 video driver. It no longer provides the 800x600 mode, so the emulator sets the nearest available mode (probably 1024x768).
To enable the 800x600 mode you'll need to edit the registry. Warning: editing the registry incorrectly may make your device unbootable!
Run regedit and navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Video\{D7F0B22A-58DF-4A4D-AAA5-B7766CED7EFE}\0000 key. Edit the value "NV_Modes", it looks like: "{*}S 1024x768x32,64 1280x720x32,64 1280x768x32,64=1;". Add the 800x600 32 and 64 bit mode, so that the line would look like "{*}S 800x600x32,64 1024x768x32,64 1280x720x32,64 1280x768x32,64=1;". Then reboot the device.
This hack would work only on Tegra 3 devices! I don't know how to enable 800x600 mode on Qualcom-based tablets.
Known problems:
- network games are not working
- no MP3 music
- the game may hang. This is due to a bug in mss32.dll, the same bug is present on a desktop PC too. To increase the stability - disable the music and sound effects or add this compatibility setting to registry:
Code:
[HKEY_CURRENT_USER\Software\x86node\Compatibility\Heroes3.exe]
"SetProcessAffinityMask"=dword:00000001
This would force the EXE file to run on only one CPU core and mss32.dll would be happy. But this would decrease the overall game speed.
Age of Empires 1
Tested on the AOE Gold with the expansion pack.
Installer is not working. You'll need to copy the game files from your PC.
Known problems:
Only the 1024x768 display mode is supported.
No network game.
Palette issues - you may get the unreadable text on buttons.
If the game don't find CD-ROM - edit the registry key:
Code:
[HKEY_CURRENT_USER\Software\x86node\HKLM\Software\Microsoft\Games\Age of Empires\1.00]
"CDPath"="E:\\"
Here E: - the drive letter of the mounted ISO file.
I'll try my version of AOE II when I get a chance and let you know how it goes... My patch could be different, but who knows.
EDIT: Doesn't really work. Still tries to launch a single-player game, then crashes. Campaign says there's no disc inserted... and of course multiplayer doesn't even show up. But the auto-run is AMAZING! Great work as always!
The Powder Toy (legacy exe) runs, but even on an empty level you get ~2.50 fps.
C-Lang said:
I'll try my version of AOE II when I get a chance and let you know how it goes...
...
Campaign says there's no disc inserted...
Click to expand...
Click to collapse
Regarding the AOE2 no-cd crack, there is a note in the comments on russian site: http://habrahabr.ru/post/168269/
There is a bug in the no-CD, it checks for the installation drive letter in registry and if it is not present - no-cd code returns error. I have not checked that myself yet, but you should try to edit the registry.
SilverHedgehog said:
The Powder Toy (legacy exe) runs, but even on an empty level you get ~2.50 fps.
Click to expand...
Click to collapse
empty level only gives 20fps on my 2ghz Intel Celeron laptop so that was hardly unexpected. Dunno if it would be a candidate for porting though.
IrfanView (a popular image file viewer/resizer/basic editor) works for the most part. Install it (from http://irfanview.com) on a Windows PC, then copy the installed files over to the RT device. It actually may be possible to use the installer with the lasted emu version; the one I last tried with didn't work. It's definitely slower than on native x86, but for reasonably-sized images the difference isn't important (I've been using this app since 400MHz single-core Pentium 2 CPUs from circa 2000; it's not performance-intensive but manages to run very, very fast). I haven't tested all the features or plugins yet. Configuring it to automatically open the relevant file types doesn't currently work (probably due both to registry redirection and to the fact that the OS can't directly invoke the iview.exe program).
Might and Magic VI
Tested on the Might and 6 Limited Edition.
Game installer is 16-bit, so it cannot be run with my emulator or on desktop x64 Windows.
Install the game on 32-bit desktop Windows, then apply the GrayFace MM6 Patch from here: https://sites.google.com/site/sergroj/mm and copy files to your device. You don't need to export registry.
Game asks for CD2. To mount it on RT you'll need to extract the data track as an ISO file and mount that ISO on your device. I've used Nero. Or you may try to use USB CD-ROM (never tried that myself), or use the no-CD built into GrayFace's patch.
There is an incompatibility that causes the game to crash when you enter buildings. Use the EXE file from the attached archive to fix that. This EXE requires the GrayFace's patch to be installed.
Introduction is choppy, but overall game speed is fine.
Game uses the 640x480 mode that cannot be set on Asus VivoTab due to a limitation in Tegra 3 drivers. To enable the 640x480 you'll need to edit the registry as described in the HOMM3 post: http://forum.xda-developers.com/showthread.php?p=40924235#post40924235 but the modified string should look like this: "{*}S 640x480x32,64 800x600x32,64 1024x768x32,64 1280x720x32,64 1280x768x32,64=1;". Be careful while editing registry!
GoodDayToDie said:
Configuring it to automatically open the relevant file types doesn't currently work (probably due both to registry redirection and to the fact that the OS can't directly invoke the iview.exe program).
Click to expand...
Click to collapse
This is due to registry redirection. I "protect" the OS native registry from being trashed by emulated programs. You can override this by adding this compatibility setting:
Code:
[HKEY_CURRENT_USER\Software\x86node\Compatibility\iview.exe]
"UseDirectRegistry"=dword:00000001
This setting is not tested and may cause side effects, so be careful.
It is safer to manually associate iview.exe with needed file extensions.
Oh, I'm quite familiar with using assoc and ftype, or indeed manually tweaking the registry, to set file associations. However, unless you've already implemented the "automatically use the emulator for x86 programs" feature, that won't work. I suppose I could point it at a script that launches the emulator pointing at iview.exe and passes along the argument (file name) that the script itself received, though.
Thanks for this great piece of work!
GoodDayToDie said:
Oh, I'm quite familiar with using assoc and ftype, or indeed manually tweaking the registry, to set file associations. However, unless you've already implemented the "automatically use the emulator for x86 programs" feature, that won't work. I suppose I could point it at a script that launches the emulator pointing at iview.exe and passes along the argument (file name) that the script itself received, though.
Thanks for this great piece of work!
Click to expand...
Click to collapse
That feature is apparently implemented and it is working like a charm, all you need to do is to run the c:\x86node\windows\autostart_x86.cmd after the jailbreak. I was unable to do it automatically because I haven't found a way to schedule a task after another task completes. If you manage to schedule it to run automatically after the jailbreak, please share your solution.
How about we use something like a spreadsheet for this? A thread is pretty hard to navigate.
Here, I made a spreadsheet on Google Drive everyone can edit:
https://docs.google.com/a/silverblo...1vlWDspVdERIZlFHcnVhLV9EaDZIOEpqN2tQT1E#gid=0
Jimm98y said:
That feature is apparently implemented and it is working like a charm, all you need to do is to run the c:\x86node\windows\autostart_x86.cmd after the jailbreak. I was unable to do it automatically because I haven't found a way to schedule a task after another task completes. If you manage to schedule it to run automatically after the jailbreak, please share your solution.
Click to expand...
Click to collapse
Herp derp, I can't read changelogs. Thanks for pointing that out. As restitution, I shall attempt to get the automatic launching of the automatic launching working. I'm betting I can do it by tinking with the jailbreak task itself.
The jailbreak will run commands that are either put in its startup folder or added to the registry keys:
HKLM\Software\Jailbreak\RunOnBoot\
HKCU\Software\Jailbreak\RunOnBoot\
Add them as REG_SZ values, you can set the name to whatever and set the value to the command you want to execute.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Like that.
Edit: Now that I look at it the 'RunOnBoot' name isn't the most accurate, but whatever, it works.
Fallout 2
Tested on a Russian localized version by 1C.
Game installs fine, but you can't change the installation folder.
Game requires 640x480 mode, so on Asus VivoTab RT with the recent video driver update you'll need to edit registry as noted here: http://forum.xda-developers.com/showpost.php?p=40959944&postcount=12
High resolution Fallout2 patch is useless. It works, but the game speed becomes too slow to be playable. To try hires mod - copy d3dx9_31.dll from a recent DirectX distribuition to the same directory as a patched fallout2.exe (D3D mode is not working, this DLL is needed by the patch to load), or you may use the attached DLL.
Keyboard hotkeys should be working in Win86emu 0.06+. The attached DLL is not needed since 0.06 for HiRes mod. Only the "normal" hires mode is available due to bug, it would be fixed later.
Double note: hires mode is too slow to be playable.
Thank you very much, it works! How exactly were you able to run the game with the High Resolution patch? I tried it, but the emulator gives me a message that it could not run the exe and then starts the game without the patch. Does it need the DirectX 9 redistributable? The timestamp of the file changes each time I configure it in the high resolution patch configurator - I have the version 1.02US.

Categories

Resources