yashsingh1/xdaforums huggingface dataset:
[Galaxy S 5 Q&A, Help & Troubleshooting] shazzy1:
Hi guys,

I need a link to stock keyguard.apk file i installed a modded version and when i changed the lockscreen from fingerprint to swipe systemui FC's

Can somebody help me with this?

My phone is g900h
[General Questions and Answers] lijianjunyonghu:
What should I do:confused:
[General Questions and Answers] Bruno25:
Dear all,

I almost managed to root my A1 810... But I need advice to effectively achieve it.

Here are the main steps I followed :

Under linux (Ubuntu 14.04) (These are not detailed instructions, only the main steps. I will post a detailed step by step once finalized)

- From PC : upload busybox binary file to the tablet
- From Tablet : install "ExDialer & Contacts"
- From Tablet : initiate engineer mode (Dial *#*#3646633#*#* from ExDialer)
- From Tablet : initiate telnetd (run command from MTKlogger from within ExDialer)
- From PC : initiate a shell on tablet with adb
- From the shell : initiate a telnet local connection to tablet
- From the telnet session find out the position of the Android partition (cat /proc/dumchar_info)
- From the telnet session dump the android partition to a gzip file (dd if=/dev/block/mmcblk0 bs=4096 skip=17664 count=262144 | gzip > /data/local/tmp/system.img.gz)
- From PC : download the system image
- From PC : mount the system image on a loop device
- From PC : copy a su binary file to /system/bin ()within the mounted system image)
- From PC : set the correct permissions to the su executable (sudo chmod 06755 su) => it's here that you really getting the root permission
- From PC : unmount image
- From PC : upload the upaded image to the tablet (adb push)
- From the telnet session copy the updated system image to the android partition (zcat /data/local/tmp/system.img.gz | dd of=/dev/block/mmcblk0 bs=4096 seek=17664 count=262144) (Take care that's the dangerous part !!!!)
- Restart the tablet.

I didn't brick my tablet :) ... But it is not effectively rooted either :(

I checked from the terminal emulator that "su" has the correct properties :

ls -l su

-rwsr-sr-x root shell 311872 2014-08-15 23:16 su

But when I try something like :

su

ls /data

I get : opendir failed. Permission denied.

Obviously, I am not root...

Any idea ?
[General Questions and Answers] Bruno25:
Bink Feed: Thank you for trying.

There are many people trying to root this tablet since KitKat OTA has been issued... without any success.

Most or all the tools you listed have already been tested, again, without any success.

(see [ToolKit] Acer Iconia v0.8.3)

Since KitKat, the [ToolKit] Acer Iconia v0.8.3 does not work anymore. The main reason is that the "run command" used in engineering mode disappeared.

Yesterday, I found it again : it is now in the parameters from MTKLogger (!)

With that finding, I now have access to the guts of the android system.

I need help from the community to understand what I is missing :

Based on the rooting guide Acer Iconia B1 A71 Root written by entonjackson (many thanks to him)

I managed to extract a valid system image (dd if=/dev/block/mmcblk0 ... | gzip > system.img.gz)

I mounted that image (mount -o loop system.img /media/iconia)

I changed the permission of /system/xbin/su (chmod 06755 su)

I wrote back the system image to the tablet android partition (zcat system.img.gz | dd of=/dev/block/mmcblk0 ...)

et voilà !

... the only remaining problem is that I did not gain root access, even if su has now the correct properties (-rwsr-sr-x root root)

Anybody can tell me what else should I change in the android system image ?
[General Questions and Answers] Optimissimus99:
Huge Thanx, works for me too :) Great work

Edit: Mhh, OK, The system boots with "preinstalled" Superuser, but if i try to give some apps root permission, there is no root popup from superuser, and no root. Can you Plesse upload your system.img.gz to test it with that?

Maybe it works With the SuperSu Binarys...
[General Questions and Answers] Bruno25:
I confirm it works with superuser.apk from clockworkmod.

