yashsingh1/xdaforums huggingface dataset:
[Non-Touchscreen Windows Mobile Other] pablo71:
I have become very interested in maximizing the battery life of my q9h (at&t carrier). I have made some tweaks that make it quite responsive - more responsive than maybe it needs to be, so I am thining that could allow me to underclock it and extend my battery life. Thanks in advance for any advice - I have applied as many tweaks for battery life as I can find and I believe there must be more. (battery life on this q9h is quite satisfactory as is though - i am impressed with this phone and recommend it). Thanks again.
[Non-Touchscreen Windows Mobile Other] lamzoue:
Wow,i'd want to know how to conserve the battery life of Q9H. thanks
[Huawei Developers] Mayism:
Background:

I have integrated the HMS Core SDK for a game, and recently, submitted a game update for review, but it is rejected because the app signature differs from that of my released game.

I’ve written the following troubleshooting guide to help resolve this problem.

Troubleshooting

1. Check whether the current app version is the same as the previous version.

View the fingerprint certificate in the project.

a. Open the CLI and run the keytool -list –v –keystore [file path] command.

b. Enter the keystore password.

c. View the current signing certificate fingerprint.

View the APK signature.

a. Run keytool -printcert -jarfile xxx.apk (APK file path).

b. The following information is displayed.

c. You can view the SHA-256 certificate fingerprint of the current APK. Check whether this value of the two app versions is consistent.

Then check whether the two fingerprints are consistent with that in your project.

2. If the certificate fingerprints are inconsistent, this can be caused by two different reasons. The first one is that the two APKs have been packaged using different signature files. If they are inconsistent, you should first check whether the .jks or keystore files used for app signing in the project are consistent. Or, you can check whether you have used keystore files from different environments or platforms.

Example:

The .jks or keystore files used for the debug and release environments are different. You need to ensure that each .jks or keystore file matches the environment. For example, you cannot configure the .jks or keystore file in debug to the release environment.

3. If the .jks or keystore files are consistent, you need to check whether an automatic process has been used for packaging and signing. If so, check whether DEX file encryption has been used, which can lead to inconsistent signatures.
[Huawei Developers] Mayism:
Background:

Huawei provides agconnect-services.json for HMS Core SDK integration, which saves us a lot of hassle. We need to get the file and add it to our project directory. The file contains project information we created in AppGallery Connect, including appid and cpid.

Symptom:

The API call in the integration failed, and two errors are reported in the log, the first of which is that appid and cpid cannot be found, and the other is the result code 907135000 is reported.

The following error information is recorded in the logs:

E/HMSSDK_AGCUtils: In getMetaDataAppId, Failed to read meta data for the AppID.

E/HMSSDK_AGCUtils: Get client/app_id failed: java.io.FileNotFoundException: agconnect-services.json

E/HMSSDK_AGCUtils: The client/app_id is null.

E/SecurityResourcesReader: KEY is null return def directly

I/HMSSDK_AGCUtils: In getMetaDataCpId, Failed to read meta data for the CpId.

E/HMSSDK_AGCUtils: Get client/cp_id failed: java.io.FileNotFoundException: agconnect-services.json

E/HMSSDK_AGCUtils: The client/cp_id is null.

I/HMSSDK_HmsClient: receive msg status_code:1, error_code 907135000, api_name:core.getNoticeIntent, app_id:|, pkg_name:com.appservicetest.huawei, session_id:*, transaction_id:000000000Intent20201105190645844381286, resolution:null

TroubleShooting：

According to the log information, the agconnect-services.json file cannot be found. After checking the official documentation and consulting with Huawei technical support, I have made the following summary:

1. Copy the agconnect-services.json file to the app directory of your project, as shown in the following figure.

2. Check whether applicationId in the app-level build.gradle file shares the same package name as that configured in AppGallery Connect. The name is case sensitive.

3. Go to buildscript > dependencies in the project-level build.gradle file and check whether the AppGallery Connect plug-in configuration has been added. Sample code:

buildscript {
repositories {
google()
jcenter()
maven {url 'https://developer.huawei.com/repo/'}
}

dependencies {
...
classpath 'com.huawei.agconnect:agcp:1.4.1.300'
}
}

4. Check whether the following configuration has been added to the app-level build.gradle file:

apply plugin: ‘com.huawei.agconnect’

Please note that this configuration must be added to the next line of apply plugin: ‘com.android.application. Otherwise, an error may occur.

5. If you are releasing a package on multiple platforms, the preceding method may not solve the problem. In this case, you can try this method:

