Delphi - Android development on XIAOMI Pocophone F1 - android

Got myself a Xiaomi Pocophone F1.
However, I cannot compile android application on the phone, because it won't let me.
It seems I must specify explicitly the source of the installation media and Delphi is not on the list :)
So, does anybody know perhaps what I must do to get the compiler working ?
USB debugging is on and developer options are visible.

Thank you all for suggestions.
The issue on that particular phone is that you have to (in developer options under debugging) enable "Install via USB" and "USB debugging - security settings").
It is not as simple as it sounds because you have to create an account on their site (https://account.xiaomi.com/) first. Creating the account for this particular options implies that you can not change the phone's region any more. Why they chose to do this,I do not know.

Related

How Do I Enable ADB Debugging on Chrome OS?

According to both Google and Google, if I enable Linux on Chrome OS, then in Settings' "Linux (Beta)" section, I should see a "Develop Android apps" option.
On an HP Chromebox G2 (Kench), I see this option and eventually got it activated.
On a Samsung Chromebook Plus (Kevin), I do not see this option, even with Chrome OS 88.0.4324.186.
On an ASUS Chromebook Tablet CT100 (scarlet), I see this option. This particular device is short on ports, though, so I'm going to be struggling to use it for what I need.
On an Acer Chromebook R11 (cyan), I do not see this option, even with Chrome OS 88.0.4324.186.
So... how do I enable ADB debugging on the Samsung or the Acer?
Or, another way to look at it: how do I know whether a given Chrome OS device model will or will not support ADB debugging, besides actually trying to set it up? It is difficult to plan on getting something else for testing if I do not know whether it will support ADB before buying it.
With Linux development environment (Beta) enabled,
Go to Settings of the Chromebook
Enter "android" on the search bar on top,
Select "manage Android preferences"
then you will enter generic Android setting page in a new window.
Scroll down at bottom select "System",
then select "Developer options"
I found my ADB debugging there.
It's a known issue since September 20.
There is no official response from google about this issue yet.
According to Google's product platinum expert DennyL:
"I believe it has to do with the architecture and/or the kernel version used on the device" ......... "So far, there have been no authoritative responses but we hope to see something soon."
Source: https://support.google.com/chromebook/thread/71852070?hl=en
looks like that devices without TPM 2.0 will never get this feature.
this following issue was marked as won't fix
Source: https://bugs.chromium.org/p/chromium/issues/detail?id=1072174

Android Studio: Failure [INSTALL_FAILED_USER_RESTRICTED]

I work on Android Studio with Meizu MX6. Previously everything was ok. But it seems after updating Flyme, I started getting this problem:
Failure [INSTALL_FAILED_USER_RESTRICTED]
If I choose "Ok" I get next:
DELETE_FAILED_INTERNAL_ERROR
When I work with another smartphone all right. If I copy apk-file on my phone all right too. It installs and runs. Install software from unknown sources is on.
I had the same issue. It happens only on Flyme due to Security App.
To enable installation:
Open Security Application. (it is one of preinstalled Flyme apps)
Go to Permission
Usb app installation.
Turn off USB installation monitor.
Have found the solution here: http://bbs.flyme.cn/thread-1106582-1-1.html using Google Translate.
I also had the same problem with my Xiaomi Redmi note 3.
here's how i solved it,
Go to settings>>Additional Settings.
Go to developer options.(if its not there, first goto about phone
and tap on build number 7 times...and start again from step 1)
Click on install via USB.
That's all, you are ready to rock :)
The device is temporarily restricted error appears in MIUI 8.5.
To resolve the error you need to make WIFI off and make mobile data on and then enable the option “Install via USB”.
It will work for you.
Enjoy!
I have had the same problem with XIAO MI.
I went to Settings -> Additional Settings -> Developer options -> Turn On "Install via USB"
Only you can activate this switch if you have a Xiaomi count, create and activate your count, then sign on and turn on install via USB.
In my Redmi4 i had the same issue.
The steps followed to overcome:
(1)
Settings -> About Phone -> tap 7-8 times the MIUI version(to activate Developer Options)
Settings -> Additional settings-> Developer Options -> enable USB
debugging -> install via USB
DONE
On Redmi Note 4, Go To
Settings --> System & Device (Additional Settings) --> Developer Options --> Install via USB.
Register using a mobile number(OTP).
Try again, should work.
Redmi Note 7 and pro In developer options Allow USB Debugging, Install Via USB and disable Verify apps over USB
Do you have a rooted phone with some application installed that manages App Access authorisations, like King Root?
I had faced with same problem on one of the devices. There was an app on device with super user access that was blocking the new installation. Had to approve installation in that app first before installing new apks.
This occurs when you select the option "remember my choice" and Decline accidentally.
The only solution I found was to change the name of the package and application, but this is not feasible in many cases
If you got this after mistakenly "Cancel"-ing when you must have selected Remember my choice then some dirty fix would be to:
Manually copy the same debug apk from your build output to the same test phone.
Manually install the apk. (You have to allow installation from unknown sources of course)
Go to "App Manager" and clear preferences.
Restart the debug as usual.
NB: This was put up in a hurry after some wasted hours so, I'm yet to verify if step #3 is necessary for this to work.
NBB: You'd be back to square one if you uninstall the app and try to do a fresh install from the debug so, apparently, the App Manager preference reset doesn't cover whichever subsystem it is that governs the setting.
Yes, I know, this should infer that our first #NB is void but things don't always follow intuition so, I'm leaving it till it's verified. :D

Enable Android Usb Testing on Hp Phone

I have a hp slate 6 voicetab running android 4.4 and I would like to use it to test an android app that I am developing. The Android phone is not showing up on the list of devices next to the emulator.
Can someone please help me.
P.S I am using android studio and running windows 8.1
Make sure you have USB Debugging Mode and Allow Mock Locations turned-on on your android device. To do that go to settings on the device and scroll down to developer options, then enable usb debugging. Also enable Allow mock locations.
Note if Developer options is not visible, enable it by going to About Phone and tap on the build number repeatedly 5 times.
I have managed to get it working. I used a software called ADBDriver installer, and I disabled the windows certificate check, then enabled developer options on the phone and it was able to show. Thanks for all your help

Eclipse won't recognize G-tablet

I am trying to view a sample app on a real device (a ViewSonic G-tablet), but the device won't display in the "Choose a running Android device" area. The virtual devices show, but no real devices show (there is only one plugged in, the G-tablet). Some other information...
I am using a Mac with Eclipse SDK 3.7.1 w/Android
App is noted as debuggable in manifest file (android:debuggable="true")
G-Tablet is set to allow debugging
Device selection is set to manual in SDK
I CAN view files on G-Tablet using Finder
I have reviewed Android developer docs
I have searched a lot online for a fix, without success
Please also note...
There is NO option on G-tablet to allow "unknown sources". However, I have downloaded apps outside the customary channels (e.g. Firefox from the Firefox site) and it works fine.
I do NOT want to do anything to the G-tablet to void the warranty.
I have already checked for/installed updates using the Android SDK Manager.
The fixes I was able to find on StackOverflow related to this problem did not work for me. I am thinking the problem may be device specific. One fix discussed getting a driver for the device, but I couldn't find one.
Can anyone please help me figure out how to get the SDK to recognize my device? I'd appreciate any insight on this.
Can you export the app as an .apk and run that on your G-tablet?
also is the android:minSdkVersion set to a value lower than your G-tablet's version?
Found the answer after trying a zillion things. All that needed to be done to fix the problem was turn to OFF 'USB debugging' and then turn it right back on. I found the idea on this page... http://www.mobileread.mobi/forums/showthread.php?t=156247 . Hope that might save someone else hours of time.

Can I set an attached device as default launch target?

In Eclipse I am developing an application using Google APIs (maps) on a Nexus One.
When I launch the application for debugging on the device i get:
"Automatic Target Mode: Unable to detect device compatibility. Please
select a target device."
and the "Android Device Chooser" pops up.
I can select the Nexus One and everything is ok. It annoys me, however, that i need to select the device every time i want to test something.
Setting a build target name to any standard android version (not using Google apis) automatically launches my app without showing the Android Device Chooser. But since i need the maps, that is not an option for me.
Is there a way to force an application using Google apis, to be launched on the attached device without showing the Android Device Chooser?
Go to your project properties. Select Run/Debug Settings, click the Edit button of your run configuration, select the Target tab in the upcoming dialog, switch the selectboxes to "Automatic" and check the checkbox by your device.
This is an irritating acknowledged defect (Issue 11373) reported on the Android Issue tracker.
The Issue has status Assigned and presumably will be fixed.
I was just having this problem and traced it to my USB connection. I had started using a 2.0 hub, which I would think to be sufficient. It's powered. When I plugged the USB cable into the laptop itself, problem solved.
Good luck.
Mark
This may be useful to you.
First Find the Your device OS Version & API Level.
IN Eclipse, Then Right click on Your project select Property, In
Property's window select Android, In it select Project Build Target as
per your device OS API Level.
For example i have Samsung Galaxy Fit - Android 2.2 os API Level - 8
so i,selected the Google APIs, Google Inc, 2.2, 8 .
Let me know this is useful for you or not ?
Once the popup comes up to choose a device, select your device and then check the Use same device for future uses at the button of the Dialog.

Categories

Resources