SuperSU seems a little bit more tricky to install if you don't have direct rw access to /system.

Did you copy the install-recovery.sh script into /system/etc and set the correct rights (755) ?

Maybe you need to clean some cache ?

Do you have another supersuser app (or binary) installed ?

The "su" command from adb shell works ?

I am uploading my system.img.gz (be careful, it is for Acer_AV0K0_A1-810_RV0BRC01_WW_GEN1) (2 hours left)
[General Questions and Answers] fREAST:
Im getting the same problems as [MENTION=5737085]Optimissimus99[/MENTION].

install-recovery has the right perms, using superuser from cwm, su in adb shell works, but i cant remount /system

cn@chronos ~/iconia $ adb shell
shell@mango:/ $ su
root@mango:/ # mount -o rw,remount /system
mount: Operation not permitted
[General Questions and Answers] Bruno25:
I think it is not the same problem: I also cannot remount /system rw. It seems to be a new security level introduced with KitKat on the A1-810.

I am still looking for a solution.

A potential solution is to change the content default.prop in boot.img.

#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.secure=1
ro.allow.mock.location=0
persist.mtk.aee.aed=on
ro.debuggable=0
ro.adb.secure=1
persist.sys.usb.config=mtp
persist.service.acm.enable=0
ro.mount.fs=EXT4
ro.persist.partition.support=no

I read that ro.secure=1 should be change to ro.secure=0 and ro.debuggable=0 to ro.debuggable=1

But for that, boot.img has to be dumped, splitted (kernel + ramdisk), ramdisk has to be "uncpio", changed, "cpio", merged back with the kernel and write back to the tablet.

The standard tools (abootimg, unpack-bootimg.pl, ...) cannot split correctly boot.img (they look for a gzip magic number preceded by some zeros... But in that case, the gzip magic numbers are preceded by FFs...).

Moreover, the boot.img (dumped directly from the tablet since it is not available from Acer web site) has 3 ramdisks, which is really unusual !

I am a little bit scared to brick my tablet...
[General Questions and Answers] fREAST:
That sounds like a probable cause for the system partition.

Anyway i got root working (still no system R/W), using files and the binaries from http://download.chainfire.eu/supersu with a modified script (update-binary form that zip, which is used in recovery) to work while the system.img is mounted.
[General Questions and Answers] Bruno25:
Thank you fo the tip ! I didn't ever think to use the update-binary script offline !
[General Questions and Answers] Bruno25:
Upload finished (remove [grr] from ht[grr]tp) => ht[grr]tp://mq3dk1y9c3.mesfichiers.org/
[General Questions and Answers] twu2:
In A1-810, you need this command to remount /system:

mount -o remount,rw /system /system/
[General Questions and Answers] Just_Another_N00b:
[MENTION=3589732]twu[/MENTION]: are you sure the special mount is still used in the A1-810 using KK? I thought it was only a JB special, but you could be right...

I will play with the rooting method of this thread as soon as my A1-810 is on KK...
[General Questions and Answers] Bruno25:
No joy :(

root@mango:/ # mount -o remount,rw /system /system/
mount: permission denied (are you root?)

By the way, I noticed that my mount command is weird :

root@mango:/ # which mount
/system/bin/mount
root@mango:/ # ls -l /system/bin/mount
lrwxrwxrwx root root 2013-08-23 12:51 mount -> wrapper.sh

Content of wrapper.sh :

#!/system/bin/sh

CMD=`basename $0`
ARG="$*"
NEWARG="-o remount,rw /system /system/"
LArg=$(eval echo \$$#)

case "$CMD" in
"busybox")
if [ $1 == "mount" ] && (([ $2 == "-o" ] && ([ $3 == "rw,remount" ] || [ $3 == "remount,rw" ])) || [ $2 == "-oremount,rw" ] || [ $2 == "-oremount,rw" ]); then
if [ $LArg == "/system" ] || [ $LArg == "/system/" ]; then
/system/xbin/.mount_wrapper/mount $NEWARG
# return $?
return 0
fi
fi
/system/xbin/busybox $ARG
# return $?
return 0
;;

"mount")
if ([ $1 == "-o" ] && ([ $2 == "rw,remount" ] || [ $2 == "remount,rw" ])) || [ $1 == "-oremount,rw" ] || [ $1 == "-orw,remount" ]; then
if [ $LArg == "/system" ] || [ $LArg == "/system/" ]; then
/system/xbin/.mount_wrapper/mount $NEWARG
# return $?
return 0
fi
fi
/system/bin/toolbox mount $ARG
# return $?
return 0
;;
esac

exit 0

It may come from a previous JB busybox installation (?)

If I force the use of toolbox :

root@mango:/ # toolbox mount -o remount,rw /system /system/
mount: Operation not permitted

Am I the only one with that messy configuration ?
[General Questions and Answers] fREAST:
IIRC that wrapper is included in the toolkit for the A1 root, i think [MENTION=2109242]twu2[/MENTION] made it

Skickat från min GT-I9505 via Tapatalk
[General Questions and Answers] Bruno25:
You remembered well: the wrapper and all the busybox links comes from the toolkit (inside the a1su.tgz file).
[General Questions and Answers] twu2:
I don't have kitkat in my a1-810 (not got any OTA about this).....

in JB, yes, mount /system command will force to use busybox to mount it (toolbox not work).
[General Questions and Answers] Bruno25:
Dear twu2, since you are still with JB ;), could you post the content of your /default.prop ? I would like to check what should be changed in mine to get rw access to /system

/default.prop, Android 4.4.2, Acer Iconia A1-810

#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.secure=1
ro.allow.mock.location=0
persist.mtk.aee.aed=on
ro.debuggable=0
ro.adb.secure=1
persist.sys.usb.config=mtp
persist.service.acm.enable=0
ro.mount.fs=EXT4
ro.persist.partition.support=no
[General Questions and Answers] carl031462:
Kitkat Root

For the RW workaround, you need to place a superuser app in /system/app, an su binary in /system/bin an su binary in /system/xbin, a busybox binary in /system/bin, and an su binary in /system/bin/.ext4. The one in /system/bin/.ext4 lets you do a mount -o remount,RW /system /system/ for RW workaround. You need all 3 su binaries. Take this system.IMG.gz as an example. Do a mount -o loop to see contents. Do not flash it to tablet because it is a jellybean a1-810 image. I repeat, do not flash it.

http://xdaforums.com/showthread.php?t=2240029

Press a1-810 and download the pa_cus1 image. I can't post the direct link due to the 10 post policy.
[General Questions and Answers] Bruno25:
No joy, yet,

root@mango:/ # ls -al /system/bin/.ext4/
lrwxrwxrwx root root 2014-08-29 22:08 su -> /system/xbin/su
root@mango:/ # busybox mount -o remount,rw /system /system/
mount: permission denied (are you root?)
[General Questions and Answers] carl031462:
Kitkat Root

Don't say busybox mount. Just say mount -o remount,rw /system /system/
[General Questions and Answers] twu2:
default.prop in 4.2.2:

#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.secure=1
ro.allow.mock.location=0
persist.mtk.aee.aed=on
ro.debuggable=0
persist.sys.usb.config=mtp
persist.service.acm.enable=0
ro.mount.fs=EXT4
[General Questions and Answers] Bruno25:
Not yet...

root@mango:/ # mount -o remount,RW /system /system/

mount: Operation not permitted
[General Questions and Answers] Bruno25:
Then, the two main differences are :

ro.adb.secure=1
ro.persist.partition.support=no

I understand that the first one disable unsecure adb shell. Once the tablet is rooted, this point is solved.

Maybe the second one is related to remounting partitions rw ?

Google didn't really help with that... Anybody knows what this option does ?
[General Questions and Answers] twu2:
for reference, acer's kernel have security check for remount /system....

http://www.modaco.com/topic/362803-cannot-mount-system-as-rw-even-as-root/

in acer's kernel source (the one download from acer's website, I'm not sure it's same or different compare to 4.4)

kernel/fs/namespace.c have a check for remount '/system'

so maybe we can try to remount it as '/system/' (this one work for jb?)

or create a kernel module (I've tried to create exfat.ko before, it can load the module without any issue in 4.2) to remount the /system... and wrap the mount command again to tell the module to do remount....

maybe someone have 4.4 in a1-810 can try it.... (I still don't get any 4.4 OTA for may a1-810....)
[General Questions and Answers] fREAST:
How would one create and load that module?
[General Questions and Answers] twu2:
download the kernel source code from acer's support website.

extract it under linux, there's a README file tell you how to build your kernel.

after build the kernel.... write a new module (it's same as linux, google it you will get a lots of sample), build it...

when you've the module you built (*.ko), put it to A1-810 /system/lib/modules/, then using adb or ssh or terminal to the shell, su to root, insmod such .ko file.

if it work... put the load command to /system/etc/install-recovery.sh, it should load the module after boot the system.
[General Questions and Answers] twu2:
for reference, for the old kernel source (3.4.5, the kernel for kitkat is 3.4.67), the code in namespace.c

if (flags & MS_REMOUNT)
{
#ifdef CONFIG_SECURE_MOUNT
char *dir = "/system";
if ((strcmp(dir,dir_name) == 0) && !(flags & MS_RDONLY)
&& (sys_getpid() > 1)) {
retval = -1;
printk("Operation not permitted or illegal root \n");
} else
retval = do_remount(&path, flags & ~MS_REMOUNT, mnt_flags,
data_page);
#else
retval = do_remount(&path, flags & ~MS_REMOUNT, mnt_flags,
data_page);
#endif

it just check /system, so /system/ work in 4.2.2's kernel.

if Acer don't release the new kernel... we still can use the old kernel.

1. change version number in Makefile, make sure it's same number in you A1-810. (it will check the version string before loading the module)

2. create a module, when load, remount /system to rw (using the code from namespace.c), when unload, remount /system to ro

3. then we don't need to modify /system/etc/install-recovery.sh, just wrap the mount command, to load or unload such module.
[General Questions and Answers] Just_Another_N00b:
Ummm, maybe a stupid question: If you are unable to mount /system in rw mode because of this security setting, how would you be able to load the module into /system/lib/modules? It is kind of a chicken-and-egg issue, unless you loopback mount an extracted /system onto SD card (or PC), exchange it there, repack and dd back to /system... Even so, if /system/ is also not allowed, then the source-code of the new module has been changed to do a string-search instead of the simple/stupid full string compare. I assume then that there could be more changes to the module, so it is a gamble whether this would work. As long as Acer has not yet posted the sources it will be a guess how or what.
[General Questions and Answers] twu2:
you can't mount it, but you can dump it to file, modify the dump file, then write back. (that's the way how you get the root permission.
[General Questions and Answers] Just_Another_N00b:
That's what I said, answering my own question. But what's more important is whether or not more changes were made in the module, which I mentioned in:
[General Questions and Answers] twu2:
usually, in kernel, it use do_remount_sb() to remount the filesystem.

in this function, it pass the superblock struct, not the path, so I don't think Acer will modify this function to check remount for /system. (that's why they do it in do_mount() function)

so we just call do_remount_sb() to skip the check, it should work....

all above is only my guess, if we get new kernel source, we can get the answer... anyway, just try it...

I just broken my A1-810 this morning... :(

so... no tablet to test it now...
[General Questions and Answers] fREAST:
Hardbricked? Otherwise did you try the flash method by FireDiamond? http://xdaforums.com/showpost.php?p=55198737&postcount=3695
[General Questions and Answers] twu2:
drop it, the touch screen is not work now.
[General Questions and Answers] Optimissimus99:
For tests u can use an USB otg cable with a mouse
[General Questions and Answers] twu2:
system rw workaround for a1-810

I write a kernel module for A1-810 to do /system remount, you can download here (include source code):

a1-810_system_remount.tgz 123 KB

https://mega.co.nz/#!lVo0VCjS!H9IyknDwgjZxLFDS7-VAWrN5En-l1gmrHX3YvJbmodM

Because my A1-810's touch screen was broken.... and my tablet still in 4.2.2, so I only test it under 4.2.2:

0. you need a rooted A1-810

1. extract the tarball

2. 3.4.5/system_remount.ko is for kernel 3.4.5 (used in 4.2.2), 3.4.67/system_remount.ko is for kernel 3.4.67 (used in 4.4.2)

3. use adb to push such file to /data/local/tmp/

4. execute adb shell to the device

5. execute su in shell

6. execute: insmod /data/local/tmp/system_remount.ko

if nothing wrong (no error message), then /system should be remount as rw mode

7. do some test or put system_remount.ko into /system/lib/modules/

8. execute: rmmod system_remount

if nothing wrong, /system should be readonly again.

If it work, you can modify the a1su.tgz (the old workaround method), change the wrapper.sh, when we need to remount /system to rw, use this command (if without path for the .ko file, you need put the file to /system/lib/modules/ ):

insmod system_remount

and add a check for remount /system to ro, use this command:

rmmod system_remount

WARNNING: I don't test this under KitKat.... if the mount point for /system is different (in JB, it's /dev/block/mmcblk0p5), you need to modify the source, then build a new .ko to use. and... it based on the Acer kernel source 3.4.5, so it might not work in 3.4.67.... if it not work... we need to wait acer release the source again.

---------- Post added at 01:34 PM ---------- Previous post was at 01:32 PM ----------

good ideal , I'll try it later...

but I found I still can use adb connect to the device, so I wrote a module, and test it under JB, it work fine.
[General Questions and Answers] fREAST:
Did not work on my KK 810, insmod system_remount.ko did not give any errors but it made the tablet reboot(no harm done) and still no rw access.

The mountpoint is indeed the same (blk0p5).

Im going to try and put in directly in /system/lib/modules and see if that does anything different.
[General Questions and Answers] twu2:
so... I think we need to wait acer release the kernel source again.... (that's easy than ask they provide an unlock bootloader, based on GPL they must release the kernel source...)
[General Questions and Answers] Bruno25:
I just asked to Acer (assistance request) to provide the kernel source for KitKat... Who knows, it may work ;)
[General Questions and Answers] Bruno25:
KitKat kernel source - Answer from Acer France

My request:

Their answer:

Basically, Acer France requested (internally) to publish the kernel source on their website.

Let's wait...
[General Questions and Answers] twu2:
good news... we've unlock bootloader now, so it's easy to get root for a1-810 now.

the remount issue still there (it's in kernel), we still need the source to fix it (someone said Acer will release it in 2 weeks).

for unlock bootloader... we can just remove the limitation in kernel, then create a new boot.img to solve it (we don't need workaround anymore).

if you don't like to unlock your bootloader, still can try create a kernel module to do the remount job.
[General Questions and Answers] machjiri22:
Hi,

so after almost a year, is there any progress? I have rooted my old Iconia A1-810 4.4.2, but my filesystem is mounted as read-only and I don't know about any working way to remount it as read-write.

when I try the procedure described by twu2 on page 4, my tablet restarts after command "insmod /data/local/tmp/system_remount.ko" and system stays mounted as read-only just like fREASTO said.

is there any working way how to make system writable just for a while?
[LG Optimus L3 II, L5 II, L7 II, L9 II] FranzLG:
Hi everyone, someone could help me get the kdz firmware version P715 LG L7 10H-AME-XX download link?.

Please help me, i need to get it.
[MDA II, XDA II, 2060 Windows Mobile 2005 Upgrading] johny14:
Hi

I have installed XDAIIs version of Win2005 on my XDAII and it worked ok for few days untill I tried to configure bluetooth for GPS usage. Then my speaker and mic went dead and do not work any more. I can still use phone via stereo headset or bluetooth, but internal speaker and mic stay dead even after I had installed correct version od win 2005.

I used to have:

R 1.08.00

G 1337.18

D 1.66 00WWE and now I have:

R 1.18.00

G 1337.38

D 3.00a.64LOC

Please can anyone help me to restore the mic & speaker on my Himalaya.
[MDA II, XDA II, 2060 Windows Mobile 2005 Upgrading] PaY87:
try to downgrade again :)
[MDA II, XDA II, 2060 Windows Mobile 2005 Upgrading] boril:
Did you use your wired hands-free recently or drop your pocket ? because i have the same problem and have to repair my hands-free jack.
[MDA II, XDA II, 2060 Windows Mobile 2005 Upgrading] johny14:
I have tried to downgrade again from my SD card but somehow it still can not get back to my previous system. It changes back R to 1.08.00 and

G 1337.18 but D remains as 3.00a.64LOC. As a consequence it does not boot up as win2003. I amy need another OS file for win 2003 but in all the references I can only see new NK nad radio files.
[MDA II, XDA II, 2060 Windows Mobile 2005 Upgrading] johny14:
Hi Boril

You may have the valid point and I will have to check it, but if the port was damaged would it still worked with bluetooth. My ringer does not work now either under wired hands-free, but it works under bluetooth. Any further suggestions would be welcome.Thanks for your help Boril.

regards

John
[MDA II, XDA II, 2060 Windows Mobile 2005 Upgrading] boril:
yes i have to use my lovely xda II only with bluetooth hands-free for nearly 6 months until a friend of mine open it and repaired solders of earphone jack to the mainboard. No sound alarms, no phone hearing, no music from speaker of himalaya. I just unplugged my wired hands-free not very carefully one night - so I damaged the solders of earphone jack:((
[Verizon Samsung Galaxy S 4] Hellreaver:
So, in a few days, i'm going to ireland. Currently, i'm trying to get my SCH-i545 (Verizon S4) To add an apn. I can't! Greyed out. Everything i've looked at says to just edit the current apn, but i can't. Everyone else who's tried using another SIM says talk and text work but not data, at least, not without changing apn settings. I've tried flashing new roms (Bootloader is locked) i've tried downgrading, i've softbricked it a few times, and i'm at the end of my chain. I really don't want to be stuck in ireland for the first time with no google maps... please help!
[Verizon Samsung Galaxy S 4] space-bones:
This might not help but since you're in a rush I have a possible suggestion. When I was overseas I was having trouble tying to edit the APN but I didn't know how. I did discover that if I chose one of the WRONG pre-existing APN options, I was then able to edit that one to the correct settings.
[Verizon Samsung Galaxy S 4] joshm.1219:
The options will stay grayed out until you actually put the new sim in, then you can add them.
[Verizon Samsung Galaxy S 4] Hellreaver:
Hmm...

How can i explain this to my grandpa? More his phone than mine, but other than right now, he never lets me touch it. Is there any way to instruct him to add an apn? We're going our separate ways as soon as we get there, and i'm kinda concerned. I won't be around to help him.
[Verizon Samsung Galaxy S 4] joshm.1219:
Where are you getting the Sims from? If you go to a storefront usually the carrier will input the apns for you
[Micromax Canvas 4 A210] drsobhan:
I used Dolby n remove viper patch as exact process as advised.but now I m getting msg.Dolby suddenly stopped.any solution to dat@pranjal
[Micromax Canvas 4 A210] yogesh.kalyana:
no solution yet

IT is a known bug with demo but the dolby app would work fine , it is a known error on stock ROM!

NO fixes yet, as the reason is the same that causes the game" cut the rope" not working as well
[Micromax Canvas 4 A210] Atharkhan101:
Mine is working awesome (dolby). Games like Mc4, real racing 3 not working