yashsingh1/xdaforums huggingface dataset:
[HTC One S] derkleinebroicher:
It does work with solid explorer as well. The point is, there is no option, to set root permissions manually in solid explorer. So the trick is to create a situation, where solid explorer will ask for root access. For example: long press any folder in your system root, tap properties, tap change (attributes) and now press OK, without changing anything. You will be asked for root access.

Now everything should be fine! :o
[HTC One S] waver1967:
got a problem.

parameter file is empty.

using unofficial cm12 on htc one s with icecode kernel
[HTC One S] waver1967:
problem solved:D
[HTC One S] jakubmi9:
For solid explorer, just try to open /data and it will ask for root permissions. I do it every time I flash my phone.
[HTC One S] oll0:
Thanks a lot man! I wasn't aware of the skewed minfree files. Was setting them in Trickster and wondering why the apps keep shutting down on me when multitasking. Great work
[HTC One S] Rapier:
They will still close even so...just not so obvious
[HTC One S] oll0:
Uh yes obviously. However they were actually closing the instant i opened another app. Couldnt even keep two apps open at the same time, that was pretty bad.
[HTC One S] Rapier:
Yes, I know what you mean. Was the same for me. Having better minfree settings that stick after a reboot helped but didn't solved the issue completely. But at least now phone is usable. I put my hopes in that Google patch they'll release with 5.0.3

Sent from nowhere over the air...
[HTC One S] derkleinebroicher:
deleted
[HTC One S] Sylvain_44:
Thanks for this thread, I changed the permission with "chmod 666" using adb shell, but after a reboot, the files were back to write-only mode, is it normal ? How do you make it permanent ?
[HTC One S] Rapier:
If it's reverting, I guess the only way would be through an script that runs at boot time. But it's strange, the permissions should stick once set...
[HTC One S] derkleinebroicher:
I used a file explorer with root permissions like root explorer or ES file explorer. My permissions are actually rw-rw-rw, both for adj and minfree file. I guess, this is 666? And they stick after a reboot. But honestly I am not quite sure, if I changed something else. IIRC, I might have changed the permissions for system/etc/init.d/90userinit to rwxr-xr-x. Maybe you want to check this, too.
[HTC One S] jakubmi9:
Well, they don't stick because init.rc sets them to chmod 0220 on boot. That makes me wonder if maybe it was supposed to be like this? I wanted to change it but I don't want to screw anything up. There is a dedicated section for low memory killer in init.rc and only things there are chmod 0220 for those two files and chown for them - so basically the things that we are fixing in this thread. A bug or a feature?
[HTC One S] derkleinebroicher:
Thanks for this hint! Indeed, this might be the other thing, that I had changed. In CM11 roms, the described permissions in init.rc are 664 - both for adj and minfree file. I am not quite sure, if this helps, but it's worth an attempt. You can change the permissions in init.rc to 644, reboot and see, if the permissions for adj and minfree are sticky now. I just did this ,and everything is fine -so you can try without risk, I guess. But I must say, I hadn't the problem before, that the permissions for adj and minfree were reset after reboot. Could be related to the changes in init.rc, but I am not sure.
[HTC One S] jakubmi9:
A weird thing: I made a backup and tried anyway yesterday but after a reboot my init.rc restores itself to normal. I tried another time: Modified the values and saved. After reopening it's still there and it stays there but only until I reboot the phone. After reboot the permissions are not set correctly and init.rc restores itself to original state. Is there something I do not know about modifying init.rc? Because that is the first time I try to do something with it.
[HTC One S] derkleinebroicher:
Honestly this has been more or less a try and error thing with some help from google. I made different changes and I can say, my permissions for minfrees are not reset. But you're right, the init. rc changes won't survive a reboot.

Two things, you could tell me please: is your init.rc file in root directory or in /data or in both of them? And which permissions do you have for system/etc/init.d/90userinit?
[HTC One S] jakubmi9:
In my case init.rc is only present in root of the file system, and permissions for 90userinit are -rw-r--r--
[HTC One S] derkleinebroicher:
ok, I just try to figure out, what is different between your settings and mine. I have set permissions for 90userinit to rwxr-xr-x. you could try this. And just to be sure: the permissions for the minfree file stay after reboot, just the values are reset? How do you change these values. Directly in the file or with an app?
[HTC One S] jakubmi9:
For me reboot sets values to stock and init.rc sets the permissions back to stock on every boot, and I can't figure out how to stop it from doing so. I use solid explorer to set the permissions every boot then I use trickster for the values, also every time I boot up. I wanted to automate the process by using init.rc but it also resets every boot so... I just try to avoid rebooting the phone at all.
[HTC One S] derkleinebroicher:
I just flashed latest cm11 nightly - and yes, permissions for 90userinit are set to rwxr-xr-x there. I don't understand completely the contexts between all this stuff. So I would suggest, you try this and see, if it makes anything better. Otherwise I am afraid but I have actually no other idea, how to help you. For some reason some people have this problem and others do not.[emoji17]
[G 2014 Android Development] luca020400:
Moto G 2014 ToolKit by luca020400

This tool include :

* Universal Moto G 2014 Support

* Unlock / Relock the bootloader

* Twrp and Philz Touch Recovery

* Automatic Root Script

* Automatic BusyBox Installer

* Remove/Restore Unlocked Bootloader Warning

* Reboot to Bootloader/Recovery/Phone

Disclaimer

/*
* Your warranty is now void. Knox 0x1.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed.
* Please do some research if you have any concerns about this tool !
* YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you. Hard. A lot.
*/

How to use :

Install Drivers :

Windows : https://www.motorola.com/getmdmwin

Mac OS X : https://www.motorola.com/getmdmmac

Linux : Already Included

Linux and Mac OS X:

Double Click on toolkit.sh

Windows :

Double Click on toolkit.bat

Download

https://github.com/luca020400/Moto-G-2014-Tool/archive/stable.zip

Official WebSite :

http://luca020400.github.io/Moto-G-2014-ToolKit/​

XDA:DevDB Information

Moto G 2014 ToolKit, Tool/Utility for the Moto G 2014

Contributors

luca020400

Source Code: http://luca020400.github.io/Moto-G-2014-ToolKit/

Version Information

Status: Stable

Current Stable Version: 1.2

Stable Release Date: 2014-12-21

Created 2014-12-21

Last Updated 2014-12-21
[G 2014 Android Development] luca020400:
Changelog :

