ADB Mac/OSX Terminal APK Install - Nexus Player Q&A, Help & Troubleshooting

Hey guys
I have been strugling for 10 hours to find out how to install all apk files, from a folder local on my mac, to my Nexus player.
Can someone guide med on how to make some kind of *.* install, so that i can install all APK files from a folder in a script ?
I can se that i can just put each apk file name in the script, but the thing is that the APK file names changes constantly, so i would really like to be able just to install all APK files from a folder instead ?
Really hope someone can help me, have a nice day!

You can follow this tutorial to install Fastboot and ADB: https://www.youtube.com/watch?v=qhYnHsmuJfo
Make sure you turn on Developer Options on your Nexus Player and also turn on USB Debugging. Then you can installs APKs using "adb install app.apk"

Related

Trying to Install xRecovery

So I'm trying to install xRecovery using this link and I download the .zip file and unpack it. First I try to "Automatic Installation (recommended): Open xRecovery installer app and tap "Install xRecovery" but I can't find the xRecovery installer anywhere so I try:
Manual Installation:
- Download the apk, rename it to xrecoveryZIP
- Unpack the file, find ./res/raw folder inside. It should contain 3 files (chargemon, busybox, xrecovery.tar)
- copy these 3 files into /system/bin using root explorer (remember to remount /system rw
but when I go to the /system folder there's no /bin folder and I have zero clue what to do
PS - as far as i know i've successfully rooted my phone using superoneclick
hambino83 said:
So I'm trying to install xRecovery using this link and I download the .zip file and unpack it. First I try to "Automatic Installation (recommended): Open xRecovery installer app and tap "Install xRecovery" but I can't find the xRecovery installer anywhere so I try:
Manual Installation:
- Download the apk, rename it to xrecoveryZIP
- Unpack the file, find ./res/raw folder inside. It should contain 3 files (chargemon, busybox, xrecovery.tar)
- copy these 3 files into /system/bin using root explorer (remember to remount /system rw
but when I go to the /system folder there's no /bin folder and I have zero clue what to do
Click to expand...
Click to collapse
First make sure your phone is rooted, then install Busybox from Market. Make sure Busybox is installed on xbin, not bin..
Got into the same prob coz its installed on bin, tried to reinstall busybox and saved it to xbin and i manage to install xrecovery..
Thanks for the quick reply! In the busybox installer it says "status: done" but i don't know if it actually installed or not b/c i don't see busybox anywhere ??
k so i can get to the system/bin folder on my phone but i can't copy over the files like the instruction says it says "xxxx file copy failed" for every file i try to paste into the /system/bin...i like to think i'm not completely retarded but this ish is killin' me
When you install Busybox, theres an option where to install it. install it to xbin, not bin.
When it's done, its done. then try installing xrecovery.
Also, install xrecovery using the Automatic way, its easier..
When doing a copy/pasting or editing, make sure Root Explorer is in r/w, not r/o
I would install it the automatic way if I could find the installer anywhere :-/
hambino83 said:
I would install it the automatic way if I could find the installer anywhere :-/
Click to expand...
Click to collapse
Dude its in that thread: http://www.mediafire.com/?eyihuzn4h96xw4c
DL that then, go to Market and search for an apk installer. install that.
Then copy the xrecovery apk to ur sd. open the apk installer of ur choice. it should then scan for apks in ur sd card. install xrecovery and ur done.
I too am having the same problem as yours but managed to overcome this issue by installing xrecovery via flashtool.
Sent from a public phone.
the file that downloads from that link is a .zip. do I need to change the extension to .apk? (i know it says .apk on the link but when you download it there's no .apk)
hambino83 said:
the file that downloads from that link is a .zip. do I need to change the extension to .apk? (i know it says .apk on the link but when you download it there's no .apk)
Click to expand...
Click to collapse
Because your pc is not showing the file extensions.
thats the right one.
ok...when i put it on my sd card the apk installer doesn't find it
clixt said:
When doing a copy/pasting or editing, make sure Root Explorer is in r/w, not r/o
Click to expand...
Click to collapse
how do i do that?
If ur using root explorer, tap the r/w on the upper right..
Sent from my Rooted X10i
awesome...something else i need to dl *sigh* brb lol
edit - nm..do i really need to buy software to install this thing?!
hambino83 said:
awesome...something else i need to dl *sigh* brb lol
edit - nm..do i really need to buy software to install this thing?!
Click to expand...
Click to collapse
Theres a free root explorer in the market. Look for one.. Try looking for some youtube videos online for the x10...
Sent from my Rooted X10i
if i watch this video, there's a point where he clicks on the file on his phone and the file's icon is the little android mascot or whatever and when he clicks on it it gives him the option to open it with the app manager and when he clicks on it it takes him through the installation. whenever i go to the file on my phone, 1) the icon attached to it is the same as for a .zip file and 2) when i click on it it only gives me the option to extract it.
Also, give flashtool a try.... Gtg.
Sent from my Rooted X10i
thx for trying to help, much appreciated.
any other takers???
Dont extract it, just copy the file the way it is to ur sd card... Scan again with an apk installer...
Sent from my Rooted X10i
that's what i did, copied it without extracting it

Help with compiling apk for framework-res

I am trying to create a custom theme, by modifying the framework-res.apk. I have been successful in porting some really cool .png files, but my problems start with the de-compiling & recompiling the .apk so I can modify the .xml & .9.png files. It seems every time I recompile my .apk it sends me in to a boot loop. I have used both APKTool and APK Manager with no luck. Here are my steps:
APK Manager:
1. Use a root explorer to copy the framework-res.apk.
2. Paste the file on my sd card.
3. Copy the file and paste it in the "place-apk-here-for-modding" folder.
4. Choose option 9 for compile.
5. Open the .xml file with Notepad++.
6. Recompile .apk using option 11.
7. Yes to "is this a system file?"
8. Yes to "keep original files & signatures"
9. Delete the files I modified from the "keep" folder and the resources.ascr file.
10. Finish the build of the .apk.
11. Copy & paste the modified .apk back to my sd card.
12. Rename the file from unsigned-framework-res.apk to framework-res.apk.
13. Use root explorer to cut & paste the modified to my /system/framework folder.
14. Reboot.
I now end up in a boot loop what am I doing wrong??
Rockstar52 said:
I am trying to create a custom theme, by modifying the framework-res.apk. I have been successful in porting some really cool .png files, but my problems start with the de-compiling & recompiling the .apk so I can modify the .xml & .9.png files. It seems every time I recompile my .apk it sends me in to a boot loop. I have used both APKTool and APK Manager with no luck. Here are my steps:
APK Manager:
1. Use a root explorer to copy the framework-res.apk.
2. Paste the file on my sd card.
3. Copy the file and paste it in the "place-apk-here-for-modding" folder.
4. Choose option 9 for compile.
5. Open the .xml file with Notepad++.
6. Recompile .apk using option 11.
7. Yes to "is this a system file?"
8. Yes to "keep original files & signatures"
9. Delete the files I modified from the "keep" folder and the resources.ascr file.
10. Finish the build of the .apk.
11. Copy & paste the modified .apk back to my sd card.
12. Rename the file from unsigned-framework-res.apk to framework-res.apk.
13. Use root explorer to cut & paste the modified to my /system/framework folder.
14. Reboot.
I now end up in a boot loop what am I doing wrong??
Click to expand...
Click to collapse
You have to sign it with 12
Lenn said:
You have to sign it with 12
Click to expand...
Click to collapse
Tried it, still boot loops at the Archos screen. I then have to do a complete format & wipe reinstalling the SDK, firmware, and the root files. I don't get it.
Lenn said:
You have to sign it with 12
Click to expand...
Click to collapse
Do not sign frameworks! How many time do I have to say this! System apps do not get signed...
Now, as far as the framework, there's two things to check. First, what XMLs have you edited? Second, instead of using root explorer to copy the framework, connect to a pc and use adb to perform these commands:
Code:
su
stop
cp /system/framework/framework-res.apk /system/framework/framework-res.old
cp /sdcard/framework-res.apk /system/framework/framework-res.apk
chmod 644 /system/framework/framework-res.apk
sync
start
If it continues boot-looping, you will still be connected through adb, so you just
Code:
stop
cp /system/framework/framework-res.old /system/framework/framework-res.apk
sync
start
and it will come back up without having to reformat or anything.
If it's bootlooping even when you use the adb method to copy, then your XMLs must be reencoding incorrectly. Post a list of all XMLs you have changed.
msticninja said:
Do not sign frameworks! How many time do I have to say this! System apps do not get signed...
Now, as far as the framework, there's two things to check. First, what XMLs have you edited? Second, instead of using root explorer to copy the framework, connect to a pc and use adb to perform these commands:
Code:
su
stop
cp /system/framework/framework-res.apk /system/framework/framework-res.old
cp /sdcard/framework-res.apk /system/framework/framework-res.apk
chmod 644 /system/framework/framework-res.apk
sync
start
If it continues boot-looping, you will still be connected through adb, so you just
Code:
stop
cp /system/framework/framework-res.old /system/framework/framework-res.apk
sync
start
and it will come back up without having to reformat or anything.
If it's bootlooping even when you use the adb method to copy, then your XMLs must be reencoding incorrectly. Post a list of all XMLs you have changed.
Click to expand...
Click to collapse
I do have my system set up for adb, but for some reason it don't read my A101, it works fine for my phone. The device manager shows my A101 listed as a Gen8 ADB Device, but it don't show up when i use the command: adb devices.
With your help I did manage to replace all of the stock .png's. I also found that I don't need to edit the .xml files to do what I want to. Thanks, for so much of your help! Although I would like to replace the .9.png's also and I understand that you must de-compile the .apk in order to do so. this way I could build a custom theme.
Rockstar52 said:
I do have my system set up for adb, but for some reason it don't read my A101, it works fine for my phone. The device manager shows my A101 listed as a Gen8 ADB Device, but it don't show up when i use the command: adb devices.
With your help I did manage to replace all of the stock .png's. I also found that I don't need to edit the .xml files to do what I want to. Thanks, for so much of your help! Although I would like to replace the .9.png's also and I understand that you must de-compile the .apk in order to do so. this way I could build a custom theme.
Click to expand...
Click to collapse
Have you done this yet(from the archos support site):
Windows: echo 0x0e79 >> "%USERPROFILE%\.android\adb_usb.ini"
Macos: echo "0x0e79" >> ~/.android/adb_usb.ini
Linux: echo "0x0e79" >> ~/.android/adb_usb.ini
And disabled/reenabled debugging on the tablet?
msticninja said:
Have you done this yet(from the archos support site):
Windows: echo 0x0e79 >> "%USERPROFILE%\.android\adb_usb.ini"
Macos: echo "0x0e79" >> ~/.android/adb_usb.ini
Linux: echo "0x0e79" >> ~/.android/adb_usb.ini
And disabled/reenabled debugging on the tablet?
Click to expand...
Click to collapse
No but I will give it a try and report back.
None of my changes are taking effect??!
Still not working, just a question. I am running Win7 64bit could this be the problem?? Do I need to be on a 32bit system to do the decompiling, compiling?
Tried on my wife's 32bit system still the same. For some reason it's not compiling the .apk right.
Rockstar52 said:
I am trying to create a custom theme, by modifying the framework-res.apk. I have been successful in porting some really cool .png files, but my problems start with the de-compiling & recompiling the .apk so I can modify the .xml & .9.png files. It seems every time I recompile my .apk it sends me in to a boot loop. I have used both APKTool and APK Manager with no luck. Here are my steps:
APK Manager:
1. Use a root explorer to copy the framework-res.apk.
2. Paste the file on my sd card.
3. Copy the file and paste it in the "place-apk-here-for-modding" folder.
4. Choose option 9 for compile.
5. Open the .xml file with Notepad++.
6. Recompile .apk using option 11.
7. Yes to "is this a system file?"
8. Yes to "keep original files & signatures"
9. Delete the files I modified from the "keep" folder and the resources.ascr file.
10. Finish the build of the .apk.
11. Copy & paste the modified .apk back to my sd card.
12. Rename the file from unsigned-framework-res.apk to framework-res.apk.
13. Use root explorer to cut & paste the modified to my /system/framework folder.
14. Reboot.
I now end up in a boot loop what am I doing wrong??
Click to expand...
Click to collapse
With ApkManager did you delete the 'public.xml' folder in ..\res\values ?
waterpolo said:
With ApkManager did you delete the 'public.xml' folder in ..\res\values ?
Click to expand...
Click to collapse
No, I did not. Was I supposed to?
EDIT: Ok I did some digging and what I have found is that the file size of the original framework-res.apk is 9.32mb. Once I rebuild it whether I modified anything or not the rebuilt .apk is only 7.34mb. Upon further inspection it seems to leave out all of the "value" named folders from the newly built .apk, and it does this whether I use APKTool or APK Manager(even though I say keep files). Has anyone else had this problem?
IM having the same problem,no solution though ! i edited bools.xml but after recompiling its not there ! Anyone solution ?

[Req] Flashable file explorer

I've installed cm9 but it doesn't come with any file explorer.
I don't have any internet access on my phone right now so I can't download from market, but I have to restore the apps using titanium backup.
So I need a flashable zip with a file explorer that works on cm9 to install TitaniumB from my sdcard
you should have copied a file manager apk to the app folder in the rom archive before flashing :|
No need to flash, u can use adb shell to install the app.
adb install filemanager_name.apk
EDIT:
Success !
Thanks
igivecandy said:
where do I have to put the .apk file? because i get the message:
"can't find 'titanium.apk' to install"
Click to expand...
Click to collapse
The easy way is to put the apk file in the same folder with adb command
or indicate the path to this apk (e.g. adb install /documents/android_apps/filemanager.apk)
the best way is to go in browser and type file:///sdcard/file_managername.apk
to the app folder in the rom archive before
flashing :|

[Q] My nexus 7 died!!

I tried to update to 4.2 and I changed the android.policy.odex file and maybe this is not good one and the android does not goes up.
I can go into recovry and conect to adb. someone have the write file or way to solve this problem.
can I paste the file therout adb or flashable zip ??
Thanks
I found the right file
How can I use adb to delete the file on the device and push the new one?
edit
I understand that I cant go into this folders with the adb beacuse it says I dont have perrmision/ and I maybe need flashable zip file. how I do flashable zip for this file?

is deodexing like this?

if there is an apk named browser.apk and an odex file named browser.odex
if i do is modify the zip and rename the .odex to classess.dex and placing it on .apk will this be eodexing?
if so would this work on my cherry mobile titan tv/karbonn a30 ics MTK6577?
No Deodexing is something else.... If you wanna deodex then
1.) Download XUltimate (google it)
2.) Switch on USB Debugging Mode and connect phone to pc! (Dont switch on USB Transfer)
3.) Now Select pull and deodex all folders! (if this option is not there then something similar to this will be there)
4.) After deodexing all apks the place where you installed xUltimate there will appear to folder done_app and done_framework.. (Something similar... This depends on the version of xUltimate)
5.) Rename the folders to app and framework and then copy to sdcard after activating usb mode
6.) Push the folders into system folder va Root Browser! (I hope you have rooted your mobile)
7.) Reboot! You are done
*NOTE: If you get an error while deodexing delete the .odex of which it is giving error and then select deodex both folder!
death_sinker said:
No Deodexing is something else.... If you wanna deodex then
1.) Download XUltimate (google it)
2.) Switch on USB Debugging Mode and connect phone to pc! (Dont switch on USB Transfer)
3.) Now Select pull and deodex all folders! (if this option is not there then something similar to this will be there)
4.) After deodexing all apks the place where you installed xUltimate there will appear to folder done_app and done_framework.. (Something similar... This depends on the version of xUltimate)
5.) Rename the folders to app and framework and then copy to sdcard after activating usb mode
6.) Push the folders into system folder va Root Browser! (I hope you have rooted your mobile)
7.) Reboot! You are done
*NOTE: If you get an error while deodexing delete the .odex of which it is giving error and then select deodex both folder!
Click to expand...
Click to collapse
I found one on xda but link is dead can u give me a copy and does xultimate work with ics?
Sent from my Titan TV S320 using xda premium
odex is a file which makes the system load apps faster,
so you cannot modify a system app without editing the odex file,
it's like a browser with cache,
deodexing would cause the system to load each time you access a system app,

Categories

Resources