yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] Opariti:
Hi there,

I am completely lost in trying to implement a silent install-from-apk-file and unistall-package-name by using the adb shell command 'pm'.

I'm doing the project in Eclipse, emulator 2.2, rooted (tested during runtime using RootTools.isRootAvailable()).

Here is the relevant code:

@Override
public void onClick(View v) {
switch (v.getId())
{
case R.id.btnInstall:
try {
install = Runtime.getRuntime().exec("su\n");

File file = new File(Environment.getExternalStorageDirectory(), txtApkFilePath.getText().toString() );
if(file.exists()) Toast.makeText(MainActivity.this, "File exists", Toast.LENGTH_LONG).show();
else Toast.makeText(MainActivity.this, "File does not exist", Toast.LENGTH_LONG).show();

install = Runtime.getRuntime().exec("pm install /mnt/sdcard/HelloAndroid.apk\n");
try {
install.waitFor();
if (install.exitValue() == 0) {
// Success :)
Toast.makeText(MainActivity.this, "Success!", Toast.LENGTH_LONG).show();
}
else {
// Fail
Toast.makeText(MainActivity.this, "Failure. Exit code: "+String.valueOf(install.exitValue()), Toast.LENGTH_LONG).show();
}
} catch (InterruptedException e) {
logError(e);
}
}
catch (IOException e) {
logError(e);
}
break;

case R.id.btnUninstall:
try {
install = Runtime.getRuntime().exec("su\n");
install=Runtime.getRuntime().exec("pm uninstall "+txtPackageName.getText().toString());

} catch (Exception e) {
logError(e);
}
break;
}

}

In the code above I have hardcoded the command for the case 'R.id.btnInstall' to make sure there's no typo, but I get a return value of 9 from

install.exitValue().

Thanks for any help!
[Android Q&A, Help & Troubleshooting] Opariti:
Well, the solution I've found is on Stackoverflow under this title "Install / Unistall from shell command in Android" (because I'm not allowed to insert links in my posts at this moment). HTH
[HTC One X+] andy1969:
afrer many hrs upon hrs of trying to fix my htc one x +

i need some help.

i dont no if its out there but i need a standard ruu for a htc one x + on vodaphone uk with a hboot 1.40

it may not even be out there but if it is and u can help be much appreciated

bought this hox + for my sons birthday was fine till i got home re-set it

im unable to return it to vodafone as i bought it from gumtree classifieds so im left with a brick

i have no idea what to try next any help be much appreciated ty.
[HTC One X+] Lloir:
You've been told how to fix it already
[HTC One X+] andy1969:
my dumbass freind relocked the device and tried to return to stock with ruu

now i carnt even adb sideload cause ive lost recovery

when he tried to re flash the ruu he downloaded it failed on hboot because its 1.40

i need a europe vodafone rom with hboot 1.40

so yes im stuck totally now.
[HTC One X+] Lloir:
lol friend or you? ;)

regardless, a little bit of searching by yourself would have found this:

http://xdaforums.com/showthread.php?t=2066390
[HTC One X+] andy1969:
its ok i give up ill send it to htc pay the repair cost or find a repair shop local see if they can do anything

rang htc on phone told me it would need a new motherboard cost £150

to say im more than pissed of is putting it mild.
[HTC One X+] andy1969:
just been to a vodafone store they have taken the phone and are going to update the firmware on there pc

i think with latest jelly bean.

will this work even though its stuck on the screen with recovery bootload etc ?
[HTC One X+] JoeyBimmel:
Why don't you listen to other members like Lloir? He gave you what you searched for and now you are ignoring his answer and just doing what you want. What they are doing now at the store is run the proper RUU file of vodafone and then you will have a stock device again. You have to be in bootloader to run a RUU setup, so no worry's there.

Do a proper backup when you have another try at flashing custom software m8!
[HTC One X+] nchantmnt:
cmon dude Lloir and i have told you several times what to do and that you can't use the ruu if you have 1.40 hboot. i also tried to stay in contact hand take you literally by the hand on going back to stock and i must admit, the fact that you are just ignoring the help and efforts of other users just pisses me off.

but good, waste your money and our time
[HTC One X+] andy1969:
im not ignoring your help i have given my phone to a guy who knows a little more about getting it work than me

i have pointed him to the other thread and your pm`s

i just needed to walk away for a while take a deep breath and start again if this guy carnt do it i will give it another go

this time doing it step by step.

and i thank you for all your help and i will need your help again if the other guy has no luck.

the thing im finding hard is were to unzip the files what programs need to go were

and the cmd commands because non of the ones i ran worked.

i appreciate all your help very much.

the other guy said its software issue not motherboard so what ever happens im not spending £150 at htc service centre if it takes

me a week ill get it working myself.
[HTC One X+] gamepr:
Troll!
[HTC One X+] nchantmnt:
AW: members help

Hmm that was unnecessary... Ok I promised to help and even thou I'm not too thrilled about how it worked out in first place I'm standing up to my offer. You and your friend are welcome to contact me if you have any questions. Maybe even a noobproof step by step guide from a fresh start if you should need it. But then I really need you to follow the steps exactly.

Gesendet von meinem HTC One X+ mit Tapatalk 2
[HTC One X+] andy1969:
ok mate i need a noobproof guide he couldnt fix it so im givig it another go thanks so much
[HTC One X+] nchantmnt:
right now i'm at work, will be home at 6.30 pm CET

then i'll be able to help you

things you can do already:

download the latest all-in-one toolkit, the international rom you want to install, the elite-kernel and make sure your device's batery is charged.
[HTC One X+] andy1969:
ok waiting for battery to charge a bit more it went to flash Unlock_code.bin

but failed on battery to low

once i flash this i should have the custom recovery back

when i tried to sideload yesteday i had a grey upload line at bottom of phone and it wouldnt upload rom

so i think the path to rom is wrong on cmd ?

were should i place the rom to sideload ?
[HTC One X+] andy1969:
okay have team win revovery back

when i use the all in one toolkit and try to sideload rom

a huge list of writing appears and the rom does not sideload what am i doing wrong ?
[HTC One X+] andy1969:
getting the massage from toolkit

failed to read sideload

any help thnks ?
[HTC One X+] AndroHero:
Do you have all the drivers installed?
[HTC One X+] andy1969:
when i tried to install drivers it did say fail if i rember correct is there anyway to install the drivers manually if so were can i download the drivers ?

the actual error im getting is * cannot read sideload*
[HTC One X+] AndroHero:
Just download htc sync or htc sync manager. Drivers will be installed during the install procedure.
[HTC One X+] andy1969:
yes i did got error drivers failed to install

it nearrly flashed said 1% uploading

*failed to write data protocol fault no status*

grrrrrrr
[HTC One X+] andy1969:
any help any one ?

its uploading to 2% then getting the below error

*failed to write data protocol fault no status*
[HTC One X+] andy1969:
any one ?
[HTC One X+] nchantmnt:
just pmed you... oh and what about md5 check on your rom.zip? maybe the archive is faulty? in that case just redownload that one and try again. and sometimes rebooting the pc works wonders.

what about the battery capacity?
[HTC One X+] andy1969:
Big ty to nchntment after a week or so of helping me even on Skype calls I have managed to adb sideload a Rom and my one x plus is now working fully.

A big ty to all but especially nchtment thank you so much mate.
[Galaxy Tab 8.9 General] Madness_logic:
i tried to put the modem to my tab i957 stock AT&T 4.0.4 from this threat http://xdaforums.com/showthread.php?t=1875024 , and after the install of the 2 attachment and reboot the phone , it never turn on again when i connect to the pc says QUALCOMM CDMA TECHNOLOGIES MSM and i really worried , plz someone? please if can someone help me with this i will do a donation throught paypal , so plz , i whrote this post at 2:40am i have searching for everyplace in google for a solution for about 3 hours and nothing...
[Galaxy Tab 8.9 General] jd1639:
Sorry to tell you but you're screwed. The modem you flashed is not for the i957. Never flash anything that's not specific to your device. If you're still under warranty Samsung might repair it for free. Flashing the rom has voided the warranty, otherwise, they can repair it at a cost. Those are your options. You can't fix it yourself.

Edit: does odin recognize the device?

God promised men that he'd put beautiful women in all corners of the world. Then he laughed and laughed and made the world round
[Galaxy Tab 8.9 General] Madness_logic:
no , odin doesn't recognize the tablet and well theres nothig to do , thanks for the help :crying:
[Galaxy Tab 8.9 General] Unjustified Dev:
I just seen this don't know if heimdall works with this device but its worth a try I will post a link

http://www.glassechidna.com.au/products/heimdall/ try to flash what you need through the commands you will need visual c if running windows

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

Here's visual c 32bit and 64bit

http://www.faqforge.com/windows/fix...-missing-from-your-computer-error-on-windows/
[Galaxy Tab 8.9 General] Madness_logic:
i'll try but how can a make the steps? because in the page doesn't give very clear the instructions , what is PIT? and where can i get the firmware , i need a stock firmaware o something else? thanks
[Galaxy Tab 8.9 General] jd1639:
You can get the stock firmware at sammobile.com. you have to register but it's free.

God promised men that he'd put beautiful women in all corners of the world. Then he laughed and laughed and made the world round
[Galaxy Tab 8.9 General] Unjustified Dev:
OK to get your firmware visit sammobile.com make sure you get the correct version of your i957 tablet

Here's the link for heimdall instructions

http://www.galaxyforums.net/forum/s...dall-recovery-how-unbrick-your-fascinate.html

I'll look for the pit file unless someone has solved it already
[Galaxy Tab 8.9 General] Madness_logic:
i have the stock firmware but when i use heimdall , they say : firmware.xml is missing from the package , and i need them and i don¡t know where can i find them
[Galaxy Tab 8.9 General] jd1639:
The download its a zip file. You probably have to extract the .tar.md5 file out of it. Use 7-zip to do that. I know you have to do that if you are using odin. Not sure with the way you ate doing it.

God promised men that he'd put beautiful women in all corners of the world. Then he laughed and laughed and made the world round
[Galaxy Tab 8.9 General] Unjustified Dev:
http://androidjinn.com/how-to-install-umlj4-android-4-0-4-firmware-on-i957-galaxy-tab-8-9.html/2

They say the pit file should be in the extracted file

---------- Post added at 12:01 PM ---------- Previous post was at 11:55 AM ----------

Should be the same for heimdall glad you made some progress as I know nothing about this tablet
[Galaxy Tab 8.9 General] Madness_logic:
first i think that , but when i extract the files there no firmaware.xml file =(
[Galaxy Tab 8.9 General] jd1639:
here's a pit file I used on my i957 once. Don't know where I got it http://d-h.st/1O7

---------- Post added at 12:27 PM ---------- Previous post was at 12:22 PM ----------

I've only seen the tar file and a dll file when I've extracted. The dll is useless as far as I can tell.

God promised men that he'd put beautiful women in all corners of the world. Then he laughed and laughed and made the world round
[Galaxy Tab 8.9 General] Madness_logic:
ok i have the pit , but how can i used? please if you help even step by step i promissed that i would pay you or the first could help me (i'm a rookie i know how install roms on every phone but not unbricked)
[Galaxy Tab 8.9 General] Unjustified Dev:
I'm not sure about that I'll have to look into it but guides I have seen don't say that I hope you get it figured out I never used the actual program just the command line if you use zadig in heimdall and install all your drivers maybe you can use Odin
[Galaxy Tab 8.9 General] jd1639:
Of you can't get odin to recognize the tab I think you're pretty much out of luck. You can Google jtag and see if someone can do that service on your tab.

God promised men that he'd put beautiful women in all corners of the world. Then he laughed and laughed and made the world round
[Galaxy Tab 8.9 General] Madness_logic:
well nothing , the only thing that should i do it's find someone with the jtag and pay for the repairment but i live in a foreigner country , and that's maybe a problem here...
[Galaxy Tab 8.9 General] Unjustified Dev:
http://mobiletechvideos.mybigcommerce.com/

These guys are good at least I heard they have an account on xda if you want to pm them
[Galaxy Tab 8.9 General] Unjustified Dev:
To be more specific

http://mobiletechvideos.mybigcommerce.com/samsung-galaxy-tab-8-9-jtag-brick-repair/

---------- Post added at 05:15 PM ---------- Previous post was at 04:56 PM ----------

try using heimdall 1.1 looks more promising extract the .tar file and put things in the respective place http://www.mediafire.com/?0zpydb4mt5o8vo3

i will try to restore my phone using this method hope i dont brick it
[Galaxy Tab 8.9 General] Beatsleigher:
First of all, dude, you're the first person I've ever seen that's managed to brick a Galaxy...

Try bringing it back to AT&T and see what they say. If you're really lucky that day, they'll give you a new one or they'll repair the one you've got right now.

Second of all, threads like these belong in the general and Q&A forums :)

Lg familyguy59/Beatsleigher
[Galaxy Tab 8.9 General] Unjustified Dev:
also open the drivers folder and install your device drivers with zadig because heimdall uses libusb because odin wont always recognize your device

---------- Post added at 05:28 PM ---------- Previous post was at 05:21 PM ----------

ok my steps as i successfully restored my phone

1 plug the device in the download mode

2 open drivers folder from heimdall flash and run zadig and install the samsung usb driver even if its installed install anyway with the warning

3 Windows should detect the device exactly the same except as a lib usb

4 extract the .tar file you got from the zip

5. open heimdall 1.1 select your pit in repartion

6 In (PDA/Code):

FactoryFS=factoryfs.frs

Kernel(zImage)=zImage

Param.lfs=param.lfs

Primary Bootloader=boot.bin

Secondary Bootloader=sbl.bin

7. In CSC:

Cache=cache.rfs

Database Data=dbdata.rfs or just (data.rfs)

8.In Other:

Modem=modem.bin

Recovery=recovery.bin

9. hit start if you get error device dont forget to use zadig to install the driver

---------- Post added at 05:38 PM ---------- Previous post was at 05:28 PM ----------

I was thinking the same thing when i first saw it hope the person gets it solved it does need to be moved
[Galaxy Tab 8.9 General] Madness_logic:
thanks i gonna try this , but in the sotck firmware that At&T give doesn't include factoryfs.rfs , the Zimage or anything like that...
[Galaxy Tab 8.9 General] Unjustified Dev:
you sure whats in the .tar file you extracted maybe use the other link with the stock file http://androidjinn.com/how-to-install-umlj4-android-4-0-4-firmware-on-i957-galaxy-tab-8-9.html/2

heres directly the file http://www.hotfile.com/dl/183732214/eff7e6d/I957UMLJ4_I957TCELJ2_TCE.zip.html

im also downloading it to make sure

---------- Post added at 11:17 PM ---------- Previous post was at 11:07 PM ----------

if not lets connect teamviewer tomorrow after 3pm so i can check

---------- Post added at 11:45 PM ---------- Previous post was at 11:17 PM ----------

true those files dont exist within it that one just img files which are no help we need odin to work try uninstalling all samsung drivers even the libusb from device manager and hit delete software then use a new usb port and get into download mode and the drivers should install

---------- Post added at 11:49 PM ---------- Previous post was at 11:45 PM ----------

lol dont forget to reinstall them or try letting windows update do it if it fails just install regular samsung drivers from the samsung site

found this http://www.samsung.com/hk_en/galaxytab89_upgrade/

and kies http://www.samsung.com/hk_en/support/usefulsoftware/KIES/JSP
[Galaxy Tab 8.9 General] Madness_logic:
like i say in the olders question , the tablet doesn't turn on , nothing... so i cant put the tablet en download mode ...
[Galaxy Tab 8.9 General] Unjustified Dev:
well if that was the case this was a waste of time if no download mode then your messed up try pressing the download mode combination then inserting the usb cord
[Galaxy Tab 8.9 General] Beatsleigher:
Hehe. Luckily I got it moved for him :D :laugh:

Lg
[Samsung Galaxy Mini] mcleoadroid:
http://xdaforums.com/showthread.php?t=2090983

Help

1.When calling coming ringtone not function but vibration function.

2.Display crash during browsing but when touch (glitch) screen with finger its OK.
[Samsung Galaxy Mini] dheeraj (dhlalit11):
check your sound setting

maybe your ringtone is set as silent
[Samsung Galaxy Mini] mcleoadroid:
Tq4 Reply bro.FYI mail notification is OK.silent mode is off.any idea bro?
[Samsung Galaxy Mini] dheeraj (dhlalit11):
not the silent option

check what you have selected as a ringtone
[HTC One X] rvsw:
I have an AT&T HTC unlocked phone. I wanted to share the 3 G connection on it with my computer. When I set up 3 G and turn on wireless hotspot, I get a message

"There is a temporary network problem that prevents the enablement of the mobile hotspot function. Please retry later". Rebooting , changing SIM with another 3 G provider doesn't help.

I tried the same operation with USB tethering with similar results.

Can anyone please provide help?

Thanks
[HTC One X] backfromthestorm:
They probably disabled it. Try a 3rd party WiFi tether app from the market.

Though you'd be better asking in the at&t forum.
[Motorola Atrix HD] giovannithechef:
Hello! I recently modded an atrix4g lapdock for use with my atrix hd. All systems are go except for the screen. It's like a widescreen movie, but worse! I need help ásap please. I think possibly installing a different webtop environment would remedy this, but I've not the means to procure it. Please help me figure this out, i want my little brother to have a "laptop" lol.

Thank you, in advance.

Keith Engeleit
[Motorola Atrix HD] Markyzz:
You must be on jellybean.

This is a problem on every JB device

Sent from my phone.
[Samsung Galaxy Nexus] arrish4:
any rom like note 2 multiwindow rom for our gnex?:confused:
[Samsung Galaxy Nexus] bartek24:
there was already a discussion about it if I'm not mistaken.
[Samsung Galaxy Nexus] JKan Co:
So far no :( And I think it would be very difficult to port it..

Bartek24 it was not necessary to post a rude and unhelpful comment.

Maybe he is newbee and has not done a research.. And there are 381 pages....
[Samsung Galaxy Nexus] chopper the dog:
He wasn't rude at all. There have been many threads asking this already. Had OP been in the right section he might have stumbled upon one of them. ;)

good day.
[Samsung Captivate Glide] Neuntoter:
Well being I can't post on the development board I guess I will have to post my rom bugs here.

So I hope that thegreatergood will see it here.
[Samsung Captivate Glide] Neuntoter:
RootBox-JB-i927-Nightly-20130212

BUGS

1) Either the new hardware keyboard lights fix by scottbot95 doesn't work or it wasn't included in this rom. I can see the hardware keyboard lights still come on while the keyboard is closed when the capacitive buttons are used. This leads me to believe that the new patch wasn't applied to rom.

2) Bluetooth still not working in regards to audio in, but audio out works and voice dialer no longer screams in your ear.

Confirmed Fixes
[Samsung Captivate Glide] Neuntoter:
LiteKernel-4.2-20130212

1) Battery life... I have no app but the default battery app.

If the use by the kernel would be measured under Android System, then I think there is an issue.

Android System is at 27% after 45 minutes of use while screen is only at 23%.

This correlates unscientifically to what I witnessed in CM10.1 with LiteKernel-4.2-20130211 after 5 hours of pretty regular use playing games, backing up, downloading, and etc. Android System was almost equal with screen on battery usage.

I believe this to be a bug because before I upgraded while using LiteKernel-4.2-20130120, the screen usage was easily double the usage of Android System, under similar use patterns.

I am flashing back to CM10.1 and will test this more under daily driver.

2) The WIFI power manager, am I just missing where to turn it off? I am sorry and the work you do is amazing thegreatergood but it has to be one of the most annoying things I have ever encountered.
[Samsung Captivate Glide] nachonovoa27:
1) I had the same issue... But i checked and some times there is a process that tries to turn on the screen, and keeps doing it forever, until you reboot the phone... I use pop up notifications from whatsapp and this happens alot... but sometimes you realize to late.. and the battery is already gone....

2) The same with you... It is really annoying... I already read in a post from dmans.. that he will put an option to disable that...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] zodoz:
Base Phone Specs:

Model: Sony Ericsson ST15i

Android Version: 2.3.4

Build: 4.0.2.A.0.84

Status:

Sim Card 1 - 32Gig SD

Sim Card 2 - 8Gig SD

------------------------------------------------------------------------------------------------------------------------

Question:

Is it possible to separate all App data between 2 separate Sim card/SD card combinations?

My layman's description:

Sim Card 1 = Work number/Apps/emails/links/etc.

Sim Card 2 = Personal number/Apps/emails/links/etc.

Process I am hoping to achieve:

1) Switch from Work to Personal and vice versa.

a) Switch out Sim_1 & SD_1 w/ Sim_2 & SD_2. Reboot.

Once the phone is rebooted, the Sim_2 number is now my personal cel number.

What I hope is that the phone can now recognize or be made to recognize a "new" state.ie, Env_2 {Environment 2}

Env_2 is separate, mutually exclusive, from Env_1 {work}.

All Google maps, apps, contacts, etc. for Env_1 & Env_2 may/may not be shared. Anything requiring storage, would be routed to SD_1 or SD_2.

The following graphic {can it be called a "graphic" lol} shows what I am trying to do:

ST15i

|

Android Base OS

|

Sim_1 | Sim_2

SD_1 | SD_2

Apps_1 | Apps_2

Accts_1 | Accts_2​

The vertical line represents that the 2 environments are mutually exclusive, only the Base OS required to run the phone is loaded in both cases. All Apps, etc. are controlled via SD cards.

Thanks in advance for help.

Zodoz
[Galaxy Ace S5830 Q&A, Help & Troubleshooting] excile25:
hi guys.. pls help me with my problem.. :(

my samsung galaxy ace is now powerless, i cant turn the power on,, and i cant even charged it..

this is what happen. im on installation of roms for my unit, before all the instructions are done i thick its now totally brick.. :(

after installing the rom it says installation conpleted but it didnt automatically reboot after that so i manual select reboot as i read in instruction but what i what wonder is it didnt automatically reboot.. after i manual reboot the unit it turns powerless and black out instead it will automatically boot but didnt.

now even i turn on the power button it didnt work, i push the home+power botton at the same but also didnt work, ive read some instructions on google on how to unbrick .. i push volume + and volume - at the same time then push power button but still it didnt turn on..

pls.. anybody can help me to fix my unit.. :( :( plsssss

tnx in advance for those who are going to help me.. :(