yashsingh1/xdaforums huggingface dataset:
[Asus  Eee Pad Transformer Prime] elschemm:
Run-as

Yes. I noticed the permissions on that file as well. I'm not an android person, so I don't know how that end works, but the permissions do look correct (setuid root, and runnable as group shell [which we get via adb, but not locally on terminal].

Based on the little bit that I have read, it seems that it may be getting the permissions assigned to the apk and running the command line with those permissions.

If that is correct, then running it via something with c4droid probably won't work, as it's permissions are whatever group it (c4droid?) was assigned at install.

So, how do does one / can one specify that the package is supposed to be root (uid 0). I'd guess (from a standard UNIX security perspective) that you can't just push arbitrary apps to the machine with 'run me as root' permissions. Otherwise, this would be a completely non-issue. But, is there a package which is pre-installed that we can exploit the permissions of to do this? I don't know yet.

Also, if my readings / assumptions were correct above, we probably don't want to do a setreuid(), but rather call bash/busybox as the 'command' issued in the name of the apk (since it would then run as root, or the uid of the package). Either that, or a system command(s) to chown/chmod the su binary that we can upload via adb (but which comes in as shell.shell).

Did you find the source for run-as somewhere? It would be interesting to look at to see if such a thing is possible. Failing that, it would be interesting to see if there were any sorts of buffer overflows that could be run against it. I've never tried such on arm7, but I've done it under UNIX on x86 and Sparc.

Thanks

Schemm
[Asus  Eee Pad Transformer Prime] abazz:
Yes you are correct. setresuid() function will not give you permissions greater than the process its running in

Its worse than that, the package also has to be debuggable

There is some info out there on how to sing a package with the appropriate system permissions so it would be interesting to actually do this and see what, if anything can be done.

I downloaded the asus unlock package and passed it through the apk tool to see what it does, as it obviously would need root access. As root access is all i require the code it shows is irrelevant really, its the fact that it gains root access with its signature and also the uid that is set in the manifest android.sharedUserID="adroid.uid.system". This and, most importantly android.permission.MOUNT_UNMOUNT_FILESYSTEMS. WIthoput these things we cant change anything in the directories we need

Yes thats what we would do from the run-as command. What I was attempting to see was if I could get a root uid by creating a c program that uses the setresuid() function call thereby bypassing the need to have an appropriate package installed. As it didn't work I'm having dounts whether it would work even if the right package was there. run-as did make reference to package.h which I haven't looked at, so unless there are some system parameters that package.c extracts from the apk I dont really see how this will work...

Yeah found the source here

I also searched for linux exploits, there are massive lists of them, most of them patched by now but I assume the linux base in JB would be somewhat different to whats getting around on X86 systems

On anather note I have tried bin4ry's "root many" method , using the restore timing exploit but had no luck.

HX... I looked through the scripts and all the misc files in bin4ry's zip package and could not find anything remotely indicating an injection of the qemu value. It make a symbolic link to the build.prop in com.android.settings...../file99, which was succesfull after pressing restore but thats about it. perhaps I should fire up ubuntu and try the linux script instead of the windows .bat file
[Asus  Eee Pad Transformer Prime] hx4700 Killer:
Interestingly, this guys root method for the Razr M makes use of Run-as if you look at the batch file.

He is essentially doing a "fake package" install then runs an exe that is some sort of exploit. Finally he uses run-as against what I have to assume is the bug report feature of the droid and asks you to trigger a bug report with a button sequence.

So it seems he is getting something that has root privileges (bug report) to do something that grants SU and also implimenting run-as

http://xdaforums.com/showthread.php?p=32889627#post32889627
[Asus  Eee Pad Transformer Prime] 1di9:
I fear that remained a few developers interested in finding a way to root transformer prime with jelly bean, because all of them had tablet already rooted with ics and managed in mantaining rooting across upgrade.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] RP19OMG68:
SAFE to remove bloatwares on my xperia mini st15i gingerbread .
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] mihahn:
Search here or on google, there should be a link to a thread here where the safe-to-remove apps are listed ;)

