[TIMOB-13916] Android: Packaging - Debug information is being printed out to DDMS when packaging to production
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-05-30T23:45:21.000+0000 |
Affected Version/s | Release 3.1.0 |
Fix Version/s | 2013 Sprint 11 Core, 2013 Sprint 11, Release 3.1.1, Release 3.2.0 |
Components | Android |
Labels | module_android, qe-closed-3.1.1, qe-testadded, regression |
Reporter | chua swee siong |
Assignee | Allen Yeung |
Created | 2013-05-20T11:17:24.000+0000 |
Updated | 2014-02-21T20:11:20.000+0000 |
Description
*Problem description*
After packaging distribution for Android and installing it to device, debug data is being printed out to DDMS. It is a regression. Refer TIMOB-6425.
*Steps to reproduce*
1. Import KitchenSink to TiStudio
2. Package KitchenSink via TiStudio's "Distribute - Android" menu option
3. Open DDMS
4. Install KitchenSink.apk to device
5. Run and observe logs below
*Log*
05-20 11:12:21.937: D/Module(5118): Loading module: ui/handheld/android/ApplicationWindow -> Resources/ui/handheld/android/ApplicationWindow.js
05-20 11:12:21.947: D/Module(5118): Loading module: ui/common/ApplicationTabGroup -> Resources/ui/common/ApplicationTabGroup.js
05-20 11:12:21.972: D/Module(5118): Loading module: ui/common/BaseUIWindow -> Resources/ui/common/BaseUIWindow.js
05-20 11:12:21.982: D/Module(5118): Loading module: ui/common/ControlsWindow -> Resources/ui/common/ControlsWindow.js
05-20 11:12:21.987: D/Module(5118): Loading module: ui/common/PhoneWindow -> Resources/ui/common/PhoneWindow.js
05-20 11:12:21.997: D/Module(5118): Loading module: ui/common/PlatformWindow -> Resources/ui/common/PlatformWindow.js
05-20 11:12:22.007: D/Module(5118): Loading module: ui/common/MashupsWindow -> Resources/ui/common/MashupsWindow.js
05-20 11:12:22.162: D/Module(5118): Loading module: ui/common/MessageWindow -> Resources/ui/common/MessageWindow.js
Tested and confirmed on Samsung Galaxy S2 Android 2.3.6, Ti SDK 3.1 GA.
This is happening in 3.0.0.GA as well.
PR: https://github.com/appcelerator/titanium_mobile/pull/4326
3.1.X PR: https://github.com/appcelerator/titanium_mobile/pull/4327
Reopening as debug info is still written out in some circumstances.
Hello, I think the intent here is to remove all debug output, whether generated by the SDK or from Ti.API.debug statements. Here are examples of output from KS: Packaged: I/TiAPI (13012): Welcome to Kitchen Sink for Titanium/3.1.1 D/TiAPI (13012): user agent set to Dalvik/1.6.0 (Linux; U; Android 4.2; Nexus 7 Build/JOP40C) Titanium/3.1.1 D/TiAPI (13012): locale specific date is 5/29/13 D/TiAPI (13012): locale specific date (medium) is May 29, 2013 D/TiAPI (13012): locale specific date (long) is May 29, 2013 D/TiAPI (13012): locale specific time is 5:47 PM D/TiAPI (13012): locale specific currency is $12.99 D/TiAPI (13012): locale specific decimal is 12.99 Not packaged: D/Module ( 5774): Loading module: ui/common/MessageWindow -> Resources/ui/common/MessageWindow.js I/power ( 644): *** release_dvfs_lock : lockType : 1 D/PowerManagerService( 644): releaseDVFSLockLocked : all DVFS_MIN_LIMIT are released W/ActivityManager( 644): mDVFSLock.release() I/TiAPI ( 5774): Welcome to Kitchen Sink for Titanium/3.1.1 D/TiAPI ( 5774): user agent set to Dalvik/1.6.0 (Linux; U; Android 4.0.4; SAMSUNG-SGH-I747 Build/IMM76D) Titanium/3.1.1 D/TiAPI ( 5774): locale specific date is 5/29/13 D/memalloc( 331): ion: Freeing buffer base:0x44c55000 size:3768320 fd:64 D/TiAPI ( 5774): locale specific date (medium) is May 29, 2013 D/TiAPI ( 5774): locale specific date (long) is May 29, 2013 D/TiAPI ( 5774): locale specific time is 3:06 PM D/TiAPI ( 5774): locale specific currency is $12.99 D/TiAPI ( 5774): locale specific decimal is 12.99
PR: https://github.com/appcelerator/titanium_mobile/pull/4339
For FR, 1. run KS in production mode and debug messages should not show in the console. 2. clean the project and run KS in development and debug mode. Debug messages should show.
3_1_X PR: https://github.com/appcelerator/titanium_mobile/pull/4341
Tested and verified fix with: Appcelerator Studio, build: 3.1.1.201305312408 SDK, build: 3.1.1.v20130530204550 Device: Galaxy S3 4.0.4 Actual result: