yashsingh1/xdaforums huggingface dataset:
[G 2014 Q&A, Help & Troubleshooting] AnAndroidUser:3:
There is no official 6.0 for the moto G 2014 yet. So i wonder how you installed it.

The android robot is because you don't have a custom recovery installed, you can install that and flash another rom or you can use the recovery tool to revert it to stock lollipop.
[G 2014 Q&A, Help & Troubleshooting] LuK1337:
>qhsusb_bulk

Yes it is dead.
[G 2014 Q&A, Help & Troubleshooting] luca020400:
Try to for press power button for 60 seconds ( 60!)
[G 2014 Q&A, Help & Troubleshooting] Miiick3y:
i've got the same problem, we need a "blank flash" image to make it work again. I don't really know what it is but the thing i know is that we don't have it for the moment. It already exists for the Moto G 1st gen ^^

keep your phone don't send it to the trash and maybe with some luck we'll get this blank flash ^^
[G 2014 Q&A, Help & Troubleshooting] Hugo_Xnaider:
I've bought a Moto G 3 Turbo Edition...but will wait for this blank flash and, with some luck, sell the Moto G anyday :good:
[G 2014 Q&A, Help & Troubleshooting] doppelhelix:
What will happen after the 60 sec on a non broken device?
[G 2014 Q&A, Help & Troubleshooting] luca020400:
Device will reboot
[G 2014 Q&A, Help & Troubleshooting] doppelhelix:
Oh. Much excitement. Such astonishment. WOW
[ZenFone 2 Q&A, Help & Troubleshooting] kemp7:
Hello friends,

today I have received an Notification about a new system update.

I have rooted using Method 3 from this Thread Asus Zenfone 2 | Resources all in one thread, Bootloader still LOCKED, no Xposed Installed.

But I've removed lots of bloat and ASUS apps (uninstalled many of them, and disabled some). It's safe to update via OTA or SDCard?
[ZenFone 2 Q&A, Help & Troubleshooting] jimchee:
Unless you restore all the deleted and frozen apps you can't ota,you can leave root, and you should be able to adb sideload to update, but since I never use this method I would read up on it before using this method, you can also flash the pre rooted img's when shakalaca updates them.
[ONE Q&A, Help & Troubleshooting] Evnul000:
I'm having a huge battery drain. While its on standby I lose around 10 percent in less than a hour. I'm not rooted and I'm on cm12s
[ONE Q&A, Help & Troubleshooting] stanleyhafeld:
THESE SOLUTIONS DOESN'T WORK FOR EVERYONE.

FEW SOLUTIONS

1) Uninstalling the Google Play Services "Update "in the App Manager and than re-installing it in the Play Store can fix the "SystemUpdateService" battery drain

2) Modded Google Play Services by Calkulin (Need Root)

Install this and Flash it with your custom recovery:

Lollipop v7.3.29(430) - All DPI - armeabi-v7a

md5 - ddf795c287546d3545fab2a3140654ea

BE SURE YOU ARE ROOTED AND HAVE CUSTOM RECOVERY

HOW TO ROOT WITH KINGROOT

INSTALLING CUSTOM RECOVERY

TWRP: TWRP for bacon

CWM: CWM Recovery for OnePlus

3) Disable Google Play Services

Fortunately if you’re using Cyanogenmod on your device, you can use the built-in Privacy Guard feature to limit Google Play Services ability to wake the device, which will permit your device to stay asleep unless you’re actively using it. You can also keep Google Play from being able to keep the phone awake, which will allow your device to sleep quicker, preserving battery for Angry Birds and Pandora. Read more >>
[Sony Xperia Z Ultra] nickfar2000:
Hello all I need to return back to Full FACTORY Stock, I saved my all my keys when I unlocked my bootloader, Im currently running Rooted, unlocked bootloader, stock Android 4.4.4 Build .108. Using Nutts Dual Recovery, Thank you in advance.
[Sony Xperia Z Ultra] Shawnki91:
Hi there,

Probably not the reply you are looking for, but just out of curiosity, how did you unlock your C6806 bootloader????
[Sony Xperia Z Ultra] DarkSandmaN:
I did it with xperiFirm,downloaded latest rom and with flash tool flashed it,after first boot turn on usb debugging and restore TA partition. later i rooted and put recovery
[Sony Xperia Z Ultra] RealityFails:
Have you tried to flash the c6806 ftf?
[Sony Xperia Z Ultra] DarkSandmaN:
Well my Phone is 6833 so i dident try 6806 tft
[Sony Xperia Z Ultra] RealityFails:
I quoted the wrong person
[Sony Xperia Z Ultra] RealityFails:
Have you tried to flash c6806 ftf
[Sony Xperia Z Ultra] nickfar2000:
No I have not, this is my first Sony and I have came from a primarily touchwiz & sasung background, with that said, there usually duty uyuttttliiiiiiiili@==jj==a99@@9Ollll)@a,,,,,,a back to stock
[Sony Xperia Z Ultra] nickfar2000:
thought you had to be rooted to run TA Backup Recovery Program, so I would just first download the latest ftf from xepria firm, and then flash it with flashtool, then after first boot run the ta recovery program to recover my drm keys, then I would be at factory state with latest Factory Sony Recovery and Lollipop 5.1?
[Sony Xperia Z Ultra] RealityFails:
Just use flash tool and flash lollipop ftt
[Sprint Samsung Galaxy S6] sas007:
Hi I have the S6 920p

Is it only me that has no option in the pull down menus to enable mobile data..had it on all my other Samsung devices..

Is there away to add one from somewhere? I have tried the edit option but there is no mobile data to select..plus none of the widgets from Google play seem to work...

Cheers
[Sprint Samsung Galaxy S6] 1619415:
"**4. Add Mobile Data toggle by adding EXACTLY (minus the ") "MobileData;" to sqlite editdor.. Settings Storage-->SettingsDB-->search "notification" and add "MobileData;" to the two quick toggle fields"
[Sprint Samsung Galaxy S6] sas007:
Hi mate thanks but it makes no sense to me?? No idea sorry im not clued up..
[Sprint Samsung Galaxy S6] yaibakt:
maybe this makes more sense to you. :fingers-crossed:

unzip, install, run, add toggle. done.

after that you could uninstall the app for good. just once needed.
[Sprint Samsung Galaxy S6] DaWeav:
If your like me and don't want to root your S6 because you'll lose Samsung Pay, then you can re-enable the mobile data toggle using one of the two apps in the thread below. The Samsung Quick Panel Restore did not work for me, but the other app did. I installed it, enabled it, then uninstalled the app and the mobile data toggle remained. I'm not sure how they do it without root, but it worked.

http://xdaforums.com/showthread.php?p=61418555

Another neat non-rooted app is the Galaxy Button Lights which can be found in the Google Play Store.
[General Questions and Answers] ToddBonzalez:
I scanned with the Malware Bytes app but have (predictably) found no malware. I'm on a rooted Z1 Compact running, amongst other things, Xposed.

Is my search infected? Or do I have a keylogger?
[Android Software Development] rufus.wilson:
Tested devices and systems

When you have tested it could you report your experience with the device model and the android version you used.

I will summarize here the success and failures.

Success

OnePlus X - CM 12.1

N4 w/TW 6.0.1 MM

sony z3c concept rom(mm)

Samsung Galaxy Express 2 with CM13

Xperia M with CM13

Sony Z3 .570 stock

asus zenfone 2

Asus ZenFone 4 - Stock v7.4.4 (Lollipop) (all opened apps had FC on reboot)

asus zenfone 5 XOSP rom

Sony Xperia Z3 (Sometimes is overwritten)

SM-G910F Rom ALEXNDR COJ3 Deodexed

Samsung galaxy s5 g900f stock marshmallow

z3c with rom slimm 1.5

Galaxy S7 SM-G930FD 6.0.1 Rooted Xposed

Xiaomi Redmi 1S RR 5.6.8 which is a CM13(R28)

Sony Z3 D6653 running on RXSW Marshmallow Edition [3.0.0] [12/04/16] [6.0.1]

LG L90 D415

Redmi 1s using OctOS M ROM

xt907 JBBL- cm13, 01-05-2016

Redmi 2, CM 13.1-20160417-SNAPSHOT

z3 570 rxsw

LG G3 VS985 variant running CM 13 6.0.1 nightlies. Using 777 Kernel & TWRP 3.0.2

z3 dual d6633 running marshmallow 6.0.1 official

Oppo find 7a x9006 on 6.0.1 rooted with twrp 3.0

Failure

LG D855 32 Gb with CM13 2016-05-10 and TWRP 3.0.0.0 recovery

Sony z3 MM

g900f blisspop 6.01

Samsung N7105T, unofficial wilson3q cm 13
[Android Software Development] rufus.wilson:
Reserved
[Android Software Development] hiimpig1:
not work with my device

zenfone 4

here is my recovery log
[Android Software Development] rufus.wilson:
Thank you for coming back to me.

Do you have CWM recovery or TWRP?
[Android Software Development] hiimpig1:
im using twrp 2.8.7.0
[Android Software Development] rufus.wilson:
I have uploaded a new version. Could you test that one?
[Android Software Development] hiimpig1:
i flashed, after that all my apps got FC

but its worked
[Android Software Development] phoberus:
I have a proble with titanium backup: no space, but i have more than enough

Is this also working?

Galaxy s5, cm13 (MM)
[Android Software Development] rufus.wilson:
Was a reboot enough to solve the problem?
[Android Software Development] rufus.wilson:
It should be working. You can always go back by copying back the file in a rooted shell command with the system partition mounted:

cd /system/etc/permissions
cp platform.xml-201*.bak platform.xml
chmod 0644 platform.xml
[Android Software Development] phoberus:
Hey [MENTION=6935794]rufus.wilson[/MENTION]

Flashed v1.3b, but it didn't work. And then I I restored the file with this two commands. After that, almost all the apps crash (FC) when I want to start it and when I can open an app, it hasn't any internet connection.

Can I fix this or must I wipe /system and /data?

(cache and dalvik cache already wiped)

I have noew zero permission, I can't even take a screenshot :/

Galaxy s5 (G900F) => CM13 (MM)
[Android Software Development] hiimpig1:
no its not
[Android Software Development] rufus.wilson:
I edited my answer as I forgot to add a command to change the permissions of the file.

chmod 0644 /system/etc/permissions/platform.xml
[Android Software Development] rufus.wilson:
Can it be a permission problem? Look here.
[Android Software Development] phoberus:
Didn't work for me, but I have a backup :good:
[Android Software Development] rufus.wilson:
Which version of android do you use?
[Android Software Development] rufus.wilson:
Which ROM are you using?
[Android Software Development] hiimpig1:
im using stock rom 7.4.4 from asus
[Android Software Development] rufus.wilson:
Do you still have the FC?
[Android Software Development] Twenga:
I have flashed the zip file that went fine but nothing is changed. I can't use foldermount or take pictures using SD card.

I am on z3 MM.
[Android Software Development] freddy_62:
thanks [MENTION=6935794]rufus.wilson[/MENTION] work in zenfone 5 XOSP rom..
[Android Software Development] gianlocas:
Tried v1.9b --> doesn't work in LG D855 32 Gb with CM13 2016-05-10 and TWRP 3.0.0.0 recovery :(

The phone can't boot and remain in boot animation..

To unblock the phone enter in recovery, delete the new "packages.xml" in folder data/system and rename in "packages.xml" the backup "packages.xml-RW........" created by the ExtSDFix during the installation from recovery (the backup is in the same folder); reboot in system (the phone will perform a new "strating apps").
[Android Software Development] MEHDIMYADI:
[MENTION=6935794]rufus.wilson[/MENTION]

Thank you for the solution.

I think we can create shell for edit package xml.

After installed new app just reset devices and fix permission problem.
[Android Software Development] rufus.wilson:
If you create such script I can integrate it in the zip. I don't have much time at the moment...
[Android Software Development] rufus.wilson:
It is normal. Everything is in the update-binary file.
[Android Software Development] rufus.wilson:
A solution could be to have a sort of cron job. I don't know how to do it. If you implement it, I can integrate it.
[Android Software Development] rufus.wilson:
I don't know how it behaves with app updates. If I remember correctly in the OT where I took the ides they said if should be fine. Test and report, please?
[Android Software Development] rufus.wilson:
I have created a bug report for the incompatibility with xposed. If you want to share more details.
[Android Software Development] rufus.wilson:
Another user reported that these apps worked afterward: ACR, TubeMate and PDF Scanner Pro.
[Android Software Development] rufus.wilson:
The best is to test. Backup, flash and check.
[Android Software Development] rufus.wilson:
The packages.xml file is after edit or before? Could you send both?
[Android Software Development] rufus.wilson:
Are the both permissions necessary?

Where should the init.d script be located? Do you know if there is a hook for app install?
[Android Software Development] Dxue:
Hereby the error log. I can't upload it, as it gives an error. (maybe i'm not allowed to upload attachments.)

05-11 01:51:56.570 I/Xposed ( 671): -----------------

05-11 01:51:56.570 I/Xposed ( 671): Starting Xposed version 82, compiled for SDK 23

05-11 01:51:56.570 I/Xposed ( 671): Device: D5803 (Sony), Android version 6.0.1 (SDK 23)

05-11 01:51:56.570 I/Xposed ( 671): ROM: 23.5.A.0.570

05-11 01:51:56.570 I/Xposed ( 671): Build fingerprint: Sony/D5803/D5803:6.0.1/23.5.A.0.570/260291279:user/release-keys

05-11 01:51:56.570 I/Xposed ( 671): Platform: armeabi-v7a, 32-bit binary, system server: yes

05-11 01:51:56.570 I/Xposed ( 671): SELinux enabled: yes, enforcing: no

05-11 01:51:58.953 E/Xposed ( 671): Found /data/data/de.robv.android.xposed.installer/conf/disabled, not loading Xposed

When i reverted back to the old image, it did NOT solve the problem (which is really weird!). I solved it by deleting the disabled file with rootexplorer. Everything works now as it should and i have writing permission with mixplorer.
[Android Software Development] rufus.wilson:
Test and report, please. Thanks
[Android Software Development] FuTChY:
I'm sure that this permission is necessary

<item name="android.permission.WRITE_MEDIA_STORAGE" granted="true" flags="0" />

i'm not sure about the other one, i just add it just in case.

I was just suggesting a shell script to add these to permissions for all apps inside the packages.xml at the startup.

I'm sorry, what do you mean by hook for app install ?
[Android Software Development] rufus.wilson:
OK. I will not include it then.

Yes, I understood this. I don't know where to put the file basically...

For the hook, I know that there are system notifications but they are only available in java code. Let's explore the init.d option first.
[Android Software Development] FuTChY:
Thanks,

I'm not a developer, but I have a very basic knowledge in the shell scripting.

I was trying to write a code that can add these permissions to the apps. It added them successfully but it keeps adding the two permissions with every boot.

What I can't do now, is a check to add the code in case it doesn't exist.

Have a look at it and feel free to add/edit it as you want if it could help you

!/bin/bash

startdirectory="/home/bassem/Desktop/shell/packages.xml"
searchterm="<perms>"
replaceterm="<perms>\n <item name=\"android.permission.WRITE_EXTERNAL_STORAGE\" \/>\n <item name=\"android.permission.WRITE_MEDIA_STORAGE\" \/>"

i=0;

for file in $(grep -l -R $searchterm $startdirectory)
do
cp $file $file.bak
if	[ ! -z $(grep "$replaceterm" "$startdirectory") ];then
sed -e "s/$searchterm/$replaceterm/ig" $file > tempfile.tmp
mv tempfile.tmp $file
else
echo nochange
fi

let i++;

echo "Modified: " $file
done

echo " *** All Done! *** Modified files:" $i
[Android Software Development] rufus.wilson:
I just uploaded a new version where the script is stored in the init.d folder.

