Remove All Ads from XDA

[13.Feb.12][MAG/cLK] NDT MIUI 2.3.7 DEVELOPMENT V48.0|STABLE V6.0

2,859 posts
Thanks Meter: 2,893
By langthang, Recognized Developer on 27th March 2011, 04:34 PM
Post Reply Email Thread



2nd Post: Old versions download links
3rd Post: Change logs
4th Post: How to flash my ROM
5th Post: Some useful Tips and Q&A
6th Post: Add-ons for MIUI ROM
7th Post: How to make Internet Passthough working on MIUI ROM
8th Post: Enlarge your battery life : an attempt to fix the battery drain
9th Post: Use APKTool to Decompile, Edit, Translate and Recompile an APK


Please don't re-upload and share my ROM to other forum or website without my permission

- Based on newest Android 2.3.7
-MIUI Launcher
-3G/Data/Audio/Bluetooth/GPS/Phone/LED Notification
-Wi-Fi (IEEE 802.1x/EAP authentication and Ad-Hoc Wi-Fi)
-APN for almost network
-MIUI Camera (Wide screen support)
-Camcorder (800x480)
-Hosts file to stop most web ads.
-USB File Transfer
-WIFI Tethering/Wired Tethering
-A2SD+ default (with Swap and Dalvik cache on SD EXT partition support)
-Bluetooth Power Drain fix
-Many useful apps
-FM Radio support
-Root permission was disable by default, to enable it: Go to Superuser app, press Menu button - Setting and Enable ROOT permission
-If you have reboot issue when use 3rd Party Call&SMS app, go to Supperuser and allow them


(Developer focuses on the function of early adopters and rapid change with weekly update)

Version 48.0 Multilang (13-Feb-2012)
HD2_NDT_MIUI_GINGER_2.3.7_DEVELOPMENT_V48.0_MAGLDR _Tytung_kernel-----Mirror link
MD5 Cheksum: F795FECB - 2A9412D9 - 96678FEF - 10710C72
MD5 Checksum: 88CD58B7 - F3D9E5AA - 65E7B39F - 1B128FFC

(Stable ROMs are Release Candidates, the stable version is more emphasis on stability with monthly update)
Version 6.0 Multilang (31-January-2012)
HD2_NDT_MIUI_GINGER_2.3.7_STABLE_V6.0_MAGLDR-----Mirror link
MD5 Checksum: E53547E4 - 6C507744 - C5B84FC5 - 43F68097


For cLK User: Flash cLK kernel tytung R14.0 in the bellow link after flash MAGLDR ROM


Credit: DFT team, Cotulla, seadersn, Tytung, dsixda, Miui team, mark, xavierjohn22, urnightmare, Spike_M, roenano, brainmaster, Capez, cgvelmax, Andy Thomson, DORIMANX ...

Tytung Kernel Thread:
DORIMANX Kernel Thread:

Vietnamese Topic in PDAVIET.NET

If you like my ROM, Donate me a cup of tea
Or Click to "Thanks" and Vote for this Thread
The Following 403 Users Say Thank You to langthang For This Useful Post: [ View ]
27th March 2011, 04:37 PM |#2  
OP Recognized Developer
Flag Hanoi
Thanks Meter: 2,893
Donate to Me
Old versions download links
Old versions download links:

Stable Version
Version 5.1 Multilang (11-January-2012)
HD2_NDT_MIUI_GINGER_2.3.7_STABLE_V5.1_MAGLDR-----Mirror link
MD5 Checksum: 55503A4D - EF98484C - 6A45C803 - 9614ADEF

Development Version:
Version 47.0 Multilang (06-Feb-2012)
MD5 Checksum: 3CD2682D - B5A6CECF - C6A755A7 - E22D3509
Version 46.0 Multilang (24-January-2012)
HD2_NDT_MIUI_GINGER_2.3.7_DEVELOPMENT_V46.0_MAGLDR-----Mirror link 1
MD5 Checksum: 1AD273B6 - 0F290A0C - C98327F9 - 53319712

HD2 NDT MIUI FROYO ROM V6.2 Multilang [18April]

If anyone have problem with MIUI GINGER Version, please try use my Froyo version

Download Link:

If you like my ROM, please Donate me a cup of tea

Or Click to "Thanks" and Vote for this Thread
The Following 124 Users Say Thank You to langthang For This Useful Post: [ View ]
27th March 2011, 04:38 PM |#3  
OP Recognized Developer
Flag Hanoi
Thanks Meter: 2,893
Donate to Me
Change logs
Version 6.0 Multilang:
- Update new feature from Development Version
- Update new Google app and Tools
- New libs for fix call volume issue when receive call
- New Settings, MMS update
- New theme, icon (Thanks Ancola66, Jumba)
Version 5.1 Multilang
- Update new feature and bug fix from newest Development Version
- Re-use Tytung kernel 14 for more stable
Version 5.0 Multilang
- Update new feature and bug fix from newest Development Version
- Update all Google apps and tools
- Add newest DORIMANX Kernel 3.4
- Check and fix some issue on build.prop
Verison 4.1 Multilang
- Update some new feature and fix from Development Version
- Update Lockscreen (Can monitor Weather on Lockscreen now)
- Multilang updated
- Update multilang keyboard
- New ICS Transsition effect (Thanks Capez)
- New Icon & theme (Thanks vukandric, cgvelmax)
- Add Skip track via volume button and 4-way reboot (Thanks Andy Thomson‎, roenano)
Version 4.0 Multilang
- Updated to MIUI Stable 2.3.7a
- Multilang support
- New kernel Tytung R14.0 with color banding issue fixed

Version 48.0 Multilang:
- Update to MIUI 2.2.10

Added support to disable the physical screen keys (M key or Dropdown notification bar switch settings, press and hold home and press the power button to exit)
Fix SMS menu, click to add a theme returned invalid input
Fix problem where session cannot be deleted where time is set to 1970-1-1
[Lockscreen, status bar and notifications]
New variety lockscreen support (required theme support custom settings)
New lockscreen support for personalization
[File Manager]
Optimize the long menu view file properties, complete and display the directory
Optimization to avoid multiple choice mode delays into the folder
Remove 2.3 file classification page in the "other" category

- Multilang support
- Have both Tytung kernel 14 and DORIMANX Kernel 4.6 version
- Fix some small issue and make ROM smaller and faster
Version 47.0 Multilang:
- Update to MIUI 2.2.3

Added “user feedback” application, supporting screenshots, logs, generation of reports and preview of feedback (See the desktop “Tools” folder)
Repair when external storage space left is less than 10%, the call does not allow recording (Limit lowered to 1m)
Fix problems with overlapping icon restrictions
Fix problem where Screenshot directory is shown as empty.
Pressing the screenshot keys result in notification bar FC Fix in some cases the gallery cannot open images attached via E-mail messages
Fix problem where audio file does is not visible in the call recording folder
New guest mode will hide the pictures in the gallery

- Multilang support
- Add Updater.apk
Version 46.0 Multilang:
- Update to MIUI 2.1.20

Fix in some cases Mms are regularly repeated from sender
Fix problem where time will be treated as an ordinary Mms, mms problem
Fix problem when creating draft message, the date of the message sows 1970

- Multilang update
- Some minor changes
Version 45.0 Multilang:
- Update to MIUI 2.1.13 (Full change logs here:
- Multilang support
- Add new Email app (better function)
Version 44.0 Multilang:
- Update to MIUI 2.1.6
- Multilang support
- Back to Tytung kernel R14 for more stable
- Remove China default timezone
- Fix some issue on build.prop
Version 43.0 Multilang:
- Update to MIUI 1.12.30
- Multilang support
- Add DORIMANX Kernel 3.3
- Fix volume call issue when receive call
Version 42.0 Multilang:
- Update to MIUI 1.12.23
- Update all Multilang string
- Check and add new App2sd+ script
- Add new tweaks and optimize for my ROM
Version 41.0 Multilang:
- Update to MIUI 1.12.16 with change logs here:
- Multilang suppot
- Check and fix some minor issue on previous version
Version 40.1 Multilang:
- Multilang support
- Fix MMS issue with some one
- Fix build.prop problem
- Make more ICS version for someone like
Version 40.0 English:
- Update to MIUI 1.12.9 with change logs here
- Multilang version will update later
- Update some new apps and tools
- Add new weather live wallpaper
- Add some new lockscreen and ICS font (Theme Manager - Customize - Lockscreen/Font to choose)
- Running smooth and fast
Version 39.0 Multilang:
- Update to MIUI 1.12.2 with change logs here
- Multilang support (Thanks XJ)
- Have 2 version (1 is stock and 1 is ICS like)
- Add 4-way reboot and Skip track via volume button
Version 38.1 Multilang:
- Multilang update (Thanks XJ)
- Remove DSP Manager dua FC issue random happen
- Add Equalizer app
- Add some new Lockscreen
- Add Skip track via volume button and 4-way reboot
Version 38.0 English:
- Update to MIUI 1.11.25 with full change logs here
- English&Chinese only (Multilang version will be later)
- ICS transsition effect
- New keyboard
- Add DSP Manager
- Add ICS Google Music
- More stable version
- Camera&Camcoder working well
Version 37.0 Multilang:
- Update to MIUI 1.11.18
- Multilang support
- Back to stock theme and MIUI Multilang keyboard (fix some issue due new theme&keyboard) - You can use theme by yourshelve (On Add-on link)
Version 36.1 Multilang:
- Update some multilang strings
- Edit Setting and Launcher for better look
- New ICS Keyboard (Thanks PrOXuSeR)
- New ICS transition effect (Thanks capez)
- Updated ICS theme ( Thanks cgvelmax & Kr3g3r)
- Add Skip track via Volume button (Thanks Andy Thomson‎)
- Add 4-way reboot (Thanks Andy Thomson‎)
- Delete some unnecessary scripts
- Fix some minor issue and some more optimize in system
Version 36.0 Multilang:
- Update to MIUI1.11.11
- Multilang support
- Add Tytung kernel R14.0 with color banding issue fixed
- Fix wma/wmv play issue (Thanks
- Update ICS theme (Thanks cgvelmax)
Version 35.1 Multilang:
- Update to Kernel Tytung R13
- Fixed Backup issue with multilang support
- Optimize some script for faster and better battery life
- Renew ICS theme for smoother and more beautiful (Thanks picard666, cgvelmax, vukandric)
- Add new MIUI Multilang keyboard with Haptic Feedback work (support predict for: Arabic, Bulgarian, Croatian, Czech, English, Danish, Farsi, Finish, French, German, Greek, Hebrew, Italian, Norwegian, Netherlands, Persian, Polish, Portuguese, Russian, Serbian, Slovenian, Spanish, Swedish) - Credit by brainmaster

V6.2 Multi-languages:
- Based on lasest MIUI FROYO from (18.3.11)
- Many optimize on system for best performance, speed ...
- Updated newest Multilang Pack from XJ MIUI (Thanks xavierjohn22)
- FM Radio working well
- Support more apps than Ginger version
The Following 72 Users Say Thank You to langthang For This Useful Post: [ View ]
27th March 2011, 04:52 PM |#4  
OP Recognized Developer
Flag Hanoi
Thanks Meter: 2,893
Donate to Me
How to flash ROM:

HD2 NAND Toolkit - Toolkit for HD2 Users (From ksubedi)
[GUIDE] Flashing Your First HD2 NAND Android Rom [For Newbs]

1. Your phone need HSPL 2.08.HSPL first
Link download MAGLDR113
- Go to Bootloader
- Connect your phone to PC
- Run ROMUpdateUtility.exe and follow guide step by step
- Phone auto reboot and goto MAGLDR113 menu
- Done
3. Flash Recovery with edit "flash.cfg" as bellow: (use Notepad to open flash.cfg file (don't open file flash.cfg.txt))
misc ya 1M
recovery rrecov|ro|nospr filesize recovery-raw.img
boot yboot|ro 5M
system ya 150M (bigger is OK)
cache ya 5M
userdata ya|asize|hr allsize
Link download newest Recovery thanks seadersn
- Goto MAGLDR113 menu
- Choose USB Flasher (use Volume down/Volume up button, then press Call button)
- Connect your phone to PC
- Run DAF.exe and follow guide step by step
- Phone auto reboot and go to MAGLDR113 menu
- Choose AD Recovery to go Recovery Menu
4. Wipe full data and Advance - Dalvik cache on Recovery Menu is recommand
- If you update from previous version, only need wipe cache/dalvik cache and all your data will saved
5. Flash ROM use Recovery
- Choose Install zip file from SD card
- Follow the guide
- Press Call button (Green button) to accept - Reject button (Red button) to Cancel
6. Reboot and see your result

Use cLK
Follow the guide in here:

Very easy way to prepare flash ROM use Tools here:

How to enable Data2EXT in MIUI GINGER ROM (Thanks droidzone about these scripts):
Note: This feature require high speed SD card (Class 6 or higher) for best performance, the slower SD card work but the ROM is slow down
1.Partition your SD card
- Format SD card
- Create EXT Partition. There is the easy way to create EXT Partition by CWM Recovery:
+ Goto Recovery Menu
+ Cho Advanced -->Partition SD Card
+ Choose EXT size (Maximum is 2048Mb) and Swap size (Recommand is 128Mb)
+ Waiting until Done
2. Install Data2EXT feature:
- Install your ROM by CMW Recovery
- Install the A2SD Killer scripts file (attach file bellow)
- Reboot once after running the A2SD Killer and setup everything but don't install anything.
- Reboot to recovery once again and install the Data2SD Installer (attach file bellow)
- Reboot again and see result
ReInstall Data2EXT procedure:
Attached Files
File Type: zip - [Click for QR Code] (256.0 KB, 7963 views)
File Type: zip - [Click for QR Code] (159.4 KB, 7284 views)
The Following 40 Users Say Thank You to langthang For This Useful Post: [ View ]
27th March 2011, 04:57 PM |#5  
OP Recognized Developer
Flag Hanoi
Thanks Meter: 2,893
Donate to Me
Some Tips and Q&A
Some Tips and Q&A:


How to make a fresh install:
1. Backup your data, apps, games (use MIUI Backup)
2. Check and flash correct Recovery size the ROM require
3. Go to Recovery menu, Wipe data/Advance-Wipe dalvik cache
4. Flash the ROM
5. Reboot your phone and restore your data (which was backup in 1st step)
If you still have problem, try do everything again (Task 29, flash MAGLDR/cLK, Recovery, format SD card)

Check and make A2SD work
a2sd repair
to reinstall A2SD
a2sd zipalign
a2sd cachesd

to activate A2SD +
a2sd check
if you want to check if A2SD is working correctly.

1.Press *#*#6484#*#* to access Factory test menu
In this menu, you can test many thing

2. For the black background in apps (or any issue for some apps) you have to go to setting --> management apps --> the apps where you have black background --> compatibility mode --> TURN OFF or TURN ON
There's also a quick way to access app compatibility setting:
- Long press Home
- If the app is there long press app icon (email)
- Then it brings you straight to the app compatibility setting screen, toggle the buttons
3. Go to choose which themes you like, then copy Theme.mtz to /MIUI/theme on SD Card and use Theme Manager to choose it, reboot and get a best UI
4. Incoming Call (1.7.8) - Delay in display of number
Disable the "enforce proximity sensor" in the Call Settings on Program Tab of settings
5. Press and hold "Home" button to access Recent Menu/Apps Killer/Tasks
6. In Lock Screen
- Press Time Display and Slide down to go Main Desktop
- Press Call Icon and Slide down to go Dial Pad
- Press SMS Icon and Slide down to go Message
- Press and hold 'Home' button to active Torch

8. Uninstall an app or game:
- Press & Keep Icon on the Desktop, move it to Recycle Bin to Uninstall
9. Long press on the icon in Toggles will launch the settings for that icon.
10. Press "Menu" key and "Volume Down" key at the same time to print a screen.
The printed image is saved in the directory of MIUI in the sd card.
12. Slide from left to right to quickly delete a message or a call log.
13. You may hold down an icon by one hand to enter Edit Mode, and then use the other hand to slide the screen to move the icon to the target screen.
14. Double tap the time zone to launch the Music Player when the screen is locked.
15. Click the contact image in Calls, SMS and Contacts, shortcut menus will pop up.
16. The battery will display the percentage of left battery capacity by Settings>System>Battery>Notification Indicator Style>Percentage.
16. How to set IP dialing?
MIUI ROM can add an IP prefix for the called number in a strange land. You may set it in Settings>Common>Calls.
You may also long press the contact item before dialing, and choose “Make IP calls” in the pop-up menu.
17. When you are not available to answer the phone, you may slide up the panel to reject the call and to send a message to the caller at the same time.
18. How to set custom ringtones?
Put media files into the Media/Audio/ringtones directory in the SD card, (If there is none of this directory, please create one manually) and then select in Sounds in Settings.
Note: there are three directories under Audio, corresponding to the following tones:
notifications--notification ringtones
ringtones--incoming call ringtones
alarms--alarming ringtones
Supported formats: MP3, WMA, WAV, Midi, etc.
20. How to quickly delete items?
You may slide from left to right on the item and click on the red "Delete" button when it appears.
21. How can I share my network to the PC or other terminals?
Firmware of Android 2.2 and above support the sharing of mobile phones to other Internet terminal in the following method:
Go to "Settings" -> "System" -> "Share mobile network", you may choose to share the Internet connection by USB tethering or setting up portable Wi-Fi hotspot.
22.How to copy files from the computer to the phone? First connect your phone to your computer via data cable, pull down the notification panel from the top of the phone, click “USB connected”, and then click "Turn on USB storage”.
After copying, do not forget to select the option of “Turn off USB storage”, otherwise "File Manager” in the phone will not be able to find the sd card, as it is being occupied by the computer.
23.Now I have a lot of apps, how to put them in order?
Long press an app icon and then you may move it freely. When it is moved to the screen border, the screen will automatically switch to the next screen.
24.How to add a screen?
Use two fingers to pinch on the desktop to enter screen thumbnail mode. Then you may add or delete screens.
25. How to delete an app?
Long press the app icon you want to delete, drag it on top of the trash box and click OK to delete it.
26. Adding widgets on the desktop: press the Menu button on the desktop, select "Edit Mode", and then click the icon on the upper right corner to access the interface of “Add Widgets”. Choose your favorite widget on the top, and then drag it to the screen below.
27. Using folders to manage desktop apps: in the interface of “Add Widgets”, drag [Folder] to the desktop. You may drag multiple apps into folders to classify them. After opening the folder, you may click the edit icon in the upper left corner to rename the folder.
28. Using toggles panel to improve efficiency: drag the notification panel down from the top, click "Toggles" to go to the toggles panel (It goes to the toggles panel in default of notice.) On the panel are listed the most commonly used toggles, you may click to quickly enable or disable a toggle. Long press on the icon will launch the settings for that icon.
29. Guest mode: enable the “Guest Mode” toggle in the panel, and your calls and text messages logs will be hidden, and all installed applications cannot be removed. You may have a try when you need to show your phone to guests or children.
30. Importing contacts or binding accounts: you may use some apps to import a batch of contacts, or bind Google account directly in "Settings"> "Personal"> "Accounts & Sync Settings" to sync contacts at any time.
31. How to copy files from the computer without using the data cable? In case of a wifi connection, enter “File Manager” on the desktop, select the tab of "Remote Administration" to start the service, and then you will get an address. Enter the given address on the computer, then you may copy files without using a data cable!
The Following 32 Users Say Thank You to langthang For This Useful Post: [ View ]
27th March 2011, 05:02 PM |#6  
OP Recognized Developer
Flag Hanoi
Thanks Meter: 2,893
Donate to Me
How to make Internet Passthough working on Nonsense ROM

How to make Internet Passthough working on MIUI ROM

Thanks nguyenh and kaiba_seto2004 from PDAViet for it
Origin Topic:
1. Make sure you install Wired tether và GScript Lite in your ROM (already in my V19.0)
2. Install HD2 ADB Composite:
3. Install HTC Remote NDIS based device (when you install HTC Sync 3.0)
4. Run Wired Tetheron HD2, connect USB cable with PC.
Select "Press to start tethering" on your HD2, your PC will detect a new connection, setup new connection as bellow picture:

5. Setup LAN connection on PC as bellow:

6. On your phone, open GScript Elite. Press Menu button/Add script then select Needs SU? and type some code as bellow:

ifconfig rmnet0 down
ifconfig usb0 up
route add default gw dev usb0
setprop net.dns1

Them Save it

7. Run this script (HD2 Passthough) above with GScript and now Internet Passthough is working well

8. When you want stop it, choose "Press to stop tethering" on Wired Tether
With this solution, you can use Internet for your phone through PC, and use HD2 as a webcam for skype and Yahoo, download app,game and data games directly to your Phone with PC internet
The Following 18 Users Say Thank You to langthang For This Useful Post: [ View ]
27th March 2011, 05:02 PM |#7  
OP Recognized Developer
Flag Hanoi
Thanks Meter: 2,893
Donate to Me
Mods and Tools
1. Arabic RTL Fix with T9 dialer
2. [MOD] Skip track via volume press (Weekly Updated)
3. [MOD]4-Way Reboot (weekly updated)
4. [LOCKSCREEN-THEME] MIUI Lockscreen theme
5. [MOD] Multilanguage T9 dialer

6. LG Optimus Weather App for MIUI -- Mirror link

7. HTC IME Keyboard with Voice Search

8. Erebos Keyboard (LatinIME replacement option), thanks task650

9. MIUI Jean Theme (From MIUI with boyppc edit)

10. MIUIPhone theme (From Alcola66)

11. Jumba's NeonGT for MIUI From Jumba

12. iOS5 looklike with themed lockscreen (by Piemo)

Soure topic:

13. MNMLd4rkr47z Ver.4 for MIUI ----Mirror link

14. SlateSense for MIUI (v1.3) --- Mirror link

Origin Thread:

15. Elite Pro HD V3.7.1 -----Mirror link

Origin Thread:

16. Best Video for Test -Girls_Generation-Oh_LG-Logo_720p_x264

17. HD Video for test - Ngay_buon_-_cam_ly_divx_HD_1280x720_AVC_Wide_Screen

18. M.jexllo theme --- Mirror link

19. DockLock_Right_Vexillum ----Mirror link From lippol94-miuiandroid

20. WP7 Dark theme - From 72ls1 -----Mirror link

21. Winphone7 Ginger Keyboard - From 72ls1-----Mirror link

22. Iphone keyboard

23. SS Galaxy Lockscreen by h_zee13
The Following 24 Users Say Thank You to langthang For This Useful Post: [ View ]
27th March 2011, 05:02 PM |#8  
OP Recognized Developer
Flag Hanoi
Thanks Meter: 2,893
Donate to Me
Enlarge your battery life : an attempt to fix the battery drain (from DarkAdrien)
Originally Posted by DarkAdrien

Having an abnormal battery drain on our phone is really frustrating, and finally prevents us from using it normally. Smartphones have a short battery life in general. Do not expect a two weeks-battery life like your old fashioned monochrome Nokia had… But with finding out what’s eating up your battery, and fixing it, you should be able to use your device for about 35-48 hours with ‘normal’ use. This guide will consider you own a Desire HD (even if some advices may be applicable to many other android phones), with a Rom based –at least- on a Rom (this base is known for greatly improving battery life over based-Roms).

Note to the admins : maybe not in the right section, but questions about this topic often arise in this section... Feel free to move...

It's a bit long and formal, but I tried to be as precise as I could.

1. Evaluating the battery drain
1.1- Setting up CurrentWidget
1.2- Calibrating the battery
1.3- Monitoring your battery behaviour
2. Finding what is causing the battery drain
3. Fixing the battery drain
3.1- Processes heavy on CPU, GPS, Sensors
3.2- Processes preventing ‘deep sleeping’
3.3- Taskillers
3.4- Radios
4. Battery still draining insanely fast : what to do now ?
5. General tips

1. Evaluating the battery drain

Battery life length is mainly something subjective. You can not compare your battery life to someone else’s, even not with your previous battery cycle. It all comes down to how you use your phone : some activities are known to be real battery hogs (like navigation, watching a movie, recording an HD-clip) and will remain whatever you will do. To eliminate the subjective ‘part’ of our process, we need to measure if you are suffering from an unusual battery drain.
1.1- Setting up CurrentWidget

First, we need to have a measure tool. CurrentWidget will be perfect. Download it and install it off the market. Add the widget to your desktop, and when prompted to configure the widget, tick ‘log file’, you can leave the ‘Update Interval ‘ at 60 seconds.

You end up with a widget that displays the current current (…) in mA (milliampere). Basically, this is the battery flow, measured each minute. More importantly, CurrentWidget generates the file ‘sdcard\currentwidget.log’ which contains the raw measures, with their matching time. This file can be open with any text editor (and most file explorer like ES Explorer, or Root Explorer).
1.2- Calibrating the battery

Then, you should fully charge your battery. Not plug it off when the led turns green, but when Current Widget stops reporting a charge (it slowly decreases). You will see that it takes sometimes more than 1 hour after the green led, to fully charge your battery. If your phone is rooted, delete the file ‘data\system\batterystats.bin’ with a file explorer to reset your battery calibration, and reboot.
1.3- Monitoring your battery behaviour

To evaluate the behavior of your phone, leave it asleep (but not shutdown) a whole night, or at least 2 consecutive hours. Do this with Bluetooth, GPS, and WiFi OFF, data connection ON. Then open the log file. A typical and normal log should look like that :

2011/02/01 03:48:12,-5mA,55%
2011/02/01 03:53:20,-3mA,55%
2011/02/01 03:57:54,-66mA,55%
2011/02/01 04:07:46,-5mA,55%
2011/02/01 04:08:51,-5mA,55%
2011/02/01 04:18:44,-7mA,55%
2011/02/01 04:23:20,-3mA,55%
2011/02/01 04:33:13,-3mA,55%
2011/02/01 04:38:19,-3mA,54%
2011/02/01 04:48:12,-3mA,54%
2011/02/01 04:53:20,-3mA,54%
2011/02/01 04:58:12,-3mA,53%
2011/02/01 05:08:20,-3mA,53%
2011/02/01 05:18:13,-8mA,53%
2011/02/01 05:28:05,-5mA,53%
2011/02/01 05:37:58,-5mA,53%
2011/02/01 05:48:44,-5mA,53%

You see here that the battery drain flow is continually between 3-8 mA, with only one peek at 66 mA. It results in only 2 % battery lost in 2 hours. When in standby, your phone should lose roughly 1 %-charge per hour.

If you can use your phone to heat your lounge and your log look more like this one :

2011/02/01 03:48:12,-164mA,55%
2011/02/01 03:53:20,-225mA,54%
2011/02/01 03:57:54,-147mA,54%
2011/02/01 04:07:46,-213mA,52%
2011/02/01 04:08:51,-110mA,52%
2011/02/01 04:18:44,-236mA,50%
2011/02/01 04:23:20,-189mA,49%
2011/02/01 04:33:13,-264mA,47%
2011/02/01 04:38:19,-235mA,46%
2011/02/01 04:48:12,-199mA,44%
2011/02/01 04:53:20,-236mA,43%

It’s good news ! There is room for improvement !
2. Finding what is causing the battery drain

At this point, you know that something is eating up your battery. The key is to find out which setting or application (or combination of both) is causing this.

Open the dialer and press *#*#4636#*#* or download and install ‘Spare Parts’ and go in ‘Battery History’. In the second box set ‘Total since boot’. Then let’s have a look at the first box settings.

CPU usage :

A reasonable repartition should look like that :

If one or more Items are much more CPU-intensive than others, you have identified the culprit (or at least a part of them).

Proceed the same way with GPS and Sensors usage and look for any abnormal intensive processes.

If at this point you have identified one or more processes, go to point 3.1

Finally select ‘Partial Wake Usage’. If your phone suffers from battery drain, it is likely you will have one or more process(es) over represented in this ‘Partial Wake Usage’. It means these applications or settings (if the main culprit is 'Android System') are preventing your phone from going standby, keeping it in a partial wake state, which is obviously less battery-efficient. In this case, directly go to point 3.2
3. Fixing the battery drain
3.1- Processes heavy on CPU, GPS, Sensors

- If the main processes you identified are 3rd party applications, there is not much to do. Use common sense : for example if the draining culprit is a backup app, try to disable automatic backup, permanent monitoring, or any option that could use your phone even when standby. Each application has its own settings. Ultimately, you should uninstall these apps, and get in touch with the developper to inform him about the issue.

- If the main processes you identified are or is a stock app (ie HTC Sense account, Gmail, etc.) :
. if applicable, you should delete your ‘HTC Sense account’ which is know to be heavy on CPU
. if you identified Gmail, Picasa, or any other Google service, try lowering the synchronization frequency (or disabling it to see if it improves your battery life)
. stock apps can also drain battery when you installed a Rom over a previous one without completely wiping your system. Keep in mind that the results log I presented at the beginning are obtained with synchronization and stock app with their default settings. So on a healthy system, stock apps should not cause battery drain (again, appart from HTC Sense Account which is crap)

At this point, you should repeat point 1 and have a look at your log to see if things have improved. If the answer is ‘No’, go to point 4.
3.2- Processes preventing ‘deep sleeping’

Some apps or settings can prevent your phone from going standby even if screen is off. It means your CPU can still be used at 100 %, and your battery will keep on draining, nearly as if it was awake.

It the process you identified in point 2. is a 3rd party app, there is not much to do. Use common sense : if the draining culprit is a backup app, try to disable automatic backup, permanent monitoring, or any option that could use your phone even when standby. Each application has its own settings. Ultimately, you should uninstall these apps, and get in touch with the developper to inform him about the issue.

Often, you won’t have much information about what is preventing your phone from sleeping. The main process is ‘Android System’. There has been much discussion over the net about this issue.

There has been many cases reported where WiFi when turned on, would keep your phone in ‘Partial Wake’. Even when turned off, the phone would not return to normal behaviour. In this case the only solution is to reboot with WiFi off. This is not a global issue, I did not suffer from it, but take the time to investigate this path. If you confirm you have this issue, there is not known solution yet. I would advice you to go to point 4.

By experience I can also tell you that installing a Rom over a previous one without wiping all can lead to some erratic issues. You should always backup your important data, then wipe all (data, dalvik, cache, etc) and then only install your new Rom. Some backup apps (like Titanium Backup) offer the possibility to save and restore system settings. This can also cause issues. You should only save data (sms, mms, bookmarks…) but not settings.
3.3- Taskillers

If you use a taskiller, simply don’t. Really. Or at least, disable any option that allows the taskiller to permanently monitor and manage your memory.

Taskillers are supposed to speed your phone by killing tasks when the Memory is ‘full’ or above a defined limit. The problem is that it interferes with Android built-in (and efficient) memory management. You have to understand that what can slow down your phone is not Memory saturation (because Android will start closing apps on its own before reaching this situation), but CPU usage. You can still use a taskiller to see which app are eating CPU cycles and close them. But again, don’t let any 3rd-party app manage your memory. It will only bring you force-closes, battery drain, and various unpredictable issues.
3.4- Radios

I won’t be very talkative on this topic, but if your phone is fully rooted, ENG-OFF and Radio S-OFF, you should really try a few radios. Some of them are reported to improve signal strength and battery life. Write down the version of your current radio (to be able to restore it if needed) and try a few ones. Have a look here :
4. Battery still draining insanely fast : what to do now ?

Ok, at this point, you have not much options left.

If not already done, install a fresh, well-known, and stable Rom (for example LeeDroid or RevolutionHD). Install it from scratch, after having wiped all. When booting and going through the setup steps, untick ‘save my settings with my google account’ (or something similar, sorry my Rom is in French…). This will prevent the Market from restoring the apps you used with your previous Rom.

When fully booted, only install CurrentWidget off the market, reboot, and follow point 1. to calibrate your battery. You are now on stock Rom, with only one app installed (which I certify does not drain battery…).

At this point you should not experience battery drain.

- If you still have an unusual battery consumption, I have no more idea. Get in touch with the relevant Customer Service and ask for a return. You may restore a stock Rom before doing this (for warranty purpose), search the forum to find How.

- If you seem to have a reasonable battery flow (again, between 3 to 8 mA with only a few peaks), install your favourite apps one by one, with at least 30 mn between each installation (and having a look at the current log each time). This will allow you to identify any app that would start draining your battery. If you identify such an app, go to point 3.1. This will take time, but hey, you want your issue solved don’t you ?
5. General tips

Finally, I will try to sum up what to do to preserve your battery life :

- avoid installing a Rom without wiping your system before
- after installing a new Rom, calibrate your battery (point 1.2)
- do not use taskillers
- try to install applications one by one to easily identify a battery-draining one
- don’t use HTC Sense account, it can use much CPU, drain your battery, burn your house and kill your family

Thanks for taking the time to read.

The Following 11 Users Say Thank You to langthang For This Useful Post: [ View ]
27th March 2011, 05:02 PM |#9  
OP Recognized Developer
Flag Hanoi
Thanks Meter: 2,893
Donate to Me
Use APKTool to Decompile, Edit, Translate and Recompile an APK
Please help me translate my ROM to your languages then send me all strings were translated, I'll add them to my ROM

Source from MIUI-AU
APKTool is an application (made by Brut.all) which decompiles and recompiles android APKs. If you know what you are doing, it also allows you to debug the smali code step by step. In our case it will enable us to build a language pack by translating the .xml strings inside APK files.

You need to do the following preparations (the video outlines these steps anyway):
Download the prepackaged APKTool zip.
Extract them to a directory you will remember.
Extract framework-res.apk AND apk files you want to decompile from the NDT MIUI ROM and copy them to the root directory of APKTool.

This step must be completed every time you are dealing with APKTool:
Open a command window
Navigate to the root directory of APKtool and type the following command:
apktool if framework-res.apk
The output should be:
I: Framework installed to: C:\Users\NDT\apktool\framework\1.apk

This step does the actual decompiling of the APK
(I will assume that the chosen APK is Settings.apk):

apktool d Settings.apk

The output should be:

I: Loading resource table…
I: Decoding resources…
I: Copying assets and libs…

After doing that, a new directory with the name of the APK you decompiled should have been created. You need to:

Change into the newly created directory.
Change into the /res folder
Check to see if a values-xx folder exists, where xx is the two letter code of the target language to be translated into. For example, if you are aiming to translate into German, check for a values-de folder. If it does not exist (and chances are that if you are translating into a new language, that it will not exist), you need to create it. Then, copy the arrays.xml and strings.xml files from the /values folder into the folder you just created.

Open these two files (in Notepad ++) and alter the strings (the text in BLACK ONLY). Look out for things that look like %d and %s /’ - Don’t edit these, as they are variables. Also, if you see &, it represents the ‘&’ sign, so feel free to change it. Finally, you MUST be sure to place a backslash ‘\’ before an apostrophe, for example Proxy\’s would be the equivalent of Proxy’s.
Once you have translated and edited your arrays.xml and strings.xml files, save them, and return to the root directory of APKTool.
Open a command prompt to that directory

Enter the following command to recompile your edited and translated APK
(assuming that Settings.apk is the chosen APK):

apktool b Settings

The output should be:

I: Checking whether sources has changed…
I: Smaling…
I: Checking whether resources has changed…
I: Building resources…
I: Building apk file…

You may get a couple of these messages:

aapt: warning: string ‘app_killed_message’ has no default translation in C:\Users\Josh\Desktop\NF\framework-res\res; found: fr it ja
aapt: warning: string ‘global_action_reboot’ has no default translation in C:\Users\Josh\Desktop\NF\framework-res\res; found: fr it ja
aapt: warning: string ‘reboot_system’ has no default translation in C:\Users\Josh\Desktop\NF\framework-res\res; found: fr it ja
aapt: warning: string ‘toast_reboot_recommend’ has no default translation in C:\Users\Josh\Desktop\NF\framework-res

However, it will build the apk anyway. These messages mean that some strings don’t have values. It is only an issues if the text im blue includes your translation language.

Open the new .apk by 7zip or winrar, then copy resources.arsc from it to old .apk file (overwite the old resources.arsc one with new one) and
Copy the resources.arsc from the /build directory into the original framework-res from the rom (just overwrite the old resources.arsc one with the new one) and you have a apk file was translate now
Attached Files
File Type: rar APKTool and the Template.rar - [Click for QR Code] (2.59 MB, 1135 views)
The Following 7 Users Say Thank You to langthang For This Useful Post: [ View ]
27th March 2011, 05:02 PM |#10  
OP Recognized Developer
Flag Hanoi
Thanks Meter: 2,893
Donate to Me
Reserved 10 char
The Following 2 Users Say Thank You to langthang For This Useful Post: [ View ]
27th March 2011, 05:02 PM |#11  
OP Recognized Developer
Flag Hanoi
Thanks Meter: 2,893
Donate to Me
Reserved 10 char
Post Reply Subscribe to Thread

fast rom, miui, thinks ..for this rom.

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes