yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 Mini Android Development] Kopaxi:
Hi, i tested the modded stock kernel version, it booted fine, but after a few minutes the system sent me an interesting warning message with a triangle on the notification bar: some application trying to make an unsecure operation, it should reboot the phone.

What is it? Anyone had the same problem?
[Galaxy S 4 Mini Android Development] radicspeter:
If you get warnings about applications doing not permitted actions, delete the following files from system/app

KNOXAgent.apk

KNOXStore.apk

ContainerAgent.apk

UFF-UFF Tapatalkolva ;)
[Galaxy S 4 Mini Android Development] x10isrooted:
where is the backup folder of cmw?

hey guys i have rooted the device with this method. firmware is i9195XXUAMF5. now i have root and all is fine but...

i have created then a cwm backup. in cwm it shows me the backup but in rootexplorer there is no backup folder in clockwordmod/ ??? whats going on here?

does cmw backup not work on the original samsung firmware and why do i have now less space on the sd and cant find the files for it? is it somehow invisible?

---UPDATE:

After checking some forums i found that its saved under /data/media/clockworkmod and not as shown in the screenshot on the sdcard? What happens now if i format system/data? then my backup will be gone?

ok. seems if you move it the sdcard you won't be able to restore your image as it does not show up in the restore list :/ is this a bug??
[Galaxy S 4 Mini Android Development] Keon91:
Is Mount usb mass storage working for you?

When I connect my phone to my pc, nothing happens when I mount the USB mass storage...

I have a 16gb Fat32 formated sdcard..
[Galaxy S 4 Mini Android Development] Awais:
anyone can confirm

this will also work on 9195x???
[Galaxy S 4 Mini Android Development] s.goten:
yes, new kernel works fine and no battery drain :)

thanks sir arco
[Galaxy S 4 Mini Android Development] Myke72:
How to flash the kernel? With odin ore cwm?

Will become my device tomorrow. Had a Xperia Neo V before.

Hope someone could help me.

sent from my MT11i
[Galaxy S 4 Mini Android Development] jimsiv:
With cwm...and works perfect !!! Thanks Arco!

Send from my Toshiba AT300
[Galaxy S 4 Mini Android Development] Myke72:
Thanks. Any wipes needed before flashing the kernel?

sent from my MT11i
[Galaxy S 4 Mini Android Development] martini_man69:
Hi guys!

Got my S4 mini yesterday :)

Anybody knows if theres a way to root without incresing the counter?

Thanks

Enviado do meu GT-I9195 utilizando Tapatalk
[Galaxy S 4 Mini Android Development] radicspeter:
It's not increase the counter. ;)

On the other hand you can flash prerooted stock roms where you have root acces with stock kernel and you have FOTA support too.

But use arco kernels. CWM is much better i think.

UFF-UFF Tapatalkolva ;)
[Galaxy S 4 Mini Android Development] martini_man69:
Flashing with Odin in other equipments increases the counter...thanks 4 your answer

Enviado do meu GT-I9195 utilizando Tapatalk
[Galaxy S 4 Mini Android Development] Nil Einne:
Has any tried this on the 16 GB variant of the I9195? From what I can tell, rooting may be okay but I'm not entirely sure. I'm even less sure the custom kernel will be fine. I haven't yet noticed battery drain issues so I may not need it but thought I'd check for future purposes.

In any case, it seems I shouldn't have to worry about the flash counter even if I decide to use the custom stock kernel. And the KNOX status isn't an issue for S4 mini yet. KNOX may be an issue for 4.4 if that really comes. Hopefully by then the way around the problem will be known and it won't take long to apply it to the S4 mini so even if it is an eFuse or something else that's unresolvable once it's changed we can get around that provided we never kill it. The Note 3 stuff looks promising. And from what I can tell based on the S4, there no sign of any quiet status change before KNOX status is made public. So that answers my other question, provided I have appropriate stock firmware (which does seem to exist for my variant) and I can flash it back, I hopefully shouldn't have to worry about warranty if I don't kill my phone. (If anything I said here is wrong, do correct me.)
[Galaxy S 4 Mini Android Development] M3lory:
Can I use this Kernel with CM10.2 and can I install it with CWM? If i decide to not keep this Kernel, can I restore the CWM Backup and do I have the CM Kernel back or how can i restore the CM Kernel without a whole Backup restore?

Sry for that many Question...:eek:
[Galaxy S 4 Mini Android Development] EwOkie:
Everytime I try to do anything like wipe dalvic or cache I get error :

unknown volume for path (sd/ext)

Like its messed with my partition when rooting the phone with first post ...
[Galaxy S 4 Mini Android Development] ViolentR:
Thank you, the modded stock kernel fixed my battery drain issue, it's perfect now. :good::laugh:
[Galaxy S 4 Mini Android Development] newarkoz:
New kernel also fixed my battery drain issue, now it is perfect :D Thanks for your work ;)
[Galaxy S 4 Mini Android Development] rogio2:
There is already a method to reset the counter to flash rom and root?
[Galaxy S 4 Mini Android Development] Myke72:
Are wipes needed before ore after flashing the kernel via cwm?

sent from my MT11i
[Galaxy S 4 Mini Android Development] newarkoz:
Nope, just install and nothing will happen to your phone, data will stay just like it was before.
[Galaxy S 4 Mini Android Development] citymen34:
Hi arco please make i9190 models init.d support kernel. big thanks. Here is 9190 rom and kernels.http://xdaforums.com/showthread.php?t=2375402
[Galaxy S 4 Mini Android Development] EwOkie:
Anyone else have this issue?
[Galaxy S 4 Mini Android Development] radicspeter:
Try to reflash your offical rom and then do the same that in the first post.

UFF-UFF Tapatalkolva ;)
[Galaxy S 4 Mini Android Development] Nil Einne:
Actually after more searching and reading, I have a question about the flash counter (binary counter / count). Most people have said their flash counter stays at 0 even when they root or flash the new kernel or whatever but I'm wondering how people know this? It seems the flash counter on the S4 is generally hidden (it's on mmcblk0boot0 but not generally shown to most tools, of course Samsung have some way to check it) so I'm wondering if it's the same thing for the S4 mini?

As I understand it, the way to check for the S4, well at least the I9505/Qualcomm variant is using Triangle Away. But Triangle Away doesn't currently official support the mini. Are people only relying on Triangle Away or is there some other method of verfying the flash counter status I'm not aware of? If people are relying on Triangle Away, are we sure it properly supports reading the flash counter even if it doesn't yet support fixing it? I've looked around and while I've seen people asking I haven't seen anyone confirming it does.

I guess one key point, has anyone actually seen a report of the flash counter on the i9195 not being zero as reported by triangle away or some other method? Perhaps after installing Cyanogenmod or something else which definitely should change the flash counter. If it is, then this is a good sign it's working. But if everyone is finding the flash counter never increases, I'm wondering if we're fooling ourselves and it is increasing, it's just the method used isn't working properly. Of course it's possible Samsung screwed up the flash counter or intentionally were more generous with the S4 mini but I'm not sure if there's a good reason to think that.

Worst case we could probably use USB jig method to reset the flash counter but I'm interested in working out what the actual state of play is. Hope nothing here is too noob, cheers.
[Galaxy S 4 Mini Android Development] marselcj:
Hi [MENTION=3044346]arco68[/MENTION],

I have instaled kernel_v1. Everything is fine but I have this error. I did wipe cache before and after install the zipp.

What does it mean and how can I get rid of it?
[Galaxy S 4 Mini Android Development] 12alex21:
As far as I know you can get updates when you're rooted, but only if you have the stock recovery installed. However the OTA updates may breake root.
[Galaxy S 4 Mini Android Development] charliebigpot:
Well, now the only issue I have is that Odin doesn't recognize my I9195. I have googled it and as suggested in many posts I have tried with a different USB port and different USB cable. It works fine when it's switched on but not when in download mode. :rolleyes:
[Galaxy S 4 Mini Android Development] stalli0nUK:
Have you got the Samsung USB drivers?

Sent from my GT-I9195
[Galaxy S 4 Mini Android Development] arco68:
As long as you use a kernel built for the 9192, I think it should be ok to reuse the recovery.

For making an insecure kernel, make sure these are disabled in msm8930_serrano_defconfig:

# Add rooting prevention

CONFIG_SEC_RESTRICT_ROOTING=y

CONFIG_SEC_RESTRICT_SETUID=y

CONFIG_SEC_RESTRICT_FORK=y

CONFIG_SEC_RESTRICT_ROOTING_LOG=y
[Galaxy S 4 Mini Android Development] anno1972:
Thanks a lot - great work !!!

But could you please explain step 4

from rooting former Sammy phones I learned this has to be checked...?!? :confused:
[Galaxy S 4 Mini Android Development] arco68:
If it's checked, you have to either quit and restart Odin, or wait until the timer expires before you can use anything in Odin again. So disabling it just saves some time. It's no harm leaving it enabled though.
[Galaxy S 4 Mini Android Development] anno1972:
Thanks a lot for the explanation :)
[Galaxy S 4 Mini Android Development] Neil294:
Brilliant, thanks. Works a treat.

And thanks to you too. Had the same issue and this has stopped the message flashing up
[Galaxy S 4 Mini Android Development] cheatman:
[MENTION=3044346]arco68[/MENTION]: my kernel builds suck and never boots. The behavior is similar to building for another device (i.e. flashing another device's kernel). Having so many variants for the same architecture sure is a pain. I downloaded the proper kernel for my device (and region) to start building and I followed the defconfig instructions provided by Samsung for the model. The kernel builds but cracks on boot. I didn't mod anything, just built it stock and tested it out.

Any ideas? For I9192 Samsung recommends configuring: make msm8930_serrano_defconfig VARIANT_DEFCONFIG=msm8930_serrano_eur_3g_defconfig

For the I9195 is the variant similar?

Thanks,

C.
[Galaxy S 4 Mini Android Development] arco68:
Yes, except the variant is msm8930_serrano_eur_lte_defconfig for the I9195.

Did you use Android Kitchen? With that you can unpack the stock boot image and replace zImage with the one you compiled, and then repack it.

Also, did you use an ARM toolchain when compiling?
[Galaxy S 4 Mini Android Development] andynroid:
Simple have the latest Samsung Kies pre-loaded on your rig and later you can remove it (coz you may not need it anyway and automatically the drivers will be left behind)

P/S : your rig wil now have almost 99% driver of all Sammy model :laugh:
[Galaxy S 4 Mini Android Development] cheatman:
Yes, I'm using dsixda's kitchen to extract and rebuild the ramdisk into the boot image. Also, this is not my first time building kernels, so I am able to pinpoint (and exclude) possible problems relatively easy. I did some investigating on the device origin side (checked serial number online, getprop etc.) and identified my unit as coming from the United Arab Emirates. I am using the suggested toolchain for cross-compiling (arm-eabi-4.6).

I was compiling the "standard" (no region, International) release of the source, which may result in the behavior I was experiencing (as if the kernel was for a different device - reset, bootloader, parial boot, reset again etc). I was certain I have a euro model because of two reasons: I flashed the XXUAMF7 stock kernel to successfully restore the device and I bought it in the EU. The XXUAMF7 code suggests it's western Europe (the XX in the code), although I later noticed the same version is also used for the Middle East & Africa roms as well.

I am now downloading the MEA sources and attempting a new build. Thank you so much for your very valuable input and help with this attempt.

PS: the recovery works excellently on this variant, as we both suspected. I'll let everyone know if I'm successful and maybe create a separate thread for rooting the I9192 variant as not to spam your thread too much.

UPDATE: Still no dice even with this approach. I also noticed there are zero differences between the two versions (International and UAE regions) using diff. Which makes my lengthy and slow download from their slow servers useless. I also tried starting again with everything from scratch, in case I made some mistake or overwritten some files etc.

I'm out of ideas atm, so if any of you guys can offer suggestions, I'm open to anything.

Cheers,

C.
[Galaxy S 4 Mini Android Development] crackedtooth:
Will AVAST MOBILE SECURITY interfere with new cwd updates?

and especially their anti theft module enabled?

Or wont it affect future official updates through cwd?
[Galaxy S 4 Mini Android Development] cheatman:
Another update: after flashing the I9195 kernel posted by [MENTION=3044346]arco68[/MENTION], which obviously doesn't fully boot on the I9192 variant, I noticed the following behavior:

1. It partially boots, as in I get a bootloop at the boot animation. So it passes my stock kernel panic point (at bootloader logo / rle logo)

2. It is closer to the size of the stock kernel (7,161 MB by arco68, 7,170 by Samsung and 7,040 my own)

Thus, I am wondering if I'm missing something that might generate these major differences. For a kernel, 130KB is a very big difference and a lot of code apparently "missing".

[MENTION=3044346]arco68[/MENTION]: Can you try building a kernel using my variant (VARIANT_DEFCONFIG=msm8930_serrano_eur_3g_defconfig) and your current sources? I would like to know the size of the result. And also test it if you don't mind. I guess I'm either skipping a step or not doing something that is common knowledge for others. Either that or working with the new releases from Samsung changed considerably since last year and I'm out of shape :D

Cheers,

C.
[Galaxy S 4 Mini Android Development] arco68:
[MENTION=490310]cheatman[/MENTION], try the attached zImage. I noticed that the kernel readme for I9192 didn't specify to also use SELINUX_DEFCONFIG=selinux_defconfig, as it does for I9195, so maybe that's why it stops booting. This zImage is compiled with that option.
[Galaxy S 4 Mini Android Development] jinan:
Anyway to temporarily unroot?

I just rooted my S4 mini I9195 successfully with this method. However, one thing I forgot to do is update the Firmware before rooting. Damn!

Is there anyway I could un-root temporarily and then root again? Now, when I attempt to update I get a message saying that my device had been modified and software updates are not available :(
[Galaxy S 4 Mini Android Development] cheatman:
The zImage boots perfectly and it's rooted. So, that must be the main difference between our compilation methods!

The image is borked for end-users though as some functionality is missing (both sims are detected but only one can register on the network, NFC module warnings pop-up all the time etc.) but I am sure I can get it to work just fine in the next builds.

But hey! At least it boots :D

Many thanks for your input on the matter and helping me identify this issue. I'll let you know if the next builds end-up working fine or not.

UPDATE: Indeed, the lack of SELinux configuration was causing the bootloops. I was able to build a working generic kernel image for the I9192, thanks to [MENTION=3044346]arco68[/MENTION]. Now it's time to root it and make sure it's really insecured (remove production build crap)...

Cheers and thanks,

C.
[Galaxy S 4 Mini Android Development] axelpix:
Try to flash the original firmware with this methode:

http://mytricksource.blogspot.com/2013/07/update-galaxy-s4-mini-i9195-to-ubuamf5.html
[Galaxy S 4 Mini Android Development] crackedtooth:
Worked great

Also installed AVAST MOBILE SECURITY and enabled their anti theft.... it updates itself in update.zip to protect reset from hard reboot.

Will that affect future firmware updates through clockwork?

Do I need to uninstall avast anti theft prior to new firmware updates? or wont it matter?

If anyone knows would love to hear.

Do like the anti theft module with remote sms activation
[Galaxy S 4 Mini Android Development] cheatman:
Well, I finished the rootkit for the GT-I9192. I opted for a flash able cwm zip for the rooting process, that also flashes the insecure kernel.

Thanks again for all the help.

Cheers,

C.
[Galaxy S 4 Mini Android Development] marselcj:
L.E. I'm on XXUAMJ1 stock rom.

---------- Post added at 05:53 AM ---------- Previous post was at 05:26 AM ----------

Hi [MENTION=3044346]arco68[/MENTION],

I have instaled kernel_v1. Everything is fine but I have this error. What does it mean and how can I get rid of it?
[Galaxy S 4 Mini Android Development] DeusEx80:
delete the three knox files reported in the first post
[Galaxy S 4 Mini Android Development] Myke72:
Today i got my new S4 mini.

GT-I9195

AP: I9195XXUAMF7

CP: I9195XXUAMF7

CSC: I91950XAAMF5

Can i root it with the steps at op?

I can make an update over kies to PDA MG8 / Phone MG8 / CSC MG4 (XEF). Is it necessary?
[Galaxy S 4 Mini Android Development] marselcj:
Thanks. All fine now. :thumbup:
[Galaxy S 4 Mini Android Development] Ain_Soph:
Why is it necessary to install BusyBox? From what I've seen, root can be applied even without it.
[Galaxy S 4 Mini Android Development] Nil Einne:
AFAIK it isn't strictly necessary but many common tasks and even some apps require one or more of the tools in Busybox so if you don't have Busybox your root is much more limited. Note that some stuff may even make the assumption Busybox is installed when you root, so when they say you need root they actually mean you need root+Busybox.
[Galaxy S 4 Mini Android Development] Myke72:
Please could someone help me? 4 posts above.

sent from my GT-I9195
[Galaxy S 4 Mini Android Development] EwOkie:
Tried that and phone works perfectly apart from when I wipe anything with recovery it shows this error :confused:
[Galaxy S 4 Mini Android Development] b0g:
hy,

EwOkie, try a full flash with re-partition

https://mega.co.nz/#!FtEjAKSY!QKwkYilDkcB43Yu1tYsBqTGsD5U-f3n3P5Uaho7bJY8
[Galaxy S 4 Mini Android Development] EwOkie:
Can you explain as I tried from a different PC the Stock Rom I was flashing for the UK

Now the cache wipe is working with Recovery but dalvic is still the same...

What Factory_Firmware_I9195XXUAMG8_DBT Rom is this and is it ok for the UK?
[Galaxy S 4 Mini Android Development] b0g:
hy,

this firmware contain the files:

BOOTLOADER_I9195XXUAMG8_1097013_REV01_user_low_ship_MULTI_CERT.tar

CODE_I9195XXUAMG8_1097013_REV01_user_low_ship_MULTI_CERT.tar

MODEM_I9195XXUAMG8_1097013_REV01_user_low_ship_MULTI_CERT.tar

CSC_OXA_I9195OXAAMG8_1097013_REV01_user_low_ship_MULTI_CERT.tar

CSB_signed_SERRANOLTE_ONEPIT_OPEN_130523

this firmware contain all files to make a fresh install, this is for DBT region (germany);

then you can make a reset;

after you flash this files you need to flash again your firmware for your region; for my region was COA
[Galaxy S 4 Mini Android Development] arco68:
Update with Kies first, then root.
[Galaxy S 4 Mini Android Development] arco68:
It's nothing to worry about. It will show that if you don't have an ext partition on the sd card.
[Galaxy S 4 Mini Android Development] Myke72:
Odin hangs. There is a message: get PIT for mapping:crying: What can i do? I can boot to cwm but there is no option to install a zip.

Edit: Have root now:thumbup:
[Galaxy S 4 Mini Android Development] Whosat:
It should work
[Galaxy S 4 Mini Android Development] Myke72:
Root is working fine. What is the advantage of the modified kernel if i flash them?

sent from my GT-I9195
[Galaxy S 4 Mini Android Development] Nil Einne:
For the benefit of future readers, what did you do?

BTW, in the same vein, just to let people know I ended up rooting my 16GB I9195 using prerooted firmware. It seems to be fine, 16GB etc still showing. I'm sure this method would be fine too. Main reason I choose the prerooted firmware is because my firmware was still MG3 and I suspect I can't rely on my telco to ensure I get timely updates. While I don't know what the've updated hopefully some of the stuff will be useful, perhaps including battery life improvements. My battery life doesn't seem that bad but I'm not sure. (Since mine is a relatively old version I decided it may be better than doing this with the custom stock kernel.)
[Galaxy S 4 Mini Android Development] Myke72:
I think a part of kies was active in the background while flashing cwm. Restart my laptop and flashed again.

sent from my GT-I9195
[Galaxy S 4 Mini Android Development] cosmingcr:
After I flash kernel_v1 phone does not connect with my car sistem by bluetooth anymore . Can you help me?
[Galaxy S 4 Mini Android Development] cosmingcr:
It's all good now I made it work
[Galaxy S 4 Mini Android Development] twinsen.net:
Sorry I'm asking, but why there aren't any thread with list of insecure kernels to flash with Odin, one kernel for one specific stock firmware, like it was in the times of Galaxy S, or S2? It is not possible to hack these kernels like before?
[Galaxy S 4 Mini Android Development] zyrill:
Why is there no entry for the S4 Mini on http://www.clockworkmod.com/rommanager ?
[Galaxy S 4 Mini Android Development] ladislav.heller:
Because the developer of Rom manager doesn't support our device.
[Galaxy S 4 Mini Android Development] PIKO1982:
This kernel v1 with last MJ1 is great but it haven't actived the changing colors of the screen with trickster mod setting app. is it possible to get this?
[Galaxy S 4 Mini Android Development] zyrill:
Being stupid, just ignore.
[Galaxy S 4 Mini Android Development] PIKO1982:
Why? This phone haven't a real color ( all samsung have this problem) of the screen and the all kernels mod have active this function.

i do not believe a stupid question
[Galaxy S 4 Mini Android Development] xtrme:
hey guys, anyone has gotten this problem this far

i followed the steps ben when I get into cwm after step 7

i can't flash from a sd card

every option i choose it stalls in the main screen or returns to the mainscreen

device i9195 serranolte

serranoltexx

andriod 4.2.2

using windows 7 pro 64 bit to flash the recovery-clockwork-6.0.3.7-serranoltexx.tar.md5 file
[Galaxy S 4 Mini Android Development] davisan1:
Can you mount the sdcard? Exfat formatted or fat?
[Galaxy S 4 Mini Android Development] afterglow:
root ok.

just flashed my 9195 LTE with OP procedure and seems to be ok.

thanks!
[Galaxy S 4 Mini Android Development] ladislav.heller:
Can somebody expert publish serranoltexx recovery to ROM Manager? :D

Here is the site where under Existing Devices the build and publish can be done:

http://builder.clockworkmod.com/#existing-device
[Galaxy S 4 Mini Android Development] ovimunt:
New to Samsung phones...

Hi,

This may be a stupid question but I'm new to Samsung phones so I don't know all the details (I've only been using HTC so far).

So I've followed all the steps and got root fine. However, I tried to reboot into recovery afterwards and it's like Clockworkmod has vanished.... It just gets into what looks to me like the stock recovery. Am I doing something wrong or does the phone automatically restore its stock recovery???

Also, can someone explain to me if it is possible to manually flash a recovery from the img file using fastboot like you do on HTC phones?

Oh, and another thing. What's this Odin thing? I never used anything like that with HTC...

Thanks
[Galaxy S 4 Mini Android Development] Whosat:
Answered in http://xdaforums.com/showthread.php?t=2498576
[Galaxy S 4 Mini Android Development] hansare:
I can't copy to my internal or external sd-card.

What goes wrong or what to do?

Thanks in advance.
[Galaxy S 4 Mini Android Development] Whosat:
[MENTION=3195878]hansare[/MENTION], what have you flashed and in what sequence?