Install Play Store on ODROID XU - Android General

Solved This Is What I Did.
In order to install Google apps you need to perform following steps:
(If you didn't already install)download and install odroid adb driver : http://com.odroid.com/sigong/nf_file_board/nfile_board_view.php?keyword=&tag=&bid=22
Download android sdk; cause we need Android Debug Bridge (adb.exe) : http://developer.android.com/sdk/index.html
Download gapps;
JB 4.2.2 => http://goo.im/gapps/gapps-jb-20130812-signed.zip
Play Store => http://www.androidfilehost.com/?fid=23060877489998215
extract zip files then copy "com.android.vending-4.3.10.apk" to system folder then system folder to the folder where adb.exe is located. In order to copy files to your odroid box;
Code:
adb remount
then execute following command;
Code:
adb push system /system

Related

[GUIDE]( Easiest) All about ADB, logcat, shell

ADB:-
Android Debug Bridge
Very useful program made itself by Google for Programmers and developers. Its based on command line and basically communicates with your Android to respond to certain commands. There is vast amount of knowledge about adb but its most useful commands limit to getting:-
Logcat:-
A real time log of what is happening in background of our devices. It is really useful for developers to see which component has malfunctioned and helps to narrow down their search for what failed and what needs to be fixed. Several times users are asked to give logcats of their devices which are giving errors. We will go in detail that how to get logcats in every and easiest way possible.
App Installation and Management:-
adb proves really handy if you want to install apks directly from your PC or want to batch install or delete them.
Shell Execution:-
You must have heard of Terminal Emulator. It is an app for android to execute shell commands(linux commands) which are basically present as applets in /system/bin, /system/sbin or /system/xbin(in our case) folders. A very imporant applet called busybox is installed there mainly used for execution of basic commands during root browsing or ROM installation. Many times updater script of ROMs use busybox commands to install it. Well, these commands can be initiated from your device too but they can be initiated from adb also making it easy for programmers.
Pushing and Pulling:-
Most used commands of adb. adb makes it a piece of cake for new device developers to get an ideo of structure and basic knowledge of devices by pulling command. We can pull out i.e copy any files or folders from our devices to our PC, even the root directories without rooting the devices. It help rooters and ROM chefs of new devices to get an idea and implement their mods on them. Pushing is also very useful command. It copies your files and folders from PC to your device. Very useful in pushing some /system apps and other things
Remounting and setting permissions
Basic commands:-
Of-course basic commands such as reooting and rebooting in recovery ode and download mode are supported.
Others:-
There are several other features of adb such as fastboot, aapt, etc
Setting up ADB
Pre Requirements:-
A little amount of brain
PC(This is a windows guide, if asked I will add linux and mac guide later)
Java Runtime environment or Java Developing kit
Your Device Drivers
An Android Device
Assuming you all these ready and working properly, we continue
If you are having trouble completing Pre-Requisites, there are several guides featuring them too
Start
1. First Download Android SDK. Roughly about 70 MB
2. There may be any compressed zip file or exe file
If zip file, then extract it to C:\android-sdk
If exe file then double click on it and install it in C:\ Drive(or any other drive you want)
3. Now to get adb and other tools, you need to download 'Platform Tools'
To download them, go to the android-sdk folder and double click on SDK Manager
It will ask you which package to download? However, it is your choice which package to Download, but here, we will only talk about platform
Tools. So, simply tick on Platform Tools and click on install. Once you have done it. Go to the platform-tools folder in the directory where you installed android-sdk. You will find several files there like adb, fastboot, aapt, etc
4. Now, you can backup the whole folder of android-sdk to any external storage that will make you not download package
again if you want to. You can have it placed in any computer and run it as it does not require registry to work
5. Now, you are just one step away from using adb. Next step is SKIPPING SETTING ENVIRONMENT VARIABLE
Many guides on internet say that it is to be done for making it easy for users and if you have some basic knowledge of Command Prompt,
you will know that to execute any application with command prompt, you first need to change the directory to the one where application is
placed. And to skip changing the directories every time you open CMD, you need to put that application is environment variable. Howeve, we will not do so.
6. Type cmd in the search bar. Copy cmd.exe from there. Go to the directory where you have installed android-sdk. Go to platform-tools folder. Paste cmd there, right click on it and in the settings, select Run as Administrator.
7. You are done. Now what to do in it?
ADB Commands
Type adb in command prompt. And several commands will show up on your screen. It is very difficult to analyse these all commands, so we will only talk about most used and important commands
Connect your device via USB cable
And open the CMD in platform-tools folder(Make a shortcut of it on desktop). And type the suitable commands
Code:
adb devices
Will show the list of devices attached to the PC andtheir serial numbers. If this shows up correctly on your PC, then it means that everything is fine for continuing.
Logcat
Code:
adb logcat
It will display the real time log of your device
Best time to do it is when your device boots up
Now, many users ask me how to copy the logcat and upload it from CMD
There are several methods:-
1. Right click on the Title Bar of Command Prompt. Hover the cursor over edit and select mark. Select all the things you want to copy and then click enter. All the things will be copied to clipboard.
2. This is the correct way of getting logcat saved.
Code:
adb logcat > logcat.txt
This command will create a logcat.txt document in platform-tools folder with the complete logcat of the device. Ofcourse you can type any name instead of logcat.txt
3. I prefer taking logcat this way as it neatly compiles logs of different time
Code:
adb logcat -v long > logcat.txt
This is a very nice way to get logcat.
Installing Apps
Code:
adb install %PATH OF APK%
This will install an app on your Android
For example, if my app AreeB.apk is in G:\ drive (G:\AreeB.apk)
Then I will type
Code:
adb install G:\AreeB.apk
Be sure your apk is not in a folder that has space in its name, else the command will break at space bar.
For eg:-
G:\Program Files\AreeB.apk
Mounting
However, I never found any problem in tweaking with system files with adb, but some users said that they couldn't do it, so the problem was that their system partition was mounted as Read Only(R/O)
So, it is necessary now to tell how to mount system partition as Read Write(R/W)
Code:
adb remount
It is easiest way to do so, if it does not work then
There is another method that we will discuss in ADB Shell commands section
Pushing and Pulling
For pushing,
Type
Code:
adb push %PATH TO BE PUSHED% %PATH WHERE TO BE PUSHED%
Suppose I have an app named SystemUI.apk(PATH = G:\SystemUI.apk) which I want to push in /system/app/ on my android(or in other words, install an app as a system app). Then I would type
Code:
adb push G:\SystemUI.apk /system/app/
More examples
G:\Dance.txt file to be pushed in Dance folder in sdcard
Code:
adb push G:\Dance.txt /sdcard/Dance/
OR
Code:
adb push G:\Dance.txt /mnt/sdcard/Dance/
G:\Movies folder to be transferred in SDCARD in Videos Folder
Code:
adb push G:\Movies /sdcard/Videos/
G:\system\framework\framework-res.apk to be pushed in /system/framework/
Code:
adb push G:\system\framework\framework-res.apk /system/framework/
For pulling,
push command replaces with pull and paths are swapped
Code:
adb pull %PATH TO BE PULLED FROM% %PATH TO PLACE PULLED FILE%
Example,
All system apps are to be pulled to G:\ROM\system\app
Code:
adb pull /system/app G:\ROM\system\app\
build.prop to be extracted to desktop
Code:
adb pull /system/build.prop C:\Users\Areeb\Desktop\
However, if a folder is in platform-tools folder, you don't need to type full path
Suppose if I type
Code:
adb pull /system/ system
Then a folder named system will be created inside platform-tools with all the files in system in it
If a file is in platform-tools folder, then also no need to type full path
For example,
There is an app name DeskClock.apk in this folder then, to push it to /system/app, type
Code:
adb push DeskClock.apk /system/app/
ADB Shell Commands
This mode of adb allows you to execute linux shell commands from your PC
These commands can aldo be executed through the mobile using Terminal Emulator
To initiate shell mode
Type
Code:
adb shell
You will get an prompt like this
sh-3.2#
Now you are in shell mode
adb commands won't work here and a new set of commands will work here. But we will only go in a little detail here.
Assuming you are in adb shell mode, I will only type commands that will work on shell. Note:- These commands won't work if you type them alone on cmd. But, these command will directly work on your mobile's Terminal Emulator
As these commands can also work on mobile, I am going to tell you a way of taking logcat on mobile
Type
Code:
logcat
You will see log of your device
To save this
Type
Code:
logcat > /sdcard/log.txt
A file named log.txt will be generated in sdcard
Uninstalling Applications
Code:
cd /data/app
This will change the directory to /data/app
Code:
ls
This will show the list of files in there
Suppose, there is an app named com.opera.browser (Opera Mobile) you want to uninstall it
Type
Code:
rm -r com.opera.browser
This will uninstall the app
Mounting Command:-
Code:
mount -o rw,remount /dev/block/mtdblock3 /system
Miscellanous commands:-
su: Initiates root request
du: Shows file foldrs and size
date: Shows todays date
Forgot next ones, will write later
Credits
Google: For Android and several searchings
Samsung: For Galaxy Ace s5830I
Broadcom: For their Open Sourceness
XDA Forums : For the precious knowledge
My Uncle: For gifting me this Phone
My Teachers: For teaching me English(I would not be here without them)
You: For future Thanks
Till now, thats it, will add some more things later
If any problem, I will add it too
Suggestion? They are welcome

[Q] Acer Iconia A1-810 - trying to root but get 'command not found' error on Lubuntu

Can anyone suggest anything for this problem please? I get the error 'command not found' when I try to execute the toolkit.sh script on Lubuntu 13.10
I can't post this in the proper thread as it's a developer thread.
The original thread is here:
http://forum.xda-developers.com/showthread.php?t=2240029
I followed the instructions on this post:
http://forum.xda-developers.com/showpost.php?p=46155577&postcount=1843
Here are the exact steps I did:
1. Installed Lubuntu 13.10 fresh install to a NEC Versa ONE laptop
2. In LXTerminal:
sudo su
sudo apt-get install android-tools-fastboot android-tools-adb
3. Restarted laptop
4. Extracted Acer Iconia Toolkit v0.8.0 zip file to 'iconia' folder on desktop
5. In LXTerminal:
sudo su
cd Desktop/iconia
chmod 777 toolkit.sh
toolkit.sh
Then I get the error 'toolkit.sh: command not found'
I've tried the following:
1. Checked that Python is installed. In Synaptic Package Manager it looks like there are loads of Python packages installed as default
2. Copied the 'iconia' folder into /bin using the PCManFM file manager and tried to execute the script but get the same error
3. Copied the toolkit.sh file to toolkit2.sh, edited it and put in the word 'guff' then executed it in terminal. The error stayed the same so it's not the script file?
I'm not really a Linux user so at this point I'm a bit stuck.
Cheers.
[A] Found a solution
I used this solution in another distro (Ubuntu 12.04.3) but it should work in Lubuntu
1. Extracted the acer_iconia_toolkit_v0.8.0.zip to the desktop
2. Run Terminal and type 'gksudo nautilus' to get a GUI file manager with root rights
3. Copy the extracted folder from the Desktop to the 'bin' folder (navigate backwards in the file manager)
4. Open the /bin/folder_you_copied, right click on the toolkit.sh file and choose Open
5. At the prompt 'Do you want to run 'toolkit.sh', or display its contents?' choose 'Run in Terminal'
6. Follow the on screen prompts
The tablet is now rooted

[GUIDE] How To Use ADB To Push And Pull Files

Welcome XDA Members!
To Use ADB First You Have Enable ADB In The Developer Options In Your Android Phone. In This Thread I Will Tell You How To Push And Pull Files Via ADB.
Pull = Taking (OR) Copying Files For System(Android)
Push = Copying The Files To The System
Note: If You Are Using CM12,CM13 Set Root Access To "Apps And ADB".
How To Pull Files:
1. Open CMD (OR) Terminal In Your PC
2. First You Have To Start ADB In Root
Code:
adb root
3. You Have To Mount The System
Code:
adb remount
4. Now We Pull The Files (Exampel: Settings.apk)
Code:
adb pull /system/priv-app/Settings/Settings.apk
5. Replace /system/priv-app/Settings.apk To Your File Location
6. You Got Your File Form The System!
How To Push files
1. Open CMD (OR) Terminal In Your PC
2. First You Have To Start ADB In Root
Code:
adb root
3. You Have To Mount The System
Code:
adb remount
4. Put Your File In The ADB Folder
5. Now We Push The Files (Example: Settings.apk)
Code:
adb push Settings.apk /system/priv-app/Settings.apk
6. Replace /system/priv-app/Settings.apk To Your File Location
7. You Have Copied Your Files To Android System.
Press The Thanks Button!
Enjoy! :
Is there any way to push files in bunch to like hundreds of files to system at once just like copy paste
Ash225 said:
Is there any way to push files in bunch to like hundreds of files to system at once just like copy paste
Click to expand...
Click to collapse
yes just push the folder containing those files (you can leave a space at the end of your push command and specify a particular location in your android device)

MIUI Bloatware Remover - NO ROOT

MIUI_Boatware_Remover_NO_ROOT
I am not responsible for any damage or malfunction of your device.
REQUIREMENTS
Windows 10 or Linux
Python 3.x
CMD(Windows), PowerShell(Windows) or Terminal(Linux)
INFO
This app removes some apps of your choice from the MIUI rom
SUPPORTED DEVICES
All MIUI devices also not rooted
INSTRUCTIONS
FOR WINDOWS
Enable ADB Debug on your smartphone (Developer Settings)
Install Python3 from the official website: https://www.python.org/
Open the cmd and start the program by typing <dir python.exe> <dir MIUI_Boatware_Remover_NO_ROOT.py>. remember to also write python.exe and MIUI_Boatware_Remover_NO_ROOT.py. ES. C:\python\python.exe C:\Users\<name of your user>\Download\MIUI_Boatware_Remover_NO_ROOT.py
Follow the instructions displayed in the program
OR LINUX
Enabl OEM Unlock and ADB Debug on your smartphone (Developer Settings)
Open the terminal and type sudo apt install python3 to install Python3
Now type python3 <dir file MIUI_Boatware_Remover_NO_ROOT.py> remember to also write MIUI_Boatware_Remover_NO_ROOT.py
Follow the instructions displayed in the program
GitHub: FabioFabRob7/MIUI_Boatware_Remover_NO_ROOT (github.com)
Thank you @FabioFabRob7
I appreciate your effort.
Can I simply run the python script from linux as I don't have windows?
Are all those dll and exe files really necessary or can I simply delete those? I'm only interested in the debloater script itself.
You can download all the zip via github web or git clone in terminal, then delete all the exe file with file manager or command rm (remove) via terminal
you can also copy the code when view the file .py on github and use gedit and save a new file .py on your desktop

how to install driver binaries for Pixel ?

i have downloaded the corresponding Driver binaries related to my device , ( https://developers.google.com/android/drivers )
one file is for Vendor -google , the other file is GPS, Audio, Camera, Gestures, Graphics, DRM, Video, Sensors - Qualcomm
when i extract the two files the both open as *textqualcomm.sh* etc they are both .sh format how would i run this in fastboot ?
You can't run Android shell scripts via Fastboot: Fastboot deals with device's bootloader but not with Android OS..
xXx yYy said:
You can't run Android shell scripts via Fastboot: Fastboot deals with device's bootloader but not with Android OS..
Click to expand...
Click to collapse
ok , how do i run it ?
1.
If not already done, root phone's Android
2.
Install an app like SH Script Runner ( downloadable from APKPure )
3.
Mount the partion(s) were driver should get installed to as RW
4.
Stop Android ( cmd: adb shell stop )
5.
By means of SH Script Runner execute the scripts in question as root
6.
Start Android ( cmd: adb shell start )
7.
Reboot phone
xXx yYy said:
1.
If not already done, root phone's Android
2.
Install an app like SH Script Runner ( downloadable from APKPure )
3.
Mount the partion(s) were driver should get installed to as RW
4.
Stop Android ( cmd: adb shell stop )
5.
By means of SH Script Runner execute the scripts in question as root
6.
Start Android ( cmd: adb shell start )
7.
Reboot phone
Click to expand...
Click to collapse
thank you, can i do it in linux and not use SH script runner ?
SH Script Runner is an ANDROID executable what is installled at phone and launched there.

Categories

Resources