Sent from my SK17i running Jelly Bean via CM10
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Dilushan:
Maybe this will help

http://xdaforums.com/showthread.php?t=1089470
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Rudjgaard:
It is kind of personal, like to me all fb related apps, trackid, ant etc are all bloatware, but some people might find them useful...The best thing is you figure out what is essential and work up from there
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] mihahn:
Just found it look here ;)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] daniel_m:
Hei everyone!

Some time ago I upgraded from my stock Android to CM10 (FXP136) and everything was fine ... more or less. The first app to make problems was SwiftKey, which did not download language packs after installation. For some reason that problem got solved in FXP139 . But now (FXP140) my browser(s) stopped working. Opera, Dolphin, Firefox can't connect to any webpage ("webpage not available"). And SwiftKey cannot download new languages.

Well, I suspect that all these apps have problems with their cache directories on storage/sdcard0/Android/data. I actually deleted that directory when I had trouble with SwiftKey, so that SwiftKey could re-build it with the right permissions ... without any luck. Re-installing Opera also did not help either.

ES File Explorer shows that users do not have any rights on the mentioned directory and "other" does not have write access. Whenever I try to change permissions to 777, my request gets denied. And yes, ES File Explorer has root rights and I tried the terminal with root as well.

Does anyone else have these problems with FXP?

Could Opera have screwed something up? (Someone in the SwiftKey forums mentioned problems with SwiftKey after installation of Opera)

Can I use the kernel from FXP139 in FXP140? (I assume the kernel is in boot.img, that has to be flashed after every update to a new version?!)

Puh, so much text :D
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] pitchblack5691:
Did you do a full wipe (data,cache,dalvik) before flashing the Rom?

hit thanks if I've helped!

sent from my smultron
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] daniel_m:
Well, I wiped everything when I upgraded from stock to FXP, but whenever I ugraded to the next release of FXP, I did not wipe anything. As far as I can see, FXP is re-building the dalvik cache after an update automatically. Wiping dalvik and "fixing permissions" did not help. And I don't want to wipe data to not lose the settings to all my apps.

The new version of FXP (141) did not change anything and I still have trouble with browsers and SwiftKey :(

Maybe google can help, but I am not very optimistic about that because I did a lot of research on my problem already before posting here ...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] pitchblack5691:
Backup your data and do a full wipe

hit thanks if I've helped!

sent from my smultron
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] daniel_m:
Thanks for your tip, that worked out pretty well. Now I just have to find a way to backup all my settings and restore them ... but that shouldn't be too difficult :)

The permissions for the sdcard ("mnt", "storage", "sdcard") and "data" are the same after and before wiping, so that can't be the problem.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] pitchblack5691:
Mark this thread as solved (edit the op and replace [Q] as [SOLVED]) it'll help others.
[Galaxy S II Q&A, Help & Troubleshooting] givemerock:
Im thinking of getting the gs2 through straight talk and i was wondering if it will get the ics update or if i can flash cm9/10?
[Galaxy S II Q&A, Help & Troubleshooting] themadba:
What model will it be? The i9100, i9100G or the i9100M/T/P?
[Galaxy S II Q&A, Help & Troubleshooting] givemerock:
Just off the top of my head because im on break at work, but I believe its the i9000g
[Galaxy S II Q&A, Help & Troubleshooting] Jokesy:
GT I9100G already got updated to ICS

Also there is CM9/CM10 Rom for GT I9100G.
[Galaxy S II Q&A, Help & Troubleshooting] saywhatt:
in addition, you can check in sammobile.com for official/unofficial firmwares for your I9100G
[Galaxy S II Q&A, Help & Troubleshooting] ctomgee:
If you're talking about the TracFone variant of this phone that is available directly through StraightTalk, then this isn't correct. (if you meant the i9100G. There is no such phone as the i9000G)

The TracFone variant that StraightTalk offers directly is actually model number SGH-S959G. It seems that it is most closely similar to the SGH-I777, and is likely just that; a re-numbered, re-issue of that same phone (for AT&T) specifically for StraightTalk.

If I'm right, and you do end up getting this phone, then do NOT flash anything from the i9100G forum to that device. It will at best, not work and you'll have to re-flash a stock firmware for that model... or at worst, you will brick it.
[Galaxy S II Q&A, Help & Troubleshooting] givemerock:
That was very helpful. I've decided to just get a GSM nexus and toss a similar in it. Thank you so much tougj
[Nexus 7 Q&A, Help & Troubleshooting] Corey Bryant:
I have some TiVo shows that I want to watch. Currently, I am guessing I need to put them in the DropBox until the OTG Cable comes in (going into the hospital for a few days this week and I don't know if I am going to need to go to a rehab facility before coming home.

Is DropBox the best and / or Browser for SkyDrive also?

My Nexus 7 is not rooted

Thank you!
[Nexus 7 Q&A, Help & Troubleshooting] Groid:
Sign up for the free Google Drive and put it on your computer and N7. Free 5Gb storage and native app for your N7. Dropbox would work, too. Put your shows in the Google Drive folder on the computer and sync or access them from the N7.
[Nexus 7 Q&A, Help & Troubleshooting] n7of9:
most cloud storage has individual file size limits...i can't remember what they all are, but i do remember that Sugar Sync has NO file size limits

...edit...this page shows file size limits

http://arstechnica.com/gadgets/2012/04/cloud-storage-a-pricing-and-feature-guide-for-consumers/
[Nexus 7 Q&A, Help & Troubleshooting] Corey Bryant:
Is there a size limit per file that I can back up to MiMedia?

"If you have a Java compatible browser, you can upload files as large as 3 GB in size.

If you are using a Flash compatible browser, you can upload files up to 1 GB in size."
[Xperia Arc Q&A, Help & Troubleshooting] Babis_ECE:
Hi everyone, I just flashed again the 4.1.B.0.431 .ftf after some problems with custom roms.

PC Companion and the phone itself notified me about the update to 4.1.B.0.587. If I remember correctly, updating through PC Companion/OTA will brick my device because I have an unlocked bootloader? Or should I update without any worries?

Thanks.
[Xperia Arc Q&A, Help & Troubleshooting] trunghieuhd93:
yes, your phone will be bricked, using flashtool is easier and safer!
[Xperia Arc Q&A, Help & Troubleshooting] zolaisugly:
With unlocked bootloader you will brick the device DO NOT UPDATE OVER THE AIR.

Lock bootloader then update., or follow stickies guide to update and root. 587
[Galaxy S II Q&A, Help & Troubleshooting] damanhoury:
Hi All ,

this is my first time to flash a custom ROM .

yesterday i flashed a JeallyBam ( JellyBam.AOKP.20121005-DAILY-i9100G ) .

i have an international samsung i9100 .

as you have now figured , i have flashed the wrong rom for my mobile ( the rom is for i9100g , while my mobile is i9100 ) .

after flashing , and the mobile reboots , i canot pass the Samsung Galaxy S II (with yellow triangle) screen and for some reason i can not load into recovery anymore! loading to download mode works fine.

after researching , i know that the yellow triangle icon is for the ClockWorkMod .

so , i thought if i change that kernel , it may be fine .

i have then installed Siyah kernel v4.1.5 , but i can not also go to recovery mode .

when installing stock samsung rom ( 4.0.3 or even 4.0.4 ) the operation hang on writing FACTORYFS.img file , and it eventually fails with red icon in ODIN 1.85 .

last trial is to install stock kernel for 4.0.4 ( http://hotfile.com/dl/165094518/319d54b/KERNEL_XWLPT.tar.html )

found from this post :

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

and i then tried to install the I9100XWLPX officail stock samsung rom , but with the same results .

all i can do with my mobile now is to go to download mode , and sometime i can go to recovery mode .

the issue is now i can not write any ROM into the phone , even the stock one .

please help me into restoring my phone to a working state .
[Galaxy S II Q&A, Help & Troubleshooting] Paulius7:
So if you can go to recovery do full wipe. Or try to format everything but you lost data. And then install stock Rom

Send form Galaxy S2. Using XDA Premium
[Galaxy S II Q&A, Help & Troubleshooting] Jokesy:
You need to flash stock firmware with .pit file.

Follow the guide here: xdaforums.com/showthread.php?t=1457458
[Galaxy S II Q&A, Help & Troubleshooting] damanhoury:
does not work also

i downloaded the rom , and here is what i have done :

the zip contains the following :

GT-I9100-MULTI-CSC-OXALPH.tar.md5 ==> used in CSC button

I9100_CODE_I9100XXLPH_CL118559_REV02_user_low_ship.tar.md5 ==> used in PDA button

MODEM_I9100XXLPH_REV_02_CL1104396.tar.md5 ==> used in phone button

I9100_APBOOT_I9100XXLPH_CL118559_REV02_user_low_ship.tar.md5 ==> not used ( don't know what is this )

as i see also , there is no .pit file in the rom .

the issue is the same here , flash hangs on writing factoryfs.img

please advise
[Galaxy S II Q&A, Help & Troubleshooting] Jokesy:
get this pit file here
[Galaxy S II Q&A, Help & Troubleshooting] damanhoury:
it works now

it seems the issue was with the USB port in the PC .

i now have flashed a stock 4.0.4 into the mobile successfully .

thanks you so much for your support so far .

but the goal which have bring me here is not achieved yet , install jellybam on my S2 .

do you know where to download this ROM in Odin format , instead of this hassle of installing the ROM using Clockworkmod ??
[Galaxy S II Q&A, Help & Troubleshooting] Jokesy:
You are definitely going to use CWM recovery.

Stop blaming CWM recovery!.CWM recovery was not the reason why you flashed GT I9100G ROM. blame yourself for that and you should count yourself lucky for still having a usable device.

First flash a custom kernel, Siyah or Speedmod via odin.
[Galaxy S II Q&A, Help & Troubleshooting] damanhoury:
Now its working

thanks for your recommendation of installin siyah kernel .

Now i'm running SGS2-Intact-AOSP successfully on my Sii .

but the big issue for me now , is Facebook sync , it is not available :(
[Galaxy S II Q&A, Help & Troubleshooting] Sun90:
use some third party apps from store which can do the same for u:)
[Galaxy S II Q&A, Help & Troubleshooting] damanhoury:
kernel patch

i have heard that there is some JB roms are patched with the Facebook sync enabled .

so , may i ask if any one know where to get this kernel patch for SGS2-Intact-AOSP ?
[Galaxy S II Q&A, Help & Troubleshooting] Jokesy:
I don't think so.

I think The Facebook patched only existed on some ICS AOKP ROMs. The patch is also not kernel related.

On JB ROMs, you have to rely on third-party Facebook apps for sync.
[Galaxy S II Q&A, Help & Troubleshooting] LexterAce:
Is there any mod that can pull down the whole notification? The current is the toggle is pulled down first before the notification but i want the whole thing down at once, meaning toggle will be last shown. I heard that xml edit is involved.
[Galaxy S II Q&A, Help & Troubleshooting] vaders:
Galaxy S2 GT-i9100

Android Version 4.0.4

Baseband i9100XXLQ6

Kernel 3.0.15-i9100XWLPT77

I've searched and read for 4 hours before posting this, I'm really struggling with so many options and factors involved in changing rom:

My story and f-up:

After rooting with odin i decided to install a rom "Jelly King" It failed with error code: 7. After rebooting it returned to stock ics thankfully.

I now have a wifi issue where i cant connect, it just hangs at "obtaining ip address", I since fixed this by assigning an ip address using WiFi Manager by Kostya Vasilyev.

Now is where i need the help...... Should i be installing a rom and kernel? or is there a all in one i should be looking for?

I'm looking for a rom as close to stock look as possible, i just want to overclock it a little and customize the battery icons etc. any suggestions?
[Galaxy S II Q&A, Help & Troubleshooting] Jokesy:
You first need to flash a custom kernel via Odin to have ROOT and CWM recovery access, and also to avoid the infamous brick bug.
[Galaxy S II Q&A, Help & Troubleshooting] vaders:
Already done sir
[Galaxy S II Q&A, Help & Troubleshooting] Jokesy:
now post your ROM and kernel details again
[Galaxy S II Q&A, Help & Troubleshooting] vaders:
Galaxy S2 GT-i9100

Android Version 4.0.4

Baseband i9100XXLQ6

Kernel 3.0.15-i9100XWLPT77

Is this enough?
[Galaxy S II Q&A, Help & Troubleshooting] Jokesy:
You said "already done" but it looks like you haven't flashed any custom kernel yet.

Have you flashed any custom kernel? If yes please let me know which one you flashed
[Galaxy S II Q&A, Help & Troubleshooting] vaders:
In my first post I had already rooted and presume i installed a kernel?

I followed this guide:

[07.09.2012][CF-Root 5.6] K**,LA*,LP-126BHJQ73SC89DEFWGKIQOTUX,LQ-5B - su+bb+CWM4/5

And used the file "CF-Root-SGS2_XW_NEE_LPT-v5.6-CWM5.zip" which i think is a kernel?
[Galaxy S II Q&A, Help & Troubleshooting] Jokesy:
Good.

I want you to flash a custom kernel Siyah or Speedmod via CWM recovery (without wiping anything).

I had already told you that this is to avoid the infamous brick bug.

Visit here for more info: xdaforums.com/showthread.php?t=1457458
[Galaxy S II Q&A, Help & Troubleshooting] vaders:
Jokesy,

Firstly i should thank you for the help so far! I appreciate this as i was begging to tear my hair out :)

I am now on kernel: 3.0.15 hardcore@speedmod-s2-ics #k3-31
[Galaxy S II Q&A, Help & Troubleshooting] Jokesy:
1. Backup your present ROM

- boot to CWM recovery,

- Backup and restore

- Backup ROM to internal/external SD (you need about 800MB to 1.5G of free space), wait for the backup to finish

- reboot phone

2. Backup your /efs

- Use this app: xdaforums.com/showthread.php?t=1308546

Notes:

# repeat the backup at least twice,

## keep copies of your /efs backup on your Pc

3. Backup your contacts, messages apps, and call logs

Recommended apps/methods:

# SMS backup & restore, for messages

## call logs backup & restore, for call logs

### titanium backup or Es file explorer for apps

#### for contacts,

a.) contacts backup & restore, or

b.) Sync your contacts with your Google account, or

c.) Export your contacts to SD card

When you are done, let me know
[Galaxy S II Q&A, Help & Troubleshooting] vaders:
all done sir
[Galaxy S II Q&A, Help & Troubleshooting] Jokesy:
Ensure that you have a good download of your desired ROM (Jelly king)

To flash the rom,

-boot to CWM recovery

-Wipe data /factory reset

- Flash Jelly king Rom,

- Reboot phone

done
[Samsung Galaxy Mini] seemore.:
Hi! guys.

I want to ask, how to enable scan WiFi-Adhoc? I'm using Connectivity Software for sharing internet connection. Please help me.. :(

Thanks. I'm sorry for my english. I'm new member in XDADev.. I'm indonesian.. :)
[Samsung Galaxy Mini] TheWhisp:
it has to be supported in wpa supplicant
[Samsung Galaxy Mini] seemore.:
thanks for ur reply.

so, Wifi-Ad Hoc cannot open on galaxy mini?
[Samsung Galaxy Mini] dheeraj (dhlalit11):
http://www.youtube.com/watch?v=MtqiHcC0x5E

see this
[Samsung Galaxy Mini] seemore.:
nice.. thanks you suhu.. :good:
[T-Mobile, Samsung Galaxy SIII] Bronyr:
According to rumors @ Android And Me:

http://goo.gl/br8HK
[T-Mobile, Samsung Galaxy SIII] imtjnotu:
Seeks too soon jelly bean isnt even 5 months old

Sent from my SGH-T999
[T-Mobile, Samsung Galaxy SIII] eggydrums:
Mhm I've been reading a lot about this lately, I think it's way too early
[T-Mobile, Samsung Galaxy SIII] SebasC:
Would be nice, but from earlier rumours Google will release a "few" Nexus devices running Android 4.2 (or 5.0 whatev.) first but before anyone else will adopt it it will be a bit. Jellybean is pretty much just been rolling out for a couple months.
[T-Mobile, Samsung Galaxy SIII] jnewman1991:
It seems way too soon to release KLP. I wouldn't mind if they did, but there are very few phones on JB right now.
[T-Mobile, Samsung Galaxy SIII] Crisisx1:
Key lime pie should be on the s4
[T-Mobile, Samsung Galaxy SIII] md1008:
Didn't the jump from froyo to GB only a couple months like 6? Supposedly with LG new Nexus it supposed to come with 4.2 also heard its rumored to have project road runner a battery saving tweak
[T-Mobile, Samsung Galaxy SIII] joshnichols189:
Froyo to GB was only 2.2 --> 2.3. KLP is expected to be 5.0

Sent from my SGH-T999
[T-Mobile, Samsung Galaxy SIII] md1008:
Its still likely the nexus will have KLP and I remember before JB people that was going to 5.0. I think it will be 4.2. In any case what ever numeric value I don't think it matters too much
[T-Mobile, Samsung Galaxy SIII] cashyftw:
I hope it comes out so I can use project road runner..

Sent from my JellyBean Galaxys3
[T-Mobile, Samsung Galaxy SIII] eggydrums:
I honestly think, it's too early to make a jump from 4.1 to 5, with the rumored features expected on KLP, it seems nothing so big as when ics was released, and I doubt google could completely revamp the os in what, 4 months?
[T-Mobile, Samsung Galaxy SIII] joshnichols189:
4.2 is still Jellybean.

Sent from my SGH-T999
[T-Mobile, Samsung Galaxy SIII] imtjnotu:
Only 1.8% of Android phones now have jb less then 30% have ics

Sent from my SGH-T999
[T-Mobile, Samsung Galaxy SIII] md1008:
How would 4.2 be JB that's like saying 2.3 is froyo... then again 2.1 and 2.0 were both eclair

---------- Post added at 01:05 AM ---------- Previous post was at 01:02 AM ----------

Another feaute rumored was a theme like engine that would allow vanilla android to be pushed to our phones and the manufacturer can push their skin at a later time. This could be hog wash but that would be cool. I seriously think Google is trying to get updates to more phones.
[T-Mobile, Samsung Galaxy SIII] joshnichols189:
Android Police has server logs of devices on 4.2 with build names starting with J.

Also, 3.0,3.1 and 3.2 were all Honeycomb.

Sent from my SGH-T999
[T-Mobile, Samsung Galaxy SIII] ross1998:
Yeah i think its gonna be 4.2. like for 4.1 the main thing was project butter i think for 4.2 klp its gonna be project road runner. Im probobly gonna switch from the gs3 to the next nexus that comes out.
[T-Mobile, Samsung Galaxy SIII] Aria807:
So every major release of android is a food/desert name starting with the next letter of the alphabet. We should play a guessing game to see what's after Key Lime Pie. And what will happen after Android reaches Z?