yashsingh1/xdaforums huggingface dataset:
[RAZR HD Android Development] hachamacha:
Just curious: Did you download Aroma from me or from the Aroma thread? I have a published up-to-date copy at the URL where I post my downloads (http://d-h.st/ZPU). I think aroma is not on my planet and the dev doesn't change it recently, so it kind of is what it is.

The stuff you mentioned re /mnt/shell/emulated/0 vs. it without the ./0: Yeah, I'm prone to thinking that most people have gotten used to it if they're using JB or Kitkat, and probably want it there so I think that's the deal.

Lastly: I've done a bit of work on trying to get the /persist partition (or any partition not now supported) to be in the backup / restore lists, but so far, my testing doesn't show it working. If you look in the main thread you might be able to see some of my concerns about that, but they're unanswered as of now. I also don't think I've completed all the steps needed to get that to show and work.

In the meantime I'm going to post the version I just built, I think 6.23.2 or 6.23.3. I tested it, and it seems OK. If you see either /persist or /extra* in your backup list, let me know. I've left my changes in so I can just keep trying it on subsequent builds.
[RAZR HD Android Development] aviwdoowks:
It has always been v 1.91 from the xda op.

I will test the new one.

I have been following you over there.
[RAZR HD Android Development] hachamacha:
test versions for /persist : Use at own risk!

I'm going to link to the test builds in this thread (which have absolutely nothing in them for most people so ignore this unless you really care):

My first try here is one where I made changes to the cm11 device tree and a few other places (actually I won't know quite what I did until I organize this recovery repo on my own github account).

Edit:

I pulled the file over to my linux box (extra_part1.tar.gz.a) and did a 'tar tvzf {}' on it. It looks fine, same as it did when I had it mounted and stared at it, file sizes seem correct, etc.

Edit2:

I added some xattrs to file_contexts. Hopefully it'll restore. If not, have some other ideas.
[RAZR HD Android Development] aviwdoowks:
Will not restore the extra part.

Good news: the screen input works! Not bottom menu though (virtual keys). I just never tried it before this test.
[RAZR HD Android Development] Phil3759:
As i said, you have to set the selinux context in partition to format it
[RAZR HD Android Development] hachamacha:
Yeah, it seems I must have done something wrong with the selinux setup. I'll check it out on the next run. Screen Input works? Great ;)

error: make_ext4fs_internal: cannot lookup security context for /extra_part1/
E:format_volume: make_ext4fs failed on /dev/block/platform/msm_sdcc.1/by-name/persist
Error while formatting /extra_part1!
press any key to continue.
I:Can't partition non-vfat: /storage/sdcard1 (vfat)
I:setting up /data/media(/0) for /sdcard.
I:using /data/media for /sdcard

Thanks for the log, very useful.
[RAZR HD Android Development] aviwdoowks:
I think this is ready to be dubbed beta unified build?
[RAZR HD Android Development] hachamacha:
Possibly: I have a few pages (or more) of selinux info to read about to figure out what the flags should look like that I need. With luck, it's just a few flags of the ilk "rootcontext=system_u:object_r:{something}_t,seclabel" in the fstab, but I don't like dumping things in there without understanding them.

I'm pretty sure it's not necessarily of use, but if I adb into my phone and open terminal , then do

"ls -Z -d /persist", I get:

drwxrwx--x system system u:object_r:persist_file:s0 persist

and that seems a good clue but I'm not 100% that the /persist fs is normally mounted writeable since every file in it on mine is dated 2012.

Oops: I was wrong: The /persist fs is mounted rw as follows:

mount | grep persist
/dev/block/platform/msm_sdcc.1/by-name/persist /persist ext4 rw,seclabel,nosuid,nodev,noatime,nodiratime,user_xattr,barrier=1,data=o
rdered 0 0

but it's not a useful (at recovery time) mount for me.
[RAZR HD Android Development] Phil3759:
just answered in main thread how to add selinux permissions
[RAZR HD Android Development] hachamacha:
Another test version in post 30

Thanks Phil,

And another test version (version 4) is in post 30. As before I only tested backup, not recovery. If it doesn't work I have 2 ideas to go thanks to Phil and ketut.kumajaya. Also one of my own but mine looks the clunkiest in the code.

By the way (for everyone): There's a new version out so as soon as I'm a bit more organized, have this restore working, and can reliably do a 'repo sync' without clobbering my changes and caring, I'll sync and build it.
[RAZR HD Android Development] aviwdoowks:
Same.
[RAZR HD Android Development] hachamacha:
Ok, thanks for trying. Next one should be soon. Maybe I'll bite the bullet and give it a shot myself. I think the worst than can happen is that I'll restore it via adb after boot if it does something weird. I suspect I did the "correct" thing but put it in the wrong place in the file.

I'll try an fstab method next and only post it if it works.
[RAZR HD Android Development] hachamacha:
My last try for the day: What I've found (you can ignore all this and just try the one file linked to in post 30) is that the same named files exist all over the tree, and that's fine and it makes sense to me, but not being used to cm11 I didn't know for certain which one's were good for my purpose.

My last try which is in the test-* image now, was from the files_context file in the ./device tree. It "appeared" to work for me on a backup and a restore, but I'm not 100% sure I believe it due to the same dates and times being on the files. On the other hand, tar can easily do that, so it maybe is good now.

Good luck ;)
[RAZR HD Android Development] Phil3759:
Depends on the flag:

+= will merge to core se context

= will only use files from device

So better add it in device tree if it has such a file

You are not risking a lot. The format actually is failing. If you can format, the restore will go on
[RAZR HD Android Development] hachamacha:
OK: Still trying. I move the comment above to the main thread so others can see, comment, kill me, etc. I'm going to make a few notes, do a repo sync on the latest code, and start fresh with this since I think I've got a decent place to make changes where they have an effect, regardless of whether the effect is working right. I'm still too fresh with the selinux flags to have any confidence that they're doing what I thought they did.
[RAZR HD Android Development] aviwdoowks:
My /persist is now timestamped for today! Good job. I have a log but I got no err.

Edit.

I only tested using custom bu to sdcard1 for cache & extra part.
[RAZR HD Android Development] hachamacha:
Cool! Thanks for the info. I've just fetched the latest git, and have tried to duplicate what I thought was the important parts for that type of change. Now of course, I'm not able to build so might have to clobber it and restart. For this thread, I might just integrate it into the regular build to avoid confusion since I can't imagine many people backing up and restoring 'extra_part1" unless they know what they're doing..
[RAZR HD Android Development] aviwdoowks:
Good! Std equipment! Yes.

Maybe you could end up with all partitions in a backup! Wow!

---------- Post added at 06:39 AM ---------- Previous post was at 06:33 AM ----------

Finally we could have a complete backup. Am I missing something in the big picture here? Koush tell me it ain't so.
[RAZR HD Android Development] hachamacha:
There's always a catch, and I'm not sure what it is, but one concern is that I haven't yet spent much time actually using the recovery. When I just stare at that page called I think "advanced or custom backup/recovery", I realize it's pretty full, and that having added one partition, I can't quite figure out what the paradigm was for putting more stuff on a single page. Maybe that's a catch for the moment (for adding partitions).

Anyway: I'm back to having some problems just building the latest version, so maybe I'll take a break and spend some time just trying to use all the screens and see if there was provisions for 'scrolling' that I missed. I'd hate to just keep making the font smaller to fit stuff on a page but maybe there's another setting. I have to take a good look at the 'settings'. As soon as I can build again (and have time after work) I'll get the latest up here.
[RAZR HD Android Development] aviwdoowks:
Each page is self scrolling.
[RAZR HD Android Development] Phil3759:
what is this scrolling issue?

can you detail exactly the bug?

did you modify sources?
[RAZR HD Android Development] hachamacha:
Great, thanks. That takes care of that. Like I said, I need to spend time using this recovery.
[RAZR HD Android Development] hachamacha:
Turns out there is no issue. I've been using your recovery just for actual backups and restores, but haven't explored how all of it works yet. Scrolling was just a question of mine. Turns out it's fine. No, didn't modify your sources.
[RAZR HD Android Development] hachamacha:
New version.

Latest version: 6.23.8 is in OP. Incorporates test changes from earlier in this thread. Tested on my phone. (xt926).

Edit: I'm going to take some time to get this thing organized in my github before any other changes. Like everything else here, I'm pretty new to using github so it might take me a day or two to get the linkages right.
[RAZR HD Android Development] aviwdoowks:
Great job.

Do you know the time keeping is off?
[RAZR HD Android Development] hachamacha:
Thanks. I just did a backup and the time seems to be right on mine. Is that what you're talking about or file timestamps or something else? I've got mine setup for PDT and it seems to be handling that part right. My replying is going to be slow, got injured in my left arm yesterday, so because of some nerve, the hand is out of action for awhile (month?, not sure). I'm slowly pecking things out with my right hand.
[RAZR HD Android Development] aviwdoowks:
I looked. Where do I go set time?

---------- Post added at 08:46 AM ---------- Previous post was at 08:23 AM ----------

Sorry about your injury! Massage therapy might help. Pm me w/ details.

---------- Post added at 09:02 AM ---------- Previous post was at 08:46 AM ----------

I found it. There are 3 x box options which should I choose?

As is I am 2 hrs slow on Pacific time + dst.
[RAZR HD Android Development] hachamacha:
I see my time is right. I'm in California so UTC-8. Under Time Settings, I've chosen UTC-8:00 - Time Zone Offset +0, DLST: (x).

Good luck. Maybe you need to revert all your settings to default for some reason. Should be no change in this from the last setup though.
[RAZR HD Android Development] hachamacha:
6.24.6

Another new version: 6.24.6

Changelog in OP. I also noticed in the current last post by Phil in the main thread this line:

Whether or not that had anything to do with anyone having time/date problems, I don't know since I didn't have them myself, but maybe.
[RAZR HD Android Development] hachamacha:
6.24.8

New version up (6.24.8). See OP for changelog. (updating my github).
[RAZR HD Android Development] aviwdoowks:
The one handed wonder! We are synced with the sammy guys thanks to you!

Btw do you think koush's sorting of ABC followed by abc could be done away with? But it must be coded in the cwmr base. So unlikely right.
[RAZR HD Android Development] hachamacha:
Lol! Yeah, the first forum guy to need his own "cornerman". I'm guessing you answered your own question about sorting, but honestly I haven't yet noticed it so will take a look in there to see it myself. I don't think that stuff , say in recovery.c or nandroid.c is 'hallowed' or completely off-limits but it does make 'syncing' with the mothership more complex.

Whenever I started doing this, I looked at the md5 code in nandroid and thought it was kind of wasteful (it just exec'd a shell script that used $md5sum), but it's been recoded I think this week, and it's just the way I'd have wanted it so apparently it can be done.
[RAZR HD Android Development] aviwdoowks:
From Phil...'s last post in the main thread, it seems we will be dropped from HIS support. Which is totally understandable to say the least. He has put CWMR into a such a wonderful state!

Which begs the question about about rootsu's comment on ownership (oblique?) & your role in this change?
[RAZR HD Android Development] Phil3759:
I dropped direct release of this device because you already have a developer on it. Same for hammerhead, Sony...

I see no reason to waste my time when a dedicated user took the lead releasing it for you

It is the best thing that can happen to you: you have a dev owning the device, maintaining the recovery and releasing near nightly updates from my git repo
[RAZR HD Android Development] hachamacha:
From my viewpoint, not much is changing. I wandered into this thing just wanting an up to date version for my phone (xt926), and at that time, support for it had already ceased (as from the outputs on goo.im in ./xt926) pre-unified days. So I built this, and when I keep the thread format correct (meets the originator's spec), he moves my output images to the unified spot (goo.*./moto_msm8960), which will continue happening. He doesn't want to waste all his time making individual device images, but wants them to be supported (by those of us who will).

All of it is gray. Many of the device-specific guys (Shoey, ketut, etc) make some great additions and modifications that get pulled into the original source as long as their githubs are clean, so even the 'original' isn't just one person, more a collaboration.

In this project over in the main thread, I've asked a few questions and gotten answers (they don't all show up in the thread) for most the things so I guess I feel supported regardless of any official statements.

---

The thing I always seem to need to do is to spend a couple hours just messing around with the phone booted into recovery because I know there's a few things that bug me about it but the truth is that I was pretty thrilled the first time I saw any of the recoveries on a phone, pre-touch, pre-addons, just backup and restore (nandroid). With this recovery, I'm not sure which is more fun, booting into recovery or booting up into my ROM ;) Add a dialer function to the recovery and I'll forget the damn ROM.
[RAZR HD Android Development] Phil3759:
about sorting order, you can pull this commit:

https://github.com/titanic-fanatic/philz_touch_cwm6/commit/2c99c10b0b37bdcf4c100a469faca6696b1f76b2

Let me know how it works, I plan to pull it too
[RAZR HD Android Development] hachamacha:
That commit looks "backwards" to me. The line that would be added (if (curMax == -1 || strcmp(files[curMax], files[j]) < 0)) is already in your extendedcommands.c file and the line makes sense to me. The line with the (-) that does a "tolower" on the compare parms seems like it would do what is being mentioned above by aviwdoowks.

Or have I just gone dyslexic?

Edit: Just to confuse it more:

This is what is currently in titanic-fanatic's git for extendedcommands.c:

// sort the result
if (files != NULL) {
for (i = 0; i < total; i++) {
int curMax = -1;
int j;
for (j = 0; j < total - i; j++) {
if (directory_sort_insensitive.value){
if (curMax == -1 || strcmpi(files[curMax], files[j]) < 0)
curMax = j;
} else {
if (curMax == -1 || strcmp(files[curMax], files[j]) < 0)
curMax = j;
}
}
char* temp = files[curMax];
files[curMax] = files[total - i - 1];
files[total - i - 1] = temp;
}
}

return files;
}
[RAZR HD Android Development] Phil3759:
Sorry, linked you to wrong commit:

https://github.com/titanic-fanatic/philz_touch_cwm6/commit/4b1d2f86543cb9ce1191e0e346a2766357b97738

He reverted it later to add a toggle in further commits
[RAZR HD Android Development] Phil3759:
He added a toggle to support it through these 2 commits:

https://github.com/titanic-fanatic/philz_touch_cwm6/commit/379851771f730ac1490b6f4e67b1ba2fbe364abf

and

https://github.com/titanic-fanatic/philz_touch_cwm6/commit/234a19ec882037f649a4f438a2c8664adf3f8514

By the way, his xda member name is [MENTION=4859152]titanic_fanatic[/MENTION]
[RAZR HD Android Development] hachamacha:
Yep, I just noticed that when I clicked on the 21-day old commit version. Thanks. I'm trying it.
[RAZR HD Android Development] aviwdoowks:
I am out of thanks atm. But for you I am truly thankful.
[RAZR HD Android Development] hachamacha:
From reading it, it looks like that ought to do it but ... I've also got to kill some intermediates to make sure my build is coming through because I have the 6.25.0 version, but I'm suspicious since the size didn't change with the c code change.

For clarity, the problem we're talking about is during installation of zips when uppercase names show sorted among themselves above lowercase names sort among themselves. Is that right?

Give me about 30-45 minutes to clobber, rebuild and I'll put an answer in the main thread.
[RAZR HD Android Development] hachamacha:
Build complete and tested:

This change:

for (j = 0; j < total - i; j++) {
- if (curMax == -1 || strcmp(files[curMax], files[j]) < 0)
+ if (curMax == -1 || strcmp(tolower(files[curMax]), tolower(files[j])) < 0)
curMax = j;
}

doesn't fix the problem I described regarding uppercase trumping lower in the sort.

I need to look at the code more carefully and see what would fix that.
[RAZR HD Android Development] TecknoFreak:
What is not working with this version?
[RAZR HD Android Development] hachamacha:
Actually everything is working as it has with a few improvements for 6.25.0 (which I'm not ready to post yet). The only little issue that has been there for a long time (many versions) is when you're installing zips. The symptom is that the uppercase files/folders seem to win out in the sorting order and show up at the top of the list. Not a big deal, but no-doubt repairable.

I might just post it anyway as it is or I might try to find a fix for it beforehand.
[RAZR HD Android Development] aviwdoowks:
The ABC followed by abc has always bothered me anyway.

Minor issue but when you have 64 gb's of files...
[RAZR HD Android Development] hachamacha:
New test version for case-independent zip list.

Anyone interested can try this one:

Change log:
29-Mar-2014
[INDENT]- added a strcmpi routine mostly courtesy of titanic-fanatic that allows case to matter during the sort.
- Used it when sorting zip files.
[/INDENT]
Download: [URL="http://d-h.st/ex7"]philz_touch_6.25.0-moto_msm8960-test.img[/URL]

If it appears to be good, I can put it up in the OP, but I need to run this by Phil first since it involves changes to the core recovery.
[RAZR HD Android Development] aviwdoowks:
Bingo!

You did it.

Thank you.

---------- Post added at 03:52 PM ---------- Previous post was at 03:45 PM ----------

I hope all your progress gets incorporated in the main support.

I am moving to the x & the vzw edge deal needs a phone to sacrifice. It will be my M as it will not work as a phone.
[RAZR HD Android Development] hachamacha:
Cool! I considered getting one, but still have the unlimited data deal, so now and then I get a used phone when they drop in price and carry on. I think I've only had the xt926 for about 4-5 months and still like it too much to get something new. If something new and nice with an unlocked bootloader shows up in a few more months I'll probably move along.

As far as the main thread, it sounded like Phil was thinking about incorporating one of the commits to do this thing ^^ so maybe this'll get there. Actually if I'd had time I would've applied titanic's entire patch set that makes this a choice (even though I'd always use it set this way). Choices are good.
[RAZR HD Android Development] aviwdoowks:
The x has a unauthorized ul but it may not last long. The x is maybe the best/last phone moto has/will ever make.
[RAZR HD Android Development] hachamacha:
Yeah, but even if it was knocked down by an OTA, there's a developer version, or at least there was when Motorola was owned by Google not so long ago. Nice phone.
[RAZR HD Android Development] hachamacha:
v6.25.2

New version:

6.25.2

- incorporates case-independent sort for file display. Available in OP.
[RAZR HD Android Development] aviwdoowks:
No it is a Chinese/Lenovo insider doing it. For Ultra/x only.

Got the X today W/ 422!!! So easy root & no MotoWPnoMO needed.
[RAZR HD Android Development] hachamacha:
Cool! I'll have to look at the device forum for it. I usually watch them for a week or so after good phones come out.
[RAZR HD Android Development] hachamacha:
v6.25.4 -

New version in OP.
[RAZR HD Android Development] aviwdoowks:
The U. A. UL is fini! I missed it.

I noticed that aroma works in/from the ss 365 on the x. Care to hack a ss version of Phil'z ? LOL.
[RAZR HD Android Development] hachamacha:
I read a few pages about it in the Ultra threads and had a feeling it would vanish pretty quickly. Oh well, sorry to hear it. Isn't there still other means to get 422 moto x unlocked? I see the jcase threads, etc. There's a student deal on the dev moto X for 339 I think which is pretty good. Just need an .edu email but I'm still digging this phone. What is ss 365?
[RAZR HD Android Development] aviwdoowks:
safe strap for the x/ultra v365.

On the x it is not that bad on stock 422.

I have the latest radio from 442. I want to find all the subsequent ota's & get up to the last 422. I do not know if I could just flash the last 422 with rsd? Do you know?

A SafeStrap ver of philz! Lol!
[RAZR HD Android Development] hachamacha:
New version for new devices: 6.25.9

See download/notes in OP.
[RAZR HD Android Development] hachamacha:
new version : 6.26.4

6.26.4

- update libloki to latest sources

- broken root: help victims of bad custom ROMs

This adds extra code to detect if two su instances are installed in /system/bin and /system/xbin

It will kill both and properly apply SuperSU

- fixing root on exit was never done what ever was user choice

Link in OP:
[RAZR HD Android Development] Phil3759:
Updated xt925/926 threads to link to your thread :good:
[RAZR HD Android Development] hachamacha:
Another update : 6.26.6 in OP

6.26.6

- m7 unified for m7ul, m7att and m7tmo

- CWM 6.0.4.8

- merge support for native dual boot devices

- sync sources
[RAZR HD Android Development] aviwdoowks:
So is the moto x in sync with this now? I see the same v up as this, is that you?
[RAZR HD Android Development] hachamacha:
Can't type much for a bit due to injury, but here's what I think: Moto X see below:

Motorola Moto X variants:

- VZW (xt1060)

- GSM (xt1058)

- TMO (xt1053)

- US Cellular (xt10

If there was a unified build for those, it would be for ^^ those, maybe the newer Maxx and Ultra, or whatever is using the 2/8 core msm8960-pro so I'm pretty sure it's Phil doing that. My unified build is for the sort of 2011-2012 list of msm8960 stuff. How's life on the Moto?
[RAZR HD Android Development] TecknoFreak:
Dude, this is freaking awesome thanks for your time and for developing this the right way taking weight out off Phil
[RAZR HD Android Development] aviwdoowks:
Without root? Good. The x is the best phone for signal, audio & hand-ability. But I am a die hard moto fan.
[RAZR HD Android Development] hachamacha:
Version : 6.27.0

See OP:

6.27.0

- MTK support: fix backup & restore of boot/recovery/uboot partitions

- MTK devices: improve error handling of partitions size

- do not consider su symlink in /system/bin as a broken root

- New: Amazon Kindle Fire HD 7 (tate)

- New: Amazon Kindle Fire HD 8.9 (jem)

- New: Galaxy S5 SM-G900H Exynos variant (k3gxx)
[RAZR HD Android Development] TecknoFreak:
Thank you sir
[RAZR HD Android Development] hachamacha:
New version 6.27.2

Thanks TF:

In OP, new version for download: (some nice additions)
[RAZR HD Android Development] TecknoFreak:
Great will flash right away
[RAZR HD Android Development] emel-iine-6z:
please this recovery work with nightly builds: http://www.cmxlog.com/11/moto_msm8960 ?