Add the JSON file to the app directory and define appid and cpid in manifest.json by adding the following code:

<meta-data
android:name="com.huawei.hms.client.appid"
<!-- Replace xxx with the actual app ID, which can be obtained on the App information page. --> -->
android:value="appid=xxx">
</meta-data>

<!-- Replace xxx with the actual payment ID, which can be obtained from the app's IAP information. --> -->
<meta-data
android:name="com.huawei.hms.client.cpid"
android:value="cpid=xxx">
</meta-data>

Query cpid in the agconnect-services.json file.

Thanks for reading. I hope you found this post helpful!
[Huawei Developers] Mayism:
Symptom:

After an image drawn by the canvas component is saved to the album, the image cannot be displayed in the album. Only a black background image is displayed.

The image with the green background in the following figure is drawn by the canvas component.

After the image is saved to the album, the display result is as shown in the following figure.

Analysis:

Huawei Quick App Loader creates a ctx object each time it calls the getContext method. Therefore, different ctx objects are returned, and some of these objects are empty. An empty ctx object may be obtained in a random selection. As a result, the saved image may have no content. The code where the exception occurs is as follows:

Code for using canvas to draw an image:

pic() {
var test = this.$element("canvas");
var ctx = test.getContext("2d");
var img = new Image();
img.src = "http://www.huawei.com/Assets/CBG/img/logo.png";
img.onload = function () {
console.log("Image loaded successfully.");
ctx.drawImage(img, 10, 10, 300, 300, );
}
img.onerror = function () {
console.log("Failed to load the image.");
}
},

Code for saving the image:

save() {
var test = this.$element("canvas");
test.toTempFilePath({
fileType: "jpg",
quality: 1.0,
success: (data) => {
console.log(`Canvas toTempFilePath success ${data.uri}`)
console.log(`Canvas toTempFilePath success ${data.tempFilePath}`)
media.saveToPhotosAlbum({
uri: data.uri,
success: function (ret) {
console.log("save success: ");
},

fail: function (data, code) {
console.log("handling fail, code=" + code);
}
})
},

fail: (data) => {
console.log('Canvas toTempFilePath data =' + data);
},

complete: () => {
console.log('Canvas toTempFilePath complete.');
}
})
}

Solution:

Define ctx as a global variable and check whether it is empty. Set an initial value for an empty ctx.

The optimized code is as follows:

var ctx; // Define a global variable.
pic() {
if (!ctx) { // Check whether a ctx object is empty. If it is empty, set its value to 2d.
var test = this.$element("canvas");
var tt = test.getContext("2d");
ctx = tt;
}

var img = new Image();
img.src = "http://www.huawei.com/Assets/CBG/img/logo.png";
img.onload = function () {
console.log("Image loaded successfully.");
ctx.drawImage(img, 10, 10, 300, 300, );
}

img.onerror = function () {
console.log("Failed to load the image.");
}
}

For more details, please check:

Quick app materials:

https://developer.huawei.com/consumer/en/doc/development/quickApp-Guides/quickapp-whitepaper

canvas component:

https://developer.huawei.com/consum...quickApp-References/quickapp-component-canvas

Intro to the canvas API:

https://developer.huawei.com/consumer/en/doc/development/quickApp-References/quickapp-api-canvas
[Galaxy Tab 4 Q&A, Help & Troubleshooting] Milkman725:
So recently ive heard of this other version of android called "Android Go" which is basically a stripped down version of android, so i wonder if that version of android might be compatible to the Samsung galaxy tab 4 7.0 linup to give it access to modern stuff.
[Galaxy Tab 4 Q&A, Help & Troubleshooting] doctazz:
My guess? Not likely. The hardware is too old and it's difficult at best to work with the code. Better to stick with the few kitkat roms left that run as fast and slimmed down as possible, preferably with a overclocked kernel.

I'm speaking as an owner of a 7 inch Tab 4, with the Marvell chipset. If you have the 8 or 10 inch screens, you may have better luck finding a ROM running on a newer version of Android. :)
[Philips, Sony, TCL Android TV] KJI:
Recently acquired a mainland model Sony X9500H. I have managed to install aptoide TV and get Netflix with Dolby Vision working, I would ideally like to setup the android TV gapps package. I can not log into youtube without the core services and the aptoide store is hit or miss.

The TV runs android 9 and I have connected adb via network and enabled developer options. However, am not able to reboot into recovery. This ended up with a blank screen and no power on, a hard reset wiped the TV back to factory state.

Any tips for working with android 9 TVs to allow me to flash the Gapps package? Alternatively what is a full list of APKs needed to get functionality? I tried google play services and google play store, but the store would not open after install.
[Wing, P4350 General] ez112:
Ok first off. Nice Site here. There is a LOT of informative stuff here, and it's really great. You guys know yourr stuff. Unfortuantely it wasn't enough...for what I needed.

I tried fishing through this site to see if anyone has had the same problem that I have had, and no luck.

This is my girlfriend's OLD phone, so before it officially becomes a worthless paperweight, I'll try and fix it and sell it while some value is still attained to it.

What is does in a nutshell is the buttons seem to not work a lot. And randomly brings up the Start menu up with any button you press. If you let the page sit there it seems to get a little better and doesn't bring it up AS MUCH. But mainly the buttons seem to be messed up or something.

I tried installing a new ROM from this site, and I COULDN'T DO A HARD RESET. I tried over and over and even had a helper. It just seemed to not work. I would get stuck at the Tmobile page forever, and be forced to put back the OEM ROM. Then it would work again.

But sometime it would be fine for a while. The thing is, it's unreliable. You never know when it's going to NOT work, and start messing up again.

I'm at a total loss.
[Wing, P4350 General] ez112:
Ok. THe absolutley WILL NOT HARD Reset in any sort of way. Just tried it out again. It just does a soft reset everytime
[Android Apps and Games] Deleted member 1890170:
THIS TOOL REQUIRES ANDROID IS ROOTED !

In order to work properly an Android device depends on having an adequate amount of RAM ( read: physical memory ). Simply saying that there can never be enough. The more RAM is installed the better it is.

Swap space helps your Android system ( kernel ) to quickly organize RAM if there is need for it. To be open with you, Swap space is not absolutely necessary in case your system has tons of RAM. In case of emergencies it helps your system to survive.

However there are a few reasons why Swap memory is useful:

First,

sometimes single processes need more memory than the system physically owns and can provide more to the processes that demands it. As a result, all data that is kept in physical memory cannot be stored there any longer. Now, the swap space comes into play, and a selection of memory pages are transferred to the swap space to free physical memory.

Second,

not all the data is needed in memory at the same time. That’s why less used memory pages are parked on swap space to have as much free physical memory available as possible.

Due to Covid-19 lockdown I had the time to write a Windows CMD script ( coded in pure DOS ) what prepares adding / adds Swap space to Android.

Example screenshots:

If you are interested in this then download the ZIPed package, extract it to any loaction of your destop and run the .BAT-file located therein.

Download: http://www.mediafire.com/file/8dnp45etg416725/Android-Virtual-RAM-Creator.zip/file

Please feel free to report errors if any are found.
[Android Apps and Games] eduardo.M:
(y)
[Android Apps and Games] Technical:
Thank you! How can we delete the swap file if we want to restore original situation?
[Android Apps and Games] Deleted member 1890170:
Remove it from

1. fstab file - thus it doesn't get mounted at Android boot

2. from internal sdcard
[Android Apps and Games] fobtob387:
Any solution to this? My phone is rooted and USB debugging is enabled. There isn't any instructions or readme to follow for guidance?

View attachment 5234343
[Android Apps and Games] Deleted member 1890170:
If the check whether ADB on PC is being able to communicate with the device fails then you might need to uninstall the USB driver that recognizes your phone, then manually install the USB driver that matches your device's brand/model.
[Android Apps and Games] fobtob387:
You're right, I still had ADB drivers installed from an old phone I was messing around with. After fixing that it ran through, but fails at a later point. How can I fix this?

View attachment 5234433
[Android Apps and Games] Deleted member 1890170:
Have re-run the script at the moment - Windows 10 64-bit laptop.

No such errors occurred.
[Android Apps and Games] fobtob387:
I had to manually create the 'virtual-ram' folder for it to get past that error and then it ran into more errors even though it made the swap.img file, so I'm not sure if it worked or not.

View attachment 5234437
[Android Apps and Games] Deleted member 1890170:
Thanks for reporting. Have revised the script. Please re-download the update.
[Android Apps and Games] fobtob387:
Thanks for the update, now I get some different errors:

View attachment 5235001
[Android Apps and Games] etden:
Hey, I had to try this. My 3GB RAM so suffocates me.

but when I run the code it says WRONG ADB VERSION. How to fix that?

