yashsingh1/xdaforums huggingface dataset:
[ZTE Z7, Z7 Max, Z7 Mini] K-Ikki:
What is encryption?

Basically, if you lose your phone and someone wipes /data on Recovery mode, the phone boots with NO lock screen, your apps will be gone but YOUR FOLDERS becomes exposed, that means Whatsapp history and media, pictures, downloads, documents. Stuff you wouldn't want in the hands of thieves/strangers.

Does it affect performance?

It does increase memory readings on every phone. But z7 Max doesn't show any lag at all!

Tested ROMs able to ENCRYPT:

- CM13 beta7 by PaoloW8

Tested ROMs able to DECRYPT:

- Ressurection Remix M by pchatzop

(if you wanna try for yourself, please first MAKE FULL BACKUP of your storage folders, files and appdata)

Requirements:

1. External SD Card

2. Crypto footer

3. CM13 beta7

4. Secure screen lock (PIN, Pattern, Password)

5. Pchatzop's Ressurecution Remix 5.7.4 and GApps 6 (IN SD CARD)

Steps:

0. Boot to TWRecoveryP

1. Open Advanced > Terminal

2. Enter

umount /dev/block/mmcblk0p23

3. Enter

e2fsck -f /dev/block/mmcblk0p23

4. (this will resize storage LOSING DATA) Enter

resize2fs -f /dev/block/mmcblk0p23 6896600

5. (second data error check just for safety) Enter

e2fsck -f /dev/block/mmcblk0p23

6. Back to TWRP home menu > Install > flash CM13 beta7 and the same GApps you're going to use on RR ROM. (let's avoid future FCs). Wipe Dalvik/Cache then reboot to system.

7. Wait for system bootup

8. Head to Settings > Lock Screen

9. Set a secure screen lock

10. Head back to Settings > Security > Encrypt phone > Encrypt

11. Enter password > Encrypt

12. Wait for a while depending on the size of your used storage.

13. Screen lock input shows upon boot then decrypt successfully THIS TIME ONLY, so head back to TWRP.

14. Have your SD card inserted with your RR ROM and GApps. As of November 24, TWRP builds for the Z7 Max CAN'T decrypt storage so ignore screen lock input and head straight to TWRP main screen > Wipe > Advanced Wipe > Check CACHE and SYSTEM only!!!

15. TWRP main menu > Install > flash your ROM and GApps > Reboot and decryption input should show and decrypt on every restart, even if you change your password. ;)

NOTE: To Decrypt Data you have to head to TWRP > Wipe > Format Data > Type "yes", meaning you will LOSE ALL DATA TO DECRYPT so BACKUP first.

3njoy!
[ZTE Z7, Z7 Max, Z7 Mini] K-Ikki:
bump
[ZTE Z7, Z7 Max, Z7 Mini] pchatzop:
Can not get this to work, in order to try my modified twrp. I have tried beta 2 and Rel V9,still stuck at bootscreen. Done the resize2fs, and got past the overlap error, but still stuck at the bad magic error. Will try the beta7 and see if something changes. Do you have the /data original block size in order to revert the resizing? Didn't occur to me to save it :) Well, there is always nubia updater tool if i get too OCD :) .
[ZTE Z7, Z7 Max, Z7 Mini] K-Ikki:
Sorry about the delay, final exams.

My original block size is 6896635. This thread is outdated, my new reports makes some info here invalid :(

Keep up the good work
[ZTE Z7, Z7 Max, Z7 Mini] pchatzop:
Thank for the report, i made some STUPID mistake and mixed the fstab.qcom arguments with the twrp fstab argument, which resulted at data being mounted at failsafe mode, thefore not using any of the footer arguments i used,resulting at the recovery not finding the footer. I revert the twrp fstab to the twrptest2 level while keeping the decryption libs intact. New build is up, give it a spin :).
[ZTE Z7, Z7 Max, Z7 Mini] K-Ikki:
OK Twrptest4 formats and resizes correctly but doesn't decrypt yet :(

Kerneltest1 was better than kerneltest2. Flashed both after CM13 beta7, both kernels enabled f2fs support for Paolo's CM13, kernel1 encryption works on first tries on both ext4 and f2fs (on cm13, not RR), kernel2 always give bad superblock. I guess it is not something just in kernel at all but on RR or CM recent builds :?

As a Senior Member, you have more chance of getting response from [MENTION=5778309]luca020400[/MENTION], [MENTION=1288451]luk133[/MENTION], [MENTION=5514501]Vidhanth[/MENTION], [MENTION=4910973]Vatsal[/MENTION] (they all contributed for moto G 2014 encryption on ROMs and TWRP) or [MENTION=5473651]golden-guy[/MENTION], [MENTION=5153662]Android-Andi[/MENTION] (for s3 mini's)!

Keep up the good work!!
[ZTE Z7, Z7 Max, Z7 Mini] pchatzop:
That is a great report, thank you so much! I will check the diffs between kernel 1 and 2, and will get you a twrp with the configuration of kernel 1 with decryption libs. F2fs encryption working is a great step forward. You are right about the second part, kernel does work, but seems like cyanogen source broke the encryption on later builds. I want to get this to work, and even incorporate it in my nougat builds, but twrp needs to work first! Does twrp find the footer but fail to decrypt, or does not find it at all?

---------- Post added 3rd December 2016 at 12:06 AM ---------- Previous post was 2nd December 2016 at 11:17 PM ----------

Just made a new test kernel, together with a new recovery with the above changes. Hope something changes now(at least the kernel should encrypt fine). I also have the qseecomd blob from cm13 beta7 in the folder, i have a feeling that if we replace that blob in the latest RR with a kernel that can encrypt in beta 7, encryption should work there too. Hope you can test and report back. Feeling we are closer to cracking(pun intended) this!
[ZTE Z7, Z7 Max, Z7 Mini] K-Ikki:
twrp does find the footer but fail to decrypt, even the Default Android password dont decrypt, I have the TWRP log at home if you want.

When I get home I'll download your new tries.

Thanks again, regards
[ZTE Z7, Z7 Max, Z7 Mini] pchatzop:
Good, that means that either the service does not start, or that the zuk decryption libs are incompatible with z7max encryption model. The logs would be great. Meanwhile, im getting a new recovery with all decryption libs replaced with nubia counterparts, so that you can test both variants and see what is really stopping it from decrypting. Its in the folder too.
[ZTE Z7, Z7 Max, Z7 Mini] K-Ikki:
Oh, I tested your RR N, it shows decryption screen lock input but after decryption it bootloops, mostly because the /data has Marshmallow stuff, so we need to fix TWRP first to wipe /data without wiping /media along :highfive:
[ZTE Z7, Z7 Max, Z7 Mini] pchatzop:
Got a new twrp in the folder, plenty more testing for you! :) Is beta7 the last build encryption works? Because i can check the github diffs between beta7 and beta8 and see what i can revert to try getting it working again in the latest builds. That is if it is positively the last build that encryption works.
[ZTE Z7, Z7 Max, Z7 Mini] K-Ikki:
Yes it is beta7! I tried beta8, V1.... with your boot.img3, encryption starts but gives the same unsuccessful screen from RR. Only beta7 reboots to decryption input.

Also, I have suspicions: as your TWRP set data partition to 6896631 which was originally 6896635, the password MUST BE OF 4 characters (6896631 - 6896635 = -4) for encryption to work?

Unfortunately, no TWRPtest could decrypt yet, it finds the crypto footer but fails. Attaching twrp log and encryption success logcat:
[ZTE Z7, Z7 Max, Z7 Mini] pchatzop:
So boot3 works with beta7? I will sift through the logs, think this is a selinux issue introduced in beta8, i will get a new build and try it on my phone, maybe it will work this time.
[ZTE Z7, Z7 Max, Z7 Mini] pchatzop:
I got a new twrp in the folder. Spend 5 hours trying to get RR-M to encrypt, tried selinux changes, test builds, replacing blobs with some from beta7, still not there. I could get it to begin encrypting sometimes by rebooting in safe mode with root disabled, but got the encryption unsuccessful screen. There is something that does not allow /data to get unmounted properly during the soft reboot for the encryption, and even when it does, it gets stuck in another point. Hopefully the new twrp will decrypt an already encrypted system.
[ZTE Z7, Z7 Max, Z7 Mini] pchatzop:
Got a new twrp in the folder, my attempts at encrypting have failed so far, most i could get was here: "Cryptfs : Error writing crypto_blkdev /dev/block/dm-0 for f2fs inplace encrypt" where "12-31 13:32:09.246 237 306 I Cryptfs : Encrypting from block 0" wuld be on your log. I will attach it , and hopefully you can try to help me, since you have more exprerience with encryption. Hopefully something changes at the recovery front.
[ZTE Z7, Z7 Max, Z7 Mini] K-Ikki:
Hey, thanks and sorry for taking your time! Did you try a password/PIN/Pattern 4-character/digits/dots long?

TWRPtest8 doesn't decrypt yet :(

Could you please make your TWRP "Copy Log to SD" save the log in the external SD when available? It is always trying to save in /data/media, but as it is encrypted, the file goes nowhere. So I always have to format, save the log and re-encrypt :highfive:

Keep up the good work!:highfive:
[Android General] FadeFx:
Hi, i am trying to make a run script action in tasker to use the settings binary to change font_scaling only while in one particular app, so i need actually more help with the settings binary itself than tasker, as i do know what is needed on the tasker side, but i cant get the command to work in terminal.

If i do

settings get system font_scaling

response is 1.0 if it is set to standard in system settings, but if i try to

settings put system font_scaling= 1.3

like it is set if i switch to big fonts in system settings and then do the get again it is still set to 1.0 and the font is small. So i thought i need to do something like

settings --user current put system font_scaling= 1.3

but that didnt work as well, also if i replace "current" with the user id o get from whoami while not being root, it just doesnt work, but i am pretty sure that it has to do with the user id or the way i specify the user id. Would be cool if someone who has used the settings binary a bit more can give me a hint.﻿

Gesendet von meinem LG-H815 mit Tapatalk
[Android General] FadeFx:
Nobody?

Gesendet von meinem LG-H815 mit Tapatalk
[Moto G General] fonehacker:
Some users of Moto G (falcon) Dual Sim version [XT1033] are having problem with getting the Dual Sim working and some are having no network at all after installing Cyanogenmod 12/13/14/14.1 (either official or unofficial).While some of the users have the network but the SMS not working.:confused:

So here's a fix for all the network related problems specifically for the dual sim version XT1033.:silly:

It flashes the CM12/CM13/CM14/CM14.1 compatible essential network related files "fsg" and "NON-HLOS" and then clears the cache partition.

Do reply to this thread if this helps you along with ROM details.

Instructions:

Reboot the phone into bootloader mode. There are several ways to do this, but most common is:

Unplug the USB cable and power off the phone.

Press and hold 'Volume down' then power on the phone.

Connect the device to the computer using USB cable.

Download the zip file : DOWNLOAD

Extract the zip anywhere on your PC and you will get a file named "XT1033 CM14.1 Dual Sim Network Fix.exe"

Run the "XT1033 CM14.1 Dual Sim Network Fix.exe" by double clicking it and press any key to start the process.

Wait, your device will now reboot.

Tip: You might have to wait 4-5 minutes after the reboot to get network on both the SIMs, this happens only first time.

Disclaimer:

Follow these instructions at your own risk. If something goes wrong don't blame me!

Do NOT use it on any model other than XT1033!

I have only tested this on ASIA Retail Moto G with an unlocked bootloader, however as this fix is having original stock files from Motorola it should work on all dual sim XT1033.

Tested on:

CM12 (tested by inspire428)

CM13 (by me)

CM14 (by me)

CM14.1 (by me)

If this helps you,Please click the "Thanks" Button :good:
[Moto G General] sub77:
a exe, really? i would not execute even if i were on win.
[Moto G General] fonehacker:
Well, exe and bat files are the only way you can execute a program on your computer.

Most of the windows tools made for android are exe.

Moreover,this is compiled so as to make things easier for a newbie: There's a single compressed file,no need to think which file to click ,no need to create folders and extract several files.

A single program takes care of all things.

And you can always scan it with any Antivirus,if you're so skeptical.
[Moto G General] sub77:
and what does it flash?
[Moto G General] fonehacker:
As it's a network fix, it only flashes, "fsg" and "NON-HLOS" files and cleares the cache partition. (not the dalvik-cache).

I will add these details in the OP.
[Moto G General] sub77:
so it could be done with a 3 line batch.
[Moto G General] fonehacker:
a few more lines to be exact.

as it erases the modems for both the sims after flashing (it's a standard procedure for flashing network files)(you might not know the procedure that's why you said 3 line batch file) and then another line to reboot the fone.

Also as I explained earlier,there's only single file to work with.

If an exe saves the time and confusion for a newbie,then why not?
[Moto G General] sub77:
could you try with.my du build, please?
[Moto G General] fonehacker:
I only try CM/MIUI/AOSP on my devices,I am a little skeptical about customized ROMS
[Moto G General] sub77:
is the exe spreader telling;)
[Moto G General] fonehacker:
to the customized rom spreader;)
[Moto G General] inspire428:
Will this work on CM13, second sim not working and cant send receive sms
[Moto G General] himu_joy:
sir, any way/tips/zip to flash via recovery/twrp?
[Moto G General] fonehacker:
It should work theoretically, Do try and let me know.(Its safe to use as long as your model is XT1033 Dual sim).

I had the same problems,that's why I made it.

Edit:It works with CM13 ,I have tested it.
[Moto G General] fonehacker:
Its having some special files which cannot be flashed via recovery/twrp, You have to use PC and fastboot. (trust me I have tried every fix available).
[Moto G General] Hello.Dear:
Can i use it on [ROM][7.0.0_r19]AOSP+OMS/Substratum ?

network is fine but cellular data is always OFF and i cant surf the internet when on cellular data.

help!
[Moto G General] fonehacker:
Should work on any AOSP based ROM (6.0+),But you have to test it to confirm and I've never seen that data problem with anyone.
[Moto G General] Hello.Dear:
yeah me too:confused:

well after flashing your zip nothing happened bcoz my phone was already showing the signals.

when i go into the phone information(*#*#4636#*#*) it shows this http://imgur.com/z0vEGBm

UPDATE : Ignore the screenshot above, but the problem persists :(
[Moto G General] inspire428:
Thanks, it worked

Thanks, it worked both SIMs are working and I can send and receive sms on both SIMs. I have baseband version MSM8626BP_1032.3116.98.00R, is this what I am suppose to have for asia retail, once again thanks
[Moto G General] inspire428:
Help needed

Not relevant, help needed, after flashing baseband zip audio fx has no effect on audio except builtin music app, cant enable equalizer in deezer. Do I have to flash kernel for this.
[Moto G General] fonehacker:
Glad it worked! :good:and yes,this is what you should have for the Asia retail version.
[Moto G General] fonehacker:
It might be some kernel related issue or something ROM specific.
[Moto G General] fonehacker:
It should be a ROM specific issue as I have used most CM builds and never gt that problem.
[Moto G General] Hello.Dear:
Now its working fine thanx:good:
[Moto G General] inspire428:
Works on CM12

Its working on CM12, after running exe file flashed CM12 and it worked, both SIMs and SMS working. Once again thanks.
[Moto G General] bibinalappatt:
thnkss man working perfectly
[Moto G General] fonehacker:
happy to help you guys,thanks for testing on CM12.
[Moto G General] pico hackr:
pretty useless post in my opinion
[Moto G General] fonehacker:
pretty useless reply in my opinion.

[IMG="Where?"]http://www.kappit.com/img/pics/201607_0902_bedhg_sm.jpg[/IMG]
[Moto G General] pico hackr:
keep finding buddy , its an forum anyone can share their opinion . Good Luck
[Moto G General] BuffHamster24:
Thanks worked perfectly!
[Moto G General] ryandigweed:
Will check and post back :)
[Moto G General] Ak.amd:
please please please send me a new link to download bcz the link above is not working
[Moto G General] TogoFire:
link off :/
[Moto G General] Ekril:
Sorry, this file is infected with a virus

Only the owner is allowed to download infected files.
[Moto G General] Victororo:
Link no funciona, podrian repararlo?

link doesn´t work, can you fix it? :o:o
[Moto G General] majinawaz:
Sorry, this file is infected with a virus

Only the owner is allowed to download infected files

link is not working bro
[Moto G General] aryanbossy:
link not working

hey bro it says file infected by virus so can you update the link please
[Moto G General] asp008:
link not woking

bro please update the link ..i have same issue with my falcon
[Moto G General] JamesStuart:
Back to normal

I installed a ROM (MIUI 7) that needed to do this to work the chip, since then I have already changed to several different ROMs and the chip does not work properly, does not receive sms, does not work both chips and sometimes, nor does it cause connection This file. How do I solulate this problem? Do I need to download another similar file to get back to what it used to be? Can someone help me? I really need to use my chips now. Thanks for listening.
[Moto G General] inspire428:
Moto G 1st Gen cm 13 Battery calibration problem

My phone was completely wiped probably due to some malicious app. Ever since I have flashed CM13 battery calibration has been a problem, is it possible some file related to battery got wiped too.
[Moto G General] zxcvbnm99:
Hello, please help. SIM slot 1 (top left in phone) in my 2013 Moto G XT1033 falcon dual-sim (India) is not working/detected at all "SIM not inserted" despite upgrading my modem+fsg firmware to MSM8626BP_1032.3116.98.00R. Using LineageOS official 14.1-20199302-falcon (android 7.1.2) in this phone.

logcat shows "..SimSelectNotification: no of slots 2 provision = true

CarrierConfigLoader: update config for phoneId: 0 simState: ABSENT

CarrierConfigLoader: update config for phoneId: 1 simState: LOADED

..."

also, cellular data service in working SIM slot 2 shows "cellular network state disconnected" for "cellular network type EDGE". thank you.
[SuperSU] tuiyaan:
Dear friends

Good evening

i have honor 4x indian version che1-l04 model

when i try to use supersu.zip systemless version i get patching sepolicy--failure abort:crying:

i have attached sepolicy from unpacked boot.img

please help me patch this file

or

run following code in adb shell on your rooted phone and send me sepolicy_out file

adb push sepolicy /data/local/tmp/sepolicy
adb shell su -c "supolicy --file /data/local/tmp/sepolicy /data/local/tmp/sepolicy_out"
adb shell su -c "chmod 0644 /data/local/tmp/sepolicy_out"
adb pull /data/local/tmp/sepolicy_out sepolicy_out

thanks a lot:good:
[SuperSU] Matt07211:
I also had a problem similar to this, I was implementing SuperSu by hand becuse my boot.img is quirky. At one point I had to patch the sepolicy file, so I did it via an emulator.

Check here for up to do it (Note: I used a 64 bit android Nexus Lollipop system image as the emulator).

http://xdaforums.com/showpost.php?p=68764185&postcount=9
[SuperSU] piet3r:
edit: Wrong topic
[SuperSU] Oebbler1:
You can easily get a patched sepolicy file by downloading a custom kernel that already includes SuperSU. Then you can extract the sepolicy file from that kernel to place it into your system.
[SuperSU] danjac:
hey, i'm facing the same problem for my lenovo yoga book...can't flash su cause it fails patching sepolicy.

did you solve the problem? if yes, how did you do that?

thanks for your help.
[SuperSU] tuiyaan:
i tried magisk and phh su method.

https://xdaforums.com/honor-4x/help/honor-4x-che1-l04-mm-6-0-1-emui-4-root-t3475854\

chain fire su is not working (both systemless and systemmode)
[SuperSU] danjac:
great man!!!! it worked for me as well!

thanks a lot. would buy you a beer instantly!:D
[SuperSU] tuiyaan:
Good to hear

Thanks for the offer

Cheers:cool:
[PDA2, XDA IIi, 2020i General] ko kid:
it won't play the ringtone continously when my qtek 2020i is ringing.i tried many ways but it still plays it with pauses.:confused:
[PDA2, XDA IIi, 2020i General] tiraell:
Same here (using XDA IIi ), please anyone help.

Only midi is played right.

Mp3 or wma ringtones are played with pauses, like the was some problem with buffering or something. 2 seconds of ringtone...pause...next 2 seconds :(

And I have over 80MB memory free :confused:
[Huawei P9 Plus Questions & Answers] zukito:
Hi all, got p9+ few days ago, and i was wondering how can i get to wake it Up with double tap on screen, thanks a lot for advices :good: btw, is there an aplication or something like that to do It?
[Huawei P9 Plus Questions & Answers] warea:
"Knock on" app from playstore. You might also like "Glance Plus".
[Google Pixel XL Questions & Answers] Lieu10ant:
This doesn't make any sense to me... I've been watching the Play Store since it's been released now... Where can I get one for normal price?
[Google Pixel XL Questions & Answers] oneandroidnut:
I will sell you mine for $1200 LOL
[Google Pixel XL Questions & Answers] clockcycle:
eh really?

there's phone available all the time every day, they just dont make a lot of them available at one time so all the scalping resellers dont buy all of them out and try to price gouge regular users.

You can set up an add on on your browser to refresh and alert you if text changes ie "out of stock"

There are 5" black 128 available right now

you can also use this to check

http://www.nowinstock.net/electronics/mobilephones/unlocked/googlepixel/
[Google Pixel XL Questions & Answers] Lieu10ant:
I'm referring to the XL (5.5 inch), I've been on the "email watch list" all this time.
[Google Pixel XL Questions & Answers] lordcheeto03:
Yeah, really.

Thanks for posting that site, though, that's pretty interesting. On the other hand, it shows what we're all know about the XL 128GB, and that it's out of stock. Yeah the 5" Pixel 128 in black is available from the Play Store right now, but the XL in any color says what it's been saying from the start: out of stock. Only option there is is to join a wait list, which I've been on since the end of October and have been checking my email almost hourly because of that fact.

Also, somewhat off topic, but still about buying the device: beware listening to the reps at the Verizon stores... I visited a store last night just too actually see one up close and play with it for a minute, and the dude was sitting there telling me that if I buy the Verizon version, they can have a 128GB XL in any color to my door in 3 days. He goes on to add that there's no reason to buy the Play Store version because the Pixel and Pixel XL are Verizon exclusive and will ONLY work on Verizon network... He wasn't telling me that the Verizon variant will only work on Verizon (which iirc isn't true in the first place) but he was telling me that the unlocked, unbranded phone sold straight from Google itself will only work on Verizon.
[Google Pixel XL Questions & Answers] clockcycle:
Well I have posted many many times when it has been in stock, that is why I asked you "really?" you've been checking since it was offered.. The Black XL 128 was available several days last week, so have all the other versions on and off, almost constantly.

You won't get an alert email telling you it's in stock.

I use this add on https://chrome.google.com/webstore/...hg?utm_source=chrome-app-launcher-info-dialog

I set it to refresh the pages every 60 sec looking for key word "out of stock" and to alert me.

I checked right now while replying and there is Very Silver XL 128gb for ordering..

Looks like it's been in and out of stock today..
[Google Pixel XL Questions & Answers] lordcheeto03:
Hmm, Play Store shows it as out of stock for me still... Weird, my apologies.
[Google Pixel XL Questions & Answers] JohnnyDanger:
Today I randomly checked to see if the XL was available, at it was. I added to cart and decided to finance. Finished finance application and proceeded to checkout just to be met with a sorry, this item is not longer available message. So apparently when they become available, they go fast.