Added log energy feature to android and fixed TransactionTooLarge issue