MotoCharge | Status Bar Notification with 1% battery charge stepping - Defy Themes and Apps

MotoCharge
The App MotoCharge displays die battery charge of Motorola Defy (and afaik also for Milestone 2, maybe more phones) in a 1% stepping. It is also able to show the battery status, temperature and voltage, just pull down the status bar. In case you are using a status bar in black, you can change the text color to white. More features to come
I give the app away for free here in the forums. But in case you want to donate a little for my work, feel free to buy it from the market. (it costs 50 euro cents, I don't know how much that is in $$$ cent, but it should be around 60..)
Bug reports and feature requests in this Thread
Download here: http://dl.dropbox.com/u/1464041/Plain/MotoCharge.apk
(this will be a link as soon as I am allowed to post links)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

You sir, are a legend.
Thanks for the app. Works great!

Great work! More font color options in next update please

Big thanks man ! exactly what i needed ...now i can uninstall defybat & batteryminder
could u make in future version to also display % not just the number ...and big thanks for this app is the free version on market aswell? couldnt find it

glad you guys like it
"is the free version on market aswell?"
- no. it is just available here for free, sorry
"could u make in future version to also display % not just the number"
- sure. i will include an option for that!
"More font color options in next update please"
- ayeaye! i just need to find a more storage friendly way to do so

Great app - nice one
Would you be able to change the font style & size so that it looks a bit more like the Motorola digital clock that's also in status bar
Thanks.

sp8y said:
Would you be able to change the font style & size so that it looks a bit more like the Motorola digital clock that's also in status bar
Click to expand...
Click to collapse
sure. does anyone know where i can get the font or what it is called?

I've had a quick search & not sure if it's the same but "droid sans" looks to be similar or even the same as the standard clock font.

sp8y said:
I've had a quick search & not sure if it's the same but "droid sans" looks to be similar or even the same as the standard clock font.
Click to expand...
Click to collapse
i played a bit with the font. it is def the right one, but maybe i need to displace the numbers a little bit downwards, it is not in line with the clock ;(
anyways, check out if you like the new version more

Yes that's great - looks much better - as you said it maybe could move down slightly but that's just a minor point for me.
As mentioned by a previous member a % icon would also look great alongside the numbers.
From my point of view you've done a nice job & I particularly like the way you can view the batt temp & voltage without having to see them all the time.
Thanks

if everyone really wants the % that hard, i can totally implement that. but i just tested it on my defy and the numbers are getting very very tiny that way. i will have to think more about that
i could make the icon wider than 35px, i have to try that later..

zorgblaubaer said:
if everyone really wants the % that hard, i can totally implement that. but i just tested it on my defy and the numbers are getting very very tiny that way. i will have to think more about that
i could make the icon wider than 35px, i have to try that later..
Click to expand...
Click to collapse
ty... but make a radio button for % display if maybe anyone don't want it.
(and color themes )

Hello
I just modify StatusBarPolicy.smali for don't show time, i think it's possible to make that for battery, for that i think it's nécessary to modfy this line :
.line 615
iget-object v3, p0, Lcom/android/server/status/StatusBarPolicy;->mBatteryData:Lcom/android/server/status/IconData;
invoke-virtual {p2, v3, v7}, Lcom/android/server/status/StatusBarService;->addIcon(Lcom/android/server/status/IconData;Lcom/android/server/status/NotificationDataLandroid/os/IBinder;
move-result-object v3
iput-object v3, p0, Lcom/android/server/status/StatusBarPolicy;->mBatteryIcon:Landroid/os/IBinder;
.line 896
iget-object v3, p0, Lcom/android/server/status/StatusBarPolicy;->mService:Lcom/android/server/status/StatusBarService;
iget-object v4, p0, Lcom/android/server/status/StatusBarPolicy;->mBatteryIcon:Landroid/os/IBinder;
iget-object v5, p0, Lcom/android/server/status/StatusBarPolicy;->mBatteryData:Lcom/android/server/status/IconData;
const/4 v6, 0x0
invoke-virtual {v3, v4, v5, v6}, Lcom/android/server/status/StatusBarService;->updateIcon(Landroid/os/IBinder;Lcom/android/server/status/IconData;Lcom/android/server/status/NotificationDataV
For that this post can help : http://forum.xda-developers.com/showthread.php?t=780614
So can you add icon like that ?
http://forum.xda-developers.com/showthread.php?t=724778
I know this tools but i don't like to show just number .And i don't like to have two battery indicator
Thanks

Going to try that outnow!

great app,good job

Great app, but every time i open my phone it opens the app and shows the black screen where it asks about the black or white status bar

yeah i know, sorry about that. I am still trying to find out how to make the settings activity not show up when the app loads...
karx23 said:
Great app, but every time i open my phone it opens the app and shows the black screen where it asks about the black or white status bar
Click to expand...
Click to collapse

I'm I reading this correct that you are trying to add the option to replace the stock battery status icon with yours or the %? If so this is great! I don't see a reason to have 2 battery status indicators in the notification bar.
Thanks for your work

gramps50 said:
I'm I reading this correct that you are trying to add the option to replace the stock battery status icon with yours or the %? If so this is great! I don't see a reason to have 2 battery status indicators in the notification bar.
Click to expand...
Click to collapse
no sorry man, that is not what i am working at
what i meant is that i am trying to prevent the settings windows from showing up when the app starts.
i dont think it is possible for a normal app to hide the systems battery indicator (maybe it is possible with su? maybe i will look into that after exams)

...
Great app, but this "annoying window popping-up at every boot is annoying", ya?
It really looks like the HP printer crapware :S

Related

DefyBatt & DefyLivepaper - Battery Widget & Livewallpaper for Defy scaling in 1% Step

DefyBatt & DefyLivepaper - Battery Widget & Livewallpaper for Defy scaling in 1% Step
I wrote a Battery Widget for the Defy scaling in 1% Steps.
It`s quite simple at the moment, but was just for me.
So, if someone wants to have it, here`s the download:
http://db.tt/v8WROJt
Version 1.1:
-More Styles (Numbers, Numbers + %, Text)
-More Colours
Version 1.2:
-Choose Size
Screenshot (Widget on left side middle): 58%
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If you like to get automatic updates or to donate something to me, i have a version for 0,50€ in the Market.
https://market.android.com/details?id=com.rznag.deffbatt
But will also update this file here, if i have a new version available.
Now also as livewallpaper:
URL=http://www.pic-upload.de/view-8817036/snap20110208_174901.png.html]
[/URL]
Link to apk:
Dropbox - DefyLiveWallpaper.apk - Online backup, file sync, and sharing made easy.
or as qr:
marketlink: https://market.android.com/details?id=com.rznag.liveDefy
I'll give it a shot. Any special way to install it?
No, just download. If Dropbox cuts the .apk you`ll have to add it manually.
Happened to some people on german forum. Install it like every other app.
Add as widget to homescreen.
Can you post a screenshot?
Thanks you.
It did drop the .apk extension. What a great widget. Thanks for making it small and unobtrusive!
Perilla_ said:
Can you post a screenshot?
Thanks you.
Click to expand...
Click to collapse
It's just a tiny number with a % symbol. You can choose black or white text. It's smaller than the numbers in the status bar but not by much.
I did something similar, but as a notification instead of a widget. If anyone is interested: http://dl.dropbox.com/u/1464041/MotoCharge.apk
The images are taken from this thread: http://forum.xda-developers.com/showthread.php?t=724778
Guys you built such wonderful apps and never oublished it. Both of them are beautiful. Thanks again
Sent from my ME525 using XDA App
How does it work? I mean, is the % real? Or does it estimate it, like Battery Left?
Edit: okay, I'll answer myself, you're using /sys/class/power_supply/battery/charge_counter. I didn't know about its existence! Great work! I wonder if we could modify the original Motorola APK to read that instead of /sys/class/power_supply/battery/capacity, so we don't need any extra software, hmm...
Edit 2: I was curious and searched. There seem to be two places where "capacity" is used. They are in /xbin/ssmgrd and /bin/charge_only_mode, both binaries. Would it be possible to hex-edit the "capacity" string to "charge_counter"?
Edit 3: whoops, somebody already thought of this. I'll take the discussion there so I don't hijack your thread
zorgblaubaer said:
I did something similar, but as a notification instead of a widget. If anyone is interested: http://dl.dropbox.com/u/1464041/MotoCharge.apk
The images are taken from this thread: http://forum.xda-developers.com/showthread.php?t=724778
Click to expand...
Click to collapse
Don't autoupdate, right? I loaded at 24%, looked the file and was 24. Some tests later, I looked the file again and was 22. It still at 24.
Thanks for it, it's a first step
This is nice. This is a bit small for me though. I'd love it if you could make text color, opacity and size configurable as well as provide an option to not show the % sign. Thanks.
New Version.
More Styles.
More Colours.
See Post 1.
New Version
-Choose Size
See Post 1
Great work as I said before. But here is some feedback to keep you chewing
I have no complaints regarding the widget that shows the percentage on home screen, but the other widget in the notification bar looks really good but works less. It gets stuck at times and we have to launch it again to check if its doing fine. After a long standby, it shows "FULL" even though the battery is in very low state. We need to launch the app from notification bar to get it showing the real % again.
Thats it for now.
rznag said:
New Version
-Choose Size
See Post 1
Click to expand...
Click to collapse
Thanks ! Looks great now
chaihg said:
I have no complaints regarding the widget that shows the percentage on home screen, but the other widget in the notification bar looks really good but works less. It gets stuck at times and we have to launch it again to check if its doing fine. After a long standby, it shows "FULL" even though the battery is in very low state. We need to launch the app from notification bar to get it showing the real % again.
Thats it for now.
Click to expand...
Click to collapse
Actually i experiment the same issue with Circle Battery widget. However i just realized i hadn't excluded it from the task killer (didn't use any with froyo on desire but seems like i need one with 2.1). If you're using a task killer, maybe this is worth checking.
Great wgt, thanks.
gdodinet said:
Thanks ! Looks great now
Actually i experiment the same issue with Circle Battery widget. However i just realized i hadn't excluded it from the task killer (didn't use any with froyo on desire but seems like i need one with 2.1). If you're using a task killer, maybe this is worth checking.
Click to expand...
Click to collapse
I never used a task killer after knowing what they do to your apps.
Sent from my ME525 using XDA App
Thank you for this nice widget.
Although my phone says it's fully charged, the widget says it's only 94%. I wonder what motorola is doing???
Also, your widget goes to 101% when fully charged. I don't know if it's a phone's bug or just your wigdet.
Could you also add some features when press the widget? Like show the battery use?
Can you add some kind of battery charging monitor? I mean, when the phone is docked and charging you can't see the battery level unless you reach the phone and turn the screen on. Can you use the notification led such as when charging it blinks red and then steady green once fully charged?
Sent from my MB525 using XDA App
karx23 said:
Thank you for this nice widget.
Although my phone says it's fully charged, the widget says it's only 94%. I wonder what motorola is doing???
Also, your widget goes to 101% when fully charged. I don't know if it's a phone's bug or just your wigdet.
Could you also add some features when press the widget? Like show the battery use?
Click to expand...
Click to collapse
1. I know, thats motorola related. The moto batterydisplay shows full when you reach 95% and switchs to full. My widget shows all the time the real value.
So it`s no bug in my widget, it`s motorola. Perhaps it`s to protect the battery in case of overcharge ?!
2. It`s planned to add this feature, but at the moment i`m ill. So you have to wait.

[Q] WHITE theme?

Is there a white status bar theme for the thunderbolt yet?
xCHPx said:
Is there a white status bar theme for the thunderbolt yet?
Click to expand...
Click to collapse
Check out the lightning rom thread on pg48 or 49, I am working on getting it worked out and I posted the progress on it as of now...it should be done as soon as I get a couple more things worked out.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
dhemke17 said:
Check out the lightning rom thread on pg48 or 49, I am working on getting it worked out and I posted the progress on it as of now...it should be done as soon as I get a couple more things worked out.
Click to expand...
Click to collapse
perfect. will definitely check it out.
Yeah I would like something like this with das BAMF.
I'm currently trying to find out how to changethe text color to black, so I can have a white theme.
eraursls1984 said:
I'm currently trying to find out how to changethe text color to black, so I can have a white theme.
Click to expand...
Click to collapse
When you find that out let me know...I know where to change the color...I just dont know what to change it to to get black. its in the service.jar...
eraursls1984 said:
I'm currently trying to find out how to changethe text color to black, so I can have a white theme.
Click to expand...
Click to collapse
Got the text black on mine
dhemke17 said:
Got the text black on mine
Click to expand...
Click to collapse
Care to share? I haven't been able to put as much time into it lately, my wife is giving me hell over the time I've already spent on it.
eraursls1984 said:
Care to share? I haven't been able to put as much time into it lately, my wife is giving me hell over the time I've already spent on it.
Click to expand...
Click to collapse
go check in the "Vanilla Bean" ROM thread. this guys started it. Maybe you could compare services.jar? or just rip it completely... with credit to him of course.
Certainly! Sorry. Haven't had much time over here....
1. Text pop ups...use the UOT kitchen put just modify statusbar, set the way you want and MAKE SURE YOU CHANGE text color to 000000.
2. As for the clock...pull classes.dex from services.jar and decompile using baksmali. Navigate to Android/status/status bar notification its a line right around .line 69 that initially reads
const/16 v17, -0x1
CHANGE THIS LINE TO
const/high16 v17, -0x100
Recompile classes.dex with small, replace it in services.jar and push push it to your phone or road it in a theme and you are good to go.
Sent from my ADR6400L using XDA Premium App
THANK GOD!
dhemke17 said:
Certainly! Sorry. Haven't had much time over here....
1. Text pop ups...use the UOT kitchen put just modify statusbar, set the way you want and MAKE SURE YOU CHANGE text color to 000000.
2. As for the clock...pull classes.dex from services.jar and decompile using baksmali. Navigate to Android/status/status bar notification its a line right around .line 69 that initially reads
const/16 v17, -0x1
CHANGE THIS LINE TO
const/hight16 v17, -0x100
Recompile classes.dex with small, replace it in services.jar and push push it to your phone or road it in a theme and you are good to go.
Sent from my ADR6400L using XDA Premium App
Click to expand...
Click to collapse
THANK YOU!!!!!! Finally! I've been working on this here without much luck.
btw...it's high16, not hight16 Teach me not to copy/paste.

[GUIDE] Remove items from Settings menu

I wanted to remove "Personalize" from my ROM, as it was "Senseless" so I figured it out, but it can be used to remove anything such as HTC Software Update, which is useless to custom ROM users anyway. Here's how to do it with a very simple smali edit.
Step 1:
Decompile Settings.apk or classes.dex
Step 2:
Navigate to /com/android/settings/framework/activity/HtcEntryProxy.smali
Step 3:
Open HtcEntryProxy.smali in your favorite editor and search for the lines
Code:
# direct methods
.method static constructor <clinit>()V
Step 4:
The fun begins here. I'm going to use "Personalize" as an example since it's what I removed, but you'll notice stuff like:
Code:
.line 167
sget v0, Lcom/android/settings/framework/activity/HtcEntryProxy;->INDEX:I
add-int/lit8 v1, v0, 0x1
sput v1, Lcom/android/settings/framework/activity/HtcEntryProxy;->INDEX:I
sput v0, Lcom/android/settings/framework/activity/HtcEntryProxy;->PERSONAL_INDEX:I
Pay close attention to this specific line:
Code:
add-int/lit8 v1, v0, 0x1
What you want to do from here is change 0x1 to 0x0. You can do this for anything you want to remove.
Code:
add-int/lit8 v1, v0, 0x0
Step 5:
Save your file and recompile Settings.apk or classes.dex and push to phone with ADB or create a flashable zip. If you're going to push to phone, I would suggest doing it from recovery as opposed to while in Android. A system file like Settings.apk probably won't want to be interrupted during an active Android session. Reboot your phone when done.
Step 6:
Profit.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Enjoy.
Awesome guide! Thanks! Can this method be used to launch other APKs? I'm assuming so since you have the extended settings app in there or is that just a hook into the framework?
Ive been looking for a guide about changing the menus. Thanks
Cabe24i said:
Awesome guide! Thanks! Can this method be used to launch other APKs? I'm assuming so since you have the extended settings app in there or is that just a hook into the framework?
Click to expand...
Click to collapse
It's a bit more involved to do what you're thinking but certainly doable. Not really this way though.
XsMagical said:
Ive been looking for a guide about changing the menus. Thanks
Click to expand...
Click to collapse
No problem!
Excellent work man!
freeza your the man.
How would I go about removing a quick setting?
Via My HTC Evo 3D On The Now Network From Sprint.
Rydah805 said:
How would I go about removing a quick setting?
Via My HTC Evo 3D On The Now Network From Sprint.
Click to expand...
Click to collapse
remove it from the quicksettings.xml
WOW, just amazing. I asked about doing this long ago in the Hero days and nobody had an answer. I applaud you for figuring it out. Maybe it is time to build my personal Hero Rom again, since this was the only thing causing me a headache (I still have the Hero for messing around on).
JoelZ9614 said:
remove it from the quicksettings.xml
Click to expand...
Click to collapse
Thank you, where is that located? Sorry, and thanks again.
Via My HTC Evo 3D On The Now Network From Sprint.
Rydah805 said:
Thank you, where is that located? Sorry, and thanks again.
Via My HTC Evo 3D On The Now Network From Sprint.
Click to expand...
Click to collapse
systemui.apk
JoelZ9614 said:
systemui.apk
Click to expand...
Click to collapse
Thanks ah mill
Via My HTC Evo 3D On The Now Network From Sprint.
I found quicksettings.xml and edited how I wanted, but I'm having issues recompiling. Could somebody hook me up?
Here's my SystemUI.apk:
http://db.tt/OzPTMQay
Here's a list of the order I wanted the quick settings in also: (removed WiFi Tether)
WiFi
Mobile Network
4G
Bluetooth
GPS
Volume
Brightness
Rotation
Task Manager
All Settings
Via My HTC Evo 3D On The Now Network From Sprint.
Rydah805 said:
I found quicksettings.xml and edited how I wanted, but I'm having issues recompiling. Could somebody hook me up?
Here's my SystemUI.apk:
http://db.tt/OzPTMQay
Here's a list of the order I wanted the quick settings in also: (removed WiFi Tether)
WiFi
Mobile Network
4G
Bluetooth
GPS
Volume
Brightness
Rotation
Task Manager
All Settings
Via My HTC Evo 3D On The Now Network From Sprint.
Click to expand...
Click to collapse
actually you might want to change the androidvisibility:none instead of just deleteing then
JoelZ9614 said:
actually you might want to change the androidvisibility:none instead of just deleteing then
Click to expand...
Click to collapse
If you have a sec could you do it, please. Turned the MAC off to put these crazy kids asleep. No worries if you can't. Thanks.
Via My HTC Evo 3D On The Now Network From Sprint.
Hello!
I reed your tutorial : http://forum.xda-developers.com/showthread.php?t=1357762
Please, can you help me?
I have samsung Galaxy S4 JB 4.3 and I need to remove some entry in settings. But I do not find in secSettings/smali your values...
Can you help me?
Thank You!

Thanks to Xperia-Ray - [GUIDE]- Enabling PureView UltraPixel on any phone

Thanks to Xperia-Ray
Hi all, I was trying to find some app that can do something like this for ages!
it is very simple trick- use our 8/12 to capture full size image- and then to compress it by 4 (50%-H,50%-W)
and then you get ultra pixel image , sharp and clean!
I use the vignette app and modded it to save 8MP pics at 1632x1224 pixels
look at the quality and the fine details:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Taken from: http://blog.gsmarena.com/htc-one-and-galaxy-s4s-cameras-go-head-to-head-after-software-intervention-check-out-the-samples
taken from gsmarena review :http://www.gsmarena.com/htc_one-review-912p8.php
for more comperrisson go to gsmarena compare tool and select "SCALED TO 3MP" and see how this mod can affect on GS4 vs HTC UltraPixel
http://www.gsmarena.com/piccmp.php3?idType=1&idPhone1=5313&idPhone2=5371&idPhone3=4369
what do u think?
IF you like the result- Please click THANKS
~~~~~~~AND now- The MOD Code for 8MP cameras (same trick for other MP - just locate your camera MP values and change them H/2*W/2)~~~~~~~
Use APK tool to decode the Vignette you have bought and go to :"smali\uk\co\neilandtheresa\Vignette"
You will fint ther the next file :Vignette.smali- open it.
now look for 8mp settings :
const-string v3, "XXXL"
invoke-virtual {v3, v2}, Ljava/lang/String;->equals(Ljava/lang/ObjectZ
move-result v3
if-eqz v3, :cond_5
const/16 v0, 0xcc0 --> 3264
const/16 v1, 0x990 --> 2448
Click to expand...
Click to collapse
change it to :
const-string v3, "XXXL"
invoke-virtual {v3, v2}, Ljava/lang/String;->equals(Ljava/lang/ObjectZ
move-result v3
if-eqz v3, :cond_5
const/16 v0, 0x660
const/16 v1, 0x4c8
Click to expand...
Click to collapse
now use apktool to build and use this app to sign it- enjoy!
and that it! now when you choose 8mp in the app it will capture 8mp deteil image and save it at 1632*1224 crystal clear HD pics
enjoy and post feedback!
This is compperrison pic from my Xperia Ray camera shooting at stock 2MP and modded 2MP:
Click to expand...
Click to collapse
S4 Camera seems better for me
How would i find 13mp???
i changed the lines u wrote but when i open vignette it stops responding. any solution to that?
How to use this!!!
Using Apk tool is really very confusing can u please give a step by step guide!!!
Just post an apk file & you'll get more thanks
Op you need to mod the guide to exact smali locations for samsung camera
Sent from my GT-I9300 using xda premium
Nemotatu said:
S4 Camera seems better for me
Click to expand...
Click to collapse
Yes...the S4 is actually WELL better. S3 is even better too.
rajarshi10 said:
Just post an apk file & you'll get more thanks
Click to expand...
Click to collapse
+1
does anyone know
when s2 shoots at 3mp for example
does use the whole sensor and resize down
or use 1:1 smaller part of the sensor?
is there any actual difference in quality shooting oem 3mp
to shooting 8mp and then resize to 3mp?
Is there a way of building a script zip to flash to make it easier for some ppl to get hd pics that way
Sent from my Galaxy S2 Running Neatrom with Blueginger Theme
rajarshi10 said:
Just post an apk file & you'll get more thanks
Click to expand...
Click to collapse
Aafi-rocks said:
+1
Click to expand...
Click to collapse
please don't do that! it's paid app- so you will make this thread a warez! this is why I asked the admin to delete my thread so no one else will try to share their app!. if you don't know how to use the mod it's better not to so you don't get in FC and etc errors .
the main reason I was looking for this mod was because the 8/13 MP phone sensor is nothing like real camera 8MP in terms of resolution (LPH) and quality (colors,fine details)
so its better to downscale our 8/13MP image to 25% to get sharper/fine detail better looking photo in our phone.
this way we will get rid of the artifact/tracks the some poor phones algorithm creates (SONY ****).
for example my Sony Ericsson RAY - if I shoot at stock 2MP pic- I will see the Unsharp Musk filter tracks on the edges in the pic and all the fine details gone because the poor image processing algorithm- this way when we take full 8MP pic it has more details and then we downscale it and then all the unwanted image processing algorithm are gone, every pixel contains more detail and color info and the image looks much better when we browse them in our phones.
For ur info i already moded this app and its working great jst cant uplode it coz its a paid app!!!
Thread is going to be closed.

Help needed: Increasing Parrot Bebop 2 drone max altitude (technical)

(Sorry, I just realized this should be in Q&A and not General)
Hi there fellow Android enthusiasts.
Recently I bought a Bebop 2 drone, which is quite fun to play around with. After a couple of flights I noticed that
the max altitude of this device is 150m (492.12ft). I dug through a couple of threads on the Parrot forum about increasing
past this limit and somewhere I've read that the limitation is build into the piloting app.
So I decompiled the app with an app called ShowJava, I searched through the generated sources for strings like "MAX_ALTITUDE" and "150.0".
After some digging I found the following interesting file.
com.parrot.freeflight3/java/com/parrot/freeflight/piloting/model/bebop/BebopPreset.java which has a static final:
Code:
MAX_ALTITUDE_STATE = DoubleBoundedState.createFromValue(ExponentialBackOffPolicy.DEFAULT_RANDOMIZATION_FACTOR, 30.0d, 150.0d);
DoubleBoundedState is a class found in com.parrot.freeflight3/java/com/parrot/freeflight/util/DoubleBoundedState.java and it looks like a wrapper class that has 3 fields of the type Double, mCurrentValue; mMaxBound; and mMinBound; (thank "God" for proper named of fields). The wrapper class has a "constructor" createFromValue which takes 3 arguments: double minBound, double currentValue, double maxBound. After digging through some more code I found out that DEFAULT_RANDOMIZATION_FACTOR has the value of 0.5, so this is the lowest altitude value that can be set in the UI and it can be found in /sources/com.parrot.freeflight3/java/com/google/api/client/http/ExponentialBackOffPolicy.java.
So.... we could conclude that the 150.0d is 100% certain the max altitude value, which is hardcoded into the piloting. As far as I can see it's only in that 1 file (BebopPreset.java).
This is the point where I could use some help, what I did after all that was decompile the apk file with apktools and looked at the smali file (I have no experience with smali files):
Code:
.line 14
const-wide v8, 0x4062c00000000000L # 150.0
move-wide v4, v12
move-wide v6, v2
invoke-static/range {v4 .. v9}, Lcom/parrot/freeflight/util/DoubleBoundedState;->createFromValue(DDD)Lcom/parrot/freeflight/util/DoubleBoundedState;
move-result-object v0
sput-object v0, Lcom/parrot/freeflight/piloting/model/bebop/BebopPreset;->MAX_ALTITUDE_STATE:Lcom/parrot/freeflight/util/DoubleBoundedState;
So I think const-wide v8, 0x4062c00000000000L # 150.0 is the line I would want to edit?
Luckely in that same settings screen in the app is a maximum distance which is 2km (2000.0d)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
and in the smali file that's the entry right underneath the one I want to edit. It looks like this.
Code:
.line 15
const-wide v4, 0x409f400000000000L # 2000.0
const-wide v6, 0x409f400000000000L # 2000.0
move-wide v2, v14
invoke-static/range {v2 .. v7}, Lcom/parrot/freeflight/util/DoubleBoundedState;->createFromValue(DDD)Lcom/parrot/freeflight/util/DoubleBoundedState;
move-result-object v0
sput-object v0, Lcom/parrot/freeflight/piloting/model/bebop/BebopPreset;->MAX_DISTANCE_STATE:Lcom/parrot/freeflight/util/DoubleBoundedState;
So I tried to change the value 0x4062c00000000000L for the value 0x409f400000000000L in the hope I would see 2000 in the UI instead of 150. But after rebuilding the apk and signing it I still see 150 as a max. Who can and wants to help me change this smali file in the correct manner?
Also, you might have noticed I have the java classes so you might ask "why don't you build them?", believe me, I tried. But android studio makes a mess out of the project and refuses to build it. Many thanks in advance for any input.
UPDATE:
Looks like overwriting that value was enough, the drone keeps the 150 somewhere as well, as soon as I connect with the drone the max altitude changes to 150 again so I guess I will have to patch the drone to.
I had seen many times people reply to this question vaguely with "You can override max altitude 150 of the Bebop 1 or 2 using Flight Plan", but it is never accompanied with instructions. The Waypoint Altitude Slider maxed at 150 meters. Well, tonight I randomly saw a video with some basic Flight Plan how-to info. The content creator showed that if you ling-press on an existing Waypoint in Flight Plan, you get a box that asks if you want to EDIT the waypoint or TRASH it. If you click the EDIT button for that waypoint, you get a numerical data entry box and you can manually enter the altitude for that waypoint. The video maker entered something like 90, but I'm more subversively-minded (in theory) and I also own a Bebop 2 and I have a paid license for Flight Plan. So I popped open Free Flight Pro, picked a random point in a flight plan, lonng-pressed on it, clicked the magical new EDIT button, and entered the number 500. Clicked the check mark button to confirm. Voila! The Waypoint I'd edited was now solid red, and showed 500m.
If I lived in a country other than the U.S.A. I would have already tested it to see if it worked. I can't legally test it, and I do like be in a populated area. If someone would let me know if this works, please, I would live to know!! TIA
Jerry911 said:
Looks like overwriting that value was enough, the drone keeps the 150 somewhere as well, as soon as I connect with the drone the max altitude changes to 150 again so I guess I will have to patch the drone to.
Click to expand...
Click to collapse
I bellieve the limit you found inside the app only applies when flying with the on-screen controls and without Skycontroller. In fact, you can fly BB2 with a SC2 while the FFpro device is unplugged, so any app-restriction would not apply either. Therefore, the control signals go straight from SC2 to BB2. The relevant altitude limit is most probably applied by the drone’s code. However, this does not yet explain how 3rd party apps like Auriga or Bebop Pro are able to bypass the limit...

Categories

Resources