My ADB was okay for anything before.
[Android Apps and Games] Sterben@:
What to do in this case?View attachment 5598655
[Android Apps and Games] lop0900:
There's a typo in batch file. Need to add " ' " at the location pointed to get it work.
[Android Apps and Games] Sterben@:
?*View attachment 5603609
[Android Apps and Games] lop0900:
Same happened to me. But couldn't fix it..
[Android Apps and Games] Sterben@:
I will wait for an answer, thanks
[Android Apps and Games] Murky_:
View attachment 5630683

any solutions for these errors?
[Huawei Developers] Rebis:
It's an easy and useful code.
[Huawei Developers] Mayism:
Thanks to your liking.
[Magisk] yayaflirt:
Hello Everybody,

My phone was certified safetynet basic with magisk 21.4, but when updating to 22.0

It became not certified any solution please

My phone IS redmi note 7
[Magisk] Didgeridoohan:
Could be so many things...

First thing would be to make sure that MagiskHide is enabled and to toggle it off and on again if it is.

Other than that:

https://www.didgeridoohan.com/magisk/MagiskHide#hn_SafetyNet
[Magisk] darashikoh:
I have microG magisk module installed. So when I enable MagiskHide, play services keeps crashing. How do I pass Safetynet in this case?
[Magisk] Didgeridoohan:
Do you have Gapps and microG? That sounds like it's setup for a lot of problems.

If you're just running microG you can't pass SafetyNet anyway...

Itsounds like you've got other issues than what is described here though. I think I've seen crashing issues with microG mentioned at some point or another, so try searching. Other than that I've got nothing to contribute and it's a bit off-topic here anyway.
[Magisk] darashikoh:
I have just microG installed. I didn't know that we can't pass SafetyNet just with microG.
[Samsung Galaxy S7 Edge Questions and Answers] Redscorpian:
Hi, unable to delete this post. I have managed to get a stock ROM installed and after several unsuccessful flashes I finally removed the S8+ logo sequence on boot. That's a long story! Anyway, moderators please delete this post as it's no longer relevant. Thanks
[Tilt, TyTN II, MDA Vario III General] Ranthalion75:
I've just upgraded to a Linksys WRT160N router. Now my Tilt can see and connect to the Internet, but CANNOT connect to any of my PCs through the wireless. Never had this problem with my old router.

When I try to access my PCs it gives a 'Cannot Connect' window with the following message: 'Cannot connect with current connection settings. To change your connection settings, tap Settings.'

Now, I have tried changing everything I could think of in the networking settings, and now I've even hard reset my Tilt. With a clean setup, nothing added to the Tilt, (running the new Official AT&T ROM, BTW) I still get the same response from the Tilt.

Is there a major compatibility problem with the Tilt and WRT160N that I don't know of, or a setting I'm overlooking?

Any help anyone can give would be greatly appreciated.

Thanks in advance.
[Tilt, TyTN II, MDA Vario III General] Ranthalion75:
I've also searched in Google for this problem and have had no results.
[Magisk] thameme:
So, I recently updated magisk on my phone and as usual to update my phone restarts, but this time it didn't boot up.

I think its in bootloop because when i connect it to my pc with a usb cable it goes on and off also, i cannot access to TWRP.
[Magisk] Didgeridoohan:
Can you get to bootloader (fastboot)?

If so you can restore a stock boot image and start over, or try to boot to TWRP with fastboot boot twrp.img and restore the boot image from there and then flash the installer (rename the .apk to .zip as per the new v22+ installation instructions).
[Magisk] thameme:
I am unable to go into the bootloader or maybe im just doing it the wrong way do you mind guiding me? :/
[Magisk] thameme:
or maybe i don't have the drivers..
[Magisk] thameme:
my phone just connects and disconnects, so im not so sure i can go into the bootloader and launch a comand.
[Magisk] ineedroot69:
Can you shutdown your phone?
[Magisk] thameme:
i don't think, because it's always turning on and off because the usb sound is going off and on in my pc so i dont really know
[Magisk] Didgeridoohan:
You need to use a button combo to get to bootloader or recovery (since you can't boot to Android). A quick web search gives this:

https://droidrecovery.com/doogee-s68-pro-recovery-mode/
[Magisk] ineedroot69:
Exactly like what happen to my device as well 😆
[Magisk] thameme:
Nope, it does not let me go into the bootloader. Not even with the button combo.
[Magisk] ineedroot69:
Do you have twrp installed on your phone by any chance? Also a stock boot.img?
[Magisk] ineedroot69:
First you need to calm down I know how frustrating seeing your device on bootloop and can't even shutdown it ...
[Magisk] thameme:
i do not have twrp, but i can download a stock boot.img
[Magisk] ineedroot69:
would you like me to guide you how to fix it i don't have anything to do?
[Magisk] thameme:
Yes, thank you.
[Magisk] ineedroot69:
Your device is going on bootloop right now and keep vibrating right?
[Magisk] thameme:
it's not vibrating. but it probably is in bootloop
[Magisk] ineedroot69:
lol mine is vibrating while on bootloop okay enough chitchat let's start

vibration is actually good indication for the next process

prepare ADB and USB cable

Now press Power Button and VOL UP at the same time wait for vibration let go Power Button keep holding VOL up for at least 3secs then let go
[Magisk] thameme:
it's still not vibrating
[Magisk] ineedroot69:
now press VOL DOWN there's 3 out of 1 chance that you actually made it to fastboot mode ...
[Magisk] ineedroot69:
3 out of 1 because the choice are

Recovery Mode

Fastboot Mode

Normal Boot

if you gut lucky you will be entering Fastboot Mode
[Magisk] thameme:
nope, should i try again?
[Magisk] ineedroot69:
plug the phone via USB cable then on ADB type then enter

fastboot devices

if you got result then you got lucky on first try
[Magisk] Didgeridoohan:
Judging by the link I posted earlier, on the Doogee you need to first boot to "Boot mode" by pressing and holding vol- and power. After that you can select which mode you want to boot to. Or do you have some other insight?
[Magisk] Didgeridoohan:
@thameme How long did you hold volume down and power? Since the device seems to be bootlooping it can take quite some time before anything happens...
[Magisk] thameme:
im gonna try for 10/15/20 seconds
[Magisk] ineedroot69:
yes you are correct by holding vol- and power but some device can't see what are the boot choices .my device is completely black for instance

i just figure im on fastboot mode by bruteforcing attempt the" fastboot devices" command

Magisk 22.0 is quite nightmare :LOL:
[Magisk] thameme:
i tried for 20 sec and more but still nothing
[Magisk] ineedroot69:
Plug the USB already on your PC

Press Power Button and VOL UP at the same time wait for vibration or any trace that your phone is about to start again like change in animation

Let go Power Button keep holding VOL UP for at least 5secs then let go

Select fastboot mode if available if not press VOL DOWN

then goto ADB then type

fastboot devices

if no result on fastboot devices repeat every instructions
[Magisk] thameme:
Still nothing.
[Magisk] ineedroot69:
how does your bootloop look like mine has 2 phase like keep shutting down and staying on device logo?? .. also keep trying don't give up
[Magisk] thameme:
no, there isn't the logo boot animation. it's just a black screen.
[Magisk] ineedroot69:
just keep doing this https://xdaforums.com/t/doogee-s68p...at-can-i-do-to-fix-this.4239671/post-84562893

i got mine on like 6 attempt
[Magisk] thameme:
still not workinggg
[Magisk] ineedroot69:
how many battery percentage of your phone before this happen ahaha
[Magisk] thameme:
like 50 percent or more
[Magisk] thameme:
because i put it to charge overnight.
[Magisk] ineedroot69:
no vibration? did you check if you screen is just dimmed? like barely see the phone logo
[Magisk] thameme:
no, before the magisk update it worked
[Magisk] ineedroot69:
try again 1 out of 3 chance is low odds to happen
[Magisk] thameme:
im still trying but nothing is happening.
[Magisk] ineedroot69:
what a shame a 6gb ram and a water resistant and 6300 mah phone would goto waste if i would you i would keep trying
[Magisk] ineedroot69:
it should look like this if result found

View attachment 5233629
[Magisk] Chickentikkamans:
I had the same problem, I flashed the stock boot.img to the phone, it stopped Magisk so I could boot it up normally and not lose any data.

Copy the stock boot.img from your original firmware, scatter file & also the preloader (DO NOT FLASH THE PRELOADER!!) Apparently theres an error that means the preloader must be included on SP Flash Tool, but you UNTICK it before you proceed with the actual flash

Make sure you have the correct Mediatek drivers installed, get hold of SP Flash Tool, start the flash with phone disconnected and then hold Power & Volume-UP buttons at the same time until it bootloops (if it isn't already) , then release them and hold Volume-DOWN key and connect usb cable and it should cut the bootloop and connect to pc, at that point release the Volume-DOWN button

It paused long enough to initialize the flash and save me from agony :)

Not a great fan of Magisk at the moment lol!
[Magisk] ineedroot69:
I was about to give up too and just buy new phone lol i have extra $500 anyway but luckily i got result on fastboot :LOL: most people giveup seeing phone blackscreen but still alive inside