yashsingh1/xdaforums huggingface dataset:
[Motorola Droid 4] Dakkaron:
I tried reverse engineering the whole thing, since I could not find any documentation on that. All I found was that the safestrap app contains that file ss.config and 2nd-init.zip which both seemed to be what I needed. Modifying it where it was installed to did not change anything. So I tried to modify the files before installation (under /data) and then run the installer so that it would put the modified files to where they would need to go. Is the recovery ramdisk.img the one under systemorig/etc/safestrap/ramdisk-recovery.img? Modifying a ramdisk image is not a problem, I just needed to know where to start.

Thanks a lot for your answer, and also thanks a lot for your work with safestrap!
[Motorola Droid 4] daniel_m:
Just a word of warning to others who are as stupid as me and mess with ramdisk.img in CM13:

LuH's ramdisk kitchen works well when the scripts are executed with sudo and when the ramdisk is copied to /system/etc/kexec manually. Installing ramdisk-update.zip can brick your phone and yopu might need to re-flash with RSDLite.

Also, don't touch "init.target.rc"!

PS: Great to see that there are so many people here trying to make the Droid 4 a better device :o

Edit

Some final words:

I reached the end of the road.

After formatting mmcblk1p25 to ext4, my Droid gets stuck after the Motorola logo and before adb gets started.

This was my last hope to get CM13 to work with Link2SD and have enough space for my apps. I won't go the Google way and sacrifice my 64GB SD-card as "internal memory", leaving me with a mere 8GB for Music, videos and pictures. Google managed to make Android 6 (and 5) too restrictive for my taste and successfully break SD-cards.

Back to CM11. The last Android with a glimpse of freedom :(

Edit 2: Droid 4, rest in peace. Good bye XDA.
[Motorola Droid 4] sweetsuicides:
Hello everybody and sorry for the stupid case I'm going to present you with:

I had a working cm11 installa in a virtual slot, but I decided to go for the Safe Slot with this TWRP.

I dowloaded the unofficial cm-11-20160104-UNOFFICIAL-maserati.zip and its counterpart cm-11-20160104-unofficial-ramdisk-unused-partitions.zip .

I did the following: went to the old safestrap, chose the stock rom, deleted the old virtual slot, went in the stock rom, uninstalled the old safestrap and installed the new safestrap.

In the meanwhile I unpacked cyanogenmod and copied over the files from unofficial-ramdisk-unused-partitions.zip . I rezipped it and copied it over to the phone's memory.

After reboot I was presented with the new Safestrap, where I activated the Safe slot, tried to install this modified zip and was given the message that it was not possible to mount either /data nor /cache. I then tried to perform a factory wipe on it and the message I got is:

"

Formatting Data using mke2fs...

Done

Formatting Cache using mke2fs...

Done

Updating partition details...

E:unable to mount '/data'

E:unable to mount '/cache'

"

Thank you very much for your patience,

sweetsuicides
[Motorola Droid 4] sd_shadow:
why would you do that?
[Motorola Droid 4] sweetsuicides:
Hi, why would I try to install CM11 into a safe slot or why would I try to format the safe slot?
[Motorola Droid 4] sd_shadow:
copy ramdisk files to rom.zip

just install them separately
[Motorola Droid 4] sweetsuicides:
Thanks SD_shadow, I was able to flash cm11 and the ready made flashable ramdisk zip. I tried to use zone of the latest opengapps kitkat nano, but I always get multiple Google services unexpectedly crashed messages. I will try with a later version. Thanks again.
[Motorola Droid 4] joefuf:
Might be a little late to the party, but I never noticed this thread.

What is the difference between this Safestrap and Hashcode's 3.75 version? Is it just that it takes advantage of the /webtop and /preinstal partitions?
[Motorola Droid 4] sweetsuicides:
I tried with a later opengapps versione but I always get the same issues: wifi sometimes is off, "Google Play Services has suddenly stopped working". Do you have any suggestion about this?
[Motorola Droid 4] sd_shadow:
yes, and removed safestrap boot screen
[Motorola Droid 4] joefuf:
So there's an extra couple of gigabytes (is there a number?) on the stock partition? Or does that space get allocated elsewhere?
[Motorola Droid 4] sd_shadow:
/system cannot be used as as storage

partition sizes cannot be changed
[Motorola Droid 4] Throbin_Wood:
void
[Motorola Droid 4] u.b.o.o.t:
I want to give Mentor37's Safestrap a try but have some questions first:

Currently, I have Stargo's Safestrap installed which has been modded for CM13.0 and SELinux support: https://github.com/stargo/android_packages_apps_Safestrap/releases/tag/v3.75

=> Does Mentor37's Safestrap support SELinux / CM13.0 too?

I guess not because I tried to simply install it over the existing 3.75 Safestrap and it didn't work, complaining about a different signature...
[Motorola Droid 4] moodroid:
I know this doesn't help much, but I'm pretty sure I installed Mentor37's Safestrap over version 3.75, and it worked fine.

However, the last time I tried to do a clean install of CM13 in the safe slot, it failed. Does anyone know if the CM13 ramdisk has changed recently?
[Motorola Droid 4] Mentor.37:
Sure, this version is based on Safestrap 3.75 built by stargo, they have different signature because obviously I could not sign it with someone other's signature.

Yes, the ramdisk has been changed and to install a recent version of the cm13 in the safe slot you have to build your own new ramdisk.
[Motorola Droid 4] u.b.o.o.t:
Thanks [MENTION=5003013]Mentor.37[/MENTION]!

But how to install your version? Simply installing over the existing one as stated in Post #1 does not work.

Is there a way to force-install your apk?

Or should I leave recovery as is and just uninstall existing apk and then install your apk?

Or should I uninstall recovery, uninstall apk and then install your apk and reinstall recovery?

I do not want to loose my existing virtual slot 1....

Does Safestrap simply look at the presence of img files on internal sdcard to determine which slots are there?

Or are there additional configuration files in /data that get lost when uninstalling...?
[Motorola Droid 4] sd_shadow:
just uninstall old safestrap, install new, nothing is lost
[Motorola Droid 4] u.b.o.o.t:
Ok guys, thanks for all help!

I managed to get CM13 working on safeslot - together with Open-Gapps-pico which leaves 16MB on /system

Attached you'll find:

* Recovery zip file with patched ramdisk for cm-13.0-20160526-NIGHTLY-maserati

* Bash script for automatically splitting ramdisk.img into cpio.gz-Files

Have fun :D
[Motorola Droid 4] Platonikos1994:
Maybe stupid question

Mentor, please excuse my stupid question, but which is that main thread you mentioned?

It seems I can't find it.

And how about switching back to original ramdisk if for example i want to install the stock ROm in

Safe Slot one time? Can I just back the original ramdisk up and reuse it later?

Otherwise great project, thank you very much!
[Motorola Droid 4] sweetsuicide:
Hi, I am trying again to install a rom in the safe slot. I am going for CM13. I downloaded the .zip file from cyanogenmod and followed the instructions (extracting ramdisk, splitting it, unpacking it, substituting fixboot.sh, repacking and concatenating it). I am really sorry, but I don't know how to create a flashable zip for it: I looked inside the META-INF folder and I found a cryptographic key and a couple of filelists with sha1sums in it. Is there an easy tool to use in order to make a bootable zip for the ramdisk? Thank you very much for your time and your patience.

regards
[Motorola Droid 4] u.b.o.o.t:
[MENTION=7751991]Platonikos1994[/MENTION], [MENTION=5702682]sweetsuicide[/MENTION]: You can copy the ramdisk manually from within safestrap with file manager - it goes to /system/etc/kexec - but you have to mount system partition first, mind you. The same way you can restore the original one - just extract from cm13.zip file to somewhere on internal or external sd-card.
[Motorola Droid 4] sweetsuicide:
Thank you very much, [MENTION=309785]u.b.o.o.t[/MENTION] . That was a precious piece of advice. Unfortunately, I tried with two different cm13 "stable" releases (the latest one leaves too little storage even for the pico gapps), but in both cases I ended up with a bootloop. I'm worndering what's wrong with my efforts.

cheers
[Motorola Droid 4] Platonikos1994:
Thank you!

Thank you very much for your answer. Excuse my late response, i'f been busy at work and so on. Sorry for English mistakes, I'm German and my last English lesson was some years ago.
[Motorola Droid 4] sweetsuicides:
Hello,

I'm really sorry if I'm writing here. I wasn't able to find any help in the help section.

I believe that this question belongs here, so forgive me if it doesn't.

I was able to get CM13 working on the safe slot.

The \data partition is obviously too small for a "normal use" (e.g. whatsapp AND facebook messenger).

I was wondering if it was possible to use the "adoptable storage" option in Marshmallow in order to circumvent the issue.

I am wondering if this could work as:

- (this) safestrap contains hardcoded mounting information for the partitions, so maybe it's not possible at all to do such a thing

- the phone hardware has some limitations (maybe at power or kernel level) making it impossible to implement the feature

If it were possible, would it be wise to use the SDSwap mod in order to use the ACTUAL external SD and not the "sd" eMMC partition for that purpose?

Thank you very much for your patience and your help
[Motorola Droid 4] rabinhood:
Safe slot is too small for CM13+gapps. You have 3 choices: 1. Use slot-1 etc. 2. Use stock "slot". 3. Manually remove some files from CM13 zip (sounds, boot animation, some apps), flash it, install the smalest gapps package (was it "pico"?), and hopefully you'll be able to boot from safe slot, but such "crippled" system won't be very usable.
[Motorola Droid 4] sweetsuicides:
Thanks, man.

I believe that if you use pico gapps around march 2016, they will fit with no issues.

My question actually revolves around the chance of using the "adoptable storage option" or the likes.
[Motorola Droid 4] timangus:
Is the source code to this available anywhere? I would like to experiment with using different combinations of webtop and preinstall as installation partitions and obviously I need to modify the recovery in order to achieve this. It would be nice to be able to build on the work here rather than start from scratch.
[Motorola Droid 4] sd_shadow:
github.com

---------- Post added at 09:22 PM ---------- Previous post was at 09:02 PM ----------

https://github.com/stargo/android_packages_apps_Safestrap/releases/
[Motorola Droid 4] timangus:
Unless I'm spectacularly misunderstanding, that's the source to stargo's fork of Safestrap, not Mentor.37's modified version of it?
[Motorola Droid 4] Buglol:
He had modified the ramdisk of recovery, he did not build it from source.
[Motorola Droid 4] timangus:
Ohhhh, OK. So effectively the build itself is the source. Will take a closer look later.
[Motorola Droid 4] timangus:
So I eventually got around to this. Here it is: https://github.com/timangus/droid4 . Basically it's a way to use the /webtop partition as /system so that you can fit a gapps package on there easily.
[T-Mobile LG G3] YourWorstFears:
so for the past month ever since i went from stock to a custom rom my Google backup has not been backing up my phone. and since i got to do clean flash several times it is really annoying to be setting up my phone to my liking. is there a way in fixing this issue. i always had backup and restore turned on in the settings.:crying:
[Samsung Gear S] cipherswitch:
reserved
[Samsung Gear S] cipherswitch:
really reserved
[Samsung Gear S] cipherswitch:
really really reserved
[Samsung Gear S] Megaflop666:
Screen shots look amazing so far! I'm chomping at the bit for this theme. Are you going to make a write up on how to make these themes?
[Samsung Gear S] crazyshakespeare13:
Looks great!
[Samsung Gear S] cipherswitch:
Added Doctor Who icon theme v1.0, future update will include notification sounds and such.
[Samsung Gear S] cipherswitch:
The contents in the themes can be pretty easily edited, it gets tricky once you start dealing with layers and transparencies and such. But yes, I will probably do one later on how to make one from scratch.
[Samsung Gear S] Megaflop666:
The latest theme works like a champ. Mixed with my doctor who sounds, the watch is complete. Thanks
[Samsung Gear S] Megaflop666:
[MENTION=2242705]cipherswitch[/MENTION] - I've been playing with the watch some this evening and noticed that sluggish feeling is back after installing doctor who theme v1.0. Any thoughts?
[Samsung Gear S] cipherswitch:
Yeah same here, if I had to guess its that some of the icons are a hair bigger that the stock ones, I'm reworking it tonight and adding in the notification sounds and ringtones so that they are already in their respective menu options. I should have it up between today and tomorrow.... Im just not happy with how that weeping angel turned out.
[Samsung Gear S] Megaflop666:
Cool. All in all it turned out good for your first attempt at a watch no one else seems to be messing with. Your paving the trail for everyone else to follow.
[Samsung Gear S] cipherswitch:
Lag fixed far as I can tell, icons are all correct size ( with the exception of the news briefing one, leave it to samsung....) and just a hair different from the original. This was just a quick one to get rid of the lag, I guess lesson learned. I'm still doing another one later on with sounds and such. Im making a main template so its easier for new themes.

Doctor Who v1.1​
[Samsung Gear S] Megaflop666:
Still a bit of lag. In a little bit I'm going to reset it using the latest root file for tmo, then remove shealth and then run the latest doctor who and see if it clears up. Make sure there's nothing residual slowing it down. Damn flu has my head foggy so I'm hoping it'll clear up when this theraflu kicks in
[Samsung Gear S] jace985:
Nice thanks!
[Samsung Gear S] Megaflop666:
Did a factory reset, it kept your icons and everything else. Lol. Restored it to factory default, rooted it, killed shealth, and applied doctor who 1.1 and most the last seems to be gone. There's still a little bit, but all in all its going good. Thanks [MENTION=2242705]cipherswitch[/MENTION]
[Samsung Gear S] cipherswitch:
i've been messing with the CPU clock too... dont know if its worth a slight tweak on that part, it might help.
[Samsung Gear S] Megaflop666:
Got a file for it? I'll test drive it with you.

I wish someone would do a full android port for this watch. It would make life so much easier.
[Samsung Gear S] cipherswitch:
Its the damn bootloader security thats preventing it, mind you I've made alot of progress in Tizen, but I'd push an Android port in a heartbeat. Right now I'm focused on a custom version of Tizen and root for the sprint/verizon folks. Once everyone is rooted, then everyone can move forward at the same time. Strange side note, the original gear that came with android and was later upgraded to tizen is STILL getting updates to the android software on the japanese version even though all the other ones are getting Tizen updates and the japanese Gear S (R750R4) had the latest firmware update for months before we even heard of it. So its closer than you'd think. Im still working on the cpu file, I ran a whole day with my watch in engineering mode with a slightly faster cpu clock and SO FAR it hasn't exploded.

but seriously, we gotta thank Samsung for making this crap hard and for the R750, R750P, R750W, R750A, R750B, R750V, R750K, R750R4, R750D, R750T, R750S and the R750J. Just in case 3 variants wasn't enough.....
[Samsung Gear S] Megaflop666:
As I told my wife, this is probably the last Samsung device I'll buy for my self. She wants the s6 or s edge when they come out, but I'm done buying their crap for myself.
[Samsung Gear S] cipherswitch:
Added Android Lollipop theme

Lollipop v1.0​

Complete with all the Android Lollipop icons, notification sounds*, ringtones* and wallpapers*!!​

*This theme will delete all STOCK ringtones+notifications (if you haven't already), replace them with the ones from Lollipop and ADD all the Lollipop wallpapers.

All custom ringtones+notifications+wallpapers will remain untouched.​
[Samsung Gear S] cipherswitch:
ur welcome....I personally like the Lollipop theme over anything else right now, it makes it feel like a different watch.
[Samsung Gear S] romanlopez01:
sound settings

after install the lollipop script, the sounds settings is not working (freeze)
[Samsung Gear S] cipherswitch:
Did you have any custom sounds loaded prior to installing it?
[Samsung Gear S] romanlopez01:
nope, nothing.
[Samsung Gear S] cipherswitch:
Run revert to stock and then re install lollipop
[Samsung Gear S] romanlopez01:
i reinstall again but nothing happens
[Samsung Gear S] cipherswitch:
Firmware version? Watch model?
[Samsung Gear S] romanlopez01:
model: SM-R750T

software: R750TUVU1AOA7
[Samsung Gear S] cipherswitch:
found the issue, totally stock users with just root and not using custom alert/ringtones will run into it.

Lollipop Theme v1.2 now available.

The installation script doesnt mess with stock sounds at all, it just adds all the new ones. Once you choose either a Lollipop or custom ringtone and/or alert sound, there are 3 separate scripts. One will remove all stock ringtones, One will remove all stock alerts/notifications and the 3rd puts them all back.

If you have a stock ringtone or notification sound chosen and you run the script to remove either, you UI will freeze until you put the sounds back and choose something non stock.

Thank you for your feedback [MENTION=3115687]romanlopez01[/MENTION] , I rely on you guys so I can fix any bugs.​
[Samsung Gear S] jesussmaria:
big job!! thanks
[Samsung Gear S] romanlopez01:
thank you [MENTION=2242705]cipherswitch[/MENTION] for made this possible
[Samsung Gear S] cipherswitch:
No not included, but it can, I'm wrapping up some new root firmware for some new countries now, but I'll wedge it in the queue . The font packs need a smidge of tweaking to work on the watch format but its doable. Should have it up in the next day or two.

ok, i want it now, front of the queue..... :p
[Samsung Gear S] cipherswitch:
Obviously I will integrate this into the Lollipop theme install, but for those eager users out there....

Android L Font - Roboto

Download. Unzip. Click the script.​

[MENTION=6051741]stkpxl[/MENTION] - enjoy.... thanks for the feedback
[Samsung Gear S] cipherswitch:
Updated lollipop theme to 1.2 - now includes Roboto Font.

Lollipop Theme 1.2​
[Samsung Gear S] cipherswitch:
The watch SDK isnt out, so the "only" way to do it is some app that hogs up processing power and uses the "show last screen" option on the watch. Now, that being said, the stock watch faces can be modified. However I will admit Im kind of lacking in inspiration as to what the watch face would look like. I'm intrigued by the idea though...I'll do some digging today and see if I cant get any ideas.
[Samsung Gear S] Splendid-XDA:
I made this is theme.

iOS8 Theme.

thanks
[Samsung Gear S] cipherswitch:
well any of the faces can be modded, I personally always use the 3rd face and could really not care for the rest, but any one can be modded and put over any other watch face. Im surprised nobody has posted a modded watch stock face, I provided that file pack a while ago and its had 200+ downloads.
[Samsung Gear S] cipherswitch:
if you know gimp, the rest is easy. the faces are basically broken down into like 40-50 png's. putting them back on is easy, so long as the file names/format are the same and size is somewhat similar.
[Samsung Gear S] Megaflop666:
Normally I would have to make fun of you defacing a great device with anything ijunk related, but since it's tizen, I'll let it slide. Lol. Looks good
[Samsung Gear S] jbarresi19:
So I guess us Sprint users are out of luck? Or is there still a chance we can get this rooted?
[Samsung Gear S] Megaflop666:
If you go read in the root gear s thread by [MENTION=2242705]cipherswitch[/MENTION] all those questions are answered.
[Samsung Gear S] Freeddi:
Hi guys.

How i can make my own Themes?
[Samsung Gear S] jdizzle98:
First off thank u for ur work [MENTION=2242705]cipherswitch[/MENTION]. It's greatly appreciated.Installed 1.2 flawlessly. I have lollipop icons and ringtones..but runs very sluggish..I chose custom ringtone that I had downloaded before running stock ringtone removal.. I also ran the s health killer 3.2. I have a rooted /unlocked verizon note 3 running on tmobile paired with my tmobile gear s.?
[Samsung Gear S] cipherswitch:
latest software on the watch?
[Samsung Gear S] jdizzle98:
I rooted using ur method. R750TUV1AOA7.

---------- Post added at 05:29 PM ---------- Previous post was at 05:02 PM ----------

Also when scrolling around the watch it has randomly just went black disconnected from the phone then came back in a few seconds to where I was and reconnects to the phone..strange..?
[Samsung Gear S] cipherswitch:
are you by chance using a watch face that uses s-health features like pedometer or something?
[Samsung Gear S] jdizzle98:
I'm using big clock launcher from the galaxy app store. I've used it for months with no problems..
[Samsung Gear S] jdizzle98:
[MENTION=2242705]cipherswitch[/MENTION]
[Samsung Gear S] Freeddi:
Can you please share your Theme?

---------- Post added at 08:52 PM ---------- Previous post was at 08:51 PM ----------

Guys can me someone say what i must tipping in sdb to install the Themescripts?

I have make it like on Tizenmod 3.0 on Gear 2.

Thans in Advance
[Samsung Gear S] cipherswitch:
the ones I made have the install scripts along with them, dont know about everyone elses...
[Samsung Gear S] Freeddi:
Ok and how i can use the Scripts?
[Samsung Gear S] cipherswitch:
thats a quick reboot, the watch can do a quick reboot, fast boot into download mode or full reboot. I'm working on a new way to disable s-health, as I'd attribute that as the reason for lag. I'll post up a script later on so that you can restore it.
[Samsung Gear S] cipherswitch:
I write them specifically for each theme to include applicable icons,ringtones,notifications and such and include them with the download.
[Samsung Gear S] cipherswitch:
ugh.... do you really want the iOS theme?
[Samsung Gear S] Freeddi:
I dont know it to 100 % :D

---------- Post added at 11:59 PM ---------- Previous post was at 11:58 PM ----------

But more theme will be very cool
[Samsung Gear S] cipherswitch:
ok, ios is on the list, 2 hours? maybe?
[Samsung Gear S] Freeddi:
2 hours for more Themes?
[Samsung Gear S] cipherswitch:
ios theme at least....
[Samsung Gear S] Freeddi:
More Themes in Future?
[Samsung Gear S] jdizzle98:
Sweet.. regardless. I think ur doing great things here.. I love this watch it's just tizen and the lame app store limit it..if it only had android and a camera it would be untouchable..thanks for ur help and efforts..!!@cipherswitch
[Samsung Gear S] cipherswitch:
iOS 8 Theme v1.0​

Includes all iOS8 icons as well as 15 new iOS wallpapers & Helvetica Neue font!

Next version will have notification/alerts + ringtones included. This theme has stock Samsung & Lollipop sounds included.

All stock ringtones will remain untouched due to the UI freezing.

After installation, you can run ringtone+notification cleanup to get rid of the stock stuff

AFTER choosing either one of the new sounds or one of your custom sounds.

All custom ringtones+notifications will remain untouched.​
[Samsung Gear S] cipherswitch:
Yeah, for sure. I just lack the inspiration is all. If someone has an idea, I can usually make it happen.
[Samsung Gear S] crazyshakespeare13:
A Back to the future theme might be cool...just food for thought
[Samsung Gear S] cipherswitch:
omg.... heck yeah. One delorean coming up.
[Samsung Gear S] crazyshakespeare13:
Lol
[Samsung Gear S] Freeddi:
Thank you.

One Question i have. Is Notificationsounds Alerts or Alarms?

And how i can remove the Ringtones?
[Samsung Gear S] cipherswitch:
[MENTION=5736038]Freeddi[/MENTION]

notification sounds are alerts.

stock ringtones can be removed with the included scripts.