Could you check that there is a file there /system/etc/init.d/99_ExtSD_fix_23.sh?

Could you check its permissions? And permissions of other files in this directory?

Is there a new /data/system/packages-RW-*.xml?
[Android Software Development] FuTChY:
Please give me 10 min. so that I could restore a nandroid backup for cm13

I'll replay you again.

---------- Post added at 03:02 PM ---------- Previous post was at 02:49 PM ----------

No, the file wasn't added to init.d folder. Neither the new file packages-RW-*.xml wasn't found in /data/system.

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

EDIT:

1. I added the script manually to init.d folder with the correct permissions and rebooted, but I found nothing new to packages.xml file.

2. by running the ExtSD_fix_23.sh on my labtop around 4 times to simulate many reboots by the device, it duplicated all the tags inside the packages.xmol file (check the attached file)

Also it created many backups of the packages.xml-RW-********* file.
[Android Software Development] vd69:
I will try. I cant copy the after packages thru TWRP file manager because its 0kb
[Android Software Development] IURII G:
it looks like it did not work on htc m8 and android 6.0 (
[Android Software Development] :No-Frost::
I'm not a developer unfortunately... I'm just starting to learn how to code so I can't provide much help on this :(
[Android Software Development] rufus.wilson:
It is in the pipes...
[Android Software Development] rufus.wilson:
What should be the permissions?
[Android Software Development] rufus.wilson:
Could you try this new version?

I corrected the bug with doubling the tags.

The init.d folder is in /system/etc/init.d, isn't it?
[Android Software Development] FuTChY:
rwx rx rx

---------- Post added at 05:19 PM ---------- Previous post was at 05:17 PM ----------

yes. I will test it once i get home in an hour. Im currently driving :eek:
[Android Software Development] rufus.wilson:
I just pushed a new version with a bug correction and correct permissions.
[Android Software Development] MEHDIMYADI:
Im created shell and tested, But not working because device run to shell end of boot and not working.

I hope create app for edit package file Or creating xposed mod.
[Android Software Development] FuTChY:
I installed the version in the previous post and there was an error while installation.

Would u please tell me what will the new one do?

or i dont see a shell script in to be added to the init.d folder.

is the binary file going to do the magic?
[Android Software Development] rufus.wilson:
The binary file is just a shell script file. :)

It should create the file in the correct folder on the fly.

I am going to create a striped down script for you to test.
[Android Software Development] FuTChY:
No problem :)

Im just asking because every test costs me to wipe the current rom, restore the cm13 one. then restoring my current rom again. :highfive:
[Android Software Development] rufus.wilson:
Could you try the attached shell script?

You can save it to any folders and run it from there.

It should create files in the same directory. It will require root.
[Android Software Development] Faraco80:
I'm afraid of mess up my xposed and its mods...

It's working well editing with QuickEdit, in the search of app there is a function to swipe words thats make things easy and fast...

Only problem, as i mentioned before, thats i cant acess the whatsapp downloads in the app, but i can acess them with a explorer...
[Android Software Development] dracula3020:
not work on my htc816w :( android 6
[Android Software Development] Faraco80:
After a huge search on my problem (whatsapp can write in external sd but can not read from external sd) without success i flashed this fix, tried v1.9 and v2.0 both failed with the message "MD5 does not match".

I'm using a S4 GT-I9505 running CM13 official last nightly and my recovery os TW 3.0.0.2

Sorry I'm a noob and have a bad english...
[Android Software Development] AnnDy01:
In TWRP Settings "untick" the "check md5" option then try
[Android Software Development] Faraco80:
That was alread "unticked", i tried with the option "checked" and didnt work either...
[Android Software Development] nearlygod:
Since I updated my s5 to MM my extSdCard has changed name and path to storage/xxxx.xxxx

Twrp and a few apps won't recognize it anymore. Does this tweak deal with that or do you have any idea how to fix that situation?

Thanks a lot.
[Android Software Development] :No-Frost::
Apply this fix and then use the Xinternalsd xposed module. In the options of the module, untick the first option and select your external sd path in the second option. After this, choose the apps you want to grant external sd access.

I'm using whatsapp like this.
[Android Software Development] nearlygod:
Thanks, but i can´t even install Xposed, because i can´t access my Sc Card in TWRP
[Android Software Development] DemonDroid_97:
Do I need to flash this fix everytime I update an app, install a new one or uninstall something?
[Android Software Development] rocknegi:
Flash or every time you update apps
[Android Software Development] venomxob:
Great

Works like a charm on Z2 stock. 570.
[Android Software Development] ahac85:
Anyone had sucess on the htc one m8? I still can't get some apps such as apw widgets to write stuff to external sdcard including a handful of other apps
[Android Software Development] :No-Frost::
Try using this patch with Xinternalsd xposed module
[Android Software Development] FuTChY:
Hello, sorry for the very late reply, it was weekend here and I had very limited internet connectivity and laptop.

Should I use that file instead of the binary file?
[Android Software Development] FuTChY:
Hello,

I extracted the content of the init.d file, I added it manually to the init.d folder yet nothing changed, the packages.xml file wasn't affected, and the backup file

\${fpath_ori}-RW-\$(date -u +%Y%m%d%H%M%S).bak

wasn't created, so I believe it didn't work.

I believe that

awk -e '/<perms>/ {pMS=1;pES=1} ;
pMS&&/WRITE_MEDIA_STORAGE/{pMS=0} ;
pMS&&/<\/perms>/{print " <item name=\"android.permission.WRITE_MEDIA_STORAGE\" granted=\"true\" flags=\"0\" />";pMS=0;} 0 ;
pES&&/WRITE_EXTERNAL_STORAGE/{pES=0} ;
pES&&/<\/perms>/{print " <item name=\"android.permission.WRITE_EXTERNAL_STORAGE\" granted=\"true\" flags=\"0\" />";pES=0;} 1 ;' "\${fpath_ori}" > "\${fpath_tmp}"

works successfully and does what it was meant to do.

but the init.d script doen't fire I guess.
[Android Software Development] dadda:
Where can I find packages.xml-RW to revert the changes so I can install 2.0.
[Android Software Development] Zotmen:
data/system
[Android Software Development] M94Khaled:
Is there's anyway to make it permanent, not have to flash it every app update.

Is there's anyway to make it permanent, not have to flash it every app update.
[Android Software Development] FuTChY:
[MENTION=6935794]rufus.wilson[/MENTION]

I think I made it (No need to install the script everytime you install a new app) by adding that file to the init.d folder.

I extracted the code in the attached file from your code with too little changes.

Here is how it works:

Please backup your packages.xml first in case something went wrong.

1- Install busybox and make sure it's installed to /system/xbin.

2- add the attached file to the init.d folder using any file explorer

3- add the correct permissions to the file (-rwxr-xr-x)

don't forget to remove the .txt extension before adding it to the init.d folder.

So, with each reboot, a new backup file of the packages.xml is being created, then the current one will have the correct permissions for every app.

All credit goes to you in this, but please change your mod to be an init.d script file instead of a recovery file that need to be installed everytime a new app is being installed.

Thanks so much.

And this was only tested on Note 2 GT-N7100

P.S: For everyone wants to try this. please note that Im not a developer and I didnt do that to replace the fix of [MENTION=6935794]rufus.wilson[/MENTION]. Im doing this only to help him testing his fix. So use it at your own risk.
[Android Software Development] :No-Frost::
Quite interesting. I will follow this closely as I can't do the procedure right now...
[Android Software Development] situ1962:
What should be the exact name of the file?The attached txt file can not be downloaded.Clicking on it ,it opens the content of the text file.I have copied it to a new text file.What next?
[Android Software Development] gianlocas:
On CM13 it is not possible to install busybox, CM13 comes with toybox included...
[Android Software Development] filjusz:
So...? Maybe install Busybox from Google Play Store and replace it with Toybox?

Btw. Working perfectly with my Sony Xperia Z2 running on stock android marshmallow 6.0.1 bulid. 570 :victory: