[Q] Battery usage data isn't available (Lollipop 5.0) - Android Q&A, Help & Troubleshooting

Hi,
I have a tablet Onda V989 and I installed a Lollipop 5.0 Rom on it. I rooted it and All thing works great except one thing.
When I enter to Settings > Battery, I have only the graph but there is no detail about the apps usage percentage. Even if I wait the discharging of the battery from 100% to 0%, there is always on message "Battery usage data isn't available".
I tried to look for how android loads Battery usage details and which system apk is responsable to do that.
I thought at first that /system/priv-app/Settings/Settings.apk is responsable to doing that. So I took a Nexus 5 Settings.apk, I changed the signature (META-INF and AndroidManifest.xml) and push it on my Tablet.
The display of settings was changed as in Nexus (size of icons, and I had the apps in on column instead of two) but the Battery settings still display "Data isn't available".
I thought after that that may be "data/system/batterystats.bin" is not created and the settings can't find battery informations. But the file was there.
I confirmed after that that the problem is not in batterystats.bin because I installed BetterBatteryStats from http://forum.xda-developers.com/showthread.php?t=1179809 (Thanks @chamonix for this app) and it works great.
What I'm looking for is to know how android lollipop load these Battery usage informations and which apk is doing that . I will get it from a google tablet with lollipop 5.0 and push it on my phone as I did with the nexus 5 Settings.apk.
Sorry for my bad English, I hope that my question was clear.
Thanks in advance for your help
UPDATE:
I finally find the solution for my problem. I hope that it will help someone else.
I found that android uses a config xml file in /system/framework/framwork.apk.
When we decompile the apk, we can see this config file in /framework-res/res/xml/power_profile.xml.
This xml contains the manufacturer components consumption estimation. Android uses this values to calculate the estimation of the battery usage by the different component (CPU, WIFI, Bluetooth ....).
The file was not modified in the version of Lollipop, I installed because it was based on a Beta version.
I took the xml from an officiel stock rom and modified framework-res.apk and flash it as zip.
Now, the battery usage works like a charm

Im using lenovo a6000. I installed custom ROM (AICP) with lollipop 5.1.1. Everything works fine for me except the battery percentage. The battery percentage won't change even while charging. The only way to get the correct battery percentage is switching off the mobile and again switching on it after 5-6secs. Even if i restart the mobile, it won't change. Can u help me out to fix this bug???
Coz i like this ROM very much.

@slide222 can you share the xml file and the modified zip to flash? Im using an onda v80 plus and facing the same problem on android

Related

Enhanced Battery Life

Some people used to accuse lomlom for his ROM version as the Battery Back up is not suitable. But dear, lomlom is trying to give us something new with important softwares, so dont accuse him. Some problems with Battery Status software, Just go to the FILE EXPLORER > WINDOWS > STARTUP, delete POUTLOOK and other useless software that you want except system applocations. Again go the TODAY in SETTINGS, disable Battery Status, now go to FILE EXPLORER > WINDOWS > BATTERYSTATUS folder, DELETE that folder. Then just, again go to the SETTINGS > TODAY, enable Battery Status as today item. No graphics, as well as apllications that are oriented with BATTERY STATUS software won't work, only the Battery Level (in percentage) will highlight. The Battery consumption ratio will be decreased and enjoy long Battery life.
lionkng123 said:
Some people used to accuse lomlom for his ROM version as the Battery Back up is not suitable. But dear, lomlom is trying to give us something new with important softwares, so dont accuse him. Some problems with Battery Status software, Just go to the FILE EXPLORER > WINDOWS > STARTUP, delete POUTLOOK and other useless software that you want except system applocations. Again go the TODAY in SETTINGS, disable Battery Status, now go to FILE EXPLORER > WINDOWS > BATTERYSTATUS folder, DELETE that folder. Then just, again go to the SETTINGS > TODAY, enable Battery Status as today item. No graphics, as well as apllications that are oriented with BATTERY STATUS software won't work, only the Battery Level (in percentage) will highlight. The Battery consumption ratio will be decreased and enjoy long Battery life.
Click to expand...
Click to collapse
dear lion king i try your following method i delete poutlook and other useless software and i not found battery status folder in windows directory please sagest what can i do my battery status always show 100% pls help me
Frind,
you should tell me first whether you are using Fusion version provided by lomlom or not?
problem
lionkng123 said:
Frind,
you should tell me first whether you are using Fusion version provided by lomlom or not?
Click to expand...
Click to collapse
yes friend i use fusion by lom lom plsssssssssssssssssssssss solve my problem
lionkng123 said:
Frind,
you should tell me first whether you are using Fusion version provided by lomlom or not?
Click to expand...
Click to collapse
i use fusion by lom lom plssssssssssss ans
alanwake said:
i use fusion by lom lom
Click to expand...
Click to collapse
plsssssssssssssss solve my problem
alanwake said:
i use fusion by lom lom plssssssssssss ans
Click to expand...
Click to collapse
help me to reduce battery

[ROM][XXKK5]MikiMod CarbonOcean v8 [JKAY][CALLREC][OC/UV][BLN][-BATT+BOOST][BRAVIA]

First I feel the potential problems with the English, still need a little support from google translator.
I present my rom in version 5.1 (previous versions are in the Spanish forum I frequent There he will see only good things about it http://www.htcmania.com/showthread.php?p=2779093#post2779093 )
ScreenCapture
​
​​
Version 8 (KK5)
- Kernel 2.0 and optional Siyah in MikiMod_CO
- No shutter sounds on camera
- Auto Brightness modified screen (minimum brightness is quite short to not stay in bed blind, and the rest a bit softer to improve battery)
- Possibility to make the installation to your liking lite,* NOTE * See the second post TUTORIAL
- Camera shutter buttons with physical
- Supports optional Arabic RTL (see download section extras)
- Call Recording and enlarged in the photo dialer.
- Modified Mms.apk unlimited recipients, 4 mms and sms is not more
- New cosmetic changes (letters of notice and watch the theme tune with colored icons etc)
- Apps themed to go in tune with the theme
- New binary superuser.apk and
- Further improvement of performance (especially for some alternative apps and launchers)
- GPS with European settings.
- Added angrygps.apk for better GPS reception
- New Jkay v12 thousand and one settings (you must install the app, is in a folder in / sdcard/MikiMod_CO/JkayDeluxesettingsV12.apk)
- Added new font smaller, which gives an HD look very cute.
- New lockscreen background
- Gtalk with support for video
- I think I solved some problems with external sd (slow) and the reproduction of some video formats.
- Browser user agent switcher with Options
- App CWM
- Support BLN (* NOTE * the kernel does not support BLN series, but if you install another rom has the necessary libraries)
- Values ​​MDNIe modified to avoid screens Yellowish SuperAmoledPlus
- I recommend installing the App ScreenTunning to further improve the quality of the screen (especially colors in the same app can see the difference)
- Many Performance Tweaks
- With adjustable TouchWiz alphabetical order
- Cosmic Astronaut Bootanimation xD
- Special transition effects xD
- CRT-off without pixelation
- Extended Menu off
-% 1 in 1 battery
- Connection to google icons (change if you are connected or not with google services)
- Minimum consumption Maximum speed
- All my love and love
- And more things that are sure to forget
- Further improvement of performance and battery. I hope comments.
- Added TW4.5 on the sdcard MikiMod_Co
Installation notes and download link Please READ
- Wipes optional, as long as you come to a rom with KI4 Base.
- Install the folder / sdcard / app Mikimod_CO Jkaydeluxev12.1 necessary for the functioning of the task bar to scroll, the screen lock, On / Off crt effect, and a thousand things more.
- Once installed you can change the kernel rom at your will.
- Remember to do the installation lite to flash the zip Do_Lite_Normal.zip (CWM) or edit yours in Do_Lite_Al_Gusto.zip
LINK
http://www.multiupload.com/K6SZGD8G5B
Instalation
Very simple.
Download the zip for installation and place it on your phone.
We went into recovery (combo well with vol + Home button and power or some kind of external app if you have)
I am in favor of making all wipes when installing something new, to make the installation cleaner and avoid mistakes, but each to do what you want. (Even so check the installation notes for each rom to see if any were special)
To do this, wipe data / factory reset, wipe wipe dalvikcache cache and advanced.
And finally install the zip: install zip form sdcard / choose zip / and choose the zip
Reboot and ready
Onset is usually somewhat slower, since it is completely normal at the first boot android creates many files and that takes time.
Make lite Instalation
When CarbonOcean to flash (from v5.0) rom is full, ie it has each and every one of the standard apps, to lighten the rom and improve performance, we can make lite rom for it in / sdcard MikiMod_CO find a folder called within two zip you can find them.
DoLiteNormal.zip
For those who are here from the beginning, it would be like the normal versions of my old roms. For those new to flash this zip recovery are automatically deleted from the trash apps that comes with the phone as standard. Flasar this zip will get improved battery life and performance, and reduced application list.
I recommend this zip to flash people android newcomer to the world.
DoLite_editar_al_gusto.zip
So that, in this case we do 100% custom installation. and choose which apps we want and which not. To do this:
If we do from the PC is faster and better, but can be done from the mobile also but from the best cell phone only people who know how to do ...
Open the zip file with Winrar (open OJO not unzip or extract or anything) and we will META-INF/com/google/android / and open it with notepad + + (eye NOTEPAD + + is not worth the typical Windows notepad, if you have not look on Google's free) updater-script file. And something like that but it will be longer:
delete("/system/app/BuddiesNow.apk");
delete("/system/app/Days.apk");
delete("/system/app/DigitalClock.apk");
For it is as easy as deleting the lines of the apps you wish to keep. For example:
Days.apk need the app and do not want to delete. then you go to file and borrais this.
delete ("/ system / app / Days.apk");
so that looks like this:
delete ("/ system / app / AccuWeatherDaemonService.apk");
delete ("/ system / app / AnalogClock.apk");
delete ("/ system / app / BuddiesNow.apk");
delete ("/ system / app / DigitalClock.apk");
delete ("/ system / app / Dlna.apk");
And so with all the apps you wish to keep, if you leave this file flaseais unedited and will erase all apps not required for basic operation of the phone, the only application that is a little more delicate is the mtpaplication, which is for connect via USB (I think the kies). the rest you can delete without problems.
Once you finish editing the file you give it to the floppy. and saved. shut the notepad + + and the win rar will give you a message telling you if you want to update the file inside the zip, you say yes and go.
Will copy the zip to a folder so you can use yours and mikimods future and even in other roms then just go to recovery and to flash the zip file, or from the flash app update.zip CWM seek and accept it.
Themes
You can install any universal theme in the beginning, though it might not work as well as they should, this problem would be only the subject and not mine.
Here I will put the CarbonBlue of @ rastafary (best blue theme of the moment) a little touched up with the aesthetics of my rom. 100% functional on any version CarbonOcean [KI3]
CarbonBlue
For version 5.0 & 5.1 [KI4]
http://www.multiupload.com/8EM0VA01YP
BlueOcean not work in v5.0 at the moment
http://checkrom.com/threads/blueocea...eckrom-v5.101/
@ Lexullde theme Blackblue
http://www.htcmania.com/showthread.php?t=230627
Extra-Downloads
RTL without keyboards
http://www.multiupload.com/YMJE1FUDUH
RTL with Keyboards (samsung and swype)
http://www.multiupload.com/XEVSG10MVT
Acknowledgements
-Especially and above all a @ Intronauta for the infinite patience with me has had their mods tutorials and tips, thank you machine.
- @ vauss to resolve any questions I had.
- A @ htcmania for giving us this great forum for sharing and learning.
- Xda developers, because without them ... practically cooked roms would not exist.
- Supercurio for their hard work with the screens SuperAMOLED
- MoDaCo,potatoman, sicopat, jkay moveszur
- A @ criskelo for their contributions here and there (xda).
- All the people I put in the features of the rom
- A @ sergiofct beta test for me
- A @ rastafary, because he learned many things in the sgs1 (and because he did not say anything but I've chopped the icons of H and H + on your mod hehe)
- A @ vvaleta, @ sihayqueirseva, @ jorge_kai, @ gembol @ jorge9s and other people for being active admins and other users
- Hardcore Ninphetamine to its kernel gokhanmoral Siyah, Leomar
- And for putting up with my girl ...
- In order impossible to name everyone, and if you believe that you must be one hehe tell me because the same thing I forgot to put ...
Thank you very much for ALL
What they say about my rom (in htcmania)
This does not do much about because I have these people on the payroll, usually paid with cold cuts, and a basket at Christmas.
But to get people to take an idea ...
Originally Posted by kpik0
I'm enjoying very much, and say that in the options bar scrolls notifications
Originally Posted by gembol
Yes sir!
Wifi is faster, but not only that, everything is going well. I continue with 1000MHz processor and limited to a single pull, not the least.
Tomorrow I'll see how it goes consumption, but for now, great!
Keep it up!
Originally Posted by gembol
Well I am very very happy with the consumption of the ROM. All day, with about 2 hours of screen and I have used the battery to 63%.
It is the first day I arrived at this time with more than 50% long.
Thanks miki!
Originally Posted by sergiofct
I had the Batista is a piece of rom, no doubt, but as flashing all, got this when I was a "beta" or so said the author ... and I liked the colors, fluidity and battery. But now with the included tweaks, updates, as I believe is the best rom for my needs. To taste ... colors. But only tell you that the testing and comparison and if you find something better ... heh, heh. Seriously, what you see is the battery. In terms of performance is couple to the Batista70 (about 5700, 5800 in antutu benchmark)
Originally Posted by Devriondast
I like your room guy, but still in version 1.2 ... I update it in a few days if you change the base, the comments I have read the rula KI4 Nueba perhaps quite well worthwhile, but that we value your .. . thank you very much by Rom clear hehehehe
Originally Posted by gembol
1.3.2 creme de la creme. For S2 with exquisite taste ... lol
Originally Posted by Nane
@ Mikisb1 after many tests and lots and lots of flashing ROMs ... versions .... etc etc ...
I must congratulate you because you've managed to make the best of all in my opinion.
I was blown away is leaving the battery life and good performance ... ... not a single problem or anything weird ...
Thanks for your input ...
Originally Posted by webssites
I do not know you did, but this room is the best long !!!!!
Originally Posted by paira
@ Mikisb1 only tell you that guy .... impressed with your rom .... very very stable battery consumption .... and it does not lack anything for my perfect ..... come .... of MIUI ....( I've been since I started and the truth about this is another world ... is normal as in not used MIUI bases weno Samsing but that's another topic XD)
Try it you will love
Looks beautiful mate.
That looks really nice. Will try it later. Lots of not so nice designs around, but this its really nice.
Sent from my GT-I9100 using xda premium
Great rom!
Best performance/consumption of the ones I've tried.
Flashing to 5.0 and then will update to 5.1.
Thank you mikisb
That actually looks pretty nice. Good job OP!
Thanks all. install it and you like it
incredible... the best I've seen, fast and beautiful... congratulations! recommended!
Fonts required...
Can someone pls post the fonts used in this rom?
/system/fonts....
DroidSans.ttf
DroidSans-Bold.ttf
thanks!
thanks for ur hard work, downloading now will leave some feedback soon, Regards.
Sent from my GT-I9100 using XDA App
I've tried DoLiteNormal.zip but nothing happens what's wrong??
Regards
If you have to flash the zip dolitenormal.zip in cwm, you have less apps. Check it and tell me if it is not.
Very good rom, Spain is diferent...thank you mikisb1.
vey nice rom mate , lots of mods and a great deisgn
Yes exactly what's expected but nothing changes... I'll try again..
Regards
it's ok now..
Let me see how is this rom... i came from androidmeda thas is really really good (battery life it's wonderful as less dpi font ) but your rom it's seems nice...
Regards
Rated as exellent.
Do you recommend "copy all system data" with titanium when updating to 5.1 from 3.5?
or just copy apps to avoid system bugs?
I'm an unconditional fan since version 1.0 of your ROM.
I think it's the best ROM for SGS2 at this moment, lesser battery drain and fast, really fast.
Keep working mikisb! See you here and at HTCMania!
Thanks mikisb for your job. I've got all your rom and all of them are simplily faster and no problems.
Salu2!!!
Desde mi bestia
So you finally posted your ROM here on Xda. Been following you're work on Htc mania.
Welcome, always liked you're work

[MOD] (DEPRECATED) Floating Multi Windows (Mega 6.3 and 5.8) [ROOT][4.2.2]

This thread is now deprecated, look for the all new 5 layouts Floating Multi Windows mod here:
http://forum.xda-developers.com/gal...-floating-multi-windows-t2820366/post54240351
What about minimizable, maximizable, resizable floating multi windows on your Mega?
Interested?
DISCLAIMER
I'm not responsible for anything that may happen, your Mega, your responsability . The mod works fine on mine but one never knows, so make sure you have a Nandroid backup in case.
WHERE ARE THE UPDATES?
If you had already installed the previous version (s) just scroll down until the update chapters by the end of this post...
MEGA 5.8 OWNERS
This mod has been tested on Mega 6.3 but it should work as well on Mega 5.8.
Follow the instructions, but DO NOT flash the Floating_Multi_Windows_I9200.zip since it's for the Mega 6.3 only.
If you want the full version on your Mega 5.8, upload your androidpolicy.jar and I'll mod it.
REQUIREMENTS
A rooted Mega I9200 or I9205 on JB 4.2.2, with a custom recovery (either CWM, or TWRP, or whatever) installed.
It works on both odexed and deodexed Roms, but odexed Roms will allow less features. It has been tested on XXUAMEE and I can't tell for sure whether it works on other Roms or not, but my guess is that it does. Please try and report (but don't forget to make a backup beforehands):silly:
MEGA 6.3 ON DEODEXED MJ2
DO NOT flash the Floating_Multi_Windows_I9200.zip attached here cuz it's not compatible with MJ2. Go to post #13, I've attached a MJ2 version there (it has been tested and it works, see post #14).
INSTALLATION
Using your favorite root browser navigate to /system/etc/permissions folder and find com.sec.feature.multiwindow.phone.xml.
Rename it com.sec.feature.multiwindow.phone.xml.bak (do not delete it, in case you want to revert back to static stock multi windows).
That's it for people on an odexed Rom, reboot. Now when you open an app you see an icon at the top right or at the top bottom, press it, the app switches to floating window view (I'll explain everything in a minute, let me finish this paragraph first).
For people on a deodexed Rom, flash in recovery the attached zip (if you are running MJ2 don't flash the zip attached here but the one in post #13), wipe cache and dalvik cache, reboot.
HOW DOES IT WORK?
As said above, now when you open an app you see an icon that enables you to switch to floating mode. In floating mode you see on the top bar a close, a maximize and a pin button, plus a minimize icon (for deodexed Roms only, the difference between odexed and deodexed Roms is that deodexed Roms get on top of the other features a minimize icon and a double tap feature while in floating mode).
The close and maximize icons speak by themselves. The pin button, press it, it becomes green and enables you to keep the floating window (s) allways on screen. With the pin button activated you can resize windows from the bottom, the left and the right.
Use the space between the pin and the other icons to drag and move the window to wherever it pleases you.
While in floating mode you can press the maximize icon, or double tap the center of the bar (deodexed Roms only), to get the window back to full screen mode.The minimize icon (deodexed Roms only) shrinks the window to a bar like on a computer.
Depending on your phone settings the Flash Bar may or may not work. If it still works then you can use it to launch apps directly in floating mode, and you don't need to have the pin activated to be able to rezise windows. What makes it work or not? Good question, when I first set up this mod on my phone it worked, but at one point it stopped and never came back. I have to investigate and well, you are free to investigate too, any help is highly appreciated...
Anyway, with or without Flash Bar you can have as many Floating Windows as you want, cool...:good:
YOU WANT TO GO BACK TO THE STOCK STATIC MULTI WINDOWS VIEWS?
No worries, just delete the .bak in the com.sec.feature.multiwindow.phone.xml and reboot. If you flashed the zip don't bother, it won't harm your phone since the editing I made doesn't work when com.sec.feature.multiwindow.phone.xml is active.
NOT ALL YOUR APPS DISPLAY IN FLOATING MODE?
The latest update (7 JULY 2014) takes care of that, just keep on reading
BUGS
1-When one changes screen orientation the floating windows are back to full screen size.
Solution:
change your phone's DPI. I changed mine to 195 and the bug is gone. Don't go below 193 as the systemui doesn't like it and would force close everytime the orientation changes.
2-Some apps that are natively multi windows enabled don't display nicely (they show a huge floating window). To tame them, one has to decompile the app, open res/values/dimens.xml and edit the app default and minimum sizes to have them to look as follows:
<dimen name="app_defaultsize_w">300.0dip</dimen>
<dimen name="app_defaultsize_h">200.0dip</dimen>
<dimen name="app_minimumsize_w">300.0dip</dimen>
<dimen name="app_minimumsize_h">200.0dip</dimen>
300 and 200 are the values I use but of course you can use other values that suit you better. The default size means the size the app has when it's opened in floating mode, and the minimum size means the smallest size you can resize/shrink it.
3-When an apk is minimized as a bar, if one opens a new apk and makes it float the first mimized apk has disappeared. It doesn't happen if two or more apks are open in floating mode and then minimized/maximized (I mean, in that case one can swith between minimize/maximize without loosing the other minimized apks), it happens only if a new apk is opened while one or more are minimized. I don't know if I explained it clearly but play a bit with the mod and you'll see what I mean...
Edit: 11 dec update (see below) more or less fixed this bug.
4-You tell me:cyclops:
UPDATE 11 DEC (Tested on deodexed I9200, but it should work for all 6.3 and 5.8 Mega models)
Today I decided to install the flash bar and some xmls permissions from the note 3, and see what would come out.
To my surprise it brought three interesting improvements.
1 - Multi instance, which means that one can open at the same time two or more windows of the same app (I could open up to 4 windows of the same app, not that I would really use it but just to say:cyclops.
Quite a handy feature if you want to compare two books, or two maps, or two pics or two whatever, but note that not all apps support multi instance, and note that for some apps one can't open two windows one after the other (one has to open one window of let's say app A, then app B, then one can open a second window of app A with the first app A still open).
2 - The disappearance of minimized bars is gone (still some random disappearing) when the windows are launched from the flash bar (but it still occurs when they are launched from somewhere else).
3 - The windows are resizable to a very small size, even smaller than the minimized bars (like 50x60, and don't need anymore to have the pin enabled to be resized.
No need to drag the apps from the flash bar, just touch them and they open in floating mode (set your prefered floating size with multi windows manager).
The 5 xmls files are attached below. This zip is not flashable, I did it intentionally in order one to know what files one pushes into one's phone, in case one day one wants to remove them. So you have to unzip first, and then manually copy the 5 xmls to your /system/etc/permissions folder, set perms to rw, r, r (644), reboot.
Careful!
One of these 5 files is called com.sec.feature.multiwindow.xml, and you may think that you already have it in your /system/etc/permissions folder. Well, you certainely have a file that has the same name, but it's not the same file (look at the weight). Rename your existing file com.sec.feature.multiwindow.xml.bak and then copy the new com.sec.feature.multiwindow.xml onto the folder.
A word about static stock multi windows
I tested these files in static stock multi windows (by renaming the com.sec.feature.multiwindow.phone.xml.bak to com.sec.feature.multiwindow.phone.xml, see above) and the multi instance works, plus there is a funky recent multi windows opened apps feature on the top of the flashbar, and a bookmark function on the bottom. Well, I found these features a bit wonky, but I didn't test too much so see by yourself if you feel like it.
Your flash bar doesn't show up, and you don't have the option anymore in your settings?
It's normal, it's because com.sec.feature.multiwindow.phone.xml has been renamed com.sec.feature.multiwindow.phone.xml.bak.
Rename it com.sec.feature.multiwindow.phone.xml, reboot. Go to display in your settings, enable the flashbar. Check that it appears. Rename again com.sec.feature.multiwindow.phone.xml to com.sec.feature.multiwindow.phone.xml.bak, reboot, your flash bar is still there (Note that you don't have the option to enable/disable it in the settings. You can force stop it from the applications section in the settings, but in that case it won't restart until you reboot).
UPDATE
I found a way to have that multi windows option to show in the settings all the time.
Since it's a heavy file I didn't upload it (my internet connection is dreadful) but if someone wants it then I'll upload it.
I'm a bit busy at the moment and I didn't test all the new features extensively, but if you do and find some tricks or fine settings/improvments please report here. Thanks in advance.:silly:
UPDATE 21 DEC (tested on Mega 6.3 XXUAMEE but it should work on all 6.3 Roms, and probably 5.8's)
It's a two layouts mode, which means that you will have the ability to switch between dual and cascade mode at the press of a button.
Go to your system/app folder and rename FlashBarService.apk to FlashBarservice.apk.bak (in case you need to get back to it if the mod is not compatible with your rom).
Flash the 2LayoutsFlashbarServiceMega.zip, wipe cache and dalvik cache, reboot.
Now open your FlashBar (the bar from where you launch the multi windows) and look at the top, you'll see two icons. That's it, one is for cascade mode, and the other for dual mode. When you press one it turns green, which means that the mode is activated.
If some windows disappeared and you want them back, or if you had too many windows opened in dual mode and want to put everything in order, press the cascade icon and they'll open in cascade mode (but it only works if the apps were still active, if they had been closed it obviously doesn't work).
If the FlashBarService fc, it means that it's not compatible with your rom. In this case delete the FlashBarService.apk from your system/app, remove the .bak you put at the stock one, reboot. If you want it for your rom, upload here your FlashBarservice.apk and your framework-res.apk and I'll mod it to make it two layouts enabled.
UPDATE 7 JULY 2014 (tested on Mega 6.3 DDUCNB1, it should work on other 6.3 Roms but it won't work on Mega 5.8. If you want it for your rom upload your FlashBarService.apk, services.jar, framework-res.apk and I'll mod it)
Here is a mod to make all your apps floating multi windows compatible.
I know that there are some apps here and there that do the same job but the advantage of this mod is that:
1-it works without any third part app which means that you'll save some ram and some battery,
2-with third apps when you install a new app you have to reboot to have that new app to show in the multi windows tray and to have the cascade/minimize icon to appear in full mode, whereas with this mod you don't need to reboot, the app shows straight away in the tray and so does the cascade/minimze icon.
Download AllAppsFloatingMultiWindowsMega6.3.zip, flash it from recovery, clean dalvik cache, reboot.
Bugs:
1-In dual mode, before to minimize a window press the pins from both apps to avoid the black screen issue (you'll understand what I mean when you get it).
If you get the black screen no worries, just maximize your windows, or press recents, or home, or settings, well press whatever takes you out from the black. And next time don't forget to pin both the windows before to minimize them:cyclops:...
2-You tell me...
WHAT'S NEXT?
I will mod some files to try to enable 5 layouts or Note 3's quad view, and I will try to add 2-3 things I have in mind. But no promises
YOU WANT TO HELP MAKE THIS MOD BETTER?
You are welcome!!!!!!!!!!!!
CREDITS
@rovo89 for the amazing Xposed Installer
@xperiacle cuz he was the one that found out that Samsung Roms are Floating Windows compatible
@THEDEVIOUS1 for porting the mod to the Galaxy Tab 7 Plus, and for all his help when I made my first Floating Windows mod for the Galaxy Grand
reserved
i will be following your project and testing everything ) thank you for this
will give feedback
i9205
yeah man you ROCK. Im on i9205 and it works perfect. thanks.
no problem in rotation screen for me for moment.
I tried to flash it but now i'm stuck on the samsung logo...
what should I do?
I'm using stock MJ2, deodexed, and TWRP...
-rename com.sec.feature.multiwindow.phone.xml to com.sec.feature.multiwindow.phone.xml.bak
-restart to TWRP
-wipe cache/dalvic
-flash the zip
-reboot
than stuck at samsung logo....
i04055 said:
I tried to flash it but now i'm stuck on the samsung logo...
what should I do?
I'm using stock MJ2, deodexed, and TWRP...
-rename com.sec.feature.multiwindow.phone.xml to com.sec.feature.multiwindow.phone.xml.bak
-restart to TWRP
-wipe cache/dalvic
-flash the zip
-reboot
than stuck at samsung logo....
Click to expand...
Click to collapse
I'm sorry to hear that you have issues...
The wiping must be done after the flash.
What you can do is go into recovery, wipe cache and dalvik, then reboot.
Anyway, that's strange since the zip is harmless. Which Mega do you have? I9200?
That could be an incompatibility with MJ2...
Or, did the zip download properly? When you are flashing it do you see some text on your screen?
Sometimes, since the zip contains a jar, one has to reboot twice. I don't know why but it's an issue that I have once in a while.
In the worst scenario, I mean if it still bootloops, then you'll have to restore your backup.
Good luck!
If you still don't manage to install it then it means that it's an incompatibility with MJ2, in that case upload your androidpolicy.jar and your framework-res.apk and I'll mod it.
unclefab said:
I'm sorry to hear that you have issues...
The wiping must be done after the flash.
What you can do is go into recovery, wipe cache and dalvik, then reboot.
Anyway, that's strange since the zip is harmless. Which Mega do you have? I9200?
That could be an incompatibility with MJ2...
Or, did the zip download properly? When you are flashing it do you see some text on your screen?
Sometimes, since the zip contains a jar, one has to reboot twice. I don't know why but it's an issue that I have once in a while.
In the worst scenario, I mean if it still bootloops, then you'll have to restore your backup.
Good luck!
If you still don't manage to install it then it means that it's an incompatibility with MJ2, in that case upload your androidpolicy.jar and your framework-res.apk and I'll mod it.
Click to expand...
Click to collapse
I tried to flash again than wipe cache/davic, but still no luck.
I use I9200, i don't see any error message when flashing the zip, try to restart several times but still stuck at samsung logo...
So I reflash the full rom than it back to normal.
Maybe it just not compatible with MJ2
i04055 said:
I tried to flash again than wipe cache/davic, but still no luck.
I use I9200, i don't see any error message when flashing the zip, try to restart several times but still stuck at samsung logo...
So I reflash the full rom than it back to normal.
Maybe it just not compatible with MJ2
Click to expand...
Click to collapse
Yep, I think it's the XXUAMEE androidpolicy.jar that doesn't fit MJ2.
Upload your androidpolicy.jar and your framework-res.apk, and I'll mod for you and for other MJ2 users.
OP updated.
The update can be used with all rooted Mega variants, deodexed or odexed, 6.3 and 5.8.
It brings amongst other multi instance but well, just have a look at the OP
Is it now support mj2 firmware?
Sent from my GT-I9200 using xda app-developers app
i04055 said:
Is it now support mj2 firmware?
Sent from my GT-I9200 using xda app-developers app
Click to expand...
Click to collapse
Nope, cuz nobody uploaded MJ2's framework-res.apk and androidpolicy.jar...
As I already said, if one wants this mod for a particular firmware (including Mega 5.8 inches) one has to upload those 2 files...
But that's in order to get the full mod. Otherwise it's possible to get 75 % of it by just renaming some files in the system/etc/permissions folder and adding some other files in the same folder, for any firmware on both Mega 6.3 and 5.8, see OP...
unclefab said:
OP updated.
The update can be used with all rooted Mega variants, deodexed or odexed, 6.3 and 5.8.
It brings amongst other multi instance but well, just have a look at the OP
Click to expand...
Click to collapse
tested and working perfectlyy .. you are the one
unclefab said:
Nope, cuz nobody uploaded MJ2's framework-res.apk and androidpolicy.jar...
As I already said, if one wants this mod for a particular firmware (including Mega 5.8 inches) one has to upload those 2 files...
But that's in order to get the full mod. Otherwise it's possible to get 75 % of it by just renaming some files in the system/etc/permissions folder and adding some other files in the same folder, for any firmware on both Mega 6.3 and 5.8, see OP...
By the way, I modded the flash bar (the bar from where one can launch multi windows apps), if someone is interested it's there:
http://forum.xda-developers.com/showthread.php?t=2567109
Click to expand...
Click to collapse
here are the files... just got a chance to use my comp after so long...
android policy : https://dl.dropboxusercontent.com/u/31220121/MJ2 FW/android.policy.jar
framework-res : https://dl.dropboxusercontent.com/u/31220121/MJ2 FW/framework-res.apk
MJ2
Ok mate, here it is
Please do report whether it works or not, for other people on MJ2 to know. Then if it works I'll update OP:good:.
Stay tuned, some more updates are on the way. I managed to have stock dual static multi windows and cascade/floating multi windows to work at the same time, and I'm currently working on enabling quad view and/or five layouts (no promises on those ones though, but I'll try my best:silly...
Edit;
confirmed working on MJ2 (see next post).
unclefab said:
Ok mate, here it is
Please do report whether it works or not, for other people on MJ2 to know. Then if it works I'll update OP:good:.
Stay tuned, some more updates are on the way. I managed to have stock dual static multi windows and cascade/floating multi windows to work at the same time, and I'm currently working on enabling quad view and/or five layouts (no promises on those ones though, but I'll try my best:silly...
Click to expand...
Click to collapse
confirm working....
Working perfect on my GTi9205 ...
Thanks mate ...
Post #13 works in my gt-i9205 good.tnx
Sent from my GT-I9205 using Tapatalk
thank you very much. Excellent yet so simple and elegant modification!
Can this be used on note 10.1 2014?
inertiaholic said:
thank you very much. Excellent yet so simple and elegant modification!
Can this be used on note 10.1 2014?
Click to expand...
Click to collapse
Probably, since it will have note 3 style multi windows, but I can't tell for sure (it hasn't been released yet).
I briefly tried a note 3 and I didn't see any floating option, but I know there are some mods like quad views (easy to implement on note 3, but not on mega )
Check note 3's forum, I think I saw something about floating windows...
thanks for the quick reply suitably named unclefab!
With note 3, yes mw etc easily created the floating window presumably on the back of the pen window feature, but not as elegant as yours or as universal as your where every window can be minimised etc. Indeed the multiwindow method is somewhat convoluted.
on my huawei ascend mate, i used the floating notifications plus xhalo windows but also somewhat iffy.
unclefab said:
Probably, since it will have note 3 style multi windows, but I can't tell for sure (it hasn't been released yet).
I briefly tried a note 3 and I didn't see any floating option, but I know there are some mods like quad views (easy to implement on note 3, but not on mega )
Check note 3's forum, I think I saw something about floating windows...
Click to expand...
Click to collapse
Working on att galaxy mega i527 .thanks
Sent from my SAMSUNG-SGH-I527 using XDA Premium 4 mobile app

[Q] Android ROM customization roadmap, general question

Hi guys, with my team we are working on an android device. At the moment we have accomplished the following steps:
Develop the PCB and touch screen to work with Android
Download 4.4.4 AOSP and customized the kernel for our device
saved source into GitHub and have a custom ROM with bootloader
So far so good, right now we have android running on our custom hardware (MIPS CPU) and we are quite satisfied with the overall performances.
Now we are starting the second phase of the project, and this is where we got stuck. We need to completely wipe out the UX and interaction of android 4.4.4 and create our own one.
This is what we need to accomplish:
Create a custom boot animation
Create a cutom animation for the battery charge
remove status bar (Time, Battery level) and pre-installed .apk
Create our own Android OS interaction with our .apks
Regarding the first steps, that's easy. We plugged into bootloader folder and started to change the animations for Battery and Logo. Regarding the rest the only solution we came up with is to have a sort of kiosk application that substitute the standard home screen.
Is there any other way to substitute the home screen with our own .apk? We have a built-in plug-in app so actually our .apk can pick up other .apk from file explorer and execute them. The problem is that we don't want to show to the user the underground system, so we don't want to show to the user anything except our home screen or kiosk mode app. Because the device will be used by commercial projects and retail stores.
What would be the best approach? Just remove all pre-installed .apk from the ROM (like calculator, browser, contacts) and execute an .apk in kiosk mode or create a new bootloader? Where we can find more documentation about this topic?

[Magisk Module] Step By Step Definitive GPS Solution (Global)

*This module also works for any another device with Qualcomm Snapdragon chipset based, so feel free to test it on another device that have Magisk and recommend for your friends that want a better GPS experience and functionality.
The original gps.conf file present in any version of MIUI is very wrong, it has a lot of bad information and settings for the correct operation of the GPS and A-GPS. But on most Custom ROMs it was solved, however, I believe the changes I've made for a better optimization has the best results.
A little reflection tested and proven by myself: If you have a nice FW version with wrong gps.conf you won't have good results with the GPS, but if you have any FW version with gps.conf file correctly edited, maybe you might get better results.
Then we can finally conclude that, the Xiaomi Mi5 don't have any HW problem with GPS. What happens is that the firmware works in conjunction with the file.
There's not much difference with the default file included in LOS or other ROMs but let me explain about some of my relevant changes:
1 - Now basically the A-GPS data files are XTRA 3.0 files (It provides GPS, GLO and BDS assistance data) served over HTTPS with SSL and without # preceding the address lines while the default on MIUI ROMs was XTRA 2.0 (provides only GPS and GLO) served over HTTP without SSL, this allows an attacker to mount a MITM attack on the network level and modify the GPS assistance data while in transit.
2 - I switched the XTRA_VERSION_CHECK from 0 to 3 because it's obvious that xtra3grc.bin are XTRA 3.0 files.
3 - I included the address servers from pool.ntp.org as the main NTP server because it's global, the system will try finding the closest available servers for you
4 - I set SUPL_HOST google.com as default, before was qxwz.com on MIUI and this is an A-GPS server in China. Google server is more "Global" and can do the job very well.
5 - I updated the SUPL version from 2.0 to 3.0
6 - I changed the SUPL_MODE from 3 (so bad, this option doesn't even exist) to 0x2 (MSA), under normal circumstances, the MSA method is applicable to situation which the satellite signal is poor, to achieve a single positioning.
7 - Changed the value of GPS CAPABILITIES from 0x37 to 0x35 for correctly MSA mode functionality.
8 - Changed the LTE Positioning Profile Settings from 0 (RRLP) to 3 (LPP_User_Plane and LPP_Control_Plane)
9 - Changed the A-GLONASS Positioning Protocol from 0 to 0x4 (LLP Uplane)
The reason for the 8 and 9 changes is because SUPL 3.0 doesn't support RRC and RRLP anymore.
[Step By Step]
It's Magisk install-able, don't install it by TWRP but with Magisk instead!
1 - Go on Magisk > Modules > Click on "+" yellow button > Search and find this "optimizedgpsconf.zip" file (Now this one and only works fine for both Nougat and Oreo and also is correctly replacing the gps.conf file), long press on it and select open and after installed then reboot your device.
2 - Make sure your location settings is setup on mode "High accuracy"
3 - Skirt outdoors, can be in the yard of your house or anywhere else with a line of sight to the sky, download some Compass app on Google Play Store (I recommend the Compass Steel 3D) and then calibrate the compass.
4 - Stay in that outdoor place and download GPS Locker on Google Play Store and open the app and wait for the first time fix/lock. This is necessary and essential because the app will recognize some GPS satellites signals for the very first time.
*Note 1 - Location mode "Battery saving" is gone due to Google's location accuracy is now a binary setting.
*Note 2 - Consider using the GPS Locker app because it is much better than the GPS Test and GPS Data. You just need to open it once and wait for fix, then your gps signal is locked and when you close it the app keep awake running in the background. (press Cancel in "Unlock GPS on exit" message). GPS was made to work on outdoor places. For indoor/enclosed places such as inside of your house don't forget that, it will take a few minutes to fix. It drains more battery, but is required if you're an advanced user that use gps all the time.
Whenever I'm on the street I keep the GPS Locker and Cellular data open because I use Cerberus antitheft, so if I get mugged or if I lose my phone I can track him down and retrieve it.
I hope I've helped. Please, give me some feedback if it worked for you.
ianhughes74 said:
Guys let me tell you, I'm currently using the FW v7.10.12 with ViperOS v3.1.1 ROM and the gps.conf file edited by myself.
The original gps.conf file present in any version of MIUI is very wrong, it has a lot of bad information and settings for the correct operation of the GPS. But on most of Custom ROMs it was solved, however, I believe the changes I've made for a better optimization in my country have the best results.
A little reflection tested and proven by myself: If you have a nice FW version with wrong gps.conf you won't have good results with the GPS, but if you have any FW version with gps.conf file correctly edited, maybe you might get better results.
Then we can finally conclude that, the Xiaomi Mi5 don't have any HW problem with GPS. What happens is that the firmware works in conjunction with the file.
Extract the file "gps.zip" and copy the gps.conf file and paste and replace on the root>system>etc folder and then reboot your device.
Make sure your location settings is setup on mode high accuracy.
Download some Compass app on Google Play Store (I recommend the Compass Steel 3D) and then calibrate the compass.
Skirt outdoors, can be in the yard of your house or anywhere else with a line of sight to the sky, download GPS Locker on Google Play Store and open the app.
Please, give me some feedback if it worked for you.
Click to expand...
Click to collapse
Thanks a lot, Ian. Still haven't gotten around to try it, but will do it tomorrow morning and report back.
Just did a diff with the gps.conf included in LOS 14.1; there are some minor differences (I suspect much less than when compared with MIUI) but will try it anyway to see if it makes a a difference. Just for the record, I don't have terrible GPS performance (it takes a while to lock, and accuracy could be better) but any improvement would be welcome.
Just tried your gps.conf; copied it into /system/etc using TWRP, rebooted, recalibrated compass and cleared and updated AGPS (I used the "GPS Test" app). I'm using 7.9.22 dev firmware and LineageOS 14.1, latest build (10.24).
The performance for me was about the same than with the default LineageOS gps.conf, both in accuracy and 3D Lock time; I suspect the change might be more spectacular for MIUI users, so I'd give it a try if I had severe GPS problems. As I told before, my GPS performance is not great, but not terrible either.
Anyway, thanks a lot, @ianhughes74 for your work!
e_jim said:
Thanks a lot, Ian. Still haven't gotten around to try it, but will do it tomorrow morning and report back.
Just did a diff with the gps.conf included in LOS 14.1; there are some minor differences (I suspect much less than when compared with MIUI) but will try it anyway to see if it makes a a difference. Just for the record, I don't have terrible GPS performance (it takes a while to lock, and accuracy could be better) but any improvement would be welcome.
Just tried your gps.conf; copied it into /system/etc using TWRP, rebooted, recalibrated compass and cleared and updated AGPS (I used the "GPS Test" app). I'm using 7.9.22 dev firmware and LineageOS 14.1, latest build (10.24).
The performance for me was about the same than with the default LineageOS gps.conf, both in accuracy and 3D Lock time; I suspect the change might be more spectacular for MIUI users, so I'd give it a try if I had severe GPS problems. As I told before, my GPS performance is not great, but not terrible either.
Anyway, thanks a lot, @ianhughes74 for your work!
Click to expand...
Click to collapse
Yes, you're right. I made minor changes with the default file included in LOS.
Now basically the data files are served over HTTPS with SSL while the default was served over HTTP without SSL, this allows an attacker to mount a MITM attack on the network level and modify the GPS assistance data while in transit.
I switched the XTRA_VERSION_CHECK from 0 to 3 because it's obvious that xtra3grc.bin are XTRA 3.0 files.
And I includes the address pool.ntp.org as the main NTP server because it's global, the system will try finding the closest available servers for you. However, this is a dynamic IP server, so, a fixed time reference becomes more reliable, fast and secure. If your country have a NTP server with a static IP, please consider adding the address to the file.
But for now you can try to replace the lines to:
NTP_SERVER=cl.pool.ntp.org
NTP_SERVER_1=south-america.pool.ntp.org
NTP_SERVER_2=gpsntplpsc.duckdns.org
NTP_SERVER_3=time.izatcloud.net
But consider using the GPS Locker app because it is much better than the GPS Test and GPS Data. You just need to open it once and wait for fix, then your gps signal is locked and the app keep awake running in the background.
It drains more battery, but is required if you're an advanced user that use gps all the time. Whenever I'm on the street I keep the GPS Locker and Cellular data open because I use Cerberus antitheft, so if I get mugged or if I lose my phone I can track him down and retrieve it.
I hope I've helped.
Quick update: I was on 7.9.22 firmware before. Just to be sure, I flashed a newer FW (7.10.19) together with your gps.conf, and GPS lock times improved drastically! Accuracy also improved a good bit. Thanks a lot again!
I'll have to remember to copy your file over the default one each time I flash a LOS weekly, but it's worth it
can you please modify for indonesia? thx u
kemalafiantoro said:
can you please modify for indonesia? thx u
Click to expand...
Click to collapse
Please, edit by yourself. Open the file that I attached using Solid Explorer File Manager or ES File Explorer as Text Editor and replace the following lines below and then save the file.
NTP_SERVER=asia.pool.ntp.org
NTP_SERVER_1=id.pool.ntp.org
NTP_SERVER_2=0.id.pool.ntp.org
NTP_SERVER_3=1.id.pool.ntp.org
NTP_SERVER_4=2.id.pool.ntp.org
NTP_SERVER_5=3.id.pool.ntp.org
compatible for malaysia ?
Please provide the file for India.
Great work @ianhughes74 !
It really helped my gps signal on AEX rom, not that it was bad but now it's more consistent. Thanks a lot
Now only if we had someone who knows a thing or two about flashable zips to make this process more automated, but never the less, good job on the detailed guide and thanks for help
qiie95 said:
compatible for malaysia ?
Click to expand...
Click to collapse
Please, edit by yourself. Open the file that I attached using Solid Explorer File Manager or ES File Explorer as Text Editor and replace the following lines below and then save the file.
NTP_SERVER=asia.pool.ntp.org
NTP_SERVER_1=my.pool.ntp.org
NTP_SERVER_2=0.asia.pool.ntp.org
NTP_SERVER_3=1.asia.pool.ntp.org
NTP_SERVER_4=2.asia.pool.ntp.org
NTP_SERVER_5=3.asia.pool.ntp.org
Phillen13 said:
Please provide the file for India.
Click to expand...
Click to collapse
Please, edit by yourself. Open the file that I attached using Solid Explorer File Manager or ES File Explorer as Text Editor and replace the following lines below and then save the file.
NTP_SERVER=asia.pool.ntp.org
NTP_SERVER_1=in.pool.ntp.org
NTP_SERVER_2=1.in.pool.ntp.org
NTP_SERVER_3=1.asia.pool.ntp.org
NTP_SERVER_4=3.asia.pool.ntp.org
and for Italy please?
0ther said:
and for Italy please?
Click to expand...
Click to collapse
Please, edit by yourself. Open the file that I attached using Solid Explorer File Manager or ES File Explorer as Text Editor and replace the following lines below and then save the file.
NTP_SERVER=europe.pool.ntp.org
NTP_SERVER_1=it.pool.ntp.org
NTP_SERVER_2=0.it.pool.ntp.org
NTP_SERVER_3=1.it.pool.ntp.org
NTP_SERVER_4=2.it.pool.ntp.org
NTP_SERVER_5=3.it.pool.ntp.org
work wich oreo?
For everyone that needs a flashable zip of that *fantastic* mod, see below:
Here
Note that this is an Italian optimized version
If you want to use your gps.conf, just replace the file within the folder /system/etc inside the zip
It's magisk install-able, do not install it by twrp but with magisk instead!
thanks to Dusan for this!
sys01 said:
For everyone that needs a flashable zip of that *fantastic* mod, see below:
Here
Note that this is an Italian optimized version
If you want to use your gps.conf, just replace the file within the folder /system/etc inside the zip
It's magisk install-able, do not install it by twrp but with magisk instead!
thanks to Dusan for this!
Click to expand...
Click to collapse
Hi thanks for your reply, I just have to launch magisk and select this archive file to install it?
OT. Ciao compaesano
Inviato dal mio MI 5 utilizzando Tapatalk
toketin said:
Hi thanks for your reply, I just have to launch magisk and select this archive file to install it?
OT. Ciao compaesano
Inviato dal mio MI 5 utilizzando Tapatalk
Click to expand...
Click to collapse
Go on Magisk -> module -> click on "+" yellow button -> long press on that .zip file and select open
Then after it finishes click reboot and enjoy :fingers-crossed:
Ciao!
sys01 said:
Go on Magisk -> module -> click on "+" yellow button -> long press on that .zip file and select open
Then after it finishes click reboot and enjoy :fingers-crossed:
Ciao!
Click to expand...
Click to collapse
Ok thanks, it should works also under Lineage right?
Edit: flashed on Los and working fine, i've installed also gps locker with the autostart setting on the GPS turn on.
Inviato dal mio MI 5 utilizzando Tapatalk
I have installed your gps.conf file on my Mi5 running AospExtended ROM with 7.10.12 FW.
It didn't change a single thing. With or without the mod I am seeing satellites but signal is almost null. Only in VERY open spaces I am able to fix GPS.
This is the situation indoor compared to a Galaxy A5 2016.
I also have changed FW to 7.10.19, no profit
If I get next a window, it gets enough signal strenght to fix, but is still considerably less than the Samsung.
olivercervera said:
I have installed your gps.conf file on my Mi5 running AospExtended ROM with 7.10.12 FW.
It didn't change a single thing. With or without the mod I am seeing satellites but signal is almost null. Only in VERY open spaces I am able to fix GPS.
This is the situation indoor compared to a Galaxy A5 2016.
I also have changed FW to 7.10.19, no profit
If I get next a window, it gets enough signal strenght to fix, but is still considerably less than the Samsung.
Click to expand...
Click to collapse
Im in the same situation as yours
The thing i'll try to see if i can fix that is to revert back to 6.11.10 that is the last miui7 for mi5 (people says that GPS there is perfect)
if it'll wont work, then i'll try to clean flash with MiFlash some Stable MM roms and see

Categories

Resources