FORUMS

Is there a way to root Hisense A5? [Solved]

15 posts
Thanks Meter: 5
 
By gowin132, Junior Member on 26th February 2020, 04:16 AM
Post Reply Email Thread
Hello everyone. I want to install the Google Framework Service in this device. So I'm trying to root it.
I'm not very good at hack android devices, but I do have some knowledge. So I tried to root my newly received Hisense A5.
I managed to turn on the developer mode and also turned on the OEM unlock option.
Then I run: adb reboot bootloader, it does reboot to a screen showing only the words: fastboot mode
Then I tried to run: fastboot devices, it does show my device id
I tried to run: fastboot getvar all, it prints a lot of arguments and partition information.
I tried to run: fastboot flashing unlock, it says unknown command
I tried to run: fastboot flashing get_unlock_ability, it also says unknown command
After all this, it turns out no avail. I run fastboot reboot return to the normal boot.

I heard it needs a TWAP image file to flush the recovery partition. I searched all websites from google and found no TWAP image related to Hisense A5. By the way, this is a e-ink android phone I bought it from China.

I also found some information to root Hisense A6 by a backdoor method. I tried this in Hisense A5. It does not work. After I run this command
adb shell setprop debug.rootbackdoor 1
and then I run
adb remount
It will say no permission. Maybe this method does not work on A5. I don't know.

This situation is out of my ability. I don't know what to do next. So I'm asking if anyone has some instruction or clue that can root this device or install Google Framework Service.
Thank you so much.

[Solved]
I managed to root A5 and installed all google apps. See my post below
https://forum.xda-developers.com/sho...7&postcount=41
The Following 2 Users Say Thank You to gowin132 For This Useful Post: [ View ] Gift gowin132 Ad-Free
26th February 2020, 08:21 AM |#2  
Quote:
Originally Posted by gowin132

Hello everyone. I want to install the Google Framework Service in this device. So I'm trying to root it.

I'm not very good at hack android devices, but I do have some knowledge. So I tried to root my newly received Hisense A5.

I managed to turn on the developer mode and also turned on the OEM unlock option.

Then I run: adb reboot bootloader, it does reboot to a screen showing only the words: fastboot mode

Then I tried to run: fastboot devices, it does show my device id

I tried to run: fastboot getvar all, it prints a lot of arguments and partition information.

I tried to run: fastboot flashing unlock, it says unknown command

I tried to run: fastboot flashing get_unlock_ability, it also says unknown command

After all this, it turns out no avail. I run fastboot reboot return to the normal boot.



I heard it needs a TWAP image file to flush the recovery partition. I searched all websites from google and found no TWAP image related to Hisense A5. By the way, this is a e-ink android phone I bought it from China.



I also found some information to root Hisense A6 by a backdoor method. I tried this in Hisense A5. It does not work. After I run this command

adb shell setprop debug.rootbackdoor 1

and then I run

adb remount

It will say no permission. Maybe this method does not work on A5. I don't know.



This situation is out of my ability. I don't know what to do next. So I'm asking if anyone has some instruction or clue that can root this device or install Google Framework Service.

Thank you so much.

Have you tried install the google apps as user? It works for some devices

Sent from my Moto E (4) using Tapatalk
27th February 2020, 12:26 AM |#3  
OP Junior Member
Thanks Meter: 5
 
More
Quote:
Originally Posted by sd_shadow

Have you tried install the google apps as user? It works for some devices

Sent from my Moto E (4) using Tapatalk

Yes, I tried all the helper tools that install Google framework as user. They do successful installed the framework. However these Google apps all crash and fail to start. I have granted all permissions to these Google apps. I checked the adb logcat and see some unknown permission perblom, maybe they should be run as root or other way.
And there do have one way to run these Google app well by a tool called 2accounts. It runs Google app like a virtual machine. However, this method is too complicated , have drawbacks, and need to install a lot of garbage apps. Also, it's not very stable. I finally gave up this method too and removed all the helper tools.
27th February 2020, 04:38 AM |#4  
Quote:
Originally Posted by gowin132

Yes, I tried all the helper tools that install Google framework as user. They do successful installed the framework. However these Google apps all crash and fail to start. I have granted all permissions to these Google apps. I checked the adb logcat and see some unknown permission perblom, maybe they should be run as root or other way.

And there do have one way to run these Google app well by a tool called 2accounts. It runs Google app like a virtual machine. However, this method is too complicated , have drawbacks, and need to install a lot of garbage apps. Also, it's not very stable. I finally gave up this method too and removed all the helper tools.

You may not need a helper tool
There are just 4 apks needed
Credit:
-http://forum.xda-developers.com/amaz...-fire-t3486603



Sent from my Moto E (4) using Tapatalk
27th February 2020, 07:02 AM |#5  
OP Junior Member
Thanks Meter: 5
 
More
Quote:
Originally Posted by sd_shadow

You may not need a helper tool
There are just 4 apks needed
1. Google Account Manager

2. Google Services Framework

3. Google Play Services

4. Google Play Store

Sent from my Moto E (4) using Tapatalk

Thank you sd_shadow. I managed to install these apps from apk mirror. However still no avail. The google play store can start and show the login button. But nothing happens when I click the login button. I checked the logcat. It shows some error like this when I click login button.

Code:
02-27 14:54:06.714  1139  1844 W ActivityManager: com.google.android.gms unable to launch app com.google.android.gsf/10115 for provider, it's restricted
02-27 14:54:06.714  5281  5281 E ActivityThread: Failed to find provider info for com.google.android.gsf.gservices
02-27 14:54:06.715  5281  5281 W DeviceDoctorHandler: Ignoring crash due to lack of permissions.
02-27 14:54:06.715  5281  5281 W DeviceDoctorHandler: java.lang.RuntimeException: Unable to create application co.g.App: java.lang.SecurityException: addOnPermissionsChangeListener: Neither user 10115 nor current process has android.permission.OBSERVE_GRANT_REVOKE_PERMISSIONS.
02-27 14:54:06.715  5281  5281 W DeviceDoctorHandler: 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5978)
02-27 14:54:06.715  5281  5281 W DeviceDoctorHandler: 	at android.app.ActivityThread.access$1100(ActivityThread.java:212)
02-27 14:54:06.715  5281  5281 W DeviceDoctorHandler: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1674)
02-27 14:54:06.715  5281  5281 W DeviceDoctorHandler: 	at android.os.Handler.dispatchMessage(Handler.java:106)
02-27 14:54:06.715  5281  5281 W DeviceDoctorHandler: 	at android.os.Looper.loop(Looper.java:193)
02-27 14:54:06.715  5281  5281 W DeviceDoctorHandler: 	at android.app.ActivityThread.main(ActivityThread.java:6780)
02-27 14:54:06.715  5281  5281 W DeviceDoctorHandler: 	at java.lang.reflect.Method.invoke(Native Method)
02-27 14:54:06.715  5281  5281 W DeviceDoctorHandler: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
02-27 14:54:06.715  5281  5281 W DeviceDoctorHandler: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
02-27 14:54:06.715  5281  5281 W DeviceDoctorHandler: Caused by: java.lang.SecurityException: addOnPermissionsChangeListener: Neither user 10115 nor current process has android.permission.OBSERVE_GRANT_REVOKE_PERMISSIONS.
02-27 14:54:06.715  5281  5281 W DeviceDoctorHandler: 	at android.os.Parcel.createException(Parcel.java:1950)
02-27 14:54:06.715  5281  5281 W DeviceDoctorHandler: 	at android.os.Parcel.readException(Parcel.java:1918)
02-27 14:54:06.715  5281  5281 W DeviceDoctorHandler: 	at android.os.Parcel.readException(Parcel.java:1868)
02-27 14:54:06.715  5281  5281 W DeviceDoctorHandler: 	at android.content.pm.IPackageManager$Stub$Proxy.addOnPermissionsChangeListener(IPackageManager.java:6482)
02-27 14:54:06.715  5281  5281 W DeviceDoctorHandler: 	at android.app.ApplicationPackageManager.addOnPermissionsChangeListener(ApplicationPackageManager.java:1538)
02-27 14:54:06.715  5281  5281 W DeviceDoctorHandler: 	at sfy.a(:[email protected]@20.04.14 (100406-294335909):12)
02-27 14:54:06.715  5281  5281 W DeviceDoctorHandler: 	at rpo.onCreate(:[email protected]@20.04.14 (100406-294335909):150)
02-27 14:54:06.715  5281  5281 W DeviceDoctorHandler: 	at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1155)
02-27 14:54:06.715  5281  5281 W DeviceDoctorHandler: 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5973)
02-27 14:54:06.715  5281  5281 W DeviceDoctorHandler: 	... 8 more
I searched this error on Google. Someone says the Google Service is intentionally disabled by the OEM rom on this device and there is no way to run it until the manufacturer unlocks this or root the device.
27th February 2020, 07:19 AM |#6  
OP Junior Member
Thanks Meter: 5
 
More
I also found another solution to resolve this permission error.
It needs to edit files in /etc/permissions/ to add android.permission.OBSERVE_GRANT_REVOKE_PERMISSION S to com.google.android.gsf.gservices. For example, add something like this in any file in this directory.

Code:
    <privapp-permissions package="com.google.android.gsf.gservices">
        <permission name="android.permission.OBSERVE_GRANT_REVOKE_PERMISSIONS"/>
    </privapp-permissions>
However, when I tried to edit, it says
Code:
remote couldn't create file: Read-only file system
I tried to run
Code:
adb remount
It says
Code:
Not running as root. Try "adb root" first.
I tried to run
Code:
adb root
It says
Code:
adbd cannot run as root in production builds
Still need to root.
27th February 2020, 12:29 PM |#7  
Member
Thanks Meter: 7
 
More
Following. Really want to root and install gapps with successful login.
28th February 2020, 05:41 AM |#8  
Junior Member
Thanks Meter: 0
 
More
I'll follow the thread as well. I am very interested on this phone but I keep wondering if the lack of google support is reason enough to wait or go for another (conventional) model.
28th February 2020, 08:41 AM |#9  
Junior Member
Flag BIRMINGHAM
Thanks Meter: 0
 
Donate to Me
More
Did you try fastboot oem unlock
28th February 2020, 08:01 PM |#10  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by sd_shadow

You may not need a helper tool
There are just 4 apks needed

Heya!
All of the links seem to be broken, was this intentional or where they just really fast with taking them down?
29th February 2020, 12:12 AM |#11  
Quote:
Originally Posted by Shingomur

Heya!

All of the links seem to be broken, was this intentional or where they just really fast with taking them down?

Bad copy and paste, I fixed the links.
But sounds like they won't work with this device.

Sent from my Moto E (4) using Tapatalk
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes