yashsingh1/xdaforums huggingface dataset:
[General Accessories] nessuno1234:
Found this:

The Jawbone Mini Jambox is a Bluetooth wireless speaker, and it uses Bluetooth 4.0 – which uses barely any power when not transferring much data. Whether or not this has any huge impact on battery life (given that even with Bluetooth 4.0, transferring music is going to use a bit of power), stamina is decent. It lasts for up to 10 hours – less at maximum volume.

Read more at http://www.trustedreviews.com/jawbone-mini-jambox-review#gbgYvCHKkhWvQSMb.99

so bluetooth 4.0 use less power
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] WHib96:
Hi. I'm new here and just recently moved over from a galaxy S WiFi 4.0 to a used GS3. Back on my Galaxy s WiFi, the devs for the 4.0 and 5.0 versions were able to add a 20% undervolt to the LCD. This resulted in dramatically better battery results. I cannot help but think that the same would happen to the GS3 if the mod could be added to a kernel for this device. I can provide links if needed.

Does anyone here have any thoughts on this?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] mrrocketdog:
trickstermod , from the playstore will allow you to tweak a kernel quite a bit ; and more if you have root.

also there are some custom kernels built for the S3. you would just need to search the forums and read.

p.s. as you probably know its always wise to backup current settings to fall back on if things go crazy.

"all i can really do , is stay out of my own way and let the will of heaven be done"
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] WHib96:
Hi and thanks for your reply. I checked around and, unfortunately, no one seems to have this feature (LCD UV) added to their kernel. Do you know of any kernel devs that are still around here?

I'm honestly surprised that this has not been attempted more often. The screen is always the biggest battery hog, and having that undervolt even a little bit makes a major difference. That's why I'm hoping to bring it to the GS3 :)
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] mrrocketdog:
unfortunately i no longer own the s3 , so i dont keep up with whose doing what. quantum use to be my rom/kernel of choice but pwncakes moved on to the m8 and i believe his development has come to a standstill for quantum. i think chainfire built a mod for that purpose if i'm not mistaken. would have to check his signature to see. :what:

"all i can really do , is stay out of my own way and let the will of heaven be done"
[AT&T Samsung Galaxy Note 4] lordandroid:
View attachment 3343501

Sent from my Nexus 9
[Moto G 2014 LTE Android Development] Shawn5162:
HI FRIENDS!

This is a one-click tool I made to automatically restore your device back to stock firmware. This is for Windows only at the moment. This tool can restore your device to stock when the device is booted up, in a bootloop, in recovery, or in booloader mode (fastboot mode).

Introducing my new "Restore to Stock" tool for Windows! This is tool currently supports XT1072.

So how do u restore to stock?

***This will wipe all your data***

Step 1)

Download the "Moto G 2014 Restore to Android 5.0.2" zip from here:

XT1072:

1) Firmware 22.46.28 [5.0.2-EU] - LINK

Step 2)

Extract the .zip to a location on your PC/Laptop you can easily access

Step 3)

Plug your Moto G 2015 into your computer

***Make sure all the proper device drivers are installed***

Step 4)

In the extracted folder, find a file called "Auto Restore Script" and click it (It is a Windows batch file)

Step 5)

In less than 5 min. your Moto G 2015 will be restored to stock firmware

NOTE: I RECOMMEND YOU TRY THIS TOOL OUT ON YOUR MOTO G, SO JUST IN CASE IF YOU EVER ARE IN A PROBLEM (BOO-LOOP, CORRUPT PARTITION, ETC.) YOU KNOW HOW TO USE THIS TOOL AND U ARE ASSURED THIS TOOL WORKS! ;)​

If you like my work please donate by clicking "DONATE TO ME" on the left side of this post under my XDA username.

ALL DONATIONS ARE GREATLY APPRECIATED!
[Moto G 2014 LTE Android Development] doctorsax:
Oh my god, your lovely tool just saved my new Moto G from bricktown after an aborted attempt at rooting. Cannot thank you enough.

One note I want to add: in order to get this to work, I had to move the files into the same folder as my 'fastboot' and 'adb' installation, and also remove the 'm' from the start of each line. Otherwise, it worked perfectly.

Thank you thank you thank you!
[Moto G 2014 LTE Android Development] djisgod:
you really need to add the mfastboot.exe file to this as in its current state it is not working until you add the file yourself. either add the file or change the script to use normal fastboot
[Moto G 2014 LTE Android Development] Wikzo:
Just to confirm ... will this restore my Moto G back 100% to how it was before I started rooting (and I can then receive official updates)? There are so many different versions of Moto G 2nd generation, like 2014 vs. 2015, Europe vs. USA, etc. I just want to be sure.

I tried rooting my phone yesterday, and I might want to go back to default at some point (I only unlocked bootloader + installed TWRP + installed SuperSU).

See attached photo of my phone's stats.
[Moto G 2014 LTE Android Development] gnucoder:
The link is broken :(
[Moto G 2014 LTE Android Development] vegdroid:
I have the file. I try to share it this weekend.

EDIT:

Here you are :)

https://dl.dropboxusercontent.com/u...1072] Restore to Android 5.0.2 (22.46.28).zip
[Moto G 2014 LTE Android Development] sgspluss:
Anyone have this already and can reupload it?
[Moto G 2014 LTE Android Development] RandyRhoads1821:
doesn't work on my XT1072 :(

with my old phone, the galaxy nexus, it will take 1 click and 5 minutes time to restore to stock firmware with a simple toolkit, now i look like a freaking noob.
[Moto G 2014 LTE Android Development] MiSSigNNo:
Same here :)
[Moto G 2014 LTE Android Development] mendelssohn:
if it doesn't work try this:

fastboot flash partition gpt.bin

fastboot flash motoboot motoboot.img

fastboot flash logo logo.bin

fastboot flash boot boot.img

fastboot flash recovery recovery.img

fastboot flash system system.img_sparsechunk.0

fastboot flash system system.img_sparsechunk.1

fastboot flash system system.img_sparsechunk.2

fastboot flash system system.img_sparsechunk.3

fastboot flash system system.img_sparsechunk.4

fastboot flash system system.img_sparsechunk.5

fastboot flash modem NON-HLOS.bin

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg fsg.mbn

fastboot erase cache

fastboot erase userdata

fastboot reboot
[Moto G 2014 LTE Android Development] Radra:
Link doesn't work :(

EDIT: NVM, just saw the other post
[Moto G 2014 LTE Android Development] pepitosegrilla:
I tried the whole process, but with "mfastbond" instead of "fastbond" ;-P, and it worked nicely, thanks a lot.

Piece of advice, DON'T SKIP THE ERASE USERDATA LINE!!, I tried to save me the time of setting up everyting again, and I had a memorable UPS! moment, when the boot process stopped into a black screen... thank god I could reboot into bootloader mode and start again :_o
[Moto G 2014 LTE Android Development] erprando:
switch to br retail from EU rom

after i install this EU rom, can i install a stock retail from brazil? as i am in Brazil, not EU. myne is a xt1078, updated to 6.0 but it is stuck in fastboot mode, with locked boot. tryed few comands no use,
[Moto G 2014 LTE Android Development] erprando:
did not work. mine is a xt1079. guess the same as the 1072. tried manual commands but still no use. any other help?
[Moto G 2014 LTE Android Development] lucifermorn:
help

still dont work
[Moto G 2014 LTE Android Development] dr.nic:
Hey mate don't know if you fixed the problem but you can find the latest image for you phone xt1072 BR

MM XT1078_THEA_RETBR_DS_6.0_MPB24.65-34_cid12_subsidy-DEFAULT_CFC.xml.zip

or latest 5.0.2 whit stagefright fix

LL XT1078_THEA_RETBR_DS_5.0.2_LXB22.99-24.12_cid12_subsidy-DEFAULT_CFC.xml.zip

To flash this use the minimal fastboot folder in my sign and the correct bat script LP/MM, just put everything in the same folder and launch the bat

Grab the latest stock image for your phone from the repo linked in my sign, read the first answer in this post reply on how to flash it.

-------------------------------------------------------------------------------------------------------

Most of the times if you didn't flashed the wrong files you can recover from a bootloop by wiping data/cache (factory reset) whit bootloader or fastboot.

As [MENTION=7389356]lucifermorn[/MENTION] noted the original updater.bat file included by th OP wasn't complete, motoboot.img missing if i'm correct, and wasn't using mfastbootv2.

You can find bat scripts for flashing stock roms in my sign, latest minimal fastboot+mfastbootv2, and a link to the moto g stock roms repo on filefactory.

PS

[MENTION=3150242]vegdroid[/MENTION] that image is old too, latest 5.0.2 whit stagefright fix is 22.99-24.12 if i'm correct.

Check the moto g stock images repo linked in my sign.

EDIT

Ouch [MENTION=5628641]erprando[/MENTION] just realized you wasn't asking, but stating that you have flashed an xt1072 rom on an xt1078, that a very bad thing, if my bat script isn't working you know why.
[Moto G 2014 LTE Android Development] lucifermorn:
help

IVE TRIED EVERYTHING, CAN SOMEONE PLEASE GO IN DETAILS ON THE STEPS TO ENSURE IT WORKS, IM DESPERATE:crying:
[Moto G 2014 LTE Android Development] ArchieGodfrey:
This works fine but only if you add the mfastboot files. Moto G 2nd XT1072 Tesco. Saved me from a previous Marshmallow custom rom! Many thanks.
[Moto G 2014 LTE Android Development] lucifermorn:
help

how do i get tge moto g 2nd XT1072 Tesco?

---------- Post added at 06:56 PM ---------- Previous post was at 06:06 PM ----------

Never mind i fixed it xd i dont know how but thank god its fixed
[Moto G 2014 LTE Android Development] dr.nic:
Guys this bat script or how some call it "WINDOWS TOOL" (make me laugh), is not OK from a loooooong time, check by yourself, USE AT YOUR OWN RISK.

Bootloader is left behind......

bootloader.img ??? anyone noticed this file in the zip or any lollipop/mm stock rom?? is this from gen1 kikat roms ?
[Moto G 2014 LTE Android Development] ArchieGodfrey:
I just opened cmd and followed the script checking it against the files in the folder after the bat file failed. I put mfastboot into the folder too. I've just flashed my XT1072 GB 5.0.1. So far looks and works awesomely! Hung for about 10 mins before it booted into Marshmallow. .
[Moto G 2014 LTE Android Development] dr.nic:
Mine is just a personal advice., seen a lot of people whit phone bricked for a reason or another.....

You can check by yourself the script is not 100% correct, you can also check flashfile.xml included in every leaked stock rom zip to check the correct filelist and commands

[MENTION=4872137]mendelssohn[/MENTION] script looks ok but it use fastboot instead of mfastboot, hope you used that.
[Moto G 2014 LTE Android Development] ArchieGodfrey:
Rooting problem!

If I root with Kingroot I loose all connectivity. WIFI - MOBILE network - everything! This happened before. Anyone experienced the same? Back to 5.0.1 or live without root!
[Moto G 2014 LTE Android Development] SilverLight:
Help link down..... :(
[Moto G 2014 LTE Android Development] Speedy72:
not working on my xt1072

Tried the script. Unfortunately does not work.

This is the result:

Restore to Stock Android 5.0.2 for Motorola Moto G 2015 (XT1072)

error: device not found --This is caused by ADB not working in fastboot mode

target reported max download size of 536870912 bytes

sending 'partition' (32 KB)...

OKAY [ 0.029s]

writing 'partition'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.307s

error: cannot load 'bootloader.img'

target reported max download size of 536870912 bytes

sending 'logo' (697 KB)...

OKAY [ 0.079s]

writing 'logo'...

OKAY [ 0.124s]

finished. total time: 0.208s

target reported max download size of 536870912 bytes

sending 'boot' (10200 KB)...

OKAY [ 0.388s]

writing 'boot'...

OKAY [ 0.568s]

finished. total time: 0.960s

target reported max download size of 536870912 bytes

sending 'recovery' (10280 KB)...

OKAY [ 0.409s]

writing 'recovery'...

OKAY [ 0.551s]

finished. total time: 0.963s

target reported max download size of 536870912 bytes

sending 'system' (261758 KB)...

OKAY [ 8.238s]

writing 'system'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 8.283s

target reported max download size of 536870912 bytes

sending 'system' (253000 KB)...

OKAY [ 7.965s]

writing 'system'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 7.995s

target reported max download size of 536870912 bytes

sending 'system' (255972 KB)...

OKAY [ 8.056s]

writing 'system'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 8.196s

target reported max download size of 536870912 bytes

sending 'system' (256969 KB)...

OKAY [ 8.087s]

writing 'system'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 8.150s

target reported max download size of 536870912 bytes

sending 'system' (259819 KB)...

OKAY [ 8.175s]

writing 'system'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 8.274s

target reported max download size of 536870912 bytes

sending 'system' (74868 KB)...

OKAY [ 2.401s]

writing 'system'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 2.454s

target reported max download size of 536870912 bytes

sending 'modem' (59916 KB)...

OKAY [ 1.939s]

writing 'modem'...

OKAY [ 2.959s]

finished. total time: 4.901s

erasing 'modemst1'...

OKAY [ 0.070s]

finished. total time: 0.072s

erasing 'modemst2'...

OKAY [ 0.072s]

finished. total time: 0.074s

< waiting for device >

target reported max download size of 536870912 bytes

sending 'fsg' (319 KB)...

OKAY [ 0.107s]

writing 'fsg'...

OKAY [ 0.115s]

finished. total time: 0.225s

erasing 'cache'...

OKAY [ 0.119s]

finished. total time: 0.120s

erasing 'userdata'...

OKAY [ 0.293s]

finished. total time: 0.295s

rebooting...

finished. total time: 0.002s

Press any key to exitΓÇª

So still nothing :crying:

Any suggestions??
[Moto G 2014 LTE Android Development] Hita98:
Use that

fastboot flash partition gpt.bin

fastboot flash motoboot motoboot.img

fastboot flash logo logo.bin

fastboot flash boot boot.img

fastboot flash recovery recovery.img

fastboot flash system system.img_sparsechunk.0

fastboot flash system system.img_sparsechunk.1

fastboot flash system system.img_sparsechunk.2

fastboot flash system system.img_sparsechunk.3

fastboot flash system system.img_sparsechunk.4

fastboot flash system system.img_sparsechunk.5

fastboot flash modem NON-HLOS.bin

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg fsg.mbn

fastboot erase cache

fastboot erase userdata

fastboot reboot
[Moto G 2014 LTE Android Development] Speedy72:
Also does not work. Same errors.

First step alredy goed wrong:

fastboot flash partition gpt.bin

(bootloader) has-slot:partition: not found

target reported max download size of 536870912 bytes

sending 'partition' (32 KB)...

OKAY [ 0.038s]

writing 'partition'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.339s

On my phone it says:

version downgraded for primay_gpt

I'm afraid it's ruined.
[Moto G 2014 LTE Android Development] Pommesmonster:
Same Problem here. What my predecessor hasnt mentioned: the device shows "Image too large" when system.img_sparsechunk is supposed to be flashed. In addition fastboot flash partition gpt.bin doesnt work bc downgrade is not possible. Guess everything would be fine if we get gpt.bin flashed. Any ideas?
[Moto G 2014 LTE Android Development] Aquib1999:
plz update link
[Moto G 2014 LTE Android Development] Rockman501:
Will this work on a locked bootloader?
[Moto G 2014 LTE Android Development] quico14:
Could somebody reupload it? I am stucked on the motorola logo. Thanks.
[Moto G 2014 LTE Android Development] quico14:
I am also getting the "(bootloader) Preflash validation failed". How did you resolve it?

Thanks.
[Moto G 2014 LTE Android Development] kapciu75:
Good morning,

Could somebody re-upload all the files requested for downgrading XT1072 (XT1072: Firmware 22.46.28 [5.0.2-EU]) from Android 6.0 to 5.02. The links are dead. I need Polish Stock ROM. I would appreciate your help in this matter.

Regards

kapciu75
[Moto G 2014 LTE Android Development] nacnudnoob:
Help

ive got a moto g xt1072 on 6.0 with locked bootloader im trying to find stock firmware for this device which is proving to be a misson im a noob who soft bricked using kingroot plz help i need 6.0 firmware plz
[G 2014 Android Development] sky0165:
Right now i'm doing some research to make some improvements on Camera and Audio to our device.

Things i've done so far:

[LIST]
[*][COLOR="Red"]V2[/COLOR]
[*]Enabled AGC

[*][COLOR="Red"]V1[/COLOR]
[*]Doubled to 320kbps with stereo audio encoding (Recorded videos, whatsapp and probably any other app that record sound will get crystal clear audios, caution with your data usage. Doubled encoding means doubled size)
[*]Doubled to 20 Mbit/sec video encoding 720p
[*]Bumped to 99% JPEG
[/LIST]

To do list:

Force 1080p recording (it has no affect playing with media_profiles.xml yet)

AGC - Automatic Gain Control (if you record something very loud like a concert, the sound will get very ****ed up)

What I know:

Motorola has disabled AGC for some reason I don't know. If you look at audio_effects.conf you'll find some Dolby code and AGC, AEC and NS as commentaries.

AGC, AEC and NS relies on pre_processing and libaudiopreprocessing.so, which wasn't declared on the file in first place.

The sensor has 1080p capabilities (pipeline and everything), since we share the same camera module as Nexus 5. I believe we can fine tune some stuff with the camera apk. For now I want to try this first to later research with libs/drivers.

I've managed to decompress the APK file but i have no idea how to decompile DEX, ARSC and the XML files (are XML compressed/obfuscated? It wasn't readable).

Can someone enlight me over?

Flash at your own risk.

Tested on CM12.1

Stock not tested yet
[G 2014 Android Development] sky0165:
The audio graphs i've analyzed with and witouth the mod seems that AGC is on(maybe with a very moderated preset). Can someone try to record a video on a very loudly place?
[G 2014 Android Development] DiamondBond:
With stock 5.0.2 camera and libs or cm12.1 camera? :) (I'm on my way to an edm rave party lol jk)

Sent from my Moto G 2014
[G 2014 Android Development] uiuiuiui:
Great work!

Can someone post some pictures/videos for comparison vs stock?

RAW support for the camera would be amazing as well.
[G 2014 Android Development] sky0165:
I believe it works from 4.4 KK to 5.0.2 and CM 12.1.

I'll post something to compare with later.

If someone help me to understand and manipulate DEX ARSC and those weird XML i would be very happy :D
[G 2014 Android Development] Miiick3y:
i think it's not possible, but maybe add camera2 api is possible?
[G 2014 Android Development] tapan15in:
Please mention if this mod is for stock rom or it will work on any rom...
[G 2014 Android Development] browcantor:
I noticed an improvement in the quality of camera friend
[G 2014 Android Development] Deleted member 4251708:
Hi all, can confirm this works on stock 5.0.2, no bootloops, audio quality REALLY impressive, as for AGC, I tried screaming into the mic a couple times and there was no audio distortion, I still need to check out the increased video bitrate, but it looks really sweet, thank you, keep up the awesome work, really looking forward to 1080p video working on this device :)
[G 2014 Android Development] emistery:
Anyone tried this on a CM rom?
[G 2014 Android Development] TheLS:
Here remains the same resolution, I am in rom AICP
[G 2014 Android Development] iamcray:
OP says that it's been tested on CM 12.1 and users have reported it also working on stock moto.
[G 2014 Android Development] sky0165:
Resolution still the same (8MP). What was changed was the post-processing compression to 1%.
[G 2014 Android Development] wifestealer:
How can you increase camera's resolution more than hardware specs?
[G 2014 Android Development] uiuiuiui:
That's not possble for photos, but the video resolution could theoretically be increased from 720p (aprox. 0.9 Megapixels) to 1080p (2MP).

Is there a way to enable recording with 60 frames per second? I would also like to see some comparison pictures/videos if possible. :)
[G 2014 Android Development] sky0165:
Hmmm i don't think so, not without messing with the .so files.

In low light conditions out device records at 15 FPS to increase sensor exposure to compensate the light. In sunny conditions it records at 30.

I've been trying to decompile the lastest moto camera but it seems i can't find some portion of the code. I'm still trying to understand how those stuff works and how Android manage and rely in things.

I'll reserch some more about decompiling/recompiling APK and .so files.
[G 2014 Android Development] sky0165:
Just a quick update:

Obviously, it doesn't work. My guess is: Sensor DOES support and app detects it, but libs don't.

Here's a logcat while trying to record something. "Cannot start vídeo capture. Another app may be using the mic" is the error.

https://www.dropbox.com/s/t7ed8cuzr6bpqk0/snp_log.txt?dl=0

Well, this is far beyond my skills.
[G 2014 Android Development] reeeju:
[MENTION=4538403]sky0165[/MENTION]

Grt work dude...i just flashed.....drastic change in audio....

Rom- euphoria

---------- Post added at 01:02 PM ---------- Previous post was at 12:49 PM ----------

One more thing how to uninstall this zip if i dont want it....pls provide a uninstaller zip flashable

@op
[G 2014 Android Development] aditya.upadhyaya:
Hi OP, is it possible to integrate the libs and drivers from the Snapdragon 410 MSM8916? If yes, its possible to port it from the Moto G3...
[G 2014 Android Development] germanmena:
I flashed this MOD on Candy Rom and my themes stopped working, not sure why, now I can't install any theme; is there a way to revert the changes? Thanks!
[G 2014 Android Development] wifestealer:
Unfortunately you've to re-flash rom to use cm theme engine or if you wanna use both along with this camera then you've to flash this mod right after flashing rom.
[G 2014 Android Development] sky0165:
This mod has nothing to do with Theme Engine. Your problem is related to something else.
[G 2014 Android Development] nikosddesign:
dont work for me ...use cm12.1 latest..

why ?where is the problem?
[G 2014 Android Development] josfr4ncisco:
Does it work with Moto Camera on CM12.1? Or just with the stock CM camera?
[G 2014 Android Development] nikosddesign:
with both applications.

The Motorola app implementation shows that we can do to record 1080p.

But when I do start recording message shows the camera used by another application.

soorry my bad english!
[G 2014 Android Development] QuillzToxic:
Its not possible to use the .so files from the nexus 5?
[G 2014 Android Development] Danilo-Sanchez:
[MENTION=4538403]sky0165[/MENTION] are you doing some more updates to it?
[G 2014 Android Development] Dan_Jacques:
Works with CM Camera. But, OpenCamera only detect 720p.

Great work!
[G 2014 Android Development] Danilo-Sanchez:
Even if Open Camera detects more than 720p it won't work.
[G 2014 Android Development] Danilo-Sanchez:
[MENTION=4538403]sky0165[/MENTION] Version 2 was uploaded in June. Now we are in September and there was a lot of improvements in CM12.1. Will this patch improve CM12.1 audio and camera more than CM's stock config? If I want to revert to CM's config files all I have to do is flash CM again?
[G 2014 Android Development] sky0165:
As far as I now CM uses most of stock camera and audio profile values so yes, it will improve. Flash CM again and it will override this mod.
[G 2014 Android Development] Danilo-Sanchez:
Ok. Thank you.
[G 2014 Android Development] Danilo-Sanchez:
Do you know why in CM I don't have the same audio quality (when recording videos) as I have on stock? Even if I install this zip file I don't get the same audio quality.