V2.1 18/02/15 : Add Android Udev Rules Support for Linux ( Don't know if needed for Mac OS X )

V2.0 18/02/15 : Antinoob Version . Single Script for everything

V1.3 14/02/15 : TWRP 2.8.5.0 & SuperSu 2.46 & Open CMD Here ( windows only )

V1.2 21/12/14 : Fix bootloaders relock ( You need to flash the stock image . Guide into tool )

V1.1 21/12/14 : Fix root.sh and root.bat

V1.0 21/12/14 : First Public Release

Suggestions :

http://xdaforums.com/devdb/project/?id=7286#featureRequests
[G 2014 Android Development] cociuba:
great job.

also please specify for which model can be used (or if it applies to all)
[G 2014 Android Development] luca020400:
Universal :D
[G 2014 Android Development] Meowdib:
C:\Users\R\MotoG\Moto-G-2014-ToolKit-stable>bootloader.bat relock

"You have to type bootloader.bat unlock or relock"

Double clicking it doesn't work. Anyone get this to lock the bootloader?
[G 2014 Android Development] luca020400:
Sorry a typo I fixed it

Update online
[G 2014 Android Development] Meowdib:
That fixed it under cmd. Ran the relock:

C:\Users\R\Downloads\Moto-G-2014-ToolKit-stable>bootloader.bat relock

...

(bootloader) FAIL: Please run fastboot oem lock begin first!

(bootloader) sst lock failure!

OKAY [ 0.010s]

finished. total time: 0.015s

"Your bootloader is now locked"

Did not lock phone, so I ran fastboot oem lock begin first

Same

phone says failed to validate system image in purple
[G 2014 Android Development] luca020400:
So you have to flash stock image

fastboot oem lock begin

(flash stock image)

fastboot oem lock

I updated the tool

Test version : https://github.com/luca020400/Moto-G-2014-ToolKit/archive/dev.zip
[G 2014 Android Development] Meowdib:
So you're script does not include this?
[G 2014 Android Development] luca020400:
No

I can include a script that download and flash the stock image but there are many devices so is pretty impossible download the correct one

I'll look into
[G 2014 Android Development] Meowdib:
That would be cool. I have the stock image 11.17, thing is, I have tried all methods I have found on here to relock the bootloader but it won't relock.
[G 2014 Android Development] luca020400:
So just follow this guide

fastboot oem lock begin

(flash stock image)

fastboot oem lock
[G 2014 Android Development] drinkypoo:
recovery fails on my phone

I have a global GSM phone with stock software and I can't flash recovery

# ./twrp.sh boot

downloading 'boot.img'...

OKAY [ 0.453s]

booting...

FAILED (remote failure)

finished. total time: 0.456s

# ./philz.sh boot

downloading 'boot.img'...

OKAY [ 0.505s]

booting...

FAILED (remote failure)

finished. total time: 0.507s

phone says "Mismatched partition size (boot)" among other things
[G 2014 Android Development] luca020400:
Have you unlocked the bootloader ?
[G 2014 Android Development] drinkypoo:
yeah I just realized what the story is, I didn't realize it had to be done in sequence. much egg on face, all works perfectly, etc.
[G 2014 Android Development] luca020400:
No , unlock bootloader is needed for every script ( you have to run it once )

Every script can be executed individually after the unlock
[G 2014 Android Development] andreluigo:
This unlock bootloader method do it without motorola code?

Relocking bootloader bring back warranty?
[G 2014 Android Development] luca020400:
No you need the motorola code ( ther's a guide inside he script )

I don't know , but probably no
[G 2014 Android Development] drinkypoo:
Illegal for Moto to void your warranty

The Magnuson-Moss act makes it illegal for Motorola to void your warranty for using compatible software.

I wouldn't expect them to believe you if you call for help with your phone, but I would expect a class action lawsuit against them on this basis to succeed...

Anyway, I didn't mean you have to issue all the commands, just that they seem to be in order for a rerason
[G 2014 Android Development] andreluigo:
So, there's no meaning relock bootloader! o_O

Enviado do meu XT1069
[G 2014 Android Development] luca020400:
For unlock the device I use their site/server

You have only to insert the code et volia

Anyway I added a Disclaimer

No there isn't
[G 2014 Android Development] mac1202:
Hi, first thanks for your script. I successfully unlock my bootloader using it. But i got a problem to root it.

here's the terminal ouput :

./root.sh
cannot load 'img/twrp.img': No such file or directory

in the img directory i got 2 files

openrecovery-twrp-2.8.3.0-titan.img and philz.img

Do I need to rename openrecovery-twrp-2.8.3.0-titan.img to twrp.img or i need to download another file.

Thanks for you're help.
[G 2014 Android Development] luca020400:
Yes ;)

I'll update the tool with a few changes
[G 2014 Android Development] bitan92:
Download link request

Please check & give a working download link....
[G 2014 Android Development] srprashant2705:
Hi,

I am noob here. Is there any guide to do this?

Am I supposed to connec the phone in bootloader mode and open command window where I download the toolkit files and type

bootloader.bat unlock/relock

root.bat

twrp.bat boot/flash

philz.bat boot/flash

logo.bat nowarning/warning
[G 2014 Android Development] luca020400:
You have to choice for example unlock or relock boot or flash etc

They are working
[G 2014 Android Development] edgejah:
Hey bud, I've must be missing something, but none of those scripts run properly on windows. It looks like they're saved in *nix so there are no carriage returns in windows. I get heaps of errors.

I'm just in the process of sorting the lines out, but thought you'd be interested to know :)

~edgejah
[G 2014 Android Development] luca020400:
I rested them and are working correctly
[G 2014 Android Development] edgejah:
Weirdness. I couldn't get the batch scripts to run properly no matter how hard I tried - the commands inside were pretty self explanatory though, so I was able to unlock and install TWRP.

Thanks ;)
[G 2014 Android Development] tsirhcitna:
To those having problem: you don't have to click on the .bat file to launch it, you have to right click on the root folder, choose open cmd here and type twrp.bat (for example) with the command you want to launch, lik "twrp.bat boot" to boot into recovery (don't write the " "), and so on, read the OP to know what commands you have to write
[G 2014 Android Development] luca020400:
Yes I missed to add this info into OP

Ty ;)
[G 2014 Android Development] phillipssat:
But no word in first post, that the script contains a guide ?

After "bootloader.bat unlock"

cmd runs 2-3 sides of infos an says error wrong code ??
[G 2014 Android Development] phillipssat:
Update to TWRP 2.8.4.0 possible ??
[G 2014 Android Development] luca020400:
Done and added busybox installer too
[G 2014 Android Development] davcri91:
Grazie Luca ! Amazing tool, I'm just trying it, I love the fact that your software is open-source and supports Linux !
[G 2014 Android Development] ebisco:
Problem with recovery

I tried to install the recovery after unblocked bootloader and rooted device..

it just say "mismatched partition" and the recovery doesn't load at all unless i use the TWRP APP and i do "reboot into recovery.." solutions?
[G 2014 Android Development] kidseb12:
Hello,

I just tried the UNLOCKING bootloader without success.

Here is my error message :

c:\g2>bootloader.bat unlock
"Go to http://bit.ly/UpVtsa and read the risks, click next"; read line
"Are you sure ?? Do you know the risks ?? Are you willing to do this ??"; read l
ine
...
(bootloader) 3A35230546149212#00000000000000
(bootloader) 00000000585431303638000000#5079
(bootloader) F42696F1D453CAFE33FD93274BC68C4
(bootloader) C5E99#AA665D060F000000000000000
(bootloader) 0000000
OKAY [ 0.218s]
finished. total time: 0.218s
"Enter this code as shown in the example:"
"Enter code on the website and press enter"; read line
"Enter the key emailed to you here:"
'read' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
...
(bootloader) Unlock code = $code

(bootloader) Password incorrect!
(bootloader) OEM unlock failure!
FAILED (remote failure)
finished. total time: 0.359s
usage: fastboot [ <option> ] <command>

commands:
update <filename> reflash device from update.zip
flashall flash boot, system, vendor and if fou
nd,
recovery
flash <partition> [ <filename> ] write a file to a flash partition
erase <partition> erase a flash partition
format[:[<fs type>][:[<size>]] <partition> format a flash partition.
Can override the fs type and/or
size the bootloader reports.
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> [ <second> ] ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> [ <second> ] ] create bootimage and
flash it
devices list all connected devices
continue continue with autoboot
reboot reboot device normally
reboot-bootloader reboot device into bootloader
help show this help message

options:
-w erase userdata and cache (and format
if supported by partition type)
-u do not first erase partition before
formatting
-s <specific device> specify device serial number
or path to device port
-l with "devices", lists device paths
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
-b <base_addr> specify a custom kernel base address.

default: 0x10000000
-n <page size> specify the nand page size.
default: 2048
-S <size>[K|M|G] automatically sparse files greater
than size. 0 to disable
"Now you have to flash the stock image"
"This is an example http://xdaforums.com/moto-g-2014/general/restore-
to-stock-t2873657"
"When done press Enter"
...
(bootloader) Device is already locked!

OKAY [ 0.016s]
finished. total time: 0.016s
"Your bootloader is now locked"
[G 2014 Android Development] phillipssat:
Same happend to me ?

The how to on first post is not good and not complete.

You have to read and modify the script !

You also need your own phone-key
[G 2014 Android Development] kidseb12:
I change what and where?
[G 2014 Android Development] luca020400:
Sorry

I don't use windows so I haven't tested some scripts :(

Of course you need your key
[G 2014 Android Development] kidseb12:
Here are my key :

3A35230546149212#0000000000000000000000585431303638000000#5079F42696F1D453CAFE33FD93274BC68C4C5E99#AA665D060F0000000000000000000000

Can you give me the change of script?

thank you
[G 2014 Android Development] AcSilver:
Amazing! I love stuff like this. Thanks!
[G 2014 Android Development] davcri91:
Luca you should update the first post with more information on how to use your tool :)

I succesfully unclocked and rooted my phone looking at your scripts and using your binaries. The script doesn't work right out of the box on Linux beacause the fastboot command has to be run with root priviledges .

Moreover you could put the phone in fastboot mode from within the script, using the adb reboot-bootloader command :)

I want to report this issues, do you prefer on Github or here ?

PS: I use Linux Mint too :D
[G 2014 Android Development] luca020400:
Are you sure ?

I use fastbot every days without root execution :confused:

Anyway I'm going to add a script for reboot-bootloader
[G 2014 Android Development] davcri91:
Yes I tested on Linux Mint 17.1 (64bit). fastboot hangs because it can't found any connected device. Maybe you modified the UDEV rules and do not need root priviledges to use fastboot :confused:

The issue is described well on the cyanogenmod wiki:

Linux/OSX

Temporary solution: Run fastboot as root or with sudo. Better, more permanent solution: create a /etc/udev/rules.d/51-android.rules file as documented in UDEV.​
[G 2014 Android Development] luca020400:
Yea udev

I missed this tep

Thanks
[G 2014 Android Development] edgejah:
Well, at least I'm not going crazy - I had the same problem.

I ended up grabbing the commands direct from the scripts and it worked just fine. So basically open a command prompt in the directory you extracted into and then something like:

Command to unlock:

bin\fastboot.exe oem unlock <unlock code>

Command to lock again (although havent had to do this):

bin\fastboot lock begin

echo "Now you have to flash the stock image"
echo "This is an example http://xdaforums.com/moto-g-2014/general/restore-to-stock-t2873657"
echo "When done press Enter"
pause > nul

bin\fastboot.exe oem lock

Command to flash TWRP:

bin\fastboot.exe flash recovery img\openrecovery-twrp-2.8.3.0-titan.img

Note that you have to use the link provided to get your unlock code first of all :)

Good luck!
[G 2014 Android Development] Vaykadji:
Hi there,

I'm gonna recieve my Moto G2 soon, and I come from a Nexus 7, with the excellent Nexus Root Toolkit.

I was wondering if anyone was working an on UI for these scripts. I kinda like the idea of a step to step live tutorial and "press button" to execute.

I believe node-webkit and javascript could be used to this end, with the advantage of being multiplatform. But I guess python would be easier for a simple UI, and lighter.

Is anyone working on something like this ?
[G 2014 Android Development] tsirhcitna:
Honesly it would be a waste of time :| It would take a lot of time and it would made me gain not even a minute of time, you have to type like 5 words at max for every script
[G 2014 Android Development] luca020400:
That's why I created simple batch/bash scipts
[G 2014 Android Development] AcSilver:
Was wondering: Will all of the tools work after the 5.0 upgrade?
[G 2014 Android Development] bluboy484:
I will soon be receiving my moto G 2014 coming from a sony live with walkman. For the lww there was a program with a ui for every process needed, although i don't necessarily need a ui, a video tutorial will be very helpful in removing some of my confusion on what exactly i am supposed to do. Is there any video tutorial for the use of this tool kit? If not can someone make one because
[G 2014 Android Development] davcri91:
The Ultimate Moto G ToolKit doesn't have any GUI at the moment. I was thinking about developing a simple GUI in Python and Qt, but I don't think that this is really useful.

I think that a more in-depth tutorial is needed in the first post to help newbies to use it. What do you think OP (Luca)?

Anyway, if you have problems using this tool, just ask.
[G 2014 Android Development] bluboy484:
as i said i don't really need a ui, but yes, a more in-depth tutorial or video would really be of help to newbies like myself.
[G 2014 Android Development] lohanbarth:
[MENTION=5778309]luca020400[/MENTION]

by changing the recovery and logo.bin

can t he worked on the moto g 2013
[G 2014 Android Development] luca020400:
I'm working at cm 12 and I haven't time to work at this tool too

Anyway I'll add a guide in op later
[G 2014 Android Development] davcri91:
I forked your Github repo ! I'll try to write some advices, following the FAQs in this thread. I'll work on the gh-branch branch, what do you think ?
[G 2014 Android Development] warded:
Hi luca, does this tool root indian's soak 5.0.2? :D
[G 2014 Android Development] luca020400:
Root supports only KitKat as of now

Later ( very later) I'll add lollipop support
[G 2014 Android Development] warded:
Ok... But how i can root 5.0.2? i want test your cm12. I have unlocked bootloader and twpr's only.
[G 2014 Android Development] luca020400:
If you want test cm12 just flash it ;)
[G 2014 Android Development] warded:
So i can flash your twpr 2.8.4.0 and your cm12 without root?
[G 2014 Android Development] campero_electronica:
Update Supersu v2.45
[G 2014 Android Development] jamsh:
Guide for Ubuntu?

Would a 'How To' be possible for a noob running Ubuntu?? Thanks.
[G 2014 Android Development] davcri91:
Don't quote the whole post, it takes a lot of space.

However you only need to know how to use your system shell. There are a lot of tutorials online on how to run scripts :)
[G 2014 Android Development] cociuba:
what is exactly your problem?

you can install adb and fastboot see http://askubuntu.com/questions/529139/problem-installing-adb-fastboot-in-ubuntu-14-04/529141#529141

and after that just use Luca tools.

The toolkit is working perfectly on Ubuntu 14.04.

ps: do you know how to use a terminal? if no maybe you shouldn't try anything ;)
[G 2014 Android Development] davcri91:
There is no need to install adb neither fastboot ! Luca's tool includes them already ;)

Totally agree, spending a day learning how to use a terminal will be really useful also for your pc skills.
[G 2014 Android Development] rescorci:
Can I root without unlocking bootloader?
[G 2014 Android Development] davcri91:
No, you will need to unlock the bootloader first. Look at the official site: http://luca020400.github.io/Moto-G-2014-ToolKit/

This site will be eventually updated with more informations.
[G 2014 Android Development] taxzkee:
I can´t use it in Windows 7, I don´t know what I am doing wrong.

When I try to open bootloader.bat, It says "No se esperaba goto en este momento", it's like "Goto wasn´t expected in this moment".

Can you help me please? I am running 4.4.4 on Moto G xt1032

Edit: It´s done, I had to put "bootloader.bat unlock" XDDD

Edit2: Now I can´t unlock the bootloader in the motorola web...